﻿:root {
  --ink: #1a0b2e;
  --bg: #170a36;
  --bg2: #22104d;
  --pink: #ff3d8b;
  --pink-d: #d11f6c;
  --cyan: #25d9ff;
  --yellow: #ffd23f;
  --orange: #ffb627;
  --purple: #7a3cff;
  --red: #ff4b3e;
  --green: #3dff8b;
  --text: #f6f0ff;
  --muted: #b3a6d9;
  --pixel: 'Press Start 2P', monospace;
  --display: 'Bungee', 'Rubik', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.5 'Rubik', system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 61, 139, .35), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(37, 217, 255, .18), transparent 60%),
    linear-gradient(rgba(122, 60, 255, .09) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(122, 60, 255, .09) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  min-height: 100vh; overflow-x: hidden;
}
.crt {
  pointer-events: none; position: fixed; inset: 0; z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
a { color: var(--cyan); }
.pixel { font-family: var(--pixel); letter-spacing: .02em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  font: 400 15px/1 var(--display); letter-spacing: .04em; color: var(--ink); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border: 3px solid var(--ink); border-radius: 0; background: var(--yellow);
  box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.small { padding: 9px 14px; font-size: 13px; border-radius: 0; }
.btn.coin { background: var(--yellow); }
.btn.pink { background: var(--pink); color: #fff; }
.btn.ghost { background: #fff; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2)); background: rgba(23, 10, 54, .85); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 rgba(255, 61, 139, .35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { border-radius: 0; border: 3px solid var(--ink); }
.word { font: 26px/1 var(--display); color: #fff; text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--ink); }
.badge { font: 9px/1 var(--pixel); padding: 6px 7px; border-radius: 0; background: var(--cyan); color: var(--ink); border: 2px solid var(--ink); }
.badge.live { background: var(--green); }
.nav { display: flex; gap: 22px; margin-left: auto; font: 500 15px 'Rubik'; }
.nav a, .nav .linkbtn { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav .linkbtn:hover { color: #fff; }
.me { display: flex; gap: 10px; align-items: center; }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px 60px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: 50px 0 30px; }
.hero h1 { font: 58px/1.02 var(--display); margin: 14px 0 16px; text-shadow: 4px 4px 0 var(--ink); }
.hl { color: var(--yellow); text-shadow: 4px 4px 0 var(--pink-d), 7px 7px 0 var(--ink); }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 24px; }
.blink { animation: blink 1.1s steps(1) infinite; color: var(--pink); font-size: 12px; margin: 0; }
@keyframes blink { 50% { opacity: .25; } }
.potbox {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0; background: var(--ink); border: 3px solid var(--ink);
  border-radius: 0; overflow: hidden; box-shadow: 0 7px 0 #0b0418, 0 0 40px rgba(255, 210, 63, .18); max-width: 620px;
}
.potbox > div { padding: 16px 18px; background: var(--bg2); position: relative; }
.potbox > div + div { border-left: 3px solid var(--ink); }
.label { display: block; font-size: 9px; color: var(--muted); margin-bottom: 10px; }
.pot { font: 36px/1 var(--display); color: var(--yellow); text-shadow: 3px 3px 0 var(--pink-d); }
.sol { font: 14px var(--display); color: var(--yellow); margin-left: 6px; }
.clock, .split { font: 24px/1.5 var(--pixel); color: #fff; }
.split { font-size: 16px; line-height: 2.2; color: var(--cyan); }
.tag { font: 8px var(--pixel); background: var(--pink); color: #fff; padding: 4px 6px; border-radius: 0; position: absolute; top: 12px; right: 12px; }
.stats { display: flex; gap: 22px; margin-top: 18px; font-size: 10px; color: var(--muted); flex-wrap: wrap; }
.stats b { color: var(--green); }
.hero-art { display: grid; place-items: center; }
.mascot { width: min(340px, 80%); height: auto; border-radius: 0; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink), 0 0 80px rgba(255, 61, 139, .5);
  animation: bob 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

/* ---------- cabinets ---------- */
.sec { font-size: 14px; color: var(--yellow); margin: 30px 0 18px; text-shadow: 2px 2px 0 var(--ink); }
.cabinets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cab {
  --c: var(--pink);
  position: relative; background: var(--bg2); border: 3px solid var(--ink); border-radius: 0; overflow: hidden;
  box-shadow: 0 8px 0 var(--ink); display: flex; flex-direction: column; transition: transform .15s;
}
.cab:hover { transform: translateY(-4px) rotate(-.4deg); }
.cab .marq { background: var(--c); border-bottom: 3px solid var(--ink); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.cab .marq b { font: 18px var(--display); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.cab .marq span { font: 8px var(--pixel); background: var(--ink); color: var(--yellow); padding: 5px 7px; border-radius: 0; }
.cab .screen {
  margin: 16px 16px 0; height: 150px; border-radius: 0; border: 3px solid var(--ink); background: linear-gradient(#3d2bb8, #1d1466);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.cab .screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .18) 2px 4px); }
.cab .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cab .body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.cab .q { font: 9px var(--pixel); color: var(--green); }
.cab .btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.cab .btns .btn { padding: 12px 10px; font-size: 13px; }
.cab.c4 { --c: var(--cyan); } .cab.c4 .marq b { color: var(--ink); text-shadow: 2px 2px 0 #fff; }
.cab.rps { --c: var(--purple); }

/* mini previews */
.mini-ttt { display: grid; grid-template-columns: repeat(3, 30px); gap: 5px; }
.mini-ttt i { width: 30px; height: 30px; background: rgba(255, 255, 255, .08); border-radius: 0; display: grid; place-items: center; font: 14px var(--pixel); font-style: normal; }
.mini-c4 { display: grid; grid-template-columns: repeat(7, 16px); gap: 4px; padding: 7px; background: #2a62ff; border-radius: 0; border: 2px solid var(--ink); }
.mini-c4 i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.mini-rps { display: flex; gap: 14px; font-size: 44px; filter: drop-shadow(3px 3px 0 var(--ink)); }
.mini-rps span:nth-child(2) { animation: bob 1.4s ease-in-out infinite; }
.x { color: var(--pink); } .o { color: var(--cyan); }
.d0 { background: var(--pink) !important; } .d1 { background: var(--yellow) !important; }

/* ---------- panels ---------- */
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 44px; }
.panel { background: var(--bg2); border: 3px solid var(--ink); border-radius: 0; padding: 20px; box-shadow: 0 7px 0 var(--ink); }
.panel h2 { font-size: 13px; color: var(--yellow); margin: 0 0 16px; line-height: 1.6; }
.panel h2 small { font-size: 8px; color: var(--muted); margin-left: 6px; }
.hs { width: 100%; border-collapse: collapse; font-family: var(--pixel); font-size: 11px; }
.hs th { color: var(--muted); font-weight: 400; font-size: 8px; text-align: left; padding: 6px 8px; }
.hs td { padding: 10px 8px; border-top: 2px dashed rgba(179, 166, 217, .18); }
.hs td:last-child, .hs th:last-child { text-align: right; color: var(--yellow); }
.hs tr.r1 td { color: var(--yellow); } .hs tr.r2 td { color: #e8e8ff; } .hs tr.r3 td { color: var(--orange); }
.hs tr.me td { background: rgba(255, 61, 139, .15); }
.empty { color: var(--muted); font: 10px var(--pixel); text-align: center; padding: 18px !important; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feed li { background: rgba(0, 0, 0, .2); border-radius: 0; padding: 10px 12px; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feed .g { font: 8px var(--pixel); padding: 4px 6px; border-radius: 0; background: var(--pink); color: #fff; }
.feed .g.c4 { background: var(--cyan); color: var(--ink); } .feed .g.rps { background: var(--purple); }
.feed .w { color: var(--green); font-weight: 700; }
.feed .t { margin-left: auto; color: var(--muted); font-size: 12px; }
.feed .ns { color: var(--muted); font-size: 12px; }
.last { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(179, 166, 217, .25); font-size: 14px; color: var(--muted); }
.last b { color: var(--yellow); }
.how { margin-top: 44px; }
.how ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.how li::marker { color: var(--pink); font-family: var(--pixel); font-size: 11px; }
.fine { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.foot { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 9px; color: var(--muted); padding: 30px 16px 40px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(12, 4, 30, .88); backdrop-filter: blur(6px); overflow-y: auto; }
.queuebox { text-align: center; display: grid; gap: 14px; justify-items: center; }
.queuebox .blink { font-size: 14px; color: var(--yellow); }
.spinmascot { border-radius: 0; border: 3px solid var(--ink); animation: wiggle .5s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-6deg); } to { transform: rotate(6deg) translateY(-6px); } }

.arena { width: min(640px, 100%); display: grid; gap: 14px; justify-items: center; position: relative; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; width: 100%; }
.vs { font-size: 26px; color: var(--yellow); text-shadow: 3px 3px 0 var(--pink-d), 5px 5px 0 var(--ink); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.pcard { border: 3px solid var(--ink); border-radius: 0; padding: 10px 14px; display: grid; gap: 4px; box-shadow: 0 5px 0 var(--ink); position: relative; transition: transform .2s, box-shadow .2s; }
.pcard .tag { position: static; justify-self: start; background: var(--ink); }
.pcard .pname { font: 15px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pmark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 22px var(--pixel); }
.pcard.seat0 { background: var(--pink); color: #fff; }
.pcard.seat1 { background: var(--cyan); color: var(--ink); }
.pcard.seat1 .tag { color: var(--cyan); }
.pcard.turn { transform: translateY(-4px); box-shadow: 0 9px 0 var(--ink), 0 0 0 4px var(--yellow); }
.timer { width: 100%; height: 12px; border: 3px solid var(--ink); border-radius: 0; background: var(--ink); overflow: hidden; }
.bar { height: 100%; width: 100%; background: var(--green); transform-origin: left; }
.bar.low { background: var(--red); }
.status { font-size: 12px; min-height: 1.6em; margin: 4px 0; text-align: center; color: var(--yellow); line-height: 1.6; }
.resign { color: var(--muted); font-size: 13px; text-decoration: underline; }

.board { display: grid; }
.board.ttt { grid-template-columns: repeat(3, min(110px, 27vw)); gap: 10px; }
.cell {
  aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 0; background: var(--bg2); cursor: pointer;
  font: min(54px, 13vw)/1 var(--pixel); display: grid; place-items: center; box-shadow: 0 5px 0 var(--ink); transition: transform .08s;
  color: inherit; padding: 0;
}
.cell:hover:enabled { transform: translateY(-2px); background: #2e1866; }
.cell:disabled { cursor: default; }
.cell.win { background: var(--yellow); animation: pulse .6s ease-in-out infinite; }
.cell.last { box-shadow: 0 5px 0 var(--ink), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.cell.s0 { color: var(--pink); } .cell.s1 { color: var(--cyan); }
.cell.win.s0, .cell.win.s1 { color: var(--ink); }

.board.c4 { grid-template-columns: repeat(7, min(62px, 12vw)); gap: 7px; padding: 12px; background: #2a62ff; border: 3px solid var(--ink); border-radius: 0; box-shadow: 0 7px 0 var(--ink); }
.slot { aspect-ratio: 1; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); padding: 0; cursor: pointer; }
.board.c4.mine .slot:not(.s0):not(.s1).col-hover { background: #3a3a8a; }
.slot.s0 { background: var(--pink); } .slot.s1 { background: var(--yellow); }
.slot.drop { animation: drop .35s cubic-bezier(.4, 1.6, .6, 1); }
@keyframes drop { from { transform: translateY(-260px); } }
.slot.win { box-shadow: 0 0 0 4px #fff; animation: pulse .6s ease-in-out infinite; }
.slot:disabled { cursor: default; }

.board.rps { gap: 16px; justify-items: center; width: 100%; }
.score { display: flex; align-items: center; gap: 22px; font: 34px var(--pixel); }
.score .s0 { color: var(--pink); } .score .s1 { color: var(--cyan); }
.reveal { display: flex; gap: 30px; align-items: center; font-size: 64px; min-height: 90px; filter: drop-shadow(4px 4px 0 var(--ink)); }
.reveal small { font: 10px var(--pixel); color: var(--muted); filter: none; }
.reveal .pop { animation: popin .35s cubic-bezier(.4, 1.8, .6, 1); }
@keyframes popin { from { transform: scale(.2) rotate(-30deg); } }
.picks { display: flex; gap: 14px; }
.pick { font-size: 50px; width: 104px; height: 104px; border: 3px solid var(--ink); border-radius: 0; background: #fff; cursor: pointer; box-shadow: 0 6px 0 var(--ink); transition: transform .08s; }
.pick:hover:enabled { transform: translateY(-3px) rotate(-4deg); }
.pick.on { background: var(--yellow); transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.pick:disabled:not(.on) { opacity: .45; cursor: default; }
.history { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.history span { font: 8px var(--pixel); padding: 5px 7px; border-radius: 0; background: rgba(0, 0, 0, .3); }
.history .w0 { background: var(--pink); color: #fff; } .history .w1 { background: var(--cyan); color: var(--ink); }

.result { text-align: center; display: grid; gap: 8px; justify-items: center; }
.bigtxt { font: 48px/1.1 var(--display); margin: 0; color: var(--yellow); text-shadow: 4px 4px 0 var(--pink-d), 8px 8px 0 var(--ink); animation: popin .4s cubic-bezier(.4, 1.8, .6, 1); }
.bigtxt.lose { color: #c9c2e6; text-shadow: 4px 4px 0 #4b3d7a, 8px 8px 0 var(--ink); }
.result p { margin: 0 0 8px; color: var(--muted); }
.result .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.sheet { width: min(720px, 100%); max-height: 88vh; overflow-y: auto; position: relative; }
.sheet h3 { font: 14px var(--display); color: var(--cyan); margin: 22px 0 10px; }
.close { position: absolute; top: 14px; right: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 0; width: 36px; height: 36px; cursor: pointer; font-weight: 900; }
.ptotals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ptotals div { background: rgba(0, 0, 0, .25); border-radius: 0; padding: 12px; }
.ptotals b { display: block; font: 20px var(--display); color: var(--yellow); }
.ptotals span { font: 8px var(--pixel); color: var(--muted); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 120; background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 0; padding: 12px 18px; box-shadow: 0 5px 0 var(--ink); font-weight: 500; max-width: min(520px, calc(100vw - 32px)); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-art { order: -1; } .mascot { width: 200px; }
  .hero h1 { font-size: 40px; }
  .cabinets, .cols { grid-template-columns: 1fr; }
  .nav { display: none; }
  .me { margin-left: auto; }
}
@media (max-width: 560px) {
  .potbox { grid-template-columns: 1fr 1fr; }
  .potbox > div:first-child { grid-column: 1 / -1; }
  .potbox > div:nth-child(2) { border-left: 0; border-top: 3px solid var(--ink); }
  .potbox > div:nth-child(3) { border-top: 3px solid var(--ink); }
  .word { font-size: 20px; } .badge { display: none; }
  #buyBtn { display: none; }
  .bigtxt { font-size: 36px; }
  .pick { width: 84px; height: 84px; font-size: 40px; }
  .pcard .pmark { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- pixel art ---------- */
canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; width: 100%; height: auto; }
.hero-art canvas.px { width: min(400px, 90%); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink), 0 0 80px rgba(255, 61, 139, .45); }
.cab canvas.px { border-bottom: 3px solid var(--ink); cursor: pointer; }
.cab:hover canvas.px { filter: brightness(1.12); }
.brand img, .spinmascot { image-rendering: pixelated; }
.btn { box-shadow: 0 5px 0 var(--ink), inset -3px -3px 0 rgba(0, 0, 0, .18); }
.word { font-family: var(--pixel); font-size: 18px; text-shadow: 3px 3px 0 var(--pink), 5px 5px 0 var(--ink); }
.hero h1 { font-family: var(--pixel); font-size: 38px; line-height: 1.3; }
.bigtxt { font-family: var(--pixel); font-size: 34px; line-height: 1.3; }
@media (max-width: 900px) { .hero h1 { font-size: 24px; } .hero-art canvas.px { width: 240px; } }
@media (max-width: 560px) { .bigtxt { font-size: 22px; } .word { font-size: 14px; } }
.cab .gname { font-size: 12px; color: #fff; line-height: 1.5; }


.pmark.disc { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); }
.pmark.disc.d0 { background: var(--pink); box-shadow: 0 0 0 2px #fff; } .pmark.disc.d1 { background: var(--yellow); }

/* ---------- new games ---------- */
.feed .g.bs { background: #ff9f1c; color: var(--ink); } .feed .g.dots { background: var(--yellow); color: var(--ink); } .feed .g.draw { background: var(--red); }
.cab.bs { --c: #1f5fa8; } .cab.dots { --c: #c2410c; } .cab.draw { --c: #2d6a2f; }

.board.bs { grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
.sea p { font-size: 9px; color: var(--muted); margin: 0 0 8px; text-align: center; line-height: 1.6; }
.sea .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 8px; background: #0b3a6e; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.sq { aspect-ratio: 1; border: 2px solid #072549; background: #14528f; padding: 0; cursor: pointer; position: relative; }
.sq:hover:enabled { background: #2a7bd0; }
.sq:disabled { cursor: default; }
.sq.ship { background: #8f93ad; }
.sq.miss::after { content: ''; position: absolute; inset: 35%; background: #fff; }
.sq.hit { background: var(--red); animation: pulse .5s ease-in-out 2; }
.sq.hit::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 12px var(--pixel); }
.sea.mine .grid { opacity: .92; }

.dotgrid { display: grid; grid-template-columns: repeat(3, 16px min(76px, 17vw)) 16px; grid-template-rows: repeat(3, 16px min(76px, 17vw)) 16px; padding: 16px; background: var(--bg2); border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); }
.dot { background: #fff; border: 3px solid var(--ink); }
.edge { border: 0; padding: 0; background: rgba(255, 255, 255, .06); cursor: pointer; }
.edge.h { margin: 4px 0; } .edge.v { margin: 0 4px; }
.edge:hover:enabled { background: rgba(255, 210, 63, .6); }
.edge:disabled { cursor: default; }
.edge.s0 { background: var(--pink); } .edge.s1 { background: var(--cyan); }
.edge.last { box-shadow: 0 0 0 2px #fff; }
.box.s0 { background: rgba(255, 61, 139, .45); } .box.s1 { background: rgba(37, 217, 255, .4); }

.board.draw { gap: 14px; justify-items: center; width: 100%; }
.drawpad { width: min(360px, 80vw); aspect-ratio: 1.6; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); font: 34px var(--pixel); color: #fff; cursor: pointer; user-select: none; touch-action: manipulation; }
.drawpad.wait { background: #8a1c1c; color: #ffb3ad; }
.drawpad.go { background: #1fbf4a; animation: popin .15s ease-out; }
.drawpad:disabled { cursor: default; }
.drawinfo { font-size: 10px; color: var(--yellow); text-align: center; line-height: 1.7; margin: 0; min-height: 2em; }
@media (max-width: 560px) { .board.bs { grid-template-columns: 1fr; } }

/* ---------- splash: the arcade hall ---------- */
body.splashing { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 90; background: #120a24; overflow: hidden; transition: opacity .45s ease .45s; }
.splash .hall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transform-origin: 50% 46%; transition: transform .9s cubic-bezier(.6, 0, .9, .4), filter .9s; }
.splash::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(8, 3, 20, .65)); }
.splash-ui { position: absolute; left: 0; right: 0; bottom: max(3vh, 16px); z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 0 16px; text-align: center; }
.splash-sub { margin: 0; font-size: clamp(8px, 1.4vw, 13px); color: #fff; text-shadow: 2px 2px 0 var(--ink); background: rgba(18, 10, 36, .7); padding: 8px 12px; }
.playbtn {
  font: clamp(20px, 3.4vw, 34px)/1 var(--pixel); color: var(--ink); background: var(--yellow); cursor: pointer;
  padding: .7em 1.4em; border: 5px solid var(--ink); box-shadow: 0 8px 0 var(--ink), inset -5px -5px 0 rgba(0, 0, 0, .2), 0 0 0 4px #fff3, 0 0 60px rgba(255, 210, 63, .55);
  animation: playpulse 1.2s ease-in-out infinite; transition: transform .08s;
}
.playbtn:hover { background: #ffe066; }
.playbtn:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink); }
@keyframes playpulse { 50% { box-shadow: 0 8px 0 var(--ink), inset -5px -5px 0 rgba(0, 0, 0, .2), 0 0 0 4px #fff6, 0 0 90px rgba(255, 210, 63, .85); } }
.splash-cta { font-size: clamp(9px, 1.3vw, 12px); color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); margin: 0; background: rgba(18, 10, 36, .75); padding: 7px 10px; }
.splash.entering .hall { transform: scale(7); filter: brightness(1.7); }
.splash.entering .splash-ui { opacity: 0; transition: opacity .2s; }
.splash.entering { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .splash.entering { transition: none; } }.splash-sub { max-width: calc(100vw - 32px); line-height: 1.8; }


/* ---------- prize bar ---------- */
.prizebar { margin: 0; font-size: 11px; line-height: 1.6; text-align: center; color: var(--muted); padding: 8px 14px; background: rgba(0, 0, 0, .35); border: 3px solid var(--ink); }
.prizebar.hot { color: var(--ink); background: var(--yellow); box-shadow: 0 5px 0 var(--ink), 0 0 30px rgba(255, 210, 63, .45); animation: pulse 1.4s ease-in-out infinite; }
.roundinfo { font-size: 9px; color: var(--muted); margin: 14px 0 0; line-height: 1.7; min-height: 1.7em; }

