/* JELLY · INSERT COIN: the site is an arcade cabinet for the immortal jellyfish. Neon arcade carpet behind, a lit
   marquee, a CRT in a bezel (scanlines, glow, vignette), a control panel whose buttons are the real actions, then the
   other screens of the machine: hi-score (the live fees), character select, how to play, the game, game over. */
:root {
  --bg: #0b0716;
  --bg2: #140b26;
  --cab: #1d1033;
  --cab2: #2b1650;
  --cab3: #3d1f6e;
  --ink: #f4ecff;
  --dim: #b9a8dd;
  --mute: #8a78b8;
  --pink: #ff8fc8;
  --mag: #ff3fa4;
  --cyan: #3ff5ff;
  --yel: #ffe14d;
  --pur: #8b5cf6;
  --grn: #3ff5c8;
  --red: #ff4d6d;
  --scr: #0a0a24;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --term: "VT323", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--ink); font: 400 23px/1.25 var(--term); overflow-x: hidden; background-color: var(--bg);
  /* arcade carpet: little neon shapes on black */
  background-image:
    radial-gradient(1200px 700px at 50% -10%, rgba(139, 92, 246, .28), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke-width='3' opacity='.1'%3E%3Ccircle cx='30' cy='34' r='9' stroke='%23ff3fa4'/%3E%3Cpath d='M120 20l14 24h-28z' stroke='%233ff5ff'/%3E%3Cpath d='M60 120c10-12 20 12 30 0s20 12 30 0' stroke='%23ffe14d'/%3E%3Crect x='140' y='110' width='16' height='16' stroke='%238b5cf6' transform='rotate(20 148 118)'/%3E%3Cpath d='M20 150l10 10M30 150l-10 10' stroke='%233ff5c8'/%3E%3Ccircle cx='96' cy='78' r='3' fill='%23ff8fc8' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; image-rendering: pixelated; }
a { color: inherit; }
b { font-weight: 400; color: #fff; }
::selection { background: var(--mag); color: #fff; }

/* ---------------------------------------------------------------- buttons: pixel-bordered */
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 400 13px/1 var(--pixel); color: #1a0b2e; background: var(--yel); border: 0; padding: 15px 20px;
  box-shadow: 0 -4px 0 0 #1a0b2e inset, 4px 0 0 0 #1a0b2e, -4px 0 0 0 #1a0b2e, 0 4px 0 0 #1a0b2e, 0 -4px 0 0 #1a0b2e, 0 8px 0 0 #b88f00;
  margin: 4px; transition: transform .08s, box-shadow .08s, background .2s; }
.pbtn:hover { background: #fff27a; }
.pbtn:active { transform: translateY(4px); box-shadow: 0 -4px 0 0 #1a0b2e inset, 4px 0 0 0 #1a0b2e, -4px 0 0 0 #1a0b2e, 0 4px 0 0 #1a0b2e, 0 -4px 0 0 #1a0b2e; }
.pbtn-sm { font-size: 10px; padding: 11px 14px; }
.pbtn-ghost { background: var(--cyan); box-shadow: 0 -4px 0 0 #1a0b2e inset, 4px 0 0 0 #1a0b2e, -4px 0 0 0 #1a0b2e, 0 4px 0 0 #1a0b2e, 0 -4px 0 0 #1a0b2e, 0 8px 0 0 #148f96; }
.pbtn-ghost:hover { background: #9ffbff; }

/* ---------------------------------------------------------------- header: the lit strip */
.marquee-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(11, 7, 22, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 3px solid var(--cab3);
  box-shadow: 0 3px 0 #000; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 15px var(--pixel); color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 143, 200, .6); }
.logo img { width: 42px; height: auto; }
.marquee-bar nav { display: flex; gap: 22px; margin-left: auto; }
.marquee-bar nav a { font: 400 10px var(--pixel); color: var(--dim); text-decoration: none; padding: 6px 0; }
.marquee-bar nav a:hover { color: var(--yel); text-shadow: 0 0 8px rgba(255, 225, 77, .7); }
.xbtn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--ink); border: 2px solid var(--cab3);
  background: var(--cab); transition: background .2s, transform .2s; }
.xbtn svg { width: 16px; height: 16px; fill: currentColor; }
.xbtn:hover { background: var(--pur); transform: rotate(-8deg); }

main { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- the cabinet */
.cabinet { max-width: 1080px; margin: 34px auto 0; padding: 0 clamp(12px, 3vw, 24px); }
.cab-top { position: relative; border-radius: 22px 22px 0 0; padding: 14px 14px 0; background: linear-gradient(180deg, var(--cab3), var(--cab2));
  box-shadow: 0 0 0 3px #000, 0 -2px 30px rgba(255, 63, 164, .25); }
.cab-sign { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 8px; padding: 22px 16px 18px; border-radius: 12px 12px 4px 4px;
  background: radial-gradient(120% 140% at 50% 0%, #ff8fc8 0%, #ff3fa4 30%, #6b21c8 70%, #2b0d5c 100%); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35), inset 0 -10px 30px rgba(0, 0, 0, .35); }
.cab-sign::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 6px); pointer-events: none; }
.sign-t { font: 400 clamp(34px, 7vw, 64px)/1 var(--pixel); color: #fff; letter-spacing: .08em;
  text-shadow: 4px 4px 0 #1a0b2e, 0 0 18px rgba(255, 255, 255, .85), 0 0 46px rgba(255, 143, 200, .9); animation: sign 4s steps(1) infinite; }
.sign-sub { font: 400 clamp(8px, 1.3vw, 11px)/1.4 var(--pixel); color: #ffe6f4; letter-spacing: .12em; text-align: center; }
@keyframes sign { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } }

.cab-body { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; background: var(--cab2); box-shadow: 0 0 0 3px #000; }
.side { background:
  repeating-linear-gradient(135deg, var(--mag) 0 10px, transparent 10px 22px, var(--cyan) 22px 30px, transparent 30px 44px), var(--cab); opacity: .85;
  -webkit-mask: linear-gradient(180deg, #000, rgba(0, 0, 0, .4)); mask: linear-gradient(180deg, #000, rgba(0, 0, 0, .4)); }
.bezel { padding: 22px; background: linear-gradient(180deg, #120a22, #0b0616); box-shadow: inset 0 0 0 3px #000, inset 0 0 40px rgba(0, 0, 0, .8); }

/* the CRT: rounded glass, glow, scanlines, vignette */
.crt { position: relative; overflow: hidden; border-radius: 26px / 30px; background: radial-gradient(120% 100% at 50% 40%, #191446 0%, #0d0b2c 55%, #06051a 100%);
  box-shadow: inset 0 0 0 3px #000, inset 0 0 60px rgba(0, 0, 0, .75), 0 0 34px rgba(63, 245, 255, .08); }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px),
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, .55) 100%);
  mix-blend-mode: multiply; }
.crt::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 2;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07) 0%, transparent 30%); }

.attract { display: grid; justify-items: center; text-align: center; padding: 18px 20px 22px; min-height: 560px; animation: flicker 6s infinite; }
@keyframes flicker { 0%, 100% { filter: none; } 48% { filter: none; } 50% { filter: brightness(1.12) saturate(1.1); } 52% { filter: none; } }
.hud { width: 100%; display: flex; justify-content: space-between; gap: 10px; font: 400 clamp(8px, 1.2vw, 11px)/1.4 var(--pixel); color: var(--dim); }
.hud b { display: block; margin-top: 4px; color: var(--yel); }
.hud span:nth-child(2) b { color: var(--cyan); }
.inf { font-family: var(--term) !important; font-size: 2.6em !important; line-height: .5 !important; }
.title { display: flex; gap: .06em; margin: 26px 0 0; font: 400 clamp(46px, 10vw, 104px)/1 var(--pixel); }
.title span { display: inline-block; text-shadow: 5px 5px 0 #1a0b2e, 0 0 26px currentColor; animation: wave 1.6s ease-in-out infinite; }
.title span:nth-child(1) { color: var(--pink); } .title span:nth-child(2) { color: var(--yel); animation-delay: .1s; }
.title span:nth-child(3) { color: var(--cyan); animation-delay: .2s; } .title span:nth-child(4) { color: var(--grn); animation-delay: .3s; }
.title span:nth-child(5) { color: var(--mag); animation-delay: .4s; }
@keyframes wave { 50% { transform: translateY(-10px); } }
.tag { margin: 18px 0 0; font: 400 clamp(10px, 1.7vw, 15px)/1.5 var(--pixel); color: #fff; }
.tag em { font-style: normal; color: var(--pink); }

.sprite-stage { position: relative; width: clamp(170px, 26vw, 230px); aspect-ratio: 18 / 20; margin: 24px 0 8px; }
.spr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 22px rgba(255, 143, 200, .55)); }
.spr-a, .spr-b { animation: bob 2.4s ease-in-out infinite; }
.spr-a { animation-name: bob, fa; } .spr-b { animation-name: bob, fb; }
.spr-a, .spr-b { animation-duration: 2.4s, .8s; animation-timing-function: ease-in-out, steps(1); animation-iteration-count: infinite, infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes fa { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes fb { 0% { opacity: 0; } 50% { opacity: 1; } }
.spr-polyp { opacity: 0; transform: scale(.7); transition: opacity .2s, transform .4s; filter: drop-shadow(0 0 22px rgba(63, 245, 200, .55)); }
.stage-rev .spr-a, .stage-rev .spr-b { animation: none; opacity: 0 !important; transition: opacity .15s; }
.stage-rev .spr-polyp { opacity: 1; transform: scale(.85); }
.bubbles i { position: absolute; bottom: 10%; width: 8px; height: 8px; background: var(--cyan); opacity: 0; animation: bub 3.6s linear infinite; }
.bubbles i:nth-child(1) { left: 10%; } .bubbles i:nth-child(2) { left: 82%; animation-delay: .8s; width: 6px; height: 6px; }
.bubbles i:nth-child(3) { left: 30%; animation-delay: 1.7s; } .bubbles i:nth-child(4) { left: 64%; animation-delay: 2.4s; width: 4px; height: 4px; }
.bubbles i:nth-child(5) { left: 48%; animation-delay: 3s; width: 6px; height: 6px; }
@keyframes bub { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translateY(-260px); opacity: 0; } }
.press { margin-top: 14px; font: 400 clamp(12px, 2vw, 18px)/1 var(--pixel); color: var(--yel); text-decoration: none; padding: 10px 6px;
  text-shadow: 0 0 14px rgba(255, 225, 77, .8); animation: blink 1.1s steps(1) infinite; }
.press:hover { color: #fff; }
@keyframes blink { 50% { opacity: 0; } }
.copy-line { margin: 22px 0 0; font: 400 clamp(7px, 1vw, 9px)/1.6 var(--pixel); color: var(--mute); letter-spacing: .06em; }

/* the control panel */
.panel { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 26px 30px;
  background: linear-gradient(180deg, var(--cab3) 0%, var(--cab2) 60%, var(--cab) 100%); border-radius: 0 0 22px 22px;
  box-shadow: 0 0 0 3px #000, 0 24px 50px -20px rgba(0, 0, 0, .9); }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--mag) 0 24px, var(--cyan) 24px 48px, var(--yel) 48px 72px); opacity: .8; }
.stick { position: relative; justify-self: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 55%, #0d0618 0 34%, #2a1748 35% 100%);
  box-shadow: inset 0 0 0 3px #000, 0 4px 0 #000; }
.stick::before { content: ""; position: absolute; left: 50%; bottom: 46%; width: 12px; height: 46px; transform: translateX(-50%); background: linear-gradient(90deg, #888, #ddd, #777); border: 2px solid #000; }
.stick i { position: absolute; left: 50%; top: -14px; width: 40px; height: 40px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd1ea, var(--mag) 55%, #8c1458); border: 3px solid #000; animation: stick 3s ease-in-out infinite; }
@keyframes stick { 25% { transform: translateX(-70%) rotate(-8deg); } 75% { transform: translateX(-30%) rotate(8deg); } }
.panel-mid { min-width: 0; }
.coin { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #07040f; border: 3px solid #000; border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--cab3); }
.coin-l { flex: none; font: 400 8px/1.5 var(--pixel); color: var(--yel); max-width: 64px; }
.coin code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 22px var(--term); color: var(--dim); }
.coin.live code { color: var(--grn); }
.socials { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.socials:empty { display: none; }
.socials a { font: 400 10px var(--pixel); color: var(--cyan); text-decoration: none; padding: 6px 0; }
.socials a:hover { color: var(--yel); }
.buttons { display: flex; gap: 14px; }
.abtn { display: grid; justify-items: center; gap: 8px; text-decoration: none; }
.abtn i { display: block; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #000; box-shadow: 0 6px 0 #000, inset 0 -6px 0 rgba(0, 0, 0, .25);
  transition: transform .08s, box-shadow .08s; }
.abtn span { font: 400 9px var(--pixel); color: var(--dim); }
.abtn:hover i { filter: brightness(1.15); }
.abtn:active i { transform: translateY(5px); box-shadow: 0 1px 0 #000, inset 0 -3px 0 rgba(0, 0, 0, .25); }
.abtn.red i { background: radial-gradient(circle at 35% 30%, #ffb3c2, var(--red) 55%, #9c1530); }
.abtn.yel i { background: radial-gradient(circle at 35% 30%, #fff6b8, var(--yel) 55%, #a37f00); }
.abtn.cyan i { background: radial-gradient(circle at 35% 30%, #d8fdff, var(--cyan) 55%, #0b8a91); }

/* ---------------------------------------------------------------- continue? */
.continue { max-width: 1080px; margin: 60px auto 0; padding: 0 clamp(12px, 3vw, 24px); }
.cont-in { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 22px; border: 3px dashed var(--cab3); border-radius: 16px; }
.cont-spr { width: 76px; transition: transform .3s; }
.cont-q { margin: 0; font: 400 clamp(18px, 3.4vw, 34px)/1.2 var(--pixel); color: #fff; }
.cont-q b { color: var(--yel); text-shadow: 0 0 16px rgba(255, 225, 77, .8); display: inline-block; min-width: 1.2em; }
.cont-sub { margin: 8px 0 0; color: var(--dim); font-size: 24px; }
.cont-in.go .cont-q b { color: var(--grn); }

/* ---------------------------------------------------------------- the other screens */
.screen-sec { max-width: 1080px; margin: 0 auto; padding: 84px clamp(12px, 3vw, 24px) 0; }
.sec-h { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font: 400 clamp(20px, 3.4vw, 32px)/1.2 var(--pixel); color: var(--yel);
  text-shadow: 4px 4px 0 #1a0b2e, 0 0 22px rgba(255, 225, 77, .45); }
.sec-sub { margin: 0 0 26px; max-width: 760px; color: var(--dim); font-size: 25px; }
.sec-sub b { color: var(--pink); }
.lbl { display: block; font: 400 10px/1.5 var(--pixel); color: var(--cyan); letter-spacing: .06em; }
.blink-dot { width: 14px; height: 14px; background: var(--mute); flex: none; }
.blink-dot.on { background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1s steps(1) infinite; }

.board { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; }
.board-top { position: relative; z-index: 1; padding: 30px 30px 26px; border-right: 3px solid rgba(0, 0, 0, .6); }
.big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 16px 0 6px; font: 400 clamp(38px, 6.4vw, 66px)/1 var(--pixel); color: var(--yel);
  text-shadow: 5px 5px 0 #1a0b2e, 0 0 28px rgba(255, 225, 77, .55); font-variant-numeric: tabular-nums; }
.big small { font: 400 14px var(--pixel); color: var(--pink); text-shadow: none; }
.bump .big { animation: bump .5s steps(3); }
.board.bump .big { animation: bump .5s steps(3); }
@keyframes bump { 50% { color: #fff; transform: scale(1.04); } }
.usd { color: var(--dim); font-size: 24px; }
.level { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.lv { font: 400 10px var(--pixel); color: var(--grn); flex: none; }
.lvbar { flex: 1; height: 18px; border: 3px solid #000; background: #07040f; box-shadow: inset 0 0 0 2px var(--cab3); padding: 2px; }
.lvbar div { height: 100%; width: 3%; background: repeating-linear-gradient(90deg, var(--grn) 0 10px, transparent 10px 13px); transition: width 1.2s steps(12); }
.next { display: block; margin-top: 10px; font: 400 9px/1.6 var(--pixel); color: var(--mute); }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.stats div { display: grid; gap: 10px; align-content: center; padding: 18px 22px; border-bottom: 3px solid rgba(0, 0, 0, .6); border-right: 3px solid rgba(0, 0, 0, .6); }
.stats div:nth-child(2n) { border-right: 0; }
.stats div:nth-child(n+3) { border-bottom: 0; }
.stats span { font: 400 9px/1.5 var(--pixel); color: var(--mute); }
.stats b { font: 400 clamp(14px, 1.8vw, 18px)/1.2 var(--pixel); color: #fff; font-variant-numeric: tabular-nums; }

.two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.table { padding: 22px 22px 16px; }
.t-h, #feed li { position: relative; z-index: 1; display: grid; grid-template-columns: 48px 70px 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.t-h { padding-bottom: 10px; border-bottom: 3px solid rgba(255, 255, 255, .08); font: 400 8px var(--pixel); color: var(--cyan); }
#feed { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
#feed li { padding: 8px 0; border-bottom: 2px dashed rgba(255, 255, 255, .06); font-size: 24px; }
#feed li.empty { display: block; padding: 22px 0; text-align: center; font: 400 10px/1.8 var(--pixel); color: var(--mute); animation: blink 1.4s steps(1) infinite; }
#feed .rk { font: 400 10px var(--pixel); color: var(--mute); }
#feed .nm { font: 400 12px var(--pixel); color: #fff; }
#feed .mv { font: 400 9px var(--pixel); }
#feed .buy .mv { color: var(--grn); }
#feed .sell .mv { color: var(--mag); }
#feed .amt { color: var(--ink); }
#feed .amt small { color: var(--mute); }
#feed .bonus { color: var(--yel); }
#feed li:first-child .rk { color: var(--yel); }
.t-foot { position: relative; z-index: 1; margin: 12px 0 0; font: 400 8px/1.6 var(--pixel); color: var(--mute); text-align: center; }
.calc { padding: 22px; display: grid; gap: 10px; align-content: start; }
.calc > * { position: relative; z-index: 1; }
.calc label { font: 400 9px var(--pixel); color: var(--dim); margin-top: 4px; }
#calc-in { width: 100%; font: 400 32px var(--term); color: var(--yel); background: #07040f; border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--cab3);
  padding: 8px 12px; outline: none; }
#calc-in:focus { box-shadow: inset 0 0 0 2px var(--yel); }
#calc-rg { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
#calc-rg::-webkit-slider-runnable-track { height: 8px; background: var(--cab3); border: 2px solid #000; }
#calc-rg::-moz-range-track { height: 8px; background: var(--cab3); border: 2px solid #000; }
#calc-rg::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; background: var(--pink); border: 3px solid #000; }
#calc-rg::-moz-range-thumb { width: 16px; height: 16px; background: var(--pink); border: 3px solid #000; border-radius: 0; }
.c-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c-out div { display: grid; gap: 8px; padding: 10px; background: rgba(0, 0, 0, .3); border: 2px solid rgba(255, 255, 255, .06); }
.c-out span { font: 400 7px/1.5 var(--pixel); color: var(--mute); }
.c-out b { font: 400 13px var(--pixel); color: var(--grn); overflow-wrap: anywhere; }
.fine { margin: 4px 0 0; color: var(--mute); font-size: 19px; }

/* character select */
.roster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.char { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 26px; box-shadow: inset 0 0 0 3px #000, inset 0 0 60px rgba(0, 0, 0, .75), 0 0 0 3px var(--yel), 0 0 30px rgba(255, 225, 77, .2); }
.char > * { position: relative; z-index: 1; }
.char-art { display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(139, 92, 246, .14) 0 8px, transparent 8px 16px); border: 3px solid #000; }
.char-art img { width: 82%; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255, 143, 200, .5)); }
.char-name { margin: 0; font: 400 22px var(--pixel); color: #fff; }
.char-name small { font-size: 10px; color: var(--yel); vertical-align: middle; margin-left: 6px; }
.char-class { margin: 8px 0 14px; font: 400 9px var(--pixel); color: var(--pink); }
.bars { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 74px; gap: 10px; align-items: center; }
.bars span { font: 400 8px var(--pixel); color: var(--dim); }
.bars i { position: relative; height: 12px; background: #07040f; border: 2px solid #000; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 10px); }
.bars b { font: 400 9px var(--pixel); color: var(--yel); text-align: right; }
.move { margin: 10px 0 0; font-size: 21px; color: var(--dim); }
.move b { display: block; margin-bottom: 4px; font: 400 9px/1.5 var(--pixel); color: var(--grn); }
.move.weak b { color: var(--red); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { padding: 18px 16px; }
.fact > * { position: relative; z-index: 1; }
.fact span { display: inline-block; font: 400 8px var(--pixel); color: #1a0b2e; background: var(--grn); padding: 4px 6px; }
.fact.lore span { background: var(--pink); }
.fact p { margin: 12px 0 0; font-size: 22px; color: var(--dim); }
.fact b { color: #fff; }

/* how to play */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stages li { padding: 20px 18px 22px; }
.stages li > * { position: relative; z-index: 1; }
.st { font: 400 8px var(--pixel); color: var(--mag); }
.stages h3 { margin: 12px 0 8px; font: 400 13px/1.4 var(--pixel); color: #fff; }
.stages p { margin: 0; color: var(--dim); font-size: 22px; }

/* the game */
.arena { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; align-items: start; }
.bezel-game { border-radius: 22px; box-shadow: 0 0 0 3px #000, inset 0 0 0 3px #000; background: linear-gradient(180deg, var(--cab3), var(--cab)); padding: 16px; }
.game { aspect-ratio: 4 / 3; touch-action: none; user-select: none; }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.g-hud { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 8px; padding: 14px 18px;
  font: 400 clamp(7px, 1.1vw, 10px)/1.4 var(--pixel); color: var(--dim); pointer-events: none; }
.g-hud b { color: var(--yel); }
.g-over { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center;
  background: rgba(6, 5, 26, .78); }
.g-over img { width: 90px; animation: bob 2.4s ease-in-out infinite; }
.g-title { margin: 0; font: 400 clamp(16px, 2.6vw, 24px)/1.3 var(--pixel); color: var(--yel); }
.g-msg { margin: 0; max-width: 420px; font: 400 clamp(8px, 1.1vw, 10px)/1.8 var(--pixel); color: var(--dim); }
.g-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.g-side { padding: 22px; display: grid; gap: 10px; align-content: start; }
.g-side > * { position: relative; z-index: 1; }
.g-best { font: 400 38px/1.2 var(--pixel); color: var(--yel); margin-bottom: 10px; }
.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ranks li { display: flex; gap: 10px; font: 400 8px/2 var(--pixel); color: var(--mute); }
.ranks li b { width: 44px; color: inherit; }
.ranks li.got { color: var(--grn); }
.ranks li.got::after { content: "★"; margin-left: auto; color: var(--yel); }

/* game over */
.final { max-width: 1080px; margin: 0 auto; padding: 110px clamp(12px, 3vw, 24px) 40px; text-align: center; }
.final-t { margin: 0; font: 400 clamp(30px, 7vw, 72px)/1.1 var(--pixel); color: var(--red); text-shadow: 6px 6px 0 #1a0b2e, 0 0 30px rgba(255, 77, 109, .6); }
.final-s { margin: 18px 0 30px; font: 400 clamp(11px, 1.8vw, 16px)/1.6 var(--pixel); color: #fff; }
.final-s em { font-style: normal; color: var(--grn); animation: blink 1.1s steps(1) infinite; }
.final-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.foot { max-width: 1080px; margin: 0 auto; padding: 30px clamp(12px, 3vw, 24px) 50px; border-top: 3px dashed var(--cab3); color: var(--dim); font-size: 21px; text-align: center; }
.foot p { margin: 0 0 8px; }
.dim { color: var(--mute); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px);
  padding: 12px 16px; font: 400 10px/1.6 var(--pixel); color: #1a0b2e; background: var(--yel); box-shadow: 0 0 0 3px #000, 6px 6px 0 #000; transition: .2s steps(3); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .5s steps(5), transform .5s steps(5); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .marquee-bar nav { display: none; }
  .marquee-bar .xbtn { margin-left: auto; }
  .marquee-bar .xbtn[hidden] + .pbtn { margin-left: auto; }
  .cab-body { grid-template-columns: 18px minmax(0, 1fr) 18px; }
  .panel { grid-template-columns: minmax(0, 1fr) auto; }
  .stick { display: none; }
  .board, .two, .roster { grid-template-columns: minmax(0, 1fr); }
  .board-top { border-right: 0; border-bottom: 3px solid rgba(0, 0, 0, .6); }
  .stages { grid-template-columns: 1fr 1fr; }
  .arena { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 21px; }
  .marquee-bar { padding: 8px 12px; gap: 10px; }
  .logo span { display: none; }
  .cabinet { margin-top: 18px; padding: 0 10px; }
  .cab-body { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .bezel { padding: 10px; }
  .attract { min-height: 0; padding: 14px 12px 18px; }
  .hud { font-size: 7px; }
  .title { margin-top: 18px; }
  .panel { grid-template-columns: minmax(0, 1fr); padding: 22px 14px 24px; gap: 18px; }
  .buttons { justify-content: center; }
  .coin { flex-wrap: wrap; }
  .coin-l { max-width: none; }
  .coin code { flex-basis: 100%; font-size: 19px; }
  .cont-in { gap: 16px; padding: 16px; }
  .cont-spr { width: 52px; }
  .screen-sec { padding-top: 64px; }
  .board-top { padding: 22px 18px; }
  .stats div { padding: 14px; }
  .t-h, #feed li { grid-template-columns: 30px 52px 44px minmax(0, 1fr) auto; gap: 6px; }
  #feed li { font-size: 20px; }
  #feed .nm { font-size: 9px; }
  #feed .mv { font-size: 7px; }
  .c-out { grid-template-columns: minmax(0, 1fr); }
  .char { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .char-art { max-width: 220px; justify-self: center; width: 100%; }
  .bars li { grid-template-columns: 46px minmax(0, 1fr) 62px; }
  .facts, .stages { grid-template-columns: minmax(0, 1fr); }
  .bezel-game { padding: 8px; }
  .game { aspect-ratio: 3 / 4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .spr-b { opacity: 0; }
  .js .rv { opacity: 1; transform: none; }
}
