/* CandyWar UI — one token set; labels centred inside frames; nothing clipped; no backdrop-filter; animations always on (manual toggle) */
:root {
  --ink: #12081f; --ink-2: #1b0d30; --purple: #2a1245; --purple-2: #4b2380; --violet: #8a4dff;
  --orange: #ff8a1f; --orange-2: #ffa530; --yellow: #ffcf5a; --bone: #f4ead6; --ghost: #f4f0ff;
  --line: rgba(255, 207, 90, .28); --shadow: 0 6px 0 rgba(8, 3, 16, .55);
  --display: 'Lilita One', 'Impact', 'Arial Black', system-ui, sans-serif; --text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--bone); font: 600 16px/1.45 var(--text); overflow: hidden; -webkit-font-smoothing: antialiased; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; }
.hidden { display: none !important; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- shared pieces ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 18px; border-radius: 999px; background: rgba(18, 8, 31, .82); border: 2px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; }
.pill-big { font: 400 26px/1 var(--display); letter-spacing: .02em; color: var(--yellow); }
.pill-label { font: 800 12px/1 var(--text); letter-spacing: .12em; color: #c9b6ee; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 14px; border: 3px solid #12081f; background: var(--purple-2); color: var(--bone); font: 400 20px/1 var(--display); letter-spacing: .03em; cursor: pointer; box-shadow: 0 5px 0 #12081f; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #12081f; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #12081f; }
.btn.primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #2a0f00; }
.btn.ghost { background: var(--purple); }
.btn.big { min-height: 58px; padding: 0 44px; font-size: 28px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(75, 35, 128, .6); border: 2px solid var(--line); font: 800 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.hint, .fine { font-size: 13px; color: #b9a6dc; }
.fine { text-align: center; margin: 14px 0 0; }
.card { background: rgba(27, 13, 48, .94); border: 3px solid #12081f; border-radius: 22px; box-shadow: 0 8px 0 #12081f, inset 0 0 0 2px var(--line); padding: 26px 28px; }
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.eyebrow { font: 800 12px/1 var(--text); letter-spacing: .18em; color: var(--orange-2); text-align: center; }
.panel { position: fixed; left: 50%; top: 14%; transform: translateX(-50%); min-width: 300px; max-width: 92vw; padding: 18px 22px; border-radius: 18px; background: rgba(18, 8, 31, .92); border: 3px solid #12081f; box-shadow: var(--shadow), inset 0 0 0 2px var(--line); z-index: 30; }
.panel-title { font: 400 22px/1 var(--display); text-align: center; color: var(--yellow); margin-bottom: 10px; }

/* ---------- main menu ---------- */
#menu { background: var(--ink); overflow: auto; }
.menu-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 8, 31, .35), rgba(18, 8, 31, .88)), url('/assets/brand/banner.webp') center 30% / cover no-repeat; }
.menu-wrap { position: relative; width: min(560px, 100%); margin: auto; }
.menu-head { display: flex; align-items: center; justify-content: center; gap: 18px; }
.menu-logo { width: 84px; height: 84px; border-radius: 22px; border: 3px solid #12081f; box-shadow: var(--shadow); object-fit: cover; }
.wordmark { margin: 0; font: 400 clamp(46px, 9vw, 74px)/1 var(--display); letter-spacing: .01em; text-shadow: 0 5px 0 #12081f; }
.wm-a { color: var(--orange-2); } .wm-b { color: var(--violet); }
.tagline { margin: 4px 0 0; font: 800 13px/1 var(--text); letter-spacing: .32em; color: #b9a6dc; }
.pitch { text-align: center; font: 400 22px/1.2 var(--display); color: var(--bone); margin: 16px 0 14px; text-shadow: 0 2px 0 #12081f; }
.menu-card { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field-label { font: 800 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #c9b6ee; }
#menu-name { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 3px solid #12081f; background: #0e0619; color: var(--bone); font: 800 18px/1 var(--text); }
.chars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.char { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px 10px; min-height: 148px; border-radius: 16px; background: #1a0c2c; border: 3px solid #12081f; cursor: pointer; transition: transform .14s, border-color .14s, background .14s; }
.char:hover { transform: translateY(-3px); }
.char.selected { border-color: var(--orange-2); background: #2a1245; box-shadow: 0 0 0 3px rgba(255, 165, 48, .25); }
.char-img { width: 100%; height: 96px; display: block; background: center / contain no-repeat; }
.char-img[data-img=pumpkin] { background-image: url('/assets/brand/char_pumpkin.png'); }
.char-img[data-img=ghost] { background-image: url('/assets/brand/char_ghost.png'); }
.char-img[data-img=skeleton] { background-image: url('/assets/brand/char_skeleton.png'); }
.char-name { font: 400 15px/1.1 var(--display); text-align: center; letter-spacing: .02em; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.topchips { position: absolute; top: 14px; right: 16px; display: flex; gap: 8px; z-index: 2; }
.topchips .chip { min-height: 36px; padding: 0 16px; font-size: 13px; background: rgba(18, 8, 31, .86); color: var(--bone); text-decoration: none; }
.topchips .chip.link { text-transform: none; }
.topchips .chip.link:hover { border-color: var(--orange-2); }
.locker { display: grid; gap: 8px; } .locker-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.locker-cat { flex: 0 0 56px; font: 800 11px/1 var(--text); letter-spacing: .1em; color: #c9b6ee; text-transform: uppercase; }
.lk { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 2px solid #12081f; background: #1a0c2c; color: var(--bone); font: 800 12px/1 var(--text); cursor: pointer; white-space: nowrap; }
.lk.sel { border-color: var(--orange-2); background: #3a1a63; } .lk.locked { opacity: .45; cursor: not-allowed; }
.locker-stats { color: var(--yellow); letter-spacing: .04em; text-transform: none; margin-left: 8px; }
.room-row { display: flex; gap: 8px; } #prize-addr { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 3px solid #12081f; background: #0e0619; color: var(--bone); font: 600 13px/1 ui-monospace, Consolas, monospace; }
#menu-room { flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 3px solid #12081f; background: #0e0619; color: var(--bone); font: 800 16px/1 var(--text); text-transform: uppercase; letter-spacing: .12em; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 16px; }
.servers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.srv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 6px 10px; border-radius: 14px; border: 3px solid #12081f; background: #1a0c2c; color: var(--bone); cursor: pointer; text-align: center; }
.srv b { font: 400 16px/1 var(--display); letter-spacing: .02em; } .srv span { font: 800 11px/1.1 var(--text); color: #c9b6ee; letter-spacing: .06em; }
.srv.sel { border-color: var(--orange-2); background: #2a1245; } .srv.full { opacity: .45; cursor: not-allowed; }
.prizes { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 10px; border-radius: 16px; background: rgba(255, 138, 31, .1); border: 2px dashed rgba(255, 207, 90, .45); }
.prizes-title { width: 100%; text-align: center; font: 800 11px/1 var(--text); letter-spacing: .2em; color: var(--orange-2); }
.prize { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #1a0c2c; border: 2px solid #12081f; font: 400 18px/1 var(--display); color: var(--yellow); white-space: nowrap; }
.prize b { font: 800 12px/1 var(--text); letter-spacing: .08em; color: #c9b6ee; }
.prize.p1 { border-color: #ffcf5a; } .prize.p2 { border-color: #c9d3e6; } .prize.p3 { border-color: #d98a4a; }
.loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); }
#loadbar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--orange-2)); transition: width .2s; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-family: var(--text); }
#hud-top { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; }
#hud-timer { gap: 12px; }
#hud-timer .pill-big { font-size: 34px; min-width: 96px; text-align: center; }
#hud-timer.urgent .pill-big { color: #ff5a3c; animation: pulse .6s infinite alternate; }
#hud-players { position: absolute; top: 14px; right: 16px; }
#hud-feed { position: absolute; top: 70px; right: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; max-width: 46vw; }
.feed-item { padding: 6px 14px; border-radius: 12px; background: rgba(18, 8, 31, .78); border: 2px solid var(--line); font: 800 14px/1.2 var(--text); animation: slideIn .25s ease-out; }
.feed-item b { color: var(--yellow); }
#hud-bottom { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 20px; }
#hud-candy { display: grid; gap: 8px; }
.stat { display: inline-grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; min-width: 250px; min-height: 48px; padding: 6px 16px; border-radius: 16px; background: rgba(18, 8, 31, .86); border: 3px solid #12081f; box-shadow: var(--shadow), inset 0 0 0 2px var(--line); }
.stat-ico { font-size: 22px; line-height: 1; }
.stat-label { font: 800 12px/1 var(--text); letter-spacing: .14em; color: #c9b6ee; }
.stat-num { font: 400 30px/1 var(--display); text-align: right; color: var(--yellow); }
.stat.carry .stat-num { color: var(--orange-2); }
.stat.carry.bump { animation: bump .25s; }
.stat.secured.bump { animation: bump .35s; }
.stat.carry.heavy { border-color: var(--orange-2); }
#hud-hp { position: relative; flex: 0 0 220px; height: 26px; border-radius: 999px; background: rgba(18, 8, 31, .86); border: 3px solid #12081f; box-shadow: var(--shadow); overflow: hidden; align-self: flex-end; }
#hud-hp-fill { height: 100%; width: 100%; background: linear-gradient(180deg, #7dff9a, #2fcf62); transition: width .15s; }
#hud-hp.low #hud-hp-fill { background: linear-gradient(180deg, #ff8a6a, #e83a2a); }
#hud-hp-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 13px/1 var(--text); color: #fff; text-shadow: 0 1px 2px #000; }
#hud-slots { display: flex; gap: 8px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 92px; height: 70px; border-radius: 14px; background: rgba(18, 8, 31, .86); border: 3px solid #12081f; box-shadow: var(--shadow); }
.slot.active { border-color: var(--orange-2); box-shadow: var(--shadow), 0 0 0 3px rgba(255, 165, 48, .3); }
.slot.empty { opacity: .5; }
.slot-key { position: absolute; top: 4px; left: 8px; font: 800 11px/1 var(--text); color: #c9b6ee; }
.slot-name { font: 400 15px/1 var(--display); letter-spacing: .03em; }
.slot-ammo { font: 800 13px/1 var(--text); color: var(--yellow); min-height: 13px; }
#hud-boss { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); width: min(420px, 70vw); display: grid; gap: 6px; justify-items: center; }
#hud-boss-name { font: 400 20px/1 var(--display); letter-spacing: .06em; color: var(--yellow); text-shadow: 0 3px 0 #12081f; }
#hud-boss-bar { width: 100%; height: 18px; border-radius: 999px; background: rgba(18, 8, 31, .9); border: 3px solid #12081f; box-shadow: var(--shadow); overflow: hidden; }
#hud-boss-fill { height: 100%; width: 100%; background: linear-gradient(180deg, #c58bff, #7a3cff); transition: width .15s; }
#hud-prompt { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 14px; background: rgba(18, 8, 31, .9); border: 3px solid var(--orange-2); font: 800 16px/1 var(--text); }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--orange-2); color: #2a0f00; font: 400 17px/1 var(--display); }
#hud-deposit { position: absolute; left: 50%; bottom: 210px; transform: translateX(-50%); width: min(340px, 70vw); height: 30px; border-radius: 999px; background: rgba(18, 8, 31, .9); border: 3px solid #12081f; box-shadow: var(--shadow); overflow: hidden; }
#hud-deposit-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--orange-2)); }
#hud-deposit-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 13px/1 var(--text); letter-spacing: .12em; }
#hud-banner { position: absolute; left: 0; right: 0; top: 17%; text-align: center; padding: 0 16px; }
#hud-banner-main { display: inline-block; font: 400 clamp(32px, 6.4vw, 78px)/1.05 var(--display); color: var(--yellow); text-shadow: 0 6px 0 #12081f, 0 0 28px rgba(255, 138, 31, .55); animation: banner 3.2s both; }
#hud-banner-sub { margin-top: 8px; font: 800 clamp(14px, 2vw, 20px)/1.2 var(--text); letter-spacing: .16em; color: var(--bone); text-shadow: 0 2px 0 #12081f; }
#hud-status { position: absolute; left: 20px; bottom: 150px; display: flex; flex-direction: column; gap: 6px; }
.status { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(75, 35, 128, .85); border: 2px solid var(--line); font: 800 12px/1 var(--text); letter-spacing: .08em; }
#hud-dev { position: absolute; left: 10px; top: 8px; white-space: pre; font: 600 12px/1.35 ui-monospace, Consolas, monospace; color: #9dffb0; text-shadow: 0 1px 2px #000; }
#hud-controls { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; opacity: .65; transition: opacity 1s; }
#hud-ko { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(138, 77, 255, .05), rgba(18, 8, 31, .55)); }
.ko-text { font: 400 clamp(36px, 7vw, 86px)/1 var(--display); color: var(--ghost); text-shadow: 0 6px 0 #12081f, 0 0 30px var(--violet); }
.ko-sub { font: 800 18px/1 var(--text); letter-spacing: .14em; color: #c9b6ee; margin-top: 10px; }
#hud-hitflash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 60, 40, 0), rgba(255, 60, 40, .5)); opacity: 0; }
#hud-hitflash.on { animation: flash .35s; }

/* ---------- scoreboard / results ---------- */
#score-list, .board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; min-height: 44px; padding: 4px 14px; border-radius: 12px; background: rgba(75, 35, 128, .35); border: 2px solid transparent; }
.row.me { border-color: var(--orange-2); background: rgba(255, 138, 31, .16); }
.row .rk { font: 400 20px/1 var(--display); color: var(--yellow); text-align: center; }
.row .nm { font: 800 16px/1.1 var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sc { font: 400 22px/1 var(--display); color: var(--orange-2); }
.row:nth-child(1) .rk { font-size: 26px; }
.results-card { width: min(520px, 100%); max-height: 92vh; overflow: auto; }
.results-card h2 { margin: 6px 0 14px; text-align: center; font: 400 34px/1 var(--display); color: var(--yellow); }
.results-me { text-align: center; margin-top: 12px; font: 800 14px/1.4 var(--text); color: #c9b6ee; }
.pause-card { width: min(420px, 100%); }
.pause-card h2 { margin: 0 0 12px; text-align: center; font: 400 32px/1 var(--display); color: var(--yellow); }
input[type=range] { width: 100%; accent-color: var(--orange-2); }
#results, #pause { background: rgba(8, 3, 16, .72); }

#hud-left { position: absolute; left: 10px; top: 12px; display: grid; gap: 10px; justify-items: start; max-width: 250px; }
#hud-top3 { min-width: 214px; padding: 10px 12px; border-radius: 16px; background: rgba(18, 8, 31, .82); border: 3px solid #12081f; box-shadow: var(--shadow), inset 0 0 0 2px var(--line); }
.t3-title { font: 800 11px/1 var(--text); letter-spacing: .14em; color: #c9b6ee; margin-bottom: 8px; }
#t3-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
#t3-list li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; min-height: 30px; padding: 0 8px; border-radius: 10px; background: rgba(75, 35, 128, .35); border: 2px solid transparent; }
#t3-list li.me { border-color: var(--orange-2); background: rgba(255, 138, 31, .16); }
#t3-list .rk { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font: 400 14px/1 var(--display); color: #2a0f00; background: #ffcf5a; }
#t3-list li:nth-child(2) .rk { background: #d6deee; } #t3-list li:nth-child(3) .rk { background: #e3965a; }
#t3-list .nm { font: 800 13px/1.1 var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#t3-list .sc { font: 400 16px/1 var(--display); color: var(--orange-2); }
#voice { position: static; left: 16px; top: 64px; display: grid; gap: 6px; justify-items: start; pointer-events: none; max-width: 240px; }
.voice-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px 0 8px; border-radius: 999px; background: rgba(18, 8, 31, .86); border: 2px solid var(--line); font: 800 13px/1 var(--text); white-space: nowrap; }
.voice-btn.live { border-color: #7dff9a; } .voice-btn.muted { border-color: #ff8a6a; }
#voice-list { display: grid; gap: 4px; }
.vrow { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 12px 0 8px; border-radius: 999px; background: rgba(18, 8, 31, .78); border: 2px solid transparent; font: 800 12px/1 var(--text); pointer-events: auto; cursor: pointer; white-space: nowrap; }
.vrow .dot { width: 9px; height: 9px; border-radius: 50%; background: #5d4a85; }
.vrow.speaking { border-color: #7dff9a; } .vrow.speaking .dot { background: #7dff9a; box-shadow: 0 0 8px #7dff9a; } .vrow.muted { opacity: .5; text-decoration: line-through; }
.plate.speaking { border-color: #7dff9a; box-shadow: 0 0 10px rgba(125, 255, 154, .6); }
#plates { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
.plate { position: absolute; left: 0; top: 0; display: none; align-items: center; justify-content: center; min-height: 22px; padding: 0 10px; border-radius: 999px; background: rgba(18, 8, 31, .72); border: 2px solid var(--line); font: 800 12px/1 var(--text); color: var(--bone); white-space: nowrap; will-change: transform; }
@keyframes pulse { to { transform: scale(1.12); } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes banner { 0% { transform: scale(.4); opacity: 0; } 10% { transform: scale(1.12); opacity: 1; } 16% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
body.no-motion *, body.no-motion *::before { animation: none !important; transition: none !important; }

.menu-card > * { min-width: 0; } .chars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .topchips { left: 12px; right: 12px; top: 10px; justify-content: center; flex-wrap: wrap; } .menu-wrap { padding-top: 44px; } .btn.big { padding: 0 30px; font-size: 24px; } .card { padding: 18px 16px; }
  .prize { font-size: 16px; padding: 0 10px; }
  #hud-timer { min-height: 40px; padding: 4px 12px; } #hud-timer .pill-big { font-size: 24px; min-width: 70px; }
  #hud-players { top: 62px; right: 10px; min-height: 34px; padding: 4px 12px; } #hud-players .pill-big { font-size: 18px; }
  #hud-feed { top: 150px; right: 10px; max-width: 52vw; } .feed-item { font-size: 12px; padding: 4px 10px; } #hud-left { top: 10px; left: 8px; } #hud-top3 { min-width: 180px; }
  #hud-bottom { flex-wrap: wrap; padding: 0 10px; } #hud-hp { flex: 1 1 100px; }
  .stat { min-width: 200px; } #hud-hp { flex-basis: 140px; } .slot { width: 74px; height: 60px; } .chars { gap: 6px; } .char-name { font-size: 13px; } #hud-controls { display: none; }
  .menu-head { flex-direction: column; text-align: center; gap: 8px; }
}

/* ===== menu v2: live 3D arena behind, two cards, everything on one screen (like pillwar.fun) ===== */
#menu { overflow: hidden; align-items: stretch; justify-content: center; padding: 0; background: linear-gradient(90deg, rgba(18, 8, 31, .50) 0%, rgba(18, 8, 31, .05) 38%, rgba(18, 8, 31, .05) 62%, rgba(18, 8, 31, .50) 100%); }
.menu-stage { width: 100%; max-width: 1500px; margin: 0 auto; padding: 56px 28px 22px; display: grid; grid-template-columns: minmax(380px, 480px) 1fr minmax(360px, 430px); gap: 20px; align-items: center; min-height: 0; }
.menu-mid { min-width: 0; }
.menu-play, .menu-side { display: grid; gap: 12px; align-content: start; padding: 20px 22px; background: rgba(27, 13, 48, .90); }
.menu-play .menu-head { justify-content: flex-start; gap: 14px; }
.menu-play .wordmark { font-size: clamp(40px, 4.4vw, 58px); }
.menu-play .menu-logo { width: 64px; height: 64px; border-radius: 16px; }
.menu-play .pitch { text-align: left; margin: 0; font-size: 18px; }
.menu-play .char { min-height: 118px; } .menu-play .char-img { height: 78px; }
.menu-play .btn-row { margin-top: 2px; } .menu-play .btn.big { width: 100%; min-height: 56px; font-size: 28px; }
.menu-side .prizes { padding: 10px 8px; }
.loadbar { position: fixed; z-index: 5; }
@media (max-height: 760px) and (min-width: 981px) { .menu-stage { padding-top: 48px; } .menu-play, .menu-side { gap: 8px; padding: 14px 18px; } .menu-play .char { min-height: 96px; } .menu-play .char-img { height: 60px; } .menu-play .pitch { display: none; } }
@media (max-width: 980px) {
  #menu { overflow: auto; align-items: flex-start; background: linear-gradient(180deg, rgba(18, 8, 31, .35), rgba(18, 8, 31, .85)); }
  .menu-stage { grid-template-columns: 1fr; padding: 54px 14px 24px; max-width: 560px; } .menu-mid { display: none; }
  .menu-play .wordmark { font-size: clamp(40px, 11vw, 60px); }
}
/* menu v2.1: cards hug the left and right edges, the middle stays free for the live scene */
.menu-stage { max-width: none; padding-left: clamp(16px, 2.6vw, 56px); padding-right: clamp(16px, 2.6vw, 56px); }
@media (max-width: 980px) { .menu-stage { max-width: 560px; padding-left: 14px; padding-right: 14px; } }
