:root {
  --shell: oklch(0.70 0.17 14);
  --shell-hi: oklch(0.78 0.14 14);
  --shell-d: oklch(0.61 0.18 14);
  --shell-dd: oklch(0.48 0.16 14);
  --shell-l: oklch(0.84 0.09 14);
  --milk: oklch(0.96 0.02 18);
  --milk-2: oklch(0.92 0.032 18);
  --milk-3: oklch(0.87 0.05 16);
  --ink: oklch(0.25 0.05 12);
  --ink-2: oklch(0.42 0.07 12);
  --glass: oklch(0.36 0.07 188);
  --glass-d: oklch(0.24 0.05 190);
  --glass-dd: oklch(0.19 0.04 190);
  --glass-l: oklch(0.47 0.075 188);
  --lemon: oklch(0.89 0.17 98);
  --lemon-hi: oklch(0.96 0.10 100);
  --lemon-d: oklch(0.76 0.16 90);
  --lemon-dd: oklch(0.62 0.14 80);
  --mint-t: oklch(0.47 0.12 158);
  --mint-g: oklch(0.78 0.14 158);
  --cherry: oklch(0.52 0.19 25);
  --cherry-g: oklch(0.72 0.17 25);
  --on-glass: oklch(0.96 0.015 180);
  --on-glass-2: oklch(0.82 0.035 185);
  --chrome: linear-gradient(180deg, oklch(0.97 0.006 14), oklch(0.80 0.012 14) 46%, oklch(0.92 0.008 14) 54%, oklch(0.70 0.014 14));
  --plastic: inset 0 1px 0 oklch(1 0.01 18 / 0.55), inset 0 -2px 0 oklch(0.3 0.08 14 / 0.14), 0 22px 36px -22px oklch(0.25 0.09 14 / 0.6);
  --display: "Dela Gothic One", "Onest", sans-serif;
  --text: "Onest", system-ui, sans-serif;
  --led: "DotGothic16", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1360px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--text); font-size: 16px; line-height: 1.5; color: var(--ink);
  background-color: var(--shell);
  background-image:
    radial-gradient(90% 60% at 50% -10%, oklch(0.80 0.12 14 / 0.9), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23f58c9a'%3E%3Cpath d='M30 18q0 12 12 12q-12 0-12 12q0-12-12-12q12 0 12-12z'/%3E%3Cpath d='M90 78q0 8 8 8q-8 0-8 8q0-8-8-8q8 0 8-8z'/%3E%3Ccircle cx='92' cy='26' r='3'/%3E%3Ccircle cx='24' cy='92' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 900px, 120px 120px;
  background-repeat: no-repeat, repeat;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lemon); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40; height: 62px; display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(12px, 2.4vw, 32px);
  background: linear-gradient(180deg, oklch(0.98 0.012 18), var(--milk-2));
  box-shadow: inset 0 -1px 0 var(--milk-3), 0 10px 24px -16px oklch(0.3 0.1 14 / 0.6);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-size: 19px; white-space: nowrap; }
.routes { display: flex; gap: 2px; margin-left: 10px; padding: 4px; border-radius: 12px; background: oklch(0.89 0.04 16); box-shadow: inset 0 2px 4px oklch(0.4 0.08 14 / 0.18); }
.routes a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 9px; transition: background 180ms var(--ease), color 180ms; }
.routes a:hover { background: oklch(0.95 0.02 18); }
.routes a[aria-current="page"] { background: linear-gradient(180deg, oklch(0.33 0.06 12), var(--ink)); color: var(--lemon); box-shadow: 0 2px 6px -2px oklch(0.2 0.05 12 / 0.6); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.chip {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 5px; border-radius: 12px; cursor: pointer; border: 0;
  background: linear-gradient(180deg, var(--glass-l), var(--glass-d)); color: var(--on-glass); font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2), 0 3px 0 var(--glass-dd);
}
.chip:hover { filter: brightness(1.08); }
.chip-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--lemon); box-shadow: 0 0 0 2px oklch(1 0 0 / 0.25); }
.chip-price { font-family: var(--led); font-weight: 400; color: var(--lemon); font-size: 15px; }
.chip-chg.up { color: var(--mint-g); } .chip-chg.down { color: var(--cherry-g); }

/* ---------- arcade keys (buttons) ---------- */
.btn {
  --top: var(--lemon); --hi: var(--lemon-hi); --base: var(--lemon-dd);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 0; border-radius: 12px; color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--hi), var(--top) 38%, var(--top));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6), 0 4px 0 var(--base), 0 10px 18px -8px oklch(0.25 0.08 14 / 0.55);
  transition: transform 110ms var(--ease), box-shadow 110ms var(--ease), filter 160ms;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6), 0 5px 0 var(--base), 0 14px 22px -10px oklch(0.25 0.08 14 / 0.55); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.5), 0 1px 0 var(--base), 0 4px 8px -4px oklch(0.25 0.08 14 / 0.5); }
.btn[disabled] { filter: saturate(0.4); opacity: 0.75; cursor: not-allowed; transform: none; }
.btn-milk { --top: var(--milk); --hi: oklch(0.995 0.005 18); --base: var(--milk-3); }
.btn-ink { --top: var(--ink); --hi: oklch(0.36 0.06 12); --base: oklch(0.16 0.04 12); color: var(--lemon); }
.btn-connect { min-height: 42px; font-size: 14px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.busy { position: relative; color: transparent; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.copy { display: inline-flex; align-items: center; gap: 6px; background: oklch(1 0 0 / 0.12); border: 1px solid currentColor; border-radius: 8px; padding: 2px 9px; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 26px; }
.copy.done { background: var(--lemon); color: var(--ink); border-color: var(--lemon-d); }

/* ---------- hero stage ---------- */
.hero { padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 5vw, 72px); position: relative; }
.stage { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr) minmax(0, 310px); gap: clamp(18px, 2.4vw, 36px); align-items: start; }

.cabinet {
  position: relative; border-radius: 34px 34px 22px 22px; padding: 0 18px 18px;
  background:
    linear-gradient(90deg, oklch(1 0 0 / 0) 0 6%, oklch(1 0 0 / 0.22) 9%, oklch(1 0 0 / 0) 14%, oklch(1 0 0 / 0) 86%, oklch(0.2 0.08 14 / 0.12) 94%),
    linear-gradient(180deg, var(--shell-hi), var(--shell-d) 30%, var(--shell-dd));
  box-shadow: inset 0 2px 0 oklch(0.88 0.08 14), inset 0 -6px 0 oklch(0.40 0.14 14), 0 30px 50px -26px oklch(0.22 0.1 14 / 0.8);
}
.cabinet::after { /* chrome kick plate */
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -9px; height: 12px; border-radius: 0 0 12px 12px; background: var(--chrome); z-index: -1;
}
.marquee {
  position: relative; margin: 0 -18px 16px; padding: 22px 26px 18px; border-radius: 34px 34px 8px 8px; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, oklch(0.99 0.07 100), var(--lemon) 55%, var(--lemon-d));
  box-shadow: inset 0 -4px 0 var(--lemon-dd), inset 0 0 0 7px oklch(0.82 0.15 92);
  text-align: center;
}
.marquee::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 30px, oklch(1 0 0 / 0.16) 30px 32px); pointer-events: none; }
.bulbs { position: absolute; inset: 7px; pointer-events: none; }
.bulbs i { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, oklch(1 0.02 100), oklch(0.93 0.1 95) 50%, oklch(0.78 0.14 88)); box-shadow: 0 0 6px oklch(0.98 0.1 98 / 0.9); }
.marquee.chase .bulbs i { animation: chase 0.72s steps(1) 8; }
.marquee.chase .bulbs i:nth-child(3n + 1) { animation-delay: -0.24s; }
.marquee.chase .bulbs i:nth-child(3n + 2) { animation-delay: -0.48s; }
@keyframes chase { 0% { opacity: 1; } 33% { opacity: 0.25; box-shadow: none; } 66% { opacity: 1; } }
.marquee h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 0.95; color: var(--ink); position: relative; text-shadow: 0 2px 0 oklch(1 0.05 100 / 0.8), 0 4px 0 var(--lemon-dd); letter-spacing: 0.01em; }
.marquee-sub { position: relative; margin-top: 8px; font-weight: 700; font-size: clamp(14px, 1.2vw, 16px); }
.marquee-led { position: absolute; top: 16px; right: 22px; font-family: var(--led); font-size: 13px; background: var(--glass-dd); color: var(--lemon); padding: 2px 8px; border-radius: 6px; z-index: 1; }
.marquee.flash { animation: mflash 1s var(--ease) 2; }
@keyframes mflash { 50% { filter: brightness(1.2) saturate(1.3); } }
.window {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--glass-d);
  box-shadow: 0 0 0 6px var(--shell-dd), 0 0 0 8px oklch(0.78 0.12 14), inset 0 0 30px oklch(0.1 0.04 190 / 0.6);
}
.window::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 16px; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18); }
.window canvas { display: block; width: 100%; touch-action: pan-y; cursor: grab; }
.window canvas:focus-visible { outline: 3px solid var(--lemon); outline-offset: -6px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 16px 4px 0; font-size: 12.5px; font-weight: 700; color: oklch(0.97 0.02 18); }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.deck {
  margin-top: 14px; padding: 14px; border-radius: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: linear-gradient(180deg, oklch(0.30 0.05 12), oklch(0.22 0.045 12)); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12), inset 0 -3px 0 oklch(0.14 0.03 12);
}
.leds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.led { background: var(--glass-dd); border-radius: 9px; padding: 7px 10px 6px; color: var(--on-glass-2); box-shadow: inset 0 2px 6px oklch(0.05 0.02 190 / 0.8), 0 1px 0 oklch(1 0 0 / 0.08); min-width: 0; }
.led small { display: block; font-size: 11px; font-weight: 700; }
.led b { display: block; font-family: var(--led); font-weight: 400; font-size: clamp(18px, 1.7vw, 23px); color: var(--lemon); line-height: 1.15; text-shadow: 0 0 10px oklch(0.89 0.17 98 / 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.controls { display: flex; align-items: center; gap: 10px; }
.joy {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, oklch(0.99 0.01 18), oklch(0.88 0.03 18) 60%, oklch(0.76 0.04 16));
  box-shadow: 0 0 0 3px oklch(0.16 0.03 12), 0 4px 0 3px oklch(0.12 0.03 12); transition: transform 90ms, box-shadow 90ms;
}
.joy svg { width: 16px; height: 16px; fill: var(--ink); }
.joy:active { transform: translateY(3px); box-shadow: 0 0 0 3px oklch(0.16 0.03 12), 0 1px 0 3px oklch(0.12 0.03 12); }
.dropbtn {
  width: 78px; height: 78px; border-radius: 50%; border: 0; cursor: pointer; font-family: var(--display); font-size: 15px; color: var(--ink);
  background: radial-gradient(circle at 40% 28%, oklch(0.99 0.06 100), var(--lemon) 42%, var(--lemon-d) 80%);
  box-shadow: 0 0 0 4px var(--chrome-ring, oklch(0.85 0.01 14)), 0 0 0 6px oklch(0.16 0.03 12), 0 7px 0 6px oklch(0.12 0.03 12), inset 0 -5px 0 var(--lemon-dd);
  transition: transform 90ms, box-shadow 90ms;
}
.dropbtn:active { transform: translateY(5px); box-shadow: 0 0 0 4px oklch(0.85 0.01 14), 0 0 0 6px oklch(0.16 0.03 12), 0 2px 0 6px oklch(0.12 0.03 12), inset 0 -2px 0 var(--lemon-dd); }
.deck-hint { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: oklch(0.85 0.03 18); text-align: center; max-width: 62ch; justify-self: center; text-wrap: balance; }
.led .unit { display: inline; font-size: 0.55em; margin-left: 4px; }
.readout {
  margin: 14px 2px 0; padding: 7px 12px; border-radius: 9px; background: var(--glass-dd); color: var(--lemon); font-family: var(--led); font-size: 15px; line-height: 1.3;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; white-space: nowrap; overflow: hidden; text-shadow: 0 0 8px oklch(0.89 0.17 98 / 0.5);
  box-shadow: inset 0 2px 6px oklch(0.05 0.02 190 / 0.8), 0 1px 0 oklch(1 0 0 / 0.15);
}
.readout b { font-weight: 400; color: oklch(0.97 0.03 100); }
.readout .rg { color: var(--mint-g); } .readout .rr { color: var(--cherry-g); }
.legend .lg-short { display: none; }
.foot-h { font-family: var(--text); font-weight: 800; margin: 0 0 10px; font-size: 14px; color: var(--lemon); }

/* how-to sticker */
.howto {
  background: linear-gradient(180deg, var(--milk), var(--milk-2)); border-radius: 22px; padding: 22px 22px 24px; display: grid; gap: 16px;
  box-shadow: 0 0 0 5px oklch(0.99 0.01 18 / 0.9), 0 0 0 6px var(--shell-dd), var(--plastic); transform: rotate(-1.2deg); margin-top: 26px;
}
.howto-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.howto-title h2 { font-size: 26px; }
.howto-title span { font-family: var(--display); font-size: 12px; color: var(--shell-dd); white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.stepn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 16px; color: var(--ink); background: radial-gradient(circle at 40% 30%, var(--lemon-hi), var(--lemon) 55%, var(--lemon-d)); box-shadow: 0 2px 0 var(--lemon-dd); }
.steps b { display: block; font-weight: 800; line-height: 1.25; }
.steps p { font-size: 14px; color: var(--ink-2); font-weight: 500; line-height: 1.4; margin-top: 2px; }

/* prize tag (under the claw) */
.under {
  position: relative; margin-top: 44px; padding: 34px 20px 20px; border-radius: 18px 18px 22px 22px; display: grid; gap: 14px; min-height: 250px;
  background: linear-gradient(180deg, oklch(0.99 0.008 18), var(--milk-2));
  box-shadow: 0 0 0 5px oklch(0.99 0.01 18 / 0.9), 0 0 0 6px var(--shell-dd), var(--plastic); transform: rotate(1.4deg);
}
.under::before { /* punched hole */
  content: ""; position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--shell); box-shadow: inset 0 2px 3px oklch(0.3 0.1 14 / 0.6);
}
.under::after { /* string */
  content: ""; position: absolute; top: -40px; left: 50%; width: 2px; height: 58px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--lemon-d) 30%); z-index: -1; transform-origin: bottom; transform: rotate(-8deg);
}
.under-tag { justify-self: center; font-family: var(--display); font-size: 13px; color: var(--shell-dd); margin-top: -8px; }
.under-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.under-img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; background: var(--milk-3); box-shadow: 0 0 0 3px var(--milk), 0 0 0 4px var(--milk-3); }
.under-name { font-family: var(--display); font-size: 24px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.under-sub { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.stat b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.up { color: var(--mint-t); } .down { color: var(--cherry); }
.pairing { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 3px 10px 3px 4px; border-radius: 99px; background: oklch(0.90 0.035 18); white-space: nowrap; box-shadow: inset 0 1px 2px oklch(0.4 0.08 14 / 0.18); }
.dot { width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative; overflow: hidden; background: var(--c, #cdbdbd); box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.18), 0 0 0 1.5px oklch(0.3 0.05 12 / 0.55); }
.dot::before { content: ""; position: absolute; inset: 0 0 52% 0; background: oklch(0.97 0.02 180 / 0.88); }
.dot::after { content: ""; position: absolute; left: 22%; top: 12%; width: 30%; height: 22%; border-radius: 50%; background: oklch(1 0 0 / 0.8); }
.bond { display: block; height: 10px; border-radius: 6px; background: oklch(0.88 0.04 16); overflow: hidden; box-shadow: inset 0 1px 3px oklch(0.3 0.08 14 / 0.3); }
.bond i { display: block; height: 100%; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--shell) 0 6px, var(--shell-d) 6px 12px); }
.under-empty { color: var(--ink-2); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* prize boxes: the six vaults */
.rack-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin: clamp(44px, 5vw, 72px) 0 18px; }
.rack-head h2 { font-size: clamp(28px, 3.2vw, 44px); }
.rack-head p { max-width: 50ch; font-weight: 600; }
.rack { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.prizebox { text-decoration: none; display: grid; gap: 8px; min-width: 0; color: var(--ink); }
.pb-window {
  position: relative; aspect-ratio: 1 / 0.86; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(80% 70% at 50% 30%, var(--glass-l), var(--glass) 55%, var(--glass-d));
  box-shadow: 0 0 0 5px var(--shell-dd), 0 0 0 7px oklch(0.8 0.1 14), 0 18px 26px -16px oklch(0.2 0.1 14 / 0.8);
  transition: transform 220ms var(--ease);
}
.prizebox:hover .pb-window, .prizebox:focus-visible .pb-window { transform: translateY(-4px); }
.pb-window::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, oklch(1 0 0 / 0.14) 38%, transparent 46%); }
.pb-window::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: oklch(0.2 0.04 190 / 0.6); }
.pb-capsule { position: absolute; z-index: 1; width: 40%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(var(--s, 1));
  background: linear-gradient(180deg, oklch(0.95 0.02 180 / 0.85) 0 48%, oklch(0.2 0.04 12 / 0.35) 48% 53%, var(--c) 53%);
  box-shadow: inset -6px -8px 14px oklch(0 0 0 / 0.25), inset 5px 6px 10px oklch(1 0 0 / 0.5), 0 8px 10px -4px oklch(0 0 0 / 0.4);
}
.pb-capsule::after { content: ""; position: absolute; left: 20%; top: 12%; width: 26%; height: 16%; border-radius: 50%; background: oklch(1 0 0 / 0.85); }
.pb-capsule.ghost { background: none; box-shadow: none; outline: 2px dashed oklch(0.9 0.1 98 / 0.6); outline-offset: -2px; }
.pb-capsule.ghost::after { display: none; }
.pb-wait { position: absolute; z-index: 2; left: 0; right: 0; bottom: 5%; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--on-glass-2); }
.pb-tube { position: absolute; z-index: 2; left: 8px; top: 12px; bottom: 12px; width: 8px; border-radius: 5px; background: oklch(0.15 0.03 190 / 0.7); overflow: hidden; display: flex; align-items: flex-end; box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.5); }
.pb-tube i { display: block; width: 100%; border-radius: 5px; background: linear-gradient(180deg, var(--lemon-hi), var(--lemon)); box-shadow: 0 0 8px oklch(0.89 0.17 98 / 0.6); }
.pb-nft { position: absolute; z-index: 2; left: 22px; bottom: 6px; font-family: var(--led); font-size: 11px; color: var(--lemon); }
.pb-get { position: absolute; z-index: 2; top: 8px; right: 8px; font-family: var(--display); font-size: 13px; padding: 2px 8px; border-radius: 8px; background: var(--lemon); color: var(--ink); transform: rotate(8deg); box-shadow: 0 2px 0 var(--lemon-dd); }
.pb-name { font-weight: 800; font-size: 14.5px; line-height: 1.2; margin-top: 8px; display: flex; align-items: center; gap: 7px; min-width: 0; }

/* real NFT pictures */
.nft { position: relative; display: block; overflow: hidden; background: var(--glass-dd); }
.nft img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 320ms var(--ease); }
.nft.is-in img { opacity: 1; }
.nft-fb { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in oklch, var(--c) 55%, transparent), transparent 72%), repeating-linear-gradient(45deg, oklch(1 0 0 / 0.05) 0 6px, transparent 6px 12px), var(--glass-d); }
.nft-fb { align-content: center; gap: 4px; color: oklch(0.96 0.02 180 / 0.75); }
.nft-fb svg { width: 42%; max-width: 72px; height: auto; }
.nft-fb b { font-family: var(--display); font-weight: 400; font-size: clamp(11px, 1.1vw, 15px); color: oklch(0.96 0.02 180 / 0.8); letter-spacing: 0.02em; }
.ts-pic .nft-fb b, .log-pic .nft-fb b { display: none; }
.ts-pic .nft-fb svg, .log-pic .nft-fb svg { width: 56%; }
.nft.is-loading .nft-fb { animation: sk 1.2s linear infinite; background-size: 200% 100%; }
.pb-window { aspect-ratio: 1 / 1; }
.pb-pic { position: absolute; z-index: 1; left: 14%; right: 14%; top: 11%; aspect-ratio: 1; border-radius: 10px; transform: rotate(-3deg);
  box-shadow: 0 0 0 4px oklch(0.98 0.01 18), 0 0 0 5px oklch(0.7 0.05 14 / 0.4), 0 14px 18px -8px oklch(0.05 0.03 190 / 0.8); transition: transform 260ms var(--ease); }
.prizebox:hover .pb-pic, .prizebox:focus-visible .pb-pic { transform: rotate(0deg) scale(1.03); }
.pb-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 5%; text-align: center; font-family: var(--led); font-size: 11px; color: var(--lemon); text-shadow: 0 0 8px oklch(0.89 0.17 98 / 0.6); }
.pb-price { position: absolute; z-index: 3; top: 7%; left: 7%; font-family: var(--led); font-size: 14px; line-height: 1; color: var(--ink); background: var(--lemon); padding: 4px 7px 3px; border-radius: 7px; box-shadow: 0 2px 0 var(--lemon-dd); transform: rotate(-6deg); }
.pb-price small { font-size: 0.7em; margin-left: 2px; }
.pb-get { z-index: 3; }
.pb-led span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pb-meter { display: block; height: 8px; border-radius: 5px; background: oklch(0.45 0.13 14 / 0.45); overflow: hidden; box-shadow: inset 0 1px 2px oklch(0.2 0.08 14 / 0.5); }
.pb-meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--lemon-d), var(--lemon-hi)); box-shadow: 0 0 8px oklch(0.89 0.17 98 / 0.7); }
.pb-status { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.pb-status b { font-weight: 800; }
.rack-src { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; opacity: 0.9; }

/* top shelf: tonight's floors on display above the glass */
.topshelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 10px 10px 14px; margin: 0 0 14px; border-radius: 14px; position: relative;
  background: linear-gradient(180deg, var(--glass-d), var(--glass-dd)); box-shadow: inset 0 2px 8px oklch(0.05 0.02 190 / 0.8), 0 1px 0 oklch(1 0 0 / 0.2); }
.topshelf::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 4px; border-radius: 2px; background: var(--chrome); }
.ts-item { display: grid; gap: 6px; justify-items: center; text-decoration: none; min-width: 0; }
.ts-pic { width: 100%; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 0 0 2px var(--c), 0 0 0 4px oklch(0.15 0.03 190), 0 8px 12px -6px oklch(0 0 0 / 0.7); transition: transform 200ms var(--ease); }
.ts-item:hover .ts-pic, .ts-item:focus-visible .ts-pic { transform: translateY(-3px); }
.ts-item { gap: 4px; }
.ts-name { font-size: 11px; font-weight: 800; color: var(--on-glass); line-height: 1; letter-spacing: 0.04em; margin-top: 3px; }
.ts-price { font-family: var(--led); font-size: 13px; color: var(--lemon); line-height: 1; text-shadow: 0 0 8px oklch(0.89 0.17 98 / 0.5); white-space: nowrap; }

/* log rows with pictures */
.log-pic { width: 48px; height: 48px; border-radius: 10px; flex: none; box-shadow: 0 0 0 2px var(--milk), 0 0 0 3px var(--milk-3); }

/* prizes: tonight's targets */
.targets-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 40px; margin: 8px 0 16px; }
.targets-head h2 { font-size: clamp(28px, 3.2vw, 44px); }
.targets-head p { max-width: 62ch; font-weight: 600; font-size: 14.5px; }
.targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.tg-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 16px; align-items: center; padding: 16px; border-radius: 20px; min-width: 0;
  background: radial-gradient(120% 100% at 0% 0%, var(--glass-l), var(--glass) 50%, var(--glass-d)); color: var(--on-glass);
  box-shadow: 0 0 0 5px var(--shell-dd), 0 0 0 7px oklch(0.8 0.1 14), var(--plastic); }
.tg-meta { display: grid; gap: 8px; min-width: 0; }
.tg-meta h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; line-height: 1.1; }
.tg-led { font-size: 13px; font-weight: 600; color: var(--on-glass-2); }
.tg-led b { font-family: var(--led); font-weight: 400; color: var(--lemon); font-size: 17px; }
.tg-meta .pb-meter { background: oklch(0.15 0.03 190 / 0.7); }
.tg-note { font-size: 12.5px; color: var(--on-glass-2); font-weight: 500; }
.tg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; min-width: 0; }
.tg-card { display: grid; gap: 5px; text-decoration: none; min-width: 0; color: var(--on-glass); }
.tg-pic { width: 100%; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 0 0 3px oklch(0.98 0.01 18), 0 10px 14px -8px oklch(0 0 0 / 0.7); transition: transform 200ms var(--ease); }
.tg-card:not(.lead) .tg-pic { box-shadow: 0 0 0 2px oklch(0.98 0.01 18 / 0.6), 0 10px 14px -8px oklch(0 0 0 / 0.7); }
a.tg-card:hover .tg-pic, a.tg-card:focus-visible .tg-pic { transform: translateY(-3px) rotate(-1.5deg); }
.tg-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.tg-price { font-family: var(--led); font-size: 14px; color: var(--lemon); line-height: 1; }
.pb-led { display: flex; align-items: baseline; gap: 6px; background: var(--glass-dd); color: var(--on-glass-2); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; box-shadow: inset 0 2px 5px oklch(0.05 0.02 190 / 0.8); }
.pb-led b { font-family: var(--led); font-weight: 400; color: var(--lemon); font-size: 20px; line-height: 1.1; }
.pb-meta { font-size: 12.5px; font-weight: 600; }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 7vw, 108px) 0; position: relative; }
.band-milk { background: linear-gradient(180deg, var(--milk), oklch(0.94 0.028 18)); box-shadow: inset 0 8px 16px -10px oklch(0.4 0.1 14 / 0.35); }
.band-glass { background: radial-gradient(120% 90% at 18% 0%, var(--glass-l), var(--glass) 45%, var(--glass-d)); color: var(--on-glass); }
.band-glass::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, oklch(1 0 0 / 0.02) 0 2px, transparent 2px 6px); pointer-events: none; }
.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(24px, 3vw, 40px); position: relative; }
.band-head h2 { font-size: clamp(34px, 4.6vw, 68px); max-width: 15ch; }
.band-head p { max-width: 44ch; font-weight: 500; font-size: 17px; }
.band-glass .band-head p { color: var(--on-glass-2); }

/* ---------- acrylic panels ---------- */
.card, .log, .table, .faq details {
  background: linear-gradient(180deg, oklch(0.99 0.008 18), oklch(0.955 0.022 18)); border-radius: 18px; min-width: 0;
  box-shadow: inset 0 0 0 1px oklch(0.88 0.045 16), var(--plastic);
}
.card { padding: clamp(18px, 2vw, 26px); }

/* ---------- list ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: oklch(0.99 0.006 18); min-width: 0; box-shadow: inset 0 2px 4px oklch(0.4 0.08 14 / 0.18), inset 0 0 0 1px oklch(0.86 0.05 16); }
.search:focus-within { box-shadow: inset 0 2px 4px oklch(0.4 0.08 14 / 0.18), 0 0 0 3px var(--lemon); }
.search svg { width: 18px; height: 18px; flex: none; stroke: var(--ink-2); fill: none; stroke-width: 2.4; }
.search input { flex: 1 1 0; width: 0; border: 0; outline: 0; background: transparent; font-weight: 600; }
.search input::placeholder { color: var(--ink-2); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: oklch(0.89 0.04 16); box-shadow: inset 0 2px 4px oklch(0.4 0.08 14 / 0.2); }
.seg button { border: 0; background: transparent; padding: 0 14px; height: 38px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 160ms var(--ease); }
.seg button:hover { background: oklch(0.95 0.02 18); }
.seg button[aria-pressed="true"] { background: linear-gradient(180deg, oklch(0.33 0.06 12), var(--ink)); color: var(--lemon); }
.table { overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 14px; align-items: center; padding: 10px 18px; text-decoration: none; min-height: 64px; position: relative; transition: background 160ms; }
.trow + .trow { box-shadow: inset 0 1px 0 oklch(0.90 0.035 18); }
.trow.head { background: linear-gradient(180deg, var(--glass), var(--glass-d)); color: var(--on-glass-2); font-size: 12.5px; font-weight: 700; min-height: 42px; }
a.trow:hover { background: oklch(0.93 0.035 18); }
a.trow.flashrow { animation: rowflash 1.4s var(--ease); }
@keyframes rowflash { 0% { background: oklch(0.93 0.12 98); } 100% { background: transparent; } }
.cell-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-coin img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--milk-3); box-shadow: 0 0 0 2px oklch(1 0 0 / 0.8), 0 0 0 3px var(--milk-3); }
.cell-coin b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-coin span { font-size: 13px; color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.r { text-align: right; justify-self: end; }
.tcell { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.bcell small { display: block; font-size: 12px; margin-top: 4px; color: var(--ink-2); font-weight: 700; }
.empty { padding: 40px 20px; text-align: center; display: grid; gap: 12px; justify-items: center; font-weight: 600; }
.empty h3 { font-size: 24px; }
.empty p { max-width: 52ch; }
.more { display: flex; justify-content: center; margin-top: 22px; }
.skel { background: linear-gradient(90deg, var(--milk-2), var(--milk), var(--milk-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 6px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- mechanism ---------- */
.mech { width: 100%; height: auto; display: block; overflow: visible; position: relative; }
.mech text { font-family: var(--text); }
.mech .t-led { font-family: var(--led); }
.mech-flow { stroke-dasharray: 2 12; stroke-linecap: round; animation: flow 1.6s linear 5; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.split-list.mech-mobile { display: none; gap: 10px; position: relative; }
.split-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: 14px; background: var(--glass-d); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08); }
.split-row b { font-weight: 800; }
.split-row .pct { font-family: var(--led); color: var(--lemon); font-size: 22px; }
.split-row small { grid-column: 1 / -1; color: var(--on-glass-2); font-size: 13.5px; }
.mech-note { margin-top: 20px; max-width: 64ch; color: var(--on-glass-2); font-weight: 500; position: relative; }

/* ---------- prizes ---------- */
.shelf { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.log { overflow: hidden; }
.log-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; }
.log-row + .log-row { box-shadow: inset 0 1px 0 oklch(0.90 0.035 18); }
.log-row .dot { width: 32px; height: 32px; }
.log-row b { font-weight: 800; }
.log-row p { font-size: 14px; color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.log-row .amt { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-row .amt a { display: block; font-size: 13px; font-weight: 700; }
.ticket {
  position: relative; border-radius: 18px; padding: 24px; display: grid; gap: 14px;
  background: radial-gradient(120% 90% at 30% 0%, var(--lemon-hi), var(--lemon) 50%, oklch(0.85 0.16 94));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.6), 0 5px 0 var(--lemon-dd), 0 24px 36px -22px oklch(0.25 0.1 14 / 0.7);
  -webkit-mask: radial-gradient(circle 13px at 0 62%, transparent 12px, rgb(0 0 0) 13px) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 62%, transparent 12px, rgb(0 0 0) 13px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 62%, transparent 12px, rgb(0 0 0) 13px) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 62%, transparent 12px, rgb(0 0 0) 13px) right / 51% 100% no-repeat;
}
.ticket h3 { font-size: 28px; }
.countdown { font-family: var(--led); font-size: clamp(32px, 3.4vw, 46px); line-height: 1; background: var(--glass-dd); color: var(--lemon); padding: 12px 16px; border-radius: 12px; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px oklch(0.89 0.17 98 / 0.5); box-shadow: inset 0 3px 8px oklch(0 0 0 / 0.5); }
.ticket p { font-weight: 600; }
.ticket hr { border: 0; border-top: 2px dashed oklch(0.55 0.12 80 / 0.7); margin: 4px 0; width: 100%; }
.ticket a { font-weight: 800; }
.me-line { font-weight: 700; }

/* ---------- plays ---------- */
.plays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.play { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; box-shadow: inset 0 -1px 0 var(--milk-3); font-weight: 600; text-decoration: none; }
.play img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--milk-3); }
.play time { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.play.new { animation: rowflash 1.4s var(--ease); }
.tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.tag.buy { background: oklch(0.88 0.08 158); color: oklch(0.32 0.09 158); } .tag.sell { background: oklch(0.88 0.07 25); color: oklch(0.38 0.14 25); } .tag.launch { background: var(--lemon); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.faq details { padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, var(--lemon-hi), var(--lemon) 60%, var(--lemon-d)); box-shadow: 0 2px 0 var(--lemon-dd); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: translateY(2px); box-shadow: 0 0 0 var(--lemon-dd); background: radial-gradient(circle at 40% 30%, var(--lemon), var(--lemon-d)); }
.faq details p { padding: 0 0 20px; max-width: 60ch; font-weight: 500; }

/* ---------- footer ---------- */
.foot { background: linear-gradient(180deg, oklch(0.27 0.05 12), oklch(0.20 0.04 12)); color: var(--milk); padding: 56px 0 110px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 10px; font-size: 14px; color: var(--lemon); }
.foot a { display: block; text-decoration: none; padding: 3px 0; font-weight: 600; }
.foot a:hover { text-decoration: underline; }
.foot p { color: oklch(0.86 0.03 18); font-size: 14px; }
.foot .big { font-family: var(--display); font-size: clamp(36px, 5vw, 66px); color: var(--shell-l); line-height: 1; margin-bottom: 14px; }
.addr { font-family: var(--led); font-size: 14px; word-break: break-all; }

/* ---------- page shells ---------- */
.page { padding: clamp(28px, 4vw, 52px) 0 clamp(60px, 7vw, 100px); }
.page-head { margin-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; align-items: end; }
.page-head h1 { font-size: clamp(44px, 6.4vw, 88px); }
.page-head p { max-width: 50ch; font-weight: 500; font-size: 17px; }

/* launch */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.field { display: grid; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label, .field .lbl { font-weight: 800; font-size: 14px; }
.field input, .field textarea { width: 100%; min-width: 0; border: 0; border-radius: 12px; padding: 11px 14px; background: oklch(0.99 0.006 18); font-weight: 600; box-shadow: inset 0 2px 4px oklch(0.4 0.08 14 / 0.16), inset 0 0 0 1px oklch(0.84 0.05 16); }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.55 0.05 14); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 2px 4px oklch(0.4 0.08 14 / 0.16), 0 0 0 3px var(--lemon); }
.field .hint { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.err { font-size: 13px; color: var(--cherry); font-weight: 700; }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 12px; background: oklch(0.99 0.006 18); cursor: pointer; font-weight: 700; font-size: 14px; min-width: 0; line-height: 1.2; box-shadow: inset 0 0 0 1px oklch(0.86 0.05 16); transition: background 160ms, box-shadow 160ms; user-select: none; }
.pick { color: var(--ink); }
.pick:hover { background: oklch(0.95 0.025 18); }
.preview-capsule .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }
.more-opts { margin-top: 18px; border-radius: 12px; background: oklch(0.93 0.03 18); padding: 0 14px; }
.more-opts summary { cursor: pointer; font-weight: 800; font-size: 14px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.more-opts summary::-webkit-details-marker { display: none; }
.more-opts summary::after { content: "+"; font-family: var(--display); font-size: 18px; }
.more-opts[open] summary::after { content: "–"; }
.more-opts[open] { padding-bottom: 2px; }
.pick[aria-checked="true"] { background: linear-gradient(180deg, oklch(0.33 0.06 12), var(--ink)); color: var(--milk); box-shadow: 0 0 0 2px var(--lemon); }
.imgpick { display: flex; gap: 12px; align-items: center; }
.upload { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 800; font-size: 13px; cursor: pointer; background: oklch(0.91 0.035 18); box-shadow: 0 2px 0 var(--milk-3); }
.upload:hover { background: oklch(0.88 0.05 16); }
.imgpick img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--milk), 0 0 0 4px var(--milk-3); }
.amount { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 0 14px; height: 52px; background: oklch(0.99 0.006 18); min-width: 0; box-shadow: inset 0 2px 4px oklch(0.4 0.08 14 / 0.16), inset 0 0 0 1px oklch(0.84 0.05 16); }
.amount:focus-within { box-shadow: inset 0 2px 4px oklch(0.4 0.08 14 / 0.16), 0 0 0 3px var(--lemon); }
.amount input { flex: 1 1 0; width: 0; border: 0; outline: 0; background: transparent; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: none; padding: 0; }
.amount span { font-weight: 800; color: var(--ink-2); }
.amount input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.amount input[type="number"]::-webkit-inner-spin-button, .amount input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.preview-capsule { display: grid; justify-items: center; gap: 14px; text-align: center; background: radial-gradient(90% 80% at 50% 20%, var(--glass-l), var(--glass) 60%, var(--glass-d)); color: var(--on-glass); box-shadow: 0 0 0 6px var(--shell-dd), 0 0 0 8px oklch(0.8 0.1 14), var(--plastic); }
.preview-capsule canvas { width: 210px; height: 210px; }
.preview-capsule a:not(.btn) { color: var(--lemon); }
.notice { background: linear-gradient(180deg, oklch(0.30 0.05 12), oklch(0.23 0.045 12)); color: oklch(0.92 0.02 18); border-radius: 16px; padding: 18px; font-size: 14.5px; font-weight: 500; box-shadow: var(--plastic); }
.notice b { color: var(--lemon); }
.success-stamp { font-family: var(--display); font-size: 38px; color: var(--ink); background: var(--lemon); padding: 4px 18px; border-radius: 12px; transform: rotate(-6deg); display: inline-block; box-shadow: 0 4px 0 var(--lemon-dd); animation: stamp 420ms var(--ease); }
@keyframes stamp { from { transform: rotate(-6deg) scale(2); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }

/* coin page */
.coin-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 24px; }
.coin-top img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--milk-3); box-shadow: 0 0 0 4px var(--milk), 0 0 0 5px var(--shell-dd), 0 14px 24px -12px oklch(0.2 0.1 14 / 0.6); }
.coin-top h1 { font-size: clamp(34px, 4.6vw, 60px); }
.coin-top h1 span { color: oklch(0.38 0.12 14); }
.coin-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-weight: 700; font-size: 14px; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 22px; align-items: start; }
.chart-card { padding: 0; overflow: hidden; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.chart-head .price { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chart-wrap { background: radial-gradient(100% 100% at 30% 0%, var(--glass), var(--glass-d) 70%); position: relative; }
.chart-wrap canvas { display: block; width: 100%; height: 340px; }
.coin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 20px; }
.trade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; position: sticky; top: 80px; }
.trade .seg { width: 100%; display: flex; }
.trade .seg button { flex: 1; }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.presets button { height: 36px; border: 0; border-radius: 9px; background: oklch(0.91 0.035 18); font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 2px 0 var(--milk-3); }
.presets button:hover { background: oklch(0.88 0.05 16); }
.presets button:active { transform: translateY(2px); box-shadow: none; }
.tape { margin-top: 26px; }
.tape .log-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: oklch(0.2 0.05 12 / 0.35); display: flex; justify-content: flex-end; align-items: flex-start; padding: 72px clamp(12px, 2.4vw, 32px) 20px; }
.sheet[hidden] { display: none; }
.sheet-card { width: min(380px, 100%); background: linear-gradient(180deg, oklch(0.99 0.008 18), var(--milk-2)); border-radius: 20px; padding: 20px; display: grid; gap: 14px; box-shadow: inset 0 0 0 1px oklch(0.88 0.045 16), 0 30px 60px -20px oklch(0.2 0.1 14 / 0.7); animation: sheetin 220ms var(--ease); }
@keyframes sheetin { from { transform: translateY(-8px); opacity: 0; } }
.sheet-card svg { width: 100%; height: 64px; display: block; }
.sheet-card .addr { font-size: 13px; }

/* toasts */
.toasts { position: fixed; z-index: 80; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { background: linear-gradient(180deg, oklch(0.32 0.05 12), var(--ink)); color: var(--milk); border-radius: 14px; padding: 13px 16px; font-weight: 600; box-shadow: 0 18px 30px -14px oklch(0.15 0.05 12 / 0.8); animation: sheetin 220ms var(--ease); }
.toast a { color: var(--lemon); font-weight: 800; }
.toast.err { background: linear-gradient(180deg, oklch(0.58 0.19 25), var(--cherry)); }

/* GET card */
.get { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: oklch(0.2 0.05 12 / 0.45); padding: 20px; }
.get-card { width: min(380px, 100%); background: linear-gradient(180deg, oklch(0.99 0.008 18), var(--milk-2)); border-radius: 24px; padding: 30px 24px 24px; display: grid; gap: 14px; justify-items: center; text-align: center; box-shadow: 0 0 0 6px oklch(0.99 0.01 18 / 0.9), 0 0 0 7px var(--shell-dd), 0 40px 70px -24px oklch(0.15 0.08 14 / 0.8); position: relative; animation: getin 380ms var(--ease); }
.get-card .burst { position: absolute; top: -30px; font-family: var(--display); font-size: 42px; color: var(--ink); background: radial-gradient(circle at 40% 30%, var(--lemon-hi), var(--lemon) 60%); padding: 0 18px; border-radius: 14px; transform: rotate(-6deg); box-shadow: 0 5px 0 var(--lemon-dd); animation: stamp 420ms var(--ease); }
.get-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-top: 12px; box-shadow: 0 0 0 4px var(--milk), 0 0 0 5px var(--milk-3); }
.get-card h3 { font-size: 30px; }
@keyframes getin { from { transform: translateY(24px) scale(0.96); opacity: 0; } }

.tabbar { display: none; }

@media (max-width: 1180px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .howto { grid-column: 1 / -1; order: 3; transform: none; margin-top: 12px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .howto .btn { justify-self: start; }
  .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .targets { grid-template-columns: minmax(0, 1fr); }
  .coin-grid { grid-template-columns: minmax(0, 1fr); }
  .trade { position: static; }
}
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .under { order: 2; transform: none; margin-top: 30px; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shelf, .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .trow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .trow.head { display: none; }
  .trow .tcell { display: none; }
  .trow .tcell.keep { display: block; text-align: right; grid-column: 2; grid-row: 1; }
  .trow .pcell { grid-column: 1 / -1; grid-row: 2; }
  .plays, .faq { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mech-desk { display: none; }
  .split-list.mech-mobile { display: grid; }
}
@media (max-width: 760px) {
  .routes { display: none; }
  .brand-name { display: none; }
  .bar { gap: 10px; height: 58px; }
  .chip-chg { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, oklch(0.98 0.012 18), var(--milk-2)); box-shadow: 0 -10px 24px -14px oklch(0.3 0.1 14 / 0.6);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 700; text-decoration: none; padding: 5px 0; border-radius: 10px; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { background: linear-gradient(180deg, oklch(0.33 0.06 12), var(--ink)); color: var(--lemon); }
  .tabbar a[aria-current="page"] svg { stroke: var(--lemon); }
  main { padding-bottom: 76px; }
  .toasts { bottom: 90px; }
  .hero { padding-top: 12px; }
  .cabinet { padding: 0 10px 12px; border-radius: 26px 26px 18px 18px; }
  .marquee { margin: 0 -10px 12px; padding: 16px 14px 12px; border-radius: 26px 26px 6px 6px; }
  .marquee h1 { font-size: 34px; }
  .marquee-sub { font-size: 13px; margin-top: 4px; }
  .marquee-led { display: none; }
  .legend { gap: 4px 12px; font-size: 11.5px; margin-top: 10px; }
  .legend .lg-full { display: none; }
  .legend .lg-short { display: inline; }
  .readout { font-size: 14px; gap: 10px; margin-top: 12px; }
  .deck { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; margin-top: 10px; }
  .controls { justify-content: space-between; }
  .joy { width: 54px; height: 54px; }
  .led { padding: 5px 8px; }
  .deck-hint { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .topshelf { gap: 6px; padding: 8px 8px 12px; margin-bottom: 10px; }
  .ts-price { font-size: 11px; }
  .tg-row { grid-template-columns: minmax(0, 1fr); }
  .log-pic { width: 40px; height: 40px; }
  .stats, .coin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .tools .seg { width: 100%; display: flex; }
  .tools .seg button { flex: 1; padding: 0 6px; font-size: 13px; }
  .chart-wrap canvas { height: 240px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet { padding-top: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
