:root {
  --page: #0b0c0f;
  --ink: #f4f4f2;
  --mute: #9b9ea8;
  --hair: rgba(255, 255, 255, .1);
  --glass: rgba(17, 18, 23, .84);
  --chip: rgba(255, 255, 255, .28);
  --acc: #ff5a1f;
  --on-acc: #ffffff;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar: 64px;
  --rail: clamp(340px, 30vw, 470px);
  --gap: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--page); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.cond { font-stretch: 72%; }

/* top bar: dark glass over the arena */
.bar { position: fixed; top: 0; left: 0; right: 0; height: var(--bar); background: linear-gradient(rgba(8, 9, 12, .82), rgba(8, 9, 12, .55)); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; z-index: 10; }
.logo { font-weight: 900; font-size: 30px; letter-spacing: -.04em; display: flex; align-items: flex-end; gap: 3px; color: #fff; }
.logo i, .loader b i { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); display: inline-block; margin-bottom: 6px; transition: background .5s; box-shadow: 0 0 12px var(--acc); }
.links { display: flex; gap: clamp(18px, 3vw, 44px); font-weight: 700; font-size: 17px; letter-spacing: -.01em; align-items: center; }
.links a { opacity: .82; padding: 6px 0; transition: opacity .2s; }
.links a:hover { opacity: 1; }
.links .on { opacity: 1; box-shadow: inset 0 -2px 0 var(--acc); }
.bag { display: flex; gap: 7px; align-items: center; font-weight: 700; }
.bag b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--acc); color: var(--on-acc); font-size: 12px; display: grid; place-items: center; transition: background .4s; }
.bag.bump b { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.3); } }

/* the arena is full-bleed; the rail floats over its right side */
.shell { position: fixed; inset: 0; }
.stage { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(110% 80% at 35% 0%, #1b1d24 0%, #0b0c0f 55%, #050507 100%); color: var(--ink); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; touch-action: none; }
.stage.hovering #gl { cursor: pointer; }
.title { position: absolute; left: 30px; top: calc(var(--bar) + 14px); z-index: 1;   /* behind the canvas: dancers stand in front of it */ pointer-events: none; color: #fff; font-weight: 900; font-stretch: 70%;
  font-size: clamp(72px, 10.5vw, 190px); line-height: .84; letter-spacing: -.035em; white-space: nowrap; text-shadow: 0 6px 40px rgba(0, 0, 0, .35);
  transform-origin: 0 0; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.title span { display: inline-block; }
.lineup .title { transform: scale(.6); }

.modes { position: absolute; right: calc(var(--rail) + var(--gap) * 2 + 8px); top: calc(var(--bar) + 22px); z-index: 4; display: flex; align-items: center;
  background: rgba(14, 15, 19, .7); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; padding: 4px; }
.mode { position: relative; z-index: 1; height: 36px; padding: 0 20px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .6); transition: color .3s; }
.mode.on { color: #0b0c0f; }
.mode-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: #fff; transition: transform .5s var(--ease), width .5s var(--ease); }

.foot { position: absolute; left: 30px; bottom: 26px; z-index: 3; display: flex; align-items: flex-end; gap: 22px; pointer-events: none; }
.foot > * { pointer-events: auto; }
.lookname { position: absolute; left: 4px; bottom: calc(clamp(110px, 13vw, 200px) * .84 + 10px); font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); white-space: nowrap; transition: opacity .25s; }
.num { display: flex; height: clamp(110px, 13vw, 200px); overflow: hidden; font-weight: 900; font-stretch: 70%; font-size: clamp(110px, 13vw, 200px); line-height: 1; letter-spacing: -.04em; color: #fff; }
.numcol { display: flex; flex-direction: column; transition: transform .75s var(--ease); }
.numcol:nth-child(2) { transition-delay: .05s; }
.numcol span { height: 1em; display: block; }
.foot-r { display: grid; gap: 12px; padding-bottom: 16px; }
.shop { height: 50px; padding: 0 24px; border-radius: 99px; background: var(--acc); color: var(--on-acc); font-weight: 800; font-size: 20px; letter-spacing: -.015em;
  display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px color-mix(in srgb, var(--acc) 35%, transparent); transition: background .5s, color .5s, transform .2s var(--ease); }
.shop span { font-weight: 800; }
.shop:hover { transform: translateY(-2px); }
.meta { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: rgba(255, 255, 255, .8); }
.steps { position: absolute; right: calc(var(--rail) + var(--gap) * 2 + 8px); bottom: 34px; z-index: 3; display: flex; gap: 12px; }
.steps button { width: 56px; height: 56px; border-radius: 50%; background: rgba(14, 15, 19, .55); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 20px;
  transition: background .2s, border-color .2s, color .2s; }
.steps button:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.scrollhint { position: absolute; right: calc(var(--rail) + var(--gap) * 2 + 10px); top: calc(var(--bar) + 72px); z-index: 3; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .1em; text-transform: uppercase; transition: opacity .5s; }
.scrollhint.gone { opacity: 0; }

/* rail: floating dark glass panel */
.rail { position: absolute; z-index: 6; top: calc(var(--bar) + var(--gap)); right: var(--gap); bottom: var(--gap); width: var(--rail);
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); }
.rail-head { height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between; margin: 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.rh-l b { font-weight: 500; }
.rh-r { color: rgba(255, 255, 255, .85); }
.cards { flex: 1; overflow: auto; display: grid; grid-auto-rows: minmax(0, 1fr); margin: 0 22px; }
.card { display: grid; grid-template-columns: 40% 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative;
  min-height: 150px; opacity: 0; transform: translateY(10px); animation: cardIn .5s var(--ease) forwards; }
.card:last-child { border-bottom: 0; }
.card:nth-child(2) { animation-delay: .05s; } .card:nth-child(3) { animation-delay: .1s; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.card.out { animation: cardOut .18s ease-in forwards; }
@keyframes cardOut { to { opacity: 0; transform: translateY(-8px); } }
.card .ph { position: relative; height: 100%; min-height: 110px; display: grid; place-items: center; }
.card .ph::before { content: ''; position: absolute; inset: 6% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 70%, transparent), color-mix(in srgb, var(--acc) 22%, transparent) 55%, transparent 100%);
  filter: blur(12px); opacity: .85; transform: scale(.92); transition: transform .5s var(--ease), opacity .5s, background .5s; }
.card:hover .ph::before { transform: scale(1.02); opacity: 1; }
.card img { position: relative; width: 92%; height: 92%; max-height: 150px; object-fit: contain; transition: transform .5s var(--ease); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.card:hover img { transform: scale(1.06) rotate(-2deg); }
.card .info { min-width: 0; }
.card h3 { font-size: 30px; font-weight: 900; font-stretch: 72%; letter-spacing: -.01em; line-height: 1; margin-bottom: 6px; color: #fff; }
.card .pr { font-family: var(--mono); font-size: 15px; font-weight: 500; margin-bottom: 12px; color: rgba(255, 255, 255, .78); }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .sz { display: flex; flex-wrap: wrap; gap: 5px; }
.card .sz button { min-width: 32px; height: 30px; padding: 0 7px; border: 1.5px solid var(--chip); border-radius: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff;
  transition: background .12s, color .12s, border-color .12s; }
.card .sz button:hover { border-color: #fff; }
.card .sz button.on { background: #fff; border-color: #fff; color: #0b0c0f; }
.card .add { flex: none; height: 34px; padding: 0 14px; border-radius: 8px; background: var(--acc); color: var(--on-acc); font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: background .18s, color .18s, transform .15s; }
.card .add:active { transform: scale(.95); }
.card .add.in { background: #fff; color: #0b0c0f; }
.card .add.need { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.full { flex: none; height: 66px; margin: 8px 18px 18px; border-radius: 12px; background: #fff; color: #0b0c0f; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 24px; font-weight: 900; font-stretch: 80%; font-size: 26px; letter-spacing: -.01em; transition: transform .2s var(--ease); }
.full b { font-weight: 900; font-size: 24px; background: var(--acc); color: var(--on-acc); padding: 7px 14px; border-radius: 9px; transition: background .5s; }
.full:hover { transform: translateY(-2px); }

/* thermal receipt */
.receipt-wrap { position: absolute; inset: 0; z-index: 5; background: rgba(5, 6, 8, .55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s;
  display: flex; align-items: flex-end; justify-content: center; padding: 18px; }
.receipt-wrap.open { opacity: 1; pointer-events: auto; }
.receipt { width: 100%; max-width: 360px; background: #fbfbf9; color: #111; font-family: var(--mono); font-size: 12px; padding: 26px 22px 20px; position: relative;
  clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease); box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  --zig: linear-gradient(135deg, transparent 6px, #fbfbf9 0) 0 0 / 12px 12px repeat-x, linear-gradient(-135deg, transparent 6px, #fbfbf9 0) 0 0 / 12px 12px repeat-x; }
.receipt::before { content: ''; position: absolute; left: 0; right: 0; top: -11px; height: 12px; background: var(--zig); background-position: 0 0, 0 0; transform: rotate(180deg); }
.receipt-wrap.open .receipt { clip-path: inset(-20px 0 0 0); }
.receipt .rx-close { position: absolute; right: 14px; top: 12px; font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .08em; }
.receipt h4 { font-family: var(--sans); font-weight: 900; font-size: 26px; letter-spacing: -.04em; text-align: center; }
.receipt .rx-sub { text-align: center; color: #555; margin: 2px 0 12px; letter-spacing: .06em; }
.receipt .rx-no { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.receipt .rx-no b { background: var(--acc); color: var(--on-acc); font-family: var(--sans); font-weight: 900; font-size: 20px; padding: 2px 8px; letter-spacing: -.02em; }
.receipt hr { border: 0; border-top: 1.5px dashed #999; margin: 10px 0; }
.receipt .rx-line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; opacity: 0; animation: print .3s steps(3) forwards; }
@keyframes print { to { opacity: 1; } }
.receipt .rx-line small { color: #666; }
.receipt .rx-total { display: flex; justify-content: space-between; font-family: var(--sans); font-weight: 900; font-size: 22px; letter-spacing: -.03em; margin: 6px 0 12px; }
.receipt .rx-cta { width: 100%; height: 46px; background: #111; color: #fff; font-family: var(--sans); font-weight: 800; font-size: 16px; letter-spacing: -.01em; border-radius: 4px; }
.receipt .rx-cta:hover { background: var(--acc); color: var(--on-acc); }
.receipt svg { display: block; width: 100%; height: 44px; margin-top: 14px; }
.receipt .rx-foot { text-align: center; color: #666; margin-top: 6px; letter-spacing: .2em; font-size: 10px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: rgba(20, 21, 26, .92); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-family: var(--mono); font-size: 12px; padding: 12px 16px;
  border-radius: 10px; opacity: 0; transition: opacity .3s, transform .4s var(--ease); z-index: 30; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.loader { position: fixed; inset: 0; z-index: 40; background: var(--page); display: grid; place-items: center; align-content: center; gap: 10px; transition: opacity .7s var(--ease), visibility .7s; }
.loader b { font-weight: 900; font-size: 54px; letter-spacing: -.05em; display: flex; align-items: flex-end; gap: 4px; color: #fff; }
.loader span { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.loader.done { opacity: 0; visibility: hidden; }

/* short, wide screens (ultrawide monitors, LED walls) */
@media (min-width: 861px) and (max-height: 860px) {
  .card { min-height: 0; padding: 8px 0; gap: 12px; }
  .card h3 { font-size: 26px; }
  .card .pr { font-size: 13px; margin-bottom: 8px; }
  .card .sz button { height: 27px; min-width: 29px; font-size: 11px; padding: 0 5px; }
  .card .add { height: 30px; font-size: 14px; padding: 0 11px; }
  .rail-head { height: 48px; font-size: 13px; }
  .full { height: 56px; font-size: 22px; }
  .full b { font-size: 20px; }
  .title { font-size: clamp(64px, 9vw, 160px); }
  .num { font-size: clamp(96px, 11vw, 170px); height: clamp(96px, 11vw, 170px); }
  .lookname { bottom: calc(clamp(96px, 11vw, 170px) * .84 + 10px); }
}

@media (max-width: 860px) {
  :root { --bar: 58px; --gap: 10px; }
  .bar { padding: 0 16px; }
  .logo { font-size: 24px; }
  .links a { display: none; }
  .stage { bottom: 40%; }
  .rail { top: auto; left: var(--gap); right: var(--gap); bottom: var(--gap); width: auto; height: calc(40% - var(--gap) * 1.5); }
  .rail-head { height: 38px; font-size: 12px; margin: 0 14px; }
  .cards { grid-auto-flow: column; grid-auto-columns: 86%; grid-auto-rows: auto; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 14px; gap: 12px; }
  .card { min-height: 0; border-bottom: 0; scroll-snap-align: start; padding: 8px 0; gap: 10px; }
  .card h3 { font-size: 22px; }
  .card .row { flex-wrap: wrap; }
  .full { height: 46px; margin: 6px 12px 10px; font-size: 18px; }
  .full b { font-size: 16px; }
  .title { left: 16px; top: calc(var(--bar) + 54px); font-size: 62px; }
  .modes { right: 12px; top: calc(var(--bar) + 10px); }
  .mode { padding: 0 12px; height: 30px; font-size: 11px; }
  .foot { left: 14px; bottom: 10px; gap: 12px; }
  .num { font-size: 84px; height: 84px; }
  .lookname { bottom: 78px; }
  .shop { height: 40px; font-size: 15px; padding: 0 14px; }
  .shop span { display: none; }
  .meta { font-size: 10px; }
  .steps, .scrollhint { display: none; }
}
