/* radio.css */
/* ring shop = market stall, discord line = phone booth */
.kiosk { left: 14px; top: 228px; width: 88px; height: 108px; padding: 30px 0 16px; gap: 3px; overflow: visible;
  background: linear-gradient(90deg, #0000 0 6px, #2a1458 6px 82px, #0000 82px), linear-gradient(#8a5a2b, #5a3414);
  border: 0; border-radius: 0; color: #ffe14d; font-size: 12px; text-shadow: 0 0 6px #ffb800, 0 1px 0 #05081c;
  box-shadow: none; filter: drop-shadow(0 0 calc(3px + var(--beat) * 9px) #ffd400) drop-shadow(0 3px 0 #05081c); }
.kiosk::before { content: ""; position: absolute; left: -8px; right: -8px; top: 0; height: 27px; border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 50% 0, #ff3b3b 6px, #0000 6.5px) 0 20px / 26px 7px repeat-x,
    radial-gradient(circle at 50% 0, #fff 6px, #0000 6.5px) 13px 20px / 26px 7px repeat-x,
    repeating-linear-gradient(90deg, #ff3b3b 0 13px, #fff 13px 26px) 0 0 / 100% 20px no-repeat; }
.kiosk::after { content: "OPEN"; position: absolute; left: -4px; right: -4px; bottom: 0; height: 15px; border-radius: 3px;
  background: linear-gradient(#ffe14d, #ffb800); border: 2px solid #05081c; color: #05081c; text-shadow: none;
  font: 900 9px/11px "Liberation Mono", monospace; letter-spacing: 3px; }
.kiosk .spr.ring { transform: scale(1.35); animation: kbob 1.2s ease-in-out infinite; }
@keyframes kbob { 50% { translate: 0 -4px; } }
.dline { left: 862px; top: 222px; width: 76px; height: 114px; cursor: pointer; align-content: end; padding-bottom: 8px;
  background:
    linear-gradient(#05081c, #05081c) 50% 30px / 46px 44px no-repeat,
    linear-gradient(135deg, #9fd8ff55 0 40%, #0000 40%) 50% 30px / 46px 44px no-repeat,
    linear-gradient(#5865f2, #3a44c8);
  border-radius: 12px 12px 3px 3px; font-size: 10px; transition: transform .15s; }
.dline:hover { transform: translateY(-4px); }
.dline::before { content: "DISCORD"; position: absolute; left: 3px; right: 3px; top: 4px; height: 17px; border-radius: 8px 8px 2px 2px;
  background: #fff; color: #5865f2; font: italic 900 10px/17px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; }
.dline::after { content: ""; position: absolute; left: 0; right: 0; top: 34px; font: 30px/36px sans-serif; color: #fff; text-shadow: 0 0 8px #5865f2; }
.dline.ring::after { animation: wave .15s 6; }
/* ---------- crystals + new shop stuff ---------- */
.cry { display: inline-block; width: 13px; height: 17px; vertical-align: middle; margin: 0 4px 0 2px; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%);
  background: linear-gradient(135deg, #e8feff, #4ad8ff 45%, #b56aff); }
.crywrap { margin-left: 14px; font-size: .7em; color: #9fefff; white-space: nowrap; }
.crywrap .cry { width: 16px; height: 21px; }
.sc-price.cryp { color: #9fefff; }
.pop.crypop { font: italic 900 18px "Liberation Sans", Arial, sans-serif; color: #9fefff; text-shadow: 0 0 6px #4ad8ff, 1px 1px 0 #05081c; white-space: nowrap; }
.linkd.done { opacity: .75; cursor: default; background: #1d7a3a; }
.arow button { white-space: nowrap; }
.fx-aura-frost .bod::after { content: ""; position: absolute; inset: 0 2% -2%; z-index: 2; border-radius: 50%; border: 2px solid #c2fbffcc; box-shadow: 0 0 12px #7de8ff, inset 0 0 14px #c2fbff88; animation: shimmer 2s ease-in-out infinite; }
.fx-aura-toxic .bod::before { content: ""; position: absolute; inset: -4% 2% -4%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, #b6ff3bcc 0 25%, #39ff1466 50%, #0000 70%); filter: blur(3px); animation: shimmer 1.2s ease-in-out infinite; }
.fx-aura-disco .bod::before { content: ""; position: absolute; inset: -8%; z-index: 0; border-radius: 50%; filter: blur(5px); opacity: .8;
  background: conic-gradient(#ff4a5a, #ffb800, #4aff7a, #4ad8ff, #b56aff, #ff4a5a); animation: rpm 1.6s linear infinite; }
.fx-aura-crystal .bod::before { content: ""; position: absolute; inset: -6%; z-index: 0; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  background: linear-gradient(135deg, #e8feffaa, #4ad8ff88 45%, #b56aff88); animation: shimmer 1.6s ease-in-out infinite; }
.fx-aura-crystal .bod img { filter: drop-shadow(0 0 4px #7df9ff); }
.fx-aura-prism .bod img { animation: prism 2s linear infinite; }
.fx-aura-prism .bod::before { content: ""; position: absolute; inset: -10%; z-index: 0; border-radius: 50%; filter: blur(7px);
  background: conic-gradient(#ff4a5a, #ffee33, #4aff7a, #4ad8ff, #b56aff, #ff4a5a); animation: rpm 2.4s linear infinite; }
@keyframes prism { from { filter: drop-shadow(0 0 5px #fff) hue-rotate(0); } to { filter: drop-shadow(0 0 5px #fff) hue-rotate(360deg); } }
.t-leaves, .t-bubbles, .t-stars, .t-notes, .t-lightning, .t-crystal, .t-rainbow { font: 14px/1 sans-serif; animation: tfade .9s ease-out forwards; }
.t-leaves::before { content: ""; } .t-bubbles::before { content: ""; } .t-stars::before { content: "⭐"; } .t-notes::before { content: ""; }
.t-lightning::before { content: ""; } .t-rainbow::before { content: ""; }
.t-bubbles, .t-notes { animation-name: trise; }
.t-crystal { width: 10px; height: 14px; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%); background: linear-gradient(135deg, #e8feff, #4ad8ff 45%, #b56aff); }
.fx-name-pink .nm { color: #ff8fd0 !important; text-shadow: 0 0 6px #ff1493, 1px 1px 0 #000; }
.fx-name-toxic .nm { color: #b6ff3b !important; text-shadow: 0 0 6px #39ff14, 1px 1px 0 #000; }
.fx-name-neon .nm { color: #fff !important; text-shadow: 0 0 4px #ff2bd6, 0 0 10px #ff2bd6, 1px 1px 0 #000; }
.fx-name-crystal .nm { color: #9fefff !important; text-shadow: 0 0 6px #4ad8ff, 0 0 12px #b56aff, 1px 1px 0 #000; }
.fx-name-glitch .nm { color: #fff !important; animation: glitch .9s steps(2) infinite; }
@keyframes glitch { 0% { text-shadow: 2px 0 #ff2bd6, -2px 0 #20d0ff; } 50% { text-shadow: -2px 1px #ff2bd6, 2px -1px #20d0ff; transform: translateX(1px); } 100% { text-shadow: 1px -1px #ff2bd6, -1px 1px #20d0ff; } }
.fx-bubble-cloud .bub { background: #fff; border-color: #cfe6ff; border-radius: 22px; box-shadow: 0 3px 0 #cfe6ff; color: #2a3a66; }
.fx-bubble-cloud .bub::after { border-top-color: #cfe6ff; }
.fx-bubble-dark .bub { background: #0a0a14; color: #ff5a5a; border-color: #a00000; box-shadow: 0 0 8px #a00000; }
.fx-bubble-dark .bub::after { border-top-color: #a00000; }
.fx-bubble-heart .bub { background: #ffe3ef; color: #a0105a; border-color: #ff4fa3; }
.fx-bubble-heart .bub::after { border-top-color: #ff4fa3; }
.fx-bubble-crystal .bub { background: linear-gradient(135deg, #e8feff, #bfe9ff 50%, #e3d0ff); color: #0b1450; border-color: #4ad8ff; box-shadow: 0 0 10px #4ad8ff88; }
.fx-bubble-crystal .bub::after { border-top-color: #4ad8ff; }
.fx-pet-ring::after, .fx-pet-flicky::after, .fx-pet-motobug::after { content: ""; position: absolute; z-index: 1; image-rendering: pixelated; }
.fx-pet-ring::after { left: -20px; bottom: 26px; width: 24px; height: 24px; background: url(/spr/ring.png) 0 0 / 96px 24px; animation: f4r .5s steps(4) infinite, kittyhop 1.4s ease-in-out infinite; }
@keyframes f4r { to { background-position-x: -96px; } }
.fx-pet-flicky::after { left: -22px; bottom: 44px; width: 32px; height: 20px; background: url(/spr/flicky.png) 0 0 / 64px 20px; animation: f2p .3s steps(2) infinite, kittyhop 1s ease-in-out infinite; }
@keyframes f2p { to { background-position-x: -64px; } }
.fx-pet-motobug::after { left: -34px; bottom: -2px; width: 40px; height: 32px; background: url(/spr/motobug.png) 0 0 / 120px 32px; animation: f3p .4s steps(3) infinite; transform: scaleX(-1); }
@keyframes f3p { to { background-position-x: -120px; } }
.bod.e-zzz { animation: ezzz 2.2s ease-in-out; } @keyframes ezzz { 20%, 80% { transform: rotate(-80deg) translateY(10px); } }
.bod.e-laugh { animation: elaugh .18s ease-in-out 10; } @keyframes elaugh { 50% { transform: translateY(-5px) rotate(4deg); } }
.bod.e-love { animation: hop .5s cubic-bezier(.3,1.6,.5,1) 2; }
.bod.e-headbang { transform-origin: 50% 80%; animation: ehead .25s ease-in-out 8; } @keyframes ehead { 50% { transform: rotate(18deg) translateY(4px); } }
.bod.e-flex { animation: eflex 1.6s ease-in-out; } @keyframes eflex { 20%, 80% { transform: scale(1.3, 1.15); } 50% { transform: scale(1.4, 1.2) rotate(-4deg); } }
.bod.e-shine { animation: eshine 1.8s ease-in-out; } @keyframes eshine { 50% { filter: brightness(2.2) drop-shadow(0 0 14px #7df9ff) drop-shadow(0 0 26px #b56aff); transform: scale(1.12); } }
.bod.e-float { animation: efloat 2.3s ease-in-out; } @keyframes efloat { 20%, 80% { transform: translateY(-40px); } 50% { transform: translateY(-48px) rotate(3deg); } }
.merings { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; }
.crywrap { margin-left: 8px; font-size: 1em; display: inline-flex; align-items: center; }
.crywrap b { font-size: .72em; color: #9fefff; }

/* Arcade cabinet finish: keep the station controls and Claude's layout intact. */
:root { --blue: #345dff; --navy: #101c46; --yellow: #ffdc61; --red: #ff716b; }
body { background: radial-gradient(ellipse at 15% 0, #173da5 0, #101c46 38%, #080f25 85%) fixed; }
.top { padding-top: 26px; padding-bottom: 24px; border-bottom: 1px solid #7398ff40; margin-bottom: 20px; }
.presents { background: #ff716b; color: #101c46; font-style: normal; letter-spacing: 2px; border-width: 0; padding: 5px 10px; box-shadow: 3px 3px #101c46; }
.logo { margin-top: 10px; }
.logo .l1 { color: #ffdc61; }
.logo .l2 { letter-spacing: .16em; }
.hud { padding: 12px 16px; border: 1px solid #7398ff60; background: #09153090; border-radius: 6px; }
.hud .k { font: bold 11px/1.3 "Liberation Mono", monospace; letter-spacing: 1px; text-shadow: none; }
.hud .v { font: bold 17px/1.3 "Liberation Mono", monospace; text-shadow: none; }
.onair.live { border-color: #ff716b; box-shadow: none; }
.onair.live .dot { animation: none; box-shadow: none; }
.zone-label { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #234ecc; color: #fff; font: bold 10px/1.5 "Liberation Mono", monospace; letter-spacing: 1px; border-bottom: 3px solid #ffdc61; }
.venue { border-color: #4f76e8; box-shadow: 0 12px 30px #0004; }
.box, .p1 { border-color: #4564a5; background-color: #101d3b; box-shadow: 0 5px 0 #060d20; }
.boxhead { background: #182e63; border-bottom-color: #4564a5; }
.boxhead h2, .boxhead h3 { letter-spacing: 1px; }
.play { border-radius: 5px; border-color: #101c46; background: #ffdc61; font-size: 19px; letter-spacing: 2px; }
.play.on { background: #ff716b; color: #101c46; }
.play.on svg { fill: #101c46; }
.fire { border-radius: 5px; background: #1b2e56; }
input, textarea, select { max-width: 100%; }
.arcade-bonus { padding: 12px 14px; background: #ffdc61; color: #101c46; font: bold 12px/1.5 "Liberation Mono", monospace; border-bottom: 3px solid #101c46; }
.arcade-bonus[hidden] { display: none; }
.net { border-top: 1px solid #7398ff40; padding-top: 18px; }
@media (max-width: 650px) {
  .top { padding-top: 16px; gap: 14px; }
  .hud { padding: 9px 11px; gap: 16px; }
  .zone-label { font-size: 9px; letter-spacing: 0; flex-wrap: wrap; gap: 2px; }
  .logo .l1 { font-size: 34px; }
  .logo .l2 { font-size: 25px; }
}
/* The floor owns the width. Chat, account and admin controls sit below it. */
.wrap.layout { max-width: 1500px; grid-template-columns: minmax(0,1fr); grid-template-areas: "venue" "rail" "vote" "req" "boards" "net"; }
.layout > .rail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items:start; }
.rail .chatbox { min-height: 320px; }
.rail .chatbox .msgs { height: 240px; }
.scene { height: 720px; }
.floor { height: 412px; }
.kiosk, .dline { display:none !important; }
.joinparty { top: 65%; }
.venue-console { margin: 16px 0 0; padding: 12px; border: 1px solid #6a86c4; }
.venue-console legend { color: #ffdc61; font:bold 12px monospace; letter-spacing:1px; }
.venue-console select { width:100%; padding:10px; background:#0c1735; color:white; border:1px solid #6a86c4; margin:8px 0; }
.venue-console button { min-height:40px; font-size:11px; }
#venue-clock { font:12px/1.5 monospace; color:#d5e3ff; }
.scenery { position:absolute; top:20px; left:0; right:0; height:280px; pointer-events:none; opacity:.8; }
.scene[data-theme] .sky { background-image:none; filter:none; }
.scene[data-theme] .far { background-image:none; animation:none; }
.scene[data-theme="arcade-coast"] .sky { background:linear-gradient(#3d9bd2,#9ce0da); }
.scene[data-theme="arcade-coast"] .far { background:repeating-linear-gradient(45deg,#285939 0 24px,#49954b 24px 48px); clip-path:polygon(0 80%,10% 45%,20% 70%,35% 40%,50% 80%,70% 45%,85% 65%,100% 20%,100% 100%,0 100%); }
.scene[data-theme="arcade-coast"] .scenery { background:repeating-linear-gradient(90deg,transparent 0 75px,#53382a 75px 84px,transparent 84px 160px); clip-path:polygon(0 65%,10% 45%,20% 60%,30% 40%,40% 60%,60% 50%,80% 40%,100% 60%,100% 100%,0 100%); }
.scene[data-theme="neon-night"] .sky { background:linear-gradient(#100d30,#321d68); }
.scene[data-theme="neon-night"] .far { background:repeating-linear-gradient(90deg,#122446 0 44px,#562285 44px 46px,#0d1731 46px 96px); clip-path:polygon(0 45%,12% 45%,12% 20%,25% 20%,25% 55%,40% 55%,40% 10%,55% 10%,55% 40%,70% 40%,70% 25%,85% 25%,85% 55%,100% 55%,100% 100%,0 100%); }
.scene[data-theme="neon-night"] .scenery { background:repeating-linear-gradient(0deg,transparent 0 26px,#58edff60 26px 28px); }
.scene[data-theme="sunset-speedway"] .sky { background:radial-gradient(circle at 80% 35%,#ffe8a0 0 65px,transparent 66px),linear-gradient(#742c78,#f99566); }
.scene[data-theme="sunset-speedway"] .far { background:repeating-linear-gradient(90deg,#2e2342 0 70px,#ffc76e 70px 75px,#2e2342 75px 140px); clip-path:polygon(0 80%,100% 45%,100% 100%,0 100%); }
.scene[data-theme="jungle-breaks"] .sky { background:linear-gradient(#0d332e,#4a804f); }
.scene[data-theme="jungle-breaks"] .scenery { background:repeating-radial-gradient(ellipse at 20% 0,#173d24 0 40px,#31713d 41px 60px,transparent 61px 100px); }
.scene[data-theme="jungle-breaks"] .far { background:repeating-linear-gradient(90deg,#495e4a 0 65px,#263d31 66px 70px); clip-path:polygon(0 75%,15% 75%,15% 35%,23% 35%,23% 75%,80% 75%,80% 25%,89% 25%,89% 75%,100% 75%,100% 100%,0 100%); }
.scene[data-theme="chrome-club"] .sky { background:repeating-linear-gradient(135deg,#122139 0 40px,#384b60 41px 43px,#0a1833 44px 80px); }
.scene[data-theme="chrome-club"] .scenery { background:repeating-linear-gradient(20deg,transparent 0 90px,#6dbaff80 91px 93px,transparent 94px 180px); }
.scene[data-theme="pixel-cosmos"] .sky { background:radial-gradient(circle at 80% 30%,#b177cb 0 35px,#5a357c 36px 55px,transparent 56px),#0a102a; }
.scene[data-theme="pixel-cosmos"] .scenery { background:radial-gradient(circle,#dfd9ff 0 2px,transparent 3px) 0 0/63px 47px; }
.scene[data-theme="pixel-cosmos"] .far { border:2px solid #9490ca; border-radius:50%; transform:rotate(-15deg); width:900px; height:100px; top:100px; }
.scene[data-theme="lava-works"] .sky { background:linear-gradient(#2e1d29,#70281c); }
.scene[data-theme="lava-works"] .far { background:repeating-linear-gradient(90deg,#272633 0 50px,#625149 51px 60px,#201d28 61px 130px); }
.scene[data-theme="lava-works"] .scenery { background:repeating-linear-gradient(110deg,transparent 0 110px,#fa9a2650 111px 125px,transparent 126px 220px); }
.scene[data-theme="ice-circuit"] .sky { background:linear-gradient(#1e4162,#9cd9e3); }
.scene[data-theme="ice-circuit"] .scenery { background:repeating-linear-gradient(65deg,#92dceb60 0 60px,#e3ffff90 61px 63px,transparent 64px 130px); clip-path:polygon(0 100%,8% 5%,18% 70%,30% 20%,40% 100%,65% 70%,80% 10%,90% 50%,100% 0,100% 100%); }
.scene.spotlight-session .beams { opacity:1; filter:saturate(.6); }
.scene.spotlight-session .truss span { background:#ffdc61; color:#101c46; }
@media(max-width:650px) { .layout > .rail { grid-template-columns:minmax(0,1fr); } .scene .mate .bod { image-rendering:pixelated; } }
.venue:has([data-theme="neon-night"]) .arcade-bonus { background:#77f1ef; border-color:#b971ea; }
.venue:has([data-theme="sunset-speedway"]) .arcade-bonus { background:repeating-linear-gradient(90deg,#ffd891 0 50px,#ffc280 50px 100px); }
.venue:has([data-theme="jungle-breaks"]) .arcade-bonus { background:#bddd9b; border-color:#356846; }
.venue:has([data-theme="chrome-club"]) .arcade-bonus { background:linear-gradient(90deg,#b9d9ec,#e4eff5,#9fbbd5); }
.venue:has([data-theme="pixel-cosmos"]) .arcade-bonus { background:#d8c5ff; border-color:#8674c9; }
.venue:has([data-theme="lava-works"]) .arcade-bonus { background:repeating-linear-gradient(135deg,#ffd18a 0 12px,#ffc675 12px 24px); }
.venue:has([data-theme="ice-circuit"]) .arcade-bonus { background:#caf5ff; border-color:#57a7ba; }
/* No full-floor flashing; the event label and static beams carry the emphasis. */
.scene.strobe::after { display:none !important; }

.floating-controls {padding:10px 16px;font-size:12px}.floating-controls button {min-height:44px;padding:8px 14px;background:#152556;color:#ffd400;border:1px solid #6274aa;border-radius:5px}.floating-controls p {max-width:65ch;color:#b6c3e3;line-height:1.5}.floating-controls video {width:min(100%,480px);aspect-ratio:16/9}.floating-controls [hidden] {display:none}

/* Player cards use the venue palette, with a compact phone drawer. */
#player-profile{color:#f4f1d5;background:#101b43;border:3px solid #ffd449;border-radius:14px;padding:0;width:min(420px,calc(100vw - 24px));max-height:90dvh;box-shadow:8px 8px 0 #070d23;overflow:auto}
#player-profile::backdrop{background:#050b22cc}
.profile-shell{padding:20px;position:relative}.profile-close{position:sticky;float:right;top:0;z-index:2;width:44px;height:44px;font-size:26px;background:#162651;color:#fff;border:2px solid #829aca;border-radius:8px}.profile-hero{text-align:center;padding:24px 14px 18px;border:3px solid #7282ad;border-radius:10px;clear:both;background:#121e48}.profile-kicker{font:11px monospace;letter-spacing:2px;color:#ffd449}.profile-avatar{position:relative;width:192px;height:192px;margin:12px auto}.profile-avatar .bod{width:192px;height:192px}.profile-avatar img{width:192px;height:192px;image-rendering:pixelated}.profile-name{font:700 24px monospace;overflow-wrap:anywhere;margin:12px 0}.profile-bio{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font:14px/1.6 sans-serif;margin:0}.pf-frame-cobalt{border-color:#39d5ff;box-shadow:inset 0 0 0 4px #203d9b}.pf-frame-gold{border-color:#ffd449;box-shadow:inset 0 0 0 4px #ab6423}.pf-bg-checker{background:repeating-conic-gradient(#153e72 0 25%,#1c5480 0 50%) 0/32px 32px}.pf-bg-sunset{background:linear-gradient(#55286f,#a64354 60%,#462853)}.pf-name-neon .profile-name{color:#86fff0;text-shadow:2px 2px #a72997}.pf-name-chrome .profile-name{color:#d5eeff;text-shadow:2px 2px #5375a0}.profile-editor,.profile-discord{display:grid;gap:10px;margin-top:20px}.profile-editor label,.profile-shop h3{font:700 12px monospace;letter-spacing:1px}.profile-editor textarea,.profile-editor select{box-sizing:border-box;width:100%;background:#080f29;color:#fff;border:1px solid #8095c2;border-radius:6px;padding:10px;font:16px sans-serif}.profile-editor button,.profile-item button,.profile-discord button,.profile-open{min-height:44px;background:#203d85;color:#fff;border:1px solid #87a2da;border-radius:6px;padding:8px 12px;cursor:pointer}.profile-toggle{display:flex;align-items:center;gap:10px;min-height:44px}.profile-toggle input{width:22px;height:22px}.profile-shop{margin-top:28px;border-top:2px solid #3e5484;padding-top:16px}.profile-shop p,.profile-discord small,.profile-editor small{font:12px/1.5 sans-serif;color:#c6d3ec}.profile-item{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:6px;margin:12px 0;font:12px monospace}.profile-item button{padding:6px}.profile-item button:disabled{opacity:.65}.profile-discord a{color:#92ecff}.profile-open{margin:8px}.profile-discord span{overflow-wrap:anywhere}#profile-status{font:13px/1.5 sans-serif;min-height:20px;color:#ffe07b}.mate[role=button]{cursor:pointer;pointer-events:auto}.mate[role=button]:focus-visible{outline:3px solid #ffd449;outline-offset:8px}#player-profile :focus-visible{outline:3px solid #6cf4ff;outline-offset:3px}
@media(max-width:600px){#player-profile{margin:auto auto 8px;max-height:88dvh;width:calc(100vw - 16px)}.profile-shell{padding:14px}.profile-avatar,.profile-avatar .bod,.profile-avatar img{width:160px;height:160px}.profile-item{grid-template-columns:1fr auto}.profile-item span{grid-column:1/-1}}

/* Latest live Sonic/taste/events compatibility */
:root {
  --blue: #2f5bff; --blue-d: #0f1f7a; --navy: #0b1450; --yellow: #ffd400; --amber: #ffb800;
  --cream: #fff8d6; --red: #ff2742; --lcd: #121a0c; --lcd-text: #ffd84a; --green: #25d04a;
  --hud: italic 900 22px/1 "Liberation Sans", Arial, sans-serif;
  --stroke: 2px 0 #0b1450, -2px 0 #0b1450, 0 2px #0b1450, 0 -2px #0b1450, 3px 3px 0 #0b1450;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #000; color: #e9ecff; font-family: "Liberation Sans", Arial, Helvetica, sans-serif; }
body { min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #0d1a6e 0%, #030512 60%, #000 100%) fixed; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px 30px; }

/* ---------- sprites (fan rips, same set as spindok.vip) ---------- */
.spr { display: inline-block; background-repeat: no-repeat; image-rendering: pixelated; }
.spr.ring { width: 32px; height: 32px; background: url(/spr/ring.png) 0 0 / 128px 32px; animation: f4 .5s steps(4) infinite; vertical-align: middle; }
@keyframes f4 { to { background-position-x: -128px; } }

.controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.play { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; cursor: pointer;
  background: linear-gradient(180deg, #ffe14d, var(--amber)); color: var(--navy); border: 3px solid var(--navy); border-radius: 10px;
  font: italic 900 22px/1 "Liberation Sans", Arial, sans-serif; letter-spacing: 3px; box-shadow: 0 6px 0 var(--navy); transition: transform .06s, box-shadow .06s; }
.play svg { width: 26px; height: 26px; fill: var(--navy); }
.play svg[hidden] { display: none; }
.play:active, .fire:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--navy); }
.play.on { background: linear-gradient(180deg, #ff5a6e, var(--red)); color: #fff; }
.play.on svg { fill: #fff; }
.fire { padding: 12px 16px; border: 3px solid var(--navy); border-radius: 10px; background: #1a0d2e; color: #fff; cursor: pointer;
  font: 900 20px/1 "Liberation Sans", Arial, sans-serif; box-shadow: 0 6px 0 var(--navy); }
.fire.on { background: linear-gradient(180deg, #ff8a00, var(--red)); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vol { display: flex; align-items: center; gap: 10px; font: bold 13px "Liberation Mono", monospace; letter-spacing: 2px; color: var(--cream); }
.vol input { width: 130px; accent-color: var(--yellow); }
.next { font: 13px "Liberation Mono", monospace; color: #c8d0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next span { color: var(--yellow); }
@keyframes blink { 50% { opacity: .2; } }
@keyframes scroll { to { background-position-x: -768px; } }
@keyframes run { to { background-position-x: -900px; } }
@keyframes rpm { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- top bar ---------- */
.top { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 14px 16px 12px; }
.presents { display: inline-block; font: italic 900 11px "Liberation Sans", Arial, sans-serif; letter-spacing: 3px; color: #fff; background: var(--red);
  padding: 3px 10px; border: 3px solid var(--navy); transform: skew(-12deg); box-shadow: 3px 3px 0 var(--navy); }
.logo { margin: 4px 0 0; line-height: .9; font-style: italic; font-weight: 900; white-space: nowrap; }
.logo .l1 { font-size: 40px; color: var(--yellow); -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--navy); }
.logo .l2 { font-size: 30px; letter-spacing: .25em; color: #fff; -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--blue); }
.hud { display: flex; gap: 22px; margin-left: auto; }
.hud div { display: flex; gap: 10px; align-items: baseline; }
.hud .k { font: var(--hud); font-size: 18px; color: var(--yellow); text-shadow: var(--stroke); }
.hud .v { font: var(--hud); font-size: 20px; color: #fff; text-shadow: var(--stroke); }
.hud .v.flash { color: var(--yellow); }
.onair { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; flex: none;
  border: 2px solid #552; border-radius: 4px; font: bold 13px/1 "Liberation Mono", monospace; letter-spacing: 3px; color: #998; background: #000c; }
.onair small { letter-spacing: 0; font-weight: normal; color: #aab; }
.onair .dot { width: 10px; height: 10px; border-radius: 50%; background: #433; }
.onair.live { color: #fff; border-color: var(--red); box-shadow: 0 0 14px #ff274288; }
.onair.live .dot { background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.2s steps(2) infinite; }
.wrap { max-width: 1100px; }

/* ---------- the venue: a 960x540 scene scaled to fit ---------- */
.venue { border: 4px solid var(--yellow); border-radius: 14px; overflow: hidden; background: #050820; box-shadow: 0 0 0 4px var(--navy), 0 18px 50px #000c; }
.fit { position: relative; overflow: hidden; }
.scene { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform-origin: 0 0; overflow: hidden; cursor: pointer; user-select: none;
  --beat: 0; --hue: 220; --ui: 1; background: linear-gradient(#000 0 300px, #070a22 300px); }
.lay { position: absolute; left: 0; right: 0; image-rendering: pixelated; background-repeat: repeat-x; }
.sky { top: 0; height: 320px; background-image: url(/spr/sky.png); background-size: 768px 100%; filter: brightness(.45) saturate(1.3) hue-rotate(20deg); }
.far { top: 30px; height: 288px; background-image: url(/spr/far.png); background-size: 768px 288px; filter: brightness(.5) saturate(1.2);
  animation: scroll 90s linear infinite; animation-play-state: paused; }
body.playing .far { animation-play-state: running; }

.beams { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.beams i { position: absolute; top: 20px; width: 200px; height: 560px; margin-left: -100px; transform-origin: 50% 0; mix-blend-mode: screen;
  background: linear-gradient(180deg, hsl(var(--hue) 100% 72% / .7), hsl(var(--hue) 100% 60% / 0) 88%); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  opacity: calc(.28 + var(--beat) * .7); animation: sweep 5s ease-in-out infinite alternate; }
.beams i:nth-child(1) { left: 290px; animation-delay: -1s; filter: hue-rotate(90deg); }
.beams i:nth-child(2) { left: 400px; animation-delay: -3s; animation-duration: 6s; }
.beams i:nth-child(3) { left: 560px; animation-delay: -2s; animation-duration: 6s; }
.beams i:nth-child(4) { left: 670px; animation-delay: -4s; filter: hue-rotate(-90deg); }
@keyframes sweep { from { transform: rotate(30deg); } to { transform: rotate(-30deg); } }

.truss { position: absolute; left: 214px; top: 8px; width: 532px; height: 270px; z-index: 3; border: 10px solid #8a90a8; border-bottom: 0;
  border-image: repeating-linear-gradient(45deg, #b8bed6 0 5px, #4a5068 5px 10px) 10; }
.truss span { position: absolute; left: 50%; top: -15px; transform: translateX(-50%) skew(-12deg); padding: 2px 14px; background: var(--red); border: 3px solid var(--navy);
  font: italic 900 13px "Liberation Sans", Arial, sans-serif; letter-spacing: 3px; color: #fff; white-space: nowrap; box-shadow: 3px 3px 0 var(--navy); }

.screen { position: absolute; left: 300px; top: 24px; width: 360px; height: 104px; z-index: 4; display: flex; gap: 10px; padding: 8px;
  background: #03050f; border: 5px solid #20264f; border-radius: 6px; box-shadow: 0 0 34px hsl(var(--hue) 100% 60% / .5), inset 0 0 0 2px #000; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #0000 0 2px, #0006 2px 3px); }
#scrart { width: 78px; height: 78px; object-fit: cover; flex: none; border: 2px solid #000; image-rendering: auto; }
.scrinfo { flex: 1; min-width: 0; font-family: "Liberation Mono", monospace; color: var(--lcd-text); text-shadow: 0 0 6px #ffd84a88; }
.scrlbl { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 3px; opacity: .7; }
.scrtitle { margin-top: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: bold 21px "Liberation Sans", Arial, sans-serif; color: #fff; }
.scrtitle.long { text-overflow: clip; }
.scrtitle.long span { display: inline-block; padding-left: 100%; animation: marquee 14s linear infinite; }
.scrartist { margin-top: 4px; font-size: 14px; color: #fff3b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrbar { height: 6px; margin-top: 8px; background: #2a2a10; border: 1px solid #ffd84a44; }
.scrbar i { display: block; height: 100%; width: 0; background: var(--lcd-text); box-shadow: 0 0 8px var(--lcd-text); }

.spk { position: absolute; top: 140px; width: 100px; height: 170px; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
  background: linear-gradient(#262a52, #10132e); border: 4px solid #05081c; border-radius: 6px; box-shadow: inset 0 2px 0 #ffffff1a; }
.spk.l { left: 118px; } .spk.r { left: 742px; }
.spk i { width: 66px; height: 66px; border-radius: 50%; border: 4px solid #000; transform: scale(calc(1 + var(--beat) * .14));
  background: radial-gradient(circle, #6a6a7a 0 12%, #111 13% 38%, #2c2c36 39% 58%, #0a0a0e 59%); }
.spk i:nth-child(2) { width: 44px; height: 44px; }
.spk b { width: 64px; height: 6px; border-radius: 3px; background: hsl(var(--hue) 100% 60%); box-shadow: 0 0 calc(4px + var(--beat) * 14px) hsl(var(--hue) 100% 60%); }

.deckstage { position: absolute; left: 196px; top: 272px; width: 568px; height: 38px; z-index: 5; border: 3px solid #05081c;
  background: linear-gradient(#3fbf3f 0 8px, #1f7a1f 8px 12px, #0000 12px), repeating-conic-gradient(#b5651d 0 25%, #7a3d0e 0 50%) 0 12px / 28px 28px; }
.lip { position: absolute; left: 196px; top: 310px; width: 568px; height: 5px; z-index: 6; background: hsl(var(--hue) 100% 60%);
  box-shadow: 0 0 calc(6px + var(--beat) * 20px) hsl(var(--hue) 100% 60%); }

.dj { position: absolute; left: 416px; top: 128px; width: 128px; height: 128px; z-index: 6; image-rendering: pixelated; transform-origin: 50% 100%;
  translate: 0 calc(var(--beat) * -6px); animation: nod .5s ease-in-out infinite alternate; }
@keyframes nod { to { transform: translateY(3px) rotate(1.5deg); } }
.dj.hop { animation: djhop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes djhop { 50% { transform: translateY(-34px); } }
.booth { position: absolute; left: 368px; top: 226px; width: 224px; height: 72px; z-index: 7; }
.plat { position: absolute; top: -24px; width: 76px; height: 76px; border-radius: 50%; transform: scaleY(.36); transform-origin: 50% 100%;
  background: repeating-radial-gradient(circle, #111 0 2px, #1e1e1e 2px 4px); border: 4px solid #05081c; }
.plat.a { left: 8px; } .plat.b { right: 8px; }
.plat img, .plat.b::after { position: absolute; inset: 30%; width: 40%; height: 40%; border-radius: 50%; object-fit: cover; animation: rpm 1.8s linear infinite; animation-play-state: paused; }
.plat.b::after { content: ""; background: conic-gradient(var(--red) 0 50%, var(--yellow) 0); }
body.playing .plat img, body.playing .plat.b::after { animation-play-state: running; }
.mixer { position: absolute; left: 90px; top: 4px; width: 44px; height: 18px; display: flex; gap: 4px; justify-content: center; align-items: center;
  background: #20264f; border: 3px solid #05081c; border-radius: 3px; }
.mixer i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--hue) 100% 65%); }
.boothfront { position: absolute; left: 0; right: 0; top: 20px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: linear-gradient(#3a63ff, #0f1f7a); border: 3px solid #05081c; border-radius: 4px; box-shadow: inset 0 2px 0 #ffffff40; }
.boothfront span { font: italic 900 14px "Liberation Sans", Arial, sans-serif; letter-spacing: 3px; color: var(--yellow); text-shadow: 2px 2px 0 var(--navy); }
#viz { width: 196px; height: 18px; display: block; background: #050a2a; border: 2px solid #05081c; }

.floor { position: absolute; left: 0; top: 308px; width: 960px; height: 232px; z-index: 8; }
.crowd { position: absolute; inset: 0; pointer-events: none; }

/* critters */
.mate { position: absolute; width: 96px; height: 96px; transform: translate(-50%, -100%) scale(var(--s, 1)); transform-origin: 50% 100%; }
.mate::before { content: ""; position: absolute; left: 24px; right: 24px; bottom: -5px; height: 12px; border-radius: 50%; background: #000a; }
.mate.me::before { left: 16px; right: 16px; bottom: -7px; height: 14px; background: none; border: 3px solid var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.bod { position: relative; width: 96px; height: 96px; transform-origin: 50% 100%; translate: 0 calc(var(--beat) * -7px); animation: idle 2s ease-in-out infinite; }
.bod img { width: 96px; height: 96px; display: block; image-rendering: pixelated; transform-origin: 50% 100%; transition: transform .2s; }
.mate.left .bod img { transform: scaleX(-1); }
.mate.sit .bod img { transform: scaleY(.78); }
.mate.sit.left .bod img { transform: scale(-1, .78); }
@keyframes idle { 50% { transform: translateY(-2px); } }
.mate.walk .bod { animation: walkbob .28s ease-in-out infinite; }
@keyframes walkbob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.bod.e-wave { animation: wave .3s ease-in-out 4; }
@keyframes wave { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.bod.e-dance { animation: dance .4s ease-in-out 5; }
@keyframes dance { 25% { transform: translateX(-9px) skewX(9deg); } 75% { transform: translateX(9px) skewX(-9deg); } }
.bod.e-spin, .bod.e-fire { animation: spindash 1s cubic-bezier(.3,0,.3,1); filter: drop-shadow(-14px 0 0 #ffffff40); }
@keyframes spindash { 0% { transform: none; } 15% { transform: translateY(-26px) scale(.75); } 85% { transform: translateY(-26px) rotate(1080deg) scale(.75); } 100% { transform: none; } }
.bod.e-cheer { animation: hop .5s cubic-bezier(.3,1.6,.5,1) 2; }
.bod.e-hop { animation: hop .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 50% { transform: translateY(-28px); } }
.mate.arrive { animation: arrive .6s cubic-bezier(.3,1.4,.5,1); }
@keyframes arrive { from { opacity: 0; transform: translate(-50%, -260%) scale(var(--s, 1)); } }
.mate.bye { opacity: 0; transition: opacity .45s; }
.pop { position: absolute; left: 50%; top: 0; font-style: normal; font-size: 30px; animation: popup 1.3s ease-out forwards; }
@keyframes popup { from { transform: translate(-50%, 0) scale(.4); opacity: 0; } 20% { opacity: 1; transform: translate(-50%, -16px) scale(1.15); } to { transform: translate(-50%, -64px); opacity: 0; } }
.nm { position: absolute; top: 100%; left: 50%; margin-top: 7px; transform: translateX(-50%) scale(calc(var(--ui) / var(--s, 1))); transform-origin: 50% 0;
  white-space: nowrap; padding: 1px 6px; border-radius: 3px; background: #05081cd0; color: #fff; font: bold 12px/1.4 "Liberation Sans", Arial, sans-serif; text-shadow: 1px 1px 0 #000; }
.mate.me .nm { color: var(--yellow); }
.nm .gm { display: inline-flex; gap: 1px; margin-right: 4px; vertical-align: 0; }
.nm .gm svg { width: 8px; height: 7px; }
.nm .dc { margin-right: 4px; padding: 0 3px; background: #5865f2; font-size: 8px; letter-spacing: 1px; vertical-align: 1px; }

.bub { position: absolute; bottom: 100%; left: 50%; margin-bottom: 2px; width: max-content; max-width: 210px; padding: 6px 10px; pointer-events: none;
  transform: translateX(-50%) scale(calc(var(--ui) / var(--s, 1))); transform-origin: 50% 100%; opacity: 0; transition: opacity .3s;
  background: #fff; color: var(--navy); border: 3px solid var(--navy); border-radius: 10px; font: bold 13px/1.3 "Liberation Sans", Arial, sans-serif; word-wrap: break-word; }
.bub::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid #0000; border-top-color: var(--navy); }
.bub.show { opacity: 1; }
.djbub { left: 480px; bottom: 408px; z-index: 2000; }
.dline { position: absolute; left: 870px; top: 250px; width: 66px; height: 84px; z-index: 340; display: grid; place-items: center; text-align: center; cursor: default;
  background: linear-gradient(#5865f2, #3a44c8); border: 3px solid #05081c; border-radius: 10px 10px 4px 4px; box-shadow: 0 0 calc(4px + var(--beat) * 10px) #5865f2;
  font: italic 900 11px/1.15 "Liberation Sans", Arial, sans-serif; color: #fff; letter-spacing: 1px; }
.dline .bub { left: auto; right: 0; transform: scale(var(--ui)); transform-origin: 100% 100%; margin-bottom: 8px; text-align: left; }
.dline .bub::after { left: auto; right: 20px; }
.dline .bub b { color: #5865f2; }
.dline.ring { animation: wave .15s 6; }

.runner { position: absolute; top: 330px; left: -120px; width: 100px; height: 120px; z-index: 600; visibility: hidden; image-rendering: pixelated;
  background: url(/spr/sonic-run.png) 0 0 / 900px 120px; }
.runner.go { visibility: visible; animation: run .35s steps(9) infinite, across 1.8s linear forwards; }
@keyframes across { to { left: 1000px; } }

.scene.strobe::after { content: ""; position: absolute; inset: 0; z-index: 2500; pointer-events: none; background: #fff; opacity: 0; animation: strobe .16s steps(2) 18; }
.scene.strobe .beams i { animation-duration: .5s; }
@keyframes strobe { 50% { opacity: .22; } }

.joinparty { position: absolute; left: 50%; top: 440px; z-index: 3000; transform: translate(-50%, -50%) scale(var(--ui)); cursor: pointer;
  padding: 12px 28px; background: var(--red); color: #fff; border: 4px solid #000; border-radius: 10px; box-shadow: 5px 5px 0 #000, 0 0 24px #ff2742aa;
  font: italic 900 30px "Liberation Sans", Arial, sans-serif; letter-spacing: 3px; }
.joinparty small { display: block; margin-top: 4px; font: bold 12px "Liberation Mono", monospace; letter-spacing: 0; }
.joinparty[hidden], .floorhint[hidden] { display: none; }
.floorhint { position: absolute; left: 50%; bottom: 12px; z-index: 3000; transform: translateX(-50%) scale(var(--ui)); transform-origin: 50% 100%; pointer-events: none;
  padding: 6px 14px; border-radius: 20px; background: #000c; color: var(--yellow); font: bold 13px "Liberation Mono", monospace; }

/* ---------- console under the scene ---------- */
.console > * { min-width: 0; }
.console { display: grid; gap: 10px; padding: 12px 14px 14px; background: linear-gradient(180deg, #1d3bd0, #0f1f7a); border-top: 4px solid var(--navy); }
.np { display: flex; gap: 12px; align-items: center; padding: 8px 12px; background: var(--lcd); border: 3px solid var(--navy); border-radius: 8px;
  box-shadow: inset 0 0 18px #000; font-family: "Liberation Mono", monospace; color: var(--lcd-text); text-shadow: 0 0 6px #ffd84a66; }
.np img { width: 64px; height: 64px; object-fit: cover; flex: none; border: 2px solid #000; transition: opacity .4s; }
.npinfo { flex: 1; min-width: 0; }
.title { font: bold 19px/1.15 "Liberation Sans", Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist { font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff3b0; }
.album { font-size: 12px; margin-top: 1px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; margin-top: 7px; background: #2a2a10; border: 1px solid #ffd84a44; }
.bar div { height: 100%; width: 0; background: var(--lcd-text); box-shadow: 0 0 8px var(--lcd-text); }
.times { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; margin-top: 4px; }
.times .next { flex: 1; min-width: 0; text-align: center; opacity: .9; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.play { padding: 10px 20px; font-size: 19px; box-shadow: 0 5px 0 var(--navy); }
.play svg { width: 22px; height: 22px; }
.fire { padding: 10px 14px; font-size: 18px; box-shadow: 0 5px 0 var(--navy); }
.emotes { display: flex; gap: 5px; }
.emotes button { width: 42px; height: 42px; padding: 0; font-size: 20px; cursor: pointer; background: #0b1450; border: 3px solid #000; border-radius: 8px; box-shadow: 0 4px 0 #000; }
.emotes button:hover { background: #2f5bff; }
.emotes button:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.console .say { flex: 1 1 220px; padding: 0; border: 0; }
.console .say input { padding: 9px 10px; }

/* ---------- boxes ---------- */
.box { background: #070b26; border: 3px solid #2a3a9a; border-radius: 8px; box-shadow: 4px 4px 0 #000; }
.boxhead { background: linear-gradient(90deg, var(--blue), var(--blue-d)); color: var(--yellow); padding: 8px 12px; border-radius: 4px 4px 0 0;
  font: italic 900 15px "Liberation Sans", Arial, sans-serif; letter-spacing: 2px; border-bottom: 3px solid var(--navy); text-shadow: 2px 2px 0 var(--navy); }
.hint { float: right; color: #c8d0ff; font: 11px "Liberation Mono", monospace; letter-spacing: 1px; text-shadow: none; margin-top: 3px; }
.game, .lower { display: grid; grid-template-columns: 1fr 270px; gap: 20px; margin-top: 22px; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 14px; }

/* vote: item monitors */
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px 14px 12px; }
.opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0; text-align: left; cursor: pointer; background: none; border: 0; color: #e9ecff; font: inherit; min-width: 0; }
.opt .tv { position: relative; display: block; padding: 8px 8px 16px; background: linear-gradient(180deg, #d8dde8, #8890a8); border: 3px solid #000; border-radius: 6px;
  box-shadow: inset 0 2px 0 #fff, 3px 3px 0 #000; transition: transform .1s; }
.opt .tv::after { content: ""; position: absolute; left: 40%; right: 40%; bottom: 5px; height: 4px; background: #333; border-radius: 2px; }
.opt img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 3px solid #000; background: #000; }
.opt:hover .tv { transform: translateY(-3px); }
.opt.mine .tv { background: linear-gradient(180deg, #ffe14d, var(--amber)); }
.opt .t { font-weight: bold; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .a { font-size: 12px; color: #9aa6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.opt .vb { display: block; height: 6px; background: #1e2a70; border-radius: 3px; overflow: hidden; }
.opt .vb i { display: block; height: 100%; background: var(--yellow); transition: width .4s; }
.opt .vn { font: bold 12px "Liberation Mono", monospace; color: var(--yellow); }
.opt .lead { position: absolute; top: -10px; left: -6px; z-index: 2; background: var(--red); color: #fff; font: italic 900 11px "Liberation Sans", Arial, sans-serif;
  letter-spacing: 2px; padding: 3px 7px; border: 2px solid #000; transform: rotate(-6deg); }
.reqq { padding: 0 14px 12px; font: 13px "Liberation Mono", monospace; color: #c8d0ff; }
.reqq b { color: var(--yellow); }

/* player 1 */
.join { padding: 4px 14px 14px; text-align: center; }
.press { margin: 12px 0 4px; font: italic 900 26px "Liberation Sans", Arial, sans-serif; color: var(--yellow); letter-spacing: 2px;
  text-shadow: 3px 3px 0 var(--navy); animation: blink 1s steps(2) infinite; }
.join p { font-size: 14px; line-height: 1.4; color: #c8d0ff; text-align: left; }
.join input, .req input { width: 100%; padding: 10px; background: #000; border: 3px solid #2a3a9a; border-radius: 4px; color: var(--yellow);
  font: bold 16px "Liberation Mono", monospace; letter-spacing: 2px; }
.join input { text-transform: uppercase; }
.join input:focus, .req input:focus { outline: none; border-color: var(--yellow); }
.join button { width: 100%; margin-top: 8px; padding: 11px; cursor: pointer; background: var(--red); color: #fff; border: 3px solid #000; border-radius: 6px;
  font: italic 900 18px "Liberation Sans", Arial, sans-serif; letter-spacing: 4px; box-shadow: 3px 3px 0 #000; }
.err { color: #ff8090 !important; min-height: 1em; font-size: 13px !important; }
.me { padding: 14px; }
.mename { font: italic 900 26px "Liberation Sans", Arial, sans-serif; color: #fff; word-break: break-word; text-shadow: 3px 3px 0 var(--blue); }
.merank { display: flex; gap: 8px; align-items: center; margin: 6px 0 10px; font: 12px "Liberation Mono", monospace; }
.badge { background: var(--yellow); color: var(--navy); padding: 3px 8px; border: 2px solid #000; font: italic 900 12px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; }
.merings { display: flex; align-items: center; gap: 10px; }
.merings b { font: var(--hud); font-size: 34px; color: var(--yellow); text-shadow: 3px 3px 0 var(--navy); }
.gems { display: flex; gap: 4px; margin: 12px 0 4px; }
.gems svg { width: 28px; height: 25px; }
.gems svg.off { opacity: .22; filter: grayscale(1); }
.lvl { height: 8px; margin: 8px 0 4px; background: #1e2a70; border-radius: 4px; overflow: hidden; }
.lvl div { height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red)); }
.menext, .memin { font: 12px "Liberation Mono", monospace; color: #9aa6ff; margin-top: 3px; }

/* shop, history, scores */
.req { padding-bottom: 8px; }
.req input { width: calc(100% - 24px); margin: 12px 12px 4px; letter-spacing: 0; }
.req ul, .hist ol { list-style: none; margin: 0; padding: 0 0 4px; }
.req li, .hist li { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 7px 12px; border-bottom: 1px dashed #1e2a70; }
.req li:last-child, .hist li:last-child { border-bottom: 0; }
.req img, .hist img { width: 42px; height: 42px; object-fit: cover; border: 2px solid #000; border-radius: 50%; background: #000; }
.t { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a { font-size: 13px; color: #9aa6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ago { font: 12px "Liberation Mono", monospace; color: #6c78c8; }
li.empty { display: block !important; color: #6c78c8; font: 13px "Liberation Mono", monospace; padding: 14px 12px; }
.req li button { cursor: pointer; padding: 6px 10px; background: var(--yellow); color: var(--navy); border: 2px solid #000; border-radius: 4px; font: italic 900 12px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; }
.board ol { margin: 0; padding: 6px 12px 8px 34px; font-size: 14px; }
.board li { padding: 5px 0; }
.board li::marker { color: var(--yellow); font: italic 900 15px "Liberation Sans", Arial, sans-serif; }
.board .r { display: block; font: 11px "Liberation Mono", monospace; color: #9aa6ff; margin-top: 2px; }
.board .mini { display: inline-flex; gap: 1px; vertical-align: middle; margin-left: 4px; }
.board .mini svg { width: 11px; height: 10px; }
.board .live { color: #7f8; font-size: 10px; }
.board .none { list-style: none; margin-left: -22px; color: #6c78c8; font: 13px "Liberation Mono", monospace; }

.b88 { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 54px; text-decoration: none; cursor: pointer;
  border: 3px outset #8a95d8; background: #1b2470; color: #fff; font-family: "Liberation Mono", monospace; width: 100%; box-shadow: 3px 3px 0 #000; }
.b88 span { font-size: 11px; letter-spacing: 2px; opacity: .85; }
.b88 b { font: italic 900 19px "Liberation Sans", Arial, sans-serif; letter-spacing: 2px; }
.b88:active { border-style: inset; }
.b88.disc { background: #5865f2; border-color: #9aa2ff; }
.b88.vlc { background: #e86d00; border-color: #ffb066; }
.b88.vip { background: #000; border-color: var(--yellow); color: var(--yellow); }
.tips p { margin: 10px 12px; font-size: 14px; line-height: 1.45; color: #c8d0ff; }
code { font-family: "Liberation Mono", monospace; color: var(--yellow); background: #0003; padding: 1px 4px; border-radius: 3px; word-break: break-all; }

/* footer: checkerboard ground with a motobug on patrol */
.ground { position: relative; margin-top: 70px; padding: 44px 16px 22px; text-align: center;
  background: linear-gradient(#3fbf3f 0 14px, #1f7a1f 14px 22px, transparent 22px),
    repeating-conic-gradient(#b5651d 0 25%, #7a3d0e 0 50%) 0 22px / 48px 48px;
  border-top: 4px solid #000; }
.ground p { position: relative; margin: 0; font: 12px "Liberation Mono", monospace; color: #fff; text-shadow: 1px 1px 0 #000;
  background: #000a; display: inline-block; padding: 5px 10px; border-radius: 4px; }
.motobug { position: absolute; top: -64px; left: -90px; width: 80px; height: 64px;
  background: url(/spr/motobug.png) 0 0 / 240px 64px; image-rendering: pixelated; animation: f3 .45s steps(3) infinite, patrol 24s linear infinite; }
@keyframes f3 { to { background-position-x: -240px; } }
@keyframes patrol { from { left: calc(100% + 10px); } to { left: -100px; } }

/* sonic 2 style title card */
.card { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; visibility: hidden; }
.card.show { visibility: visible; }
.c-blue { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; background: var(--blue); border-right: 8px solid var(--navy);
  transform: translateY(-100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 26vh;
  background-image: repeating-linear-gradient(135deg, #0000 0 18px, #0002 18px 36px); }
.c-blue span { font: italic 900 clamp(18px, 3vw, 30px) "Liberation Sans", Arial, sans-serif; color: #fff; text-align: center; text-shadow: 3px 3px 0 var(--navy); }
.c-yellow { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; background: var(--yellow); border-top: 8px solid var(--navy); transform: translateX(100%); }
.c-text { position: absolute; right: 7vw; top: 30vh; text-align: right; transform: translateX(120vw); max-width: 62vw; }
.c-title { font: italic 900 clamp(28px, 6vw, 64px)/1.05 "Liberation Sans", Arial, sans-serif; color: #fff; text-transform: uppercase;
  -webkit-text-stroke: 4px #000; paint-order: stroke fill; text-shadow: 5px 5px 0 #000;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.c-zone { font: italic 900 clamp(26px, 5vw, 52px)/1.1 "Liberation Sans", Arial, sans-serif; color: #fff; -webkit-text-stroke: 4px #000; paint-order: stroke fill; text-shadow: 5px 5px 0 #000; }
.c-act { display: inline-block; margin-top: 8px; font: italic 900 clamp(22px, 4vw, 40px) "Liberation Sans", Arial, sans-serif; color: var(--red);
  -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.card.show .c-blue { animation: inY 3s cubic-bezier(.2,.8,.2,1) forwards; }
.card.show .c-yellow { animation: inX 3s cubic-bezier(.2,.8,.2,1) .1s forwards; }
.card.show .c-text { animation: inT 3s cubic-bezier(.2,.8,.2,1) .2s forwards; }
@keyframes inY { 0% { transform: translateY(-100%); } 15%, 80% { transform: translateY(0); } 100% { transform: translateY(-100%); } }
@keyframes inX { 0% { transform: translateX(100%); } 15%, 80% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@keyframes inT { 0% { transform: translateX(120vw); } 18%, 78% { transform: translateX(0); } 100% { transform: translateX(-150vw); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--navy); color: var(--yellow); border: 3px solid var(--yellow); padding: 10px 18px; border-radius: 6px;
  font: italic 900 15px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; transition: .25s; box-shadow: 3px 3px 0 #000; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 800px) {
  .top { flex-wrap: wrap; justify-content: center; gap: 10px 16px; padding: 10px 10px 8px; }
  .brand { text-align: center; width: 100%; }
  .logo .l1 { font-size: 30px; } .logo .l2 { font-size: 22px; }
  .hud { margin-left: 0; gap: 14px; } .hud .k { font-size: 14px; } .hud .v { font-size: 16px; }
  .game, .lower { grid-template-columns: 1fr; }
  .opts { gap: 8px; padding: 14px 10px 10px; }
  .hint { float: none; display: block; }
  .wrap { padding: 0 8px 30px; }
  .venue { border-width: 3px; border-radius: 10px; }
  .vol { display: none; }
  .console { padding: 10px; }
  .console .say { flex-basis: 100%; order: 5; }
  .emotes button { width: 38px; height: 38px; font-size: 18px; }
  .np img { width: 52px; height: 52px; }
  .times .next { display: none; }
}
/* blinking text off for reduced motion; sprites + title card stay (Spindok runs reduce-motion and wants them) */
.card::before { content: ""; position: absolute; inset: 0; background: #000c; opacity: 0; }
.card.show::before { animation: dim 3s ease forwards; }
@keyframes dim { 0% { opacity: 0; } 12%, 82% { opacity: 1; } 100% { opacity: 0; } }

/* live chat */
.chatbox { margin-top: 22px; }
.chatbox .hint a { color: var(--yellow); }
.msgs { list-style: none; margin: 0; padding: 8px 12px; height: 220px; overflow-y: auto; font-size: 14px; line-height: 1.45;
  background: repeating-linear-gradient(0deg, #0000 0 2px, #ffffff05 2px 3px); scrollbar-color: #2a3a9a #070b26; }
.msgs li { padding: 3px 0; word-wrap: break-word; }
.msgs .tag { display: inline-block; font: italic 900 10px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; padding: 1px 5px; margin-right: 6px; border: 1px solid #000; vertical-align: 1px; }
.msgs .tag.d { background: #5865f2; color: #fff; }
.msgs .tag.w { background: var(--yellow); color: var(--navy); }
.msgs .who { font-weight: bold; color: #fff; margin-right: 6px; }
.msgs .who.me { color: var(--yellow); }
.msgs .mini { display: inline-flex; gap: 1px; margin-right: 4px; vertical-align: -1px; }
.msgs .mini svg { width: 10px; height: 9px; }
.msgs .tm { font: 11px "Liberation Mono", monospace; color: #55609e; margin-right: 6px; }
.msgs .txt { color: #d8dcff; }
.msgs .sys { color: #6c78c8; font: 13px "Liberation Mono", monospace; }
.say { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 2px solid #1e2a70; }
.say input { flex: 1; min-width: 0; padding: 10px; background: #000; border: 3px solid #2a3a9a; border-radius: 4px; color: #fff; font: 15px "Liberation Sans", Arial, sans-serif; }
.say input:focus { outline: none; border-color: var(--yellow); }
.say button { padding: 0 18px; cursor: pointer; background: var(--yellow); color: var(--navy); border: 3px solid #000; border-radius: 4px; font: italic 900 15px "Liberation Sans", Arial, sans-serif; letter-spacing: 2px; box-shadow: 3px 3px 0 #000; }

/* someone voted: popup that rallies everyone else */
.vpop { position: fixed; left: 16px; bottom: 16px; z-index: 55; display: flex; gap: 12px; align-items: center; width: min(380px, calc(100vw - 32px));
  padding: 12px; background: linear-gradient(180deg, #2f5bff, #0f1f7a); border: 4px solid var(--yellow); border-radius: 10px; box-shadow: 0 0 0 3px #000, 6px 6px 0 #000;
  animation: popin .4s cubic-bezier(.2,1.6,.4,1); }
.vpop[hidden] { display: none; }
@keyframes popin { from { transform: translateY(140%) scale(.8); } }
.vpop img { width: 72px; height: 72px; object-fit: cover; border: 3px solid #000; border-radius: 4px; flex: none; }
.vpbody { min-width: 0; flex: 1; }
.vpwho { font: 13px "Liberation Mono", monospace; color: #c8d0ff; }
.vpwho b { font: italic 900 16px "Liberation Sans", Arial, sans-serif; color: var(--yellow); }
.vptitle { font: italic 900 18px "Liberation Sans", Arial, sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 2px 2px 0 #000; }
.vpcount { font: 11px "Liberation Mono", monospace; color: #fff; margin: 3px 0 7px; }
.vpcount span { color: var(--yellow); font-weight: bold; }
#vpyes { cursor: pointer; padding: 7px 12px; background: var(--red); color: #fff; border: 3px solid #000; border-radius: 6px; box-shadow: 3px 3px 0 #000;
  font: italic 900 14px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; animation: nudge 1s ease-in-out infinite; }
#vpyes small { font-size: 10px; opacity: .85; }
#vpyes:disabled { animation: none; opacity: .6; cursor: default; }
@keyframes nudge { 50% { transform: scale(1.06); } }
.vpx { position: absolute; top: 2px; right: 6px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.opt .need { font: 11px "Liberation Mono", monospace; color: #9aa6ff; }

/* takeover: enough votes, song switches with a spin dash */
.takeover { position: fixed; inset: 0; z-index: 70; pointer-events: none; visibility: hidden; overflow: hidden; }
.takeover.go { visibility: visible; }
.tk-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.takeover.go .tk-flash { animation: flash 2.8s ease forwards; }
@keyframes flash { 0% { opacity: .95; } 8% { opacity: 0; background: #0b1450; } 15%, 85% { opacity: .85; background: #0b1450; } 100% { opacity: 0; } }
.tk-dash { position: absolute; top: 50%; left: -160px; width: 120px; height: 144px; margin-top: -72px; image-rendering: pixelated;
  background: url(/spr/sonic-spin.png) 0 0 / 960px 144px; filter: drop-shadow(-40px 0 0 #2f6bff88) drop-shadow(-40px 0 0 #2f6bff44); }
.takeover.go .tk-dash { animation: spin8 .2s steps(8) infinite, dash 1.1s cubic-bezier(.6,0,.4,1) .15s forwards; }
@keyframes spin8 { to { background-position-x: -960px; } }
@keyframes dash { to { left: calc(100% + 160px); } }
.tk-rings { position: absolute; left: 50%; top: 50%; }
.tk-rings i { position: absolute; width: 32px; height: 32px; margin: -16px; background: url(/spr/ring.png) 0 0 / 128px 32px; image-rendering: pixelated;
  animation: f4 .3s steps(4) infinite, burst 1.6s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes burst { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)); opacity: 0; } }
.tk-text { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) scale(0); text-align: center; }
.takeover.go .tk-text { animation: slam 2.8s cubic-bezier(.2,1.5,.4,1) .35s forwards; }
@keyframes slam { 0% { transform: translateY(-50%) scale(0) rotate(-8deg); } 18%, 82% { transform: translateY(-50%) scale(1) rotate(-3deg); } 100% { transform: translateY(-50%) scale(1.4); opacity: 0; } }
.tk-big { font: italic 900 clamp(40px, 9vw, 96px)/.95 "Liberation Sans", Arial, sans-serif; color: var(--yellow); -webkit-text-stroke: 5px #000; paint-order: stroke fill; text-shadow: 6px 6px 0 #000; }
.tk-song { margin-top: 14px; font: italic 900 clamp(18px, 3vw, 30px) "Liberation Sans", Arial, sans-serif; color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.linkreq { margin: 8px 12px 4px; padding-top: 10px; border-top: 2px dashed #1e2a70; }
.lrhead { font: italic 900 13px "Liberation Sans", Arial, sans-serif; letter-spacing: 2px; color: var(--yellow); margin-bottom: 6px; }
.lrhead span { float: right; font: 11px "Liberation Mono", monospace; color: #c8d0ff; letter-spacing: 1px; }
.lrrow { display: flex; gap: 8px; }
.lrrow input { flex: 1; min-width: 0; margin: 0 !important; width: auto !important; }
.lrrow button { cursor: pointer; padding: 0 12px; background: var(--red); color: #fff; border: 3px solid #000; border-radius: 4px; font: italic 900 13px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; box-shadow: 3px 3px 0 #000; }
.lrrow button:disabled { opacity: .6; }
.lrnote { margin: 6px 0 0; font: 11px "Liberation Mono", monospace; color: #6c78c8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 8px; }
.chips button { cursor: pointer; padding: 4px 10px; background: #0d1440; color: #c8d0ff; border: 2px solid #2a3a9a; border-radius: 14px; font: bold 12px "Liberation Sans", Arial, sans-serif; }
.chips button:hover, .chips button.on { border-color: var(--yellow); color: var(--yellow); }
.chips button[data-kind="random"] { background: var(--yellow); color: var(--navy); border-color: #000; }
.req li.sc { background: #1a0d2e; }
.req li.sc .ic { width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; background: #ff5500; border: 2px solid #000; border-radius: 50%; }
.req li button.red { background: var(--red); color: #fff; }
.req .sub { font: 11px "Liberation Mono", monospace; color: #6c78c8; padding: 6px 12px 0; letter-spacing: 1px; }
.hist li button.again { cursor: pointer; background: none; border: 2px solid #2a3a9a; color: var(--yellow); border-radius: 4px; font: bold 12px "Liberation Mono", monospace; padding: 3px 6px; }
.hist li button.again:hover { border-color: var(--yellow); }
.hist li { grid-template-columns: 42px 1fr auto auto; }
.linkd { margin-top: 12px; width: 100%; cursor: pointer; padding: 8px; background: #5865f2; color: #fff; border: 3px solid #000; border-radius: 6px; font: italic 900 13px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; box-shadow: 3px 3px 0 #000; }
.linkcode { margin-top: 8px; font: 13px "Liberation Mono", monospace; color: #c8d0ff; }
.linkcode code { font-size: 15px; font-weight: bold; }

/* ---------- avatars: PLAYER 1 card + character select ---------- */
.mehead { display: flex; gap: 12px; align-items: center; }
.meav { position: relative; flex: none; width: 76px; height: 76px; padding: 0; cursor: pointer; border: 3px solid var(--navy); border-radius: 8px;
  background: linear-gradient(180deg, #69d2ff 0 55%, #3fbf3f 55% 70%, #b5651d 70%); box-shadow: 3px 3px 0 #000; overflow: hidden; }
.meav canvas { width: 64px; height: 64px; image-rendering: pixelated; display: block; margin: 3px auto 0; }
.meav span { position: absolute; left: 0; right: 0; bottom: 0; background: #0b1450d9; color: var(--yellow); font: italic 900 10px/1.6 "Liberation Sans", Arial, sans-serif;
  letter-spacing: 2px; opacity: 0; transition: opacity .15s; }
.meav:hover span, .meav:focus-visible span { opacity: 1; }
.meav:focus-visible { outline: 3px solid var(--yellow); }

.avb { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; padding: 12px; background: #000b; }
.avb[hidden] { display: none; }
.avb-box { width: min(640px, 100%); max-height: calc(100vh - 24px); overflow: auto; background: #070b26; border: 4px solid var(--yellow); border-radius: 12px;
  box-shadow: 0 0 0 4px var(--navy), 0 20px 60px #000; }
.avb-head { position: relative; padding: 10px 14px; background: linear-gradient(90deg, var(--red), #a0001a); color: #fff; border-bottom: 4px solid var(--navy);
  font: italic 900 22px "Liberation Sans", Arial, sans-serif; letter-spacing: 3px; text-shadow: 3px 3px 0 var(--navy); }
.avb-head .vpx { top: 6px; right: 10px; font-size: 28px; }
.avb-body { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 16px; }
.avb-stage { position: relative; height: 260px; border: 3px solid var(--navy); border-radius: 8px; overflow: hidden; image-rendering: pixelated;
  background: url(/spr/near.png) 0 100% / 768px 288px repeat-x, url(/spr/far.png) -100px 100% / 768px 288px repeat-x, url(/spr/sky.png) 0 0 / 768px 100%; }
.avb-stage canvas { position: absolute; left: 50%; bottom: 46px; width: 192px; height: 192px; transform: translateX(-50%); image-rendering: pixelated; }
.avb-name { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font: italic 900 18px "Liberation Sans", Arial, sans-serif; color: #fff;
  text-shadow: var(--stroke); letter-spacing: 1px; }
.avb-opts { display: grid; gap: 10px; align-content: start; }
.avb-row .k { font: italic 900 12px "Liberation Sans", Arial, sans-serif; color: var(--yellow); letter-spacing: 2px; margin-bottom: 4px; }
.avb-step { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; background: #000; border: 3px solid #2a3a9a; border-radius: 6px; }
.avb-step b { text-align: center; font: bold 14px "Liberation Mono", monospace; color: #fff; text-transform: uppercase; }
.avb-step button { height: 32px; border: 0; background: var(--blue-d); color: var(--yellow); font: 900 16px sans-serif; cursor: pointer; }
.avb-step button:hover { background: var(--blue); }
.avb-sw { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.avb-sw button { width: 24px; height: 24px; padding: 0; border: 3px solid #000; border-radius: 50%; cursor: pointer; }
.avb-sw button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--yellow); }
.avb-foot { display: flex; gap: 10px; padding: 0 16px 6px; }
.avb-foot button { flex: 1; padding: 12px; cursor: pointer; border: 3px solid var(--navy); border-radius: 8px; font: italic 900 17px "Liberation Sans", Arial, sans-serif;
  letter-spacing: 2px; box-shadow: 0 5px 0 var(--navy); }
.avb-foot button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.avb-rnd { background: #1a0d2e; color: #fff; flex: 0 0 150px !important; }
.avb-save { background: linear-gradient(180deg, #ffe14d, var(--amber)); color: var(--navy); }
.avb-note { margin: 6px 16px 14px; font: 12px "Liberation Mono", monospace; color: #9aa6ff; }
@media (max-width: 600px) {
  .avb-body { grid-template-columns: 1fr; }
  .avb-stage { height: 220px; }
  .avb-stage canvas { width: 160px; height: 160px; bottom: 40px; }
  .avb-rnd { flex-basis: 135px !important; padding: 12px 6px !important; }
}
.mehead .merank { flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 0; }
.me .mehead + .merings { margin-top: 10px; }
@media (max-width: 600px) { .avb-foot button { font-size: 15px; letter-spacing: 1px; } }

/* ---------- ring shop: entry points ---------- */
.shopbtn { padding: 10px 14px; cursor: pointer; border: 3px solid var(--navy); border-radius: 10px; background: linear-gradient(180deg, #ffe14d, var(--amber));
  color: var(--navy); font: italic 900 16px/1 "Liberation Sans", Arial, sans-serif; letter-spacing: 2px; box-shadow: 0 5px 0 var(--navy); }
.shopbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.shopbig { display: block; width: 100%; margin-top: 12px; padding: 9px; cursor: pointer; border: 3px solid #000; border-radius: 6px; box-shadow: 3px 3px 0 #000;
  background: linear-gradient(180deg, #ffe14d, var(--amber)); color: var(--navy); font: italic 900 15px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; }
.shopbig small { display: block; font: bold 11px "Liberation Mono", monospace; letter-spacing: 0; opacity: .8; }
.kiosk { position: absolute; left: 20px; top: 244px; width: 72px; height: 92px; z-index: 340; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px;
  background: linear-gradient(#ffe14d, #ffb800); border: 3px solid #05081c; border-radius: 12px 12px 4px 4px; color: var(--navy); text-align: center;
  font: italic 900 12px/1.1 "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; box-shadow: 0 0 calc(6px + var(--beat) * 12px) #ffd400; transition: transform .15s; }
.kiosk:hover { transform: translateY(-4px); }
.emotes button.bought { border-color: var(--yellow); }

/* ---------- auras / names / bubbles (work on the floor, in the shop preview and on cards) ---------- */
.bod img { position: relative; z-index: 1; }
.bod::before, .bod::after { content: none; position: absolute; pointer-events: none; }
.fx-aura-shield .bod::after { content: ""; inset: 2% 4% 0; z-index: 2; border-radius: 50%; border: 2px solid #bfe9ffcc;
  background: radial-gradient(circle at 35% 30%, #ffffffaa 0 6%, #0000 7%), radial-gradient(circle, #0000 55%, #5ac8ff44 72%, #bfe9ff88); animation: shimmer 2s ease-in-out infinite; }
.fx-aura-electric .bod::after { content: ""; inset: 2% 4% 0; z-index: 2; border-radius: 50%; border: 3px dashed #ffe94a; box-shadow: 0 0 10px #4af, inset 0 0 12px #4af8;
  animation: zap .9s linear infinite; }
.fx-aura-fire .bod::before { content: ""; inset: 0 8% -4%; z-index: 0; border-radius: 50% 50% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, #fff6a8 0 15%, #ffb800 30%, #ff4400cc 50%, #0000 72%); filter: blur(2px); animation: flame .35s ease-in-out infinite alternate; }
.fx-aura-chaos .bod::before { content: ""; inset: -6%; z-index: 0; border-radius: 50%; filter: blur(6px); opacity: .85;
  background: conic-gradient(#ff2742, #ffd400, #25d04a, #00d9ff, #a53bff, #ff2742); animation: rpm 2s linear infinite; }
.fx-aura-super .bod img { filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1.25); animation: superflick .12s steps(2) infinite; }
.fx-aura-super .bod::before { content: ""; inset: -8%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, #fff6a8dd 0 30%, #ffd40066 50%, #0000 70%);
  animation: shimmer 1s ease-in-out infinite; }
.fx-aura-super .bod::after { content: ""; inset: -6%; z-index: 2; animation: twinkle .8s steps(2) infinite;
  background: radial-gradient(circle at 15% 25%, #fff 0 2%, #0000 3%), radial-gradient(circle at 85% 35%, #fff 0 2%, #0000 3%), radial-gradient(circle at 70% 85%, #fff 0 2%, #0000 3%), radial-gradient(circle at 25% 75%, #fff 0 1.5%, #0000 2.5%); }
@keyframes shimmer { 50% { opacity: .55; transform: scale(1.04); } }
@keyframes zap { 0% { transform: rotate(0); opacity: 1; } 50% { opacity: .5; } 100% { transform: rotate(360deg); opacity: 1; } }
@keyframes flame { to { transform: scaleY(1.08) translateY(-3%); opacity: .8; } }
@keyframes superflick { 50% { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.45); } }
@keyframes twinkle { 50% { opacity: .2; } }

.fx-name-gold .nm { color: #ffd400 !important; text-shadow: 0 0 6px #ffb800, 1px 1px 0 #000; }
.fx-name-ice .nm { color: #c2fbff !important; text-shadow: 0 0 6px #00d9ff, 1px 1px 0 #000; }
.fx-name-fire .nm { color: #ffb800 !important; text-shadow: 0 -2px 5px #ff4400, 1px 1px 0 #000; animation: namefire .4s ease-in-out infinite alternate; }
.fx-name-rainbow .nm { animation: rainbow 2.4s linear infinite; text-shadow: 1px 1px 0 #000; }
@keyframes namefire { to { text-shadow: 0 -3px 8px #ff2200, 1px 1px 0 #000; } }
@keyframes rainbow { 0%, 100% { color: #ff4a5a; } 17% { color: #ffb800; } 33% { color: #ffee33; } 50% { color: #4aff7a; } 67% { color: #4ad8ff; } 83% { color: #b56aff; } }

.fx-bubble-comic .bub { background: #ffe14d; border-color: #000; color: #000; font-family: "Comic Sans MS", "Comic Neue", "Liberation Sans", sans-serif; font-style: italic; }
.fx-bubble-comic .bub::after { border-top-color: #000; }
.fx-bubble-pixel .bub { border-radius: 0; border-color: #000; box-shadow: 3px 3px 0 #000; font-family: "Liberation Mono", monospace; }
.fx-bubble-pixel .bub::after { border-top-color: #000; }
.fx-bubble-neon .bub { background: #12001f; color: #fff; border-color: #ff4fd8; box-shadow: 0 0 10px #ff4fd8, inset 0 0 8px #ff4fd855; text-shadow: 0 0 6px #ff4fd8; }
.fx-bubble-neon .bub::after { border-top-color: #ff4fd8; }
.fx-bubble-gold .bub { background: linear-gradient(#fff3a0, #ffd400); border-color: #8a6a00; color: #3a2a00; box-shadow: 0 0 10px #ffd40088; }
.fx-bubble-gold .bub::after { border-top-color: #8a6a00; }

/* trails */
.trail { position: absolute; pointer-events: none; transform: translate(-50%, -50%) scale(var(--s, 1)); }
.t-sparkle { width: 12px; height: 12px; background: #fff6a8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: tfade .8s ease-out forwards; }
.t-rings { width: 16px; height: 16px; background: url(/spr/ring.png) 0 0 / 64px 16px; image-rendering: pixelated; animation: f4s .3s steps(4) infinite, tfall .8s ease-in forwards; }
@keyframes f4s { to { background-position-x: -64px; } }
.t-flame { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #fff6a8, #ffb800 40%, #ff4400 70%, #0000 72%); animation: trise .7s ease-out forwards; }
.t-afterimage { transform: translate(-50%, -100%) scale(var(--s, 1)); transform-origin: 50% 100%; animation: tghost .5s linear forwards; }
.t-afterimage img { width: 96px; height: 96px; image-rendering: pixelated; filter: brightness(.6) sepia(1) hue-rotate(180deg) saturate(4); opacity: .6; }
@keyframes tfade { to { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(90deg); } }
@keyframes tfall { to { opacity: 0; margin-top: 30px; } }
@keyframes trise { to { opacity: 0; margin-top: -30px; transform: translate(-50%, -50%) scale(.3); } }
@keyframes tghost { to { opacity: 0; } }

/* floor rings */
.drop { position: absolute; width: 32px; height: 32px; margin: -40px 0 0 -16px; pointer-events: none; image-rendering: pixelated;
  background: url(/spr/ring.png) 0 0 / 128px 32px; animation: f4 .5s steps(4) infinite, dropbob 1.4s ease-in-out infinite; filter: drop-shadow(0 0 4px #ffd400); }
.drop::before { content: ""; position: absolute; left: 4px; right: 4px; bottom: -12px; height: 6px; border-radius: 50%; background: #0008; }
.drop.big { width: 48px; height: 48px; margin: -60px 0 0 -24px; background-size: 192px 48px; animation: f4b .5s steps(4) infinite, dropbob 1.4s ease-in-out infinite; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px #ffd400); }
.drop.fresh { animation: f4 .5s steps(4) infinite, dropin .7s cubic-bezier(.3,1.5,.5,1); }
.drop.big.fresh { animation: f4b .5s steps(4) infinite, dropin .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes f4b { to { background-position-x: -192px; } }
.drop.got { animation: f4 .15s steps(4) infinite, dropgot .8s ease-out forwards; }
.drop.got::after { content: attr(data-n); position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font: italic 900 18px "Liberation Sans", Arial, sans-serif;
  color: var(--yellow); -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill; }
@keyframes dropbob { 50% { translate: 0 -6px; } } /* was margin-top (layout every frame), 2026-11-19 */
@keyframes dropin { from { margin-top: -260px; opacity: 0; } }
@keyframes dropgot { to { margin-top: -110px; opacity: 0; } }

/* bought moves */
.bod.e-breakdance { transform-origin: 50% 55%; animation: breakd 1.6s ease-in-out; }
@keyframes breakd { 0% { transform: none; } 15% { transform: rotate(180deg); } 85% { transform: rotate(180deg) rotateY(1440deg); } 100% { transform: none; } }
.bod.e-backflip { transform-origin: 50% 60%; animation: backflip .8s ease-in-out; }
@keyframes backflip { 50% { transform: translateY(-44px) rotate(-180deg); } 100% { transform: rotate(-360deg); } }
.bod.e-moonwalk { animation: moonwalk 1.8s steps(12); }
@keyframes moonwalk { 0%, 100% { transform: none; } 45% { transform: translateX(-46px) skewX(-6deg); } 55% { transform: translateX(-46px); } }
.pop.horn { top: -12px; font: italic 900 22px "Liberation Sans", Arial, sans-serif; color: var(--yellow); -webkit-text-stroke: 4px var(--navy); paint-order: stroke fill; white-space: nowrap; }
.toss { position: absolute; left: 50%; top: 25%; width: 20px; height: 20px; z-index: 3; pointer-events: none; image-rendering: pixelated;
  background: url(/spr/ring.png) 0 0 / 80px 20px; animation: f4t .25s steps(4) infinite, toss 1.1s cubic-bezier(.2,.7,.5,1) forwards; }
@keyframes f4t { to { background-position-x: -80px; } }
@keyframes toss { 0% { transform: translate(-50%, 0); } 55% { transform: translate(calc(-50% + var(--tx)), var(--ty)); } 100% { transform: translate(calc(-50% + var(--tx) * 1.3), 60px); opacity: 0; } }
.shake { animation: shake .45s; }
@keyframes shake { 20% { translate: 5px 2px; } 40% { translate: -5px -2px; } 60% { translate: 4px -1px; } 80% { translate: -3px 1px; } }

/* ---------- ring shop window ---------- */
.shop { position: fixed; inset: 0; z-index: 58; display: grid; place-items: center; padding: 12px; background: #000b; }
.shop[hidden] { display: none; }
.shop-box { width: min(1000px, 100%); max-height: calc(100vh - 24px); display: flex; flex-direction: column; overflow: hidden; background: #070b26;
  border: 4px solid var(--yellow); border-radius: 12px; box-shadow: 0 0 0 4px var(--navy), 0 20px 60px #000; }
.shop-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 8px 50px 8px 14px; background: linear-gradient(90deg, var(--red), #a0001a);
  border-bottom: 4px solid var(--navy); color: #fff; font: italic 900 22px "Liberation Sans", Arial, sans-serif; letter-spacing: 3px; text-shadow: 3px 3px 0 var(--navy); }
.shop-head .vpx { top: 4px; right: 10px; font-size: 28px; }
.shop-wallet { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 2px 12px 2px 4px; background: #0008; border-radius: 20px; }
.shop-wallet b { color: var(--yellow); font-size: 22px; letter-spacing: 1px; }
.shop-body { display: grid; grid-template-columns: 290px 1fr; gap: 14px; padding: 14px; min-height: 0; overflow: auto; }
.shop-left { display: flex; flex-direction: column; gap: 10px; }
.shop-stage { position: relative; height: 280px; border: 3px solid var(--navy); border-radius: 8px; overflow: hidden; image-rendering: pixelated;
  background: url(/spr/near.png) 0 100% / 768px 288px repeat-x, url(/spr/far.png) -100px 100% / 768px 288px repeat-x, url(/spr/sky.png) 0 0 / 768px 100%; }
.shopmate { left: 50%; top: auto; bottom: 46px; --s: 2; --ui: 1; transform: translate(-50%, 0) scale(2); transform-origin: 50% 100%; }
.shopmate .bub { max-width: 150px; font-size: 12px; }
.shopmate.demo { animation: demowalk 2.6s ease-in-out infinite alternate; }
.shopmate.demo .bod { animation: walkbob .28s ease-in-out infinite; }
@keyframes demowalk { from { left: 28%; } to { left: 72%; } }
.shop-info { min-height: 92px; padding: 10px 12px; background: #000; border: 3px solid #2a3a9a; border-radius: 8px; }
.si-hint { margin: 24px 0; text-align: center; font: 13px "Liberation Mono", monospace; color: #9aa6ff; }
.si-name { font: italic 900 20px "Liberation Sans", Arial, sans-serif; color: #fff; }
.si-tags { display: flex; gap: 6px; margin: 4px 0 10px; }
.si-tags span { padding: 2px 7px; border: 2px solid #000; font: italic 900 11px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; }
.si-r.r-common { background: #c8d0ff; color: var(--navy); } .si-r.r-rare { background: #2f9bff; color: #fff; } .si-r.r-legendary { background: linear-gradient(90deg, #ffd400, #ff8a00); color: var(--navy); }
.si-rank { background: #25d04a; color: #000; } .si-deal { background: var(--red); color: #fff; }
.si-btn { width: 100%; padding: 11px; cursor: pointer; border: 3px solid var(--navy); border-radius: 8px; background: #2f5bff; color: #fff; box-shadow: 0 5px 0 var(--navy);
  font: italic 900 17px "Liberation Sans", Arial, sans-serif; letter-spacing: 2px; }
.si-btn.buy { background: linear-gradient(180deg, #ffe14d, var(--amber)); color: var(--navy); }
.si-btn:disabled { opacity: .45; cursor: default; }
.si-btn:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.si-why { margin-top: 8px; font: 12px "Liberation Mono", monospace; color: #ff8090; }
.shop-save { padding: 11px; cursor: pointer; border: 3px solid var(--navy); border-radius: 8px; background: var(--green); color: #000; box-shadow: 0 5px 0 var(--navy);
  font: italic 900 16px "Liberation Sans", Arial, sans-serif; letter-spacing: 2px; }
.shop-save:disabled { opacity: .35; cursor: default; }
.shop-right { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.shop-tabs button { padding: 6px 10px; cursor: pointer; background: #0d1440; color: #c8d0ff; border: 2px solid #2a3a9a; border-radius: 6px;
  font: italic 900 12px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; }
.shop-tabs button.on { background: var(--yellow); color: var(--navy); border-color: #000; }
.shop-deal { font: 12px "Liberation Mono", monospace; color: #c8d0ff; }
.shop-deal b { color: var(--yellow); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; align-content: start; padding: 4px 2px 8px; }
.shop-empty { grid-column: 1 / -1; color: #6c78c8; font: 13px "Liberation Mono", monospace; }
.sc { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; cursor: pointer; text-align: center; color: #fff;
  background: #0b1450; border: 3px solid #2a3a9a; border-radius: 8px; box-shadow: 3px 3px 0 #000; transition: transform .1s; font: inherit; }
.sc:hover { transform: translateY(-3px); }
.sc.r-rare { border-color: #2f9bff; box-shadow: 3px 3px 0 #000, 0 0 10px #2f9bff66; }
.sc.r-legendary { border-color: #ffd400; box-shadow: 3px 3px 0 #000, 0 0 14px #ffd40088; background: linear-gradient(160deg, #2a1a00, #0b1450 60%); }
.sc.sel { outline: 3px solid #fff; outline-offset: 2px; }
.sc.on .sc-tv { background: linear-gradient(180deg, #7dff9a, #25d04a); }
.sc.locked .sc-tv > * { filter: grayscale(1) brightness(.6); }
.sc-tv { display: grid; place-items: center; height: 84px; padding: 4px; background: linear-gradient(180deg, #d8dde8, #8890a8); border: 3px solid #000; border-radius: 6px;
  box-shadow: inset 0 2px 0 #fff; overflow: hidden; }
.sc-av { position: relative; }
.sc-av .bod { width: 64px; height: 64px; animation: none; translate: none; }
.sc-av img { width: 64px; height: 64px; image-rendering: pixelated; }
.sc-ic { font-size: 36px; line-height: 1; }
.sc-nm .nm, .sc-bub .bub { position: static; transform: none; margin: 0; opacity: 1; display: inline-block; }
.sc-nm .nm { font-size: 13px; }
.sc-bub .bub { font-size: 12px; }
.sc-name { font: bold 12px "Liberation Sans", Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-foot { font: bold 12px "Liberation Mono", monospace; }
.sc-price { display: inline-flex; align-items: center; gap: 3px; color: var(--yellow); }
.sc-price .ring { zoom: .5; }
.sc-price s { color: #9aa6ff; font-weight: normal; margin-right: 2px; }
.sc-own { color: #7dff9a; } .sc-lock { color: #c8d0ff; }
.sc-deal { position: absolute; top: -8px; right: -6px; z-index: 2; padding: 2px 6px; background: var(--red); color: #fff; border: 2px solid #000;
  font: italic 900 11px "Liberation Sans", Arial, sans-serif; transform: rotate(6deg); }
@media (max-width: 760px) {
  .shop-body { grid-template-columns: 1fr; }
  .shop-stage { height: 220px; }
  .shopmate { bottom: 34px; --s: 1.6; transform: translate(-50%, 0) scale(1.6); }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .shopbtn span { display: none; }
}

/* admin (DJ Spindok) + house bot name tags */
.adm { display: inline-block; margin-right: 4px; padding: 0 4px; font-size: 8px; letter-spacing: 1px; vertical-align: 1px; color: #000;
  background: linear-gradient(90deg, #ffd400, #ff8a00, #ff3cac, #00d9ff, #00e676, #ffd400); background-size: 300% 100%;
  animation: admshine 3s linear infinite; box-shadow: 0 0 6px #ffd400; }
@keyframes admshine { to { background-position: 300% 0; } }
.mate.admin .nm { color: #ffd400; text-shadow: 0 0 6px #ffb800, 1px 1px 0 #000; }
.who.admin { color: #ffd400; text-shadow: 0 0 5px #ffb800; }
.nm .bt { margin-right: 4px; padding: 0 3px; background: #555; color: #ddd; font-size: 8px; letter-spacing: 1px; vertical-align: 1px; }

/* special person tag (e.g. MOM) */
.utag { display: inline-block; margin-right: 4px; padding: 0 4px; font-size: 8px; letter-spacing: 1px; vertical-align: 1px; color: #fff;
  background: linear-gradient(90deg, #ff6fb5, #c86bff, #ff9ad5, #ff6fb5); background-size: 300% 100%; animation: admshine 4s linear infinite;
  box-shadow: 0 0 6px #ff6fb5; text-shadow: 1px 1px 0 #a0306a; }
.mate.tagged .nm, .who.tagged { color: #ffb3dc; text-shadow: 0 0 6px #ff6fb5, 1px 1px 0 #000; }

/* exclusive heart aura + trail (gifted, not in the shop) */
.fx-aura-hearts .bod::before, .fx-aura-hearts .bod::after { content: "\2665"; position: absolute; z-index: 3; font: bold 16px/1 monospace; color: #ff4fa3;
  text-shadow: 2px 2px 0 #a0105a, 0 0 6px #ff9ad5; animation: heartup 2.4s ease-out infinite; pointer-events: none; }
.fx-aura-hearts .bod::before { left: 4%; top: 30%; }
.fx-aura-hearts .bod::after { right: 4%; top: 22%; font-size: 12px; animation-delay: 1.2s; }
@keyframes heartup { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) scale(1.15); } }
.t-hearts { font: bold 13px/1 monospace; color: #ff6fb5; text-shadow: 1px 1px 0 #a0105a; animation: tfade 1s ease-out forwards; }
.t-hearts::before { content: "\2665"; }

/* exclusive pet: little kitty that hangs by your feet */
.fx-pet-kitty::after { content: ""; position: absolute; left: -22px; bottom: -2px; width: 34px; height: 29px; z-index: 1;
  background: url(/spr/kitty.svg) center / contain no-repeat; image-rendering: pixelated; animation: kittyhop 1.6s ease-in-out infinite; }
.mate.walk.fx-pet-kitty::after { animation: kittyhop .3s ease-in-out infinite; }
@keyframes kittyhop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* admin tools panel */
.adminbox { margin-top: 10px; padding: 8px; border: 2px solid #ffd400; background: #1a1440; font-size: 12px; }
.adminbox b { display: block; margin-bottom: 6px; color: #ffd400; letter-spacing: 1px; }
.adminbox .arow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.adminbox button { padding: 3px 8px; font: inherit; font-weight: bold; color: #000; background: #ffd400; border: 0; cursor: pointer; }
.adminbox button:hover { background: #fff6a8; }
.adminbox input { width: 90px; padding: 3px 5px; font: inherit; background: #0d0a26; color: #fff; border: 1px solid #5a4fb0; }
.adminbox input[type=number] { width: 70px; }
.adminbox .amsg { min-height: 1em; color: #7f8; }

/* vote skip */
.fire.skipv.on { background: linear-gradient(180deg, #4ad8ff, #2f5bff); }

/* VIP badge */
.utag.utag-vip { color: #ffd400; background: linear-gradient(90deg, #2a0a4a, #6a1bb0, #2a0a4a); background-size: 300% 100%;
  border: 1px solid #ffd400; box-shadow: 0 0 6px #b06bff; text-shadow: 1px 1px 0 #000; }
/* exclusive dark aura: red chaos energy flickering off a dark critter */
.fx-aura-dark .bod img { filter: drop-shadow(0 0 3px #ff1a1a) drop-shadow(0 0 7px #a00000); animation: darkpulse 1.4s ease-in-out infinite; }
.fx-aura-dark .bod::before { content: ""; position: absolute; inset: -6% 4% 0; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, #ff1a1a55 0 35%, #50000033 55%, #0000 70%); animation: darkpulse 1.4s ease-in-out infinite; }
@keyframes darkpulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* DJ booth */
.djbooth { border-color: #b06bff; }
.djbooth b { color: #d6a8ff; }
.djbooth #djq { flex: 1; min-width: 120px; }
.djres { list-style: none; margin: 0 0 6px; padding: 0; max-height: 180px; overflow-y: auto; }
.djres li { display: flex; gap: 6px; align-items: center; padding: 2px 0; }
.djres li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.djres small { color: #9aa6ff; }

/* chat sits right under the dance floor; on wide screens it's beside it, same height, so nobody has to scroll for it */
.stage .chatbox { margin-top: 16px; }
@media (min-width: 1280px) {
  .wrap { max-width: 1440px; }
  .stage { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: stretch; }
  .stage .chatbox { margin-top: 0; display: flex; flex-direction: column; min-height: 0; }
  .stage .chatbox .msgs { flex: 1; height: auto; min-height: 0; }
  .stage .chatbox .boxhead .hint { display: block; margin-top: 2px; }
}

/* ===================== page layout (Nov 2026 redesign) =====================
   phone: one column, chat right under the dance floor.
   PC: dance floor left, chat + player card beside it, everything else in tidy rows below. */
.layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "venue" "rail" "vote" "req" "boards" "net"; padding-top: 4px; }
.layout > * { min-width: 0; margin-top: 0 !important; }
.layout > .venue { grid-area: venue; }
.layout > .rail { grid-area: rail; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.layout > .vote { grid-area: vote; }
.layout > .req { grid-area: req; }
.layout > .boards { grid-area: boards; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.layout > .net { grid-area: net; }
.rail .chatbox { margin-top: 0; display: flex; flex-direction: column; }
.rail .chatbox .msgs { height: 240px; }
.rail .p1 { margin: 0; }
.layout .box { margin: 0; }
@media (min-width: 720px) {
  .layout > .boards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "venue venue" "rail rail" "vote vote" "req boards" "net net"; }
  .layout > .boards { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .wrap.layout { max-width: 1440px; }
  .layout { grid-template-columns: minmax(0, 1fr) 350px; grid-template-areas: "venue rail" "vote req" "boards boards" "net net"; align-items: stretch; }
  .layout > .boards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout > .vote, .layout > .req { align-self: start; }
  .rail .chatbox { flex: 1 1 0; min-height: 300px; }
  .rail .chatbox .msgs { flex: 1; height: auto; min-height: 0; }
  .rail .chatbox .boxhead .hint { display: block; margin-top: 2px; }
}
/* spindok network strip */
.netgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 12px; }
.netc { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 3px solid var(--navy); border-radius: 8px;
  background: linear-gradient(180deg, #1d3bd0, #0f1f7a); color: #fff; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.netc:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--navy), 0 0 12px #ffd40055; }
.netc b { font: italic 900 14px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; color: var(--yellow); }
.netc span { font-size: 12px; color: #c9d2ff; }
.netc.vault { background: linear-gradient(180deg, #ffd400, #ff9a1f); } .netc.vault b { color: var(--navy); } .netc.vault span { color: #3a2a00; }
.netc.disc { background: linear-gradient(180deg, #6a76ff, #4752c4); } .netc.disc b { color: #fff; }
.netc.yt { background: linear-gradient(180deg, #ff3b3b, #b80f0f); } .netc.yt b { color: #fff; }
.netc.una { background: linear-gradient(180deg, #2bd9a0, #128a66); } .netc.una b { color: #fff; } .netc.una span { color: #e6fff6; }
.netfoot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 0 12px 12px; font-size: 13px; color: #c9d2ff; }
.netfoot p { flex: 1 1 300px; margin: 0; }
.netfoot .b88 { flex: none; }
/* layout polish */
html, body { overflow-x: clip; }
.layout > .venue { align-self: start; }
.netfoot .b88 { width: auto; min-width: 200px; padding: 0 18px; }
@media (min-width: 720px) {
  .layout .opt img { aspect-ratio: auto; height: 150px; }
}
@media (min-width: 1100px) {
  .rail .chatbox { min-height: 380px; }
}
@media (min-width: 1100px) {
  .layout { grid-template-areas: "venue rail" "vote rail" "req req" "boards boards" "net net"; }
  .rail .chatbox { flex: 1 1 380px; }
}
/* ---------- crystals + new shop stuff ---------- */
.cry { display: inline-block; width: 13px; height: 17px; vertical-align: middle; margin: 0 4px 0 2px; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%);
  background: linear-gradient(135deg, #e8feff, #4ad8ff 45%, #b56aff); }
.crywrap { margin-left: 14px; font-size: .7em; color: #9fefff; white-space: nowrap; }
.crywrap .cry { width: 16px; height: 21px; }
.sc-price.cryp { color: #9fefff; }
.pop.crypop { font: italic 900 18px "Liberation Sans", Arial, sans-serif; color: #9fefff; text-shadow: 0 0 6px #4ad8ff, 1px 1px 0 #05081c; white-space: nowrap; }
.linkd.done { opacity: .75; cursor: default; background: #1d7a3a; }
.arow button { white-space: nowrap; }
.fx-aura-frost .bod::after { content: ""; position: absolute; inset: 0 2% -2%; z-index: 2; border-radius: 50%; border: 2px solid #c2fbffcc; box-shadow: 0 0 12px #7de8ff, inset 0 0 14px #c2fbff88; animation: shimmer 2s ease-in-out infinite; }
.fx-aura-toxic .bod::before { content: ""; position: absolute; inset: -4% 2% -4%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, #b6ff3bcc 0 25%, #39ff1466 50%, #0000 70%); filter: blur(3px); animation: shimmer 1.2s ease-in-out infinite; }
.fx-aura-disco .bod::before { content: ""; position: absolute; inset: -8%; z-index: 0; border-radius: 50%; filter: blur(5px); opacity: .8;
  background: conic-gradient(#ff4a5a, #ffb800, #4aff7a, #4ad8ff, #b56aff, #ff4a5a); animation: rpm 1.6s linear infinite; }
.fx-aura-crystal .bod::before { content: ""; position: absolute; inset: -6%; z-index: 0; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  background: linear-gradient(135deg, #e8feffaa, #4ad8ff88 45%, #b56aff88); animation: shimmer 1.6s ease-in-out infinite; }
.fx-aura-crystal .bod img { filter: drop-shadow(0 0 4px #7df9ff); }
.fx-aura-prism .bod img { animation: prism 2s linear infinite; }
.fx-aura-prism .bod::before { content: ""; position: absolute; inset: -10%; z-index: 0; border-radius: 50%; filter: blur(7px);
  background: conic-gradient(#ff4a5a, #ffee33, #4aff7a, #4ad8ff, #b56aff, #ff4a5a); animation: rpm 2.4s linear infinite; }
@keyframes prism { from { filter: drop-shadow(0 0 5px #fff) hue-rotate(0); } to { filter: drop-shadow(0 0 5px #fff) hue-rotate(360deg); } }
.t-leaves, .t-bubbles, .t-stars, .t-notes, .t-lightning, .t-crystal, .t-rainbow { font: 14px/1 sans-serif; animation: tfade .9s ease-out forwards; }
.t-leaves::before { content: ""; } .t-bubbles::before { content: ""; } .t-stars::before { content: "⭐"; } .t-notes::before { content: ""; }
.t-lightning::before { content: ""; } .t-rainbow::before { content: ""; }
.t-bubbles, .t-notes { animation-name: trise; }
.t-crystal { width: 10px; height: 14px; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%); background: linear-gradient(135deg, #e8feff, #4ad8ff 45%, #b56aff); }
.fx-name-pink .nm { color: #ff8fd0 !important; text-shadow: 0 0 6px #ff1493, 1px 1px 0 #000; }
.fx-name-toxic .nm { color: #b6ff3b !important; text-shadow: 0 0 6px #39ff14, 1px 1px 0 #000; }
.fx-name-neon .nm { color: #fff !important; text-shadow: 0 0 4px #ff2bd6, 0 0 10px #ff2bd6, 1px 1px 0 #000; }
.fx-name-crystal .nm { color: #9fefff !important; text-shadow: 0 0 6px #4ad8ff, 0 0 12px #b56aff, 1px 1px 0 #000; }
.fx-name-glitch .nm { color: #fff !important; animation: glitch .9s steps(2) infinite; }
@keyframes glitch { 0% { text-shadow: 2px 0 #ff2bd6, -2px 0 #20d0ff; } 50% { text-shadow: -2px 1px #ff2bd6, 2px -1px #20d0ff; transform: translateX(1px); } 100% { text-shadow: 1px -1px #ff2bd6, -1px 1px #20d0ff; } }
.fx-bubble-cloud .bub { background: #fff; border-color: #cfe6ff; border-radius: 22px; box-shadow: 0 3px 0 #cfe6ff; color: #2a3a66; }
.fx-bubble-cloud .bub::after { border-top-color: #cfe6ff; }
.fx-bubble-dark .bub { background: #0a0a14; color: #ff5a5a; border-color: #a00000; box-shadow: 0 0 8px #a00000; }
.fx-bubble-dark .bub::after { border-top-color: #a00000; }
.fx-bubble-heart .bub { background: #ffe3ef; color: #a0105a; border-color: #ff4fa3; }
.fx-bubble-heart .bub::after { border-top-color: #ff4fa3; }
.fx-bubble-crystal .bub { background: linear-gradient(135deg, #e8feff, #bfe9ff 50%, #e3d0ff); color: #0b1450; border-color: #4ad8ff; box-shadow: 0 0 10px #4ad8ff88; }
.fx-bubble-crystal .bub::after { border-top-color: #4ad8ff; }
.fx-pet-ring::after, .fx-pet-flicky::after, .fx-pet-motobug::after { content: ""; position: absolute; z-index: 1; image-rendering: pixelated; }
.fx-pet-ring::after { left: -20px; bottom: 26px; width: 24px; height: 24px; background: url(/spr/ring.png) 0 0 / 96px 24px; animation: f4r .5s steps(4) infinite, kittyhop 1.4s ease-in-out infinite; }
@keyframes f4r { to { background-position-x: -96px; } }
.fx-pet-flicky::after { left: -22px; bottom: 44px; width: 32px; height: 20px; background: url(/spr/flicky.png) 0 0 / 64px 20px; animation: f2p .3s steps(2) infinite, kittyhop 1s ease-in-out infinite; }
@keyframes f2p { to { background-position-x: -64px; } }
.fx-pet-motobug::after { left: -34px; bottom: -2px; width: 40px; height: 32px; background: url(/spr/motobug.png) 0 0 / 120px 32px; animation: f3p .4s steps(3) infinite; transform: scaleX(-1); }
@keyframes f3p { to { background-position-x: -120px; } }
.bod.e-zzz { animation: ezzz 2.2s ease-in-out; } @keyframes ezzz { 20%, 80% { transform: rotate(-80deg) translateY(10px); } }
.bod.e-laugh { animation: elaugh .18s ease-in-out 10; } @keyframes elaugh { 50% { transform: translateY(-5px) rotate(4deg); } }
.bod.e-love { animation: hop .5s cubic-bezier(.3,1.6,.5,1) 2; }
.bod.e-headbang { transform-origin: 50% 80%; animation: ehead .25s ease-in-out 8; } @keyframes ehead { 50% { transform: rotate(18deg) translateY(4px); } }
.bod.e-flex { animation: eflex 1.6s ease-in-out; } @keyframes eflex { 20%, 80% { transform: scale(1.3, 1.15); } 50% { transform: scale(1.4, 1.2) rotate(-4deg); } }
.bod.e-shine { animation: eshine 1.8s ease-in-out; } @keyframes eshine { 50% { filter: brightness(2.2) drop-shadow(0 0 14px #7df9ff) drop-shadow(0 0 26px #b56aff); transform: scale(1.12); } }
.bod.e-float { animation: efloat 2.3s ease-in-out; } @keyframes efloat { 20%, 80% { transform: translateY(-40px); } 50% { transform: translateY(-48px) rotate(3deg); } }
.merings { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; }
.crywrap { margin-left: 8px; font-size: 1em; display: inline-flex; align-items: center; }
.crywrap b { font-size: .72em; color: #9fefff; }


/* ---------- bigger + wider dance floor ---------- */
.scene { height: 600px; }
.floor { top: 308px; height: 292px; }
.djbub { bottom: 468px; }
.runner { top: 390px; }
.runner.super { filter: sepia(1) saturate(6) hue-rotate(8deg) brightness(1.35) drop-shadow(0 0 12px #ffd400) drop-shadow(0 0 24px #fff); animation-duration: .22s, 1.15s !important; }
.joinparty { top: 470px; }

/* ---------- stage & floor zone themes ---------- */
.scene.theme-greenhill { background: linear-gradient(#1238b0 0 300px, #2b1506 300px); }
.scene.theme-greenhill .sky { filter: brightness(.85) saturate(1.4); }
.scene.theme-greenhill .far { filter: brightness(.85) saturate(1.35); }
.scene.theme-greenhill .lip { background: #3fbf3f; box-shadow: 0 0 16px #7cff6b; }

.scene.theme-casino { background: linear-gradient(#12002b 0 300px, #16042e 300px); }
.scene.theme-casino .sky { filter: brightness(.5) saturate(1.8) hue-rotate(60deg); }
.scene.theme-casino .far { filter: brightness(.55) saturate(1.8) hue-rotate(70deg); }
.scene.theme-casino .lip { background: #ff2bd6; box-shadow: 0 0 20px #ff2bd6; }

.scene.theme-chemical { background: linear-gradient(#03061c 0 300px, #071130 300px); }
.scene.theme-chemical .sky { filter: brightness(.45) saturate(1.6) hue-rotate(-30deg); }
.scene.theme-chemical .far { filter: brightness(.5) saturate(1.7) hue-rotate(140deg); }
.scene.theme-chemical .lip { background: #00e5ff; box-shadow: 0 0 20px #00e5ff; }

.scene.theme-icecap { background: linear-gradient(#0d2259 0 300px, #0b1c40 300px); }
.scene.theme-icecap .sky { filter: brightness(.8) saturate(1.2) hue-rotate(-15deg); }
.scene.theme-icecap .far { filter: brightness(.85) saturate(0.8) hue-rotate(160deg); }
.scene.theme-icecap .lip { background: #9fefff; box-shadow: 0 0 20px #7df9ff; }

.scene.theme-lavareef { background: linear-gradient(#260303 0 300px, #1a0303 300px); }
.scene.theme-lavareef .sky { filter: brightness(.55) saturate(2) hue-rotate(135deg); }
.scene.theme-lavareef .far { filter: brightness(.55) saturate(2.2) hue-rotate(145deg); }
.scene.theme-lavareef .lip { background: #ff5a1f; box-shadow: 0 0 22px #ff2742; }

.scene.theme-stardust { background: linear-gradient(#1f0638 0 300px, #100424 300px); }
.scene.theme-stardust .sky { filter: brightness(.65) saturate(1.8) hue-rotate(95deg); }
.scene.theme-stardust .far { filter: brightness(.6) saturate(1.9) hue-rotate(110deg); }
.scene.theme-stardust .lip { background: #ffd400; box-shadow: 0 0 20px #ffb800; }

.scene.theme-rave, .scene.ravemode { background: linear-gradient(#050012 0 300px, #04000d 300px); }
.scene.theme-rave .sky { filter: brightness(.4) saturate(2.5) hue-rotate(85deg); }
.scene.ravemode .sky, .scene.ravemode .far { filter: brightness(.45) saturate(1.3); transition: filter .8s; }
.scene.theme-rave .beams i, .scene.ravemode .beams i { opacity: .88; animation-duration: 1.6s; }
.scene.blackout .sky, .scene.blackout .far, .scene.blackout .truss, .scene.blackout .deckstage, .scene.blackout .spk { filter: brightness(.15); transition: filter .4s; }
.scene.blackout .floor { opacity: .3; }
.scene.quake { animation: shake .22s infinite; }

/* ---------- live rave & stage visuals ---------- */
.ravefx { position: absolute; inset: 0; pointer-events: none; z-index: 2200; overflow: hidden; }
.fx-lasers { position: absolute; inset: 0; }
.fx-lasers i { position: absolute; top: 130px; left: 480px; width: 4px; height: 680px; transform-origin: 50% 0;
  background: linear-gradient(180deg, #fff, hsl(calc(var(--i) * 45) 100% 58%), #0000 92%);
  box-shadow: 0 0 12px hsl(calc(var(--i) * 45) 100% 58%);
  animation: laserfan .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.14s); }
@keyframes laserfan { from { transform: rotate(calc(-62deg + var(--i) * 14deg)); } to { transform: rotate(calc(-18deg + var(--i) * 14deg)); } }

.fx-disco { position: absolute; inset: 0; }
.fx-disco .dball { position: absolute; left: 454px; top: -4px; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #c9d6ff 45%, #4a5888 85%),
    repeating-linear-gradient(0deg, #0003 0 4px, #fff3 4px 8px),
    repeating-linear-gradient(90deg, #0003 0 4px, #fff3 4px 8px);
  border: 3px solid #05081c; box-shadow: 0 0 26px #fff, 0 0 50px #7df9ff; animation: dbdrop .5s ease-out, pulseball 1.2s ease-in-out infinite alternate; }
@keyframes dbdrop { from { transform: translateY(-60px); } to { transform: none; } }
@keyframes pulseball { to { box-shadow: 0 0 38px #fff, 0 0 70px #ff4fd8; } }
.fx-disco i { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #7df9ff, 0 0 16px #fff; animation: dspeck 1.4s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes dspeck { from { opacity: .15; transform: scale(.6) translate(-12px, -6px); } to { opacity: .95; transform: scale(1.35) translate(12px, 6px); } }

.fx-confetti i { position: absolute; left: var(--x); top: -16px; width: 9px; height: 14px;
  background: hsl(var(--h) 100% 60%); box-shadow: 0 0 6px hsl(var(--h) 100% 60%);
  animation: confall 3.2s linear forwards; animation-delay: var(--d); }
@keyframes confall { to { transform: translateY(630px) rotate(540deg); opacity: 0; } }

.fx-emeralds { position: absolute; left: 480px; top: 280px; }
.fx-emeralds .em-orb { position: absolute; width: 38px; height: 34px; margin: -17px 0 0 -19px;
  filter: drop-shadow(0 0 12px #fff); animation: emorb 3s ease-in-out forwards; animation-delay: calc(var(--i) * .08s); }
@keyframes emorb {
  0% { transform: rotate(calc(var(--i) * 51.4deg)) translateY(0) scale(.3); opacity: 0; }
  25% { opacity: 1; transform: rotate(calc(var(--i) * 51.4deg + 120deg)) translateY(-120px) scale(1.1); }
  75% { opacity: 1; transform: rotate(calc(var(--i) * 51.4deg + 320deg)) translateY(-165px) scale(1.2); }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 51.4deg + 440deg)) translateY(-220px) scale(.4); }
}

/* event banner at top of stage */
.evbanner { position: absolute; left: 50%; top: 136px; z-index: 2600; transform: translateX(-50%) skewX(-10deg) scale(var(--ui));
  padding: 7px 22px; background: linear-gradient(90deg, #e8203a, #ff7a00, #e8203a); border: 3px solid #ffd400; border-radius: 6px;
  box-shadow: 0 6px 0 var(--navy), 0 0 28px #ffd400aa; text-align: center; pointer-events: none; white-space: nowrap; }
.evbanner[hidden] { display: none; }
.evbanner.go { animation: evpop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes evpop { from { transform: translateX(-50%) translateY(-30px) scale(.5); opacity: 0; } }
.evbanner b { display: block; font: italic 900 18px "Liberation Sans", Arial, sans-serif; letter-spacing: 2px; color: #fff; text-shadow: 2px 2px 0 var(--navy); }
.evbanner span { display: block; font: bold 12px "Liberation Mono", monospace; color: #fff6a8; }

/* ---------- Sonic floor drops: Chaos Emeralds, Item Monitors, Motobugs & Buffs ---------- */
.drop.emerald { width: 36px; height: 32px; margin: -40px 0 0 -18px; background: none;
  filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px #25d04a); animation: dropbob 1.1s ease-in-out infinite; }
.drop.emerald svg { width: 100%; height: 100%; display: block; }
.drop.monitor { width: 38px; height: 38px; margin: -42px 0 0 -19px; background: linear-gradient(180deg, #5a6484, #2a3048);
  border: 3px solid #05081c; border-radius: 5px; box-shadow: inset 0 2px 0 #9aa6c8, 0 3px 0 #05081c; animation: dropbob 1.6s ease-in-out infinite; }
.drop.monitor::after { content: attr(data-ico); position: absolute; inset: 4px; background: #061038; border: 2px solid #1c2c6b; border-radius: 2px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-style: normal; box-shadow: inset 0 0 8px #2f6bff88; }
.drop.monitor.mon-eggman::after { background: #2a040c; border-color: #ff2742; }
.drop.badnik { width: 40px; height: 32px; margin: -34px 0 0 -20px; background: url(/spr/motobug.png) 0 0 / 120px 32px;
  filter: drop-shadow(0 2px 0 #05081c); animation: f3p .35s steps(3) infinite, badpatrol 2.4s ease-in-out infinite alternate; }
@keyframes badpatrol { from { translate: -14px 0; } to { translate: 14px 0; } }

/* temporary monitor buffs on critters */
.mate.buff-shield .bod::after { content: ""; position: absolute; inset: 0 2% 0; z-index: 3; border-radius: 50%;
  border: 3px solid #7df9ff; background: radial-gradient(circle at 30% 30%, #ffffff88 0 12%, #25e0c833 55%, #2f6bff55); box-shadow: 0 0 14px #25e0c8; }
.mate.buff-invincible .bod img { animation: prism .65s linear infinite; }
.mate.buff-speed .bod { filter: drop-shadow(-6px 0 0 #20d0ff88); }

/* ---------- new Sonic shop auras, trails, pets, names, bubbles, emotes ---------- */
.fx-aura-water .bod::after { content: ""; position: absolute; inset: 0 2% 0; z-index: 2; border-radius: 50%;
  border: 2px solid #25e0c8cc; background: radial-gradient(circle at 32% 28%, #fff9 0 10%, #0a7ad833 55%, #25e0c866 100%);
  box-shadow: 0 0 12px #25e0c8, inset 0 0 12px #0a7ad8; animation: shimmer 1.8s ease-in-out infinite; }
.fx-aura-invincible .bod::before { content: "  "; position: absolute; inset: -10%; z-index: 3; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff6a8; text-shadow: 0 0 8px #ffd400, 0 0 14px #ff2bd6; animation: rpm 1.4s linear infinite; pointer-events: none; }
.fx-aura-rings .bod::before { content: ""; position: absolute; left: 8%; right: 8%; top: 38%; height: 26%; z-index: 3; border-radius: 50%;
  border: 4px dashed #ffd400; box-shadow: 0 0 10px #ffd400; animation: rpm 1.8s linear infinite; }
.fx-aura-hyper .bod img { animation: prism .9s linear infinite; }
.fx-aura-hyper .bod::before { content: ""; position: absolute; inset: -14%; z-index: 0; border-radius: 50%; filter: blur(6px);
  background: conic-gradient(#fff, #ffd400, #25e0c8, #ff4fd8, #7cff6b, #fff); animation: rpm 1.1s linear infinite; }

.t-dust, .t-boost, .t-checker, .t-emeralds { font: 14px/1 sans-serif; animation: tfade .75s ease-out forwards; }
.t-dust::before { content: ""; }
.t-boost { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #fff, #20d0ff 55%, #0000 72%); box-shadow: 0 0 12px #20d0ff; }
.t-checker { width: 12px; height: 12px; background: repeating-conic-gradient(#3fbf3f 0 25%, #b5651d 0 50%) 0 0 / 8px 8px; border: 1px solid #05081c; }
.t-emeralds::before { content: ""; filter: hue-rotate(95deg) drop-shadow(0 0 4px #25d04a); }

.fx-name-sonic .nm { color: #69d2ff !important; text-shadow: 0 0 6px #2f6bff, 0 0 12px #2f6bff, 1px 1px 0 #000; }
.fx-name-emerald .nm { color: #7cff6b !important; text-shadow: 0 0 8px #00e868, 0 0 16px #25d04a, 1px 1px 0 #000; }
.fx-name-super .nm { color: #fff6a8 !important; text-shadow: 0 0 8px #ffd400, 0 0 16px #ffb800, 1px 1px 0 #000; }

.fx-bubble-sega .bub { background: linear-gradient(180deg, #1d4fe0, #0b1f78); color: #fff; border-color: #ffd400; box-shadow: 0 3px 0 #05081c; }
.fx-bubble-sega .bub::after { border-top-color: #ffd400; }
.fx-bubble-checker .bub { background: #183d18; color: #fff6a8; border-color: #3fbf3f; box-shadow: 0 3px 0 #b5651d; }
.fx-bubble-checker .bub::after { border-top-color: #3fbf3f; }
.fx-bubble-eggman .bub { background: #24060a; color: #ffd400; border-color: #e8203a; box-shadow: 0 0 10px #e8203a66; }
.fx-bubble-eggman .bub::after { border-top-color: #e8203a; }

.fx-pet-chao::after, .fx-pet-emerald::after, .fx-pet-monitor::after {
  position: absolute; left: -24px; bottom: 26px; z-index: 1; font: 20px/1 sans-serif; animation: kittyhop 1.1s ease-in-out infinite;
}
.fx-pet-chao::after { content: ""; filter: drop-shadow(0 0 5px #69d2ff); }
.fx-pet-emerald::after { content: ""; filter: hue-rotate(85deg) drop-shadow(0 0 6px #25d04a); }
.fx-pet-monitor::after { content: ""; bottom: 4px; }

.bod.e-peelout { animation: epeel .16s linear 12; } @keyframes epeel { 50% { transform: translateX(4px) skewX(-14deg); filter: drop-shadow(-8px 0 0 #ff2742); } }
.bod.e-victory { animation: evic .6s cubic-bezier(.3,1.6,.5,1) 3; } @keyframes evic { 50% { transform: translateY(-22px) rotate(-8deg) scale(1.08); } }
.bod.e-foottap { animation: etap .25s steps(2) 8; } @keyframes etap { 50% { transform: translateY(-2px) rotate(2deg); } }
.bod.e-chaos { animation: echaos 1.8s ease-in-out; } @keyframes echaos { 30% { opacity: 0; transform: scale(.2) translateY(-30px); } 60% { opacity: 1; transform: scale(1.25); filter: drop-shadow(0 0 18px #25d04a); } }
.bod.e-ringloss { animation: erloss .5s ease-out 2; } @keyframes erloss { 30% { transform: translateY(-18px) rotate(-20deg); filter: brightness(2); } }

/* ---------- taste profile popup + vote pick badges + admin grid ---------- */
.tastebtn { width: 100%; margin-top: 8px; padding: 9px 12px; border: 3px solid var(--navy); border-radius: 8px; cursor: pointer;
  background: linear-gradient(180deg, #7a2cff, #4a1298); color: #fff; font: italic 900 13px "Liberation Sans", Arial, sans-serif;
  letter-spacing: 1px; box-shadow: 0 3px 0 var(--navy); text-align: center; }
.tastebtn small { display: block; font: bold 11px "Liberation Mono", monospace; color: #e2c8ff; letter-spacing: 0; margin-top: 2px; }
.tastebtn.done { background: linear-gradient(180deg, #1f5a9e, #123466); }
.taste-box { max-width: 560px; }
.taste-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.taste-intro { margin: 0; font-size: 13px; color: #d6e0ff; line-height: 1.4; }
.taste-q .k { font: 900 12px "Liberation Mono", monospace; color: var(--yellow); letter-spacing: 1px; margin-bottom: 7px; }
.taste-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.taste-chips button { padding: 7px 11px; border: 2px solid #2b388f; border-radius: 999px; background: #0c1446; color: #d6e0ff;
  font: bold 12px "Liberation Sans", Arial, sans-serif; cursor: pointer; transition: transform .1s, background .1s; }
.taste-chips button:hover { transform: translateY(-1px); border-color: #69d2ff; }
.taste-chips button.on { background: linear-gradient(180deg, var(--yellow), var(--amber)); color: var(--navy); border-color: #fff; box-shadow: 0 0 10px #ffd40066; }
.opt .lead.pick { background: linear-gradient(90deg, #7a2cff, #ff2bd6); color: #fff; }

.adminbox .asub { margin: 8px 0 4px; font: 900 10px "Liberation Mono", monospace; letter-spacing: 1.5px; color: #9fefff; opacity: .9; }
.adminbox .agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.adminbox .agrid button { width: 100%; font-size: 11px; padding: 5px 6px; text-align: left; }
.adminbox .agrid button.on { background: var(--yellow); color: var(--navy); border-color: #fff; }

/* ---------- THE SPINDOK NETWORK: ZONE SELECT + site polish ---------- */
.net { background: linear-gradient(180deg, #101d6b, #080f3d); }
.netgrid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; padding: 14px; }
.netc { position: relative; overflow: hidden; padding: 12px 14px 14px; border: 3px solid #05081c; border-radius: 10px;
  box-shadow: 0 4px 0 #05081c, inset 0 1px 0 #ffffff44; transition: transform .14s cubic-bezier(.3,1.5,.5,1), box-shadow .14s, filter .14s; }
.netc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, #ffd400 0 10px, #05081c 10px 20px); opacity: .75; }
.netc:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 8px 0 #05081c, 0 0 18px #ffd40088; filter: brightness(1.08); }
.netc .zn { font: 900 10px "Liberation Mono", monospace; letter-spacing: 1.5px; color: #fff9; text-transform: uppercase; }
.netc b { font: italic 900 16px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; color: #fff; text-shadow: 2px 2px 0 #05081c; margin-top: 1px; }
.netc span { font-size: 12px; color: #e2eaff; margin-top: 1px; }
.netc.vault { background: linear-gradient(135deg, #ffe14d, #ff8800); }
.netc.vault .zn { color: #5a2800; }
.netc.vault b { color: #0b1450; text-shadow: 1px 1px 0 #fff8; }
.netc.vault span { color: #2b1400; font-weight: 700; }
.netc.z-games { background: linear-gradient(135deg, #1d5bff, #0c2b9e); }
.netc.z-art { background: linear-gradient(135deg, #b829ff, #5c0ea8); }
.netc.z-music { background: linear-gradient(135deg, #00b8d4, #08548a); }
.netc.z-proj { background: linear-gradient(135deg, #25b84b, #0e6326); }
.netc.z-book { background: linear-gradient(135deg, #ff5e1f, #a32606); }
.netc.yt { background: linear-gradient(135deg, #ff2742, #99081b); }
.netc.disc { background: linear-gradient(135deg, #5865f2, #313aa8); }
.netc.una { background: linear-gradient(135deg, #1cd49c, #0b6e52); }

.netfoot { display: flex; flex-direction: column; gap: 10px; padding: 2px 14px 14px; }
.streamdeck { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; background: #060b2c; border: 3px solid #2b388f; border-radius: 10px; box-shadow: inset 0 0 16px #0008; }
.streamdeck .sd-tag { font: 900 11px "Liberation Mono", monospace; letter-spacing: 1.5px; color: var(--yellow); }
.streamdeck code { flex: 1 1 220px; padding: 6px 10px; background: #020514; border: 2px solid #1c286b; border-radius: 6px;
  color: #7cff6b; font: bold 13px "Liberation Mono", monospace; }
.streamdeck .b88.vlc { margin: 0; padding: 8px 16px; border: 3px solid #05081c; border-radius: 8px;
  background: linear-gradient(180deg, #ffd400, #ff8800); color: #05081c; cursor: pointer; box-shadow: 0 3px 0 #05081c; }
.streamdeck .b88.vlc span { display: block; font: 900 9px "Liberation Mono", monospace; letter-spacing: 1px; color: #4a2200; }
.streamdeck .b88.vlc b { font: italic 900 13px "Liberation Sans", Arial, sans-serif; color: #05081c; }

/* box & button polish */
.box { box-shadow: 0 6px 0 var(--navy), 0 12px 28px #0007; }
.boxhead { background: linear-gradient(90deg, #0b1450, #16268a 60%, #0b1450); border-bottom: 3px solid var(--yellow); }

/* Personal football gift: static green/white, no team allegiance. After radio.css. */
.utag.utag-cfl {
  color: #fff; background: #126b3b; border: 1px solid #fff;
  animation: none; box-shadow: 0 0 0 1px #126b3b; text-shadow: 1px 1px 0 #07361e;
}
.mate.tagged .nm:has(> .utag-cfl), .who.tagged:has(> .utag-cfl),
.utag-cfl + .who.tagged {
  color: #fff; text-shadow: 1px 1px 0 #07361e, 0 0 3px #126b3b;
}

/* One tiny puff every seven seconds, anchored to the 32px accessory ember. */
.blunt-puff { position:absolute; pointer-events:none; z-index:3; width:3.125%; height:3.125%;
  left:71.875%; top:46.875%; background:#d7d3c1; opacity:0;
  box-shadow:1px -1px 0 #d7d3c177; animation:blunt-puff 7s steps(4,end) infinite; }
.mate.left .blunt-puff { left:auto; right:71.875%; }
.mate.sit .blunt-puff { top:62.1875%; }
@keyframes blunt-puff { 0%,75%,100% {opacity:0;transform:translate(0,0) scale(1);}
  78% {opacity:.45;transform:translate(0,-1px) scale(1);}
  89% {opacity:.2;transform:translate(2px,-9px) scale(1.4);}
  96% {opacity:0;transform:translate(3px,-14px) scale(1.6);} }

.s-sonic-run {background-image:url(/sega239/sonic-run.png);background-size:360px 48px;width:40px;height:48px;}
.s-sonic-walk {background-image:url(/sega239/sonic-walk.png);background-size:440px 48px;width:40px;height:48px;}
.s-sonic-idle {background-image:url(/sega239/sonic-idle.png);background-size:40px 48px;width:40px;height:48px;}
.s-sonic-spin {background-image:url(/sega239/sonic-spin.png);background-size:320px 48px;width:40px;height:48px;}
.s-sonic-spring {background-image:url(/sega239/sonic-spring.png);background-size:40px 48px;width:40px;height:48px;}
.s-sonic-death {background-image:url(/sega239/sonic-death.png);background-size:40px 48px;width:40px;height:48px;}
.s-sonic-lookup {background-image:url(/sega239/sonic-lookup.png);background-size:40px 48px;width:40px;height:48px;}
.s-sonic-hit {background-image:url(/sega239/sonic-hit.png);background-size:40px 48px;width:40px;height:48px;}
.s-ring {background-image:url(/sega239/ring.png);background-size:64px 16px;width:16px;height:16px;}
.s-ring-sparkle {background-image:url(/sega239/ring-sparkle.png);background-size:32px 16px;width:16px;height:16px;}
.s-motobug {background-image:url(/sega239/motobug.png);background-size:120px 32px;width:40px;height:32px;}
.s-batbrain {background-image:url(/sega239/batbrain.png);background-size:160px 40px;width:40px;height:40px;}
.s-flicky {background-image:url(/sega239/flicky.png);background-size:32px 20px;width:16px;height:20px;}
.s-explosion {background-image:url(/sega239/explosion.png);background-size:200px 40px;width:40px;height:40px;}
.s-yadrin {background-image:url(/sega239/yadrin.png);background-size:240px 40px;width:40px;height:40px;}
.s-splats {background-image:url(/sega239/splats.png);background-size:24px 40px;width:24px;height:40px;}
.s-eggman {background-image:url(/sega239/eggman.png);background-size:128px 54px;width:64px;height:54px;}
.s-eggman-idle {background-image:url(/sega239/eggman-idle.png);background-size:64px 54px;width:64px;height:54px;}
.s-mon-rings {background-image:url(/sega239/mon-rings.png);background-size:32px 32px;width:32px;height:32px;}
.s-mon-shield {background-image:url(/sega239/mon-shield.png);background-size:32px 32px;width:32px;height:32px;}
.s-mon-shoes {background-image:url(/sega239/mon-shoes.png);background-size:32px 32px;width:32px;height:32px;}
.s-mon-invinc {background-image:url(/sega239/mon-invinc.png);background-size:32px 32px;width:32px;height:32px;}
.s-mon-1up {background-image:url(/sega239/mon-1up.png);background-size:32px 32px;width:32px;height:32px;}
.s-mon-broken {background-image:url(/sega239/mon-broken.png);background-size:32px 32px;width:32px;height:32px;}
.s-pop-rings {background-image:url(/sega239/pop-rings.png);background-size:16px 16px;width:16px;height:16px;}
.s-pop-shield {background-image:url(/sega239/pop-shield.png);background-size:64px 16px;width:16px;height:16px;}
.s-pop-shoes {background-image:url(/sega239/pop-shoes.png);background-size:16px 16px;width:16px;height:16px;}
.s-pop-invinc {background-image:url(/sega239/pop-invinc.png);background-size:16px 16px;width:16px;height:16px;}
.s-pop-1up {background-image:url(/sega239/pop-1up.png);background-size:16px 16px;width:16px;height:16px;}
.s-spring {background-image:url(/sega239/spring.png);background-size:56px 32px;width:28px;height:32px;}
.s-spring-up {background-image:url(/sega239/spring-up.png);background-size:56px 32px;width:28px;height:32px;}
.s-spring-red {background-image:url(/sega239/spring-red.png);background-size:28px 32px;width:28px;height:32px;}
.s-spring-red-up {background-image:url(/sega239/spring-red-up.png);background-size:28px 32px;width:28px;height:32px;}
.s-endpost {background-image:url(/sega239/endpost.png);background-size:288px 48px;width:48px;height:48px;}
.s-checkpoint {background-image:url(/sega239/checkpoint.png);background-size:16px 64px;width:16px;height:64px;}
.s-checkpoint-on {background-image:url(/sega239/checkpoint-on.png);background-size:32px 64px;width:16px;height:64px;}
.s-invinc {background-image:url(/sega239/invinc.png);background-size:192px 48px;width:48px;height:48px;}
.s-shield {background-image:url(/sega239/shield.png);background-size:240px 48px;width:48px;height:48px;}
.s-points {background-image:url(/sega239/points.png);background-size:14px 8px;width:14px;height:8px;}
.s-hud {background-image:url(/sega239/hud.png);background-size:39px 47px;width:39px;height:47px;}
.s-life {background-image:url(/sega239/life.png);background-size:24px 24px;width:24px;height:24px;}
.s-title-sonic {background-image:url(/sega239/title-sonic.png);background-size:224px 160px;width:224px;height:160px;}
.s-emblem {background-image:url(/sega239/emblem.png);background-size:254px 144px;width:254px;height:144px;}
.s-tails-fly {background-image:url(/sega239/tails-fly.png);background-size:68px 32px;width:34px;height:32px;}
.s-tails-walk {background-image:url(/sega239/tails-walk.png);background-size:320px 32px;width:40px;height:32px;}
.s-tails-idle {background-image:url(/sega239/tails-idle.png);background-size:37px 34px;width:37px;height:34px;}
.s-hud-score {background-image:url(/sega239/hud-score.png);background-size:39px 15px;width:39px;height:15px;}
.s-hud-time {background-image:url(/sega239/hud-time.png);background-size:32px 15px;width:32px;height:15px;}
.s-hud-rings {background-image:url(/sega239/hud-rings.png);background-size:32px 15px;width:32px;height:15px;}

/* task239 whole-page content flow, 12–16px rhythm, explicit floor geometry */
.sega-icon {display:inline-block;background-repeat:no-repeat;image-rendering:pixelated;flex:none;vertical-align:middle;max-width:48px;}
[hidden] {display:none!important;}
html,body {min-height:0;height:auto;}
.top {padding:12px 16px;min-height:0;gap:16px;}
.logo {font-size:clamp(24px,4vw,42px);line-height:1;margin:4px 0;}
.wrap.layout {display:grid;gap:16px;align-items:start;grid-template-columns:minmax(0,1fr) 310px;grid-template-areas:"invite invite" "content rail" "boards boards" "net net";padding:16px;}
.radio-server-invite {grid-area:invite;padding:12px;min-height:0;}
.radio-server-invite p {margin:6px 0 0;}
.mainflow {grid-area:content;display:flex;flex-direction:column;gap:16px;min-width:0;}
.mainflow>* {margin:0!important;min-width:0;}
.rail {grid-area:rail;display:flex;flex-direction:column;gap:16px;align-self:start;min-height:0;}
.rail .chatbox {flex:none;min-height:0;}.rail .msgs {height:220px;flex:none;}
.rail #admin {max-height:400px;overflow:auto;scrollbar-gutter:stable;}
.arow {flex-wrap:wrap;gap:6px;}.arow select {max-width:100%;min-width:0;}#atarget {flex:1;}#atarget-preview {width:32px;height:32px;image-rendering:pixelated;}
.boards {grid-area:boards;align-items:start;margin:0;}.net {grid-area:net;min-height:0;height:auto;align-self:start;}
.netgrid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;align-items:start;}
.netc,.netc.vault,.netc.yt,.netc.disc,.netc.una {display:grid;grid-template-columns:48px minmax(0,1fr);align-content:center;gap:2px 8px;background:#0b1744;border:1px solid #4d6aa5;border-radius:2px;padding:8px;min-height:64px;height:auto;box-shadow:none;color:#fff;transform:none;}
.netc .sega-icon {grid-row:1/3;align-self:center;justify-self:center;}.netc b,.netc.vault b {font:700 13px monospace;color:#fff;text-shadow:none;letter-spacing:0;}.netc span,.netc.vault span {font:12px/1.3 sans-serif;color:#c2cee9;}.netc::after {display:none;}.netc:hover {transform:none;background:#192c60;box-shadow:none;}
.netfoot {padding:0 12px 12px;gap:12px;min-height:0;}.netfoot p {margin:0;}.ground {height:auto;min-height:0;padding:12px 16px;margin:0;}.ground p {margin:4px 0;}.ground .motobug {display:none;}
.venue {min-height:0;}.scene {height:720px!important;}.fit {min-height:0;} .floor {height:412px;top:308px;}
.controls {gap:8px;padding:12px;}.emotes {flex-wrap:wrap;}.emotes button {min-width:42px;min-height:42px;font-size:20px;}.floating-controls {padding:0 12px 12px;}.floating-controls p:empty {display:none;}
.fx-aura-hearts .bod::before,.fx-aura-hearts .bod::after,.t-hearts::before {content:"";width:12px;height:12px;background:url(/sega239/heart.svg) center/contain no-repeat;image-rendering:pixelated;}
.utag-kay::before {content:"";display:inline-block;width:12px;height:12px;background:url(/sega239/heart.svg) center/contain no-repeat;}.utag-cfl::before {content:"";display:inline-block;width:14px;height:10px;background:url(/sega239/football.svg) center/contain no-repeat;}
.drop.monitor::after {content:"";background:url(/sega239/mon-rings.png) left top/contain no-repeat;}.mon-speed::after {background-image:url(/sega239/mon-shoes.png)!important;}.mon-shield::after {background-image:url(/sega239/mon-shield.png)!important;}.mon-invincible::after {background-image:url(/sega239/mon-invinc.png)!important;}.mon-eggman::after {background-image:url(/sega239/eggman-idle.png)!important;}
button:focus-visible,a:focus-visible {outline:3px solid #ffdd66;outline-offset:3px;}
@media(max-width:1099px){.wrap.layout {grid-template-columns:minmax(0,1fr);grid-template-areas:"invite" "content" "rail" "boards" "net";}.rail #admin {max-height:none;}.netgrid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.top {flex-wrap:wrap;}.netgrid {grid-template-columns:minmax(0,1fr);}.boards {display:flex;flex-direction:column;gap:16px;}.boards>* {width:100%;}.wrap.layout {padding:12px;gap:12px;}.netfoot {flex-wrap:wrap;}.netfoot code {overflow-wrap:anywhere;}.controls {flex-wrap:wrap;} .say {min-width:0;flex-basis:100%;}}

.netfoot {flex-direction:row;align-items:center;}.netfoot p {flex:1 1 300px;min-height:0;}.netfoot .b88 {margin:0;} .net {padding-top:0;} .netc .s-checkpoint {height:48px;} .radio-server-invite {max-width:none;width:100%;margin:0;}

@media(max-width:600px){.netgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.netc{grid-template-columns:32px minmax(0,1fr);min-height:52px;padding:6px;gap:6px}.netc .sega-icon{transform:scale(.75);transform-origin:center;grid-row:1}.netc b{font-size:11px!important;overflow-wrap:anywhere;align-self:center}.netc>span{display:none}.netfoot p{flex:1 1 100%;}.netfoot .b88{min-width:0;width:100%}.netc .s-checkpoint{height:32px}.top{gap:12px}.onair{font-size:10px}}

/* Profiles retain the full-size preview after generic live avatar rules. */
.profile-avatar .bod,.profile-avatar .bod img {width:192px;height:192px;animation:none;translate:none;}.profile-avatar {height:192px;margin:12px auto;}.profile-hero{padding:16px 12px;}.scene.strobe::after{display:none!important}.scene.strobe .beams i{animation-duration:12s!important}.fx-aura-super .bod img{animation:none;}.fx-aura-invincible .bod::before{content:"";background:url(/sega239/invinc.png) center/32px no-repeat;}

.arow:has(#atarget){display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center}.arow:has(#atarget)>label{grid-column:1/-1}.arow:has(#atarget)>select{grid-column:2;grid-row:2;width:100%}.arow:has(#atarget)>canvas{grid-column:1;grid-row:2}.arow:has(#atarget)>input{grid-column:1/-1;width:100%}.arow:has(#atarget)>button{min-height:36px;grid-column:1/-1}.emotes button{color:#fff;border-color:#567ac5;background:#122145}

/* Native64px sprite tiles; original source dimensions/palette remain unchanged. */
.mate .bod,.mate .bod img{width:128px;height:128px}.profile-avatar .bod,.profile-avatar .bod img{width:192px;height:192px}.sc-av .bod,.sc-av .bod img{width:64px;height:64px}.shopmate .bod,.shopmate .bod img{width:128px;height:128px}.blunt-puff{left:var(--puff-x,71.875%);top:var(--puff-y,50%);}.mate.left .blunt-puff{left:calc(100% - var(--puff-x,71.875%));right:auto}.mate.sit .blunt-puff{top:var(--puff-y,50%)}

.avb-step button{min-width:52px;flex:none;font-size:11px;letter-spacing:0}

/* ---------- Scaled central decorative DJ stage sprite ---------- */
.dj { left: 436px; top: 164px; width: 88px; height: 88px; }

/* ---------- AFK sleepy state & button ---------- */
#afkbtn.on { background: #ffd400 !important; color: #05081c !important; border-color: #fff !important; box-shadow: 0 0 10px #ffd400aa; }
.mate.afk .bod { translate: 0 0 !important; animation: afksnooze 2.8s ease-in-out infinite !important; filter: brightness(.88) saturate(.9); }
.mate.afk .bod img { transform: translateY(10px) scale(1.03, .76) rotate(8deg); }
.mate.afk.left .bod img { transform: translateY(10px) scale(-1.03, .76) rotate(-8deg); }
@keyframes afksnooze { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(3px) scaleY(.95); } }
.afk-zzz { display: none; position: absolute; left: 56%; top: 8px; z-index: 40; pointer-events: none;
  font: italic 900 15px/1 "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; color: #7df9ff;
  -webkit-text-stroke: 3px #05081c; paint-order: stroke fill; text-shadow: 2px 2px 0 #000, 0 0 8px #20d0ff;
  white-space: nowrap; animation: afkzzz 2.4s ease-in-out infinite; }
.mate.afk .afk-zzz { display: block; }
@keyframes afkzzz {
  0% { opacity: .25; transform: translate(0, 8px) scale(.82); }
  50% { opacity: 1; transform: translate(6px, -6px) scale(1.08); }
  100% { opacity: 0; transform: translate(12px, -20px) scale(.9); }
}
.nm .afk-tag { display: inline-block; margin-left: 4px; padding: 0 4px; background: #162658; color: #7df9ff;
  border: 1px solid #20d0ff; border-radius: 3px; font: 900 9px/1.3 "Liberation Mono", monospace; letter-spacing: 1px; vertical-align: 1px; }

/* ---------- SEGA Name Icons ---------- */
.name-ico { display: inline-block; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px;
  background-repeat: no-repeat; background-position: center; background-size: contain; image-rendering: pixelated; flex: none; }
.ni-ring { background-image: url(/sega239/pop-rings.png); }
.ni-shoes { background-image: url(/sega239/pop-shoes.png); }
.ni-spring { background-image: url(/sega239/spring-red.png); }
.ni-shield { background-image: url(/sega239/pop-shield.png); background-size: 56px 14px; background-position: 0 0; }
.ni-1up { background-image: url(/sega239/pop-1up.png); }
.ni-flicky { background-image: url(/sega239/flicky.png); background-size: 28px 14px; background-position: 0 center; }
.ni-motobug { background-image: url(/sega239/motobug.png); background-size: 28px 14px; background-position: 0 center; }
.ni-sonic { background-image: url(/sega239/life.png); }
.ni-tails { background-image: url(/sega239/tails-idle.png); }
.ni-knuckles { background-image: url(/spr/knuckles.png); background-size: 28px 14px; background-position: 0 center; }
.ni-shadow { background-image: url(/sega239/life.png); filter: grayscale(1) brightness(.65) drop-shadow(0 0 2px #ff2742); }
.ni-eggman { background-image: url(/sega239/eggman-idle.png); }
.shop-ni-thumb { width: 32px !important; height: 32px !important; margin: 6px auto !important; display: block !important; }
.ni-shield.shop-ni-thumb { background-size: 128px 32px; }
.ni-flicky.shop-ni-thumb, .ni-motobug.shop-ni-thumb, .ni-knuckles.shop-ni-thumb { background-size: 64px 32px; }

/* ---------- Interactive SEGA Stage Props ---------- */
.lay.near { top: 88px; height: 222px; z-index: 1; background-image: url(/spr/near.png); background-size: 768px 222px;
  filter: brightness(.58) saturate(1.25); opacity: .88; animation: scroll 42s linear infinite; animation-play-state: paused; }
body.playing .lay.near { animation-play-state: running; }
.scene.theme-greenhill .lay.near { filter: brightness(.92) saturate(1.4); opacity: 1; }
.scene.theme-casino .lay.near { filter: brightness(.55) saturate(1.9) hue-rotate(65deg); }
.scene.theme-chemical .lay.near { filter: brightness(.48) saturate(1.7) hue-rotate(150deg); }
.scene.theme-icecap .lay.near { filter: brightness(.85) saturate(.9) hue-rotate(165deg); }
.scene.theme-lavareef .lay.near { filter: brightness(.55) saturate(2.2) hue-rotate(140deg); }
.scene.theme-stardust .lay.near { filter: brightness(.6) saturate(1.9) hue-rotate(105deg); }
.scene.blackout .lay.near { filter: brightness(.12); }

.tailsfly { position: absolute; top: 52px; left: -90px; width: 70px; height: 40px; z-index: 6; cursor: pointer;
  background: url(/spr/tails-fly.png) 0 0 / 140px 40px no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #05081c); visibility: hidden; }
.tailsfly.go { visibility: visible; animation: tailsf .18s steps(2) infinite, tailsacross 9s linear forwards; }
@keyframes tailsf { to { background-position-x: -140px; } }
@keyframes tailsacross {
  0% { left: -85px; transform: translateY(0); }
  25% { transform: translateY(-16px); }
  50% { transform: translateY(8px); }
  75% { transform: translateY(-12px); }
  100% { left: 995px; transform: translateY(-4px); }
}

.eggmobile { position: absolute; top: 38px; left: 995px; width: 84px; height: 42px; z-index: 6; cursor: pointer;
  background: url(/spr/eggmobile.png) 0 0 / 168px 42px no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 #05081c); visibility: hidden; }
.eggmobile.go { visibility: visible; animation: eggf .22s steps(2) infinite, eggacross 11s linear forwards; }
.eggmobile.hit { filter: brightness(2.5) sepia(1) hue-rotate(-30deg) saturate(6) drop-shadow(0 0 12px #ff2742); }
@keyframes eggf { to { background-position-x: -168px; } }
@keyframes eggacross {
  0% { left: 995px; transform: translateY(0); }
  20% { transform: translateY(14px); }
  45% { transform: translateY(-10px); }
  70% { transform: translateY(12px); }
  100% { left: -100px; transform: translateY(0); }
}

.palm { position: absolute; top: 152px; width: 84px; height: 132px; z-index: 4; pointer-events: none;
  background: url(/spr/palm.png) 0 0 / 168px 132px no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 #05081c); animation: palmf 1.2s steps(2) infinite; }
.palm.l { left: 26px; }
.palm.r { right: 26px; transform: scaleX(-1); }
@keyframes palmf { to { background-position-x: -168px; } }

.stagechar { position: absolute; z-index: 7; cursor: pointer; image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #05081c); transform-origin: 50% 100%;
  translate: 0 calc(var(--beat) * -5px); transition: filter .15s; }
.stagechar:hover { filter: brightness(1.2) drop-shadow(0 0 8px var(--yellow)); }
/* real Sonic 3 Knuckles (native 64px source, 1.5x), mirrored to face the stage; feet on the speaker at y=144 */
.stagechar.knux { left: 118px; top: 48px; width: 96px; height: 96px; scale: -1 1;
  background: url(/sega239/native/knuckles.png) 0 0 / 96px 96px no-repeat; animation: knuxbob .6s ease-in-out infinite alternate; }
.stagechar.knux.punch { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes knuxbob { to { transform: translateY(2px); } }
@keyframes knuxf { to { background-position-x: -128px; } }

.stagechar.sonic { left: 762px; top: 76px; width: 55px; height: 66px;
  background: url(/spr/sonic-idle.png) 0 0 / 55px 66px no-repeat; animation: sonicbob .55s ease-in-out infinite alternate; }
@keyframes sonicbob { to { transform: translateY(2px); } }
.stagechar.sonic.spindash { width: 55px; height: 66px;
  background: url(/spr/sonic-spin.png) 0 0 / 440px 66px no-repeat;
  animation: sspin .18s steps(8) infinite, hop .55s cubic-bezier(.3,1.6,.5,1) 2;
  filter: drop-shadow(0 0 10px #2f6bff); }
@keyframes sspin { to { background-position-x: -440px; } }

.endpost { position: absolute; left: 42px; top: 242px; width: 66px; height: 66px; z-index: 7; cursor: pointer;
  background: url(/spr/endpost.png) 0 0 / 396px 66px no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #05081c); transition: transform .12s; }
.endpost:hover { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--yellow)); }
.endpost.spin { animation: endspin .24s steps(6) 7; }
@keyframes endspin { to { background-position-x: -396px; } }

.starpost { position: absolute; left: 866px; top: 248px; width: 48px; height: 54px; z-index: 7; cursor: pointer;
  background: url(/spr/starpost.png) 0 0 / 96px 54px no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #05081c); transition: transform .12s; }
.starpost:hover { transform: scale(1.08); }
.starpost.active { animation: starf .16s steps(2) 12; filter: drop-shadow(0 0 10px #ffd400); }
@keyframes starf { to { background-position-x: -96px; } }

.bumper { position: absolute; top: 280px; width: 46px; height: 30px; z-index: 7; cursor: pointer;
  background: url(/spr/bumper.png) 0 0 / 92px 30px no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #05081c); transform: scale(calc(1 + var(--beat) * .12)); }
.bumper.l { left: 196px; }
.bumper.r { left: 718px; }
.bumper:hover { filter: drop-shadow(0 0 8px #ffd400); }
.bumper.hit { animation: bmpf .14s steps(2) 6, bmppop .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes bmpf { to { background-position-x: -92px; } }
@keyframes bmppop { 50% { transform: scale(1.45); filter: drop-shadow(0 0 14px #fff); } }

.spring { position: absolute; top: 332px; width: 48px; height: 54px; z-index: 335; cursor: pointer;
  background: url(/spr/spring.png) 0 0 / 96px 54px no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #05081c); transition: transform .1s; }
.spring.l { left: 16px; }
.spring.r { right: 16px; }
.spring:hover { transform: scale(1.08); filter: drop-shadow(0 0 8px #ff2742); }
.spring.boing { animation: springf .38s steps(1), springpop .38s cubic-bezier(.3,1.8,.5,1); }
@keyframes springf { 0%, 85% { background-position-x: -48px; } 100% { background-position-x: 0; } }
@keyframes springpop { 35% { transform: scale(1.15, 1.3) translateY(-8px); } }

.pop.stagepop { font: italic 900 16px "Liberation Sans", Arial, sans-serif; color: var(--yellow);
  -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill; text-shadow: 2px 2px 0 #000;
  white-space: nowrap; pointer-events: none; z-index: 2600; }

/* ---------- Ring Shop Expansion: Auras, Trails, Names, Bubbles, Pets, Emotes ---------- */
.fx-aura-psychic .bod img { filter: drop-shadow(0 0 4px #20d0ff) drop-shadow(0 0 9px #7df9ff); }
.fx-aura-psychic .bod::after { content: ""; position: absolute; inset: -4% 2%; z-index: 2; border-radius: 50%;
  border: 2px solid #7df9ffcc; box-shadow: 0 0 14px #20d0ff, inset 0 0 10px #20d0ff88; animation: efloat 1.8s ease-in-out infinite; }
.fx-aura-synthwave .bod::before { content: ""; position: absolute; inset: -6% 4% 4%; z-index: 0; border-radius: 50%;
  background: linear-gradient(180deg, #ff2bd6cc 0%, #ff7a00cc 55%, #ffd400aa 100%);
  box-shadow: 0 0 16px #ff2bd6; animation: shimmer 1.6s ease-in-out infinite; }
.fx-aura-matrix .bod::after { content: "01 10"; position: absolute; inset: -6%; z-index: 2; display: flex; align-items: flex-start; justify-content: center;
  font: bold 10px "Liberation Mono", monospace; color: #39ff14; text-shadow: 0 0 6px #39ff14;
  border: 2px dashed #39ff14aa; border-radius: 50%; animation: rpm 2.4s linear infinite; }
.fx-aura-goldrush .bod::before { content: ""; position: absolute; inset: -8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff8b0dd 0 28%, #ffd40088 55%, #0000 72%);
  box-shadow: 0 0 18px #ffd400; animation: shimmer 1.1s ease-in-out infinite; }
.fx-aura-bloodmoon .bod::before { content: ""; position: absolute; inset: -6%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, #050005 0 42%, #ff1a2d 46% 62%, #0000 72%);
  box-shadow: 0 0 16px #ff1a2d; animation: shimmer 1.4s ease-in-out infinite; }
.fx-aura-soundwave .bod::after { content: ""; position: absolute; inset: 4%; z-index: 2; border-radius: 50%;
  border: 3px solid #20d0ff; box-shadow: 0 0 10px #ff2bd6; animation: boomring 1.1s ease-out infinite; }
@keyframes boomring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

.t-feathers, .t-fireworks, .t-bolts, .t-skulls, .t-cd { width: 16px; height: 16px; image-rendering: pixelated; animation: tfade .85s ease-out forwards; }
.t-feathers::before { content: ""; display: block; width: 16px; height: 16px; background: url(/sega239/pop-shoes.png) center/contain no-repeat; }
.t-fireworks::before { content: "777"; font: 900 10px/1 "Liberation Mono", monospace; color: #ffd400; text-shadow: 0 0 6px #ff2bd6; }
.t-bolts::before { content: ""; display: block; width: 16px; height: 16px; background: url(/sega239/pop-shield.png) left center/64px 16px no-repeat; }
.t-skulls::before { content: ""; display: block; width: 16px; height: 16px; background: url(/sega239/pop-invinc.png) center/contain no-repeat; filter: hue-rotate(310deg); }
.t-cd::before { content: ""; display: block; width: 16px; height: 16px; background: url(/sega239/pop-rings.png) center/contain no-repeat; }
.t-pixels { width: 10px; height: 10px; background: #20d0ff; box-shadow: 6px -4px 0 #ff2bd6, -5px 4px 0 #ffd400; animation: tfade .75s steps(4) forwards; }

.fx-name-casino .nm { color: #ffd400 !important; text-shadow: 0 0 6px #ff2bd6, 0 0 12px #ff2bd6, 1px 1px 0 #000; }
.fx-name-synth .nm { color: #20d0ff !important; text-shadow: 2px 2px 0 #ff2bd6, 0 0 8px #20d0ff; }
.fx-name-shadow .nm { color: #ff2742 !important; background: #08040cd9 !important; border: 1px solid #ff2742; text-shadow: 0 0 6px #ff2742, 1px 1px 0 #000; }
.fx-name-chrome .nm { color: #e8f0ff !important; text-shadow: 0 -1px 0 #fff, 0 2px 4px #2f6bff, 1px 1px 0 #05081c; }
.fx-name-lava .nm { color: #ff7a00 !important; text-shadow: 0 0 6px #ff2742, 0 -2px 8px #ffd400, 1px 1px 0 #000; }

.fx-bubble-casino .bub { background: linear-gradient(180deg, #32085a, #180230); color: #ffd400; border-color: #ff2bd6; box-shadow: 0 0 10px #ff2bd688; }
.fx-bubble-casino .bub::after { border-top-color: #ff2bd6; }
.fx-bubble-terminal .bub { background: #041208; color: #39ff14; border-color: #39ff14; font-family: "Liberation Mono", monospace; box-shadow: 0 0 8px #39ff1455; }
.fx-bubble-terminal .bub::after { border-top-color: #39ff14; }
.fx-bubble-synth .bub { background: linear-gradient(180deg, #1b0638, #380952); color: #7df9ff; border-color: #20d0ff; box-shadow: 0 3px 0 #ff2bd6; }
.fx-bubble-synth .bub::after { border-top-color: #20d0ff; }
.fx-bubble-ice .bub { background: linear-gradient(180deg, #e8feff, #9fefff); color: #0b2250; border-color: #20d0ff; box-shadow: 0 0 10px #7df9ff88; }
.fx-bubble-ice .bub::after { border-top-color: #20d0ff; }
.fx-bubble-royal .bub { background: linear-gradient(180deg, #06381e, #031c0e); color: #b6ffb0; border-color: #00e868; box-shadow: 0 0 12px #00e86888; }
.fx-bubble-royal .bub::after { border-top-color: #00e868; }

.fx-pet-tails::after { content: ""; position: absolute; left: -38px; bottom: 38px; width: 46px; height: 26px; z-index: 1;
  background: url(/spr/tails-fly.png) 0 0 / 92px 26px no-repeat; image-rendering: pixelated;
  animation: f2tails .18s steps(2) infinite, kittyhop 1.1s ease-in-out infinite; }
@keyframes f2tails { to { background-position-x: -92px; } }
.fx-pet-knuckles_pet::after { content: ""; position: absolute; left: -34px; bottom: 0; width: 42px; height: 32px; z-index: 1;
  background: url(/spr/knuckles.png) 0 0 / 84px 32px no-repeat; image-rendering: pixelated;
  animation: f2knux .4s steps(2) infinite, kittyhop 1.2s ease-in-out infinite; }
@keyframes f2knux { to { background-position-x: -84px; } }
.fx-pet-eggmobile_pet::after { content: ""; position: absolute; left: -38px; bottom: 36px; width: 48px; height: 24px; z-index: 1;
  background: url(/spr/eggmobile.png) 0 0 / 96px 24px no-repeat; image-rendering: pixelated;
  animation: f2egg .22s steps(2) infinite, kittyhop 1.4s ease-in-out infinite; }
@keyframes f2egg { to { background-position-x: -96px; } }
.fx-pet-bumper_pet::after { content: ""; position: absolute; left: -28px; bottom: 18px; width: 32px; height: 21px; z-index: 1;
  background: url(/spr/bumper.png) 0 0 / 64px 21px no-repeat; image-rendering: pixelated;
  animation: f2bmp .35s steps(2) infinite, kittyhop 1s ease-in-out infinite; }
@keyframes f2bmp { to { background-position-x: -64px; } }
.fx-pet-starpost_pet::after { content: ""; position: absolute; left: -26px; bottom: 0; width: 28px; height: 32px; z-index: 1;
  background: url(/spr/starpost.png) 0 0 / 56px 32px no-repeat; image-rendering: pixelated;
  animation: f2star .25s steps(2) infinite; }
@keyframes f2star { to { background-position-x: -56px; } }
.fx-pet-darkchao::after { content: ""; position: absolute; left: -28px; bottom: 26px; width: 26px; height: 20px; z-index: 1;
  background: url(/sega239/motobug.png) 0 0 / 52px 20px no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 0 6px #ff2742); animation: kittyhop 1.1s ease-in-out infinite; }

.bod.e-springjump { animation: espring 1.1s cubic-bezier(.25,1.5,.5,1); }
@keyframes espring { 0%, 100% { transform: none; } 45% { transform: translateY(-72px) rotate(-360deg) scale(1.1); } }
.bod.e-djscratch { animation: edj .2s ease-in-out 10; }
@keyframes edj { 50% { transform: translateX(-5px) rotate(-6deg) scaleY(.94); } }
.bod.e-karate { animation: ekarate .75s cubic-bezier(.2,1.5,.5,1) 2; }
@keyframes ekarate { 45% { transform: translateY(-38px) rotate(18deg) scale(1.18); filter: drop-shadow(0 8px 0 #ff2742); } }
.bod.e-tornado { animation: etornado 1.2s linear; }
@keyframes etornado { 0% { transform: none; } 50% { transform: translateY(-28px) scaleX(-1) rotate(360deg); filter: drop-shadow(0 0 12px #20d0ff); } 100% { transform: rotate(720deg); } }
.bod.e-jackpot { animation: hop .45s cubic-bezier(.3,1.6,.5,1) 3; filter: drop-shadow(0 0 10px #ffd400); }
.bod.e-superpose { animation: esuper 1.9s ease-in-out; }
@keyframes esuper { 20%, 80% { transform: translateY(-34px) scale(1.15); filter: sepia(1) saturate(6) hue-rotate(8deg) brightness(1.35) drop-shadow(0 0 16px #ffd400); } }

/* ---------- Expressive Character Emote Animations ---------- */
.mate .bod.e-wave, .shopmate .bod.e-wave { animation: wave .34s ease-in-out 5 !important; }
@keyframes wave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-16px) rotate(-18deg) scale(1.06); }
  75% { transform: translateY(-10px) rotate(18deg) scale(1.06); }
}
.mate .bod.e-dance, .shopmate .bod.e-dance { animation: dance .42s ease-in-out 5 !important; }
@keyframes dance {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-16px, -18px) rotate(-14deg) scale(1.08, .92); }
  50% { transform: translate(0, -4px) scale(1.12, .88); }
  75% { transform: translate(16px, -18px) rotate(14deg) scale(1.08, .92); }
}
.mate .bod.e-spin, .mate .bod.e-fire, .shopmate .bod.e-spin, .shopmate .bod.e-fire {
  transform-origin: 50% 55% !important;
  animation: spindash 1.05s cubic-bezier(.3,0,.3,1) !important;
  filter: drop-shadow(0 0 12px #20d0ff) drop-shadow(-14px 0 0 #ffffff66);
}
@keyframes spindash {
  0% { transform: none; }
  15% { transform: translateY(-32px) scale(.78); }
  85% { transform: translateY(-32px) rotate(1080deg) scale(.78); }
  100% { transform: none; }
}
.mate .bod.e-cheer, .shopmate .bod.e-cheer { animation: hop .52s cubic-bezier(.3,1.6,.5,1) 3 !important; }
.mate .bod.e-hop, .shopmate .bod.e-hop { animation: hop .55s cubic-bezier(.3,1.6,.5,1) !important; }
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-38px) scale(1.1, 1.15); }
  80% { transform: translateY(0) scale(1.12, .88); }
}
.mate .bod[class*="e-"], .shopmate .bod[class*="e-"] { translate: 0 0 !important; }

/* ---------- Account Login, Password, Google Sign-In & Admin Users Roster ---------- */
.auth-block { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #050a28; border: 2px solid #2b42b8; border-radius: 6px; }
.auth-row, .acct-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-btn { flex: 1 1 90px; min-height: 36px; padding: 6px 10px; border: 2px solid #05081c; border-radius: 6px;
  font: italic 900 12px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; cursor: pointer; box-shadow: 0 3px 0 #05081c; color: #fff; background: #1d3bd0; }
.auth-btn.primary { background: linear-gradient(180deg, #ffd400, #ff9900); color: #05081c; }
.auth-btn.google { background: linear-gradient(180deg, #ffffff, #dce6ff); color: #0b1450; border-color: #2b42b8; }
.auth-btn.danger { background: #5a1222; color: #ffd0d8; border-color: #ff2742; flex: 0 1 auto; }
.auth-btn:disabled { opacity: .55; cursor: default; }
.auth-note { font-size: 11px; color: #a8b6ee; margin: 2px 0; }
.join details input { margin-top: 4px; }

.acctbox { margin-top: 8px; background: #050a28; border: 2px solid #2b42b8; border-radius: 6px; padding: 6px 8px; }
.acctbox summary { cursor: pointer; font: italic 900 12px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; color: var(--yellow); }
.acct-body { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.acct-status { font: 700 11px/1.35 "Liberation Mono", monospace; color: #9fefff; background: #020514; padding: 5px 7px; border-radius: 4px; border: 1px solid #1c2c7a; }
.acct-body input { width: 100%; padding: 6px 8px; background: #020514; color: #fff; border: 2px solid #243890; border-radius: 4px; font: 12px "Liberation Mono", monospace; }

.admin-users { margin-top: 8px; background: #040820; border: 2px solid #2b42b8; border-radius: 6px; padding: 6px 8px; }
.admin-users summary { cursor: pointer; font: italic 900 12px "Liberation Sans", Arial, sans-serif; letter-spacing: 1px; color: var(--yellow); }
.au-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 6px 0; font: 700 11px "Liberation Mono", monospace; color: #b8c8ff; }
.au-head button { padding: 3px 8px; font-size: 10px; }
#ausearch { width: 100%; margin-bottom: 6px; padding: 5px 8px; background: #020514; color: #fff; border: 1px solid #2b42b8; border-radius: 4px; font: 11px "Liberation Mono", monospace; }
.au-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.au-row { padding: 5px 7px; background: #08103a; border: 1px solid #1f3185; border-radius: 4px; cursor: pointer; font: 11px/1.35 "Liberation Mono", monospace; }
.au-row:hover { background: #122163; border-color: var(--yellow); }
.au-row.online { border-left: 3px solid #39ff14; }
.au-top { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: #fff; }
.au-pid { color: #7e92d4; font-size: 10px; }
.au-meta { color: #a6b7f2; font-size: 10px; margin-top: 2px; word-break: break-all; }
.au-mail { color: #7df9ff; }
.au-b { display: inline-block; padding: 0 4px; border-radius: 3px; font: 900 9px/1.3 "Liberation Mono", monospace; letter-spacing: .5px; }
.au-b.on { background: #0d4a1e; color: #7cff6b; border: 1px solid #39ff14; }
.au-b.pass { background: #1c357a; color: #ffd400; border: 1px solid #ffd400; }
.au-b.goog { background: #fff; color: #0b1450; }
.au-b.disc { background: #5865f2; color: #fff; }
.au-b.adm { background: #ff2742; color: #fff; }
.au-b.tag { background: #2b0952; color: #ffd400; border: 1px solid #ff2bd6; }
.au-b.guest { background: #1b2244; color: #8b99c9; }



/* Decorative stage actors share authoritative time; no user avatar sizing changes. */
#stage-guest { position:absolute; top:188px; width:64px; height:64px; object-fit:contain; image-rendering:pixelated; z-index:7; pointer-events:none; }
#stage-guest[hidden] { display:none; }
.dj.moment-emote { animation:stage-nod .8s steps(2,end) infinite; }
@keyframes stage-nod { 50% { transform:translateY(-4px) rotate(3deg); } }
.moment-controls { margin:8px 0; }
.moment-controls input[type=text], #moment-line { max-width:100%; }

.emotes button { font-size:11px; letter-spacing:0; }
.shopbtn span { display:inline; }
/* moves bar: readable word labels (no emoji) */
.emotes { gap: 6px; }
.emotes button { width: auto; min-width: 48px; padding: 0 10px; font: 800 12px/1 "Liberation Sans", Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }

/* ---------- real sprites only on the stage (2026-11-12, replaces Codex hand-drawn props) ---------- */
/* real Green Hill palm (Sonic 1 GHZ1 map), static like the game */
.palm { top: 97px; width: 71px; height: 187px; background: url(/spr/real/palm.png) 0 0 / 71px 187px no-repeat; animation: none; }
/* real Sonic 1 bumper, 1.5x; frame 2 = hit flash */
.bumper { top: 262px; width: 48px; height: 48px; background: url(/spr/real/bumper.png) 0 0 / 96px 48px no-repeat; }
.bumper.l { left: 190px; } .bumper.r { left: 722px; }
@keyframes bmpf { to { background-position-x: -96px; } }
/* real Sonic 1 goal sign, 1.5x: frame 0 idle (Eggman), spins through to Sonic and stays */
.endpost { top: 236px; width: 72px; height: 72px; background: url(/spr/real/endpost.png) 0 0 / 504px 72px no-repeat; }
.endpost.spin { animation: endspin2 .3s steps(6) 6 forwards; }
@keyframes endspin2 { from { background-position-x: -72px; } to { background-position-x: -504px; } }
/* DJ booth keeps the DJ Spindok chibi (Spindok likes it) */
/* right speaker: real Tails, mirrored to face the booth */
.stagechar.sonic, .stagechar.sonic.spindash { left: 742px; top: 48px; width: 96px; height: 96px; scale: -1 1;
  background: url(/sega239/native/tails.png) 0 0 / 96px 96px no-repeat; filter: drop-shadow(0 3px 0 #05081c); }
.stagechar.sonic.spindash { animation: hop .55s cubic-bezier(.3,1.6,.5,1) 2; }
/* checkpoint: real starpost */
.starpost { left: 884px; top: 214px; width: 24px; height: 96px;
  background: url(/sega239/checkpoint.png) 0 0 / 24px 96px no-repeat; }
.starpost.active { background-image: url(/sega239/checkpoint-on.png); background-size: 48px 96px; animation: starf2 .16s steps(2) 12; }
@keyframes starf2 { to { background-position-x: -48px; } }
/* flybys: real Tails + Eggman sheets */
.tailsfly { width: 68px; height: 64px; background: url(/sega239/tails-fly.png) 0 0 / 136px 64px no-repeat; }
@keyframes tailsf { to { background-position-x: -136px; } }
.eggmobile { width: 96px; height: 81px; background: url(/sega239/eggman.png) 0 0 / 192px 81px no-repeat; }
@keyframes eggf { to { background-position-x: -192px; } }
.ni-knuckles { background-image: url(/sega239/native/knuckles.png); background-size: contain; background-position: center; }

/* pets: real sprites instead of Codex hand-drawn ones */
.fx-pet-tails::after { width: 34px; height: 32px; background: url(/sega239/tails-fly.png) 0 0 / 68px 32px no-repeat; }
@keyframes f2tails { to { background-position-x: -68px; } }
.fx-pet-knuckles_pet::after { width: 48px; height: 48px; left: -40px; background: url(/sega239/native/knuckles.png) 0 0 / 48px 48px no-repeat; animation: kittyhop 1.2s ease-in-out infinite; }
.fx-pet-eggmobile_pet::after { width: 48px; height: 40px; background: url(/sega239/eggman.png) 0 0 / 96px 40px no-repeat; }
.fx-pet-bumper_pet::after { width: 32px; height: 32px; background: url(/spr/real/bumper.png) 0 0 / 64px 32px no-repeat; }
.fx-pet-starpost_pet::after { width: 16px; height: 64px; left: -20px; background: url(/sega239/checkpoint.png) 0 0 / 16px 64px no-repeat; animation: none; }
/* real Sega characters are drawn 1:1 in a 64px tile (critters fill a 32px grid), so scale them up to match critter height */
.mate.native .bod { scale: 1.75; transform-origin: 50% 100%; }

/* long-press opens profiles on touch: no iOS image callout / text select */
.mate { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.floating-controls[hidden] { display: none !important; }
.rail > .box { align-self: stretch; }
/* invite moved under chat (rail): drop the top banner row */
.wrap.layout { grid-template-areas: "content rail" "boards boards" "net net"; }
@media (max-width: 1099px) { .wrap.layout { grid-template-areas: "content" "rail" "boards" "net"; } }
.rail .radio-server-invite { grid-area: auto; max-width: none; margin: 0; padding: 12px; flex-wrap: wrap; gap: 10px; align-self: stretch; }
.rail .radio-server-invite p { min-width: 0; }
.rail .radio-server-invite p { flex: 0 0 auto; white-space: nowrap; }
/* name tags: one emerald + count instead of a row of 7 */
.nm .gm { align-items: center; gap: 2px; margin-right: 5px; }
.nm .gm svg { width: 10px; height: 9px; }
.nm .gm b { font: 800 10px/1 "Liberation Sans", Arial, sans-serif; color: #b6ffb0; }
.nm .name-ico { margin-right: 5px; }
/* floating player sits in the controls row */
.controls .floating-controls { display: contents; }
.controls .floating-controls video:not([hidden]) { flex-basis: 100%; }
/* PRESS START: smaller, down on the floor so the stage stays visible */
.joinparty { top: 585px; transform: translate(-50%, -50%) scale(calc(var(--ui, 1) * .78)); }
@media (max-width: 700px) {
  /* moves bar scrolls sideways instead of wrapping AFK onto its own line */
  .emotes { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .emotes::-webkit-scrollbar { display: none; }
  .emotes button { flex: 0 0 auto; }
  /* guests: log in / create player comes before chat */
  .rail .p1 { order: 0; }
}
@media (max-width: 700px) { .emotes button { min-width: 0 !important; padding: 0 6px !important; font-size: 11px !important; } .emotes { gap: 0 !important; padding-left: 4px !important; padding-right: 4px !important; } }
/* invite now lives in the bottom network bar */
.netfoot .radio-server-invite { grid-area: auto; margin: 0 0 0 auto; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; display: flex; flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; max-width: none; }
.netfoot .radio-server-invite p { margin: 0; min-width: 0; flex: 0 0 auto; white-space: nowrap; }
.netfoot > p { flex: 0 1 auto !important; }
.netfoot .radio-server-invite { justify-content: flex-end !important; padding: 0 !important; margin-left: auto !important; width: auto !important; }
/* panel: RING SHOP + MY PROFILE side by side, same chunky style */
.p1 .shopbig, .p1 #my-profile { display: inline-flex !important; align-items: center; justify-content: center; width: calc(50% - 4px) !important; height: 46px; margin-top: 12px !important; vertical-align: top; padding: 0 8px !important; font: italic 900 14px "Liberation Sans", Arial, sans-serif !important; letter-spacing: 1px; }
.p1 .shopbig { margin-right: 4px !important; }
.p1 #my-profile { margin-left: 4px !important; cursor: pointer; border: 3px solid #000 !important; border-radius: 6px !important; box-shadow: 3px 3px 0 #000 !important;
  background: linear-gradient(180deg, #4f8bff, #1d47c8) !important; color: #fff !important; text-shadow: 1px 1px 0 #000; }
.p1 #my-profile:hover { filter: brightness(1.12); }
.linkskip { display: block; margin: 4px auto 0; background: none; border: 0; color: #9aa6ff; font: 12px "Liberation Sans", Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.profile-settings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-settings button { flex: 1 1 160px; padding: 10px 12px; border-radius: 8px; border: 2px solid #567ac5; background: #122145; color: #fff; font: bold 13px "Liberation Sans", Arial, sans-serif; cursor: pointer; }
.profile-settings button:hover { background: #1b3168; }
.p1 .shopbig, .p1 #my-profile { width: calc(50% - 6px) !important; margin-left: 0 !important; margin-right: 0 !important; }
.p1 .shopbig { margin-right: 4px !important; }
/* admin grid: long labels wrap instead of spilling out */
#admin button { white-space: normal !important; overflow-wrap: anywhere; font-size: 11px !important; line-height: 1.15 !important; min-height: 26px; }
.profile-kicker:empty, .profile-bio:empty { display: none; }
.blunt-puff { left: var(--puff-x, 71.875%); top: var(--puff-y, 46.875%); }
.mate.left .blunt-puff { left: auto; right: calc(100% - var(--puff-x, 71.875%)); }

/* ---------- Coke Zero stage (2026-11-12) ---------- */
#scene[data-theme="coke-zero"] { background: linear-gradient(#050506 0 300px, #070708 300px); }
#scene[data-theme="coke-zero"] .sky { filter: none; background: radial-gradient(ellipse 60% 70% at 50% 100%, #e4002b55, transparent 70%), radial-gradient(circle at 50% 120%, #ff1f3d33, transparent 60%), #050506; }
#scene[data-theme="coke-zero"] .far { filter: none; animation: none; top: 60px; height: 240px;
  background: linear-gradient(transparent 0 30%, #e4002b 30% 44%, #f4f4f4 44% 46%, transparent 46%), linear-gradient(#1c1c20, #0c0c0e);
  -webkit-mask: repeating-linear-gradient(90deg, transparent 0 18px, #000 18px 96px, transparent 96px 120px), linear-gradient(transparent 0 8%, #000 8%);
  -webkit-mask-composite: source-in; mask-composite: intersect; opacity: .9; }
#scene[data-theme="coke-zero"] .scenery { opacity: 1; height: 300px; top: 0;
  background: radial-gradient(circle, #ffffffb0 0 1.5px, transparent 2.5px) 0 0/37px 41px, radial-gradient(circle, #ffffff70 0 2.5px, transparent 3.5px) 13px 7px/61px 53px, radial-gradient(circle, #ff8a9a60 0 1px, transparent 2px) 5px 20px/23px 29px;
  animation: cz-fizz 6s linear infinite; }
@keyframes cz-fizz { to { background-position: 0 -410px, 13px -523px, 5px -270px; } }
#scene[data-theme="coke-zero"] .lay.near { display: none; }
#scene[data-theme="coke-zero"] .truss { border-image: repeating-linear-gradient(45deg, #e4002b 0 5px, #1a1a1d 5px 10px) 10; }
#scene[data-theme="coke-zero"] .truss span { font-size: 0; letter-spacing: 0; background: #e4002b; border-color: #000; box-shadow: 3px 3px 0 #000; }
#scene[data-theme="coke-zero"] .truss span::after { content: 'COKE ZERO \2022  ZERO SUGAR STAGE'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="coke-zero"] .lip { background: #e4002b; box-shadow: 0 0 22px #ff1f3d; }
#scene[data-theme="coke-zero"] .deckstage { background: linear-gradient(#1a1a1d, #0a0a0b); }
#scene[data-theme="coke-zero"] .beams i { filter: hue-rotate(0) saturate(1); background: linear-gradient(#ff1f3dcc, transparent); }
.venue:has([data-theme="coke-zero"]) .arcade-bonus { background: #e4002b; color: #fff; border-color: #000; }
#scene[data-theme="coke-zero"] .boothfront { background: linear-gradient(#e4002b, #9e0018); border-color: #000; box-shadow: 0 0 18px #ff1f3d80; }
#scene[data-theme="coke-zero"] .boothfront span { color: #fff; text-shadow: 2px 2px 0 #000; }
/* Coke Zero stage props: real CokeMusic furni sprites (spr/cz/PROVENANCE.md), same clickable spots. !important on background-position freezes the Sonic sprite-sheet frames. */
#scene[data-theme="coke-zero"] :is(.stagechar, .endpost, .starpost, .bumper, .spring, .palm) { background-repeat: no-repeat !important; background-position: center bottom !important; background-size: contain !important; image-rendering: pixelated; animation-name: none; }
#scene[data-theme="coke-zero"] .stagechar.knux { background-image: url(/spr/cz/bear2.png) !important; left: 128px; top: 34px; width: 66px; height: 104px; scale: 1 1; }
#scene[data-theme="coke-zero"] .stagechar.sonic { background-image: url(/spr/cz/bear2.png) !important; left: 752px; top: 34px; width: 66px; height: 104px; scale: -1 1; }
#scene[data-theme="coke-zero"] .stagechar.knux.punch, #scene[data-theme="coke-zero"] .stagechar.sonic.spindash { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="coke-zero"] .endpost { background-image: url(/spr/cz/shelf.png) !important; left: 30px; top: 200px; width: 83px; height: 109px; }
#scene[data-theme="coke-zero"] .endpost.spin { animation: cz-shake .12s linear 8 !important; }
@keyframes cz-shake { 50% { transform: translateX(-3px) rotate(-2deg); } }
#scene[data-theme="coke-zero"] .starpost { background-image: url(/spr/cz/gumball.png) !important; left: 872px; top: 205px; width: 41px; height: 105px; }
#scene[data-theme="coke-zero"] .starpost.active { filter: drop-shadow(0 0 10px #ff1f3d); }
#scene[data-theme="coke-zero"] .bumper { background-image: url(/spr/cz/plaque.png) !important; top: 256px; width: 42px; height: 54px; }
#scene[data-theme="coke-zero"] .bumper.hit { animation: bmppop .35s cubic-bezier(.3,1.8,.5,1); }
#scene[data-theme="coke-zero"] .spring { background-image: url(/spr/cz/cooler.png) !important; width: 54px; height: 63px; top: 326px; }
#scene[data-theme="coke-zero"] .spring.boing { animation: springpop .38s cubic-bezier(.3,1.8,.5,1); }
#scene[data-theme="coke-zero"] .palm { display: block; top: 160px; width: 59px; height: 113px; transform: none; }
#scene[data-theme="coke-zero"] .palm.l { background-image: url(/spr/cz/tower2.png) !important; left: 262px; }
#scene[data-theme="coke-zero"] .palm.r { background-image: url(/spr/cz/tower.png) !important; right: 262px; }
#scene[data-theme="coke-zero"] :is(.tailsfly, .eggmobile) { display: none; }

/* ---------- Kongo Jungle stage (DKC sprites, spr/dk/PROVENANCE.md) ---------- */
.themedecor { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.themedecor .deco { position: absolute; image-rendering: pixelated; pointer-events: auto; cursor: pointer; user-select: none; }
.themedecor .deco:hover { filter: brightness(1.2) drop-shadow(0 0 6px #ffd400); }
.themedecor .deco.poke { animation: hop .45s cubic-bezier(.3,1.6,.5,1); }
.themedecor .bob { animation: deco-bob 2.6s ease-in-out infinite; }
.themedecor .bob.slow { animation-duration: 3.6s; }
.themedecor .hover { animation: deco-hover 4s ease-in-out infinite; }
.themedecor .spinl { animation: deco-spin 2.4s steps(8) infinite; }
.themedecor .walker { animation: deco-walk 28s linear infinite; left: 0 !important; will-change: transform; }
@keyframes deco-bob { 50% { transform: translateY(-10px); } }
@keyframes deco-hover { 25% { transform: translate(14px, -8px); } 50% { transform: translate(28px, 0); } 75% { transform: translate(14px, 8px); } }
@keyframes deco-spin { 50% { transform: scaleX(.15); } }
@keyframes deco-walk { 0% { transform: translateX(-60px); } 48% { transform: translateX(960px); } 50% { transform: translateX(960px) scaleX(-1); } 98% { transform: translateX(-60px) scaleX(-1); } 100% { transform: translateX(-60px); } } /* transform-only (was left), 2026-11-19 */

#scene[data-theme="dk-jungle"] { background: linear-gradient(#2a1a0c 0 300px, #24160a 300px); }
#scene[data-theme="dk-jungle"] .sky { filter: none; background: linear-gradient(#3f86c8, #8fc6e0 55%, #f3d58a); }
#scene[data-theme="dk-jungle"] .far { filter: none; animation: none; top: 30px; height: 280px; clip-path: none; background: url(/spr/dk/jungle.png) repeat-x left bottom / auto 280px; image-rendering: pixelated; }
#scene[data-theme="dk-jungle"] .scenery, #scene[data-theme="dk-jungle"] .lay.near { display: none; }
#scene[data-theme="dk-jungle"] .truss { border-image: repeating-linear-gradient(45deg, #9a6a34 0 5px, #4a2a10 5px 10px) 10; }
#scene[data-theme="dk-jungle"] .truss span { font-size: 0; letter-spacing: 0; background: #6a3f1c; border-color: #2a1606; box-shadow: 3px 3px 0 #2a1606; }
#scene[data-theme="dk-jungle"] .truss span::after { content: 'DK ISLE \2022  KONGO JUNGLE'; font-size: 13px; letter-spacing: 3px; color: #ffd400; }
#scene[data-theme="dk-jungle"] .lip { background: #ffd400; box-shadow: 0 0 18px #ffb800; }
#scene[data-theme="dk-jungle"] .deckstage { background: repeating-linear-gradient(90deg, #7a4a22 0 40px, #6a3f1c 40px 42px); }
#scene[data-theme="dk-jungle"] .boothfront { background: repeating-linear-gradient(90deg, #8a5a2a 0 22px, #6a3f1c 22px 24px); border-color: #2a1606; }
#scene[data-theme="dk-jungle"] .boothfront span { color: #ffd400; text-shadow: 2px 2px 0 #2a1606; }
#scene[data-theme="dk-jungle"] .beams i { background: linear-gradient(#ffe08acc, transparent); }
#scene[data-theme="dk-jungle"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="dk-jungle"] :is(.stagechar, .endpost, .starpost, .bumper, .spring, .palm) { background-repeat: no-repeat !important; background-position: 0 100%; image-rendering: pixelated; animation: sheet var(--dur, 1s) steps(var(--n), jump-none) infinite; }
#scene[data-theme="dk-jungle"] :is(.endpost, .starpost) { background-size: contain !important; background-position: center bottom !important; animation: none; }
#scene[data-theme="dk-jungle"] .stagechar.knux { background-image: url(/spr/dk/dk_dance_sheet.png) !important; background-size: 5100% 100% !important; --n: 51; --dur: 3.4s; left: 112px; top: 36px; width: 92px; height: 102px; scale: 1 1; }
#scene[data-theme="dk-jungle"] .stagechar.sonic { background-image: url(/spr/dk/cranky_sheet.png) !important; background-size: 1200% 100% !important; --n: 12; --dur: 2.4s; left: 706px; top: 56px; width: 102px; height: 82px; scale: -1 1; }
#scene[data-theme="dk-jungle"] .stagechar.knux.punch, #scene[data-theme="dk-jungle"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="dk-jungle"] .endpost { background-image: url(/spr/dk/hoardsign.png) !important; left: 34px; top: 218px; width: 80px; height: 90px; }
#scene[data-theme="dk-jungle"] .endpost.spin { animation: cz-shake .12s linear 8 !important; }
#scene[data-theme="dk-jungle"] .starpost { background-image: url(/spr/dk/exit.png) !important; left: 862px; top: 232px; width: 64px; height: 76px; }
#scene[data-theme="dk-jungle"] .bumper { background-image: url(/spr/dk/bunch_sheet.png) !important; background-size: 600% 100% !important; --n: 6; --dur: .9s; top: 268px; width: 46px; height: 38px; }
#scene[data-theme="dk-jungle"] .bumper.hit { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, bmppop .35s cubic-bezier(.3,1.8,.5,1); }
#scene[data-theme="dk-jungle"] .spring { background-image: url(/spr/dk/tire_sheet.png) !important; background-size: 700% 100% !important; --n: 7; --dur: 1.4s; width: 53px; height: 64px; top: 322px; animation-name: none; }
#scene[data-theme="dk-jungle"] .spring.boing { animation: sheet .5s steps(7, jump-none) 1, springpop .38s cubic-bezier(.3,1.8,.5,1); }
#scene[data-theme="dk-jungle"] .palm { display: block; transform: none; }
#scene[data-theme="dk-jungle"] .palm.l { background-image: url(/spr/dk/gramophone_sheet.png) !important; background-size: 1200% 100% !important; --n: 12; --dur: 1.6s; left: 262px; top: 178px; width: 64px; height: 94px; }
#scene[data-theme="dk-jungle"] .palm.r { background-image: url(/spr/dk/barrel_sheet.png) !important; background-size: 1600% 100% !important; --n: 16; --dur: 3.2s; right: 244px; top: 180px; width: 90px; height: 92px; }
@keyframes sheet { from { background-position-x: 0%; } to { background-position-x: 100%; } }
.themedecor .deco i { position: absolute; inset: 0; background: no-repeat center bottom / contain; image-rendering: pixelated; }
.themedecor .deco i.sheet { background-position: 0 100%; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; }
/* DKC shop: name icons + pets (real DKC sprite sheets in spr/dk) */
.ni-dk_banana { background-image: url(/spr/dk/banana.png); } .ni-dk_bunch { background-image: url(/spr/dk/bunch.png); } .ni-dk_barrel { background-image: url(/spr/dk/barrel.png); }
.ni-dk_kong { background-image: url(/spr/dk/letter_K.png); } .ni-dk_balloon { background-image: url(/spr/dk/balloon_dk.png); } .ni-dk_zinger { background-image: url(/spr/dk/ico_zinger.png); }
.ni-dk_dk { background-image: url(/spr/dk/ico_dk.png); } .ni-dk_diddy { background-image: url(/spr/dk/ico_diddy.png); }
:is(.fx-pet-diddy, .fx-pet-dk_zinger, .fx-pet-dk_gnawty, .fx-pet-dk_neek, .fx-pet-dk_klomp, .fx-pet-dk_flitter, .fx-pet-dk_balloon)::after { content: ""; position: absolute; z-index: 1; background-repeat: no-repeat; background-position: 0 100%; image-rendering: pixelated; animation: sheet var(--pd, 1s) steps(var(--pn), jump-none) infinite; }
.fx-pet-diddy::after { left: -34px; bottom: -2px; width: 37px; height: 33px; background-image: url(/spr/dk/pet_diddy_idle.png); background-size: 2200% 100%; --pn: 22; --pd: 2.6s; }
.mate.walk.fx-pet-diddy::after { background-image: url(/spr/dk/pet_diddy_walk.png); background-size: 1600% 100%; --pn: 16; --pd: .9s; width: 33px; height: 32px; }
.fx-pet-dk_zinger::after { left: -36px; bottom: 34px; width: 38px; height: 39px; background-image: url(/spr/dk/pet_zinger_idle.png); background-size: 800% 100%; --pn: 8; --pd: .5s; }
.fx-pet-dk_gnawty::after { left: -34px; bottom: -2px; width: 34px; height: 28px; background-image: url(/spr/dk/gnawty_sheet.png); background-size: 800% 100%; --pn: 8; --pd: .7s; }
.fx-pet-dk_neek::after { left: -40px; bottom: -2px; width: 42px; height: 19px; background-image: url(/spr/dk/pet_neek_walk.png); background-size: 700% 100%; --pn: 7; --pd: .7s; }
.fx-pet-dk_klomp::after { left: -44px; bottom: -2px; width: 44px; height: 40px; background-image: url(/spr/dk/pet_klomp_walk.png); background-size: 900% 100%; --pn: 9; --pd: 1s; }
.fx-pet-dk_flitter::after { left: -38px; bottom: 36px; width: 40px; height: 32px; background-image: url(/spr/dk/pet_flitter_idle.png); background-size: 800% 100%; --pn: 8; --pd: .5s; }
.fx-pet-dk_balloon::after { left: -24px; bottom: 30px; width: 20px; height: 50px; background-image: url(/spr/dk/balloon_dk_sheet.png); background-size: 800% 100%; --pn: 8; --pd: 1.2s; }

/* ---------- shop cleanup (2026-11-12): sections → categories, tools, real-sprite thumbs ---------- */
.shop-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shop-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-groups button { padding: 7px 11px; cursor: pointer; background: #0d1440; color: #c8d0ff; border: 2px solid #2a3a9a; border-radius: 999px; font: 800 12px/1 Inter, "Liberation Sans", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.shop-groups button:hover { border-color: #6a86c4; color: #fff; }
.shop-groups button.on { background: var(--yellow); color: var(--navy); border-color: #000; }
.shop-tabs { gap: 4px; padding: 6px; background: #080d2c; border: 1px solid #1d2a78; border-radius: 10px; }
.shop-tabs[hidden] { display: none; }
.shop-tabs button { padding: 6px 10px; border-radius: 6px; font: 700 12px/1 Inter, "Liberation Sans", Arial, sans-serif; text-transform: none; letter-spacing: 0; border-width: 1px; }
.shop-tabs button small { opacity: .6; font-weight: 600; margin-left: 3px; }
.shop-tabs button.on small { opacity: .8; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-tools input[type=search], .shop-tools select { min-height: 36px; padding: 6px 10px; background: #0c1735; color: #fff; border: 1px solid #2a3a9a; border-radius: 8px; font: 13px Inter, "Liberation Sans", Arial, sans-serif; }
.shop-tools input[type=search] { flex: 1 1 180px; }
.shop-chk { display: inline-flex; align-items: center; gap: 5px; color: #c8d0ff; font: 12px Inter, "Liberation Sans", Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.shop-sec { grid-column: 1 / -1; margin: 6px 0 -2px; color: var(--yellow); font: 800 11px/1 Inter, "Liberation Sans", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid #1d2a78; padding-bottom: 5px; }
.shop-sec:first-child { margin-top: 0; }
.sc-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; min-height: 2.4em; }
.sc-lock { display: inline-flex; align-items: center; gap: 2px; font: 700 11px "Liberation Mono", monospace; color: #c8d0ff; }
.sc-lock svg, .si-rank svg { width: 12px; height: 12px; }
.sc-art { width: 100%; height: 100%; background: no-repeat center / contain; image-rendering: pixelated; }
.sc-pet { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.sc-pet .mate { position: absolute; left: 50%; bottom: 8px; width: 0; height: 0; transform: scale(1.45); transform-origin: 0 100%; --s: 1; }
.sc-pet .mate::after { left: 0 !important; bottom: 0 !important; translate: -50% 0; }
.sc-pet .mate .bod { display: none; }
.sc-trail { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.sc-trail .trail { left: calc(18% + var(--n) * 16%); top: calc(72% - var(--n) * 11%); --s: 2; animation-duration: 1.6s !important; animation-iteration-count: infinite !important; animation-delay: calc(var(--n) * -.32s) !important; }
.sc-trail .trail img { width: 32px; }
.sc-emote .mate { position: relative; left: auto; top: auto; transform: none; }
.shop-stage { height: 300px; }
.shopmate { --s: 1.3; transform: translate(-50%, 0) scale(1.3); bottom: 40px; }
@media (max-width: 700px) { .shop-stage { height: 230px; } .shopmate { --s: 1.05; transform: translate(-50%, 0) scale(1.05); bottom: 30px; } }
/* trails + pets that had lost their emoji art: real Sonic sprites (spr/fx/PROVENANCE.md) */
:is(.t-leaves, .t-dust, .t-bubbles, .t-notes, .t-lightning, .t-rainbow, .t-stars) { font-size: 0; background: no-repeat center / contain; image-rendering: pixelated; }
:is(.t-leaves, .t-dust, .t-bubbles, .t-notes, .t-lightning, .t-rainbow, .t-stars)::before { content: none !important; }
.t-leaves { width: 22px; height: 9px; background-image: url(/spr/fx/leaf.png); }
.t-dust { width: 14px; height: 16px; background-image: url(/spr/fx/dust.png); }
.t-bubbles { width: 14px; height: 14px; background-image: url(/spr/fx/bubble.png); }
.t-notes { width: 18px; height: 11px; background-image: url(/spr/fx/notes.png); }
.t-lightning { width: 16px; height: 17px; background-image: url(/spr/fx/lightning.png); }
.t-rainbow { width: 20px; height: 18px; background-image: url(/spr/fx/rainbow.png); }
.t-stars { width: 14px; height: 14px; background-image: url(/spr/fx/star.png); }
.fx-pet-chao::after { content: ""; width: 21px; height: 23px; font-size: 0; background: url(/spr/fx/chao.png) no-repeat center / contain; image-rendering: pixelated; filter: none; }
.fx-pet-emerald::after { content: ""; width: 20px; height: 20px; font-size: 0; background: url(/spr/fx/emerald.png) no-repeat center / contain; image-rendering: pixelated; filter: drop-shadow(0 0 5px #25d04a); }
.fx-pet-monitor::after { content: ""; width: 24px; height: 24px; font-size: 0; background: url(/sega239/mon-rings.png) no-repeat center / contain; image-rendering: pixelated; }
.sc-badge { display: inline-grid; place-items: center; width: 26px; height: 18px; border-radius: 4px; background: #ff5500; color: #fff; font: 800 10px/1 Inter, Arial, sans-serif; }
.sc .spr.ring, #results .spr.ring { transform: scale(.5); margin: -8px -6px; }
/* Gotham (Batman TAS) stage dressing — sprites/backdrop come from zones.css */
#scene[data-theme="batman-tas"] .deckstage { background: linear-gradient(#2a2a32, #121216); border-color: #000; }
#scene[data-theme="batman-tas"] .truss { border-image: repeating-linear-gradient(45deg, #3a3a44 0 5px, #121216 5px 10px) 10; }
#scene[data-theme="batman-tas"] .truss span { background: #c8102e; border-color: #000; box-shadow: 3px 3px 0 #000; }
#scene[data-theme="batman-tas"] .truss span::after { color: #ffd34a; }
#scene[data-theme="batman-tas"] .boothfront { background: linear-gradient(#24242c, #0e0e12); border-color: #000; }
#scene[data-theme="batman-tas"] .boothfront span { color: #ffd34a; text-shadow: 2px 2px 0 #000; }
#scene[data-theme="batman-tas"] .beams i { background: linear-gradient(#ffe9a0aa, transparent); }
#scene[data-theme="batman-tas"] .themedecor .deco { filter: drop-shadow(0 0 2px #ffd34a80); }

/* ---------- admin panel (2026-11-13 overhaul): 3 plain sections + More tools ---------- */
.adminbox { display: grid; gap: 12px; padding: 14px; background: #0a1030; border: 1px solid #2a3a9a; border-radius: 12px; font: 13px/1.4 Inter, "Liberation Sans", Arial, sans-serif; color: #dfe6ff; }
.adminbox[hidden] { display: none; }
.cp-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cp-head b { color: #ffd400; font: 800 13px/1 "Space Grotesk", Inter, sans-serif; letter-spacing: .14em; }
.adminbox .amsg { color: #9fe8ff; font-size: 12px; min-height: 0; }
.cp-sec { display: grid; gap: 8px; padding: 12px; background: #0d1440; border: 1px solid #1d2a78; border-radius: 10px; }
.cp-sec h4 { margin: 0; color: #c8d0ff; font: 800 11px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.cp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cp-row select, .cp-row input:not([type=checkbox]), .cp-more select { min-height: 38px; padding: 6px 10px; background: #0c1735; color: #fff; border: 1px solid #2a3a9a; border-radius: 8px; font: 13px Inter, sans-serif; }
.cp-row select#venue-theme { flex: 1 1 220px; }
.cp-row input#aamt { width: 96px; }
.adminbox button { min-height: 38px; padding: 7px 14px; cursor: pointer; background: #16205a; color: #e8edff; border: 1px solid #34449e; border-radius: 8px; font: 700 12px/1 Inter, sans-serif; letter-spacing: .02em; text-transform: none; }
.adminbox button:hover { background: #1f2c78; border-color: #6a86c4; }
.adminbox button.cp-main { background: #ffd400; color: #101c46; border-color: #000; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.cp-chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cp-chk input { width: 18px; height: 18px; accent-color: #ffd400; }
.cp-note { margin: 0; color: #9aa6d8; font-size: 12px; }
#atarget-preview { width: 38px; height: 38px; image-rendering: pixelated; background: #0c1735; border-radius: 8px; }
.cp-more { padding: 10px 12px; background: #0b1238; border: 1px dashed #2a3a9a; border-radius: 10px; }
.cp-more > summary { cursor: pointer; color: #c8d0ff; font: 700 12px/1.6 Inter, sans-serif; }
.cp-more[open] { display: grid; gap: 10px; }
.cp-more .admin-users > summary { cursor: pointer; color: #c8d0ff; }
.wrap.layout { grid-template-areas: "content rail" "admin admin" "boards boards" "net net"; }
@media (max-width: 1099px) { .wrap.layout { grid-template-areas: "content" "rail" "admin" "boards" "net"; } }
.adminwide { grid-area: admin; margin: 0; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.adminwide .cp-head, .adminwide .cp-more { grid-column: 1 / -1; }
.adminbox .cp-row input:not([type=checkbox]):not(#aamt) { width: 260px; max-width: 100%; }
.adminbox .cp-row b { display: inline; margin: 0; }
.cp-light { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.adminbox .cp-light button.on { background: #ffd400; color: #101c46; border-color: #000; }

/* ---------- Mewtwo's Lair (Pokémon B/W sprites, spr/pkmn/PROVENANCE.md): pitch dark, lit only by Mewtwo's psychic glow ---------- */
#scene[data-theme="mewtwo-lair"] { background: #020104; }
#scene[data-theme="mewtwo-lair"] .sky { filter: none; background: #020104; }
#scene[data-theme="mewtwo-lair"] .far { filter: brightness(.2) saturate(.5) hue-rotate(20deg); animation: none; clip-path: none; top: 0; height: 310px; background: url(/spr/pkmn/cave.png) repeat-x left bottom / auto 310px; image-rendering: pixelated; }
#scene[data-theme="mewtwo-lair"] :is(.scenery, .lay.near, .palm, .tailsfly, .eggmobile, .endpost, .starpost, .bumper, .spring) { display: none; }
/* the psychic light: a big screen-blended glow centred on Mewtwo, pulsing with the bass */
#scene[data-theme="mewtwo-lair"] .themedecor::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: screen;
  background: radial-gradient(circle at 85% 16%, rgb(205 120 255) 0, rgb(150 60 240 / .55) 14%, rgb(90 20 180 / .2) 34%, transparent 62%);
  /* perf 2026-11-20: beat drives opacity (compositor) instead of the gradient colours (full-scene repaint every beat) */
  opacity: calc(.55 + var(--beat, 0) * .45); will-change: opacity; animation: mt-breathe 4s ease-in-out infinite; }
#scene[data-theme="mewtwo-lair"] .themedecor::after { content: ""; position: absolute; left: 0; right: 0; top: 300px; bottom: 0; pointer-events: none; z-index: 1; mix-blend-mode: screen;
  background: radial-gradient(ellipse 55% 40% at 78% 0, rgb(170 80 255 / .43), transparent 70%); opacity: calc(.42 + var(--beat, 0) * .58); will-change: opacity; }
@keyframes mt-breathe { 50% { filter: opacity(.75); } }
#scene[data-theme="mewtwo-lair"] .themedecor .mt-float { animation: mt-float 3.2s ease-in-out infinite; filter: drop-shadow(0 0 10px #c070ff) drop-shadow(0 0 26px #8a2be2); }
#scene[data-theme="mewtwo-lair"] .themedecor .mt-orb { animation: mt-orb 2.6s ease-in-out infinite; filter: drop-shadow(0 0 8px #b060ff); mix-blend-mode: screen; }
#scene[data-theme="mewtwo-lair"] .themedecor .mt-orb.slow { animation-duration: 3.8s; animation-direction: reverse; }
@keyframes mt-float { 50% { transform: translateY(-12px); } }
@keyframes mt-orb { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(-14px, 18px) scale(1.15); } 50% { transform: translate(6px, 34px) scale(.9); } 75% { transform: translate(18px, 12px) scale(1.1); } }
#scene[data-theme="mewtwo-lair"] .themedecor .deco:not(.mt-float):not(.mt-orb) { filter: brightness(.55) drop-shadow(0 0 6px #7a2bd0); }
/* stage hardware sinks into the dark; only purple rim light */
#scene[data-theme="mewtwo-lair"] :is(.truss, .spk, .deckstage, .booth, .screen, .boothfront) { filter: brightness(.38) saturate(.6); }
#scene[data-theme="mewtwo-lair"] .truss span { filter: none; font-size: 0; letter-spacing: 0; background: #2a0a4a; border-color: #000; box-shadow: 0 0 14px #8a2be2; }
#scene[data-theme="mewtwo-lair"] .truss span::after { content: 'CERULEAN CAVE \2022  MEWTWO'; font-size: 13px; letter-spacing: 3px; color: #e0b8ff; }
#scene[data-theme="mewtwo-lair"] .lip { background: #8a2be2; box-shadow: 0 0 22px #a855f7; }
#scene[data-theme="mewtwo-lair"] .beams i { background: linear-gradient(#b46cff99, transparent); }
#scene[data-theme="mewtwo-lair"] .dj { filter: brightness(.7) drop-shadow(0 0 8px #a855f7); }
#scene[data-theme="mewtwo-lair"] .stagechar { background-repeat: no-repeat !important; background-position: center bottom !important; background-size: contain !important; image-rendering: pixelated; animation: none; filter: brightness(.7) drop-shadow(0 0 6px #a855f7); }
#scene[data-theme="mewtwo-lair"] .stagechar.knux { background-image: url(/spr/pkmn/gengar.gif) !important; left: 116px; top: 50px; width: 95px; height: 86px; scale: -1 1; }
#scene[data-theme="mewtwo-lair"] .stagechar.sonic { display: none; }
#scene[data-theme="mewtwo-lair"] .stagechar.knux.punch { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
/* darker pass */
#scene[data-theme="mewtwo-lair"] .far { filter: brightness(.11) saturate(.4) hue-rotate(20deg); }
#scene[data-theme="mewtwo-lair"] .beams { opacity: .18 !important; filter: hue-rotate(0); }
#scene[data-theme="mewtwo-lair"] .themedecor::before { background: radial-gradient(circle at 85% 16%, rgb(215 140 255) 0, rgb(150 60 240 / .5) 10%, rgb(90 20 180 / .1) 26%, transparent 46%); opacity: calc(.5 + var(--beat, 0) * .5); }
#scene[data-theme="mewtwo-lair"] .themedecor .deco:not(.mt-float):not(.mt-orb) { filter: brightness(.38) drop-shadow(0 0 5px #6a1fc0); }
#scene[data-theme="mewtwo-lair"] :is(.truss, .spk, .deckstage, .booth, .screen, .boothfront) { filter: brightness(.26) saturate(.5); }
#scene[data-theme="mewtwo-lair"] .crowd .mate .bod img { filter: brightness(.8) drop-shadow(0 0 4px #a855f7); }
/* Dr. Wily's Castle (Mega Man) dressing — sprites/backdrop from zones.css */
#scene[data-theme="megaman-wily"] .deckstage { background: repeating-linear-gradient(90deg, #bcbcbc 0 30px, #7c7c7c 30px 32px); border-color: #000; }
#scene[data-theme="megaman-wily"] .truss { border-image: repeating-linear-gradient(45deg, #3cbcfc 0 5px, #0058f8 5px 10px) 10; }
#scene[data-theme="megaman-wily"] .truss span { background: #0058f8; border-color: #000; box-shadow: 3px 3px 0 #000; }
#scene[data-theme="megaman-wily"] .boothfront { background: linear-gradient(#0078f8, #0040a8); border-color: #000; }
#scene[data-theme="megaman-wily"] .boothfront span { color: #fcfcfc; text-shadow: 2px 2px 0 #000; }
#scene[data-theme="megaman-wily"] .beams i { background: linear-gradient(#3cbcfcaa, transparent); }

/* ---------- boss battles ---------- */
.bossfight { position: absolute; left: 50%; top: 318px; z-index: 2300; display: grid; justify-items: center; gap: 6px; translate: -50% 0; pointer-events: none; opacity: 0; transform: translateY(-40px) scale(.6); transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .3s; }
.bossfight.in { opacity: 1; transform: none; }
.bossfight.dead { animation: boss-die 1.4s steps(8) forwards; }
.bossfight.escape { transition: transform 1.2s ease-in, opacity 1.2s; transform: translateY(-420px) scale(.4); opacity: 0; }
@keyframes boss-die { 0% { filter: brightness(3); } 30% { filter: brightness(1) invert(1); } 60% { filter: brightness(4); opacity: .8; } 100% { filter: brightness(6) blur(2px); opacity: 0; transform: scale(1.4); } }
.boss-bar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #0b0b16e6; border: 2px solid #000; border-radius: 10px; box-shadow: 0 0 0 2px #ffd400, 0 6px 18px #0009; color: #fff; font: 800 12px/1 Inter, Arial, sans-serif; letter-spacing: .06em; white-space: nowrap; }
.boss-name { color: #ffd400; text-transform: uppercase; }
.boss-hp { position: relative; width: 240px; height: 14px; background: #3a0a12; border: 2px solid #000; border-radius: 4px; overflow: hidden; }
.boss-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ff5a5a, #c8102e); transition: width .2s; }
.boss-time { color: #c8d0ff; font-weight: 600; font-variant-numeric: tabular-nums; }
.boss-body { position: relative; padding: 0; border: 0; background: none; cursor: crosshair; pointer-events: auto; filter: drop-shadow(0 0 14px #ff2742) drop-shadow(0 8px 10px #000a); animation: boss-hover 2.4s ease-in-out infinite; }
.boss-body.hit { animation: boss-hit .18s steps(2), boss-hover 2.4s ease-in-out infinite; }
.boss-spr { position: absolute; inset: 0; background: no-repeat center bottom / contain; image-rendering: pixelated; }
.boss-spr.sheet { background-position: 0 100%; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; }
@keyframes boss-hover { 50% { transform: translateY(-10px); } }
@keyframes boss-hit { 50% { filter: brightness(3) drop-shadow(0 0 14px #fff); transform: translateX(6px); } }
.boss-tip { padding: 3px 10px; background: #000b; border-radius: 6px; color: #ffd400; font: 800 10px/1.4 Inter, Arial, sans-serif; letter-spacing: .1em; }
.boss-dmg { color: #fff; font: 900 18px/1 "Space Grotesk", Inter, sans-serif; text-shadow: 2px 2px 0 #000; }
.boss-dmg.crit { color: #ffd400; font-size: 24px; }
.boss-dmg.me { text-decoration: underline; }
/* stage exclusives */
.sc-stage { position: absolute; top: 4px; left: 4px; z-index: 2; padding: 2px 6px; background: #a855f7; color: #fff; border: 1px solid #000; border-radius: 4px; font: 800 9px/1.2 Inter, Arial, sans-serif; letter-spacing: .08em; }
.sc-lock { text-align: center; line-height: 1.2; }

/* ---------- Molten Core (Vanilla WoW Classic game art, spr/wow/PROVENANCE.md) ---------- */
#scene[data-theme="wow-mc"] { background: #0d0402; }
#scene[data-theme="wow-mc"] .sky { filter: none; background: #160603; }
#scene[data-theme="wow-mc"] .far { filter: brightness(.82) saturate(1.1); animation: none; clip-path: none; top: 0; height: 310px; background: url(/spr/wow/mc_bg.jpg) center 62% / cover no-repeat; image-rendering: auto; }
#scene[data-theme="wow-mc"] :is(.scenery, .lay.near, .palm, .tailsfly, .eggmobile, .endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="wow-mc"] .themedecor::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; mix-blend-mode: screen;
  background: radial-gradient(ellipse 70% 45% at 50% 100%, rgb(255 110 20 / .6), transparent 70%); opacity: calc(.42 + var(--beat, 0) * .58); will-change: opacity; }
#scene[data-theme="wow-mc"] .themedecor .deco i { image-rendering: auto; }
#scene[data-theme="wow-mc"] .themedecor .wow-loot i { border: 2px solid #a335ee; border-radius: 6px; box-shadow: 0 0 10px #a335ee, inset 0 0 0 1px #000; background-size: cover; }
#scene[data-theme="wow-mc"] .themedecor .wow-loot.legendary i { border-color: #ff8000; box-shadow: 0 0 14px #ff8000, inset 0 0 0 1px #000; }
#scene[data-theme="wow-mc"] .truss { border-image: repeating-linear-gradient(45deg, #8a6a2a 0 5px, #2a1a08 5px 10px) 10; }
#scene[data-theme="wow-mc"] .truss span { font-size: 0; letter-spacing: 0; background: #3a1a08; border-color: #c8a24a; box-shadow: 0 0 10px #ff6a00; }
#scene[data-theme="wow-mc"] .truss span::after { content: 'MOLTEN CORE \2022  40-MAN RAID'; font: italic 900 13px "Liberation Serif", Georgia, serif; letter-spacing: 3px; color: #ffd100; }
#scene[data-theme="wow-mc"] .deckstage { background: linear-gradient(#3a2a1a, #1a0f08); border-color: #000; }
#scene[data-theme="wow-mc"] .boothfront { background: linear-gradient(#4a3418, #22160a); border-color: #c8a24a; }
#scene[data-theme="wow-mc"] .boothfront span { color: #ffd100; text-shadow: 2px 2px 0 #000; }
#scene[data-theme="wow-mc"] .lip { background: #ff6a00; box-shadow: 0 0 22px #ff4500; }
#scene[data-theme="wow-mc"] .beams i { background: linear-gradient(#ffa040aa, transparent); }
#scene[data-theme="wow-mc"] .stagechar { background-repeat: no-repeat !important; background-size: contain !important; image-rendering: auto; animation: none; background-image: url(/spr/wow/gryphon.png) !important; width: 128px; height: 128px; top: 10px; filter: drop-shadow(0 0 6px #ff6a00); }
#scene[data-theme="wow-mc"] .stagechar.knux { left: 96px; scale: 1 1; }
#scene[data-theme="wow-mc"] .stagechar.sonic { left: 690px; scale: -1 1; }
#scene[data-theme="wow-mc"] .stagechar:is(.punch, .spindash) { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
.bossfight .boss-spr.smooth { image-rendering: auto; }
#scene[data-theme="wow-mc"] .themedecor .wow-portrait i { border-radius: 50%; background-size: cover; }
/* boss crit window: a ring that swells with the bass and turns gold when a click would crit */
.boss-ring { position: absolute; left: 50%; top: 50%; width: 112%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  border: 4px solid rgb(255 255 255 / calc(.25 + var(--crit, 0) * .5)); transform: scale(calc(.78 + var(--crit, 0) * .3)); box-shadow: 0 0 calc(var(--crit, 0) * 26px) rgb(255 255 255 / .5); }
.bossfight.critwin .boss-ring { border-color: #ffd400; box-shadow: 0 0 28px #ffd400, inset 0 0 22px #ffd40088; }
.boss-now { position: absolute; left: 50%; top: -6px; translate: -50% 0; padding: 3px 10px; background: #ffd400; color: #101c46; border: 2px solid #000; border-radius: 6px; font: 900 13px/1 Inter, Arial, sans-serif; letter-spacing: .08em; opacity: 0; transform: scale(.7); transition: opacity .05s, transform .08s; pointer-events: none; }
.bossfight.critwin .boss-now { opacity: 1; transform: scale(1.08); }
.bossfight.critwin .boss-body { cursor: pointer; }
.boss-tip span { color: #ffd400; text-decoration: underline; }
.boss-ring { z-index: 2; border-width: 6px; border-color: rgb(255 255 255 / calc(.35 + var(--crit, 0) * .5)); }
.bossfight.critwin .boss-ring { border-width: 8px; }
.boss-spr { z-index: 1; } .boss-now { z-index: 3; }
/* crit ring v2: shrinks in (white) then holds gold */
.boss-ring { transform: scale(var(--ring, 1)); border: 6px solid rgb(255 255 255 / .75); box-shadow: 0 0 10px rgb(255 255 255 / .4); transition: none; }
.bossfight.critwin .boss-ring { border: 9px solid #ffd400; box-shadow: 0 0 30px #ffd400, inset 0 0 24px #ffd40099; }
#results li.yt img { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; }
/* one hit per ring: after you swing, the ring dims until the next one */
.bossfight.spent .boss-ring { opacity: .3; }
.bossfight.spent.critwin .boss-now { opacity: .35; }
.boss-dmg.big { font-size: 28px; color: #ffd400; }
.boss-dmg.miss { color: #c8d0ff; font-size: 16px; }
/* click-fest boss: wanders, leaderboard */
.boss-mover { will-change: transform; }
.boss-body { touch-action: manipulation; user-select: none; }
.boss-top { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.boss-top li { padding: 3px 8px; background: #0b0b16d9; border: 1px solid #000; border-radius: 6px; color: #fff; font: 800 11px/1.2 Inter, Arial, sans-serif; }
.boss-top li b { color: #ffd400; margin-left: 4px; }
.boss-top li.me { box-shadow: 0 0 0 2px #ffd400; }
.boss-mine { color: #ffd400; }
.boss-dmg { font-size: 16px; }
/* boss hall of fame */
.bossboard ol li.me b { color: #ffd400; }
.bb-sub { display: grid; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #ffffff1a; font: 12px/1.35 Inter, Arial, sans-serif; color: #c8d0ff; }
.bb-rec { color: #ffd400; }
.bb-f span { opacity: .55; margin-left: 4px; }
.bb-f.lost { opacity: .7; }
@media (min-width: 1100px) { .layout > .boards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bb-sub { padding: 8px 16px 12px; margin-top: 4px; }

/* ---------- emotes v2 (2026-11-13): every move big, readable and different ---------- */
.toss.burst { left: 50%; top: 35%; background: no-repeat center / contain; border: 0; border-radius: 0; image-rendering: pixelated; animation: burstfly 1.1s cubic-bezier(.2,.7,.4,1) forwards; }
.toss.ringspr { background-size: 400% 100%; animation: burstfly 1.1s cubic-bezier(.2,.7,.4,1) forwards, f4b .3s steps(4) infinite; }
.toss.floatup { animation: floatup 1.2s ease-out forwards; }
.toss.dust { top: 85%; animation: dustfly .8s ease-out forwards; }
@keyframes burstfly { 0% { transform: translate(-50%, 0) scale(.6); opacity: 1; } 100% { transform: translate(calc(-50% + var(--tx)), var(--ty)) scale(1); opacity: 0; } }
@keyframes floatup { 0% { transform: translate(-50%, 0) scale(.5); opacity: 1; } 100% { transform: translate(calc(-50% + var(--tx) * .5), -120px) scale(1.3); opacity: 0; } }
@keyframes dustfly { 0% { transform: translate(-50%, 0); opacity: .9; } 100% { transform: translate(calc(-50% + var(--tx)), -10px) scale(1.6); opacity: 0; } }
@keyframes f4b { to { background-position-x: 133.33%; } }
.pop.horn.gold { color: #ffd400; font-size: 24px; }
.pop.horn.dim { color: #c8d0ff; font-size: 16px; }
/* bigger, distinct body motions (override the old 2px wiggles) */
.mate .bod.e-wave { animation: em-wave .3s ease-in-out 6 !important; transform-origin: 50% 100%; }
@keyframes em-wave { 50% { transform: rotate(-14deg) translateX(-4px); } }
.mate .bod.e-dance { animation: em-dance .5s ease-in-out 4 !important; transform-origin: 50% 100%; }
@keyframes em-dance { 25% { transform: translate(-10px, -8px) rotate(-10deg); } 50% { transform: none; } 75% { transform: translate(10px, -8px) rotate(10deg); } }
.mate .bod.e-cheer { animation: em-cheer .45s cubic-bezier(.3,1.6,.5,1) 3 !important; }
@keyframes em-cheer { 50% { transform: translateY(-34px) scale(1.08); } }
.mate .bod.e-laugh { animation: em-laugh .16s ease-in-out 12 !important; transform-origin: 50% 100%; }
@keyframes em-laugh { 50% { transform: rotate(-6deg) scaleY(.9); } }
.mate .bod.e-love { animation: em-love .6s ease-in-out 3 !important; }
@keyframes em-love { 50% { transform: scale(1.15); filter: drop-shadow(0 0 8px #ff6fb5); } }
.mate .bod.e-headbang { animation: em-headbang .22s ease-in-out 9 !important; transform-origin: 50% 90%; }
@keyframes em-headbang { 50% { transform: rotate(18deg) translateY(4px); } }
.mate .bod.e-moonwalk { animation: em-moonwalk 2s linear !important; }
@keyframes em-moonwalk { 0% { transform: none; } 45% { transform: translateX(-60px) scaleX(-1); } 50% { transform: translateX(-60px); } 95% { transform: translateX(0) scaleX(1); } }
.mate .bod.e-foottap { animation: em-tap .3s steps(2) 7 !important; transform-origin: 50% 100%; }
@keyframes em-tap { 50% { transform: rotate(4deg) translateY(-3px); } }
.mate .bod.e-djscratch { animation: em-scratch .18s ease-in-out 10 !important; }
@keyframes em-scratch { 50% { transform: translateX(10px) skewX(-8deg); } }
.mate .bod.e-jackpot { animation: em-jackpot .5s cubic-bezier(.3,1.6,.5,1) 3 !important; }
@keyframes em-jackpot { 50% { transform: translateY(-26px); filter: drop-shadow(0 0 12px #ffd400) brightness(1.3); } }
.mate .bod.e-victory { animation: em-victory 1.2s cubic-bezier(.3,1.4,.5,1) !important; }
@keyframes em-victory { 30% { transform: translateY(-50px) rotate(-360deg); } 60% { transform: translateY(0) rotate(-360deg) scale(1.1); } 100% { transform: rotate(-360deg); } }
.mate .bod.e-shine { animation: em-shine 1.6s ease-in-out !important; }
@keyframes em-shine { 50% { filter: brightness(1.8) drop-shadow(0 0 14px #7df9ff); transform: scale(1.06); } }
.mate .bod.e-tornado { animation: em-tornado 1.4s linear !important; }
@keyframes em-tornado { 0% { transform: translate(0, 0) rotateY(0); } 25% { transform: translate(40px, -10px) rotateY(360deg); } 50% { transform: translate(0, -20px) rotateY(720deg); } 75% { transform: translate(-40px, -10px) rotateY(1080deg); } 100% { transform: translate(0, 0) rotateY(1440deg); } }
.mate .bod.e-peelout { animation: em-peel .12s linear 14 !important; }
@keyframes em-peel { 50% { transform: translateX(3px) skewX(-12deg); filter: blur(1px); } }
.mate .bod.e-flex { animation: em-flex 1.6s ease-in-out !important; transform-origin: 50% 100%; }
@keyframes em-flex { 30%, 70% { transform: scale(1.35); filter: drop-shadow(0 0 6px #ff9a1f); } }
.mate .bod.e-airhorn { animation: em-horn .1s linear 8 !important; }
@keyframes em-horn { 50% { transform: translateX(-3px); } }
/* ---------- station stats ---------- */
.layout > .boards > .stationstats { grid-column: 1 / -1; }
.ss-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 16px 4px; }
.ss-totals div { display: grid; padding: 10px 12px; background: #ffffff08; border: 1px solid #ffffff14; border-radius: 10px; }
.ss-totals b { color: #ffd400; font: 800 22px/1.1 "Space Grotesk", Inter, sans-serif; }
.ss-totals span { color: #9aa6d8; font: 12px Inter, sans-serif; }
.ss-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 10px 16px 16px; }
.ss-col h4 { margin: 6px 0 8px; color: #c8d0ff; font: 800 11px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ss-col ol { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: ss; }
.ss-col ol li { display: flex; align-items: center; gap: 8px; min-width: 0; counter-increment: ss; font: 13px/1.25 Inter, sans-serif; }
.ss-col ol li::before { content: counter(ss); width: 16px; color: #ffd400; font-weight: 800; text-align: right; flex: none; }
.ss-col ol li.none::before { content: none; }
.ss-col ol li img { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; flex: none; }
.ss-t { display: grid; min-width: 0; flex: 1; }
.ss-t b, .ss-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-t small { color: #9aa6d8; }
.ss-n { color: #ffd400; font: 700 12px "JetBrains Mono", monospace; flex: none; }
.ss-bar { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 8px; margin-bottom: 6px; font: 12px Inter, sans-serif; color: #dfe6ff; }
.ss-bar i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #7a2cff, #20d0ff); }
.ss-bar b { color: #9aa6d8; text-align: right; font-weight: 600; }
@media (max-width: 1099px) { .ss-grid, .ss-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ss-grid { grid-template-columns: minmax(0, 1fr); } }
/* speech bubbles always sit above auras/effects (the aura pseudo-elements stay inside the body's own layer) */
.mate .bod { isolation: isolate; }
.mate > .bub { z-index: 30; }

/* ---------- item tiers (2026-11-14): common → uncommon → rare → epic → legendary → mythic ---------- */
.sc { --tier: #8f9bb8; }
.sc.r-common { --tier: #8f9bb8; } .sc.r-uncommon { --tier: #3ccb5a; } .sc.r-rare { --tier: #2f8bff; } .sc.r-epic { --tier: #a855f7; } .sc.r-legendary { --tier: #ff9a1f; } .sc.r-mythic { --tier: #ff2742; }
.sc { border-color: var(--tier); }
.sc.r-uncommon { box-shadow: 3px 3px 0 #000, 0 0 8px #3ccb5a44; }
.sc.r-rare { box-shadow: 3px 3px 0 #000, 0 0 10px #2f8bff66; background: linear-gradient(160deg, #0c1f4a, #0b1450 60%); }
.sc.r-epic { box-shadow: 3px 3px 0 #000, 0 0 14px #a855f788; background: linear-gradient(160deg, #2a0f4a, #0b1450 65%); }
.sc.r-legendary { box-shadow: 3px 3px 0 #000, 0 0 18px #ff9a1faa; background: linear-gradient(160deg, #3a1c00, #0b1450 65%); }
.sc.r-mythic { border-width: 3px; background: linear-gradient(160deg, #3a0010, #12002a 65%); animation: mythic-glow 2s ease-in-out infinite; }
@keyframes mythic-glow { 0%, 100% { box-shadow: 3px 3px 0 #000, 0 0 16px #ff2742cc; } 50% { box-shadow: 3px 3px 0 #000, 0 0 26px #ffd400cc; border-color: #ffd400; } }
.sc-tier { align-self: center; padding: 1px 7px; border-radius: 4px; background: var(--tier); color: #fff; font: 900 9px/1.4 Inter, Arial, sans-serif; letter-spacing: .12em; text-shadow: 0 1px 0 #0006; }
.sc.r-common .sc-tier { color: #101c46; text-shadow: none; }
.sc.r-mythic .sc-tier { background: linear-gradient(90deg, #ff2742, #ffd400, #ff2742); background-size: 200% 100%; animation: mythic-bar 2s linear infinite; }
@keyframes mythic-bar { to { background-position: 200% 0; } }
.sc.r-legendary .sc-name, .sc.r-mythic .sc-name { color: #ffd38a; }
.si-r.r-uncommon { background: #3ccb5a; color: #fff; } .si-r.r-rare { background: #2f8bff; color: #fff; } .si-r.r-epic { background: #a855f7; color: #fff; }
.si-r.r-legendary { background: linear-gradient(90deg, #ffb000, #ff7a00); color: #1a0f00; } .si-r.r-mythic { background: linear-gradient(90deg, #ff2742, #ffd400); color: #1a0008; }
/* auras need room in shop thumbnails */
.sc-tv .sc-av { overflow: visible; }
/* New Junk City (Earthworm Jim): rusty crane truss, junkyard dirt deck */
#scene[data-theme="ewj-junk"] .deckstage { background: repeating-linear-gradient(90deg, #a5541b 0 34px, #7a3a10 34px 36px); border-color: #1a0a00; }
#scene[data-theme="ewj-junk"] .truss { border-image: repeating-linear-gradient(45deg, #ff1b1b 0 5px, #1b1b1b 5px 10px) 10; }
#scene[data-theme="ewj-junk"] .truss span { background: #1b1b1b; border-color: #000; box-shadow: 3px 3px 0 #000; color: #ffd400; }
#scene[data-theme="ewj-junk"] .boothfront { background: linear-gradient(#8a3cc8, #4a1878); border-color: #000; }
#scene[data-theme="ewj-junk"] .boothfront span { color: #fff; text-shadow: 2px 2px 0 #000; }
#scene[data-theme="ewj-junk"] .beams i { background: linear-gradient(#ffb04aaa, transparent); }
/* EWJ: Jim (idle → blaster burst → whip crack) and Grunt Cat (punch combo) sheets are feet-aligned and wide; park the bodies on the speakers */
#scene[data-theme="ewj-junk"] .stagechar.knux.knux { left: 89px; }
#scene[data-theme="ewj-junk"] .stagechar.sonic.sonic { left: 653px; }
/* EWJ single-frame props: give them life */
@keyframes ewj-swing { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes ewj-rattle { 0%, 80%, 100% { rotate: 0deg; translate: 0 0; } 83% { rotate: -3deg; translate: 0 -3px; } 86% { rotate: 3deg; } 89% { rotate: -2deg; translate: 0 -2px; } 92% { rotate: 1deg; translate: 0 0; } }
@keyframes ewj-flap { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes ewj-rumble { 0%, 100% { translate: 0 0; } 25% { translate: 1px -1px; } 50% { translate: -1px 1px; } 75% { translate: 1px 1px; } }
@keyframes ewj-pump { 0%, 100% { translate: 0 0; scale: 1; } 50% { translate: 0 -4px; scale: 1.04; } }
#scene[data-theme="ewj-junk"] .themedecor .deco:not(.poke):has(> i[style*="ewj-junk/fridge"]) { transform-origin: 50% 0; animation: ewj-swing 3.6s ease-in-out infinite; }
#scene[data-theme="ewj-junk"] .themedecor .deco:not(.poke):has(> i[style*="ewj-junk/sign"]) { transform-origin: 50% 100%; animation: sa-sway 4.4s ease-in-out infinite; }
#scene[data-theme="ewj-junk"] .themedecor .deco:not(.poke):has(> i[style*="ewj-junk/doghouse"]) { transform-origin: 50% 100%; animation: ewj-rattle 3.8s ease-in-out infinite; }
#scene[data-theme="ewj-junk"] .themedecor .deco:not(.poke):has(> i[style*="ewj-junk/logo"]) { transform-origin: 50% 100%; animation: ewj-pump 2.4s ease-in-out infinite; }
#scene[data-theme="ewj-junk"] .themedecor .deco:has(> i[style*="ewj-junk/crow"]) > i { animation: ewj-flap .5s ease-in-out infinite; }
#scene[data-theme="ewj-junk"] .themedecor .deco:has(> i[style*="ewj-junk/rocket"]) > i { animation: ewj-rumble .12s steps(2) infinite; }
/* Super Emeralds (ranks 8-14): same gem art, glowing + twinkling. 7 Super = Hyper: critter flashes through the emerald colours */
svg.sup { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px var(--gc)); animation: sup-twinkle 1.8s ease-in-out infinite; }
.mini svg.sup:nth-child(2n), .gems svg.sup:nth-child(2n) { animation-delay: -.9s; }
@keyframes sup-twinkle { 0%, 100% { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px var(--gc)); } 50% { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px var(--gc)) brightness(1.25); } }
.nm .gm.sup b { color: #fff6a8; text-shadow: 0 0 6px #ffd400; }
.mate.hyper .bod { animation: hyper-flash .7s steps(7) infinite; }
@keyframes hyper-flash { 0% { filter: drop-shadow(0 0 6px #25d04a); } 14% { filter: drop-shadow(0 0 6px #ff2742); } 28% { filter: drop-shadow(0 0 6px #2f6bff); } 43% { filter: drop-shadow(0 0 6px #ffd400); }
  57% { filter: drop-shadow(0 0 6px #00d9ff); } 71% { filter: drop-shadow(0 0 6px #a53bff); } 86% { filter: drop-shadow(0 0 7px #fff); } }
.mate.hyper.walk .bod { animation: walkbob .28s ease-in-out infinite, hyper-flash .7s steps(7) infinite; }
/* ---------- SUPER LEGENDARY tier (2026-11-15): emerald-gated items. Border/bar cycle the 7 emerald colours ---------- */
.sc.r-superleg { --tier: #25d04a; border-width: 3px; background: linear-gradient(160deg, #04261a, #0d0730 55%, #2a0636); animation: superleg-glow 2.8s linear infinite; }
@keyframes superleg-glow { 0% { border-color: #25d04a; box-shadow: 3px 3px 0 #000, 0 0 22px #25d04acc; } 14% { border-color: #ff2742; box-shadow: 3px 3px 0 #000, 0 0 22px #ff2742cc; }
  28% { border-color: #2f6bff; box-shadow: 3px 3px 0 #000, 0 0 22px #2f6bffcc; } 43% { border-color: #ffd400; box-shadow: 3px 3px 0 #000, 0 0 22px #ffd400cc; }
  57% { border-color: #00d9ff; box-shadow: 3px 3px 0 #000, 0 0 22px #00d9ffcc; } 71% { border-color: #a53bff; box-shadow: 3px 3px 0 #000, 0 0 22px #a53bffcc; }
  86% { border-color: #ffffff; box-shadow: 3px 3px 0 #000, 0 0 26px #ffffffcc; } 100% { border-color: #25d04a; box-shadow: 3px 3px 0 #000, 0 0 22px #25d04acc; } }
.sc.r-superleg .sc-tier, .si-r.r-superleg { background: linear-gradient(90deg, #25d04a, #ff2742, #2f6bff, #ffd400, #00d9ff, #a53bff, #fff, #25d04a); background-size: 400% 100%; animation: mythic-bar 3s linear infinite; color: #0a0a14; text-shadow: 0 0 2px #fff; }
.sc.r-superleg .sc-name { color: #eafff0; text-shadow: 0 0 8px #7dffa8; }
.sc-lock svg.sup, .si-rank svg.sup { width: 12px; height: 11px; vertical-align: -1px; }

/* Super Emerald name: cycles the 7 emerald colours, glowing */
.fx-name-superem .nm { animation: superem-name 2.1s steps(7) infinite; font-weight: 900; }
@keyframes superem-name { 0% { color: #25d04a; text-shadow: 0 0 6px #25d04a, 1px 1px 0 #000; } 14% { color: #ff2742; text-shadow: 0 0 6px #ff2742, 1px 1px 0 #000; } 28% { color: #5b8bff; text-shadow: 0 0 6px #2f6bff, 1px 1px 0 #000; }
  43% { color: #ffd400; text-shadow: 0 0 6px #ffd400, 1px 1px 0 #000; } 57% { color: #00d9ff; text-shadow: 0 0 6px #00d9ff, 1px 1px 0 #000; } 71% { color: #c07bff; text-shadow: 0 0 6px #a53bff, 1px 1px 0 #000; } 86% { color: #fff; text-shadow: 0 0 8px #fff, 1px 1px 0 #000; } }

/* Super Emerald trail: real S3K emerald sprites flicker through all 7 while fading */
.t-superem { width: 18px; height: 18px; background: url(/spr/super/gems7.png) no-repeat 0 0 / 700% 100%; image-rendering: pixelated; filter: drop-shadow(0 0 4px #fff);
  animation: sheet .7s steps(7, jump-none) infinite, tfade .9s ease-out forwards; }

/* HYPER FORM: body flashes white + emerald colours, glow cycles, real Sonic 1 invincibility stars swirl */
.fx-aura-hyper .bod img { position: relative; z-index: 1; animation: hyper-body .42s steps(1) infinite; }
@keyframes hyper-body { 0% { filter: brightness(2.2) saturate(0); } 15% { filter: drop-shadow(0 0 5px #25d04a) brightness(1.2); } 30% { filter: drop-shadow(0 0 5px #ff2742) brightness(1.2); }
  45% { filter: brightness(2.2) saturate(0); } 60% { filter: drop-shadow(0 0 5px #2f6bff) brightness(1.2); } 75% { filter: drop-shadow(0 0 5px #ffd400) brightness(1.2); } 90% { filter: drop-shadow(0 0 5px #a53bff) brightness(1.2); } }
.fx-aura-hyper .bod::before { content: ""; position: absolute; inset: -14%; z-index: 0; border-radius: 50%; filter: blur(8px); animation: hyper-glow 1.4s linear infinite;
  background: radial-gradient(circle, #ffffffcc 0 25%, #25d04a88 45%, #0000 70%); }
@keyframes hyper-glow { 0%, 100% { background: radial-gradient(circle, #ffffffcc 0 25%, #25d04a88 45%, #0000 70%); } 25% { background: radial-gradient(circle, #ffffffcc 0 25%, #ff274288 45%, #0000 70%); }
  50% { background: radial-gradient(circle, #ffffffcc 0 25%, #2f6bff88 45%, #0000 70%); } 75% { background: radial-gradient(circle, #ffffffcc 0 25%, #ffd40088 45%, #0000 70%); } }
.fx-aura-hyper .bod::after { content: ""; position: absolute; left: 50%; top: 60%; width: 125%; height: 125%; translate: -50% -50%; z-index: 2; pointer-events: none;
  background: url(/spr/aura/s1_stars.png) no-repeat 0 50% / 400% 100%; image-rendering: pixelated; animation: sheet .3s steps(4, jump-none) infinite; }
/* Grass Land 1-1 (Super Mario Bros. 3): brick deck, black/white SMB3 HUD look */
/* Nickelodeon / Bikini Bottom, 2026-11-21: orange splat + slime green */
/* Chip 'n Dale Rescue Rangers (NES), 2026-11-21: crate deck, Rescue Rangers red */
#scene[data-theme="cd-rangers"] .deckstage { background: repeating-linear-gradient(90deg, #c84c0c 0 30px, #7c2c00 30px 32px); border-color: #000; }
#scene[data-theme="cd-rangers"] .truss { border-image: repeating-linear-gradient(45deg, #e03c28 0 6px, #fcfcfc 6px 12px) 10; }
#scene[data-theme="cd-rangers"] .truss span { background: #e03c28; border-color: #000; box-shadow: 3px 3px 0 #000; color: #fcfcfc; }
#scene[data-theme="cd-rangers"] .boothfront { background: linear-gradient(#c84c0c, #7c2c00); border-color: #000; }
#scene[data-theme="cd-rangers"] .boothfront span { color: #fcfcfc; text-shadow: 2px 2px 0 #000; }
#scene[data-theme="cd-rangers"] .beams i { background: linear-gradient(#fcfcfcaa, transparent); }
#scene[data-theme="nick-toons"] .deckstage { background: repeating-linear-gradient(90deg, #ff7a00 0 30px, #d85a00 30px 32px); border-color: #3a1a00; }
#scene[data-theme="nick-toons"] .truss { border-image: repeating-linear-gradient(45deg, #ff7a00 0 6px, #7fe04a 6px 12px) 10; }
#scene[data-theme="nick-toons"] .truss span { background: #ff7a00; border-color: #000; box-shadow: 3px 3px 0 #3a1a00; color: #fff; }
#scene[data-theme="nick-toons"] .boothfront { background: linear-gradient(#ff8c1a, #e05a00); border-color: #000; }
#scene[data-theme="nick-toons"] .boothfront span { color: #fff; text-shadow: 2px 2px 0 #3a1a00; }
#scene[data-theme="nick-toons"] .beams i { background: linear-gradient(#b8ff7aaa, transparent); }
#scene[data-theme="hk-world"] .deckstage { background: repeating-linear-gradient(90deg, #ffb8d8 0 30px, #e0207a 30px 32px); border-color: #7a0a3a; }
#scene[data-theme="hk-world"] .truss { border-image: repeating-linear-gradient(45deg, #ff5fa2 0 5px, #fff 5px 10px) 10; }
#scene[data-theme="hk-world"] .truss span { background: #e0207a; border-color: #000; box-shadow: 3px 3px 0 #7a0a3a; color: #fff; }
#scene[data-theme="hk-world"] .boothfront { background: linear-gradient(#ff5fa2, #c8106a); border-color: #000; }
#scene[data-theme="hk-world"] .boothfront span { color: #fff; text-shadow: 2px 2px 0 #7a0a3a; }
#scene[data-theme="hk-world"] .beams i { background: linear-gradient(#ffd0e6aa, transparent); }
#scene[data-theme="smb3-grass"] .deckstage { background: repeating-linear-gradient(90deg, #f8b800 0 2px, #d86000 2px 30px, #000 30px 32px); border-color: #000; }
#scene[data-theme="smb3-grass"] .truss { border-image: repeating-linear-gradient(45deg, #000 0 5px, #fcfcfc 5px 10px) 10; }
#scene[data-theme="smb3-grass"] .truss span { background: #000; border-color: #000; box-shadow: 3px 3px 0 #d82800; color: #fcfcfc; }
#scene[data-theme="smb3-grass"] .boothfront { background: linear-gradient(#d82800, #a01000); border-color: #000; }
#scene[data-theme="smb3-grass"] .boothfront span { color: #fcfcfc; text-shadow: 2px 2px 0 #000; }
#scene[data-theme="smb3-grass"] .beams i { background: linear-gradient(#fcfcfcaa, transparent); }
/* Piranha Plant pops out of its pipe and back in (pipe is drawn over it) */
@keyframes smb3-piranha { 0%, 30% { translate: 0 44px; } 42%, 78% { translate: 0 0; } 90%, 100% { translate: 0 44px; } }
#scene[data-theme="smb3-grass"] .themedecor .deco:not(.poke):has(> i[style*="smb3-grass/piranha"]) { animation: smb3-piranha 4s ease-in-out infinite; }
#scene[data-theme="smb3-grass"] .themedecor .deco:not(.poke):has(> i[style*="smb3-grass/logo"]) { transform-origin: 50% 100%; animation: ewj-pump 2.4s ease-in-out infinite; }
#scene[data-theme="smb3-grass"] .themedecor .deco:not(.poke):has(> i[style*="smb3-grass/statue"]) { animation: sa-breathe 3s ease-in-out infinite; }

/* referral rewards (2026-11-16) */
.fx-name-hype .nm { color: #fff !important; animation: hype-name 1.2s ease-in-out infinite; }
@keyframes hype-name { 0%, 100% { text-shadow: 0 0 4px #ff7a1a, 0 0 8px #ff2b6a, 1px 1px 0 #000; } 50% { text-shadow: 0 0 8px #ffd400, 0 0 16px #ff7a1a, 1px 1px 0 #000; } }
.fx-bubble-promoter .bub { background: repeating-linear-gradient(-45deg, #ffd400 0 10px, #ffe766 10px 20px); border-color: #1a1200; color: #1a1200; font-weight: 800; box-shadow: 3px 3px 0 #1a1200; }
.fx-bubble-promoter .bub::after { border-top-color: #1a1200; }
.t-confetti { width: 6px; height: 9px; background: hsl(calc(var(--i, 0) * 47deg + 10deg) 95% 60%); animation: tfade 1s ease-out forwards; }
.t-confetti:nth-child(3n) { background: #ffd400; } .t-confetti:nth-child(3n+1) { background: #ff2b8a; } .t-confetti:nth-child(3n+2) { background: #2bd9ff; }
.fx-aura-headliner .bod::before { content: ""; position: absolute; left: -30%; right: -30%; top: -140%; bottom: -10%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 246, 200, 0), rgba(255, 246, 200, .35) 70%, rgba(255, 246, 200, .55));
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); animation: headliner 2.4s ease-in-out infinite; }
.fx-aura-headliner .bod::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -6%; height: 18%; z-index: 0; border-radius: 50%; background: radial-gradient(rgba(255, 246, 200, .7), transparent 70%); }
@keyframes headliner { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* ---- winter 2026 stages: s3-icecap, dk-glacier, xmas-nights ---- */
#scene[data-theme="dk-glacier"] :is(.stagechar) { background-repeat: no-repeat !important; background-position: 0 100%; image-rendering: pixelated; animation: sheet var(--dur, 1s) steps(var(--n), jump-none) infinite; }
#scene[data-theme="dk-glacier"] .stagechar.knux { background-image: url(/spr/dk/dk_dance_sheet.png) !important; background-size: 5100% 100% !important; --n: 51; --dur: 3.4s; left: 112px; top: 36px; width: 92px; height: 102px; scale: 1 1; }
#scene[data-theme="dk-glacier"] .stagechar.sonic { background-image: url(/spr/dk/cranky_sheet.png) !important; background-size: 1200% 100% !important; --n: 12; --dur: 2.4s; left: 706px; top: 56px; width: 102px; height: 82px; scale: -1 1; }
#scene[data-theme="dk-glacier"] .stagechar.knux.punch, #scene[data-theme="dk-glacier"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="dk-glacier"] .deckstage { background: repeating-linear-gradient(90deg, #e8f4ff 0 26px, #a9c8e8 26px 30px); border-color: #4a6a98; }
#scene[data-theme="dk-glacier"] .boothfront { background: linear-gradient(#8a5a2a, #5a3812); border-color: #2a1806; }
#scene[data-theme="s3-icecap"] .deckstage { background: repeating-linear-gradient(90deg, #dff4ff 0 20px, #8fc8f0 20px 24px); border-color: #3a6ab8; }
#scene[data-theme="s3-icecap"] .boothfront { background: linear-gradient(#6a8ae8, #3a52b8); border-color: #1a2a6a; }
#scene[data-theme="xmas-nights"] .deckstage { background: repeating-linear-gradient(90deg, #c8102e 0 14px, #f4f4f4 14px 28px); border-color: #0a5a2a; }
#scene[data-theme="xmas-nights"] .boothfront { background: linear-gradient(#1a7a3a, #0a4a20); border-color: #ffd23f; }
#scene[data-theme="xmas-nights"] .boothfront span { color: #ffd23f; }
#scene[data-theme="xmas-nights"] .beams i { background: linear-gradient(#ffe9a8aa, transparent); }
/* snowfall over the winter stages */
#scene .snowfx { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#scene:is([data-theme="s3-icecap"], [data-theme="dk-glacier"], [data-theme="xmas-nights"]) .snowfx { display: block; }
#scene .snowfx i { position: absolute; inset: -540px 0 0 0; height: 1080px; background-repeat: repeat;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 90px 120px, #fff, transparent), radial-gradient(1.5px 1.5px at 160px 60px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 230px 190px, #fff, transparent), radial-gradient(1.5px 1.5px at 60px 220px, #fffd, transparent), radial-gradient(2px 2px at 200px 260px, #fffd, transparent);
  background-size: 260px 280px; animation: snowfall 14s linear infinite; opacity: .85; }
#scene .snowfx i:nth-child(2) { background-size: 180px 200px; animation-duration: 9s; opacity: .55; filter: blur(.4px); }
@keyframes snowfall { from { transform: translate(0, 0); } to { transform: translate(-40px, 540px); } }


/* ---- DOOM E1M1 stage dressing ---- */
#scene[data-theme="doom-e1"] .deckstage { background: repeating-linear-gradient(90deg, #4a4a4a 0 30px, #3a3a3a 30px 32px), #444; border-color: #222; box-shadow: inset 0 3px 0 #6a6a6a; }
#scene[data-theme="doom-e1"] .boothfront { background: linear-gradient(#5a4632, #2e2418); border-color: #1a120a; }
#scene[data-theme="doom-e1"] .boothfront span { color: #d01c00; text-shadow: 1px 1px 0 #000; }
#scene[data-theme="doom-e1"] .truss { border-image: repeating-linear-gradient(45deg, #000 0 6px, #e8b000 6px 12px) 10; }
#scene[data-theme="doom-e1"] .truss span { background: #2a0a00; border-color: #d01c00; color: #ff3a1a; }
#scene[data-theme="doom-e1"] .beams i { background: linear-gradient(#ff3a1a88, transparent); }
.ni-founder { background-image: url(/sega239/emblem-ico.png?v=2); width: 30px !important; background-size: contain; background-repeat: no-repeat; background-position: center; image-rendering: auto !important; }
/* 2026-11-19: real-sprite characters fill only the lower-middle of their 64px frame (and the .bod is scaled 1.75x), so auras sized to the box came out ~2x too big. Shrink them onto the sprite. Spotlight stays big on purpose. */
.mate.native[class*="fx-aura-"]:not(.fx-aura-headliner) .bod::before,
.mate.native[class*="fx-aura-"]:not(.fx-aura-headliner) .bod::after,
.mate.native.buff-shield .bod::after { scale: .56; transform-origin: 50% 74%; }
/* 2026-11-19: sprite characters are ~2.35x taller than the mate box; hangout.js sets --bub from each sprite's head line */
.mate.native > .bub { bottom: var(--bub, 100%); }
/* 2026-11-19 graphics pass: Mewtwo's Lair read as a black screen; let the Cerulean Cave art and booth show, keep it moody purple */
#scene[data-theme="mewtwo-lair"] .far { filter: brightness(.5) saturate(.85) hue-rotate(20deg) contrast(1.1); }
#scene[data-theme="mewtwo-lair"] :is(.truss, .spk, .deckstage, .booth, .screen, .boothfront) { filter: brightness(.68) saturate(.8); }
#scene[data-theme="mewtwo-lair"] .themedecor .deco:not(.mt-float):not(.mt-orb) { filter: brightness(.8) drop-shadow(0 0 6px #7a2bd0); }
#scene[data-theme="mewtwo-lair"] .deckstage { filter: grayscale(1) brightness(.42) sepia(.5) hue-rotate(225deg) saturate(2); }
/* Home Bay (Ecco the Dolphin), 2026-11-20 */
#scene[data-theme="ecco-homebay"] .deckstage { background: repeating-linear-gradient(90deg, #c8a868 0 30px, #b08f50 30px 32px); border-color: #3a2a10; }
#scene[data-theme="ecco-homebay"] .truss { border-image: repeating-linear-gradient(45deg, #3fd0ff 0 5px, #0a3a8a 5px 10px) 10; }
#scene[data-theme="ecco-homebay"] .truss span { background: #0a2a6a; border-color: #000; box-shadow: 3px 3px 0 #000; color: #9ff0ff; }
#scene[data-theme="ecco-homebay"] .boothfront { background: linear-gradient(#1f6ad8, #0a2a7a); border-color: #000; }
#scene[data-theme="ecco-homebay"] .boothfront span { color: #fff; text-shadow: 2px 2px 0 #000; }
#scene[data-theme="ecco-homebay"] .beams i { background: linear-gradient(#7fe8ffaa, transparent); }

/* ===== admin stage picker (stagepick.js) ===== */
.stagepick { display: grid; gap: 8px; }
.sp-top { display: grid; gap: 8px; }
.adminbox .sp-q { width: 100%; max-width: none; min-height: 36px; padding: 6px 10px; background: #0c1735; color: #fff; border: 1px solid #2a3a9a; border-radius: 8px; font: 13px Inter, sans-serif; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adminbox button.sp-chip { padding: 5px 11px; border-radius: 999px; background: #0c1735; color: #c8d0ff; border: 1px solid #2a3a9a; font: 600 12px Inter, sans-serif; }
.adminbox button.sp-chip:hover { background: #16245a; }
.adminbox button.sp-chip[aria-pressed="true"] { background: #ffd400; color: #101c46; border-color: #ffd400; }
.sp-list { max-height: 440px; overflow-y: auto; padding-right: 4px; display: grid; gap: 6px; }
.sp-gh { margin: 6px 0 0; color: #9aa6d8; font: 700 11px/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.sp-gh span { color: #5d6aa8; margin-left: 4px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.adminbox button.sp-tile { position: relative; display: grid; gap: 2px; padding: 0 0 8px; text-align: left; background: #0c1735; color: #fff; border: 2px solid #1d2a78; border-radius: 10px; overflow: hidden; font: 12px Inter, sans-serif; }
.adminbox button.sp-tile:hover { background: #12204c; border-color: #3b4fc0; }
.adminbox button.sp-tile.sel { border-color: #ffd400; box-shadow: 0 0 0 1px #ffd400; }
.sp-tile img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; display: block; background: #060b22; image-rendering: auto; }
.adminbox .sp-tile b { display: block; margin: 4px 8px 0; color: #fff; font: 700 12.5px/1.2 Inter, sans-serif; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-tile small { margin: 0 8px; color: #8d98c8; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-tile em { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 5px; background: #e5243b; color: #fff; font: 800 10px/1.2 Inter, sans-serif; font-style: normal; letter-spacing: .08em; }
.sp-actions { justify-content: flex-end; }
.sp-picked { margin-right: auto; color: #9aa6d8; font-size: 13px; }
.adminbox .sp-picked b { display: inline; margin: 0; color: #ffd400; letter-spacing: 0; }

/* ---------- Stage FX v2 (hangout.js fxLayer): stage palette --pa/--pb, white cores, fade in/out over --ms ---------- */
.fx2 { position: absolute; inset: 0; pointer-events: none; animation: fx2life var(--ms) linear forwards; }
@keyframes fx2life { 0% { opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
/* laser show */
.fx-lz { mix-blend-mode: screen; }
.lz-haze { position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 20%, color-mix(in srgb, var(--pa) 22%, transparent), transparent 70%), radial-gradient(40% 40% at 50% 70%, color-mix(in srgb, var(--pb) 14%, transparent), transparent 70%); animation: lzhaze 3.2s ease-in-out infinite alternate; }
@keyframes lzhaze { to { opacity: .55; transform: scale(1.06); } }
.lz-beam { position: absolute; width: 900px; height: 3px; margin-top: -1.5px; transform-origin: 0 50%; border-radius: 2px;
  background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--pa) calc((1 - var(--f)) * 100%), var(--pb)) 12%, transparent 92%);
  box-shadow: 0 0 6px color-mix(in srgb, var(--pa) calc((1 - var(--f)) * 100%), var(--pb)), 0 0 18px color-mix(in srgb, var(--pa) calc((1 - var(--f)) * 100%), var(--pb));
  animation: lzsweep 2.4s ease-in-out infinite alternate, lzblink .5s steps(1) infinite; }
@keyframes lzsweep { from { transform: rotate(calc(var(--a) - var(--sw))); } to { transform: rotate(calc(var(--a) + var(--sw))); } }
@keyframes lzblink { 0%, 80% { opacity: 1; } 90% { opacity: .35; } }
.lz-src { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff, 0 0 24px var(--pa), 0 0 44px var(--pb); }
.lz-sheet { position: absolute; left: 0; right: 0; top: 300px; height: 2px; background: linear-gradient(90deg, transparent, var(--pa) 20%, #fff 50%, var(--pb) 80%, transparent);
  box-shadow: 0 0 14px var(--pa), 0 0 40px var(--pb); opacity: .7; animation: lzsheet 3.4s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes lzsheet { 0% { transform: translateY(0) scaleX(.55); opacity: 0; } 15% { opacity: .75; } 85% { opacity: .75; } 100% { transform: translateY(300px) scaleX(1.15); opacity: 0; } }
/* blinders */
.bl-bank { position: absolute; left: 14px; right: 14px; top: 8px; display: flex; justify-content: space-between; }
.bl-bank i:nth-child(4) { margin-right: auto; } .bl-bank i:nth-child(5) { margin-left: auto; } .bl-bank { gap: 10px; }
.bl-bank i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, #ffe6b0 45%, #3a2a10 70%); box-shadow: 0 0 0 3px #111; opacity: .25;
  animation: blchase 1.15s steps(1) infinite; animation-delay: calc(var(--i) * -.14s); }
@keyframes blchase { 0%, 30% { opacity: 1; box-shadow: 0 0 0 3px #111, 0 0 30px 8px #fff3d1, 0 0 90px 20px color-mix(in srgb, var(--pa) 60%, #fff); } 31%, 100% { opacity: .25; } }
.bl-wash { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 0%, #fff6e0, transparent 70%); opacity: 0; animation: blwash 1.15s ease-out infinite; }
@keyframes blwash { 0% { opacity: .38; } 25% { opacity: 0; } }
/* rave wash + pillars */
.rv-wash { position: absolute; inset: -40%; mix-blend-mode: screen; opacity: .32;
  background: conic-gradient(from 0deg at 50% 50%, var(--pa), transparent 18%, var(--pb) 34%, transparent 52%, var(--pa) 70%, transparent 86%, var(--pb));
  animation: rvspin 9s linear infinite; filter: blur(30px); }
@keyframes rvspin { to { transform: rotate(360deg); } }
.rv-pillar { position: absolute; bottom: 0; width: 46px; height: 520px; margin-left: -23px; transform-origin: 50% 100%; mix-blend-mode: screen;
  background: linear-gradient(0deg, color-mix(in srgb, var(--pa) calc((1 - var(--f)) * 100%), var(--pb)), transparent 85%); filter: blur(4px); opacity: 0;
  animation: rvpil .82s ease-out infinite; animation-delay: var(--d); }
@keyframes rvpil { 0% { opacity: .75; transform: scaleY(1); } 60% { opacity: 0; transform: scaleY(.35); } 100% { opacity: 0; } }
/* disco ball */
.db-beam { position: absolute; left: 251px; top: -10px; width: 6px; height: 34px; background: linear-gradient(#999, #666); }
.db-ball { position: absolute; left: 220px; top: 22px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; animation: dbdrop2 .9s cubic-bezier(.3,1.4,.5,1);
  background: radial-gradient(circle at 34% 30%, #fff 0 8%, transparent 26%), radial-gradient(circle at 50% 50%, transparent 55%, #0008 100%), #8f98b5;
  box-shadow: 0 0 30px color-mix(in srgb, var(--pa) 70%, #fff), 0 0 70px var(--pb); }
.db-ball i { position: absolute; inset: 0 -100% 0 0; background: repeating-linear-gradient(90deg, #fff4 0 6px, #0004 6px 7px, #cfd8ff66 7px 13px, #0004 13px 14px), repeating-linear-gradient(0deg, transparent 0 6px, #0005 6px 7px); animation: dbspin 2.4s linear infinite; }
@keyframes dbspin { to { transform: translateX(-50%); } }
@keyframes dbdrop2 { from { transform: translateY(-110px); } }
.db-field { position: absolute; left: 254px; top: 56px; width: 0; height: 0; animation: dbrot 14s linear infinite; mix-blend-mode: screen; }
.db-field.b { animation-duration: 22s; animation-direction: reverse; }
@keyframes dbrot { to { transform: rotate(360deg); } }
.db-field b { position: absolute; width: var(--s); height: calc(var(--s) * .7); border-radius: 50%; transform: rotate(var(--a)) translateX(var(--r));
  background: color-mix(in srgb, #fff calc(var(--w) * 70%), var(--pa)); box-shadow: 0 0 8px color-mix(in srgb, var(--pb) 70%, #fff); opacity: .85; animation: dbtw 1.1s ease-in-out infinite alternate; }
@keyframes dbtw { to { opacity: .3; } }
/* confetti */
.fx-conf2 i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 1px; animation: cf2 var(--t) cubic-bezier(.3,.2,.6,1) forwards; animation-delay: var(--d); }
.fx-conf2 .c0 { background: var(--pa); } .fx-conf2 .c1 { background: var(--pb); } .fx-conf2 .c2 { background: #fff; } .fx-conf2 .c3 { background: linear-gradient(#ffe48a, #c99a00); width: 5px; height: 18px; }
@keyframes cf2 { to { transform: translate(var(--dx), 640px) rotate3d(1, .4, .2, var(--r)); opacity: .2; } }
/* bass quake rings */
.qk-ring { position: absolute; left: 480px; top: 470px; width: 40px; height: 14px; margin: -7px 0 0 -20px; border-radius: 50%; border: 3px solid var(--pa); box-shadow: 0 0 16px var(--pb); opacity: 0; animation: qkring 1.35s ease-out infinite; }
@keyframes qkring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(18); } }
/* UV blackout */
.uv-tint { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 60%, #3a0a6a55, #0a001acc); mix-blend-mode: multiply; }
.uv-dust { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--pa) calc((1 - var(--f)) * 100%), var(--pb));
  box-shadow: 0 0 8px currentColor, 0 0 12px var(--pa); animation: uvdrift var(--d) ease-in-out infinite alternate; }
@keyframes uvdrift { 0% { transform: translate(0, 0); opacity: .2; } 50% { opacity: 1; } 100% { transform: translate(var(--dx), -30px); opacity: .3; } }
.scene.blackout .avatar .bod img, .scene.blackout .av .bod img { filter: drop-shadow(0 0 3px #b98cff) drop-shadow(0 0 8px #6a3cff); }

/* ---------- Stage FX v2 part 2 (stagefx2.js): beat-synced ---------- */
/* follow spots */
.sp-dim { position: absolute; inset: 0; background: #000a; mix-blend-mode: multiply; }
.sp-spot { position: absolute; left: -90px; top: -150px; width: 180px; height: 180px; transition: transform 1.1s cubic-bezier(.5,0,.3,1); mix-blend-mode: screen; }
.sp-spot::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 60px; border-radius: 50%;
  background: radial-gradient(closest-side, #fffbe8ee, color-mix(in srgb, var(--pa) 40%, #fff0) 70%, transparent); }
.sp-spot::after { content: ""; position: absolute; left: 50%; bottom: 30px; width: 160px; height: 900px; margin-left: -80px; transform-origin: 50% 100%;
  background: linear-gradient(0deg, #fff8dc55, transparent 90%); clip-path: polygon(30% 100%, 70% 100%, 56% 0, 44% 0); }
.sp-spot.b::before { background: radial-gradient(closest-side, #f4f8ffee, color-mix(in srgb, var(--pb) 40%, #fff0) 70%, transparent); }
/* CO2 */
.co2-jet { position: absolute; top: 560px; width: 80px; height: 360px; margin-left: -40px; transform-origin: 50% 100%; translate: 0 -100%;
  background: radial-gradient(50% 30% at 50% 22%, #fffd, #fff0), radial-gradient(40% 60% at 50% 70%, #f4fbffcc, #fff0); filter: blur(6px); opacity: 0; }
.co2-jet.go { animation: co2 1.4s cubic-bezier(.1,.9,.3,1); }
@keyframes co2 { 0% { opacity: .95; transform: scale(.25, .1); } 25% { opacity: .9; transform: scale(.9, 1); } 100% { opacity: 0; transform: scale(1.6, 1.1); } }
.co2-fog { position: absolute; left: -10%; right: -10%; top: 420px; height: 200px; background: radial-gradient(50% 50% at 30% 60%, #fff3, transparent 70%), radial-gradient(40% 50% at 75% 50%, #fff2, transparent 70%);
  filter: blur(14px); animation: co2fog 7s ease-in-out forwards; }
@keyframes co2fog { from { opacity: 0; transform: translateX(-40px); } 40% { opacity: 1; } to { opacity: .2; transform: translateX(40px); } }
/* floor ripple */
.rp-ring { position: absolute; left: 480px; top: 440px; width: 60px; height: 60px; margin: -30px; border-radius: 50%; mix-blend-mode: screen;
  border: 4px solid var(--pa); box-shadow: 0 0 18px var(--pa), inset 0 0 18px var(--pb); animation: rpring 1.8s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes rpring { 0% { opacity: .95; transform: scale(.5, .17); } 100% { opacity: 0; transform: scale(14, 4.6); border-color: var(--pb); } }
/* fireworks */
.fw-burst { position: absolute; width: 0; height: 0; mix-blend-mode: screen; }
.fw-burst b { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #fff, color-mix(in srgb, var(--c) 60%, transparent) 30%, transparent 70%); animation: fwflash .5s ease-out forwards; }
@keyframes fwflash { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
.fw-burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px var(--c), 0 0 12px var(--c); animation: fwp 1.6s cubic-bezier(.15,.7,.4,1) forwards; }
@keyframes fwp { 0% { transform: translate(0, 0) scale(1.2); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 50px)) scale(.5); opacity: 0; } }
.fw-burst i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 26px; height: 2px; transform-origin: 100% 50%; transform: rotate(var(--ang)); background: linear-gradient(90deg, transparent, var(--c)); }
/* warp */
.fx-warp { mix-blend-mode: screen; }
.wp-core { position: absolute; left: 380px; top: 150px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, #fff6, color-mix(in srgb, var(--pa) 40%, transparent) 40%, transparent 70%); }
.wp-line { position: absolute; left: 480px; top: 250px; width: 180px; height: 2px; transform-origin: 0 50%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pa) calc((1 - var(--f)) * 100%), var(--pb)), #fff);
  animation: wpline var(--d) linear infinite; }
@keyframes wpline { 0% { transform: rotate(var(--a)) translateX(40px) scaleX(.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: rotate(var(--a)) translateX(620px) scaleX(1.4); opacity: 0; } }
.fx-warp.kick .wp-core { animation: wpkick .35s ease-out; } .fx-warp.kick .wp-line { height: 3px; }
@keyframes wpkick { from { transform: scale(1.5); filter: brightness(2); } }
/* pyro */
.py-jet { position: absolute; top: 282px; width: 0; height: 0; }
.py-jet b { position: absolute; left: -22px; bottom: 0; width: 44px; height: 210px; transform-origin: 50% 100%; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  background: radial-gradient(40% 25% at 50% 88%, #fff, #fff0), linear-gradient(0deg, #fff6c0, #ffb030 25%, #ff5a1a 55%, #c0200a00 95%); filter: blur(2px); opacity: 0; mix-blend-mode: screen; }
.py-jet.go b { animation: pyjet .7s cubic-bezier(.2,.9,.4,1); }
@keyframes pyjet { 0% { opacity: 1; transform: scale(.4, .05); } 25% { opacity: 1; transform: scale(1, 1); } 60% { opacity: .8; transform: scale(.85, 1.08); } 100% { opacity: 0; transform: scale(.6, 1.15) translateY(-30px); } }
.py-heat { position: absolute; left: 150px; right: 150px; top: 60px; height: 260px; background: radial-gradient(60% 60% at 50% 100%, #ff6a1a55, transparent 70%); opacity: 0; mix-blend-mode: screen; }
.py-heat.go { animation: pyheat .7s ease-out; }
@keyframes pyheat { 0% { opacity: 1; } 100% { opacity: 0; } }

#scene .ravefx.fxfloor { z-index: 9; }

/* VOL label = mute toggle */
.vol-mute { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; padding: 3px 6px; margin: -3px -6px; border-radius: 6px; min-width: 44px; text-align: left; }
.vol-mute:hover { color: #fff; background: #ffffff14; }
.vol-mute:focus-visible { outline: 2px solid var(--yellow); }
.vol-mute.on { color: #ff6a6a; }

/* self rename (PLAYER 1) */
.me-rn { margin: 2px 0 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid #ffffff33; background: #ffffff10; color: #cfd6ff; font: 800 10px/1 Inter, sans-serif; letter-spacing: .12em; cursor: pointer; }
.me-rn:hover { background: #ffffff22; color: #fff; }
.rn-form { margin: 6px 0; display: grid; gap: 6px; }
.rn-form input { padding: 7px 9px; border-radius: 8px; border: 1px solid #ffffff33; background: #0b1030; color: #fff; font: 700 14px Inter, sans-serif; }
.rn-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-btns button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 8px; border: 1px solid #ffffff2a; background: #1b2a66; color: #ffe14a; font: 800 12px Inter, sans-serif; cursor: pointer; }
.rn-btns button .ring { zoom: .5; }
.rn-btns .rn-x { background: none; color: #aab3d6; }
.rn-msg { margin: 0; font: 500 11px/1.35 Inter, sans-serif; color: #aab3d6; }
.rn-form { max-width: 100%; min-width: 0; } .rn-form input { width: 100%; box-sizing: border-box; min-width: 0; } .rn-msg { overflow-wrap: anywhere; }

.shop-rn { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.shop-rn .me-rn { margin: 0; padding: 6px 12px; }
.rn-cost { display: inline-flex; align-items: center; gap: 3px; font: 700 11px Inter, sans-serif; color: #aab3d6; }
.rn-cost .ring { zoom: .45; }
#shop .rn-form { margin-top: 6px; }
/* fire emote (2026-11-20, smaller per Spindok): a little S3 Flame Shield flicker above the head + "THIS IS FIRE" pop */
.firefx { position: absolute; left: 50%; bottom: 100%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.firefx b { position: absolute; left: -17px; bottom: 6px; width: 34px; height: 34px; background: url(/spr/aura/s3_fire_a.png) 0 0 / 306px 34px no-repeat; image-rendering: pixelated; animation: firefx-run .45s steps(9) 4, firefx-up 2s ease-out forwards; }
.firefx span { position: absolute; left: 0; bottom: 42px; transform: translateX(-50%); white-space: nowrap; font: 900 11px/1 'Space Grotesk', Inter, system-ui, sans-serif; letter-spacing: .08em; color: #ffd23f; text-shadow: 0 0 6px #ff5a00, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; animation: firefx-txt 2s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes firefx-run { to { background-position: -306px 0; } }
@keyframes firefx-up { 0% { transform: scale(.4); opacity: 0; } 15% { transform: scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
@keyframes firefx-txt { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } 18% { transform: translateX(-50%) scale(1.15); opacity: 1; } 30% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { transform: translateX(-50%) translateY(-12px); opacity: 0; } }

/* skip emote (2026-11-20): mini Sonic run cycle (spr/sonic-run.png, 9 x 40x48) dashing past above the head + "SKIP IT" */
.skipfx { position: absolute; left: 50%; bottom: 100%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.skipfx b { position: absolute; left: -70px; bottom: 24px; width: 30px; height: 36px; background: url(/spr/sonic-run.png) 0 0 / 270px 36px no-repeat; filter: drop-shadow(0 0 4px #1e6cff); image-rendering: pixelated; animation: skipfx-run .35s steps(9) infinite, skipfx-dash 1.6s cubic-bezier(.5,0,.6,1) forwards; }
.skipfx span { position: absolute; left: 0; bottom: 6px; transform: translateX(-50%); white-space: nowrap; font: 900 13px/1 'Space Grotesk', Inter, system-ui, sans-serif; letter-spacing: .08em; color: #9fd8ff; text-shadow: 0 0 6px #1e6cff, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; animation: firefx-txt 1.8s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes skipfx-run { to { background-position: -270px 0; } }
@keyframes skipfx-dash { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(140px); opacity: 0; } }

/* multi-phase bosses (2026-11-20): later phases glow red, hit harder visually, flash on power-up */
.bossfight.enraged .boss-spr { filter: drop-shadow(0 0 10px #ff2a2a) drop-shadow(0 0 22px #ff6a00) saturate(1.3); }
.bossfight.enraged[data-tier="3"] .boss-spr, .bossfight.enraged[data-tier="4"] .boss-spr { filter: drop-shadow(0 0 12px #c42bff) drop-shadow(0 0 26px #ff2a6a) saturate(1.5) contrast(1.1); }
.bossfight.enraged .boss-hp i { background: linear-gradient(90deg, #ff2a2a, #ff9a00); }
.bossfight.enraged .boss-name { color: #ff8a8a; }
.boss-body.powerup { animation: boss-powerup .9s ease-out; }
@keyframes boss-powerup { 0% { transform: scale(.6); filter: brightness(3); } 40% { transform: scale(1.25); } 100% { transform: scale(1); filter: none; } }

/* boss phase auras + flavor (2026-11-20): S3 Flame Shield (phase 2), Lightning Shield (3), both (4). spr/aura, 9 x 50px frames */
.boss-body { position: relative; }
.boss-aura { position: absolute; left: 50%; top: 50%; width: 125%; aspect-ratio: 1; transform: translate(-50%, -50%); display: none; pointer-events: none;
  background-repeat: no-repeat; background-size: 900% 100%; image-rendering: pixelated; animation: boss-aura .5s steps(9) infinite; z-index: -1; }
.boss-body .boss-spr { z-index: 1; }
.bossfight[data-tier="2"] .boss-aura.a1, .bossfight[data-tier="4"] .boss-aura.a1 { display: block; background-image: url(/spr/aura/s3_fire_b.png); opacity: .9; }
.bossfight[data-tier="3"] .boss-aura.a2, .bossfight[data-tier="4"] .boss-aura.a2 { display: block; background-image: url(/spr/aura/s3_lightning.png); opacity: .95; animation-duration: .4s; }
.bossfight[data-tier="4"] .boss-aura.a2 { width: 150%; }
@keyframes boss-aura { to { background-position: 100% 0; } }
.boss-flavor { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 4px; white-space: nowrap; font: 900 13px/1 'Space Grotesk', Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #ffd23f; text-shadow: 0 0 8px #ff3a00, 2px 2px 0 #000, -1px -1px 0 #000; animation: boss-flavor 1s ease-in-out infinite alternate; pointer-events: none; }
.boss-flavor:empty { display: none; }
.bossfight[data-tier="3"] .boss-flavor { color: #a6e3ff; text-shadow: 0 0 8px #2a7bff, 2px 2px 0 #000; } .bossfight[data-tier="4"] .boss-flavor { color: #ff7ad9; text-shadow: 0 0 10px #c42bff, 2px 2px 0 #000; }
@keyframes boss-flavor { to { transform: translateX(-50%) scale(1.08); } }
.boss-mover { position: relative; }

/* chat-emotes.css */
.chat-emote { display:inline-block; width:26px; height:26px; vertical-align:middle; image-rendering:pixelated; margin:1px 2px; }
.msgs .txt { overflow-wrap:anywhere; }
.msgs .emote-only .chat-emote { width:42px; height:42px; }
.say #emote-toggle { flex:none; padding:0 9px; min-width:44px; min-height:44px; font-size:13px; letter-spacing:0; background:#b3d9ff; }
.emote-picker { position:fixed; margin:0; box-sizing:border-box; padding:12px; border:3px solid #ffdf62; border-radius:8px; background:#101e53; color:#fff; z-index:1000; overflow:auto; box-shadow:0 8px 30px #000a; font-family:"Liberation Sans",Arial,sans-serif; }
.emote-picker:not([open]) { display:none; }
.emote-picker header { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.emote-picker header button { min-width:44px; min-height:44px; background:#283f85; color:white; border:1px solid #728be0; cursor:pointer; border-radius:4px; }
.emote-picker p { font-size:12px; margin:4px 0 10px; color:#d8e5ff; }
.emote-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.emote-grid button { min-height:72px; padding:4px 2px; border:2px solid #536ec6; border-radius:5px; background:#182c69; color:white; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font:12px "Liberation Sans",Arial,sans-serif; }
.emote-grid button:hover { background:#2c438a; }
.emote-grid .chat-emote { width:32px; height:32px; }
.emote-picker button:focus-visible, #emote-toggle:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.emote-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media (max-width:480px) { .say { gap:4px; } .say button[type=submit] { padding:0 8px; } .say #emote-toggle { font-size:11px; padding:0 5px; } }

.radio-server-invite{margin:0 auto 12px;max-width:1240px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:2px solid #496cf3;border-radius:8px;background:#101e53;color:#f0f4ff;font-family:inherit}
.radio-server-invite>a{display:inline-block;padding:10px 14px;border:2px solid #ffe366;border-radius:6px;background:#ffdb39;color:#131e48;font-weight:800;text-decoration:none;line-height:1.35;text-align:center}
.radio-server-invite a:focus-visible{outline:3px solid white;outline-offset:4px}
.radio-server-invite p{margin:0;font-size:12px;line-height:1.5}
.radio-server-invite p a{color:#ffe366;text-underline-offset:3px}
@media(max-width:640px){.radio-server-invite{margin:0 10px 12px;flex-direction:column;align-items:stretch;padding:10px}.radio-server-invite p{text-align:center}}

/* trivia.css */
/* Chat trivia: Swanky Kong (real DKC3 sprite) + modern glass timer card */
.swanky { position: absolute; left: 748px; top: 250px; width: 156px; height: 207px; z-index: 2350; pointer-events: none; }
.swanky .sw-spr { position: absolute; inset: 0; background: url(/spr/dk/swanky.png) center / 100% 100% no-repeat; image-rendering: pixelated; transform-origin: 50% 100%; filter: drop-shadow(0 8px 6px #0009); }
.swanky .sw-spot { position: absolute; left: 50%; bottom: -14px; width: 340px; height: 640px; translate: -50% 0; transform-origin: 50% 0;
  background: conic-gradient(from 166deg at 50% 0, transparent 0deg, #ffe9a855 6deg, #ffe9a822 22deg, transparent 28deg); opacity: 0; transition: opacity .6s; mix-blend-mode: screen; top: -440px; }
.swanky .sw-spot::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 220px; height: 34px; translate: -50% 50%; border-radius: 50%; background: radial-gradient(#fff3c8aa, transparent 70%); }
.swanky.here .sw-spot, .swanky.enter .sw-spot { opacity: 1; }
.swanky.enter { animation: sw-in 1.6s cubic-bezier(.2,.9,.3,1.15) both; }
.swanky.enter .sw-spr, .swanky.here .sw-spr { animation: sw-strut .55s ease-in-out infinite alternate; }
.swanky.enter .sw-spr { animation: sw-strut .22s ease-in-out 7 alternate, sw-strut .55s ease-in-out 1.6s infinite alternate; }
.swanky.cheer .sw-spr { animation: sw-hop .5s ease-out 3; }
.swanky.shrug .sw-spr { animation: sw-shrug 1s ease-in-out 2; }
.swanky.exit { animation: sw-out 1.3s ease-in forwards; }
.swanky.exit .sw-spot { opacity: 0; }
@keyframes sw-in { 0% { transform: translateX(420px); opacity: 0; } 15% { opacity: 1; } 75% { transform: translateX(-18px); } 100% { transform: none; } }
@keyframes sw-out { 0% { transform: none; } 20% { transform: translateY(-14px) scaleX(-1); } 100% { transform: translateX(460px) scaleX(-1); opacity: 0; } }
@keyframes sw-strut { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-5px); } }
@keyframes sw-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-34px) rotate(-6deg); } }
@keyframes sw-shrug { 0%, 100% { transform: none; } 50% { transform: rotate(-8deg) scaleY(.94); } }
/* sparkle burst on arrival */
.swanky .sw-spark i { position: absolute; left: 50%; top: 40%; width: 10px; height: 10px; background: #ffd84a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; }
.swanky.enter .sw-spark i { animation: sw-spark .9s ease-out 1.3s both; }
.swanky .sw-spark i:nth-child(1) { --x: -90px; --y: -80px; } .swanky .sw-spark i:nth-child(2) { --x: 90px; --y: -90px; background: #fff; }
.swanky .sw-spark i:nth-child(3) { --x: -110px; --y: 10px; background: #7df9ff; } .swanky .sw-spark i:nth-child(4) { --x: 110px; --y: 0; }
.swanky .sw-spark i:nth-child(5) { --x: -40px; --y: -130px; background: #ff7ad9; } .swanky .sw-spark i:nth-child(6) { --x: 50px; --y: -120px; background: #fff; }
@keyframes sw-spark { 0% { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.8) rotate(180deg); } }
/* speech bubble */
.swanky .sw-bub { position: absolute; right: 120px; top: -18px; width: max-content; max-width: 260px; padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: #fff; color: #10121c; font: 800 17px/1.2 var(--m-display, "Space Grotesk", sans-serif); box-shadow: 0 10px 26px #000a; opacity: 0; transform: scale(.6); transform-origin: 100% 100%; transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.swanky .sw-bub.show { opacity: 1; transform: none; }

/* timer card */
.triv-card { position: absolute; left: 50%; top: 22px; width: 480px; z-index: 2400; translate: -50% 0; padding: 14px 16px 12px; border-radius: var(--m-radius, 18px);
  background: linear-gradient(160deg, rgba(22, 24, 40, .92), rgba(8, 9, 18, .94)); border: 1px solid var(--m-line-2, #ffffff24); box-shadow: 0 0 0 1px #ffc83d33, 0 24px 60px -18px #000e, 0 0 50px -20px #ffc83d66;
  color: var(--m-text, #eceef6); font-family: var(--m-font, Inter, sans-serif);
  opacity: 0; transform: translateY(-30px) scale(.92); transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .3s, box-shadow .3s; }
.triv-card.in { opacity: 1; transform: none; }
.triv-card.out { opacity: 0; transform: translateY(-24px) scale(.95); }
.triv-card .tc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.triv-card .tc-tag { padding: 4px 10px; border-radius: 999px; background: var(--m-gold-grad, #ffc83d); color: #1a1200; font: 800 11px/1 var(--m-display, sans-serif); letter-spacing: .14em; }
.triv-card .tc-host { color: var(--m-muted, #8d93ab); font-size: 12px; font-weight: 600; }
.triv-card .tc-main { display: flex; align-items: center; gap: 14px; min-height: 80px; }
.triv-card .tc-q { flex: 1; margin: 0; font: 700 20px/1.25 var(--m-display, sans-serif); letter-spacing: -.01em; }
.triv-card .tc-ring { width: 80px; height: 80px; flex: none; transform: rotate(-90deg); }
.triv-card .tc-ring circle { fill: none; stroke-width: 7; }
.triv-card .tc-ring .bg { stroke: #ffffff14; }
.triv-card .tc-ring .fg { stroke: var(--m-gold, #ffc83d); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; filter: drop-shadow(0 0 6px #ffc83d99); }
.triv-card .tc-n { transform: rotate(90deg); transform-origin: 40px 40px; fill: #fff; font: 800 22px var(--m-display, sans-serif); text-anchor: middle; }
.triv-card.hot { box-shadow: 0 0 0 1px #ff3d5a66, 0 24px 60px -18px #000e, 0 0 50px -14px #ff3d5aaa; }
.triv-card.hot .fg { stroke: var(--m-red, #ff3d5a); filter: drop-shadow(0 0 8px #ff3d5a); }
.triv-card.hot .tc-ring { animation: tc-pulse .5s ease-in-out infinite alternate; }
@keyframes tc-pulse { to { transform: rotate(-90deg) scale(1.08); } }
.triv-card .tc-hint { max-height: 0; overflow: hidden; color: var(--m-gold, #ffc83d); font: 700 15px/1.3 var(--m-mono, monospace); letter-spacing: .12em; transition: max-height .3s, margin .3s; }
.triv-card .tc-hint.show { max-height: 40px; margin-top: 6px; }
.triv-card .tc-form { display: flex; gap: 8px; margin-top: 10px; }
.triv-card .tc-form input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--m-line-2, #ffffff24); background: #ffffff0d; color: #fff; font: 600 14px var(--m-font, sans-serif); outline: none; }
.triv-card .tc-form input:focus { border-color: #ffc83d99; box-shadow: 0 0 0 3px #ffc83d22; }
.triv-card .tc-form button { padding: 0 16px; border: 0; border-radius: 12px; background: var(--m-gold-grad, #ffc83d); color: #1a1200; font: 800 13px var(--m-display, sans-serif); cursor: pointer; }
.triv-card .tc-foot { margin-top: 8px; color: var(--m-muted, #8d93ab); font-size: 12px; }
.triv-card .tc-foot b { color: var(--m-gold, #ffc83d); }
.triv-card .tc-res { margin: 0; display: grid; gap: 4px; }
.triv-card .tc-res b { font: 800 26px/1.1 var(--m-display, sans-serif); }
.triv-card .tc-res span { color: var(--m-muted, #8d93ab); font-size: 15px; font-weight: 600; }
.triv-card.won { box-shadow: 0 0 0 1px #3dff8a66, 0 24px 60px -18px #000e, 0 0 60px -14px #3dff8aaa; }
.triv-card.won .tc-res b { color: #5dffa0; }
.triv-card.lost .tc-res b { color: var(--m-red, #ff3d5a); }
.triv-card.in, .triv-card .tc-form { pointer-events: auto; }


/* bigwheel.css */
/* Big Wheel Showdown (2026-11-17): pops up on any stage. Modern glass card + a TPIR-style value strip. */
.bw-card { position: absolute; left: 50%; top: 22px; width: 470px; z-index: 2400; translate: -50% 0; display: flex; gap: 16px; padding: 14px; border-radius: var(--m-radius, 18px);
  background: linear-gradient(160deg, rgba(22, 24, 40, .93), rgba(8, 9, 18, .95)); border: 1px solid var(--m-line-2, #ffffff24);
  box-shadow: 0 0 0 1px #ffc83d33, 0 24px 60px -18px #000e, 0 0 50px -20px #ffc83d66;
  color: var(--m-text, #eceef6); font-family: var(--m-font, Inter, sans-serif);
  opacity: 0; transform: translateY(-30px) scale(.92); transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .3s, box-shadow .3s; }
.bw-card.in { opacity: 1; transform: none; }
.bw-card.out { opacity: 0; transform: translateY(-24px) scale(.95); }
.bw-card.hot { box-shadow: 0 0 0 1px #ff5a5a66, 0 24px 60px -18px #000e, 0 0 50px -16px #ff5a5a88; }
.bw-card.won { box-shadow: 0 0 0 1px #7dffa866, 0 24px 60px -18px #000e, 0 0 60px -14px #7dffa899; }
.bw-card.dollar { animation: bw-dollar .18s steps(2) 16; box-shadow: 0 0 0 2px #ffd400, 0 24px 60px -18px #000e, 0 0 70px -10px #ffd400; }
@keyframes bw-dollar { 50% { box-shadow: 0 0 0 2px #e31b23, 0 24px 60px -18px #000e, 0 0 70px -10px #e31b23; } }

/* the wheel: vertical strip of the real values, dark fade top/bottom so it reads as a turning drum */
.bw-wheel { position: relative; flex: none; width: 118px; height: 228px; overflow: hidden; border-radius: 12px; background: #0b0b10;
  box-shadow: 0 0 0 3px #222, 0 0 0 5px #ffd400, inset 0 18px 22px -10px #000, inset 0 -18px 22px -10px #000; }
.bw-wheel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(#000 0, rgba(0,0,0,.55) 16%, rgba(0,0,0,0) 36%, rgba(0,0,0,0) 64%, rgba(0,0,0,.55) 84%, #000 100%); }
.bw-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.bw-cell { height: 40px; margin: 2px 8px; display: grid; place-items: center; border-radius: 6px; background: #000; border: 2px solid #ffd400; color: #ffd400;
  font: 900 italic 25px/1 'Arial Black', Arial, sans-serif; text-shadow: 1px 1px 0 #7a5a00; }
.bw-cell:nth-child(even) { border-color: #e8e8f0; color: #fff; text-shadow: 1px 1px 0 #555; }
.bw-cell.dollar { background: #c8102e; border-color: #ffd400; color: #fff; font-size: 21px; }
.bw-arrow { z-index: 2; position: absolute; right: 0; top: 50%; margin-top: -11px; border: 11px solid transparent; border-right: 17px solid #e31b23; filter: drop-shadow(-1px 1px 0 #000); }
.bw-arrow::before { content: ""; position: absolute; left: -132px; top: -22px; width: 132px; height: 44px; border-radius: 8px; box-shadow: inset 0 0 0 2px #ffffff55; pointer-events: none; }
.bw-card.spinning .bw-wheel { box-shadow: 0 0 0 3px #222, 0 0 0 5px #ffd400, 0 0 24px #ffd40088, inset 0 18px 22px -10px #000, inset 0 -18px 22px -10px #000; }

.bw-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bw-top { display: flex; align-items: center; gap: 10px; }
.bw-tag { padding: 4px 10px; border-radius: 999px; background: var(--m-gold-grad, #ffc83d); color: #1a1200; font: 800 11px/1 var(--m-display, sans-serif); letter-spacing: .14em; }
.bw-cod { margin: 4px 0 0; font: 900 italic 30px/1 var(--m-display, "Space Grotesk", sans-serif); color: #ffd400; text-shadow: 2px 2px 0 #c8102e; letter-spacing: .01em; }
.bw-card.won .bw-cod { color: #7dffa8; text-shadow: 2px 2px 0 #0a5a2a; }
.bw-name { margin: 0; font: 800 21px/1.15 var(--m-display, sans-serif); color: #fff; word-break: break-word; }
.bw-msg { margin: 0; min-height: 2.6em; font: 600 14px/1.3 var(--m-font, Inter, sans-serif); color: var(--m-text-2, #b8bccb); }
.bw-card.hot .bw-msg { color: #ff8a8a; }
.bw-spin { align-self: flex-start; padding: 11px 26px; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(#ffe25a, #ffb300); color: #1a1200;
  font: 900 italic 20px/1 var(--m-display, sans-serif); letter-spacing: .04em; box-shadow: 0 4px 0 #a86f00, 0 8px 22px -6px #ffc83d; animation: bw-pulse 1s ease-in-out infinite; }
.bw-spin:active { transform: translateY(3px); box-shadow: 0 1px 0 #a86f00; }
.bw-spin:disabled { opacity: .6; animation: none; cursor: default; }
@keyframes bw-pulse { 50% { transform: scale(1.06); } }
.bw-foot { margin-top: auto; font-size: 12px; color: var(--m-text-3, #8a8fa3); }
.bw-foot b { color: #ffd400; }

/* contestant spotlight on the dance floor */
.mate .bw-pin { position: absolute; left: 50%; top: -58px; font-style: normal; translate: -50% 0; z-index: 40; color: #ffd400; font: 900 22px/1 Arial, sans-serif;
  text-shadow: 0 0 10px #ffd400, 2px 2px 0 #c8102e; animation: bw-bob .6s ease-in-out infinite alternate; pointer-events: none; }
.mate.bw-star { filter: drop-shadow(0 0 10px #ffd400cc); }
@keyframes bw-bob { to { transform: translateY(-8px); } }

/* pokequiz.css */
/* Who's That Pokémon (2026-11-17): Professor Oak (real FRLG trainer sprite) + show-style starburst card */
.oak { position: absolute; left: 760px; top: 250px; width: 160px; height: 160px; z-index: 2350; pointer-events: none; }
.oak .ok-spr { position: absolute; inset: 0; background: url(/spr/pkmn/oak.png) center / 100% 100% no-repeat; image-rendering: pixelated; transform-origin: 50% 100%; filter: drop-shadow(0 8px 6px #0009); }
.oak.enter { animation: ok-in 1.2s cubic-bezier(.2,.9,.3,1.1) both; }
.oak.enter .ok-spr { animation: ok-bob .6s ease-in-out 1.2s infinite alternate; }
.oak.exit { animation: ok-out 1.1s ease-in forwards; }
@keyframes ok-in { 0% { transform: translateX(380px); opacity: 0; } 20% { opacity: 1; } 100% { transform: none; } }
@keyframes ok-out { to { transform: translateX(420px); opacity: 0; } }
@keyframes ok-bob { to { transform: translateY(-4px); } }
.oak .ok-bub { position: absolute; right: 130px; top: -10px; width: max-content; max-width: 240px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #fff; color: #10121c;
  font: 900 18px/1.15 var(--m-display, "Space Grotesk", sans-serif); box-shadow: 0 10px 26px #000a; opacity: 0; transform: scale(.6); transform-origin: 100% 100%; transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.oak .ok-bub.show { opacity: 1; transform: none; }

.pq-card { position: absolute; left: 50%; top: 18px; width: 560px; z-index: 2400; translate: -50% 0; display: flex; gap: 14px; padding: 12px; border-radius: var(--m-radius, 18px);
  background: linear-gradient(160deg, rgba(22, 24, 40, .94), rgba(8, 9, 18, .96)); border: 1px solid var(--m-line-2, #ffffff24); box-shadow: 0 0 0 1px #3b7bff44, 0 24px 60px -18px #000e, 0 0 50px -20px #3b7bff88;
  color: var(--m-text, #eceef6); font-family: var(--m-font, Inter, sans-serif);
  opacity: 0; transform: translateY(-30px) scale(.92); transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .3s; }
.pq-card.in { opacity: 1; transform: none; }
.pq-card.out { opacity: 0; transform: translateY(-24px) scale(.95); }
/* the show's blue starburst behind the silhouette */
.pq-burst { position: relative; flex: none; width: 210px; height: 210px; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: repeating-conic-gradient(from 0deg, #2f6bff 0 10deg, #69a6ff 10deg 20deg); }
.pq-burst::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #fff9 0, #bfe1ff55 22%, transparent 55%); }
.pq-burst::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 4px #ffd400, inset 0 0 30px #0006; }
.pq-mon { position: relative; z-index: 1; width: 192px; height: 192px; image-rendering: pixelated; filter: brightness(0) drop-shadow(0 0 0 #000); transition: filter 1s ease; animation: pq-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.pq-card.reveal .pq-mon { filter: none; animation: pq-flash .7s ease-out; }
@keyframes pq-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes pq-flash { 0% { filter: brightness(3); } 100% { filter: none; } }

.pq-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pq-title { margin: 2px 0 2px; font: 900 italic 28px/.95 var(--m-display, "Space Grotesk", sans-serif); color: #ffd400; text-shadow: 3px 3px 0 #2f6bff, 0 0 18px #2f6bff88; letter-spacing: .01em; }
.pq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pq-opts button { padding: 10px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
  font: 700 14px/1.1 var(--m-display, "Space Grotesk", sans-serif); transition: background .15s, border-color .15s, transform .1s; }
.pq-opts button:hover:not(:disabled) { background: rgba(59,123,255,.25); border-color: #3b7bff; }
.pq-opts button:active:not(:disabled) { transform: scale(.97); }
.pq-card.picked .pq-opts button:not(.mine) { opacity: .45; }
.pq-opts button.mine { background: rgba(255,212,0,.2); border-color: #ffd400; }
.pq-opts button.right { opacity: 1 !important; background: rgba(60,220,120,.25); border-color: #3cdc78; }
.pq-opts button.wrong { opacity: 1 !important; background: rgba(255,80,80,.22); border-color: #ff5a5a; }
.pq-opts button:disabled { cursor: default; }
.pq-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.pq-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #2f6bff, #69a6ff); transition: width .2s linear; }
.pq-card.hot .pq-bar i { background: linear-gradient(90deg, #ff3b3b, #ff8a5a); }
.pq-card.reveal .pq-bar { visibility: hidden; }
.pq-foot { font-size: 12px; color: var(--m-text-3, #8a8fa3); } .pq-foot b { color: #ffd400; }


/* stagefx.css */
/* Per-stage ambient FX (stagefx.js). Layer sits over the backdrop, under the truss/screen (z 3+). */
.stagefx { position: absolute; left: 0; top: 0; width: 960px; height: 310px; z-index: 2; pointer-events: none; overflow: hidden; }
.stagefx i { position: absolute; display: block; }

/* ---------- Gotham City (batman-tas) ---------- */
/* searchlights sweeping the clouds */
.sfx-batman-tas .bt-beam { left: var(--x); bottom: 40px; width: 70px; height: 420px; margin-left: -35px; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255, 240, 190, .34), rgba(255, 240, 190, .1) 55%, transparent);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0); mix-blend-mode: screen; filter: blur(2px);
  animation: bt-sweep var(--d) ease-in-out infinite alternate; }
@keyframes bt-sweep { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
/* lit windows that flick on and off */
.sfx-batman-tas .bt-win { width: 3px; height: 3px; background: #ffd77a; box-shadow: 0 0 4px #ffb84a; opacity: 0; image-rendering: pixelated;
  animation: bt-win var(--d) steps(1) infinite; }
@keyframes bt-win { 0%, 38% { opacity: 0; } 40%, 92% { opacity: .9; } 94% { opacity: .2; } 96%, 100% { opacity: .85; } }
/* Gotham rain, two depths */
.sfx-batman-tas .bt-rain { inset: -40px -40px 0 -40px; opacity: .22;
  background-image: repeating-linear-gradient(105deg, transparent 0 9px, rgba(190, 205, 255, .55) 9px 10px, transparent 10px 23px);
  background-size: 60px 60px; animation: bt-rain .45s linear infinite; }
.sfx-batman-tas .bt-rain.b { opacity: .13; background-size: 34px 34px; animation-duration: .7s; }
@keyframes bt-rain { to { background-position: -16px 60px; } }
/* street fog */
.sfx-batman-tas .bt-fog { left: -200px; right: -200px; bottom: 0; height: 90px; opacity: .5;
  background: radial-gradient(ellipse 160px 34px at 20% 70%, rgba(150, 140, 170, .35), transparent), radial-gradient(ellipse 200px 40px at 60% 60%, rgba(150, 140, 170, .3), transparent),
    radial-gradient(ellipse 140px 30px at 90% 75%, rgba(150, 140, 170, .3), transparent);
  animation: bt-fog 38s linear infinite alternate; }
.sfx-batman-tas .bt-fog.b { opacity: .35; animation-duration: 52s; animation-direction: alternate-reverse; bottom: 14px; }
@keyframes bt-fog { to { transform: translateX(160px); } }
/* lightning */
.sfx-batman-tas .bt-flash { inset: 0; background: linear-gradient(rgba(220, 225, 255, .9), rgba(220, 225, 255, .25) 70%, transparent); opacity: 0; mix-blend-mode: screen; }
.sfx-batman-tas .bt-flash.go { animation: bt-flash 1.1s ease-out; }
@keyframes bt-flash { 0% { opacity: 0; } 4% { opacity: .85; } 9% { opacity: .1; } 14% { opacity: .65; } 40% { opacity: .15; } 100% { opacity: 0; } }
/* Batman flying over the skyline: real SNES leap frames (cape billowing, 4 x 67px; art faces LEFT, so left-to-right is mirrored), swooping arc (2026-11-17 v2) */
.sfx-batman-tas .bt-glide { left: 0; width: 67px; height: 45px; background: url(/spr/zones/batman-tas/fly.png) 0 0 / 268px 45px; image-rendering: pixelated;
  filter: brightness(1.05) drop-shadow(0 0 4px #000); animation: sheet .5s steps(4, jump-none) infinite, bt-fly 6s cubic-bezier(.45,.05,.55,.95) forwards; }
.sfx-batman-tas .bt-glide.rtl { animation: sheet .5s steps(4, jump-none) infinite, bt-fly-r 6s cubic-bezier(.45,.05,.55,.95) forwards; }
@keyframes bt-fly { 0% { transform: translate(-90px, -20px) rotate(14deg) scale(-1.25, 1.25); } 35% { transform: translate(300px, 40px) rotate(4deg) scale(-1.25, 1.25); }
  65% { transform: translate(640px, 30px) rotate(-6deg) scale(-1.25, 1.25); } 100% { transform: translate(1050px, -60px) rotate(-16deg) scale(-1.25, 1.25); } }
@keyframes bt-fly-r { 0% { transform: translate(1050px, -20px) rotate(-14deg) scale(1.25); } 35% { transform: translate(660px, 40px) rotate(-4deg) scale(1.25); }
  65% { transform: translate(320px, 30px) rotate(6deg) scale(1.25); } 100% { transform: translate(-90px, -60px) rotate(16deg) scale(1.25); } }

/* the Penguin (SNES Batman Returns umbrella twirl) does a little waddle on the left stage spot */
#scene[data-theme="batman-tas"] .themedecor .deco.peng-dance:not(.poke) { transform-origin: 50% 100%; animation: peng-waddle 1.5s ease-in-out infinite; }
@keyframes peng-waddle { 0%, 100% { transform: rotate(-4deg) translateX(-3px); } 25% { transform: rotate(0) translateY(-5px); } 50% { transform: rotate(4deg) translateX(3px); } 75% { transform: rotate(0) translateY(-5px); } }

/* ---------- Lockjaw's Locker: Clapper's spray (real DKC2 squash + spit frames, 10 x 61x36; v2 2026-11-18) ---------- */
#scene[data-theme="dk-lockjaw"] .palm.r { cursor: pointer; pointer-events: auto; }
/* v3 2026-11-17: real DKC2 stomp reaction from the T2K rip: squash (4) -> rear up + flipper clap (12) -> flop down (4) = 20 frames, 59x39 cells,
   tail tip at left + bottom aligned. Static = rear-up frame 0 (55x26) at 2x = 110x52, bottom 270, tail edge fixed (mirrored, so right:) */
/* frames play on ::after: dkwater.css pins .palm background-position with !important, which beats any animation */
#scene[data-theme="dk-lockjaw"] .palm.r.clap-go { background-image: none !important; }
#scene[data-theme="dk-lockjaw"] .palm.r.clap-go::after { content: ''; position: absolute; left: 0; bottom: 0; width: 118px; height: 78px;
  background: url(/spr/dkw/clapper_clap.png?v=1) 0 100% / 2000% 100% no-repeat; image-rendering: pixelated;
  animation: sheet 1.8s steps(20, jump-none) 1 forwards; }
#scene[data-theme="dk-lockjaw"] .deco[title="Clapper"].clap-go { animation-play-state: paused !important; overflow: visible; }
#scene[data-theme="dk-lockjaw"] .deco[title="Clapper"].clap-go > i { position: absolute; left: 0; bottom: 0; top: auto; width: 89px !important; height: 59px !important;
  background-image: url(/spr/dkw/clapper_clap.png?v=1) !important; background-size: 2000% 100% !important; animation: sheet 1.8s steps(20, jump-none) 1 forwards !important; }
/* water out of his snout: droplets arc forward and fall, a little mist at the mouth */
.clap-water { position: absolute; width: 0; height: 0; z-index: 2500; pointer-events: none; }
.clap-water .cw-drop { position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 35%, #fff, #a9e2ff 50%, #3f9cf0); box-shadow: 0 0 4px rgba(160, 220, 255, .8);
  animation: cw-arc .9s cubic-bezier(.25,.6,.5,1) forwards; }
@keyframes cw-arc { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 45% { opacity: 1; transform: translate(calc(var(--dx) * .55), calc(var(--h) * -1)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--fall)) scale(.8); } }
.clap-water .cw-mist { position: absolute; left: -14px; top: -12px; width: 28px; height: 24px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(220, 245, 255, .85), rgba(160, 220, 255, 0) 70%); animation: cw-mist .5s ease-out forwards; }
@keyframes cw-mist { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.8); } }
/* Puftup explosion shards + flash (Lockjaw, 2026-11-17) */
.pf-boom { position: absolute; width: 0; height: 0; z-index: 2600; pointer-events: none; }
.pf-boom .pf-flash { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, rgba(255,240,200,.85) 34%, rgba(255,160,220,.35) 55%, transparent 70%); animation: pf-flash .45s ease-out forwards; }
.pf-boom .pf-ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); animation: pf-ring .55s ease-out forwards; }
.pf-boom .pf-spike { position: absolute; left: -5px; top: -11px; width: 10px; height: 22px; background: linear-gradient(#fff, #c9b6ff 45%, #6b4fc8);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: rotate(var(--a)); animation: pf-shard .8s cubic-bezier(.2,.7,.4,1) forwards; }
.pf-boom .pf-bub { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(220,245,255,.85); animation: pf-bub 1.4s ease-out forwards; }
@keyframes pf-flash { 0% { scale: .3; opacity: 1; } 100% { scale: 1.6; opacity: 0; } }
@keyframes pf-ring { 0% { scale: .4; opacity: 1; } 100% { scale: 4.5; opacity: 0; border-width: 1px; } }
@keyframes pf-shard { 0% { translate: 0 0; opacity: 1; } 80% { opacity: 1; } 100% { translate: var(--dx) var(--dy); opacity: 0; } }
@keyframes pf-bub { 0% { translate: 0 0; opacity: .9; scale: .6; } 100% { translate: var(--dx) calc(var(--dy) - 60px); opacity: 0; scale: 1.2; } }

/* ---------- 2026-11-19 polish pass: subtle ambient FX on the strong stages (transform/opacity only) ---------- */
/* snow: a tall tiled layer slides down one tile and loops */
.stagefx .fx-snow { left: -20px; right: -20px; top: -120px; height: 430px;
  background-image: radial-gradient(circle at 20% 30%, #fff 0 1.6px, transparent 2.4px), radial-gradient(circle at 70% 70%, #fff 0 1.2px, transparent 2px), radial-gradient(circle at 45% 85%, #eaf6ff 0 1px, transparent 1.8px);
  background-size: 120px 120px; opacity: .8; filter: drop-shadow(0 0 1px #9cc8ff); animation: fx-snow 9s linear infinite; }
.stagefx .fx-snow.b { background-size: 70px 70px; opacity: .35; animation-duration: 6s; left: -50px; }
@keyframes fx-snow { from { transform: translate(0, 0); } to { transform: translate(18px, 120px); } }
.stagefx .fx-snow.b { animation-name: fx-snow-b; }
@keyframes fx-snow-b { from { transform: translate(0, 0); } to { transform: translate(-10px, 70px); } }
/* embers rising off lava */
.stagefx .fx-ember { bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: hsl(var(--h) 100% 62%); box-shadow: 0 0 6px hsl(var(--h) 100% 55%);
  animation: fx-ember var(--d) linear infinite; opacity: 0; }
@keyframes fx-ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(var(--dx), -300px) scale(.4); opacity: 0; } }
.stagefx .fx-heat { left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to top, rgba(255, 90, 20, .28), transparent); mix-blend-mode: screen; animation: fx-pulse 3.2s ease-in-out infinite; }
@keyframes fx-pulse { 50% { opacity: .45; } }
/* Doom: sector-light flicker over the backdrop */
.stagefx .fx-flicker { inset: 0; background: #000; opacity: 0; animation: fx-flicker 4.6s steps(1) infinite; }
@keyframes fx-flicker { 0%, 100% { opacity: 0; } 8% { opacity: .35; } 10% { opacity: 0; } 47% { opacity: .22; } 49% { opacity: 0; } 51% { opacity: .3; } 53% { opacity: 0; } }
/* water glints on the Neo Green Hill sea */
.stagefx .fx-glint { width: 9px; height: 9px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: fx-glint var(--d) ease-in-out infinite; }
@keyframes fx-glint { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: .9; transform: scale(1); } }
/* Flicky fly-by (real Sonic sprite) */
.stagefx .fx-flicky { width: 32px; height: 20px; background: url(/sega239/flicky.png) 0 0 / 32px 20px no-repeat; image-rendering: pixelated; scale: 2; left: -60px; animation: fx-fly 8.5s linear forwards, fx-bob .5s ease-in-out infinite alternate; }
.stagefx .fx-flicky.rtl { animation-name: fx-fly-r, fx-bob; transform: scaleX(-1); }
@keyframes fx-fly { to { left: 1020px; } }
@keyframes fx-fly-r { from { left: 1020px; } to { left: -60px; } }
@keyframes fx-bob { to { translate: 0 10px; } }
/* sun rays through the canopy + drifting pollen */
.stagefx .fx-ray { top: -40px; width: 90px; height: 380px; margin-left: -45px; transform: rotate(18deg); transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(255, 245, 190, .32), rgba(255, 245, 190, .08) 70%, transparent); filter: blur(4px); mix-blend-mode: screen; animation: fx-ray var(--d) ease-in-out infinite; }
@keyframes fx-ray { 50% { opacity: .35; } }
.stagefx .fx-mote { width: 3px; height: 3px; border-radius: 50%; background: #fff6c0; box-shadow: 0 0 4px #fff2a0; opacity: .7; animation: fx-mote var(--d) ease-in-out infinite alternate; }
@keyframes fx-mote { to { transform: translate(30px, -24px); opacity: .2; } }
/* ---------- polish v2 (2026-11-19) ---------- */
/* Spring Valley: twinkling stars + an occasional shooting star */
.stagefx .fx-twinkle { width: 7px; height: 7px; background: #fff8c8; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: fx-glint var(--d) ease-in-out infinite; }
.stagefx .fx-shoot { width: 120px; height: 2px; background: linear-gradient(90deg, transparent, #fff 80%, #fffbd0); border-radius: 2px; transform: rotate(18deg); opacity: 0; animation: fx-shoot 1.3s ease-out forwards; }
@keyframes fx-shoot { 10% { opacity: 1; } 100% { opacity: 0; translate: 220px 70px; } }
/* Casino Paradise: chasing marquee bulbs along the top + slow neon colour wash */
.stagefx .fx-marquee { position: absolute; left: 0; right: 0; top: 4px; display: flex; justify-content: space-between; padding: 0 6px; }
.stagefx .fx-marquee i { position: static; width: 9px; height: 9px; border-radius: 50%; background: #ffd84a; box-shadow: 0 0 6px #ffb800; opacity: .25; animation: fx-bulb 1.2s steps(1) infinite; }
.stagefx .fx-marquee i:nth-child(3n+1) { animation-delay: -.4s; } .stagefx .fx-marquee i:nth-child(3n+2) { animation-delay: -.8s; }
@keyframes fx-bulb { 0% { opacity: 1; } 33% { opacity: .25; } }
.stagefx .fx-neonwash { inset: 0; mix-blend-mode: screen; opacity: .12; background: linear-gradient(90deg, #ff2fd0, #2fd8ff, #ffe02f, #ff2fd0); background-size: 300% 100%; animation: fx-wash 12s linear infinite; }
@keyframes fx-wash { to { background-position: 300% 0; } }
/* Secret Base: rotating amber beacons + rare red alert */
.stagefx .fx-alarm { top: 60px; width: 260px; height: 260px; margin-left: -130px; border-radius: 50%; mix-blend-mode: screen; opacity: .35;
  background: conic-gradient(from 0deg, rgba(255, 170, 30, .7), transparent 14%, transparent 50%, rgba(255, 170, 30, .7) 50%, transparent 64%); animation: fx-spin 1.2s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.stagefx .fx-redalert { inset: 0; background: #ff1a1a; mix-blend-mode: screen; opacity: 0; }
.stagefx .fx-redalert.go { animation: fx-red 3s steps(2) 1; }
@keyframes fx-red { 0%, 100% { opacity: 0; } 20%, 60% { opacity: .22; } 40%, 80% { opacity: 0; } }
/* Wily's Castle: lightning over the fortress */
.stagefx .fx-bolt { top: 0; width: 40px; height: 170px; opacity: 0; background: #e8f4ff; filter: drop-shadow(0 0 8px #8fd0ff);
  clip-path: polygon(55% 0, 30% 45%, 52% 45%, 20% 100%, 72% 38%, 50% 38%, 78% 0); }
.stagefx .fx-skyflash { inset: 0; background: #cfe8ff; mix-blend-mode: screen; opacity: 0; }
.stagefx :is(.fx-bolt, .fx-skyflash).go { animation: fx-zap .7s steps(1) 1; }
@keyframes fx-zap { 0% { opacity: .9; } 12% { opacity: 0; } 22% { opacity: .7; } 34%, 100% { opacity: 0; } }
.stagefx .fx-skyflash.go { animation-name: fx-zap-sky; }
@keyframes fx-zap-sky { 0% { opacity: .35; } 12% { opacity: 0; } 22% { opacity: .25; } 34%, 100% { opacity: 0; } }
/* Home Bay: bubbles rising + light shafts from the surface */
.stagefx .fx-ray.blue { top: 20px; background: linear-gradient(to bottom, rgba(170, 235, 255, .3), rgba(170, 235, 255, .06) 70%, transparent); }
.stagefx .fx-bubble { bottom: -8px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid rgba(220, 248, 255, .8); background: rgba(255, 255, 255, .15); opacity: 0; animation: fx-bubble var(--d) linear infinite; }
@keyframes fx-bubble { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .85; } 50% { transform: translate(var(--dx), -140px); } 88% { opacity: .7; } 100% { transform: translate(0, -265px); opacity: 0; } }

/* lurk.css */
/* Listen vs party mode (lurk.js) */
.modesw { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); flex: none; }
.modesw button { border: 0; background: none; color: rgba(255,255,255,.65); padding: 7px 12px; border-radius: 999px; cursor: pointer; font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; }
.modesw button[aria-pressed="true"] { background: linear-gradient(#ffe25a, #ffb300); color: #1a1200; }
.modesw button:focus-visible { outline: 2px solid #ffd400; outline-offset: 2px; }

/* listen mode: hide the participate-y stuff */
body.lurk #joinform, body.lurk #joinparty, body.lurk #sayform, body.lurk #shopbtn, body.lurk #jbbtn, body.lurk #slotsbtn, body.lurk .floorhint,
body.lurk #fire, body.lurk #skipv, body.lurk #emotes, body.lurk .box.vote, body.lurk .box.req { display: none !important; }
.lurkcard { display: none; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
body.lurk .lurkcard { display: block; }
body.lurk #me:not([hidden]) ~ .lurkcard, body.lurk .p1:has(#me:not([hidden])) .lurkcard { display: none; }
.lurkcard b { display: block; font: 800 15px/1.2 'Space Grotesk', Inter, sans-serif; color: #fff; }
.lurkcard p { margin: 6px 0 12px; font: 500 13px/1.4 Inter, system-ui, sans-serif; color: rgba(255,255,255,.6); }
.lurkcard button { width: 100%; padding: 10px; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(#ffe25a, #ffb300); color: #1a1200; font: 800 13px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: .08em; }

/* first-visit welcome */
.hello { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); color: #eceef6; }
.hello::backdrop { background: rgba(4, 5, 12, .86); }
.hl { padding: 24px 22px 22px; border-radius: 20px; text-align: center; background: linear-gradient(165deg, #1b1d33, #0b0c16); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px -20px #000; font-family: Inter, system-ui, sans-serif; }
.hl-t { font: 900 italic 26px/1.1 'Space Grotesk', sans-serif; color: #ffd400; }
.hl-p { margin: 8px auto 18px; max-width: 420px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.65); }
.hl-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hl-o { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; border-radius: 16px; cursor: pointer; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: transform .12s, border-color .15s, background .15s; }
.hl-o:hover, .hl-o:focus-visible { border-color: #ffd400; background: rgba(255,212,0,.08); transform: translateY(-2px); outline: none; }
.hl-o .hl-ic { font-size: 34px; line-height: 1; }
.hl-o b { font: 800 17px/1.1 'Space Grotesk', sans-serif; }
.hl-o small { font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,.6); }
@media (max-width: 480px) { .hl-opts { grid-template-columns: 1fr; } .modesw button { padding: 6px 9px; } }

/* ---------- calm player (listen mode, 2026-11-18): the game page is hidden, a plain player shows instead ---------- */
body.lurk > :not(.calm):not(dialog):not(.toast):not(script):not(audio):not(.hello) { display: none !important; }
body.lurk { background: #101012 !important; }
.calm { display: none; }
body.lurk .calm { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; position: relative; overflow: hidden; color: #f2f2f4; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.calm .c-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(60px) saturate(1.1); opacity: .28; transform: scale(1.1); transition: background-image .6s; }
.calm .c-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(16,16,18,.55), #101012 85%); }
.calm .c-top, .calm .c-main { position: relative; z-index: 1; }
.calm .c-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
.calm .c-brand { font-weight: 600; font-size: 15px; letter-spacing: .01em; color: rgba(255,255,255,.85); }
.calm .c-party { border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.75); padding: 7px 14px; border-radius: 999px; font: 500 13px Inter, system-ui, sans-serif; cursor: pointer; }
.calm .c-party:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.calm .c-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 24px; flex-wrap: wrap; }
.calm .c-art { width: min(340px, 72vw); aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #222; box-shadow: 0 24px 60px -18px rgba(0,0,0,.8); }
.calm .c-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.calm .c-meta { width: min(380px, 88vw); }
.calm .c-live { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.calm .c-live i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; }
.calm.on .c-live i { animation: c-pulse 1.6s ease-in-out infinite; }
@keyframes c-pulse { 50% { opacity: .35; } }
.calm .c-title { margin-top: 12px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.calm .c-artist { margin-top: 6px; font-size: 15px; color: rgba(255,255,255,.62); }
.calm .c-bar { margin-top: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.calm .c-bar i { display: block; height: 100%; background: rgba(255,255,255,.85); transition: width .5s linear; }
.calm .c-time { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.calm .c-ctrl { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.calm .c-play { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #f2f2f4; color: #101012; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .1s; }
.calm .c-play:active { transform: scale(.95); }
.calm .c-play svg { width: 26px; height: 26px; fill: currentColor; } .calm .c-play .i-stop { display: none; }
.calm.on .c-play .i-play { display: none; } .calm.on .c-play .i-stop { display: block; }
.calm .c-vol { display: flex; align-items: center; gap: 10px; flex: 1; color: rgba(255,255,255,.6); }
.calm .c-vol svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.calm .c-vol input { flex: 1; accent-color: #f2f2f4; }
@media (max-width: 720px) { .calm .c-main { gap: 26px; flex-direction: column; } .calm .c-title { font-size: 22px; } .calm .c-top { padding: 14px 16px; } }
.calm .c-title, .calm .c-artist, .calm .c-brand { font-style: normal !important; text-transform: none !important; text-shadow: none !important; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important; letter-spacing: -.01em !important; }

/* dkwater.css */
/* Lockjaw's Locker (DKC2): real SNES backdrop + underwater overlay. Rips: /spr/dkw (PROVENANCE.md) */
#scene[data-theme="dk-lockjaw"] { background: linear-gradient(#0a1a2a 0 300px, #08141f 300px); }
#scene[data-theme="dk-lockjaw"] .sky { filter: none; background: linear-gradient(#0d2a44, #0a1d30); }
#scene[data-theme="dk-lockjaw"] .far { filter: none; top: 0; height: 308px; clip-path: none; background: url(/spr/dkw/locker.png) repeat-x center -96px / 512px 448px; image-rendering: pixelated;
  animation: dkw-sway 7s ease-in-out infinite alternate; transform-origin: 50% 0; }
#scene[data-theme="dk-lockjaw"] .scenery, #scene[data-theme="dk-lockjaw"] .lay.near, #scene[data-theme="dk-lockjaw"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="dk-lockjaw"] .truss { border-image: repeating-linear-gradient(45deg, #6b5a44 0 5px, #2a2218 5px 10px) 10; }
#scene[data-theme="dk-lockjaw"] .truss span { font-size: 0; letter-spacing: 0; background: #3a3024; border-color: #15100a; box-shadow: 3px 3px 0 #15100a; }
#scene[data-theme="dk-lockjaw"] .truss span::after { content: 'GANGPLANK GALLEON \2022  LOCKJAW\2019S LOCKER'; font-size: 13px; letter-spacing: 3px; color: #ffd400; }
#scene[data-theme="dk-lockjaw"] .lip { background: #7df9ff; box-shadow: 0 0 18px #3fd2ff; }
#scene[data-theme="dk-lockjaw"] .deckstage { background: repeating-linear-gradient(90deg, #4a3e30 0 40px, #3a3024 40px 42px); }
#scene[data-theme="dk-lockjaw"] .boothfront { background: repeating-linear-gradient(90deg, #554634 0 22px, #3a3024 22px 24px); border-color: #15100a; }
#scene[data-theme="dk-lockjaw"] .boothfront span { color: #ffd400; text-shadow: 2px 2px 0 #15100a; }
#scene[data-theme="dk-lockjaw"] .beams i { background: linear-gradient(#bff6ffaa, transparent); }
/* stage props -> DKC2 rips */
#scene[data-theme="dk-lockjaw"] :is(.stagechar, .endpost, .starpost, .bumper, .spring, .palm) { background-repeat: no-repeat !important; background-position: center bottom !important; background-size: contain !important; image-rendering: pixelated; animation: none; }
#scene[data-theme="dk-lockjaw"] .stagechar.knux { background-image: url(/spr/dkw/enguarde.png) !important; left: 92px; top: 40px; width: 124px; height: 98px; scale: 1 1; animation: dkw-hover 3s ease-in-out infinite; }
#scene[data-theme="dk-lockjaw"] .stagechar.sonic { background-image: url(/spr/dkw/glimmer.png) !important; left: 712px; top: 60px; width: 102px; height: 70px; scale: 1 1; animation: dkw-hover 3.6s ease-in-out infinite reverse; filter: drop-shadow(0 0 14px #fff6b0); }
#scene[data-theme="dk-lockjaw"] .stagechar.sonic.spindash { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
/* Enguarde click (2026-11-17): wind up, rocket off the right edge with an afterimage trail, swim back in from the left */
#scene[data-theme="dk-lockjaw"] .stagechar.knux.punch { animation: dkw-dash 2.6s cubic-bezier(.5,0,.2,1) 1 forwards; }
@keyframes dkw-dash {
  0% { translate: 0 0; filter: none; }
  14% { translate: -34px 4px; filter: none; }
  20% { translate: -30px 0; filter: drop-shadow(-26px 0 0 rgba(160,220,255,.45)) drop-shadow(-52px 0 0 rgba(160,220,255,.25)); }
  42% { translate: 1000px -10px; filter: drop-shadow(-60px 0 0 rgba(160,220,255,.5)) drop-shadow(-120px 0 0 rgba(160,220,255,.25)); }
  42.1% { translate: -340px 0; filter: none; }
  70% { translate: -340px 0; }
  100% { translate: 0 0; filter: none; } }
#scene[data-theme="dk-lockjaw"] .endpost { background-image: url(/spr/dkw/crate.png) !important; left: 34px; top: 226px; width: 84px; height: 80px; }
#scene[data-theme="dk-lockjaw"] .endpost.spin { animation: cz-shake .12s linear 8 !important; }
#scene[data-theme="dk-lockjaw"] .starpost { background-image: url(/spr/dk/exit.png) !important; left: 862px; top: 232px; width: 64px; height: 76px; }
#scene[data-theme="dk-lockjaw"] .bumper { background-image: url(/spr/dk/bunch_sheet.png) !important; background-size: 600% 100% !important; background-position: var(--sx) 100% !important; --n: 6; --dur: .9s; top: 268px; width: 46px; height: 38px; animation: sheetx var(--dur) steps(var(--n), jump-none) infinite; }
#scene[data-theme="dk-lockjaw"] .bumper.hit { animation: sheetx var(--dur) steps(var(--n), jump-none) infinite, bmppop .35s cubic-bezier(.3,1.8,.5,1); }
#scene[data-theme="dk-lockjaw"] .spring { background-image: url(/spr/dkw/puftup_big.png) !important; width: 50px; height: 51px; top: 330px; animation: dkw-hover 2.4s ease-in-out infinite; }
#scene[data-theme="dk-lockjaw"] .spring.boing { animation: dkw-puffup .5s cubic-bezier(.3,1.8,.5,1); }
#scene[data-theme="dk-lockjaw"] .palm { display: block; transform: none; }
#scene[data-theme="dk-lockjaw"] .palm.l { background-image: url(/spr/dk/barrel_sheet.png) !important; background-size: 1600% 100% !important; background-position: var(--sx) 100% !important; --n: 16; --dur: 3.2s; left: 262px; top: 180px; width: 90px; height: 92px; animation: sheetx var(--dur) steps(var(--n), jump-none) infinite; }
#scene[data-theme="dk-lockjaw"] .palm.r { background-image: url(/spr/dkw/clapper.png?v=3) !important; right: 236px; top: 218px; width: 110px; height: 52px; scale: -1 1; }
/* decor critters */
#scene[data-theme="dk-lockjaw"] .themedecor .dkw-swim { animation: dkw-swim 22s linear infinite; left: 0 !important; will-change: transform; }
#scene[data-theme="dk-lockjaw"] .themedecor .dkw-swim.slow { animation-duration: 34s; animation-delay: -12s; }
#scene[data-theme="dk-lockjaw"] .themedecor .dkw-swim.rev { animation: dkw-swim-rev 40s linear -20s infinite; }
/* opposite lap with the flips swapped (animation-direction: reverse made Flotsam swim tail-first, 2026-11-17) */
@keyframes dkw-swim-rev { 0% { transform: translateX(980px); } 48% { transform: translateX(-120px); } 50% { transform: translateX(-120px) scaleX(-1); } 98% { transform: translateX(980px) scaleX(-1); } 100% { transform: translateX(980px); } }
#scene[data-theme="dk-lockjaw"] .themedecor .dkw-spin { animation: dkw-spin 3s linear infinite; }
#scene[data-theme="dk-lockjaw"] .themedecor .dkw-spin.slow { animation-duration: 4.4s; animation-direction: reverse; }
#scene[data-theme="dk-lockjaw"] .themedecor .dkw-puff { animation: dkw-puff 4s ease-in-out infinite; }
#scene[data-theme="dk-lockjaw"] .themedecor .walker { animation-duration: 40s; }
/* the crowd floats a little, like everyone's treading water */
#scene[data-theme="dk-lockjaw"] .mate:not(.buff-invincible) .bod img { animation: dkw-float 3.2s ease-in-out infinite; }
#scene[data-theme="dk-lockjaw"] .mate:nth-child(3n) .bod img { animation-duration: 3.9s; animation-delay: -1.2s; }
#scene[data-theme="dk-lockjaw"] .mate:nth-child(3n+1) .bod img { animation-duration: 2.7s; animation-delay: -.6s; }

/* underwater overlay: above the crowd, below boss/trivia/UI */
.waterfx { display: none; position: absolute; inset: 0; z-index: 1900; pointer-events: none; overflow: hidden; }
#scene[data-theme="dk-lockjaw"] .waterfx { display: block; }
.waterfx > i { position: absolute; inset: 0; }
.waterfx .wf-tint { background: linear-gradient(180deg, rgb(70 170 220 / .22), rgb(20 90 150 / .28) 45%, rgb(5 30 70 / .45)); mix-blend-mode: multiply; }
.waterfx .wf-tint::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 120% 70% at 50% 0, rgb(120 230 255 / .16), transparent 60%), radial-gradient(ellipse 90% 60% at 50% 110%, rgb(0 10 30 / .55), transparent 70%); }
.waterfx .wf-caustic { inset: -120px; opacity: .13; mix-blend-mode: screen;
  background: radial-gradient(ellipse 34px 14px at 30% 40%, #bff6ff 0 30%, transparent 70%) 0 0 / 120px 90px, radial-gradient(ellipse 22px 30px at 70% 60%, #9ef0ff 0 25%, transparent 70%) 0 0 / 150px 110px, radial-gradient(ellipse 40px 18px at 50% 50%, #e8feff 0 20%, transparent 70%) 0 0 / 190px 130px;
  animation: dkw-caustic 9s linear infinite; filter: blur(2px); }
.waterfx .wf-caustic.b { opacity: .09; animation: dkw-caustic 13s linear infinite reverse; background-size: 170px 120px, 110px 140px, 230px 150px; }
.waterfx .wf-rays { inset: -40px -100px auto; height: 620px; mix-blend-mode: screen; opacity: .5; transform-origin: 50% 0;
  background: repeating-linear-gradient(100deg, transparent 0 70px, rgb(170 240 255 / .14) 90px 120px, transparent 150px 230px);
  -webkit-mask: linear-gradient(#000, transparent 85%); mask: linear-gradient(#000, transparent 85%); animation: dkw-rays 11s ease-in-out infinite alternate; }
.waterfx .wf-surface { bottom: auto; height: 16px; top: 0; background: repeating-linear-gradient(90deg, rgb(220 250 255 / .55) 0 14px, rgb(120 210 240 / .25) 14px 30px, rgb(220 250 255 / .4) 30px 38px, transparent 38px 52px); animation: dkw-surf 3s linear infinite; filter: blur(.5px); box-shadow: 0 6px 18px rgb(150 230 255 / .35); opacity: .7; }
.waterfx .wf-bubbles i { position: absolute; bottom: -20px; border-radius: 50%; border: 1.5px solid rgb(220 250 255 / .8); background: radial-gradient(circle at 32% 30%, #fff 0 18%, rgb(180 240 255 / .25) 30%, transparent 70%); animation-name: dkw-rise, dkw-wobble; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite; animation-direction: normal, alternate; }
@keyframes dkw-rise { from { transform: translateY(0); opacity: 0; } 8% { opacity: .9; } 92% { opacity: .8; } to { transform: translateY(-740px); opacity: 0; } }
@keyframes dkw-wobble { from { translate: -6px 0; } to { translate: 6px 0; } } /* transform-only, 2026-11-19 */
@keyframes dkw-caustic { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 120px 90px, -150px 110px, 190px -130px; } }
@keyframes dkw-rays { from { transform: skewX(-6deg) translateX(-30px); opacity: .35; } to { transform: skewX(6deg) translateX(30px); opacity: .6; } }
@keyframes dkw-surf { to { background-position: 52px 0; } }
@keyframes dkw-sway { from { transform: skewX(-.8deg) translateX(-4px); } to { transform: skewX(.8deg) translateX(4px); } }
@keyframes dkw-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes dkw-hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
/* sprites face left: mirror while swimming right, natural while swimming back left */
@keyframes dkw-swim { 0% { transform: translateX(-120px) scaleX(-1); } 48% { transform: translateX(980px) scaleX(-1); } 50% { transform: translateX(980px); } 98% { transform: translateX(-120px); } 100% { transform: translateX(-120px) scaleX(-1); } }
@keyframes dkw-spin { 0% { transform: rotate(0); translate: 0 0; } 50% { translate: 0 -14px; } 100% { transform: rotate(360deg); translate: 0 0; } }
@keyframes dkw-puff { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.35); } }
@keyframes dkw-puffup { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }

/* Glimmer's lure lights up at random (stagefx.js adds #scene.glim-on every 20-60s, Spindok 2026-11-17); bulb sits at ~90%/50% of the sprite */
#scene[data-theme="dk-lockjaw"] .stagechar.sonic::after { content: ''; position: absolute; left: 90%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 6%, rgba(255,250,200,.9) 12%, rgba(255,240,150,.45) 30%, rgba(255,230,120,0) 65%); mix-blend-mode: screen; opacity: 0; scale: .4;
  opacity: 0; }
#scene[data-theme="dk-lockjaw"].glim-on .stagechar.sonic::after { animation: glim-lure 2.4s ease-in-out 1; }
@keyframes glim-lure { 0%, 100% { opacity: 0; scale: .4; } 18% { opacity: 1; scale: 1.15; } 32% { opacity: .55; scale: .9; } 45% { opacity: 1; scale: 1.25; } 75% { opacity: .2; scale: .7; } }
/* lights dim while Glimmer's lure is on (Spindok 2026-11-17): same 7s clock as glim-lure, soft hole around the fish (bulb ~804,92) */
#scene[data-theme="dk-lockjaw"]::after { content: ''; position: absolute; inset: 0; z-index: 1950; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 790px 95px, rgba(0,6,18,0) 0 55px, rgba(0,6,18,.55) 120px, rgba(0,6,18,.88) 230px);
  }
#scene[data-theme="dk-lockjaw"].glim-on::after { animation: glim-dark 2.4s ease-in-out 1; }
@keyframes glim-dark { 0%, 100% { opacity: 0; } 12% { opacity: 1; } 65% { opacity: 1; } 90% { opacity: 0; } }
/* 2026-11-17: line-16 :is() rule pins background-position !important, which beats animations -> barrel/banana sheets froze.
   Animate a registered --sx instead and read it in the !important position. */
@property --sx { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes sheetx { from { --sx: 0%; } to { --sx: 100%; } }
/* Puftup click: inflate + shake, then BOOM (stagefx.js adds the shards), gone a few seconds, drifts back */
#scene[data-theme="dk-lockjaw"] :is(.spring, .deco[title="Puftup"], .deco[title="Puftup!"]) { transition: scale .35s cubic-bezier(.3,1.6,.5,1), opacity .9s ease; }
#scene[data-theme="dk-lockjaw"] .pf-inflate { scale: 1.9; filter: brightness(1.15) saturate(1.3); }
#scene[data-theme="dk-lockjaw"] .pf-gone { opacity: 0 !important; scale: .2 !important; transition: none !important; }

/* modern.css */
/* ===== Spindok Radio: modern layer (2026-11-12) =====
   Loaded after radio.css. Restyles the chrome around the pixel venue (header, panels, buttons, forms, chat, network).
   The .scene pixel art, critters, cards and shop sprites are deliberately left alone. Remove this <link> to roll back. */
:root {
  --m-bg: #06070d; --m-surface: rgba(255, 255, 255, .035); --m-surface-2: rgba(255, 255, 255, .06);
  --m-line: rgba(255, 255, 255, .08); --m-line-2: rgba(255, 255, 255, .14);
  --m-text: #eceef6; --m-muted: #8d93ab; --m-dim: #5d6380;
  --m-blue: #3d6dff; --m-cyan: #3fd2ff; --m-gold: #ffc83d; --m-red: #ff3d5a;
  --m-grad: linear-gradient(135deg, #3d6dff 0%, #3fd2ff 100%);
  --m-gold-grad: linear-gradient(135deg, #ffd55c 0%, #ffae2b 100%);
  --m-radius: 18px; --m-radius-sm: 12px;
  --m-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --m-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --m-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --m-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -20px rgba(0, 0, 0, .8);
}
html, body { background: var(--m-bg); color: var(--m-text); font-family: var(--m-font); -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(61, 109, 255, .22), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(176, 64, 255, .14), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(63, 210, 255, .07), transparent 60%),
    var(--m-bg) fixed;
}
::selection { background: rgba(63, 210, 255, .35); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--m-cyan); outline-offset: 2px; }
code { font-family: var(--m-mono); color: var(--m-cyan); background: rgba(63, 210, 255, .08); border-radius: 6px; padding: 1px 6px; }
a { color: var(--m-cyan); }

/* ---------- header: compact glass bar ---------- */
body > .top {
  position: sticky; top: 0; z-index: 50; max-width: none; margin: 0; gap: 16px; padding: 12px max(16px, calc((100vw - 1340px) / 2));
  background: rgba(6, 7, 13, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--m-line);
}
body > .top .brand { display: flex; flex-direction: column; gap: 2px; }
body > .top .presents {
  background: none; padding: 0; transform: none; box-shadow: none; border: 0;
  font: 600 10px/1 var(--m-font); letter-spacing: .22em; color: var(--m-muted); text-transform: uppercase;
}
body > .top .logo { margin: 0; font-style: normal; line-height: 1; }
body > .top .logo .l1, body > .top .logo .l2 {
  -webkit-text-stroke: 0; text-shadow: none; font-family: var(--m-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em;
}
body > .top .logo .l1 { background: var(--m-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body > .top .logo .l2 { color: var(--m-text); letter-spacing: -.01em; font-weight: 500; }
body > .top .hud { gap: 6px; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
body > .top .hud div {
  gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--m-surface); border: 1px solid var(--m-line);
}
body > .top .hud .k { font: 600 10px/1 var(--m-font); letter-spacing: .14em; color: var(--m-muted); text-shadow: none; }
body > .top .hud .v { font: 600 14px/1 var(--m-mono); color: var(--m-text); text-shadow: none; }
body > .top .hud .v.flash { color: var(--m-gold); }
body > .top .onair {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--m-line); background: var(--m-surface);
  font: 700 11px/1 var(--m-font); letter-spacing: .16em; color: var(--m-muted); box-shadow: none;
}
body > .top .onair small { color: var(--m-dim); font: 500 11px var(--m-font); letter-spacing: 0; }
body > .top .onair.live { color: #fff; border-color: rgba(255, 61, 90, .45); background: rgba(255, 61, 90, .1); box-shadow: 0 0 24px -6px rgba(255, 61, 90, .6); }
body > .top .onair.live .dot { background: var(--m-red); box-shadow: 0 0 10px var(--m-red); animation: m-pulse 1.6s ease-in-out infinite; }
@keyframes m-pulse { 50% { opacity: .35; transform: scale(.8); } }

/* ---------- layout ---------- */
main.wrap.layout { max-width: 1340px; padding: 20px 16px 40px; gap: 20px; }
.layout > .rail, .layout > .boards { gap: 20px; }

/* invite banner: slim strip */
.radio-server-invite {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0; padding: 12px 16px !important;
  background: linear-gradient(90deg, rgba(88, 101, 242, .16), rgba(88, 101, 242, .04)) !important;
  border: 1px solid rgba(88, 101, 242, .35) !important; border-radius: var(--m-radius) !important; box-shadow: none !important;
}
.radio-server-invite > a:first-child {
  flex: none; padding: 9px 16px !important; border-radius: 10px !important; border: 0 !important; box-shadow: none !important;
  background: #5865f2 !important; color: #fff !important; font: 600 13px/1.2 var(--m-font) !important; text-decoration: none; letter-spacing: 0 !important;
}
.radio-server-invite > a:first-child:hover { background: #6c78ff !important; }
.radio-server-invite p { margin: 0; flex: 1; min-width: 220px; font: 13px/1.5 var(--m-font) !important; color: var(--m-muted) !important; text-align: left !important; }
.radio-server-invite p a { color: #aab3ff !important; }

/* ---------- the venue frame (pixel scene inside is untouched) ---------- */
.venue {
  border: 1px solid var(--m-line-2) !important; border-radius: 22px !important; background: #070914 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px -30px rgba(61, 109, 255, .45), 0 20px 60px -20px #000 !important;
}
.venue .zone-label {
  background: rgba(255, 255, 255, .02) !important; border: 0 !important; border-bottom: 1px solid var(--m-line) !important;
  padding: 10px 16px !important; color: var(--m-muted) !important; text-shadow: none !important;
  font: 600 10px/1 var(--m-font) !important; letter-spacing: .2em !important;
}

/* console under the scene */
.venue .console { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)) !important; border-top: 1px solid var(--m-line) !important; padding: 6px 4px 4px !important; gap: 0 !important; }
.floating-controls { padding: 0 14px 12px; }
.floating-controls p { font: 12px/1.5 var(--m-font); color: var(--m-dim); }
/* now-playing strip + transport */
.venue .np {
  margin: 0; padding: 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-shadow: none;
  font-family: var(--m-font); color: var(--m-text); gap: 16px;
}
.venue .np img { width: 72px; height: 72px; border: 0; border-radius: 12px; box-shadow: 0 10px 30px -10px #000; }
.venue .np .title { font: 700 18px/1.25 var(--m-display) !important; color: var(--m-text) !important; text-shadow: none !important; letter-spacing: -.01em; }
.venue .np .artist { font: 500 14px/1.4 var(--m-font) !important; color: var(--m-muted) !important; text-shadow: none !important; }
.venue .np .album { font: 12px/1.4 var(--m-font) !important; color: var(--m-dim) !important; text-shadow: none !important; }
.venue .np .bar { height: 4px !important; border: 0 !important; border-radius: 999px !important; background: rgba(255, 255, 255, .08) !important; overflow: hidden; box-shadow: none !important; }
.venue .np .bar #prog { background: var(--m-grad) !important; border-radius: 999px; box-shadow: 0 0 12px rgba(63, 210, 255, .6) !important; }
.venue .np .times { font: 500 11px var(--m-mono) !important; color: var(--m-dim) !important; text-shadow: none !important; }
.venue .np .next { font: 500 11px var(--m-font) !important; color: var(--m-dim) !important; }
.venue .np .next span { color: var(--m-text) !important; }

.controls { gap: 8px !important; padding: 12px 14px 14px; border-top: 1px solid var(--m-line); }
.controls .play {
  padding: 11px 22px !important; border: 0 !important; border-radius: 999px !important; box-shadow: 0 8px 24px -8px rgba(255, 200, 61, .7) !important;
  background: var(--m-gold-grad) !important; color: #1a1300 !important; font: 700 14px/1 var(--m-font) !important; letter-spacing: .06em !important; font-style: normal !important;
  transition: transform .15s, box-shadow .15s, filter .15s !important;
}
.controls .play svg { width: 18px !important; height: 18px !important; fill: #1a1300 !important; }
.controls .play:hover { filter: brightness(1.06); transform: translateY(-1px); }
.controls .play.on { background: linear-gradient(135deg, #ff5a72, #ff2d4d) !important; color: #fff !important; box-shadow: 0 8px 24px -8px rgba(255, 61, 90, .8) !important; }
.controls .play.on svg { fill: #fff !important; }
.controls .play:active, .controls .fire:active { transform: translateY(1px) scale(.98); }
.controls .fire, .controls .shopbtn, .controls .emotes button, .controls .say button, .floating-controls button, #refreshpicks {
  border: 1px solid var(--m-line-2) !important; border-radius: 999px !important; background: var(--m-surface-2) !important; color: var(--m-text) !important;
  box-shadow: none !important; font: 600 12px/1 var(--m-font) !important; letter-spacing: .04em !important; font-style: normal !important; text-shadow: none !important;
  padding: 10px 14px !important; transition: background .15s, border-color .15s, transform .15s; cursor: pointer;
}
.controls .fire:hover, .controls .shopbtn:hover, .controls .emotes button:hover, .controls .say button:hover, .floating-controls button:hover, #refreshpicks:hover {
  background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .22) !important;
}
.controls .fire b { font: 600 12px var(--m-mono); color: var(--m-muted); margin-left: 4px; }
.controls .fire.on { background: linear-gradient(135deg, #ff9a3d, #ff3d5a) !important; border-color: transparent !important; }
.controls .fire.on b { color: #fff; }
.controls .fire.skipv.on { background: var(--m-grad) !important; border-color: transparent !important; }
.controls .shopbtn { background: rgba(255, 200, 61, .1) !important; border-color: rgba(255, 200, 61, .35) !important; color: var(--m-gold) !important; }
.controls .emotes { gap: 4px !important; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--m-line); }
.controls .emotes button { padding: 8px 10px !important; border-color: transparent !important; background: transparent !important; color: var(--m-muted) !important; }
.controls .emotes button:hover { color: var(--m-text) !important; }
.controls .say { gap: 6px !important; }
.controls .vol { font: 600 10px var(--m-font) !important; letter-spacing: .14em !important; color: var(--m-muted) !important; }
.controls .vol input { accent-color: var(--m-cyan); }

/* ---------- panels ---------- */
.box {
  background: var(--m-surface) !important; border: 1px solid var(--m-line) !important; border-radius: var(--m-radius) !important;
  box-shadow: var(--m-shadow) !important; backdrop-filter: blur(8px); overflow: hidden;
}
.boxhead {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  background: none !important; border: 0 !important; border-bottom: 1px solid var(--m-line) !important; border-radius: 0 !important;
  padding: 14px 16px 12px !important; color: var(--m-text) !important; text-shadow: none !important;
  font: 700 13px/1.2 var(--m-display) !important; letter-spacing: .04em !important; font-style: normal !important; text-transform: uppercase;
}
.boxhead .hint, .boxhead small { font: 400 12px/1.4 var(--m-font) !important; color: var(--m-dim) !important; letter-spacing: 0 !important; text-transform: none; text-shadow: none !important; }
.boxhead .hint a { color: var(--m-muted) !important; }

/* inputs everywhere */
.box input:not([type=range]):not([type=checkbox]):not([type=radio]), .box select, .box textarea, .controls .say input, #search {
  background: rgba(0, 0, 0, .35) !important; border: 1px solid var(--m-line-2) !important; border-radius: var(--m-radius-sm) !important;
  color: var(--m-text) !important; font: 14px/1.3 var(--m-font) !important; letter-spacing: 0 !important; text-transform: none !important;
  padding: 11px 14px !important; box-shadow: none !important; transition: border-color .15s, background .15s;
}
.box input::placeholder, .controls .say input::placeholder, #search::placeholder { color: var(--m-dim) !important; letter-spacing: 0 !important; text-transform: none; }
.box input:focus, .controls .say input:focus, #search:focus { border-color: rgba(63, 210, 255, .6) !important; background: rgba(0, 0, 0, .5) !important; outline: none; }

/* generic buttons inside panels */
.box button:not(.opt):not(.netc):not([class*=sega]), .box .auth-btn, .b88 {
  border-radius: var(--m-radius-sm) !important; box-shadow: none !important; text-shadow: none !important; font-style: normal !important;
  font: 600 13px/1 var(--m-font) !important; letter-spacing: .03em !important;
}
.box .auth-btn.primary, #joinform button[type=submit], #acctsave {
  background: var(--m-gold-grad) !important; color: #1a1300 !important; border: 0 !important; padding: 12px 16px !important;
}
.box .auth-btn.google { background: #fff !important; color: #1f1f1f !important; border: 0 !important; padding: 12px 16px !important; }

/* player 1 panel */
.p1 .press {
  font: 700 18px/1.2 var(--m-display) !important; color: var(--m-text) !important; text-shadow: none !important; letter-spacing: -.01em !important;
  font-style: normal !important; -webkit-text-stroke: 0 !important; animation: none !important; text-align: left !important; margin: 0 0 10px !important;
}
.p1 .auth-block { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; gap: 8px; }
.p1 .auth-note, .p1 p { font: 13px/1.5 var(--m-font) !important; color: var(--m-muted) !important; }
.p1 details > summary {
  cursor: pointer; padding: 10px 0; color: var(--m-text); font: 600 13px var(--m-font); letter-spacing: .02em;
}
.p1 details > summary:hover { color: var(--m-cyan); }

/* vote options: the button stays bare, the .tv frame becomes the card */
.vote .opts { gap: 12px !important; padding: 14px !important; }
.vote .opt { color: var(--m-text) !important; font-family: var(--m-font) !important; }
.vote .opt .tv {
  padding: 0 !important; border: 1px solid var(--m-line) !important; border-radius: 14px !important; background: rgba(255, 255, 255, .03) !important;
  box-shadow: 0 14px 30px -18px #000 !important; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.vote .opt .tv::after { display: none !important; }
.vote .opt img { border: 0 !important; border-radius: 0 !important; }
.vote .opt:hover .tv { border-color: rgba(63, 210, 255, .5) !important; transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(63, 210, 255, .35) !important; }
.vote .opt.mine .tv { background: rgba(255, 200, 61, .08) !important; border-color: var(--m-gold) !important; box-shadow: 0 0 0 1px var(--m-gold), 0 18px 40px -16px rgba(255, 200, 61, .45) !important; }
.vote .opt .t { font: 600 14px/1.3 var(--m-font) !important; margin-top: 4px; }
.vote .opt .a { font: 13px/1.3 var(--m-font) !important; color: var(--m-muted) !important; margin-top: 0 !important; }
.vote .opt .vb { height: 4px !important; background: rgba(255, 255, 255, .08) !important; border-radius: 999px !important; }
.vote .opt .vb i { background: var(--m-gold-grad) !important; border-radius: 999px; }
.vote .opt .vn, .vote .opt .need { font: 500 11px var(--m-mono) !important; color: var(--m-muted) !important; }
.vote .opt .lead { border-radius: 999px !important; font: 700 10px/1 var(--m-font) !important; letter-spacing: .08em !important; padding: 5px 8px !important; box-shadow: 0 6px 16px -6px var(--m-red) !important; transform: none !important; }
#refreshpicks { margin: 0 14px 14px !important; }
#refreshpickstatus { font: 12px var(--m-font); color: var(--m-dim); }

/* request search results */
.req #search { margin: 14px 14px 0 !important; width: calc(100% - 28px) !important; }
.req .chips { padding: 10px 14px !important; gap: 6px !important; }
.req .chips button {
  border: 1px solid var(--m-line-2) !important; border-radius: 999px !important; background: var(--m-surface-2) !important; color: var(--m-text) !important;
  padding: 7px 12px !important; font: 500 12px var(--m-font) !important; box-shadow: none !important;
}
.req #results { padding: 0 8px 8px !important; }
.req #results li { border-radius: 12px !important; border: 0 !important; border-bottom: 1px solid var(--m-line) !important; font-family: var(--m-font) !important; }
.req #results li:hover { background: rgba(255, 255, 255, .04) !important; }

/* chat */
.chatbox .msgs { font: 13px/1.5 var(--m-font) !important; padding: 10px 14px !important; scrollbar-width: thin; scrollbar-color: #2a2f45 transparent; }
.chatbox .msgs li { color: var(--m-text) !important; text-shadow: none !important; padding: 4px 0 !important; border: 0 !important; }
.chatbox .msgs li.sys { color: var(--m-dim) !important; font-style: normal !important; }
.chatbox .msgs b, .chatbox .msgs .who { font-weight: 600 !important; }

/* leaderboards / hall */
.boards .box ol, #hall { font: 13px/1.6 var(--m-font) !important; }

/* network grid */
.net .netgrid { gap: 10px !important; padding: 14px !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
.net .netc {
  border: 1px solid var(--m-line) !important; border-radius: 14px !important; background: rgba(255, 255, 255, .025) !important; box-shadow: none !important;
  padding: 12px 14px !important; transition: border-color .15s, transform .15s, background .15s !important;
}
.net .netc:hover { transform: translateY(-2px) !important; border-color: rgba(63, 210, 255, .35) !important; background: rgba(63, 210, 255, .05) !important; box-shadow: none !important; }
.net .netc b { font: 600 13px/1.2 var(--m-font) !important; letter-spacing: .02em !important; color: var(--m-text) !important; font-style: normal !important; text-shadow: none !important; }
.net .netc span { font: 12px/1.4 var(--m-font) !important; color: var(--m-dim) !important; }
.net .netfoot { padding: 0 14px 14px !important; gap: 12px !important; border: 0 !important; }
.net .netfoot p { font: 12px/1.5 var(--m-font) !important; color: var(--m-dim) !important; }
.net .b88 {
  border: 1px solid var(--m-line-2) !important; background: var(--m-surface-2) !important; color: var(--m-text) !important; padding: 10px 14px !important;
  border-radius: 12px !important; display: inline-flex; gap: 8px; align-items: center;
}
.net .b88 span { font: 500 11px var(--m-font) !important; color: var(--m-muted) !important; }
.net .b88 b { font: 600 12px var(--m-font) !important; color: var(--m-cyan) !important; }

/* footer */
footer.ground {
  border: 0 !important; border-top: 1px solid var(--m-line) !important; background: transparent !important;
  color: var(--m-dim) !important; font: 12px/1.5 var(--m-font) !important; text-shadow: none !important;
}
footer.ground p { color: var(--m-dim) !important; }

/* details/summary used in account + admin panels */
.acctbox > summary, .admin-users > summary { font: 600 13px var(--m-font) !important; color: var(--m-text) !important; letter-spacing: .02em !important; text-shadow: none !important; }

@media (max-width: 760px) {
  body > .top { flex-wrap: wrap; gap: 10px; padding: 10px 14px; position: static; }
  body > .top .hud { margin-left: 0; order: 3; width: 100%; justify-content: space-between; }
  body > .top .hud div { flex: 1; justify-content: center; padding: 7px 8px; }
  body > .top .onair { margin-left: auto; }
  main.wrap.layout { padding: 14px 10px 30px; gap: 14px; }
  .venue { border-radius: 16px !important; }
  .controls .play { flex: 1; justify-content: center; }
}
@media (max-width: 700px) { .controls .emotes { gap: 0 !important; padding: 2px !important; } .controls .emotes button { padding: 8px 6px !important; font-size: 11px !important; letter-spacing: 0 !important; } }

/* ---------- fill the empty space (2026-11-12) ---------- */
@media (min-width: 1100px) {
  /* right column runs the full height of the player/vote/request column; chat takes whatever is left */
  .rail { align-self: stretch !important; }
  .rail .p1 { order: 0; }
  .rail .chatbox { flex: none !important; display: flex; flex-direction: column; }
  .rail .chatbox .msgs { flex: none !important; height: 340px !important; overflow-y: auto; }
  .rail .p1 { flex: 1 1 auto; }
}
/* scoreboards: equal-height columns */
.boards { align-items: stretch !important; }
.boards > * { height: auto; }
/* network: one tight row, no half-empty second row (blurbs dropped) */
.net .netgrid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important; gap: 8px !important; }
.net .netc { min-height: 0 !important; padding: 10px 8px !important; justify-content: center; }
.net .netc span { display: none !important; }
.net .netc { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 6px !important; }
.net .netc b { white-space: nowrap; font-size: 12px !important; }
.net .netc .sega-icon { margin: 0 !important; transform: scale(.8); }
.net .netgrid { align-items: stretch !important; }
.net .netc { justify-content: flex-end !important; }
#fresh { max-height: 430px; overflow-y: auto; scrollbar-width: thin; }
@media (min-width: 1100px) { .layout > .boards > .stationstats { grid-column: 1 / 4; } }
/* PLAYER 1: ways to earn + countdowns */
.earn{margin:8px 0;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font:12px/1.5 Inter,system-ui,sans-serif}
.earn-h{font:600 10px/1 'Space Grotesk',Inter,sans-serif;letter-spacing:.12em;opacity:.65;margin-bottom:5px}
.earn-r{display:flex;justify-content:space-between;gap:8px}
.earn-r span{opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.earn-r b{font-weight:600;color:#ffd84a;white-space:nowrap}
.earn-r b.hot{color:#7f8;animation:earnpulse 1s ease-in-out infinite}
@keyframes earnpulse{50%{opacity:.5}}
.earnpop{border:0;padding:0;background:transparent;max-width:min(360px,calc(100vw - 32px));width:100%}
.earnpop::backdrop{background:rgba(5,8,20,.72)}
.earnpop .earn{margin:0;padding:18px;background:#141a2e;border:1px solid rgba(255,255,255,.12);box-shadow:0 20px 50px #000a;color:#fff;font-size:13px}
.earn-t{font:700 18px/1.2 'Space Grotesk',Inter,sans-serif;margin-bottom:6px}
.earn-p{margin:0 0 12px;opacity:.75}
.earnpop .earn-r{padding:6px 0;border-top:1px solid rgba(255,255,255,.07)}
.earn-ok{margin-top:14px;width:100%;padding:10px;border:0;border-radius:999px;background:#ffd84a;color:#1a1400;font:700 14px Inter,sans-serif;cursor:pointer}
.earnq{width:18px;height:18px;padding:0;margin:0 6px 0 4px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:transparent;color:#ffd84a;font:700 11px/16px Inter,sans-serif;cursor:pointer;vertical-align:middle}
/* ---------- polish pass (2026-11-14) ---------- */
@media (min-width: 1100px) {
  /* chat grows to fill the rail instead of a dead gap under the login card */
  .rail .chatbox { flex: none !important; }
  .rail .chatbox .msgs { flex: none !important; height: 400px !important; min-height: 0; }
  .rail .p1 { flex: none !important; }
}
/* soft fade instead of hard-cut lines at the top of scrolling lists */
.chatbox .msgs, #fresh { -webkit-mask-image: linear-gradient(transparent, #000 18px); mask-image: linear-gradient(transparent, #000 18px); }
/* Fresh in the Vault fills its column (matches Previous Acts height) */
.boards .fresh { display: flex; flex-direction: column; }
.boards .fresh #fresh { flex: 1 1 0; min-height: 300px; max-height: none; }
/* vote cards line up even when a track has no artist */
.vote .opt .a { min-height: 17px; }
/* network tiles: bigger icons */
.net .netc { padding: 14px 8px 12px !important; gap: 10px !important; }
.net .netc .sega-icon { transform: scale(1.3); transform-origin: center bottom; }
/* ---------- phone layout (2026-11-14): boards swipe sideways, network compact ---------- */
@media (max-width: 700px) {
  .layout > .boards { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px !important;
    margin: 0 -10px; padding: 0 10px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .layout > .boards::-webkit-scrollbar { display: none; }
  .boards > .box { flex: 0 0 86% !important; width: 86% !important; max-width: none !important; scroll-snap-align: center; margin: 0 !important;
    height: 440px !important; display: flex; flex-direction: column; overflow: hidden; grid-column: auto !important; }
  .boards > .box > :not(.boxhead) { overflow-y: auto; min-height: 0; }
  .boards > .box > ol, .boards > .box > ul, .boards > .stationstats > :last-child { flex: 1 1 0; }
  .boards .fresh #fresh { max-height: none; min-height: 0; }
  .boards-hint { display: block; font: 11px var(--m-font); color: var(--m-dim); text-align: center; margin: -6px 0 0; }
  .net .netgrid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
  .net .netc { padding: 10px 4px 8px !important; gap: 6px !important; }
  .net .netc b { font-size: 10px !important; }
  .net .netc .sega-icon { transform: scale(.9); }
  .rail .chatbox .msgs { max-height: 220px; }
}
.boards-hint { display: none; }
footer .about{max-width:720px;margin:0 auto 6px;font:12px/1.5 var(--m-font);color:var(--m-dim)}
/* top bar: next boss / trivia timers (2026-11-14) */
body > .top .hud .hudev { cursor: pointer; }
body > .top .hud .hudev .v { color: var(--m-gold); }
body > .top .hud .hudev.live { border-color: #7f8 !important; }
body > .top .hud .hudev.live .v { color: #7f8; animation: earnpulse 1s ease-in-out infinite; }
@media (max-width: 700px) { body > .top .hud .hudtime { display: none !important; } body > .top .hud { flex-wrap: wrap; justify-content: center; } }
/* chat polish (2026-11-14): web is the default so only Discord gets a source tag; tighter emerald row so names don't wrap */
.chatbox .msgs .tag.w { display: none !important; }
.chatbox .msgs .tag.d { font: 600 9px/1 var(--m-font) !important; padding: 2px 5px !important; border-radius: 999px !important; letter-spacing: .06em; vertical-align: 1px; }
.chatbox .msgs .tm { opacity: .45; margin-right: 6px; }
.chatbox .msgs .mini { gap: 0 !important; margin-right: 3px !important; }
.chatbox .msgs .mini svg { width: 8px !important; height: 7px !important; }
/* venue: keep the Now Spinning screen readable on dark stages (mewtwo-lair dims the props) */
#scene[data-theme="mewtwo-lair"] .screen { filter: brightness(.9) saturate(.85) !important; }
/* phone: login / PLAYER 1 right under the player, before vote + request */
@media (max-width: 700px) {
  .layout > .mainflow { display: contents !important; }
  main.wrap.layout { grid-template-areas: "venue" "rail" "vote" "req" "admin" "boards" "net" !important; }
  .layout > .mainflow > .venue { grid-area: venue; }
  .layout > .mainflow > .vote { grid-area: vote; }
  .layout > .mainflow > .req { grid-area: req; }
  .rail { display: flex !important; flex-direction: column; gap: 14px; }
  .rail .p1 { order: -1; }
  .rail .chatbox { margin-top: 0 !important; }
}
/* join card: new player first, login tucked below (2026-11-14) */
.p1 .newp { display: flex; flex-direction: column; gap: 8px; }
.p1 .loginbox { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.p1 .loginbox[open] > summary { margin-bottom: 8px; }
.p1 .newp-row { display: flex; gap: 8px; }
.p1 .newp-row > button[type=submit] { flex: 1 1 auto; min-width: 0; }
.p1 .newp-row > #googlejoin { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; padding: 0 16px !important; margin: 0 !important; }
.p1 .newp-row > button[type=submit] { width: auto !important; flex: 1 1 0 !important; margin: 0 !important; }

/* Coming to the vault (download queue) */
.dlq { margin: 4px 14px 12px; border: 1px solid var(--m-line); border-radius: var(--m-radius-sm); background: var(--m-surface); font-family: var(--m-font); }
.dlq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.dlq summary::-webkit-details-marker { display: none; }
.dlq-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--m-grad); color: #fff; font-size: 14px; }
.dlq summary > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dlq summary b { color: var(--m-text); font: 600 14px var(--m-display); }
.dlq summary small { color: var(--m-muted); font-size: 12px; }
.dlq summary em { font-style: normal; font: 600 12px var(--m-mono); color: var(--m-cyan); background: rgba(63, 210, 255, .1); border-radius: 99px; padding: 2px 9px; }
.dlq[open] summary { border-bottom: 1px solid var(--m-line); }
.dlq ol { list-style: none; margin: 0; padding: 4px 0; max-height: 260px; overflow-y: auto; }
.dlq li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--m-line); }
.dlq li:last-child { border-bottom: 0; }
.dlq-t, .dlq-m { display: flex; flex-direction: column; min-width: 0; }
.dlq-m { align-items: flex-end; text-align: right; flex: none; }
.dlq-t b { color: var(--m-text); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlq li small { color: var(--m-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlq-m i { font-style: normal; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 1px 8px; }
.dlq-wait { color: var(--m-gold); background: rgba(255, 200, 61, .1); }
.dlq-bad { color: var(--m-red); background: rgba(255, 61, 90, .1); }
.dlq li.failed .dlq-t b { color: var(--m-muted); }

/* refer a friend (2026-11-16) */
.refbox { margin-top: 10px; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(255, 196, 64, .12), rgba(120, 80, 255, .10)); border: 1px solid rgba(255, 214, 90, .35); }
.refbox .ref-t { font: 700 14px/1.2 'Space Grotesk', Inter, sans-serif; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.refbox .ref-t b { min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--m-gold, #ffd65a); color: #1a1200; font-size: 12px; }
.refbox .ref-p { margin: 6px 0 8px; font: 12px/1.4 Inter, sans-serif; color: #c9cfe6; }
.refbox .ref-row { display: flex; gap: 6px; }
.refbox .ref-row input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .35); color: #fff; font: 12px Inter, sans-serif; }
.refbox .ref-row button { padding: 8px 14px; border-radius: 10px; border: 0; background: var(--m-gold, #ffd65a); color: #1a1200; font: 700 12px Inter, sans-serif; cursor: pointer; }
.refbox .ref-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.refbox .ref-items li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; font: 12px Inter, sans-serif; color: #aab2cf; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.refbox .ref-items li b { text-align: center; color: #fff; }
.refbox .ref-items li i { font-style: normal; font-size: 11px; opacity: .8; }
.refbox .ref-items li.got { color: #fff; background: rgba(255, 214, 90, .14); }
.refbox .ref-items li.got i { color: var(--m-gold, #ffd65a); font-weight: 700; opacity: 1; }

/* changelog dialog (2026-11-16) */
footer.ground a[data-changelog] { color: var(--m-gold, #ffd65a); text-decoration: underline; text-underline-offset: 3px; }
dialog.changelog { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: #0f1220; color: #e8ebf7; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog.changelog::backdrop { background: rgba(4, 6, 14, .8); }
.changelog .cl-in { display: flex; flex-direction: column; max-height: inherit; }
.changelog .cl-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 700 17px 'Space Grotesk', Inter, sans-serif; }
.changelog .cl-head button { border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; }
.changelog #cl-list { overflow-y: auto; padding: 6px 18px 18px; }
.changelog section h3 { margin: 16px 0 6px; font: 700 12px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--m-gold, #ffd65a); }
.changelog section ul { margin: 0; padding-left: 18px; }
.changelog section li { margin: 5px 0; font: 14px/1.45 Inter, sans-serif; color: #c9cfe6; }

/* network tiles: animated sprite sheets (2026-11-16) */
@keyframes netsheet { from { background-position-x: 0; } to { background-position-x: var(--end); } }
@keyframes netbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.net .netc .sega-icon { animation: netsheet var(--d, .8s) steps(var(--n), jump-none) infinite; }
.net .netc .s-sonic-walk { --n: 11; --end: -400px; --d: 1.1s; }
.net .netc .s-sonic-spin { --n: 8; --end: -280px; --d: .5s; }
.net .netc .s-tails-fly { --n: 2; --end: -34px; --d: .25s; animation: netsheet .25s steps(2, jump-none) infinite, netbob 1.6s ease-in-out infinite; }
.net .netc .s-sonic-run { --n: 9; --end: -320px; --d: .6s; }
.net .netc .s-endpost { --n: 6; --end: -240px; --d: .9s; }
.net .netc .s-flicky { --n: 2; --end: -16px; animation: netsheet .3s steps(2, jump-none) infinite, netbob 1.2s ease-in-out infinite; }
.net .netc .s-checkpoint-on { --n: 2; --end: -16px; --d: .5s; }
.net .netc :is(.s-mon-rings, .s-mon-shoes) { animation: netbob 1.8s ease-in-out infinite; }
.net .netc:nth-child(5) .sega-icon { animation-delay: -.9s; }

/* jukebox picks tools (2026-11-16) */
.vote .slate-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vote .slate-tools button { flex: 1 1 160px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; }
.vote .slate-tools button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.vote .slate-tools #addpick { border-color: rgba(255, 214, 90, .5); background: rgba(255, 214, 90, .12); color: var(--m-gold, #ffd65a); }
.vote .slate-tools button:disabled { opacity: .45; cursor: default; }

/* YouTube channel button (2026-11-16) */
.ytbtn { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; background: linear-gradient(135deg, rgba(255, 0, 51, .22), rgba(255, 0, 51, .08)); border: 1px solid rgba(255, 60, 90, .45); color: #fff; }
.ytbtn:hover { background: linear-gradient(135deg, rgba(255, 0, 51, .32), rgba(255, 0, 51, .14)); }
.ytbtn .yt-ic { display: grid; place-items: center; width: 38px; height: 28px; border-radius: 8px; background: #ff0033; font-size: 13px; flex: none; }
.ytbtn b { display: block; font: 700 13px Inter, sans-serif; } .ytbtn small { display: block; font: 12px Inter, sans-serif; color: #ffc9d3; }
.ytbtn.done small { color: #c9cfe6; }
.ytbtn[hidden] { display: none; }

  background: radial-gradient(120% 80% at 50% 0%, #3a0f5a, #12051f 70%); box-shadow: 0 0 0 4px #2a0a40, 0 0 40px rgba(255, 64, 160, .45), 0 30px 80px rgba(0, 0, 0, .6); }
  background: linear-gradient(#ff4a8a, #c4105a); box-shadow: 0 4px 0 #7a0636, 0 0 18px rgba(255, 64, 160, .5); }


/* mobile: chat log sits right under the message box instead of below PLAYER 1 (XBLEEDTHEFREAKXX feedback 2026-11-17) */
@media (max-width: 900px) {
  .rail { display: flex; flex-direction: column; }
  .rail > .chatbox { order: -1; }
}

/* Up next: jukebox queue (2026-11-17) */
.upnext { margin: 12px 14px 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.upnext .un-k { font: 700 11px Inter, sans-serif; letter-spacing: .1em; color: var(--m-gold, #ffd65a); display: flex; justify-content: space-between; margin-bottom: 6px; }
.upnext .un-k span { color: #8f97b8; font-weight: 600; letter-spacing: .04em; }
.upnext ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.upnext li { display: grid; grid-template-columns: 18px 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 10px; }
.upnext li.me { background: rgba(255, 214, 90, .1); }
.upnext .un-i { font: 700 11px var(--m-mono, monospace); color: #8f97b8; text-align: center; }
.upnext img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.upnext .un-t { min-width: 0; } .upnext .un-t b, .upnext .un-t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext .un-t b { font: 600 13px Inter, sans-serif; color: #fff; } .upnext .un-t small { font: 12px Inter, sans-serif; color: #9aa2c4; }
.upnext .un-by { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font: 11px Inter, sans-serif; color: #c9cfe6; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext .un-tag { font: 700 9px Inter, sans-serif; font-style: normal; letter-spacing: .08em; padding: 2px 6px; border-radius: 999px; background: rgba(63, 210, 255, .16); color: #7fe3ff; }
.upnext .un-tag.t-request { background: rgba(255, 214, 90, .16); color: #ffd65a; } .upnext .un-tag.t-playlist { background: rgba(176, 64, 255, .18); color: #d7b0ff; }
.upnext .un-more { display: block; text-align: center; font: 12px Inter, sans-serif; color: #8f97b8; }


/* shop thumbs for beat visuals (2026-11-17) */
.sc-viz { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; background: radial-gradient(circle at 50% 60%, rgba(185, 138, 255, .35), rgba(20, 10, 40, .9)); }
.sc-viz b { font-size: 30px; line-height: 1; filter: drop-shadow(0 0 8px rgba(185, 138, 255, .8)); }

/* founders box (2026-11-17) */
.founderbox { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 214, 90, .16), rgba(47, 139, 255, .12)); border: 1px solid rgba(255, 214, 90, .4); }
.founderbox[hidden] { display: none; }
.founderbox .name-ico { width: 44px !important; height: 26px; margin: 0; flex: none; }
.founderbox b { display: block; font: 700 13px 'Space Grotesk', Inter, sans-serif; color: #ffd65a; } .founderbox small { display: block; font: 11px Inter, sans-serif; color: #c9cfe6; }
.founderbox.got { background: linear-gradient(135deg, rgba(255, 214, 90, .28), rgba(255, 154, 31, .14)); }

/* visible log out / switch account pill in the PLAYER 1 header (2026-11-17) */
.mehead .melogout { margin-top: 8px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.mehead .melogout:hover, .mehead .melogout:focus-visible { background: rgba(255,80,80,.18); border-color: rgba(255,110,110,.5); color: #fff; }
.hudev[hidden], .earn-r[hidden] { display: none !important; }
/* founder CLAIM button (2026-11-17): emblem goes to the bag on click, box disappears after */
.founderbox > span { flex: 1; min-width: 0; }
.founderbox .founder-claim { flex: none; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(#ffe25a, #ffb300); color: #1a1200;
  font: 800 12px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: .08em; box-shadow: 0 3px 0 #a86f00, 0 6px 18px -6px #ffc83d; animation: fc-glow 1.6s ease-in-out infinite; }
.founderbox .founder-claim:active { transform: translateY(2px); box-shadow: 0 1px 0 #a86f00; }
.founderbox .founder-claim:disabled { opacity: .6; animation: none; }
@keyframes fc-glow { 50% { box-shadow: 0 3px 0 #a86f00, 0 6px 24px -2px #ffd84a; } }
/* emerald progress rework (2026-11-17): two labelled rows, bar tinted by the gem you're filling, h/m time */
.emprog { margin-top: 12px; padding: 10px 12px 11px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.emprog .ep-head { display: flex; justify-content: space-between; align-items: baseline; font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.emprog .ep-n { font: 800 12px/1 'Space Grotesk', Inter, sans-serif; color: #fff; letter-spacing: .02em; text-transform: none; }
.emprog .gems { margin: 6px 0 10px; gap: 5px; }
.emprog .gems svg { width: 26px; height: 23px; }
.emprog .ep-supgems svg { width: 26px; height: 23px; }
.emprog .ep-supgems svg.off { opacity: .16; }
.emprog.pre-super .ep-suphead .ep-n { color: rgba(255,255,255,.4); font-weight: 600; }
.emprog .ep-next { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font: 500 12px/1.3 Inter, system-ui, sans-serif; color: rgba(255,255,255,.7); }
.emprog .ep-next b { color: #fff; font-weight: 700; }
.emprog .ep-next > b { flex: none; color: #ffd65a; }
.emprog .lvl { height: 8px; margin: 7px 0 7px; background: rgba(255,255,255,.08); border-radius: 999px; }
.emprog .lvl div { border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--gc, #ffd400) 55%, #000), var(--gc, #ffd400)); box-shadow: 0 0 10px -2px var(--gc, #ffd400); transition: width .6s ease; }
.emprog .memin { font: 500 11px/1.3 Inter, system-ui, sans-serif; color: rgba(255,255,255,.45); margin: 0; }
/* ONE gem = your rank (2026-11-17): Chaos gem + count, Super = sparkling gem + S#, Hyper = rainbow */
.rkb { display: inline-flex; align-items: center; gap: 2px; margin-right: 5px; vertical-align: -1px; font: 800 10px/1 'Space Grotesk', Inter, sans-serif; color: rgba(255,255,255,.85); }
.rkb svg { width: 10px; height: 9px; }
.rkb.sup b { color: #fff6a8; text-shadow: 0 0 6px #ffd400; }
.rkb.hyper svg, .ep-gem.hyper svg { animation: rk-hyper 1.4s steps(7) infinite; }
.rkb.hyper b { background: linear-gradient(90deg, #25d04a, #ff2742, #2f6bff, #ffd400, #00d9ff, #a53bff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
@keyframes rk-hyper { 0% { filter: hue-rotate(0) drop-shadow(0 0 3px #fff); } 100% { filter: hue-rotate(360deg) drop-shadow(0 0 3px #fff); } }
.board .rkb svg { width: 12px; height: 11px; }
.nm .rkb svg { width: 9px; height: 8px; }
.emprog .ep-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.emprog .ep-gem { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.05); }
.emprog .ep-gem svg { width: 32px; height: 29px; }
.emprog .ep-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.emprog .ep-txt b { font: 800 15px/1.1 'Space Grotesk', Inter, sans-serif; color: #fff; }
.emprog .ep-txt small { font: 500 11px/1.3 Inter, system-ui, sans-serif; color: rgba(255,255,255,.5); }
.board .rkb { margin: 0 0 0 6px; }
/* daily floor-ring limit reached (2026-11-17): rings dim for you + chip, so it doesn't look like pickup is broken */
#scene.floorcap .drop { opacity: .35; filter: grayscale(.8); }
.capchip { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 2300; padding: 7px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  background: rgba(10, 11, 20, .82); border: 1px solid rgba(255, 214, 90, .35); color: #ffd65a; font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; backdrop-filter: blur(8px); }
/* "this is you" floor marker removed (2026-11-17): yellow ring looked like a pickup, glow sat off-centre. Own critter = same shadow as everyone; yellow name tag marks you. */
.mate.me::before { left: 24px !important; right: 24px !important; bottom: -5px !important; height: 12px !important; border: 0 !important; background: #000a !important; box-shadow: none !important; }
/* critter alignment fix (2026-11-17): body art is 128px inside a 96px .mate box, anchored top-left, so every critter drew
   16px right + 32px low of its real floor spot (name tag on the legs, shadow off-centre, rings under your feet hard to hit).
   Centre the art on the box, feet on the floor point. */
#crowd .mate > .bod { margin: -32px 0 0 -16px; }
/* name tags v2 (2026-11-17): one tidy pill, every piece centred on the same line, same type scale */
#crowd .mate .nm { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; margin-top: 4px;
  background: rgba(8, 10, 22, .82); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 3px 8px -3px #000; font: 700 12px/1 'Space Grotesk', Inter, system-ui, sans-serif; letter-spacing: .01em; }
#crowd .mate .nm > * { margin: 0 !important; vertical-align: 0 !important; flex: none; }
#crowd .mate .nm .rkb { gap: 2px; font-size: 10px; }
#crowd .mate .nm .rkb svg { width: 10px; height: 9px; }
#crowd .mate .nm .adm, #crowd .mate .nm .utag, #crowd .mate .nm .dc, #crowd .mate .nm .bt, #crowd .mate .nm .afk-tag { padding: 2px 5px; border-radius: 5px; font: 800 8.5px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; }
#crowd .mate .nm .name-ico { width: 14px; height: 14px; }
/* ring-limit chip: top of the floor, clear of the floor hint */
.capchip { top: 322px; bottom: auto; }
.capchip { transition: opacity .6s; } .capchip.gone { opacity: 0; }
/* rank chip legibility (2026-11-17): bigger gem, crisp white number, chip tinted in the gem's colour, no glow blur */
.rkb { padding: 2px 6px 2px 4px; border-radius: 999px; gap: 3px; background: color-mix(in srgb, var(--gc, #fff) 22%, rgba(0,0,0,.55)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc, #fff) 45%, transparent); }
.rkb b, .rkb.sup b { color: #fff; text-shadow: 0 1px 1px #000; font: 800 11px/1 'Space Grotesk', Inter, sans-serif; }
.rkb svg { width: 12px; height: 11px; }
#crowd .mate .nm .rkb { font-size: 11px; padding: 2px 6px 2px 4px; }
#crowd .mate .nm .rkb svg { width: 12px; height: 11px; }
.board .rkb svg { width: 13px; height: 12px; }
/* chat names compact (2026-11-17): in chat the badges shrink to plain inline marks so the name + message lead */
.chatbox .msgs .rkb { padding: 0 !important; background: none !important; box-shadow: none !important; gap: 1px !important; margin-right: 4px !important; vertical-align: -1px !important; }
.chatbox .msgs .rkb b { font: 700 10px/1 'Space Grotesk', Inter, sans-serif !important; color: rgba(255,255,255,.6) !important; text-shadow: none !important; }
.chatbox .msgs .rkb svg { width: 10px !important; height: 9px !important; }
.chatbox .msgs .name-ico { width: 12px !important; height: 12px !important; margin-right: 3px !important; vertical-align: -1px !important; }
.chatbox .msgs .utag { font-size: 8px !important; padding: 1px 4px !important; margin-right: 4px !important; border-radius: 4px; vertical-align: 1px !important; }
.chatbox .msgs .adm { font-size: 8px !important; padding: 1px 4px !important; margin-right: 4px !important; }
.chatbox .msgs .who { font-size: 12.5px !important; margin-right: 5px !important; letter-spacing: 0 !important; }
.chatbox .msgs .utag { line-height: 1 !important; padding: 1px 3px !important; font-size: 7px !important; box-shadow: none !important; }
#merank[hidden] { display: none !important; }
/* MY BAG button + bag mode of the shop dialog (2026-11-17) */
.p1 .shopbig.bagbig { margin-right: 0 !important; background: linear-gradient(#3fe0c5, #14a58c) !important; color: #04221c !important; }
.p1 #my-profile { width: 100% !important; margin-left: 0 !important; margin-top: 8px !important; }
#shop.bagmode .shop-groups, #shop.bagmode .shop-tools, #shop.bagmode #shopsave, #shop.bagmode .profile-open { display: none !important; }
/* PRESTIGE (2026-11-17): star chip, card button, confirm dialog */
.rkb.prs { background: color-mix(in srgb, #ffd400 20%, rgba(0,0,0,.6)); box-shadow: inset 0 0 0 1px #ffd40088; }
.rkb .pstar { width: 12px; height: 12px; }
.chatbox .msgs .rkb .pstar { width: 10px !important; height: 10px !important; }
.emprog .ep-txt small .pstar { width: 11px; height: 11px; vertical-align: -1px; }
.emprog .ep-txt small b { color: #ffd65a; }
.prestigebtn { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 0; border-radius: 12px; cursor: pointer; color: #1a1200;
  background: linear-gradient(135deg, #fff1a8, #ffd400 45%, #ff9f1a); font: 800 13px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: .1em; box-shadow: 0 4px 0 #a86f00, 0 8px 22px -8px #ffc83d; }
.prestigebtn[hidden] { display: none; }
.prestigebtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a86f00; }
.prestigepop { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); color: var(--m-text, #eceef6); }
.prestigepop::backdrop { background: rgba(4, 5, 12, .82); }
.pp { position: relative; padding: 22px 22px 18px; border-radius: 20px; text-align: center; background: linear-gradient(165deg, #1d1a10, #0c0d16 55%); border: 1px solid #ffd40055;
  box-shadow: 0 0 0 1px #ffd40022, 0 30px 80px -20px #000, 0 0 80px -30px #ffd400; font-family: var(--m-font, Inter, sans-serif); }
.pp-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; color: #fff9; font-size: 26px; cursor: pointer; }
.pp-star { font-size: 44px; line-height: 1; filter: drop-shadow(0 0 14px #ffd400); }
.pp-t { margin-top: 6px; font: 900 italic 30px/1 'Space Grotesk', sans-serif; color: #ffd400; text-shadow: 2px 2px 0 #7a4a00; }
.pp-p { margin: 10px auto 14px; max-width: 400px; font-size: 13.5px; line-height: 1.45; color: #c9ccda; }
.pp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.pp-col { padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; }
.pp-col b { display: block; margin-bottom: 4px; font: 800 11px/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.pp-col ul { margin: 0; padding-left: 16px; } .pp-col li { margin: 2px 0; }
.pp-col.lose { background: rgba(255, 80, 80, .08); border: 1px solid rgba(255, 90, 90, .25); } .pp-col.lose b { color: #ff8a8a; }
.pp-col.keep { background: rgba(60, 220, 120, .07); border: 1px solid rgba(60, 220, 120, .25); } .pp-col.keep b { color: #6ff0a0; }
.pp-chk { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 10px; font-size: 13px; color: #e8e8f0; cursor: pointer; }
.pp-go { width: 100%; padding: 13px; border: 0; border-radius: 14px; cursor: pointer; font: 900 14px/1 'Space Grotesk', sans-serif; letter-spacing: .08em; color: #1a1200;
  background: linear-gradient(135deg, #fff1a8, #ffd400 45%, #ff9f1a); opacity: .55; transition: opacity .2s; }
.pp-go.armed { opacity: 1; box-shadow: 0 0 30px -6px #ffd400; }
.pp-go:disabled { opacity: .35; cursor: default; box-shadow: none; }
@media (max-width: 480px) { .pp-cols { grid-template-columns: 1fr; } }
/* emblems bigger (2026-11-17): only one shows now, so give it room to read */
#crowd .mate .nm .name-ico { width: 26px !important; height: 22px !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; }
#crowd .mate .nm .name-ico.ni-founder { width: 40px !important; }
.chatbox .msgs .name-ico { width: 20px !important; height: 17px !important; vertical-align: -4px !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; }
.chatbox .msgs .name-ico.ni-founder { width: 30px !important; }
#crowd .mate .nm .rkb svg { width: 15px; height: 14px; } #crowd .mate .nm .rkb { font-size: 12px; }
#crowd .mate .nm .rkb b { font-size: 12px; }
#crowd .mate .nm .utag { font-size: 12px !important; padding: 2px 5px !important; }
.chatbox .msgs .utag { font-size: 10px !important; }
#crowd .mate .nm .name-ico { width: 34px !important; height: 24px !important; } .chatbox .msgs .name-ico { width: 26px !important; height: 18px !important; }
/* changelog: titled entries (2026-11-18) */
.changelog li.cl-t { list-style: none; margin: 0 0 10px -16px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.changelog li.cl-t b { display: block; margin-bottom: 3px; font: 700 14px/1.25 'Space Grotesk', Inter, sans-serif; color: #ffd65a; }
.changelog li.cl-t span { display: block; font: 400 13.5px/1.45 Inter, system-ui, sans-serif; color: rgba(236, 238, 246, .82); }
/* achievements in profiles (2026-11-18) */
.profile-ach { margin-top: 16px; } .profile-ach > strong { display: block; margin-bottom: 8px; font: 800 12px/1 Inter, sans-serif; letter-spacing: .1em; color: #ffd65a; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ach { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 9px 10px 11px; border-radius: 12px;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); overflow: hidden; }
.ach .ach-ic { grid-row: 1 / 3; font-size: 24px; line-height: 1; text-align: center; filter: grayscale(1) opacity(.45); }
.ach b { font: 700 13px/1.15 'Space Grotesk', Inter, sans-serif; color: rgba(255,255,255,.55); }
.ach small { font: 500 11px/1.3 Inter, sans-serif; color: rgba(255,255,255,.45); }
.ach-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: rgba(255,255,255,.25); }
.ach.ach-t1, .ach.ach-t2, .ach.ach-t3 { box-shadow: inset 0 0 0 1px var(--ac); background: color-mix(in srgb, var(--ac) 10%, rgba(255,255,255,.03)); }
.ach.ach-t1 { --ac: #cd8a52; } .ach.ach-t2 { --ac: #c9d3e0; } .ach.ach-t3 { --ac: #ffd400; }
.ach:is(.ach-t1, .ach-t2, .ach-t3) .ach-ic { filter: none; } .ach:is(.ach-t1, .ach-t2, .ach-t3) b { color: #fff; } .ach:is(.ach-t1, .ach-t2, .ach-t3) small { color: var(--ac); font-weight: 700; }
.ach:is(.ach-t1, .ach-t2) .ach-bar { background: var(--ac); }
/* unlock toast */
.ach-pop { position: fixed; left: 50%; top: 18px; z-index: 9999; translate: -50% 0; display: flex; gap: 12px; align-items: center; padding: 10px 16px 10px 12px; border-radius: 14px;
  background: linear-gradient(160deg, #22233a, #0e0f1a); box-shadow: 0 0 0 1px var(--ac, #ffd400), 0 14px 40px -10px #000, 0 0 30px -10px var(--ac, #ffd400);
  color: #fff; font-family: Inter, sans-serif; animation: ach-in .5s cubic-bezier(.3,1.5,.5,1), ach-out .4s ease-in 4.2s forwards; pointer-events: none; }
.ach-pop .ap-ic { font-size: 28px; } .ach-pop small { display: block; font: 800 10px/1 Inter, sans-serif; letter-spacing: .12em; color: var(--ac, #ffd400); }
.ach-pop b { display: block; margin-top: 3px; font: 800 15px/1.1 'Space Grotesk', sans-serif; }
@keyframes ach-in { from { opacity: 0; transform: translateY(-20px) scale(.9); } } @keyframes ach-out { to { opacity: 0; transform: translateY(-14px); } }
.ach .ach-ic img { width: 30px; height: 30px; image-rendering: pixelated; display: block; margin: auto; }
.ach-pop .ap-ic img { width: 36px; height: 36px; image-rendering: pixelated; display: block; }

/* genre tag on what's playing (2026-11-20): visible even when muted */
.gtag { display: inline-flex; align-items: center; width: max-content; max-width: 100%; margin: 3px 0 2px; padding: 2px 8px; border-radius: 999px; font: 700 10px/1.3 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #eaf2ff; background: rgba(120, 160, 255, .18); border: 1px solid rgba(140, 180, 255, .35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtag[hidden] { display: none; }
.gtag.scr { margin: 0 8px; padding: 0 7px; font-size: 9px; letter-spacing: .1em; color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.gtag.c-genre { margin-top: 8px; }
.profile-taste { margin: 6px 0 0; font-size: 12px; opacity: .9; } .profile-taste b { color: #ffd23f; }

/* genre on jukebox pick cards (2026-11-20) */
.opt .opttags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.opt .opttags .moodtag { margin: 0; }
.gtag.opt { margin: 0; padding: 2px 7px; font-size: 9.5px; letter-spacing: .05em; color: #cfe0ff; background: rgba(90, 140, 255, .16); border-color: rgba(120, 165, 255, .32); }

/* admin player list: listener audio status (2026-11-20) */
.au-b.snd { background: rgba(80, 220, 140, .16); color: #8ff0b8; border-color: rgba(80, 220, 140, .4); }
.au-b.snd.muted, .au-b.snd.silent { background: rgba(255, 90, 90, .16); color: #ff9c9c; border-color: rgba(255, 90, 90, .4); }
.au-b.snd.paused, .au-b.snd.stream { background: rgba(255, 210, 63, .14); color: #ffe08a; border-color: rgba(255, 210, 63, .35); }
.au-b.snd.page { background: rgba(160,160,180,.14); color: #c9c9d6; border-color: rgba(160,160,180,.35); }
.au-b.snd.discord { background: rgba(88,101,242,.2); color: #b9c0ff; border-color: rgba(88,101,242,.5); }

/* win98.css */
/* Windows 98 stage (2026-11-17): live desktop on the back wall, see win98.js. Real Win98 icons in spr/win98. */
.w98 { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; font: 11px/1.2 Tahoma, 'MS Sans Serif', Arial, sans-serif; color: #000; pointer-events: none; }
#scene[data-theme="win98"] .w98 { display: block; }
#scene[data-theme="win98"] { background: linear-gradient(#008080 0 300px, #0b0f24 300px); }
#scene[data-theme="win98"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar, .spk) { display: none !important; }
#scene[data-theme="win98"] .truss span { font-size: 0; letter-spacing: 0; background: #000080; border-color: #c0c0c0; box-shadow: 2px 2px 0 #000; }
#scene[data-theme="win98"] .truss span::after { content: 'C:\\WINDOWS\\SPINDOK.EXE'; font: 700 12px Tahoma, Arial, sans-serif; letter-spacing: 1px; color: #fff; }
#scene[data-theme="win98"] .truss { border-image: linear-gradient(#dfdfdf, #808080) 10; }
#scene[data-theme="win98"] .lip { background: #c0c0c0; box-shadow: 0 0 14px #fff8; }
#scene[data-theme="win98"] .deckstage { background: #c0c0c0; border-color: #fff #808080 #808080 #fff; border-style: solid; }
#scene[data-theme="win98"] .boothfront { background: #c0c0c0; border: 2px solid; border-color: #fff #000 #000 #fff; }
#scene[data-theme="win98"] .boothfront span { color: #000080; text-shadow: none; }
#scene[data-theme="win98"] .screen { background: #000; border: 3px solid; border-color: #dfdfdf #404040 #404040 #dfdfdf; }
.w98 img { image-rendering: pixelated; }
/* desktop icons */
.w98-icons { position: absolute; z-index: 1; left: 6px; top: 34px; display: grid; gap: 6px; width: 84px; }
.w98-ic { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 76px; }
.w98-ic img { width: 32px; height: 32px; }
.w98-ic span { color: #fff; text-align: center; font-size: 10px; padding: 0 2px; }
.w98-ic.sel img { filter: sepia(1) hue-rotate(190deg) saturate(4) brightness(.7); } .w98-ic.sel span { background: #000080; outline: 1px dotted #ff0; }
/* windows */
.w98-win { position: absolute; background: #c0c0c0; border: 2px solid; border-color: #dfdfdf #000 #000 #dfdfdf; box-shadow: inset 1px 1px #fff, inset -1px -1px #808080; padding: 2px; }
.w98-win[hidden], .w98-start[hidden], .w98-toast[hidden] { display: none; }
.w98-tb { display: flex; align-items: center; gap: 3px; height: 16px; padding: 0 2px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; }
.w98-win.inactive .w98-tb { background: linear-gradient(90deg, #808080, #b5b5b5); color: #dfdfdf; }
.w98-tb img { width: 14px; height: 14px; } .w98-tb b { flex: 1; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w98-tb i { width: 14px; height: 12px; display: grid; place-items: center; font: 700 9px Arial; font-style: normal; color: #000; background: #c0c0c0; border: 1px solid; border-color: #fff #000 #000 #fff; }

.w98-menu { padding: 2px 4px; font-size: 11px; } .w98-menu u { text-decoration: underline; margin-right: 2px; }
.w98-txt { margin: 0; height: 64px; padding: 3px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; font: 11px/1.3 'Courier New', monospace; white-space: pre-wrap; overflow: hidden; }
.w98-txt::after { content: '|'; animation: w98-blink 1s steps(2) infinite; }
@keyframes w98-blink { 50% { opacity: 0; } }

.w98-wmp-body { padding: 4px; }
.w98-viz { display: flex; align-items: flex-end; gap: 2px; height: 40px; padding: 3px; background: #000; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.w98-viz span { flex: 1; background: linear-gradient(#ff0, #0c0); height: 30%; animation: w98-bar .5s ease-in-out infinite alternate; }
.w98-viz span:nth-child(3n) { animation-duration: .35s; } .w98-viz span:nth-child(4n+1) { animation-duration: .7s; } .w98-viz span:nth-child(5n+2) { animation-duration: .42s; }
@keyframes w98-bar { to { height: 95%; } }
.w98-np { margin-top: 4px; font-size: 10px; color: #000080; } .w98-song { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w98-seek { height: 6px; margin-top: 4px; background: #808080; border: 1px solid; border-color: #404040 #fff #fff #404040; } .w98-seek i { display: block; height: 100%; width: 0; background: #000080; }

.w98-mine-body { padding: 4px; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.w98-mine-top { display: flex; justify-content: space-between; align-items: center; padding: 3px; margin-bottom: 4px; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.w98-mine-top em { font: 700 14px 'Courier New', monospace; font-style: normal; color: #f00; background: #000; padding: 0 2px; letter-spacing: 1px; }
.w98-face { width: 20px; height: 20px; padding: 1px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.w98-face[data-f="wow"] { transform: scale(1.1); } .w98-face[data-f="dead"] { filter: grayscale(1) brightness(.8); transform: rotate(180deg); }
.w98-grid { display: grid; grid-template-columns: repeat(8, 18px); grid-auto-rows: 18px; border: 2px solid; border-color: #808080 #fff #fff #808080; width: max-content; }
.w98-grid i { background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; font: 700 11px Tahoma, Arial; font-style: normal; display: grid; place-items: center; }
.w98-grid i.open, .w98-grid i.boom, .w98-grid i.mine { border: 1px solid #808080; }
.w98-grid i[data-c="1"] { color: #00f; } .w98-grid i[data-c="2"] { color: #008000; } .w98-grid i[data-c="3"] { color: #f00; }
.w98-grid i.boom { background: #f00 url(/spr/win98/minesweeper_0.png) center / 14px no-repeat; } .w98-grid i.mine:not(.open) { background: #c0c0c0 url(/spr/win98/minesweeper_0.png) center / 14px no-repeat; }
/* start menu + taskbar */
.w98-start { position: absolute; left: 2px; top: 28px; display: flex; background: #c0c0c0; border: 2px solid; border-color: #dfdfdf #000 #000 #dfdfdf; box-shadow: inset 1px 1px #fff; z-index: 3; }
.w98-banner { width: 20px; background: linear-gradient(#000080, #1084d0); color: #c0c0c0; writing-mode: vertical-rl; transform: rotate(180deg); font: 700 15px Arial; padding: 4px 0; }
.w98-banner b { color: #fff; }
.w98-start ul { list-style: none; margin: 0; padding: 2px; width: 150px; }
.w98-start li { display: flex; align-items: center; gap: 6px; padding: 3px 6px; } .w98-start li img { width: 22px; height: 22px; }
.w98-start li.prog { background: #000080; color: #fff; } .w98-start li.sep { height: 0; padding: 0; margin: 3px 2px; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }
.w98-task { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 26px; border-bottom: 1px solid #808080; display: flex; align-items: center; gap: 4px; padding: 2px; background: #c0c0c0; border-top: 2px solid #fff; }
.w98-startbtn { display: flex; align-items: center; gap: 3px; height: 20px; padding: 0 5px; border: 2px solid; border-color: #fff #000 #000 #fff; font-weight: 700; }
.w98-startbtn.on { border-color: #000 #fff #fff #000; } .w98-startbtn img { width: 16px; height: 16px; }
.w98-tasks { display: flex; gap: 3px; flex: 1; min-width: 0; padding-left: 4px; }
.w98-tbtn { display: flex; align-items: center; gap: 3px; height: 20px; max-width: 150px; padding: 0 5px; border: 2px solid; border-color: #fff #000 #000 #fff; white-space: nowrap; overflow: hidden; font-size: 10px; }
.w98-tbtn.on { border-color: #000 #fff #fff #000; background: repeating-conic-gradient(#c0c0c0 0 25%, #fff 0 50%) 0 0 / 2px 2px; font-weight: 700; } .w98-tbtn img { width: 14px; height: 14px; }
.w98-tray { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border: 1px solid; border-color: #808080 #fff #fff #808080; } .w98-tray img { width: 14px; height: 14px; }
.w98-toast { position: absolute; right: 6px; top: 30px; width: 200px; z-index: 4; background: #c0c0c0; border: 2px solid; border-color: #dfdfdf #000 #000 #dfdfdf; padding: 2px; }
.w98-toast.pop { animation: w98-up .35s ease-out; } @keyframes w98-up { from { transform: translateY(40px); opacity: 0; } }
.w98-toast-b { padding: 4px 6px; background: #fffff0; border: 1px solid #808080; font-size: 10px; } .w98-toast-b p { margin: 2px 0 0; font-size: 11px; }
.w98-cur { position: absolute; left: 0; top: 0; z-index: 2400; transform: translate(480px, 150px); filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
.w98-cur.down { scale: .85; }

/* 2026-11-20 rework: random session, draggable windows (incl. onto the dance floor), extra apps */
.w98-win { position: absolute; left: 0; top: 0; }
.w98-win.opening { animation: w98-open .18s steps(3); } @keyframes w98-open { from { clip-path: inset(0 100% 100% 0); } }
.w98-win.onfloor { box-shadow: inset 1px 1px #fff, inset -1px -1px #808080, 0 14px 14px rgba(0,0,0,.5); }
.w98-win.dragging { outline: 2px dotted #808080; outline-offset: 1px; }
.w98-task, .w98-start, .w98-toast { z-index: 2; }
.w98-saver { position: absolute; left: 0; top: 0; z-index: 2; } .w98-saver[hidden], .w98-boot[hidden] { display: none; }
.w98-boot { position: absolute; inset: 0; z-index: 2; background: #000; color: #c0c0c0; font: 12px/1.35 'Courier New', monospace; padding: 40px 230px; }
.w98-boot pre { margin: 0; white-space: pre-wrap; }
.w98-boot.safe { display: grid; place-items: center; text-align: center; color: #ff8a00; font: 700 22px/1.3 Arial, sans-serif; padding: 0; }
.w98-boot.bsod { background: #0000aa; color: #fff; padding: 40px 240px; } .w98-boot.bsod b { background: #aaa; color: #0000aa; padding: 0 4px; } .w98-boot.bsod p { margin: 0 0 10px; text-align: left; } .w98-boot.bsod .c { text-align: center; }
.w98-boot.splash { padding: 0; background: linear-gradient(#1d5fd1, #6fa8ff 55%, #e8f1ff); display: grid; place-items: center; }
.sp-logo { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 12px; color: #fff; text-shadow: 2px 2px 0 #0004; }
.sp-logo .flag { grid-row: span 2; display: grid; grid-template-columns: 22px 22px; gap: 3px; transform: skew(-8deg) rotate(-4deg); }
.sp-logo .flag i { width: 22px; height: 18px; } .sp-logo .flag i:nth-child(1) { background: #f35325; } .sp-logo .flag i:nth-child(2) { background: #81bc06; } .sp-logo .flag i:nth-child(3) { background: #05a6f0; } .sp-logo .flag i:nth-child(4) { background: #ffba08; }
.sp-logo b { font: 700 13px Arial, sans-serif; } .sp-logo strong { font: 700 34px/1 'Franklin Gothic Medium', Arial, sans-serif; } .sp-logo em { font-style: normal; color: #ffe; margin-left: 6px; }
.sp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, transparent, #fff, #6cf, transparent) 0 0 / 30% 100% no-repeat #123; animation: sp-run 1.6s linear infinite; }
@keyframes sp-run { from { background-position: -40% 0; } to { background-position: 140% 0; } }
/* Internet Explorer */
.ie-tools { display: flex; align-items: center; gap: 2px; padding: 2px; border-bottom: 1px solid #808080; font-size: 10px; } .ie-tools span { padding: 1px 4px; border: 1px solid transparent; } .ie-tools span:first-child { border-color: #fff #808080 #808080 #fff; }
.ie-logo { margin-left: auto; width: 18px; height: 18px; }
.ie-addr { display: flex; align-items: center; gap: 4px; padding: 2px; font-size: 10px; } .ie-addr em { font-style: normal; color: #444; }
.ie-url { flex: 1; height: 15px; padding: 0 3px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; white-space: nowrap; overflow: hidden; font-size: 10px; line-height: 12px; }
.ie-page { height: 150px; overflow: hidden; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.ie-in.loading { clip-path: inset(0 0 calc(100% - var(--load)) 0); }
.ie-status { display: flex; align-items: center; gap: 4px; padding: 2px 3px 0; font-size: 10px; } .ie-st { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-status img { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; } .ie-bar { width: 50px; height: 9px; border: 1px solid #808080; } .ie-bar b { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #000080 0 6px, transparent 6px 8px); }
.ie-ctr { display: inline-flex; gap: 1px; vertical-align: middle; } .ie-ctr b { background: #000; color: #0f0; font: 700 11px 'Courier New', monospace; padding: 0 2px; }
.pg { min-height: 150px; padding: 6px 8px; font: 11px/1.35 'Times New Roman', serif; } .pg h1 { margin: 4px 0; font-size: 18px; text-align: center; } .pg p { margin: 5px 0; } .pg a { color: #00e; text-decoration: underline; } .pg table { border-collapse: collapse; margin: 4px auto; } .pg td { border: 1px solid #888; padding: 1px 6px; }
.pg .mq { overflow: hidden; white-space: nowrap; } .pg .mq span { display: inline-block; padding-left: 100%; animation: pg-mq 9s linear infinite; } @keyframes pg-mq { to { transform: translateX(-100%); } }
.pg .uc { margin: 6px auto; width: max-content; padding: 3px 10px; font: 700 11px Arial; color: #000; background: repeating-linear-gradient(45deg, #ffd800 0 8px, #000 8px 16px); } .pg .uc { text-shadow: 0 0 3px #ff0, 0 0 3px #ff0; }
.pg .blink { animation: pg-blink 1s steps(2) infinite; color: #f00; font-weight: 700; text-align: center; } @keyframes pg-blink { 50% { opacity: 0; } }
.pg-shrine { background: #000 radial-gradient(#fff 1px, transparent 1.5px) 0 0 / 22px 22px; color: #ff0; } .pg-shrine h1 { color: #0cf; font-family: 'Comic Sans MS', cursive; } .pg-shrine a { color: #0ff; } .pg-shrine .ring { text-align: center; color: #f0f; }
.pg-midi { background: #000080; color: #fff; } .pg-midi h1 { color: #ff0; font-family: Impact, Arial; letter-spacing: 1px; } .pg-midi a { color: #8ff; } .pg-midi td { border-color: #88f; }
.pg-search { background: #fff; color: #000; text-align: center; } .pg-search h1 { font: 700 24px Arial; color: #c00; } .pg-search h1 span { color: #00c; } .pg-search .sb { display: inline-block; width: 150px; padding: 1px 3px; border: 2px inset #ccc; text-align: left; font: 11px Arial; } .pg-search button { font: 10px Arial; } .pg-search ol { text-align: left; padding-left: 18px; } .pg-search i { color: #080; font-size: 10px; }
.pg-chips { background: #008000; color: #fff; } .pg-chips h1 { color: #f00; text-shadow: 1px 1px 0 #fff; font-family: Arial Black, Arial; } .pg-chips td { border-color: #0f0; } .pg-chips b { color: #ff0; font-family: 'Courier New', monospace; }
.pg-guest { background: #ffe4f2; color: #600060; } .pg-guest h1 { font-family: 'Comic Sans MS', cursive; color: #c06; } .pg-guest .gb { margin: 4px 0; padding: 3px 5px; border: 1px dashed #c06; background: #fff; }
.pg-home { background: #c0ffc0; color: #000; } .pg-home h1 { font-family: 'Comic Sans MS', cursive; color: #00f; text-shadow: 2px 2px #f0f; } .pg-home { text-align: center; }
/* Paint */
.pt-body { display: flex; gap: 3px; padding: 3px; background: #808080; } .pt-tools { display: grid; grid-template-columns: 12px 12px; gap: 1px; align-content: start; background: #c0c0c0; padding: 2px; } .pt-tools i { width: 12px; height: 12px; border: 1px solid; border-color: #fff #808080 #808080 #fff; }
.pt-cv { background: #fff; width: 200px; height: 120px; } .pt-pal { display: grid; grid-template-columns: repeat(8, 12px); gap: 1px; padding: 3px; } .pt-pal i { width: 12px; height: 11px; border: 1px solid; border-color: #808080 #fff #fff #808080; }
/* Solitaire / My Computer / dialogs */
.sol-felt { background: #008000; border: 2px solid; border-color: #808080 #fff #fff #808080; line-height: 0; } .sol-felt canvas { width: 240px; height: 150px; }
.mc-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.mc-ic { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; text-align: center; } .mc-ic img { width: 32px; height: 32px; } .mc-ic.sel span { background: #000080; color: #fff; }
.dlg-b { display: flex; gap: 10px; align-items: center; padding: 10px 8px 6px; } .dlg-b img { width: 32px; height: 32px; } .dlg-b p { margin: 0; }
.dlg-btns { display: flex; justify-content: center; gap: 8px; padding: 4px 0 6px; } .dlg-btns span { min-width: 60px; text-align: center; padding: 2px 6px; border: 2px solid; border-color: #fff #000 #000 #fff; } .dlg-btns .ok { outline: 1px solid #000; }

/* players can drag windows by the title bar and close them (2026-11-20) */
#scene[data-theme="win98"] .w98-win { pointer-events: auto; }
#scene[data-theme="win98"] .w98-win .w98-tb { cursor: move; touch-action: none; }
#scene[data-theme="win98"] .w98-win .w98-tb .x, #scene[data-theme="win98"] .dlg-btns span { cursor: pointer; }
#scene[data-theme="win98"] .truss { pointer-events: none; }

/* 2026-11-20 more apps + sites */
.dial-info { padding: 0 10px 4px 50px; font-size: 10px; color: #444; }
.msn-to { padding: 3px 5px; font-size: 10px; border-bottom: 1px solid #808080; } .msn-log { height: 92px; overflow: hidden; padding: 3px 5px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; font-size: 10px; }
.msn-log p { margin: 0 0 3px; } .msn-log b { color: #000080; font-weight: 400; } .msn-in { display: flex; gap: 4px; padding: 3px 0 0; } .msn-type { flex: 1; height: 26px; padding: 2px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; font-size: 10px; }
.msn-in em { font-style: normal; align-self: center; padding: 2px 8px; border: 2px solid; border-color: #fff #000 #000 #fff; }
.calc-d { margin: 4px; padding: 2px 4px; text-align: right; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; font: 12px 'Courier New', monospace; }
.calc-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px; } .calc-k i { font-style: normal; text-align: center; padding: 3px 0; color: #00f; border: 2px solid; border-color: #fff #000 #000 #fff; } .calc-k i:nth-child(4n) { color: #f00; }
.df-grid { display: grid; grid-template-columns: repeat(22, 1fr); gap: 1px; margin: 4px; padding: 3px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.df-grid i { height: 8px; background: #fff; } .df-grid i.a { background: #00c; } .df-grid i.b { background: #0cc; } .df-grid i.c { background: #c00; } .df-grid i.e { background: #fff; outline: 1px solid #ccc; } .df-grid i.d { background: #008; } .df-grid i.r { background: #f00; }
.df-st { padding: 2px 6px; font-size: 10px; }
.cp-fly { position: relative; display: flex; justify-content: space-between; padding: 8px 18px 2px; } .cp-fly img { width: 32px; height: 32px; }
.cp-fly i { position: absolute; left: 50px; top: 12px; width: 12px; height: 15px; background: #fff; border: 1px solid #000; animation: cp-fly 1s linear infinite; } @keyframes cp-fly { 50% { transform: translate(70px, -10px) rotate(160deg); } to { transform: translate(140px, 0) rotate(320deg); opacity: .2; } }
.cp-f { margin: 2px 8px; font-size: 10px; white-space: pre; } .cp-t { margin: 2px 8px; font-size: 10px; } .cp-bar { margin: 2px 8px; height: 12px; }
.dp-mon { margin: 6px auto; width: 120px; padding: 6px 6px 14px; background: #c0c0c0; border: 2px solid; border-color: #fff #000 #000 #fff; } .dp-scr { height: 70px; background: #008080; border: 1px solid #000; }
.dp-list { margin: 4px 8px; height: 60px; overflow: hidden; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; } .dp-list i { display: block; font-style: normal; padding: 0 4px; font-size: 10px; } .dp-list i.on { background: #000080; color: #fff; }
.w98-win.hung { filter: grayscale(.4) brightness(.95); } .w98-cur.busy path { fill: #ff0; }
.pg .sm { font-size: 9px; color: #666; }
.pg-million { background: #ff0; color: #f00; text-align: center; font-family: 'Comic Sans MS', cursive; } .pg-million button { font: 700 12px Arial; background: #0f0; border: 3px outset #0f0; }
.pg-auction { background: #fff; } .pg-auction h1 { color: #c00; font-family: Arial; } .pg-auction td { border-color: #ccc; }
.pg-free { background: #000; color: #0f0; font-family: 'Courier New', monospace; } .pg-free h1 { color: #ff0; font-size: 14px; } .pg-free a { color: #0ff; } .pg-free .dl { color: #f80; }
.pg-forum { background: #e5e5f7; } .pg-forum h1 { font: 700 15px Verdana, Arial; color: #335; text-align: left; } .pg-forum .fp { display: grid; grid-template-columns: 90px 1fr; gap: 6px; padding: 3px; margin: 2px 0; background: #fff; border: 1px solid #99c; font: 10px Verdana, Arial; } .pg-forum .fp b { color: #006; overflow: hidden; text-overflow: ellipsis; }
.pg-rings { background: #002; color: #ff0; text-align: center; } .pg-rings .rg { display: inline-block; width: 16px; height: 16px; margin: 0 2px; background: url(/spr/ring.png) 0 0 / 64px 16px; image-rendering: pixelated; animation: pg-ring .4s steps(4) infinite; } @keyframes pg-ring { to { background-position: -64px 0; } } .pg-rings a { color: #fc0; }
.pg-wx { background: linear-gradient(#9cf, #fff); } .pg-wx table { width: 100%; text-align: center; } .pg-wx th { background: #36c; color: #fff; }
.pg-html { background: #fff; } .pg-html pre { background: #eee; border: 1px solid #999; padding: 4px; font-size: 10px; white-space: pre-wrap; }
.pg-space { background: #000 radial-gradient(#fff 1px, transparent 1.5px) 0 0 / 30px 30px; color: #fff; text-align: center; } .pg-space h1 { font-family: Impact, Arial; color: #f80; letter-spacing: 2px; } .pg-space a { color: #8cf; }
.pg-space .pl { position: relative; height: 70px; } .pg-space .pl i { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; animation: pg-orbit 5s linear infinite; }
.pg-space .pl i:nth-child(2) { width: 12px; height: 12px; animation-duration: 3.5s; } .pg-space .pl i:nth-child(3) { animation-duration: 7s; } .pg-space .pl i:nth-child(4) { width: 10px; height: 10px; animation-duration: 2.6s; }
@keyframes pg-orbit { from { transform: rotate(0) translateX(50px) rotate(0); } to { transform: rotate(360deg) translateX(50px) rotate(-360deg); } }

/* app.css */
/* App + alerts dialog (2026-11-27), modern chrome like the changelog */
.mehead .appbtn { margin: 8px 0 0 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(120,170,255,.35); background: rgba(80,130,255,.12); color: #cfe0ff; font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.mehead .appbtn:hover, .mehead .appbtn:focus-visible { background: rgba(80,130,255,.28); color: #fff; }
dialog.apppop { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #0f1220; color: #e8ebf7; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog.apppop::backdrop { background: rgba(4,6,14,.8); }
.apppop .ap-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font: 700 17px 'Space Grotesk', Inter, sans-serif; }
.apppop .ap-head button { border: 0; background: rgba(255,255,255,.08); color: #fff; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; }
.apppop section { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); font: 400 14px/1.45 Inter, system-ui, sans-serif; }
.apppop section:last-child { border-bottom: 0; }
.apppop h3 { margin: 0 0 6px; font: 700 13px 'Space Grotesk', Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #9fb4ff; }
.apppop p { margin: 0 0 8px; color: rgba(232,235,247,.78); }
.apppop .ap-btn { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #4f7bff, #3457e0); color: #fff; font: 700 12px/1 Inter, sans-serif; letter-spacing: .06em; cursor: pointer; }
.apppop .ap-btn.on { background: rgba(255,255,255,.1); color: #e8ebf7; border: 1px solid rgba(255,255,255,.18); }
.apppop .ap-btn:disabled { opacity: .55; cursor: wait; }
.apppop .app-kinds { display: grid; gap: 8px; margin: 12px 0 6px; }
.apppop .app-kind { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.apppop .app-kind input { width: 18px; height: 18px; accent-color: #4f7bff; }
.apppop .app-kind input:disabled + span { opacity: .5; }
.apppop small { color: rgba(232,235,247,.5); font-size: 12px; }
/* synced lyrics bubble above DJ Spindok (2026-11-27) */
.lyrbub { position: absolute; left: 480px; top: 160px; z-index: 1990; width: max-content; max-width: 420px; padding: 7px 12px; pointer-events: none; text-align: center;
  transform: translate(-50%, -100%) scale(var(--ui, 1)); transform-origin: 50% 100%; opacity: 0; translate: 0 6px; transition: opacity .25s, translate .25s;
  background: rgba(8, 12, 34, .88); color: #fff; border: 3px solid hsl(var(--hue, 220) 100% 62%); border-radius: 10px;
  box-shadow: 0 0 calc(4px + var(--beat, 0) * 10px) hsl(var(--hue, 220) 100% 60% / .7); font: italic 700 14px/1.3 "Liberation Sans", Arial, sans-serif; }
.lyrbub::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid #0000; border-top-color: hsl(var(--hue, 220) 100% 62%); }
.lyrbub.show { opacity: 1; translate: 0 0; }
body.lurk .lyrbub { display: none; }
/* beat-map drop moment (2026-11-27): 2-bar build, then flash + crowd jumps on the beat for a bar */
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2500; opacity: 0; background: radial-gradient(ellipse at 50% 40%, #fff 0, #fff8 35%, #fff0 75%); }
.scene.buildfx > .floor, .scene.buildfx > .beams { filter: brightness(.55) saturate(1.3); transition: filter 1.6s ease-in; }
.scene.buildfx #crowd { filter: brightness(.8); transition: filter 1.6s ease-in; }
.scene.dropfx::after { animation: dropflash .55s ease-out 1; }
.scene.dropfx { animation: dropshake .28s steps(2) 1; }
.scene.dropfx .mate .bod img, .scene.dropfx .dj { animation: dropjump var(--bt, .5s) cubic-bezier(.25, .9, .4, 1) 4; }
@keyframes dropflash { 0% { opacity: .75; } 100% { opacity: 0; } }
@keyframes dropshake { 0% { translate: 3px -2px; } 50% { translate: -3px 2px; } 100% { translate: 0 0; } }
@keyframes dropjump { 0%, 100% { translate: 0 0; } 35% { translate: 0 -24px; } }
/* rhythm drops (2026-11-27) */
.rhythmfx { position: absolute; left: 0; top: 0; width: 960px; z-index: 2400; pointer-events: none; opacity: 0; transition: opacity .3s; image-rendering: pixelated; }
.rhythmfx.on { opacity: 1; pointer-events: auto; cursor: pointer; touch-action: none; }
body.lurk .rhythmfx, body.lurk .rhythmboard { display: none; }
.rhythmboard { position: absolute; right: 18px; top: 150px; z-index: 2450; min-width: 190px; padding: 10px 14px; border-radius: 10px; pointer-events: none;
  background: rgba(8, 12, 34, .9); border: 3px solid #ffd400; color: #fff; font: 10px/1.6 "Press Start 2P", monospace; opacity: 0; translate: 20px 0; transition: opacity .4s, translate .4s; }
.rhythmboard.show { opacity: 1; translate: 0 0; }
.rhythmboard b { display: block; color: #ffe14d; margin-bottom: 6px; }
.rhythmboard ol { margin: 0; padding-left: 18px; }
.rhythmboard li span { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.rhythmboard li em { float: right; font-style: normal; color: #8fd3ff; margin-left: 10px; }
/* weekly raid boss (2026-11-27): same fight UI, bigger and gold-rimmed */
.bossfight.raid .boss-spr { filter: drop-shadow(0 0 8px #ffd400) drop-shadow(0 0 22px #ff9a00); }
.bossfight.raid .boss-hp i { background: linear-gradient(90deg, #ffd400, #ff7a00); }
.bossfight.raid .boss-flavor { color: #ffe14d; }
/* song cards (2026-11-27) */
.shopbig.cardsbig { background: linear-gradient(180deg, #6a3cff, #4320c9); }
.scard { --rc: #8a93a8; position: relative; width: 132px; padding: 6px 6px 5px; border-radius: 8px; background: #121730; border: 3px solid var(--rc); box-shadow: 0 0 0 2px #05081c, 0 4px 0 #05081c; color: #fff; overflow: hidden; }
.scard.r-u { --rc: #47d16c; } .scard.r-r { --rc: #3aa0ff; } .scard.r-e { --rc: #b45cff; } .scard.r-l { --rc: #ffd400; }
.scard .scd-art { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #05081c; }
.scard .scd-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scard .scd-t { margin-top: 5px; font: 700 12px/1.2 Inter, system-ui, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 29px; }
.scard .scd-a { font: 500 11px/1.25 Inter, system-ui, sans-serif; color: rgba(232,235,247,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .scd-f { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; font: 8px/1 "Press Start 2P", monospace; color: var(--rc); }
.scard .scd-n { color: #fff; }
.scard.gone { opacity: .6; }
.scard.r-e::after, .scard.r-l::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, rgba(255,240,160,.25) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; animation: holo 3.2s ease-in-out infinite; }
.scard.r-e::after { background-image: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.3) 45%, rgba(200,150,255,.25) 50%, transparent 65%); animation-duration: 4.2s; }
@keyframes holo { 0% { background-position: -150% 0; } 60%, 100% { background-position: 250% 0; } }
.cardpull { position: absolute; right: 22px; bottom: 26px; z-index: 2460; display: grid; justify-items: center; gap: 6px; pointer-events: none; opacity: 0; translate: 0 40px; rotate: 8deg; transition: opacity .45s, translate .45s cubic-bezier(.2,1.4,.4,1), rotate .45s; }
.cardpull.show { opacity: 1; translate: 0 0; rotate: 0deg; }
.cardpull .cp-h { font: 9px/1 "Press Start 2P", monospace; color: #ffe14d; background: rgba(8,12,34,.9); padding: 5px 8px; border-radius: 6px; }
body.lurk .cardpull { display: none; }
dialog.cardbook { width: min(900px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #0f1220; color: #e8ebf7; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog.cardbook::backdrop { background: rgba(4,6,14,.8); }
.cardbook .cb-in { display: flex; flex-direction: column; max-height: inherit; }
.cardbook .cb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 6px; font: 700 17px 'Space Grotesk', Inter, sans-serif; }
.cardbook .cb-head button { border: 0; background: rgba(255,255,255,.08); color: #fff; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; flex: none; }
.cardbook .cb-sub { padding: 0 18px; font: 13px/1.4 Inter, sans-serif; color: rgba(232,235,247,.65); }
.cardbook .cb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cardbook .cb-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #e8ebf7; font: 600 12px Inter, sans-serif; cursor: pointer; }
.cardbook .cb-chip.on { background: #e8ebf7; color: #0f1220; }
.cardbook .cb-chip.r-l:not(.on) { border-color: #ffd40088; } .cardbook .cb-chip.r-e:not(.on) { border-color: #b45cff88; } .cardbook .cb-chip.r-r:not(.on) { border-color: #3aa0ff88; } .cardbook .cb-chip.r-u:not(.on) { border-color: #47d16c88; }
.cardbook .cb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; justify-items: center; padding: 16px 18px 20px; overflow: auto; }
.cardbook .cb-empty { grid-column: 1 / -1; color: rgba(232,235,247,.7); font: 14px/1.5 Inter, sans-serif; text-align: center; padding: 30px 10px; }
@media (max-width: 520px) { .cardbook .cb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; } .scard { width: 100%; } }
/* admin growth report (2026-11-27) */
.growthdlg .gr-body { padding: 14px 18px 18px; overflow: auto; font: 14px/1.45 Inter, sans-serif; }
.growthdlg .gr-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.growthdlg .gr-tabs button { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #e8ebf7; cursor: pointer; font: 600 12px Inter, sans-serif; }
.growthdlg .gr-tabs button.on { background: #e8ebf7; color: #0f1220; }
.growthdlg .gr-bars { display: flex; align-items: flex-end; gap: 2px; height: 60px; margin: 8px 0 14px; }
.growthdlg .gr-bars i { flex: 1; background: #4f7bff; border-radius: 2px 2px 0 0; min-width: 3px; }
.growthdlg .gr-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.growthdlg .gr-t th, .growthdlg .gr-t td { text-align: right; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.growthdlg .gr-t th:first-child, .growthdlg .gr-t td:first-child { text-align: left; }
.growthdlg .gr-note { color: rgba(232,235,247,.55); font-size: 12px; margin-top: 12px; }
/* share pill + invite share button (2026-11-27) */
.sharepill { position: absolute; left: 50%; bottom: 22px; z-index: 2470; translate: -50% 30px; opacity: 0; transition: opacity .35s, translate .35s cubic-bezier(.2,1.4,.4,1);
  padding: 11px 18px; border-radius: 999px; border: 2px solid #05081c; background: linear-gradient(180deg, #ffe14d, #ffb800); color: #1a1200; font: 10px/1 "Press Start 2P", monospace; cursor: pointer; box-shadow: 0 4px 0 #05081c, 0 0 18px #ffd40088; }
.sharepill.show { opacity: 1; translate: -50% 0; }
body.lurk .sharepill { display: none; }
.refbox .refshare { margin-top: 8px; width: 100%; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,212,0,.5); background: rgba(255,212,0,.12); color: #ffe14d; font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.refbox .refshare:hover { background: rgba(255,212,0,.25); }
.scard[tabindex] { cursor: pointer; } .scard[tabindex]:hover { translate: 0 -3px; }
/* wrong song (2026-11-27) */
.wrongbtn { margin: 2px 0 0; padding: 0; border: 0; background: none; color: rgba(232,235,247,.4); font: 500 11px/1.3 Inter, system-ui, sans-serif; text-decoration: underline dotted; cursor: pointer; }
.wrongbtn:hover, .wrongbtn:focus-visible { color: #ffb4b4; }
body.lurk .wrongbtn { display: none; }
.wrongdlg .wr-body { padding: 12px 18px 18px; overflow: auto; font: 14px/1.45 Inter, sans-serif; }
.wrongdlg .wr-scan { color: rgba(232,235,247,.6); font-size: 12px; margin: 0 0 12px; }
.wrongdlg .wr-item { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 5px; }
.wrongdlg .wr-t b { display: block; } .wrongdlg .wr-t span { color: rgba(232,235,247,.65); font-size: 13px; }
.wrongdlg .wr-r, .wrongdlg .wr-s { font-size: 12px; color: #ffd28a; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.wrongdlg .wr-s { color: #8fd3ff; }
.wrongdlg .wr-a { display: flex; gap: 8px; }
.wrongdlg .wr-a button { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #e8ebf7; font: 600 12px Inter, sans-serif; cursor: pointer; }
.wrongdlg .wr-a button[data-a="pull"] { background: rgba(255,80,80,.18); border-color: rgba(255,110,110,.5); }

/* chips.css */
/* Chip's Challenge stage (2026-11-20): MS game window on the back wall, CC creatures on the floor. See chips.js. */
.cc { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; z-index: 1; background: url(/spr/chips/wall.png) 0 0 / 960px 300px; font: 11px/1.25 Arial, sans-serif; }
#scene[data-theme="chips-cc"] .cc { display: block; }
#scene[data-theme="chips-cc"] { background: linear-gradient(#008000 0 300px, #06140a 300px); }
#scene[data-theme="chips-cc"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar, .spk) { display: none !important; }
#scene[data-theme="chips-cc"] .truss { border-image: linear-gradient(#fff, #c0c0c0 40%, #808080) 10; }
#scene[data-theme="chips-cc"] .truss span { font-size: 0; letter-spacing: 0; background: #c0c0c0; border-color: #fff #404040 #404040 #fff; box-shadow: 2px 2px 0 #000; transform: translateX(-50%); }
#scene[data-theme="chips-cc"] .truss span::after { content: "CHIP'S CHALLENGE"; font: 900 13px Arial, sans-serif; letter-spacing: 2px; color: #f00; text-shadow: 1px 1px 0 #600; }
#scene[data-theme="chips-cc"] .lip { background: #c0c0c0; box-shadow: 0 0 14px #3f3a; }
#scene[data-theme="chips-cc"] .deckstage { background: #c0c0c0; border-color: #fff #808080 #808080 #fff; border-style: solid; }
#scene[data-theme="chips-cc"] .boothfront { background: #c0c0c0; border: 2px solid; border-color: #fff #404040 #404040 #fff; }
#scene[data-theme="chips-cc"] .boothfront span { color: #f00; text-shadow: 1px 1px 0 #600; }
#scene[data-theme="chips-cc"] .screen { background: #000; border: 3px solid; border-color: #808080 #fff #fff #808080; }
.cc canvas, .cc img, .cc-mob, .cc-ic, .cc-deck, .cc-lcd i, .cc-inv i { image-rendering: pixelated; }
/* game window: the viewport with the MS bevel */
.cc-game { position: absolute; left: 6px; top: 12px; width: 192px; height: 256px; padding: 4px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; box-shadow: 2px 2px 0 #0006; }
.cc-game canvas { display: block; width: 192px; height: 256px; background: #000; }
.cc-title { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 4px 6px; background: #000; border: 1px solid #808080; text-align: center; color: #ff0; font-weight: 700; }
.cc-title b { display: block; color: #0ff; letter-spacing: 1px; }
.cc-title[hidden], .cc-win[hidden], .cc-box[hidden], .cc-hint[hidden] { display: none; }
.cc-win { position: absolute; left: 4px; top: 4px; width: 192px; height: 256px; object-fit: cover; background: #000; animation: cc-in .35s steps(4); }
@keyframes cc-in { from { clip-path: inset(50% 50%); } to { clip-path: inset(0); } }
.cc-box { position: absolute; left: 14px; right: 14px; top: 92px; background: #c0c0c0; border: 2px solid; border-color: #fff #000 #000 #fff; box-shadow: 3px 3px 0 #0008; text-align: center; padding-bottom: 6px; }
.cc-boxtb { background: #000080; color: #fff; font-weight: 700; padding: 1px 4px; text-align: left; }
.cc-box p { margin: 8px 6px; color: #000; font-weight: 700; }
.cc-ok { display: inline-block; padding: 1px 16px; border: 2px solid; border-color: #fff #000 #000 #fff; outline: 1px solid #000; color: #000; }
/* right panel: real panel art + LCD digits (lcd.png = blank,0-9,- ; green row then yellow row) */
.cc-panel { position: absolute; left: 796px; top: 4px; width: 146px; height: 292px; background: url(/spr/chips/panel.png); box-shadow: 2px 2px 0 #0006; }
.cc-lcd { position: absolute; left: 45px; display: flex; gap: 3px; }
.cc-lcd.lv { top: 33px; } .cc-lcd.tm { top: 95px; } .cc-lcd.cl { top: 185px; }
.cc-lcd i { width: 14px; height: 23px; background: url(/spr/chips/lcd.png) 0 0 / 168px 46px; }
.cc-inv { position: absolute; left: 8px; top: 216px; width: 128px; height: 64px; display: grid; grid-template-columns: repeat(4, 32px); }
.cc-inv i { width: 32px; height: 32px; background: url(/spr/chips/spr.png) 32px 0 no-repeat; }
.cc-hint { position: absolute; left: 6px; top: 212px; width: 122px; min-height: 60px; padding: 4px 5px; background: #000; color: #0ff; font: 700 10px/1.25 Arial, sans-serif; border: 2px solid; border-color: #808080 #fff #fff #808080; }
/* deck props: socket + animated exit */
.cc-deck { position: absolute; top: 222px; width: 52px; height: 52px; cursor: pointer; background: url(/spr/chips/tiles.png) 0 0 / 364px 832px; filter: drop-shadow(2px 3px 0 #0007); }
.cc-deck.sock { left: 262px; background-position: -104px -104px; }
.cc-deck.exit { left: 646px; background-position: -52px -260px; }
.cc-deck.exit[data-f="1"] { background-position: -156px -520px; } .cc-deck.exit[data-f="2"] { background-position: -156px -572px; }
.cc-deck:hover { filter: brightness(1.15) drop-shadow(0 0 6px #ff0); }
/* dance floor creatures (64px = 2x, spr.png scaled to 192x1024) */
.cc-mob { position: absolute; width: 80px; height: 80px; pointer-events: auto; cursor: pointer; background: url(/spr/chips/spr.png) 0 0 / 240px 1280px no-repeat;
  transition: left .38s steps(4), top .38s steps(4); filter: drop-shadow(0 5px 2px rgba(0,0,0,.45)); }
#scene:not([data-theme="chips-cc"]) :is(.cc-mob, .cc-ic) { display: none; }
.cc-mob:hover { filter: drop-shadow(0 0 7px #ff0) drop-shadow(0 5px 2px rgba(0,0,0,.45)); }
.cc-mob.poke { animation: hop .45s cubic-bezier(.3,1.6,.5,1); }
.cc-ic { position: absolute; width: 56px; height: 56px; pointer-events: none; background: url(/spr/chips/ic.png) 0 0 / 56px 56px; animation: cc-bob 1s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px #3f3); }
@keyframes cc-bob { to { transform: translateY(-6px); } }

/* palace.css */
/* The Palace stage (2026-11-20, v2): art from the ORIGINAL 1999 Palace client (archive.org palace-user-win):
   default props from PALACE.PRP, classic roundhead faces, Palace32.exe buttons + splash logo, tutorial client screenshot.
   See palace.js and spr/palace/PROVENANCE.md. */
.pal { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; z-index: 1; overflow: hidden; font: 11px/1.3 Verdana, Geneva, sans-serif; color: #000; }
#scene[data-theme="palace-chat"] .pal { display: block; }
#scene[data-theme="palace-chat"] { background: linear-gradient(#0b1430 0 300px, #04201c 300px); }
#scene[data-theme="palace-chat"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar, .spk) { display: none !important; }
.pal img, .pal-av, .pal-av img { image-rendering: pixelated; }
.pal-bg { position: absolute; inset: -20px; background: url(/spr/palace/beach.png) 50% 60% / 1000px auto; filter: blur(4px) brightness(.7) saturate(1.15); }
.pal-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 55%, #0008); }
#scene[data-theme="palace-chat"] .truss { border-image: linear-gradient(#e8e8e8, #a8a8a8) 10; border-left-width: 0; border-right-width: 0; }
#scene[data-theme="palace-chat"] .truss span { font-size: 0; letter-spacing: 0; padding: 2px 8px; background: #fff; border: 2px solid #1d3a7a; border-radius: 3px; box-shadow: 0 2px 0 #0006; }
#scene[data-theme="palace-chat"] .truss span::after { content: ""; display: inline-block; width: 64px; height: 24px; background: url(/spr/palace/logo99.png) 50% 50% / contain no-repeat; image-rendering: auto; }
#scene[data-theme="palace-chat"] .lip { background: #d22; box-shadow: 0 0 16px #f336; }
#scene[data-theme="palace-chat"] .deckstage { background: #c0c0c0; border-color: #fff #808080 #808080 #fff; border-style: solid; }
#scene[data-theme="palace-chat"] .boothfront { background: #c0c0c0; border: 2px solid; border-color: #fff #404040 #404040 #fff; }
#scene[data-theme="palace-chat"] .boothfront span { color: #1d3a7a; text-shadow: none; }
#scene[data-theme="palace-chat"] .beams i { background: linear-gradient(#9fd3ff44, transparent); }
/* real players' chat bubbles become Palace balloons on this stage */
#scene[data-theme="palace-chat"] .mate > .bub { border: 1px solid #000; border-radius: 14px; color: #000; font: 400 13px/1.3 Verdana, Geneva, sans-serif; box-shadow: 2px 2px 0 #0004; }
#scene[data-theme="palace-chat"] .mate > .bub::after { border-top-color: #000; margin-left: -6px; border-width: 6px; }

/* left: the real 1999 client window (417x383 screenshot, shown at .72) with live avatars on its beach */
.pal-c99 { position: absolute; left: 8px; top: 9px; width: 417px; height: 383px; transform: scale(.72); transform-origin: 0 0; background: url(/spr/palace/client99.png); box-shadow: 3px 3px 0 #0008; }
.pal-room { position: absolute; left: 5px; top: 42px; width: 406px; height: 304px; overflow: hidden; }
.pal-stat { position: absolute; left: 8px; top: 347px; width: 330px; height: 13px; background: #333; color: #ddd; font: 10px/13px Arial, sans-serif; white-space: nowrap; overflow: hidden; }
.pal-in { position: absolute; left: 11px; top: 363px; width: 306px; height: 14px; background: #fff; font: 11px/14px Arial, sans-serif; white-space: nowrap; overflow: hidden; }
.pal-in i { display: inline-block; width: 1px; height: 11px; margin-left: 1px; vertical-align: -2px; background: #000; animation: pal-caret 1s steps(1) infinite; }
@keyframes pal-caret { 50% { opacity: 0; } }

/* right: room list + the client's own toolbar buttons */
.pal-w { position: absolute; background: #c0c0c0; border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 2px 2px 0 #0008; padding: 2px; }
.pal-tb { height: 18px; display: flex; align-items: center; gap: 4px; padding: 0 3px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; font-size: 11px; white-space: nowrap; overflow: hidden; }
.pal-tb .x { margin-left: auto; width: 14px; height: 12px; background: #c0c0c0; border: 1px solid; border-color: #fff #404040 #404040 #fff; color: #000; font: 700 9px/10px Arial; text-align: center; }
.pal-list { left: 772px; top: 10px; width: 176px; }
.pal-rows { margin-top: 2px; background: #fff; border: 1px solid; border-color: #404040 #fff #fff #404040; height: 158px; overflow: hidden; }
.pal-rows div { display: flex; justify-content: space-between; padding: 1px 5px; font-size: 10px; white-space: nowrap; }
.pal-rows div.on { background: #000080; color: #fff; }
.pal-rows div b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.pal-btns { display: grid; grid-template-columns: repeat(5, 31px); gap: 2px; justify-content: center; margin-top: 4px; }
.pal-btns img { width: 31px; height: 31px; display: block; }

/* avatars: classic roundhead (rh.png, 44px cells, 13 faces x 16 colours) + real props as children */
.pal-av { position: absolute; width: 44px; height: 44px; }
.pal-av > .f { position: absolute; inset: 0; background: url(/spr/palace/rh.png) 0 0 / 572px 704px no-repeat; }
.pal-av > img { position: absolute; pointer-events: none; }
.pal-bal { position: absolute; bottom: 100%; left: 50%; margin-bottom: 6px; width: max-content; max-width: 300px; padding: 6px 14px; background: #fff; border: 2px solid #000; border-radius: 22px; z-index: 5;
  font: 400 24px/1.25 Verdana, Geneva, sans-serif; color: #000; transform: translateX(-50%) scale(.5); transform-origin: 50% 100%; box-shadow: 4px 4px 0 #0004; image-rendering: auto; }
.pal-bal::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -9px; border: 9px solid #0000; border-top-color: #000; }
.pal-bal.think { border-radius: 60px; border-style: dotted; }
.pal-bal.think::after { border: 0; width: 12px; height: 12px; margin: 4px 0 0 -6px; border-radius: 50%; background: #fff; outline: 2px solid #000; }
.pal-bal.shout { border-radius: 2px; font-weight: 700; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #000; }
.pal-room .pal-bal { font-size: 26px; margin-bottom: 18px; }

/* floor regulars: 44px avatars drawn at 2x, pixel-crisp like the old client */
.pal-reg { position: absolute; left: 0; top: 0; width: 88px; height: 88px; margin: -88px 0 0 -44px; transition: transform 1.6s cubic-bezier(.45,.05,.55,.95); cursor: pointer; pointer-events: auto; }
#scene:not([data-theme="palace-chat"]) .pal-reg { display: none; }
.pal-reg > .pal-av { left: 22px; top: 22px; transform: scale(1.3); transform-origin: 50% 100%; filter: drop-shadow(0 3px 1px #0007); animation: pal-bob var(--bt, .5s) ease-in-out infinite alternate; }
.pal-reg:hover > .pal-av { filter: drop-shadow(0 0 3px #ff0) drop-shadow(0 3px 1px #0007); }
@keyframes pal-bob { to { translate: 0 -2px; } }
.pal-nm { position: absolute; top: 100%; left: 50%; margin-top: 4px; padding: 1px 8px; background: #000; color: #fff; font: 400 22px Verdana, Geneva, sans-serif; white-space: nowrap; transform: translateX(-50%) scale(.5); transform-origin: 50% 0; }
.pal-reg > .pal-bal { margin-bottom: 30px; }
/* doll avs: native size, pixel-crisp, face the way they walk */
.pal-doll { transition: transform 2.2s cubic-bezier(.45,.05,.55,.95), opacity .8s; }
.pal-db { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; filter: drop-shadow(0 4px 2px #0007); animation: pal-bob var(--bt, .5s) ease-in-out infinite alternate; }
.pal-doll.flip .pal-db { scale: -1 1; }
.pal-doll:hover .pal-db { filter: drop-shadow(0 0 3px #ff0) drop-shadow(0 4px 2px #0007); }
.pal-doll > .pal-bal { margin-bottom: 8px; }
.pal-reg.in { animation: pal-in .8s ease-out; } .pal-reg.out { opacity: 0; transition: opacity .8s; }
@keyframes pal-in { from { opacity: 0; } }

/* msagents.css */
/* Bonzi + Clippy on the PC stages' dance floor (msagents.js) */
.msa { position: absolute; pointer-events: auto; cursor: pointer; background-repeat: no-repeat; filter: drop-shadow(0 6px 3px rgba(0,0,0,.4)); }
.msa:hover { filter: drop-shadow(0 0 8px #ffe14a) drop-shadow(0 6px 3px rgba(0,0,0,.4)); }
.msa.zip { transform: scale(.35) translateY(30px); opacity: .6; transition: transform .25s, opacity .25s; }
.msa-bub { position: absolute; z-index: 2300; width: 236px; padding: 8px 10px; background: #ffffcc; color: #000; border: 1px solid #000; border-radius: 10px;
  font: 12px/1.3 Tahoma, 'MS Sans Serif', Arial, sans-serif; box-shadow: 3px 3px 0 rgba(0,0,0,.35); pointer-events: auto; transform: translateY(-100%); animation: msa-pop .18s ease-out; }
.msa-bub::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 16px; height: 10px; background: #ffffcc; border: 1px solid #000; border-top: 0; clip-path: polygon(0 0, 100% 0, 30% 100%); }
.msa-bub.bonzi { background: #fff; border-color: #6b3fa0; } .msa-bub.bonzi::after { background: #fff; border-color: #6b3fa0; }
.msa-bub p { margin: 0 0 6px; }
.msa-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.msa-opts button { font: 11px Tahoma, Arial, sans-serif; color: #000; background: #c0c0c0; padding: 2px 10px; border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0; cursor: pointer; }
.msa-opts button:hover { outline: 1px dotted #000; outline-offset: -4px; }
.msa-opts button:active { border-color: #404040 #fff #fff #404040; }
@keyframes msa-pop { from { opacity: 0; transform: translateY(-100%) scale(.8); } }

/* Clippy vs Bonzi scrap: dust cloud from real Sonic dust puffs + stars */
.msa-fight { position: absolute; width: 180px; height: 140px; pointer-events: none; animation: msa-shake .12s linear infinite; }
.msa-fight i { position: absolute; width: 76px; height: 88px; background: url(/spr/fx/dust.png) center / contain no-repeat; image-rendering: pixelated; filter: grayscale(1) brightness(1.5); animation: msa-puff .5s ease-in-out infinite alternate; }
.msa-fight i:nth-child(1) { left: 0; top: 40px; } .msa-fight i:nth-child(2) { left: 50px; top: 18px; animation-delay: -.2s; } .msa-fight i:nth-child(3) { left: 100px; top: 42px; animation-delay: -.35s; } .msa-fight i:nth-child(4) { left: 30px; top: 60px; animation-delay: -.1s; } .msa-fight i:nth-child(5) { left: 78px; top: 62px; animation-delay: -.4s; }
.msa-fight b { position: absolute; left: 80px; top: 50px; width: 26px; height: 26px; background: url(/spr/fx/star.png) center / contain no-repeat; image-rendering: pixelated; animation: msa-star .7s linear infinite; }
.msa-fight b:nth-of-type(2) { animation-delay: -.23s; } .msa-fight b:nth-of-type(3) { animation-delay: -.46s; }
@keyframes msa-shake { 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 1px); } 75% { transform: translate(2px, 2px); } }
@keyframes msa-puff { to { transform: scale(1.18) rotate(8deg); } }
@keyframes msa-star { from { transform: rotate(0) translateX(70px) rotate(0); } to { transform: rotate(360deg) translateX(70px) rotate(-360deg); } }

/* mtdark.css */
/* Mewtwo's Lair blackout (mtdark.js) */
.mtdark { position: absolute; inset: 0; z-index: 2200; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; overflow: hidden; }
.mtdark.on { opacity: 1; visibility: visible; transition: opacity .25s steps(3), visibility 0s; }
.mtdark .mt-glow { position: absolute; inset: 0; background: radial-gradient(circle at 480px 236px, rgba(190, 120, 255, .26) 0, rgba(90, 20, 170, .34) 100px, rgba(25, 0, 50, .84) 220px, rgba(0, 0, 0, .93) 330px); animation: mt-pulse 2.4s ease-in-out infinite; }
@keyframes mt-pulse { 50% { filter: brightness(1.35); transform: scale(1.03); transform-origin: 480px 236px; } }
.mtdark .mt-mew { position: absolute; left: 368px; top: 140px; width: 225px; height: 172px; image-rendering: pixelated; filter: drop-shadow(0 0 10px #c77dff) drop-shadow(0 0 26px #7b2cff) brightness(1.1); animation: mt-hover 4s ease-in-out infinite; }
@keyframes mt-hover { 50% { transform: translateY(-8px); } }
.mtdark .mt-eye { position: absolute; width: var(--w); height: var(--h); background-repeat: no-repeat; background-size: calc(var(--w) * var(--f)) var(--h); image-rendering: pixelated; filter: drop-shadow(0 0 4px #fff8);
  animation: mt-frames calc(var(--f) * .05s) steps(var(--f)) infinite, mt-drift 14s ease-in-out infinite alternate, mt-blink 5s steps(1) infinite; }
@keyframes mt-frames { to { background-position: calc(var(--w) * var(--f) * -1) 0; } }
@keyframes mt-blink { 0%, 92% { opacity: 1; } 93%, 97% { opacity: 0; } }
.mtdark .e0 { left: 120px; top: 380px; } .mtdark .e1 { left: 520px; top: 470px; } .mtdark .e2 { left: 300px; top: 200px; } .mtdark .e3 { left: 760px; top: 520px; } .mtdark .e4 { left: 60px; top: 560px; }
@keyframes mt-drift { 25% { transform: translate(60px, -40px); } 50% { transform: translate(140px, 20px) scale(1.15); } 75% { transform: translate(40px, 60px); } 100% { transform: translate(-50px, -10px) scale(.9); } }

/* perf 2026-11-20: freeze the blackout's animations while it's hidden (it lives on every stage) */
.mtdark:not(.on) * { animation-play-state: paused; }

/* n64room.css */
/* Snow Day 64 (2026-11-20): 3D N64-style bedroom, see n64room.js. Canvas renders 320x100 and is stretched 3x. */
.n64room { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; z-index: 1; overflow: hidden; }
.n64room canvas { width: 960px !important; height: 300px !important; display: block; filter: saturate(1.08) blur(.35px); }
#scene[data-theme="n64-snow"] .n64room { display: block; }
#scene[data-theme="n64-snow"] { background: linear-gradient(#1a1630 0 300px, #120f22 300px); }
#scene[data-theme="n64-snow"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar) { display: none !important; }
#scene[data-theme="n64-snow"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="n64-snow"] .truss span::after { content: 'SPINDOK RADIO \2022 SNOW DAY 64'; font: 900 12px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: 2px; color: #fff; }

/* mp2.css */
/* Mario Party 2 board stages (2026-11-20): see mp2.js. Board art = real MP2 HVQ backgrounds, 960x720, panned with transform only. */
.mp2 { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; z-index: 1; overflow: hidden; background: #000; }
#scene[data-theme^="mp2-"] .mp2 { display: block; }
#scene[data-theme^="mp2-"] { background: linear-gradient(#000 0 300px, #10131f 300px); }
#scene[data-theme^="mp2-"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar) { display: none !important; }
.mp2-pan { position: absolute; inset: 0 0 auto 0; height: 720px; animation: mp2pan 80s ease-in-out infinite alternate; will-change: transform; }
.mp2-b { position: absolute; inset: 0; width: 960px; height: 720px; opacity: 0; transition: opacity .8s; }
.mp2-b.on { opacity: 1; }
@keyframes mp2pan { from { transform: translateY(0); } to { transform: translateY(-420px); } }
.mp2-logo { position: absolute; left: 8px; top: 8px; width: 190px; height: auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); animation: mp2bob 3.2s ease-in-out infinite; }
@keyframes mp2bob { 50% { transform: translateY(-4px) rotate(-1.5deg); } }
#scene[data-theme^="mp2-"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme^="mp2-"] .truss span::after { content: var(--mp2name, 'SPINDOK RADIO'); font: 900 12px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: 2px; color: #fff; }


/* Dice Block Showdown popup (diceshow.js), same card language as the Big Wheel */
.ds-card { position: absolute; left: 50%; top: 22px; width: 440px; z-index: 2400; translate: -50% 0; display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--m-radius, 18px);
  background: linear-gradient(160deg, rgba(22, 30, 58, .94), rgba(8, 10, 22, .96)); border: 1px solid var(--m-line-2, #ffffff24);
  box-shadow: 0 0 0 1px #4fb4ff44, 0 24px 60px -18px #000e, 0 0 50px -20px #4fb4ff88;
  color: var(--m-text, #eceef6); font-family: var(--m-font, Inter, sans-serif);
  opacity: 0; transform: translateY(-30px) scale(.92); transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .3s, box-shadow .3s; }
.ds-card.in { opacity: 1; transform: none; }
.ds-card.out { opacity: 0; transform: translateY(-24px) scale(.95); }
.ds-card.hot { box-shadow: 0 0 0 1px #ff5a5a66, 0 24px 60px -18px #000e, 0 0 50px -16px #ff5a5a88; }
.ds-card.won { box-shadow: 0 0 0 1px #7dffa866, 0 24px 60px -18px #000e, 0 0 60px -14px #7dffa899; }
.ds-card.star { animation: ds-star .2s steps(2) 14; box-shadow: 0 0 0 2px #ffd400, 0 24px 60px -18px #000e, 0 0 70px -10px #ffd400; }
@keyframes ds-star { 50% { box-shadow: 0 0 0 2px #ff6ad5, 0 24px 60px -18px #000e, 0 0 70px -10px #ff6ad5; } }

.ds-block { position: relative; flex: none; width: 112px; height: 112px; padding: 0; border-radius: 16px; cursor: default; display: grid; place-items: center;
  background: radial-gradient(circle at 28% 22%, #fff 0 13%, transparent 14%), linear-gradient(145deg, #8fdcff, #2a86e8 55%, #1a4cb0);
  border: 4px solid #fff; box-shadow: 0 0 0 4px #183680, 0 9px 0 #0d2560, 0 16px 24px rgba(0,0,0,.5);
  animation: ds-float 1.4s ease-in-out infinite; }
.ds-block b { font: 900 56px/1 'Space Grotesk', Inter, sans-serif; color: #ffe14a; -webkit-text-stroke: 4px #172766; paint-order: stroke fill; }
.ds-block i { position: absolute; inset: 8px; border-radius: 9px; border: 2px dashed #ffffff66; pointer-events: none; }
.ds-block.mine { cursor: pointer; animation: ds-float 1.4s ease-in-out infinite, ds-glow 1s ease-in-out infinite; }
.ds-block.mine:hover { filter: brightness(1.12); }
.ds-block:disabled { cursor: default; }
.ds-block.hit { animation: ds-hit .35s ease-out; }
.ds-card.rolling .ds-block { animation: ds-shake .12s linear infinite; }
.ds-block.landed { animation: ds-land .5s cubic-bezier(.3,1.6,.5,1); background: radial-gradient(circle at 28% 22%, #fff 0 13%, transparent 14%), linear-gradient(145deg, #ffe9a6, #f5b21a 60%, #d98a00); }
@keyframes ds-float { 50% { transform: translateY(-6px); } }
@keyframes ds-glow { 50% { box-shadow: 0 0 0 4px #183680, 0 9px 0 #0d2560, 0 0 34px #8fdcff; } }
@keyframes ds-hit { 40% { transform: translateY(-18px) scale(1.06); } }
@keyframes ds-shake { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes ds-land { 0% { transform: scale(1.35); } 100% { transform: none; } }

.ds-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ds-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: linear-gradient(#8fdcff, #3f9bf0); color: #06183f; font: 800 11px/1 var(--m-display, sans-serif); letter-spacing: .14em; }
.ds-cod { margin: 4px 0 0; font: 900 italic 30px/1 var(--m-display, "Space Grotesk", sans-serif); color: #ffe14a; text-shadow: 2px 2px 0 #1a4cb0; }
.ds-card.won .ds-cod { color: #7dffa8; text-shadow: 2px 2px 0 #0a5a2a; }
.ds-card.star .ds-cod { color: #ffe14a; text-shadow: 2px 2px 0 #d0329a; }
.ds-name { margin: 0; font: 800 21px/1.15 var(--m-display, sans-serif); color: #fff; word-break: break-word; }
.ds-msg { margin: 0; min-height: 2.6em; font: 600 14px/1.3 var(--m-font, Inter, sans-serif); color: var(--m-text-2, #b8bccb); }
.ds-card.hot .ds-msg { color: #ff8a8a; }
.ds-foot { font-size: 12px; color: var(--m-text-3, #8a8fa3); }
.ds-foot b { color: #ffe14a; }

/* MP2 decor (mp2.js buildDeco): real ROM sprites around the booth. Smooth scaling (prerendered CG, not pixel art). */
.mp2deco { display: none; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.mp2deco.back { z-index: 1; overflow: hidden; height: 300px; }
#scene[data-theme^="mp2-"] .mp2deco { display: block; }
.mp2deco .md { position: absolute; pointer-events: auto; cursor: pointer; user-select: none; }
.mp2deco .md img { display: block; image-rendering: auto; -webkit-user-drag: none; }
.mp2deco .md:hover { filter: brightness(1.15) drop-shadow(0 0 6px #ffe14a); }
.mp2deco .md.poke { animation: hop .45s cubic-bezier(.3,1.6,.5,1); }
.mp2deco .m-poster img { width: 104px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.45)); }
.mp2deco .m-host.m-big img { width: 84px; }
.mp2deco .m-card img { width: 64px; border-radius: 8px; box-shadow: 0 0 0 3px #fff, 0 5px 0 3px rgba(0,0,0,.4); background: #3b8ad8; }
.mp2deco .m-item img { width: 40px; border-radius: 6px; box-shadow: 0 0 0 2px #fff, 0 3px 0 2px rgba(0,0,0,.35); }
.mp2deco .m-star img { width: 46px; filter: drop-shadow(0 0 8px #ffe14a); }
.mp2deco .m-coin img { width: 42px; }
.mp2deco .m-plate { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 3px; width: 94px; box-sizing: border-box; padding: 3px 4px 3px 3px; border-radius: 9px; cursor: default;
  background: linear-gradient(#ffffffee, #d9e6ffee); box-shadow: 0 0 0 2px #1b3f9a, 0 4px 0 2px rgba(0,0,0,.35); }
.mp2deco .m-plate .pc { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 6px; }
.mp2deco .m-plate .pb { width: 22px; justify-self: start; }
.mp2deco .m-plate span { display: flex; align-items: center; gap: 1px; white-space: nowrap; min-width: 0; font: 900 10px/1 'Space Grotesk', Inter, sans-serif; color: #172766; }
.mp2deco .m-plate span img { width: 11px; margin-left: 1px; }
.mp2deco .m-plate span img + img, .mp2deco .m-plate span img:nth-of-type(2) { margin-left: 4px; }
.mp2deco .m-plate:hover { filter: none; }
.mp2deco .m-bullet { cursor: default; animation: mp2bullet 26s linear infinite; will-change: transform; }
.mp2deco .m-bullet img { width: 70px; } /* sprite faces left = flight direction; never flip */
@keyframes mp2bullet { 0%, 70% { transform: translateX(1000px); } 100% { transform: translateX(-120px); } }
.mp2deco .m-sway { transform-origin: 50% 0; animation: mp2sway 3.4s ease-in-out infinite; }
@keyframes mp2sway { 50% { transform: rotate(3deg); } }
.mp2deco .m-bob { animation: deco-bob 2.6s ease-in-out infinite; }
.mp2deco .m-bob.m-slow { animation-duration: 3.6s; }
.mp2deco .m-spin { animation: mp2spin 1.8s linear infinite; }
@keyframes mp2spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(.1); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.1); } 100% { transform: scaleX(1); } }
.ds-block b img { width: 64px; height: 64px; display: block; filter: drop-shadow(0 2px 0 #0b1a50); }

/* Bowser visit (bowser.js) */
.bv { position: absolute; left: 716px; top: 92px; z-index: 2300; width: 230px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; justify-items: center;
  transform: translateX(520px); transition: transform .9s cubic-bezier(.3,1.25,.5,1); }
.bv.in { transform: none; }
.bv.in .bv-body { animation: bv-stomp .55s ease-in-out infinite alternate; }
.bv.run { transition: transform 1.1s ease-in; transform: translateX(-900px) scaleX(-1); }
.bv.gone { opacity: 0; transition: opacity .4s; }
.bv-banner { width: 208px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)); animation: bv-flash .5s steps(2) infinite; }
.bv-body { width: 172px; margin-top: 4px; border-radius: 10px; box-shadow: 0 0 0 3px #ffe14a, 0 0 30px #ff3b1f, 0 10px 18px rgba(0,0,0,.5); }
.bv-hint { margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: #d81c1c; color: #fff; font: 900 13px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: .08em; box-shadow: 0 3px 0 #6a0a0a; }
.bv-time { position: absolute; top: 46px; right: 4px; min-width: 38px; padding: 6px 7px; border-radius: 999px; background: #111a; color: #ffe14a; font: 900 15px/1 'Space Grotesk', Inter, sans-serif; }
.bv.hot .bv-time { color: #ff6a6a; }
.bv:hover .bv-body { filter: brightness(1.12); }
@keyframes bv-stomp { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes bv-flash { 50% { filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)) brightness(1.35); } }
.bv-card { position: absolute; left: 50%; top: 22px; width: 430px; z-index: 2400; translate: -50% 0; padding: 16px; border-radius: var(--m-radius, 18px);
  background: linear-gradient(160deg, rgba(58, 14, 10, .95), rgba(18, 6, 6, .97)); border: 1px solid #ff6a4a55;
  box-shadow: 0 0 0 1px #ff3b1f55, 0 24px 60px -18px #000e, 0 0 60px -18px #ff3b1f; color: #fff; font-family: var(--m-font, Inter, sans-serif);
  opacity: 0; transform: translateY(-30px) scale(.92); transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .3s; }
.bv-card.in { opacity: 1; transform: none; }
.bv-card.out { opacity: 0; transform: translateY(-24px) scale(.95); }
.bv-card.safe { box-shadow: 0 0 0 1px #7dffa866, 0 24px 60px -18px #000e, 0 0 60px -14px #7dffa899; }
.bv-top { display: flex; align-items: center; gap: 8px; }
.bv-top img { width: 30px; }
.bv-top span { padding: 4px 10px; border-radius: 999px; background: #ffe14a; color: #4a0a00; font: 800 11px/1 var(--m-display, sans-serif); letter-spacing: .14em; }
.bv-q { margin: 10px 0; font: 800 19px/1.25 var(--m-display, "Space Grotesk", sans-serif); }
.bv-opts { display: grid; gap: 8px; }
.bv-opts button { padding: 10px 14px; border-radius: 10px; border: 1px solid #ffffff2a; background: #ffffff12; color: #fff; font: 700 15px/1.2 Inter, sans-serif; text-align: left; cursor: pointer; }
.bv-opts button:hover:not(:disabled) { background: #ffe14a; color: #3a0800; }
.bv-opts button:disabled { cursor: default; opacity: .55; }
.bv-opts button.picked { opacity: 1; }
.bv-opts button.right { background: #1f8a4a; border-color: #7dffa8; }
.bv-opts button.wrong { background: #a81818; border-color: #ff8a8a; }
.bv-msg { margin: 10px 0 0; font: 600 13px/1.3 Inter, sans-serif; color: #ffcfbf; }
.bv-loss { position: absolute; left: 50%; top: 150px; z-index: 2500; translate: -50% 0; font: 900 44px/1 'Space Grotesk', Inter, sans-serif; color: #ff4a3a; -webkit-text-stroke: 3px #2a0000; paint-order: stroke fill;
  pointer-events: none; animation: bv-loss 3s ease-out forwards; }
@keyframes bv-loss { 0% { opacity: 0; transform: scale(.6); } 12% { opacity: 1; transform: scale(1.15); } 25% { transform: scale(1); } 100% { opacity: 0; transform: translateY(-50px); } }

/* 3D cast (mp2.js actor): ROM-rendered anim strips, stepped through with background-position */
.mp2deco .m3 { line-height: 0; filter: drop-shadow(0 4px 3px rgba(0,0,0,.45)); }
.mp2deco .m3 .sp { background-repeat: no-repeat; background-position: 0 0; will-change: background-position; }
.mp2deco .m3:hover { filter: drop-shadow(0 0 7px #ffe14a) brightness(1.08); }
.mp2deco .m3.m-flip .sp { transform: scaleX(-1); }
@keyframes m3play { to { background-position: var(--end) 0; } }
.mp2deco .m3.m-float { animation: m3float 6s ease-in-out infinite; }
@keyframes m3float { 0%,100% { transform: translate(0,0); } 30% { transform: translate(14px,-12px); } 60% { transform: translate(24px,4px); } 80% { transform: translate(8px,10px); } }
.mp2deco .m3.m-pace { animation: m3pace 14s linear infinite; }
@keyframes m3pace { 0% { transform: translateX(0); } 46% { transform: translateX(40px); } 50% { transform: translateX(40px) scaleX(-1); } 96% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0); } }

/* ---------- Dice Block v2 (diceshow.js): spins over the called player's head, Mario Party style ---------- */
.db3 { position: absolute; left: 50%; top: -104px; width: 74px; height: 74px; margin-left: -37px; z-index: 50; cursor: default; pointer-events: auto; outline: none; }
.db3.loose { left: 480px; top: 330px; }
.db3.mine { cursor: pointer; }
.db3-spin { width: 100%; height: 100%; perspective: 360px; animation: db3float 1.1s ease-in-out infinite; }
@keyframes db3float { 50% { transform: translateY(-6px); } }
.db3-cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: db3rot 2.6s linear infinite; }
@keyframes db3rot { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.db3-f { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 9px; backface-visibility: hidden;
  background: radial-gradient(circle at 30% 25%, #fff 0 14%, transparent 15%), radial-gradient(circle at 50% 55%, #f4fbff, #9fd8ff 70%, #5aa8f0);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #2a6fd8, inset 0 -6px 10px #1a4cb055; }
.db3-f img { width: 46px; height: 46px; filter: drop-shadow(0 2px 0 #0b1a50); }
.db3-f.ft { transform: translateZ(37px); } .db3-f.bk { transform: rotateY(180deg) translateZ(37px); }
.db3-f.rt { transform: rotateY(90deg) translateZ(37px); } .db3-f.lt { transform: rotateY(-90deg) translateZ(37px); }
.db3-f.tp { transform: rotateX(90deg) translateZ(37px); } .db3-f.bt { transform: rotateX(-90deg) translateZ(37px); }
.db3.mine .db3-cube { filter: drop-shadow(0 0 10px #ffe14a) drop-shadow(0 0 4px #fff); }
.db3.mine:hover .db3-cube, .db3.mine:focus-visible .db3-cube { filter: drop-shadow(0 0 16px #ffe14a) brightness(1.08); }
.db3-hint { position: absolute; left: 50%; top: -22px; translate: -50% 0; padding: 3px 8px; border-radius: 999px; background: #ffe14a; color: #172766;
  font: 900 10px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: .1em; white-space: nowrap; display: none; animation: db3hint .6s ease-in-out infinite alternate; }
.db3.mine .db3-hint { display: block; }
@keyframes db3hint { to { transform: translateY(-3px); } }
/* bonk: block jolts up, spin snaps faster then stops */
.db3.hit .db3-spin { animation: db3bonk .32s cubic-bezier(.2,1.6,.4,1); }
@keyframes db3bonk { 0% { transform: translateY(0); } 40% { transform: translateY(-16px) scale(1.08); } 100% { transform: translateY(0); } }
.db3.hit .db3-hint { display: none; }
.db3.done .db3-cube { animation: db3break .3s ease-in forwards; }
@keyframes db3break { to { transform: rotateX(-18deg) rotateY(20deg) scale(1.5); opacity: 0; } }
/* the number pops out big */
.db3-pop { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.db3-pop img { width: 76px; height: 76px; filter: drop-shadow(0 3px 0 #0b1a50) drop-shadow(0 0 10px #fff); }
.db3-pop.go { animation: db3pop 3.6s cubic-bezier(.2,1.5,.4,1) forwards; }
.db3-pop.star img { width: 70px; height: 70px; filter: drop-shadow(0 0 14px #ffe14a); }
.db3-pop.star.go { animation: db3pop 3.6s cubic-bezier(.2,1.5,.4,1) forwards, db3starspin 1s linear infinite; }
@keyframes db3pop { 0% { opacity: 0; transform: scale(.2); } 12% { opacity: 1; transform: scale(1.35) translateY(-14px); } 22% { transform: scale(1) translateY(-10px); } 85% { opacity: 1; transform: translateY(-10px); } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes db3starspin { 50% { rotate: 12deg; } }
/* rings fly down into the player */
.db3-ring { position: absolute; left: 50%; top: 40px; width: 16px; height: 16px; margin-left: -8px; background: url(/spr/ring.png) 0 0 / 64px 16px; image-rendering: pixelated; pointer-events: none;
  animation: db3ring .55s cubic-bezier(.4,0,.7,1) forwards, db3rf .3s steps(4) infinite; }
@keyframes db3rf { to { background-position: -64px 0; } }
@keyframes db3ring { 0% { transform: translate(var(--dx), -20px) scale(1.6); opacity: 1; } 100% { transform: translate(0, 90px) scale(1); opacity: 0; } }
.db3-tally { position: absolute; left: 50%; top: -6px; translate: -50% 0; font: 900 22px/1 'Space Grotesk', Inter, sans-serif; color: #ffe14a; -webkit-text-stroke: 3px #172766; paint-order: stroke fill; pointer-events: none; z-index: 51; }
.db3-tally.end { animation: db3tally .8s ease-out; }
@keyframes db3tally { 30% { transform: scale(1.3); } }
/* the player's jump */
.mate.db3-jump .bod { animation: db3jump .42s cubic-bezier(.3,.9,.4,1); }
@keyframes db3jump { 45% { translate: 0 -34px; } }
/* turn banner (top of the floor) */
.db3-banner { position: absolute; left: 50%; top: 304px; z-index: 2300; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px; border-radius: 999px; translate: -50% -20px; opacity: 0;
  background: linear-gradient(#2f7ff0, #1a4cb0); border: 3px solid #fff; box-shadow: 0 5px 0 #0d2560, 0 10px 22px #0008; transition: opacity .3s, translate .4s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.db3-banner.in { opacity: 1; translate: -50% 0; }
.db3-banner.hot { background: linear-gradient(#ff5a5a, #b01818); box-shadow: 0 5px 0 #5a0a0a, 0 10px 22px #0008; }
.db3-who { font: 900 italic 18px/1 'Space Grotesk', Inter, sans-serif; color: #fff; text-shadow: 2px 2px 0 #0b1a50; }
.db3-t { font: 800 13px/1 Inter, sans-serif; color: #ffe14a; }

/* dance floor dancers (mp2.js buildDancers): live in #crowd so they sort with players */
.mp2-dancer { position: absolute; pointer-events: auto; cursor: pointer; line-height: 0; filter: drop-shadow(0 6px 3px rgba(0,0,0,.45)); }
#scene:not([data-theme^="mp2-"]) .mp2-dancer { display: none; }
.mp2-dancer .sp { background-repeat: no-repeat; will-change: background-position; }
.mp2-dancer.flip .sp { transform: scaleX(-1); }
.mp2-dancer::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -4px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, #0007, transparent); z-index: -1; }
.mp2-dancer:hover { filter: drop-shadow(0 0 8px #ffe14a) drop-shadow(0 6px 3px rgba(0,0,0,.45)); }
.mp2-dancer.poke { animation: hop .45s cubic-bezier(.3,1.6,.5,1); }

.db3.missed .db3-cube { animation: db3fizz .6s ease-in forwards; }
@keyframes db3fizz { to { transform: rotateX(-18deg) translateY(30px) scale(.4); opacity: 0; filter: grayscale(1); } }
.db3-miss { font: 900 italic 20px/1 'Space Grotesk', Inter, sans-serif; color: #ff5a5a; -webkit-text-stroke: 3px #3a0000; paint-order: stroke fill; white-space: nowrap; }
.db3.missed .db3-hint, .db3.done .db3-hint { display: none; }

/* unalgora.css */
/* Unalgora stage (2026-11-17): colours from unalgora.com's own tokens (dark theme). See unalgora.js. */
.unal { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; z-index: 1; overflow: hidden; color: #e7eeeb; font: 11px/1.35 Inter, system-ui, sans-serif; background: #0e1513; }
#scene[data-theme="unalgora"] .unal { display: block; }
#scene[data-theme="unalgora"] { background: linear-gradient(#0e1513 0 300px, #0b0f24 300px); }
#scene[data-theme="unalgora"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar) { display: none !important; }
#scene[data-theme="unalgora"] .truss span { font-size: 0; letter-spacing: 0; background: #104b38; border-color: #17644a; box-shadow: 0 0 14px #17644a; }
#scene[data-theme="unalgora"] .truss span::after { content: 'UNALGORA \2022  NO ALGORITHM'; font: 800 12px Inter, Arial, sans-serif; letter-spacing: 3px; color: #fff; }
#scene[data-theme="unalgora"] .truss { border-image: linear-gradient(#17644a, #104b38) 10; }
#scene[data-theme="unalgora"] .lip { background: #8bd2b4; box-shadow: 0 0 18px #8bd2b4; }
#scene[data-theme="unalgora"] .deckstage { background: #18221f; border-color: #34433e; }
#scene[data-theme="unalgora"] .boothfront { background: linear-gradient(#17644a, #104b38); border-color: #0a2e22; }
#scene[data-theme="unalgora"] .boothfront span { color: #d9eee5; text-shadow: none; }
#scene[data-theme="unalgora"] .beams i { background: linear-gradient(#8bd2b466, transparent); }
.un-head { position: absolute; left: 0; right: 0; top: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #104b38; }
.un-head img { width: 20px; height: 20px; } .un-head .un-tag { position: absolute; right: 12px; width: 128px; font-size: 10px; line-height: 1.25; text-align: right; } .un-head b { font: 800 13px Inter, sans-serif; letter-spacing: 2px; } .un-head span { color: #d9eee5; opacity: .85; }
.un-nav { position: absolute; left: 10px; top: 46px; display: grid; gap: 7px; font-size: 12px; } .un-nav b { color: #8bd2b4; } .un-nav span { color: #e7eeeb; }
.un-card { position: absolute; background: #18221f; border: 1px solid #34433e; border-radius: 8px; padding: 7px 8px; }
.un-card b { font-size: 11px; } .un-card p { margin: 3px 0 0; color: #aab7b1; font-size: 10px; }
.un-explain { left: 6px; top: 176px; width: 88px; }
.un-feed { position: absolute; left: 742px; top: 42px; width: 210px; bottom: 6px; }
.un-fh { font: 700 13px Inter, sans-serif; margin-bottom: 5px; } .un-fh small { display: block; font-weight: 500; font-size: 9px; color: #aab7b1; }
.un-posts { display: grid; gap: 5px; }
.un-post { background: #18221f; border: 1px solid #34433e; border-radius: 8px; padding: 5px 7px; animation: un-in .4s ease-out; }
.un-ph { display: flex; align-items: center; gap: 5px; } .un-ph i { width: 16px; height: 16px; border-radius: 50%; background: #17644a; display: grid; place-items: center; font: 700 9px Inter; font-style: normal; }
.un-ph b { font-size: 11px; } .un-ph small { margin-left: auto; color: #66736d; font-size: 9px; }
.un-post p { margin: 3px 0 0; font-size: 10px; color: #e7eeeb; word-break: break-word; }
@keyframes un-in { from { transform: translateY(-12px); opacity: 0; } }

/* osrs.css */
/* Old School RuneScape stage: Varrock / Grand Exchange (2026-11-17), see osrs.js. Art: OSRS Wiki renders (spr/osrs). */
.osrs { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; z-index: 1; overflow: hidden; }
#scene[data-theme="osrs-ge"] .osrs { display: block; }
#scene[data-theme="osrs-ge"] { background: linear-gradient(#5d6a4a 0 300px, #0b0f24 300px); }
#scene[data-theme="osrs-ge"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar) { display: none !important; }
.os-bg { position: absolute; inset: 0; background: url(/spr/osrs/ge_bg.jpg) center 38% / 960px auto no-repeat; }
.os-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35)); }
.os-booth { position: absolute; left: 2px; top: 180px; height: 120px; }
.os-npc { position: absolute; display: flex; flex-direction: column; align-items: center; }
.os-npc img { height: 100%; width: auto; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .45)); }
.os-npc.clerk { z-index: 0; } .os-npc.clerk + * { z-index: 1; }
.os-npc:nth-child(odd) img { animation: os-idle 2.6s ease-in-out infinite; } .os-npc:nth-child(even) img { animation: os-idle 3.1s ease-in-out infinite reverse; }
@keyframes os-idle { 50% { transform: translateY(-1px) rotate(.6deg); } }
/* overhead chat (OSRS yellow, with the real chat effects) */
.os-ov { position: absolute; left: 50%; translate: -50% 0; bottom: 100%; margin-bottom: 2px; white-space: nowrap; opacity: 0; color: #ff0; font: 700 12px/1 'Arial', sans-serif; text-shadow: 1px 1px 0 #000; transition: opacity .1s; }
.os-ov.show { opacity: 1; }
.os-ov.fx-red { color: #f00; } .os-ov.fx-cyan { color: #0ff; } .os-ov.fx-green { color: #0f0; } .os-ov.fx-purple { color: #f0f; } .os-ov.fx-white { color: #fff; }
.os-ov i { display: inline-block; font-style: normal; animation: os-wave .8s ease-in-out infinite; animation-delay: calc(var(--i) * -.08s); }
.os-ov.fx-wave2 i { animation-name: os-wave2; }
@keyframes os-wave { 50% { transform: translateY(-5px); } } @keyframes os-wave2 { 25% { transform: translate(-2px, -4px); } 75% { transform: translate(2px, 4px); } }
.os-ov.fx-flash1 { animation: os-flash1 .4s steps(1) infinite; } @keyframes os-flash1 { 50% { color: #f00; } }
.os-ov.fx-flash2 { animation: os-flash2 .4s steps(1) infinite; } @keyframes os-flash2 { 50% { color: #0ff; } }
.os-ov.fx-glow1 { animation: os-glow 1.5s linear infinite; } @keyframes os-glow { 0% { color: #f00; } 33% { color: #ff0; } 66% { color: #0f0; } }
.os-ov.fx-scroll { animation: os-scroll 4s linear; } @keyframes os-scroll { from { transform: translateX(40px); } to { transform: translateX(-40px); } }
/* parchment chatbox */
.os-chat { position: absolute; left: 750px; top: 4px; width: 206px; height: 96px; display: flex; flex-direction: column; background: #d0bd97; border: 2px solid #3e3529; box-shadow: inset 0 0 0 1px #8d7a58; font: 11px/1.25 Arial, sans-serif; color: #000; }
.os-lines { flex: 1; overflow: hidden; padding: 3px 5px; display: flex; flex-direction: column; justify-content: flex-end; }
.os-lines div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .os-lines .os-pub { color: #0000ff; } .os-lines .os-ge { color: #000; } .os-lines .os-game { color: #000; }
.os-tabs { display: flex; height: 16px; background: #3e3529; } .os-tabs b { flex: 1; text-align: center; font: 700 8px/16px Arial; color: #ff981f; border-right: 1px solid #1e1a14; }
/* item pops (trades going through) */
.os-pop { position: absolute; width: 24px; image-rendering: pixelated; animation: os-pop 2.2s ease-out forwards; filter: drop-shadow(0 0 4px #ff0); }
@keyframes os-pop { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-14px) scale(1.1); } 100% { transform: translateY(-46px) scale(1); opacity: 0; } }
/* stage dressing in Varrock stone */
#scene[data-theme="osrs-ge"] .truss span { background: #3e3529; border-color: #ff981f; color: #ff981f; text-shadow: 1px 1px 0 #000; font-size: 0; letter-spacing: 0; }
#scene[data-theme="osrs-ge"] .truss span::after { content: 'GRAND EXCHANGE \2022  VARROCK'; font: 700 13px Arial, sans-serif; letter-spacing: 2px; }
#scene[data-theme="osrs-ge"] .truss { border-image: linear-gradient(#8a8a8a, #4a4a4a) 10; }
#scene[data-theme="osrs-ge"] .lip { background: #ff981f; box-shadow: 0 0 14px #ff981f88; }
#scene[data-theme="osrs-ge"] .deckstage { background: repeating-linear-gradient(90deg, #8f8f8f 0 38px, #6e6e6e 38px 40px), #888; border-color: #4a4a4a; }
#scene[data-theme="osrs-ge"] .boothfront { background: linear-gradient(#7a5a32, #4e3820); border-color: #2a1d0e; }
#scene[data-theme="osrs-ge"] .boothfront span { color: #ff981f; text-shadow: 1px 1px 0 #000; }
/* players' chat bubbles turn into OSRS overhead text on this stage */
#scene[data-theme="osrs-ge"] .mate .bub { background: none !important; border: 0 !important; box-shadow: none !important; color: #ff0 !important; font: 700 13px/1.1 Arial, sans-serif !important; text-shadow: 1px 1px 0 #000; }
#scene[data-theme="osrs-ge"] .mate .bub::after { display: none; }


.os-npc.edge .os-ov { left: auto; right: -4px; translate: none; } .os-npc.edgel .os-ov { left: -4px; translate: none; }

/* stadium.css */
/* Pokémon Stadium stage (2026-11-18), see stadium.js. Art: Pokémon Showdown (spr/stadium). */
.stadium, .sd-top { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; overflow: hidden; pointer-events: none; }
.stadium { z-index: 1; }
.sd-top { z-index: 40; overflow: visible; }
#scene[data-theme="pkmn-stadium"] :is(.stadium, .sd-top) { display: block; }
#scene[data-theme="pkmn-stadium"] { background: linear-gradient(#120208 0 300px, #0b0f24 300px); }
#scene[data-theme="pkmn-stadium"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar) { display: none !important; }
#scene[data-theme="pkmn-stadium"] .truss span { background: #c8102e; border-color: #ffd400; color: #ffd400; font-size: 0; letter-spacing: 0; }
#scene[data-theme="pkmn-stadium"] .truss span::after { content: 'POKéMON STADIUM'; font: 900 italic 14px 'Arial Black', Arial, sans-serif; letter-spacing: 3px; }
#scene[data-theme="pkmn-stadium"] .lip { background: #ff2a3a; box-shadow: 0 0 18px #ff2a3a; }
#scene[data-theme="pkmn-stadium"] .deckstage { background: repeating-linear-gradient(90deg, #f4f4f4 0 24px, #d8d8d8 24px 26px); border-color: #c8102e; }
#scene[data-theme="pkmn-stadium"] .boothfront { background: linear-gradient(#e8283a, #9a0d1c); border-color: #ffd400; }

/* arena backdrop: Showdown's stadium halls, one per match */
.sd-bg { position: absolute; inset: 0; background: url(/spr/stadium/arena-spl.png) center 14% / 960px auto no-repeat; transition: filter .4s; }
.stadium[data-arena="scl"] .sd-bg { background-image: url(/spr/stadium/arena-scl.png); }
.stadium[data-arena="npa"] .sd-bg { background-image: url(/spr/stadium/arena-npa.png); }
.stadium[data-arena="wcop"] .sd-bg { background-image: url(/spr/stadium/arena-wcop.png); }
.sd-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .05) 60%, rgba(0, 0, 0, .45)); }
.stadium.psywarp .sd-bg { filter: hue-rotate(160deg) saturate(1.6); animation: sd-warp .5s ease-in-out; }
@keyframes sd-warp { 0%, 100% { transform: none; } 25% { transform: skewX(4deg) scale(1.02); } 75% { transform: skewX(-4deg) scale(1.02); } }
.sd-lights i { position: absolute; top: -40px; width: 140px; height: 380px; background: linear-gradient(rgba(255, 255, 255, .22), transparent 80%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0; mix-blend-mode: screen; animation: sd-sweep 7s ease-in-out infinite alternate; }
.sd-lights i:first-child { left: 220px; } .sd-lights i:last-child { left: 600px; animation-delay: -3.5s; }
@keyframes sd-sweep { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
.sd-cam { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 3px #fff; animation: sd-cam .5s ease-out forwards; }
@keyframes sd-cam { from { opacity: 1; scale: 1.2; } to { opacity: 0; scale: .3; } }
.stadium.shake, .sd-top.shake { animation: sd-shake .45s linear; }
.stadium.quake, .sd-top.quake { animation: sd-quake .65s linear; }
@keyframes sd-shake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 3px; } 40% { translate: 6px -3px; } 60% { translate: -4px 2px; } 80% { translate: 3px -1px; } }
@keyframes sd-quake { 0%, 100% { translate: 0 0; } 10%, 50%, 90% { translate: -9px 2px; } 30%, 70% { translate: 9px -2px; } }

/* fighters on the speaker stacks */
.sd-mon { position: absolute; bottom: 156px; height: 124px; width: 170px; margin-left: -85px; display: flex; align-items: flex-end; justify-content: center; transition: opacity .3s; }
.sd-mon.s0 { left: 170px; } .sd-mon.s1 { left: 805px; }
.sd-mon img { max-width: 170px; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .6)); transform-origin: 50% 100%; }
.sd-mon.s0 img { transform: scaleX(-1); }
.sd-mon::after { content: ""; position: absolute; bottom: -4px; left: 30px; right: 30px; height: 10px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .55), transparent 70%); z-index: -1; }
.sd-mon.gone { opacity: 0; }
.sd-mon.pop img { animation: sd-pop .45s cubic-bezier(.3, 1.8, .5, 1); }
.sd-mon.s0.pop img { animation-name: sd-pop0; }
@keyframes sd-pop { from { transform: scale(.1); filter: brightness(8); } to { transform: none; } }
@keyframes sd-pop0 { from { transform: scaleX(-.1) scaleY(.1); filter: brightness(8); } to { transform: scaleX(-1); } }
.sd-mon.charge img { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 18px #ffd400) brightness(1.3); }
.sd-mon.dash { transition: translate .28s cubic-bezier(.5, 0, .9, .6); translate: var(--dash) -18px; z-index: 2; }
.sd-mon.hit img { animation: sd-hit .7s steps(1); }
@keyframes sd-hit { 0%, 30%, 60% { opacity: 0; } 15%, 45%, 75%, 100% { opacity: 1; } }
.sd-mon.hit { animation: sd-knock .35s ease-out; }
.sd-mon.s0.hit { --k: -14px; } .sd-mon.s1.hit { --k: 14px; }
@keyframes sd-knock { 30% { translate: var(--k) 0; } 100% { translate: 0 0; } }
.sd-mon.faint { transition: translate .9s cubic-bezier(.6, 0, 1, .4), opacity .9s; translate: 0 70px; opacity: 0; }

/* Stadium-style HP boxes, outer top corners */
.sd-hp { position: absolute; top: 20px; width: 112px; padding: 5px 7px 6px; background: linear-gradient(#f8f8f0, #d6d6c8); border: 2px solid #303030; border-radius: 6px 6px 6px 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .45); font: 900 10px/1 'Arial Black', Arial, sans-serif; color: #202020; transition: opacity .3s; }
.sd-hp.s0 { left: 4px; } .sd-hp.s1 { right: 4px; border-radius: 6px 6px 14px 6px; }
.sd-hp::before { content: attr(data-trainer); position: absolute; top: -1px; right: 6px; translate: 0 -100%; font: 900 italic 9px 'Arial Black', Arial, sans-serif; color: #ffd400; text-shadow: 1px 1px 0 #000; letter-spacing: 1px; }
.sd-hp.s0::before { left: 6px; right: auto; }
.sd-hn { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 4px; white-space: nowrap; } .sd-hn b { overflow: hidden; text-overflow: ellipsis; } .sd-hn span { font-size: 8px; color: #555; }
.sd-bar { height: 6px; background: #404040; border: 1px solid #202020; border-radius: 3px; overflow: hidden; }
.sd-bar i { display: block; height: 100%; width: 100%; background-color: #3ce05a; }
.sd-bar i.mid { background-color: #f4c400; } .sd-bar i.low { background-color: #f03030; animation: sd-low .5s steps(1) infinite; }
@keyframes sd-low { 50% { opacity: .55; } }
.sd-balls { display: flex; gap: 3px; margin-top: 4px; }
.sd-balls i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #202020; background: linear-gradient(#e8283a 0 45%, #202020 45% 55%, #fff 55%); }
.sd-balls i.out { background: #888; opacity: .5; }

/* fx */
.sd-fx { position: absolute; inset: 0; }
.sd-proj { position: absolute; left: 0; top: 0; will-change: transform; }
.sd-proj img, .sd-burst img, .sd-bolt img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.sd-proj img { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
.sd-proj:has(img[src*="rock"]) img, .sd-proj:has(img[src*="pokeball"]) img, .sd-burst:has(img[src*="fist"]) img, .sd-burst:has(img[src*="foot"]) img { mix-blend-mode: normal; }
.sd-burst { position: absolute; animation: sd-burst .55s ease-out forwards; }
@keyframes sd-burst { from { scale: .3; opacity: 1; } 60% { opacity: 1; } to { scale: 1.6; opacity: 0; } }
.sd-spark { position: absolute; width: 4px; height: 12px; margin: -6px 0 0 -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px #ffd400; rotate: var(--a); animation: sd-spark .55s ease-out forwards; }
@keyframes sd-spark { from { translate: 0 0; opacity: 1; } to { translate: calc(sin(var(--a)) * 46px) calc(cos(var(--a)) * -46px); opacity: 0; } }
.sd-beam { position: absolute; height: 18px; transform-origin: 0 50%; border-radius: 9px; background: linear-gradient(var(--c1), var(--c2) 40%, var(--c1) 50%, var(--c2) 60%, var(--c1));
  box-shadow: 0 0 16px 4px var(--c2), 0 0 40px 10px var(--c2); animation: sd-beam .56s ease-out; clip-path: inset(0 0 0 0); }
.sd-beam.off { transition: opacity .25s, height .25s; opacity: 0; }
@keyframes sd-beam { from { clip-path: inset(0 100% 0 0); } 45% { clip-path: inset(0 0 0 0); } }
.sd-bolt { position: absolute; top: -10px; width: 48px; height: 150px; animation: sd-bolt .5s steps(2) forwards; }
.sd-bolt img { object-fit: fill; filter: drop-shadow(0 0 10px #fff35a); }
@keyframes sd-bolt { 0% { opacity: 1; } 50% { opacity: .2; } 100% { opacity: 0; } }
.sd-top.whiteout::after, .sd-top.yellowout::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .55; animation: sd-wo .38s ease-out forwards; }
.sd-top.yellowout::after { background: #fff35a; }
@keyframes sd-wo { to { opacity: 0; } }
.sd-conf { position: absolute; top: -10px; width: 6px; height: 10px; animation: sd-conf var(--d) linear forwards; }
@keyframes sd-conf { to { translate: var(--x) 330px; rotate: 720deg; } }

/* announcer lines, just under the now-playing screen */
.sd-say { position: absolute; left: 230px; right: 230px; top: 132px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sd-line { padding: 4px 12px; background: rgba(10, 12, 30, .86); border: 2px solid #ffd400; border-radius: 6px; color: #fff; font: 800 12px/1.2 Inter, Arial, sans-serif; text-align: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .5); animation: sd-line .3s cubic-bezier(.3, 1.6, .5, 1); max-width: 100%; }
.sd-line em { font-style: normal; color: #ffd400; }
.sd-line.small { font-size: 11px; border-color: #7fb6ff; }
.sd-line.crit { color: #ff5a5a; border-color: #ff5a5a; font: 900 italic 15px 'Arial Black', Arial, sans-serif; letter-spacing: 1px; }
.sd-line.eff { color: #4cff7a; border-color: #4cff7a; font: 900 italic 13px 'Arial Black', Arial, sans-serif; }
.sd-line.bye { transition: opacity .4s, translate .4s; opacity: 0; translate: 0 -8px; }
@keyframes sd-line { from { scale: .5; opacity: 0; } }

/* VS intro */
.sd-vs { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.sd-vs.go { opacity: 1; visibility: visible; }
.sd-vs > div:not(.sd-cup) { position: absolute; top: 0; bottom: 0; width: 56%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.sd-vs .vs-l { left: 0; background: linear-gradient(110deg, #c8102e, #6a0010); clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); animation: sd-vl .45s cubic-bezier(.2, 1.2, .4, 1) both; }
.sd-vs .vs-r { right: 0; background: linear-gradient(110deg, #082a8a, #1a62e0); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); animation: sd-vr .45s cubic-bezier(.2, 1.2, .4, 1) both; }


.sd-vs b { font: 900 italic 22px 'Arial Black', Arial, sans-serif; color: #fff; text-shadow: 2px 2px 0 #000; letter-spacing: 2px; }
.sd-vs .vs-l b { margin-right: 60px; } .sd-vs .vs-r b { margin-left: 60px; }
.sd-vs .vs-x { position: absolute; left: 50%; top: 50%; width: 150px; translate: -50% -50%; filter: drop-shadow(0 0 12px #fff) drop-shadow(3px 3px 0 #000); animation: sd-vx .5s .55s cubic-bezier(.3, 1.8, .5, 1) both; }
.sd-cup { position: absolute; left: 0; right: 0; top: 8px; z-index: 2; text-align: center; font: 900 italic 13px 'Arial Black', Arial, sans-serif; color: #ffd400; text-shadow: 2px 2px 0 #000; letter-spacing: 3px; }
@keyframes sd-vl { from { translate: -100% 0; } } @keyframes sd-vr { from { translate: 100% 0; } }
@keyframes sd-vx { from { scale: 4; opacity: 0; rotate: -20deg; } }

/* winner banner */
.sd-win { position: absolute; left: 0; right: 0; top: 140px; text-align: center; opacity: 0; visibility: hidden; }
.sd-win.go { opacity: 1; visibility: visible; animation: sd-win .6s cubic-bezier(.3, 1.6, .5, 1); }
.sd-win.still { animation: none; }
.sd-win b { display: block; font: 900 italic 34px 'Arial Black', Arial, sans-serif; color: #ffd400; letter-spacing: 3px; text-shadow: 3px 3px 0 #c8102e, 6px 6px 0 #000; }
.sd-win span { display: inline-block; margin-top: 4px; padding: 3px 10px; background: rgba(0, 0, 0, .7); border-radius: 4px; color: #fff; font: 800 12px Inter, Arial, sans-serif; }
@keyframes sd-win { from { scale: 3; opacity: 0; } }

/* v2: trainers at the stage corners, streaks, legendary showdowns, shinies, OHKOs */
.sd-tr { position: absolute; bottom: 0; width: 84px; height: 84px; margin-left: -42px; display: flex; justify-content: center; align-items: flex-end; transform-origin: 50% 100%; }
.sd-tr.s0 { left: 50px; } .sd-tr.s1 { left: 912px; }
.sd-tr img { height: 84px; image-rendering: pixelated; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); }
.sd-tr.s1 img { transform: scaleX(-1); }
.sd-tr::after { content: ""; position: absolute; bottom: -3px; left: 14px; right: 14px; height: 8px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .5), transparent 70%); z-index: -1; }
.sd-tr.throw { animation: sd-throw .45s ease-out; }
@keyframes sd-throw { 30% { translate: 0 -10px; rotate: -6deg; } 60% { rotate: 4deg; } }
.sd-tr.s1.throw { animation-name: sd-throw1; } @keyframes sd-throw1 { 30% { translate: 0 -10px; rotate: 6deg; } 60% { rotate: -4deg; } }
.sd-tr.cheer { animation: sd-cheer .5s ease-in-out infinite alternate; }
@keyframes sd-cheer { to { translate: 0 -12px; } }
.sd-tr.sad img { filter: grayscale(.7) brightness(.7) drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); }
.sd-streak { position: absolute; top: -14px; white-space: nowrap; font: 900 italic 9px 'Arial Black', Arial, sans-serif; color: #ff8a1a; text-shadow: 1px 1px 0 #000; letter-spacing: 1px; }
.sd-streak:empty { display: none; }
.sd-mon.shiny img { filter: drop-shadow(0 0 6px #fff7a8) drop-shadow(0 4px 3px rgba(0, 0, 0, .6)); }
.sd-line.ohko { border-color: #ff3b3b; }
.stadium.legend .sd-bg { filter: saturate(1.4) brightness(1.1); }
.stadium.legend .sd-lights i { background: linear-gradient(rgba(255, 215, 80, .3), transparent 80%); }
.sd-vs .vs-who { position: relative; display: flex; align-items: flex-end; gap: 0; }
.sd-vs img.vs-tr { height: 130px; max-height: 130px; image-rendering: pixelated; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .6)); }
.sd-vs img.vs-mon { max-height: 84px; max-width: 120px; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .6)); }
.sd-vs .vs-l .vs-who { margin-right: 60px; } .sd-vs .vs-r .vs-who { margin-left: 60px; flex-direction: row-reverse; }
.sd-vs .vs-l img.vs-tr, .sd-vs .vs-r img.vs-mon { transform: none; margin: 0; }
.sd-vs .vs-l img.vs-mon { transform: scaleX(-1); margin: 0; } .sd-vs .vs-r img.vs-tr { transform: scaleX(-1); margin: 0; }
.sd-vs i.vs-streak { font: 900 italic 11px 'Arial Black', Arial, sans-serif; color: #ffd400; text-shadow: 1px 1px 0 #000; letter-spacing: 1px; }
.sd-vs .vs-l i.vs-streak { margin-right: 60px; } .sd-vs .vs-r i.vs-streak { margin-left: 60px; }
.sd-vs.legend .vs-l { background: linear-gradient(110deg, #8a6a00, #2a1a00); } .sd-vs.legend .vs-r { background: linear-gradient(110deg, #2a1a00, #8a6a00); }
.sd-vs.legend .sd-cup { color: #fff; text-shadow: 0 0 10px #ffd400, 2px 2px 0 #000; font-size: 16px; }
.sd-win small { display: block; margin-top: 6px; font: 800 10px Inter, Arial, sans-serif; letter-spacing: 2px; color: #cfe3ff; text-shadow: 1px 1px 0 #000; }
.sd-win .sd-wstreak { display: inline-block; margin-left: 6px; background: #c8102e; color: #ffd400; }
.sd-win { top: 128px; }

/* bet popup (2026-11-18): over the DJ booth at match start, closes when the first attack lands */
.sd-bet { position: absolute; left: 50%; top: 150px; translate: -50% 0; z-index: 5; pointer-events: auto; width: 300px; padding: 10px 12px 12px; text-align: center;
  background: rgba(10, 12, 30, .94); border: 2px solid #ffd400; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); font-family: Inter, Arial, sans-serif; color: #fff; overflow: hidden;
  animation: sd-line .3s cubic-bezier(.3, 1.6, .5, 1); }
.sd-bet > b { display: block; font: 900 italic 15px 'Arial Black', Arial, sans-serif; color: #ffd400; letter-spacing: 1px; }
.sd-bet > span { display: block; margin: 2px 0 8px; font-size: 11px; color: #cfe3ff; }
.sd-bet-row { display: flex; gap: 8px; }
.sd-bet-row button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 10px; cursor: pointer;
  background: linear-gradient(#c8102e, #6a0010); color: #fff; font: 900 12px 'Arial Black', Arial, sans-serif; letter-spacing: 1px; }
.sd-bet-row button + button { background: linear-gradient(#1a62e0, #082a8a); }
.sd-bet-row button:hover:not(:disabled) { border-color: #ffd400; transform: translateY(-1px); }
.sd-bet-row img { height: 52px; image-rendering: pixelated; }
.sd-bet-no { margin-top: 7px; border: 0; background: none; color: #9fb0d8; font: 600 11px Inter, Arial, sans-serif; cursor: pointer; text-decoration: underline; }
.sd-bet button:disabled { opacity: .55; cursor: default; }
.sd-bet-t { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #ffd400; transform-origin: 0 50%; animation: sd-bet-t linear forwards; }
@keyframes sd-bet-t { to { transform: scaleX(0); } }

/* trail.css */
/* Westward Trail 1848 stage (2026-11-18), see trail.js. Original pixel art in the Apple II hi-res palette. */
.wtrail, .tr-top { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; pointer-events: none; }
.wtrail { z-index: 1; overflow: hidden; }
.tr-top { z-index: 40; font-family: 'Press Start 2P', monospace; }
#scene[data-theme="trail-1848"] :is(.wtrail, .tr-top) { display: block; }
#scene[data-theme="trail-1848"] { background: linear-gradient(#000 0 300px, #0b0f24 300px); }
#scene[data-theme="trail-1848"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar, .beams) { display: none !important; }
#scene[data-theme="trail-1848"] .truss span { background: #000; border-color: #fff; color: #fff; font-size: 0; letter-spacing: 0; }
#scene[data-theme="trail-1848"] .truss span::after { content: 'WESTWARD TRAIL 1848'; font: 10px 'Press Start 2P', monospace; letter-spacing: 1px; }
#scene[data-theme="trail-1848"] .truss { border-image: repeating-linear-gradient(90deg, #fff 0 6px, #2ea6ff 6px 12px) 10; }
#scene[data-theme="trail-1848"] .lip { background: #3ad41f; box-shadow: 0 0 14px #3ad41f; }
#scene[data-theme="trail-1848"] .deckstage { background: repeating-linear-gradient(90deg, #ff7b2c 0 22px, #c85a1c 22px 24px); border-color: #fff; }
#scene[data-theme="trail-1848"] .boothfront { background: #000; border-color: #fff; }
#scene[data-theme="trail-1848"] .boothfront span { color: #fff; font-family: 'Press Start 2P', monospace; font-size: 10px; }

.tr-sky { position: absolute; inset: 0 0 150px; background: #000; }
.tr-sky::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.5px), radial-gradient(#2ea6ff 1px, transparent 1.5px);
  background-size: 97px 41px, 151px 67px; background-position: 13px 7px, 60px 22px; opacity: .55; }
.tr-range { position: absolute; left: 0; right: 0; top: 96px; height: 56px; opacity: 0; transition: opacity 2s;
  background: linear-gradient(135deg, transparent 50%, #c45cff 50%) 0 0 / 60px 56px repeat-x, linear-gradient(225deg, transparent 50%, #c45cff 50%) 30px 0 / 60px 56px repeat-x; }
.tr-range::after { content: ""; position: absolute; inset: 0 0 38px; background: linear-gradient(135deg, transparent 50%, #fff 50%) 0 0 / 60px 56px repeat-x, linear-gradient(225deg, transparent 50%, #fff 50%) 30px 0 / 60px 56px repeat-x;
  clip-path: inset(0 0 0 0); mask: linear-gradient(#000 0 18px, transparent 18px); -webkit-mask: linear-gradient(#000 0 18px, transparent 18px); }
.tr-grass { position: absolute; left: 0; right: 0; top: 140px; height: 12px;
  background: linear-gradient(135deg, transparent 50%, #3ad41f 50%) 0 0 / 12px 12px repeat-x, linear-gradient(225deg, transparent 50%, #3ad41f 50%) 6px 0 / 12px 12px repeat-x;
  animation: tr-grass 1.2s steps(6) infinite; }
@keyframes tr-grass { to { background-position: 12px 0, 18px 0; } }
.tr-field { position: absolute; left: 0; right: 0; top: 150px; bottom: 0; background: #3ad41f; }
.tr-field::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#ff7b2c 1px, transparent 1.5px), radial-gradient(#fff 1px, transparent 1.5px);
  background-size: 53px 23px, 89px 31px; background-position: 5px 9px, 40px 3px; opacity: .45; animation: tr-field 1.2s linear infinite; }
@keyframes tr-field { to { background-position: 58px 9px, 129px 3px; } }
.tr-scroll { position: absolute; inset: 0; }
.tr-pix, .tr-prop, .tr-scroll img, .tr-hunt img { image-rendering: pixelated; }
.tr-prop { position: absolute; left: 0; top: 0; will-change: transform; }
.tr-river { position: absolute; left: 0; top: 150px; width: 140px; height: 150px; background: #2ea6ff; will-change: transform; }
.tr-river i { position: absolute; left: 10px; right: 10px; height: 3px; background: repeating-linear-gradient(90deg, #fff 0 9px, transparent 9px 18px); animation: tr-wave 1s steps(3) infinite; }
.tr-river i:nth-child(1) { top: 24px; } .tr-river i:nth-child(2) { top: 62px; animation-delay: -.33s; } .tr-river i:nth-child(3) { top: 100px; animation-delay: -.66s; }
@keyframes tr-wave { to { background-position: 18px 0; } }
.tr-pass { position: absolute; left: 0; top: 70px; width: 320px; height: 82px; will-change: transform;
  background: linear-gradient(135deg, transparent 50%, #fff 50%) 0 0 / 80px 82px repeat-x, linear-gradient(225deg, transparent 50%, #fff 50%) 40px 0 / 80px 82px repeat-x; }
.tr-pass::after { content: ""; position: absolute; inset: 22px 0 0; background: linear-gradient(135deg, transparent 50%, #c45cff 50%) -22px -22px / 80px 82px repeat-x, linear-gradient(225deg, transparent 50%, #c45cff 50%) 18px -22px / 80px 82px repeat-x; }
.tr-grave { position: absolute; left: 0; top: 190px; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.tr-grave span { margin-top: 4px; padding: 3px 5px; background: #000; color: #fff; font: 7px/1.5 'Press Start 2P', monospace; text-align: center; white-space: nowrap; }

/* the rig, parked left of the DJ booth */
.tr-rig { position: absolute; left: 228px; top: 194px; display: flex; align-items: flex-end; gap: 0; }
.tr-rig .tr-wagon { margin-left: -18px; }
.tr-rig .tr-ox { margin-bottom: 6px; }
.tr-rig:not(.parked) .tr-wagon { animation: tr-bump .24s steps(2) infinite; }
@keyframes tr-bump { 50% { translate: 0 -3px; } }
.tr-rig.float { animation: tr-float 1.4s ease-in-out infinite; }
.tr-rig.float::after { content: ""; position: absolute; left: 30px; right: 0; bottom: -4px; height: 10px; background: repeating-linear-gradient(90deg, #fff 0 6px, #2ea6ff 6px 12px); animation: tr-wave .6s steps(2) infinite; }
@keyframes tr-float { 50% { translate: 0 -5px; rotate: -2deg; } }

/* status panel: white box, black text, right of the booth */
/* drawn at 3x then scaled: browsers with a minimum font size inflated the 5.5px text past the box (2026-11-19) */
.tr-status { position: absolute; left: 604px; top: 146px; width: max-content; min-width: 444px; padding: 18px 21px; background: #fff; color: #000; font-size: 16.5px; line-height: 1.8; white-space: nowrap; border: 6px solid #000; box-shadow: 0 0 0 6px #fff; transform: scale(calc(1 / 3)); transform-origin: 0 0; -webkit-text-size-adjust: none; text-size-adjust: none; }
.tr-status b { font-weight: normal; color: #000; }

/* event box: black with a white double border, under the now-playing screen */
.tr-msg { position: absolute; left: 50%; top: 134px; translate: -50% 0; max-width: 340px; padding: 7px 10px; background: #000; color: #fff; font-size: 8px; line-height: 1.6; text-align: center;
  border: 3px double #fff; opacity: 0; transition: opacity .2s; }
.tr-msg.on { opacity: 1; animation: tr-blip .25s steps(2); }
.tr-msg em { font-style: normal; color: #3ad41f; }
.tr-msg.bad { border-color: #ff7b2c; } .tr-msg.good { border-color: #3ad41f; }
@keyframes tr-blip { from { opacity: 0; } }

/* landmark banner: big white title card */
.tr-banner { position: absolute; left: 50%; top: 52px; translate: -50% 0; padding: 10px 18px; background: #fff; color: #000; text-align: center; opacity: 0; transition: opacity .3s; border: 3px solid #000; box-shadow: 0 0 0 3px #fff; }
.tr-banner.on { opacity: 1; }
.tr-banner b { display: block; font-weight: normal; font-size: 11px; } .tr-banner span { display: block; margin-top: 6px; font-size: 8px; }

/* hunting: buffalo charges across, hunter pops up by the left speaker */
.tr-hunt { position: absolute; inset: 0; display: none; }
.tr-hunt.on { display: block; }
.tr-buf { position: absolute; left: 0; top: 210px; animation: tr-run 2.3s linear forwards; }
@keyframes tr-run { from { translate: 960px 0; } to { translate: 360px 0; } }
.tr-buf.down { animation: none; translate: 360px 0; rotate: 180deg; transition: opacity 3s 1s; opacity: 0; }
.tr-hunter { position: absolute; left: 30px; top: 196px; transform: scaleX(-1); animation: tr-pop .3s steps(2); }
@keyframes tr-pop { from { translate: 0 30px; } }
.tr-shot { position: absolute; left: 66px; top: 211px; width: 0; height: 2px; background: #fff; }
.tr-hunt.bang .tr-shot { animation: tr-shot .25s steps(3) forwards; }
@keyframes tr-shot { to { width: 300px; opacity: 0; } }

/* weather */
.tr-wx { position: absolute; inset: 0; }
.tr-wx.rain { background-image: repeating-linear-gradient(100deg, transparent 0 14px, rgba(46, 166, 255, .7) 14px 15px); animation: tr-rain .4s linear infinite; }
@keyframes tr-rain { to { background-position: -10px 60px; } }
.tr-wx.snow { background-image: radial-gradient(#fff 1.5px, transparent 2px), radial-gradient(#fff 1px, transparent 1.5px); background-size: 37px 29px, 61px 43px; animation: tr-snow 2.4s linear infinite; }
@keyframes tr-snow { to { background-position: 10px 29px, -12px 43px; } }
.tr-wx.fog { background: repeating-linear-gradient(transparent 0 6px, rgba(255, 255, 255, .28) 6px 9px); }

/* arrival */
.tr-end { position: absolute; left: 0; right: 0; top: 140px; text-align: center; opacity: 0; }
.tr-end.on { opacity: 1; }
.tr-end b { display: inline-block; padding: 8px 14px; background: #000; color: #3ad41f; font-weight: normal; font-size: 14px; border: 3px double #fff; }
.tr-end span, .tr-end small { display: block; margin: 6px auto 0; width: max-content; padding: 4px 8px; background: #000; color: #fff; font-size: 7px; }
.tr-fw { position: absolute; width: 4px; height: 4px; background: var(--c); box-shadow: 0 -16px var(--c), 0 16px var(--c), 16px 0 var(--c), -16px 0 var(--c), 11px 11px var(--c), -11px -11px var(--c), 11px -11px var(--c), -11px 11px var(--c);
  animation: tr-fw 1.2s steps(4) forwards; }
@keyframes tr-fw { from { scale: .2; } 70% { opacity: 1; } to { scale: 1.6; opacity: 0; } }

/* poker.css */
/* Poker Night stage (2026-11-18), see poker.js. Original art: CSS swirl, felt table, CSS-drawn cards. */
.pkr, .pk-top { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; pointer-events: none; }
.pkr { z-index: 1; overflow: hidden; }
.pk-top { z-index: 40; font-family: 'Space Grotesk', Inter, Arial, sans-serif; }
#scene[data-theme="poker-night"] :is(.pkr, .pk-top) { display: block; }
#scene[data-theme="poker-night"] { background: linear-gradient(#12081f 0 300px, #0b0f24 300px); }
#scene[data-theme="poker-night"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar) { display: none !important; }
#scene[data-theme="poker-night"] .truss span { background: #0d5c3a; border-color: #f2c14e; color: #f2c14e; font-size: 0; letter-spacing: 0; }
#scene[data-theme="poker-night"] .truss span::after { content: 'POKER NIGHT'; font: 800 italic 14px 'Space Grotesk', Inter, sans-serif; letter-spacing: 4px; }
#scene[data-theme="poker-night"] .lip { background: #f2c14e; box-shadow: 0 0 18px #f2c14e; }
#scene[data-theme="poker-night"] .deckstage { background: repeating-linear-gradient(90deg, #1b7a4e 0 26px, #145c3b 26px 28px); border-color: #f2c14e; }
#scene[data-theme="poker-night"] .boothfront { background: linear-gradient(#5a1630, #2a0816); border-color: #f2c14e; }

/* swirling neon backdrop */
.pk-swirl { position: absolute; left: -240px; top: -330px; width: 1440px; height: 960px; filter: blur(26px) saturate(1.3); opacity: .75;
  background: conic-gradient(from 0deg, #4b1d7a, #0f6a6a, #1c2f8a, #8a1d5a, #4b1d7a, #0f6a6a, #1c2f8a, #8a1d5a, #4b1d7a); animation: pk-spin 40s linear infinite; }
@keyframes pk-spin { to { rotate: 360deg; } }
.pkr::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .18) 2px 4px), radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, .55)); }
.pk-suits i { position: absolute; bottom: -40px; color: rgba(255, 255, 255, .22); font-family: Georgia, serif; animation: pk-float linear forwards; }
.pk-suits i.red { color: rgba(255, 110, 140, .3); }
@keyframes pk-float { to { translate: 0 -360px; rotate: 30deg; opacity: 0; } }

/* the table */
.pk-table { position: absolute; left: 30px; right: 30px; top: 150px; height: 230px; border-radius: 50%; background: linear-gradient(#7a4a22, #3a210c); box-shadow: 0 -4px 18px rgba(0, 0, 0, .6), inset 0 3px 0 #b37b45; }
.pk-felt { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #23a56a, #13704a 55%, #0b4a30); box-shadow: inset 0 0 30px rgba(0, 0, 0, .55); border: 2px solid rgba(242, 193, 78, .35); }
.pk-felt span { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font: 800 italic 13px 'Space Grotesk', Inter, sans-serif; letter-spacing: 6px; color: rgba(242, 193, 78, .45); }
.pk-chips { position: absolute; top: 210px; display: flex; flex-direction: column-reverse; }
.pk-chips.l { left: 240px; } .pk-chips.r { left: 300px; top: 222px; }
.pk-chips i { width: 34px; height: 9px; margin-top: -3px; border-radius: 50%; border: 2px dashed #fff; background: #c8102e; box-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.pk-chips i:nth-child(2n) { background: #1a62e0; } .pk-chips i:nth-child(3n) { background: #111; }
.pk-deck { position: absolute; left: 340px; top: 218px; }
.pk-deck i { position: absolute; width: 22px; height: 30px; border-radius: 3px; background: repeating-linear-gradient(45deg, #8a1d2e 0 3px, #c8283e 3px 6px); border: 2px solid #fff; }
.pk-deck i:nth-child(2) { left: 2px; top: -2px; } .pk-deck i:nth-child(3) { left: 4px; top: -4px; }

/* paytable board (right of the booth) */
/* drawn at 2x then scaled down: phones/browsers with a minimum font size were inflating the 7.5px text and wrapping it (2026-11-19) */
.pk-pay { position: absolute; left: 606px; top: 138px; width: max-content; min-width: 292px; padding: 12px 14px; -webkit-text-size-adjust: none; text-size-adjust: none; background: rgba(10, 6, 24, .88); border: 4px solid #f2c14e; border-radius: 16px; color: #e9e3ff; font: 600 15px/1.55 Inter, Arial, sans-serif; transform: scale(.5); transform-origin: 0 0; }
.pk-pay > b { display: block; text-align: center; color: #f2c14e; font: 800 18px 'Space Grotesk', Inter, sans-serif; letter-spacing: 4px; margin-bottom: 4px; }
.pk-pay div { display: flex; justify-content: space-between; gap: 8px; padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.pk-pay div em { font-style: normal; color: #7fd6ff; }
.pk-pay div.hit { background: #f2c14e; color: #1a0a2a; } .pk-pay div.hit em { color: #1a0a2a; }
.pk-pay small { display: block; margin-top: 6px; text-align: center; color: #9a8fc0; font-size: 13px; white-space: nowrap; }

/* the hand */
.pk-hand { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.pk-hand.pk-on { opacity: 1; }
.pk-hand::before { content: ""; position: absolute; left: 230px; right: 230px; top: 60px; bottom: 14px; border-radius: 18px; background: rgba(8, 4, 20, .78); box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
.pk-name { position: absolute; left: 0; right: 0; top: 63px; text-align: center; font: 900 italic 20px 'Space Grotesk', Inter, sans-serif; letter-spacing: 2px; color: #fff; opacity: 0; text-shadow: 0 3px 0 #000; }
.pk-name.pk-on { opacity: 1; animation: pk-zoom .4s cubic-bezier(.3, 1.7, .5, 1); }
.pk-name.pk-payday { color: #f2c14e; text-shadow: 0 0 14px rgba(242, 193, 78, .8), 0 3px 0 #000; }
.pk-name:is(.pk-k-full, .pk-k-flush, .pk-k-straight, .pk-k-quads, .pk-k-sflush, .pk-k-royal) { color: #7dffb0; }
@keyframes pk-zoom { from { scale: 2.2; opacity: 0; } }
.pk-cards { position: absolute; left: 0; right: 0; top: 104px; display: flex; justify-content: center; gap: 10px; padding-left: 84px; perspective: 600px; }
.pk-card { position: relative; width: 66px; height: 92px; transform-style: preserve-3d; transform: rotateY(180deg) translateY(-30px); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .2s, filter .3s; }
.pk-card.pk-up { transform: none; opacity: 1; }
.pk-card.pk-held { transform: translateY(-10px); } .pk-card.pk-held::after { content: "HELD"; position: absolute; left: 0; right: 0; bottom: -14px; text-align: center; font: 800 9px 'Space Grotesk', Inter, sans-serif; letter-spacing: 2px; color: #f2c14e; }
.pk-card.pk-toss { filter: brightness(.6) saturate(.6); transform: translateY(6px); }
.pk-card.pk-sc { transform: translateY(-8px); filter: drop-shadow(0 0 10px #f2c14e); }
.pk-card.pk-ping::before { content: attr(data-plus); position: absolute; left: 0; right: 0; top: -22px; text-align: center; font: 900 14px 'Space Grotesk', Inter, sans-serif; color: #7fd6ff; text-shadow: 0 2px 0 #000; animation: pk-plus .7s ease-out forwards; }
@keyframes pk-plus { from { translate: 0 8px; opacity: 0; } 30% { opacity: 1; } to { translate: 0 -10px; opacity: 0; } }
.pk-face, .pk-back { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; }
.pk-face { background: linear-gradient(#fffdf6, #efe6d2); border: 2px solid #2a2340; color: #1a1630; box-shadow: 0 4px 0 rgba(0, 0, 0, .45); font-family: Georgia, 'Times New Roman', serif; }
.pk-card.red .pk-face { color: #d0213a; }
.pk-face b { position: absolute; left: 6px; top: 3px; font-size: 18px; font-weight: 700; }
.pk-face span { position: absolute; left: 7px; top: 24px; font-size: 13px; }
.pk-face em { position: absolute; right: 6px; bottom: 2px; font-style: normal; font-size: 34px; line-height: 1; }
.pk-back { transform: rotateY(180deg); border: 2px solid #fff; background: repeating-linear-gradient(45deg, #8a1d2e 0 5px, #c8283e 5px 10px); box-shadow: 0 4px 0 rgba(0, 0, 0, .45); }
.pk-score { position: absolute; left: 0; right: 0; top: 220px; display: flex; justify-content: center; align-items: center; gap: 8px; opacity: 0; transition: opacity .3s; }
.pk-hand.pk-scoring .pk-score { opacity: 1; }
.pk-score > i { font: 900 18px 'Space Grotesk', Inter, sans-serif; color: #fff; font-style: normal; }
.pk-score > div { position: relative; min-width: 74px; height: 40px; box-sizing: border-box; padding: 4px 10px; display: flex; flex-direction: column; justify-content: center; border-radius: 8px; text-align: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.pk-score small { display: block; font: 800 7px 'Space Grotesk', Inter, sans-serif; letter-spacing: 2px; opacity: .85; }
.pk-score b { position: static; display: block; font: 900 22px 'Space Grotesk', Inter, sans-serif; line-height: 1.05; }
.pk-c { background: linear-gradient(#2a8cff, #1456b8); color: #fff; } .pk-m { background: linear-gradient(#ff4f6e, #b8143a); color: #fff; }
.pk-t { background: linear-gradient(#ffd75a, #e0a21a); color: #2a1400; }
.pk-score b.pk-pop { animation: pk-bump .3s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pk-bump { 40% { scale: 1.35; } }
.pk-hand.pk-fire .pk-t { box-shadow: 0 0 22px #ffd75a, 0 3px 0 rgba(0, 0, 0, .5); animation: pk-shake .5s linear; }
@keyframes pk-shake { 25% { translate: -3px 1px; } 50% { translate: 3px -1px; } 75% { translate: -2px 0; } }
.pk-bonus { position: absolute; left: 250px; top: 120px; width: 0; height: 0; opacity: 0; }
.pk-bonus.pk-on { opacity: 1; }
.pk-bonus.pk-on { left: 236px; top: 104px; width: 74px; height: 92px; padding: 6px 4px; border-radius: 8px; text-align: center; background: linear-gradient(#3a1a6a, #1a0a38); border: 2px solid #f2c14e; box-shadow: 0 0 18px rgba(242, 193, 78, .5);
  color: #fff; animation: pk-deal .45s cubic-bezier(.3, 1.6, .5, 1); }
.pk-bonus small { display: block; font: 800 6px 'Space Grotesk', Inter, sans-serif; letter-spacing: 1px; color: #f2c14e; }
.pk-bonus b { display: block; margin: 8px 0 6px; font: 900 10px 'Space Grotesk', Inter, sans-serif; letter-spacing: .5px; }
.pk-bonus span { display: block; font: 600 8px/1.3 Inter, Arial, sans-serif; color: #cfe3ff; }
@keyframes pk-deal { from { translate: -120px -40px; rotate: -25deg; opacity: 0; } }
.pk-rain i { position: absolute; top: -30px; width: 24px; height: 24px; background: url(/spr/ring.png) 0 0 / 400% 100% no-repeat; image-rendering: pixelated; animation: pk-ring linear forwards, pk-ringspin .4s steps(4) infinite; }
@keyframes pk-ringspin { to { background-position: 133.33% 0; } }
@keyframes pk-ring { to { translate: 0 340px; rotate: 360deg; } }

/* tpir.css */
/* The Price Is Right stage (2026-11-17), see tpir.js. Set photo + logo from Wikimedia Commons (spr/tpir/PROVENANCE.md). */
.tpir { display: none; position: absolute; left: 0; top: 0; width: 960px; height: 300px; z-index: 1; overflow: hidden; }
#scene[data-theme="tpir"] .tpir { display: block; }
#scene[data-theme="tpir"] { background: linear-gradient(#2b1b4d 0 300px, #0b0f24 300px); }
#scene[data-theme="tpir"] :is(.sky, .far, .scenery, .lay.near, .tailsfly, .eggmobile, .palm, .endpost, .starpost, .bumper, .spring, .stagechar) { display: none !important; }
.tp-bg { position: absolute; inset: 0; background: url(/spr/tpir/set.svg) 0 0 / 960px 300px no-repeat; }
.tp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .35)); }
.tp-logo { position: absolute; left: 14px; top: 4px; width: 84px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); animation: tp-bob 3s ease-in-out infinite; }
@keyframes tp-bob { 50% { transform: translateY(-2px); } }
/* Big Wheel strip */
.tp-wheel { position: absolute; left: 12px; top: 106px; width: 92px; height: 188px; overflow: hidden; pointer-events: auto; cursor: pointer; border-radius: 10px;
  background: #0b0b0b; border: 4px solid; border-color: #f2f2f8 #9a9aaa #6a6a7a #d8d8e4; box-shadow: 0 0 0 2px #222, 0 8px 16px rgba(0, 0, 0, .7); }
.tp-wheel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#000 0, rgba(0,0,0,.55) 18%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 62%, rgba(0,0,0,.55) 82%, #000 100%); }
.tp-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.tp-cell { height: 30px; margin: 2px 5px; display: grid; place-items: center; border-radius: 4px; background: #000; border: 2px solid #ffd400; color: #ffd400; font: 900 italic 20px/1 'Arial Black', Arial, sans-serif; text-shadow: 1px 1px 0 #7a5a00; }
.tp-cell:nth-child(even) { border-color: #e8e8f0; color: #fff; text-shadow: 1px 1px 0 #555; }
.tp-cell.dollar { background: #c8102e; border-color: #ffd400; color: #fff; font-size: 16px; }
.tp-arrow { z-index: 2; position: absolute; right: -2px; top: 50%; margin-top: -9px; width: 0; height: 0; border: 9px solid transparent; border-right: 14px solid #e31b23; filter: drop-shadow(-1px 1px 0 #000); }
.tp-hint { z-index: 2; position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 800 9px Arial, sans-serif; letter-spacing: .1em; color: #fff; background: rgba(0, 0, 0, .7); padding: 2px 0; }
.tp-wheel.ready { box-shadow: 0 0 0 3px #222, 0 0 16px #ffd400, inset 0 14px 18px -8px #000, inset 0 -14px 18px -8px #000; }
.tp-wheel.ready .tp-hint { color: #ffd400; animation: tp-blink 1s steps(2) infinite; }
@keyframes tp-blink { 50% { color: #fff; } }
.tp-wheel.won { box-shadow: 0 0 0 3px #222, 0 0 22px #7dffa8; } .tp-wheel.dollar { animation: tp-dollar .2s steps(2) 12; }
@keyframes tp-dollar { 50% { box-shadow: 0 0 0 3px #ffd400, 0 0 30px #ff2bd6; } }
/* Plinko */
.tp-plinko { position: absolute; left: 846px; top: 4px; width: 112px; height: 292px; border-radius: 10px; padding-top: 22px; background: linear-gradient(#2a6fe0, #1a3fa8); border: 4px solid; border-color: #f2f2f8 #9a9aaa #6a6a7a #d8d8e4; box-shadow: 0 8px 16px rgba(0, 0, 0, .7); box-sizing: border-box; overflow: hidden; }
.tp-plinko::before { content: 'PLINKO'; position: absolute; left: 0; right: 0; top: 2px; text-align: center; font: 900 italic 15px 'Arial Black', Arial, sans-serif; letter-spacing: 2px; color: #ffd400; text-shadow: 0 0 8px #ff2b8a, 1px 1px 0 #7a0636; }
.tp-plinko canvas { display: block; }
/* the stage dressed as the set */
#scene[data-theme="tpir"] .truss span { background: #c8102e; border-color: #ffd400; color: #ffd400; font-size: 0; letter-spacing: 0; }
#scene[data-theme="tpir"] .truss span::after { content: 'THE PRICE IS RIGHT'; font: 900 italic 14px 'Arial Black', Arial, sans-serif; letter-spacing: 2px; }
#scene[data-theme="tpir"] .truss { border-image: repeating-linear-gradient(90deg, #fff 0 6px, #ffd400 6px 12px) 10; }
#scene[data-theme="tpir"] .lip { background: #ffd400; box-shadow: 0 0 18px #ffd400; }
#scene[data-theme="tpir"] .deckstage { background: radial-gradient(circle, #fff8c0 0 3px, transparent 3.5px) 6px 50% / 18px 100% repeat-x, linear-gradient(#ffd400, #e8a400); border-color: #7a5000; }
#scene[data-theme="tpir"] .boothfront { background: linear-gradient(#ff7a00, #d84a00); border-color: #ffd400; }
#scene[data-theme="tpir"] .boothfront span { color: #ffd400; text-shadow: 1px 1px 0 #000; }
#scene[data-theme="tpir"] .beams i { background: linear-gradient(#ffd40088, transparent); }

/* slots.css */
/* ===== Casino Night Slots (2026-11-17, polished) — slots.js drives it, spins come from the server ===== */
.controls .slotsbtn { border: 1px solid rgba(255, 64, 160, .45); border-radius: 999px; background: rgba(255, 64, 160, .12); color: #ff8fd0; font: 600 12px/1 var(--m-font); letter-spacing: .04em; padding: 10px 14px; cursor: pointer; }
.controls .slotsbtn:hover { background: rgba(255, 64, 160, .22); }

dialog.slotsdlg { --cell: 76px; width: min(480px, calc(100vw - 32px)); padding: 0; border: 2px solid #ff40a0; border-radius: 22px; color: #fff; overflow: visible;
  background: radial-gradient(120% 80% at 50% 0%, #3a0f5a, #12051f 70%); box-shadow: 0 0 0 4px #2a0a40, 0 0 50px rgba(255, 64, 160, .45), 0 30px 80px rgba(0, 0, 0, .6); }
dialog.slotsdlg::backdrop { background: rgba(4, 2, 12, .82); }
.sl-in { position: relative; padding: 14px 18px 16px; }
.sl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sl-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 800 16px 'Space Grotesk', Inter, sans-serif; color: #ffd6ec; }
.sl-wallet { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .4); font: 700 13px var(--m-mono, monospace); color: #ffd65a; transition: transform .2s; }
.sl-wallet.bump { animation: sl-bump .5s ease-out; }
@keyframes sl-bump { 30% { transform: scale(1.18); color: #7dffa8; } }
.sl-wallet img { width: 16px; height: 16px; object-fit: none; object-position: 0 0; image-rendering: pixelated; }
.sl-head button { border: 0; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font-size: 14px; }
.sl-head button:hover { background: rgba(255, 255, 255, .18); }

/* the cabinet */
.sl-cab { position: relative; margin-right: 26px; }
.sl-marquee { position: relative; text-align: center; padding: 8px 0 10px; margin: 0 6px -6px; border-radius: 16px 16px 6px 6px;
  background: linear-gradient(#ff3d8b, #b3125a); box-shadow: inset 0 2px 0 #ffb3d1, inset 0 -3px 0 #6a0732; }
.sl-marquee b { display: block; font: italic 900 26px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: .02em; color: #fff36b;
  text-shadow: 0 2px 0 #b35a00, 0 4px 0 #6a2a00, 0 0 18px rgba(255, 220, 80, .7); }
.sl-marquee small { display: block; margin-top: 3px; font: 700 10px Inter, sans-serif; letter-spacing: .3em; color: #ffd6ec; }
.sl-machine { position: relative; padding: 16px 14px 14px; border-radius: 16px; background: linear-gradient(#ffd65a, #e09a12); box-shadow: inset 0 2px 0 #fff3b0, inset 0 -3px 0 #8a5a00, 0 8px 0 #6a3f00; }
/* chasing bulbs around the reel window */
.sl-bulbs { position: absolute; inset: 5px; border-radius: 12px; pointer-events: none;
  background: radial-gradient(circle, #fff 0 2.5px, #ff3d8b 3px 4px, transparent 4.5px) 0 0 / 18px 18px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 9px no-repeat, linear-gradient(#000 0 0) bottom / 100% 9px no-repeat, linear-gradient(#000 0 0) left / 9px 100% no-repeat, linear-gradient(#000 0 0) right / 9px 100% no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% 9px no-repeat, linear-gradient(#000 0 0) bottom / 100% 9px no-repeat, linear-gradient(#000 0 0) left / 9px 100% no-repeat, linear-gradient(#000 0 0) right / 9px 100% no-repeat;
  animation: sl-chase 1.2s steps(2) infinite; }
@keyframes sl-chase { 50% { background-position: 9px 9px; filter: hue-rotate(60deg); } }
.slotsdlg.spinning .sl-bulbs { animation-duration: .25s; }
.slotsdlg.won .sl-bulbs { animation-duration: .12s; filter: hue-rotate(140deg) brightness(1.3); }
.slotsdlg.jackpot .sl-bulbs { animation: sl-chase .1s steps(2) infinite, sl-rainbow 1s linear infinite; }
@keyframes sl-rainbow { to { filter: hue-rotate(360deg) brightness(1.4); } }
.sl-reels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px; border-radius: 10px; background: #2a0a1c; }
.sl-reel { position: relative; height: calc(var(--cell) * 1.55); overflow: hidden; border-radius: 8px;
  background: linear-gradient(#cfcfe0, #fff 28%, #fff 72%, #cfcfe0); box-shadow: inset 0 10px 12px -6px rgba(0, 0, 0, .55), inset 0 -10px 12px -6px rgba(0, 0, 0, .55); }
.sl-strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.sl-strip.blur .sl-sym { filter: blur(1.4px) brightness(1.05); }
.sl-sym { display: block; flex: none; width: var(--cell); height: var(--cell); background: center / 84% no-repeat; image-rendering: pixelated; }
.sl-reel.hit { box-shadow: inset 0 0 0 3px #7dffa8, inset 0 0 22px rgba(125, 255, 168, .8); }
.sl-reel.hit .sl-sym.win { animation: sl-pop .5s ease-in-out 3; }
@keyframes sl-pop { 50% { transform: scale(1.18) rotate(-4deg); filter: drop-shadow(0 0 8px #ffe85a); } }
.sl-reel.tease { box-shadow: inset 0 0 0 3px #ffd65a, inset 0 0 26px rgba(255, 214, 90, .9); animation: sl-tease .3s steps(2) infinite; }
@keyframes sl-tease { 50% { box-shadow: inset 0 0 0 3px #ff3d8b, inset 0 0 26px rgba(255, 61, 139, .9); } }
.sl-line { position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 40, 80, .55); box-shadow: 0 0 6px #ff2850; pointer-events: none; }
.slotsdlg.won .sl-line { background: #7dffa8; box-shadow: 0 0 10px #22ff77; animation: sl-flash .25s steps(2) 6; }
.slotsdlg.egg .sl-machine { animation: sl-shake .45s ease-in-out; }
@keyframes sl-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* lever */
.sl-lever { position: absolute; right: -28px; top: 60px; width: 22px; height: 120px; border: 0; padding: 0; background: none; cursor: pointer; }
.sl-lever::before { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 26px; border-radius: 6px; background: linear-gradient(90deg, #8a8a9a, #e8e8f2, #8a8a9a); box-shadow: 0 2px 0 #444; }
.sl-lever i { position: absolute; left: 8px; bottom: 18px; width: 6px; height: 92px; border-radius: 3px; background: linear-gradient(90deg, #9a9aaa, #f4f4ff, #9a9aaa); transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.5, 0, .5, 1.6); }
.sl-lever i::after { content: ""; position: absolute; left: -8px; top: -14px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9ac6, #e0105c 55%, #7a0632); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.sl-lever.pull i { transform: scaleY(-.55); transition-duration: .18s; }
.sl-lever:disabled { cursor: default; }

/* result line + count-up */
.sl-msg { min-height: 30px; margin: 14px 0 6px; text-align: center; font: 800 18px 'Space Grotesk', Inter, sans-serif; }
.sl-msg.win { color: #7dffa8; text-shadow: 0 0 12px #22ff77; } .sl-msg.win.big { color: #ffd65a; font-size: 26px; animation: sl-flash .3s steps(2) 8; }
.sl-msg.lose { color: #c9a8d8; font-weight: 600; font-size: 15px; }
@keyframes sl-flash { 50% { color: #ff40a0; } }
/* ring burst */
.sl-fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 5; }
.sl-fx i { position: absolute; width: 16px; height: 16px; background: url(/spr/ring.png) 0 0 / 64px 16px; image-rendering: pixelated;
  animation: sl-ringspin .3s steps(4) infinite, sl-fly var(--t, 1s) cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes sl-ringspin { to { background-position: -64px 0; } }
@keyframes sl-fly { 0% { transform: translate(0, 0) scale(.6); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1.2); opacity: 0; } }

/* controls */
.sl-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sl-k { font: 600 11px Inter, sans-serif; color: #c9a8d8; text-transform: uppercase; letter-spacing: .1em; }
.sl-bets { display: flex; gap: 6px; flex: 1 1 calc(100% - 50px); }
.sl-bets button { flex: 1; min-width: 0; padding: 8px 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: #fff; font: 700 13px var(--m-mono, monospace); cursor: pointer; }
.sl-bets button.on { background: #ffd65a; color: #1a1200; border-color: #ffd65a; box-shadow: 0 0 12px rgba(255, 214, 90, .5); }
.sl-bets button:disabled { opacity: .5; cursor: default; }
.sl-spin { flex: 1 1 auto; padding: 13px 22px; border: 0; border-radius: 14px; cursor: pointer; font: 900 17px 'Space Grotesk', Inter, sans-serif; letter-spacing: .1em; color: #fff;
  background: linear-gradient(#ff4a8a, #c4105a); box-shadow: 0 5px 0 #7a0636, 0 0 20px rgba(255, 64, 160, .5); transition: transform .08s, box-shadow .08s; }
.sl-spin:hover:not(:disabled) { filter: brightness(1.08); }
.sl-spin:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #7a0636; }
.sl-spin:disabled { opacity: .55; cursor: default; }
.sl-auto { flex: 0 0 auto; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); color: #fff; font: 800 13px 'Space Grotesk', Inter, sans-serif; letter-spacing: .06em; cursor: pointer; }
.sl-auto.on { background: #22c55e; border-color: #22c55e; color: #04220f; animation: sl-flash 1s steps(2) infinite; }
/* session strip */
.sl-session { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 600 11px Inter, sans-serif; color: #c9a8d8; }
.sl-session b { color: #fff; } .sl-session .up { color: #7dffa8; } .sl-session .down { color: #ff8fa8; }
.sl-hist { display: flex; gap: 3px; margin-left: auto; }
.sl-hist i { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .1); font: 700 9px/14px Inter; font-style: normal; text-align: center; color: #1a0a20; }
.sl-hist i.w { background: #7dffa8; } .sl-hist i.j { background: #ffd65a; } .sl-hist i.l { background: rgba(255, 255, 255, .14); }
/* paytable */
.sl-paybox { margin-top: 12px; font: 13px Inter, sans-serif; color: #d9c8e8; } .sl-paybox summary { cursor: pointer; font-weight: 600; }
.sl-pay { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.sl-pay li { display: flex; align-items: center; gap: 4px; } .sl-pay .sl-sym { width: 24px; height: 24px; background-size: contain; }
.sl-pay b { margin-left: auto; color: #ffd65a; } .sl-pay .sl-egg { color: #c9a8d8; font-weight: 500; } .sl-any { font-size: 11px; color: #c9a8d8; width: 24px; text-align: center; }
.sl-fine { margin: 10px 0 0; font-size: 11px; color: #a890b8; }

/* mini mode: small floating machine in the corner, page stays usable */
dialog.slotsdlg.mini { --cell: 34px; position: fixed; inset: auto 16px 16px auto; margin: 0; width: 272px; z-index: 900; border-radius: 16px; }
dialog.slotsdlg.mini .sl-in { padding: 8px 10px 10px; }
dialog.slotsdlg.mini .sl-head { margin-bottom: 6px; gap: 6px; } dialog.slotsdlg.mini .sl-head b { font-size: 13px; }
dialog.slotsdlg.mini .sl-head button { width: 26px; height: 26px; }
dialog.slotsdlg.mini :is(.sl-marquee, .sl-lever, .sl-k, .sl-paybox, .sl-session) { display: none; }
dialog.slotsdlg.mini .sl-cab { margin-right: 0; }
dialog.slotsdlg.mini .sl-machine { padding: 8px; border-radius: 10px; box-shadow: inset 0 2px 0 #fff3b0, inset 0 -3px 0 #8a5a00; }
dialog.slotsdlg.mini .sl-bulbs { inset: 2px; background-size: 10px 10px; }
dialog.slotsdlg.mini .sl-reels { gap: 5px; padding: 3px; }
dialog.slotsdlg.mini .sl-msg { min-height: 20px; margin: 6px 0 4px; font-size: 14px; } dialog.slotsdlg.mini .sl-msg.win.big { font-size: 16px; }
dialog.slotsdlg.mini .sl-controls { gap: 5px; } dialog.slotsdlg.mini .sl-bets { flex-basis: 100%; }
dialog.slotsdlg.mini .sl-bets button { padding: 5px 4px; font-size: 11px; border-radius: 8px; }
dialog.slotsdlg.mini .sl-spin { padding: 7px 10px; font-size: 13px; border-radius: 10px; box-shadow: 0 3px 0 #7a0636; }
dialog.slotsdlg.mini .sl-auto { padding: 7px 10px; font-size: 11px; border-radius: 10px; }
@media (max-width: 600px) { dialog.slotsdlg { --cell: 64px; } dialog.slotsdlg.mini { --cell: 30px; inset: auto 8px 8px auto; width: 236px; } .sl-cab { margin-right: 22px; } }

/* leaderboard */
.sl-btabs { display: flex; gap: 5px; margin: 8px 0 6px; flex-wrap: wrap; }
.sl-btabs button { flex: 1; padding: 6px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #e8d8f2; font: 600 11px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.sl-btabs button.on { background: #ffd65a; border-color: #ffd65a; color: #1a1200; }
.sl-blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sl-blist li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.sl-blist li.me { background: rgba(255, 214, 90, .14); outline: 1px solid rgba(255, 214, 90, .35); }
.sl-blist .sl-bi { text-align: center; font: 700 12px Inter, sans-serif; color: #c9a8d8; }
.sl-blist b { font: 600 13px Inter, sans-serif; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-blist em { font: 700 12px var(--m-mono, monospace); font-style: normal; color: #ffd65a; }
.sl-blist .sl-bempty { display: block; text-align: center; color: #a890b8; font-size: 12px; }
.sl-bme { margin: 8px 2px 0; font-size: 11px; color: #c9a8d8; }
dialog.slotsdlg.mini .sl-board { display: none; }

/* viz.css */
/* beat visualizers (2026-11-17), see viz.js */
#scene .vizfx { position: absolute; left: 0; top: 0; width: 960px; height: 100%; z-index: 260; pointer-events: none; }
.controls .vizwrap { position: relative; display: inline-flex; }
.controls .vizbtn { border: 1px solid rgba(160, 120, 255, .45); border-radius: 999px; background: rgba(160, 120, 255, .12); color: #c9b3ff; font: 600 12px/1 var(--m-font); letter-spacing: .04em; padding: 10px 14px; cursor: pointer; }
.controls .vizbtn:hover { background: rgba(160, 120, 255, .22); }
.controls .vizbtn.on { border-color: #b98aff; box-shadow: 0 0 14px rgba(185, 138, 255, .55); color: #fff; }
.vizpop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 950; width: 280px; padding: 12px; border-radius: 16px; background: #141026; border: 1px solid rgba(185, 138, 255, .35); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); color: #e8e3ff; text-align: left; }
.vizpop[hidden] { display: none; }
.vz-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .vz-h b { font: 700 14px 'Space Grotesk', Inter, sans-serif; }
.vz-all { border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #e8e3ff; border-radius: 999px; padding: 4px 10px; font: 600 11px Inter, sans-serif; cursor: pointer; }
.vz-list { display: grid; gap: 4px; }
.vz-row { display: flex; align-items: flex-start; gap: 9px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.vz-row:hover { background: rgba(255, 255, 255, .05); }
.vz-row input { margin-top: 2px; accent-color: #b98aff; width: 16px; height: 16px; flex: none; }
.vz-row b { display: block; font: 600 13px Inter, sans-serif; } .vz-row small { display: block; font: 11px Inter, sans-serif; color: #a59cc9; }
.vz-note { margin: 8px 2px 0; font: 11px Inter, sans-serif; color: #8d84b3; }
@media (max-width: 600px) { .vizpop { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; } }
.vz-row.shared { cursor: default; background: rgba(185, 138, 255, .1); }
.vz-row em { margin-left: 6px; font: 700 9px Inter, sans-serif; font-style: normal; letter-spacing: .08em; padding: 2px 6px; border-radius: 999px; background: #b98aff; color: #1a0f33; vertical-align: middle; }
.vz-row.locked { cursor: default; align-items: center; opacity: .85; } .vz-lock { width: 16px; text-align: center; flex: none; }
.vz-buy { margin-left: auto; flex: none; border: 0; border-radius: 999px; padding: 5px 10px; background: #ffd65a; color: #1a1200; font: 700 11px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.vz-all[hidden] { display: none; }

/* jukebox.css */
/* ===== The Jukebox (2026-11-15): modern glass panel, matches modern.css tokens ===== */
.controls .jbbtn {
  border: 1px solid rgba(63, 210, 255, .35); border-radius: 999px; background: rgba(63, 210, 255, .1); color: var(--m-cyan);
  font: 600 12px/1 var(--m-font); letter-spacing: .04em; padding: 10px 14px; cursor: pointer; transition: background .15s;
}
.controls .jbbtn:hover { background: rgba(63, 210, 255, .18); }

.req .jb-open {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 28px); margin: 14px 14px 0; padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1px solid rgba(63, 210, 255, .28); border-radius: 14px; color: var(--m-text); font-family: var(--m-font);
  background: linear-gradient(135deg, rgba(61, 109, 255, .2), rgba(63, 210, 255, .08)); transition: border-color .15s, transform .15s;
}
.req .jb-open:hover { border-color: rgba(63, 210, 255, .6); transform: translateY(-1px); }
.req .jb-open > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.req .jb-open b { font: 600 15px/1.1 var(--m-display); }
.req .jb-open small { font-size: 12px; color: var(--m-muted); }
.req .jb-open i { font-style: normal; color: var(--m-cyan); font-size: 18px; }
.jb-open-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--m-grad); position: relative; }
.jb-open-ic::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle, #fff 0 2px, #0b1020 3px 5px, #fff 6px 7px, #0b1020 8px); }

/* ---- dialog shell ---- */
.jb { border: 0; padding: 0; background: transparent; color: var(--m-text); width: min(1120px, calc(100vw - 32px)); max-width: none; height: min(780px, calc(100vh - 48px)); max-height: none; overflow: visible; }
.jb::backdrop { background: rgba(4, 6, 14, .84); }
.jb[open] { animation: jb-in .22s ease-out; }
@keyframes jb-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.jb-shell {
  height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; font-family: var(--m-font);
  background: radial-gradient(700px 300px at 0% 0%, rgba(61, 109, 255, .18), transparent 70%), radial-gradient(600px 300px at 100% 0%, rgba(176, 64, 255, .12), transparent 70%), #0b0d18;
  border: 1px solid var(--m-line-2); box-shadow: 0 40px 100px -20px #000;
}
.jb-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px 12px; }
.jb-brand { flex: 1; min-width: 0; }
.jb-eyebrow { font: 600 10px/1 var(--m-font); letter-spacing: .22em; text-transform: uppercase; color: var(--m-muted); }
.jb-head h2 { margin: 4px 0 0; font: 700 26px/1 var(--m-display); letter-spacing: -.01em;
  background: linear-gradient(90deg, #fff, #9fdcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jb-wallet { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 200, 61, .08); border: 1px solid rgba(255, 200, 61, .25); font-size: 13px; color: var(--m-muted); white-space: nowrap; }
.jb-wallet b { color: var(--m-gold); font: 600 14px var(--m-mono); }
.jb-x { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--m-line-2); background: var(--m-surface-2); color: var(--m-text); font-size: 22px; line-height: 1; cursor: pointer; }
.jb-x:hover { background: rgba(255, 255, 255, .12); }

/* now playing + request line */
.jb-np { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; padding: 0 20px 14px; }
.jb-np > div { min-width: 0; border-radius: 14px; background: var(--m-surface); border: 1px solid var(--m-line); padding: 10px 12px; }
.jb-np small { display: block; font: 600 10px/1 var(--m-font); letter-spacing: .16em; text-transform: uppercase; color: var(--m-muted); margin-bottom: 6px; }
.jb-np-now { display: flex; align-items: center; gap: 10px; }
.jb-np-now img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
.jb-np-now span { min-width: 0; display: flex; flex-direction: column; }
.jb-np-now small { color: var(--m-red); margin-bottom: 4px; }
.jb-np-now small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--m-red); margin-right: 6px; vertical-align: 1px; animation: jb-pulse 1.4s infinite; }
@keyframes jb-pulse { 50% { opacity: .3; } }
.jb-np b, .jb-np em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-np b { font-size: 14px; font-weight: 600; }
.jb-np em { font-style: normal; font-size: 12px; color: var(--m-muted); }
.jb-np-line ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jb-np-line li { display: flex; align-items: center; gap: 6px; flex: none; max-width: 240px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--m-surface-2); font-size: 12px; }
.jb-np-line li i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--m-grad); font: 700 11px var(--m-mono); color: #fff; flex: none; }
.jb-np-line p { margin: 0; font-size: 13px; color: var(--m-muted); }

/* body: crates + main list */
.jb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); border-top: 1px solid var(--m-line); }
.jb-crates { overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--m-line); scrollbar-width: thin; }
.jb-crates button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--m-muted); font: 500 14px var(--m-font); text-align: left; cursor: pointer; transition: background .12s, color .12s;
}
.jb-crates button:hover { background: var(--m-surface-2); color: var(--m-text); }
.jb-crates button.on { background: rgba(61, 109, 255, .22); color: #fff; box-shadow: inset 2px 0 0 var(--m-cyan); }
.jb-crates b { font: 500 11px var(--m-mono); color: var(--m-dim); }
.jb-crates button.on b { color: var(--m-cyan); }

.jb-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.jb-tools { display: flex; gap: 8px; padding: 12px 16px 8px; }
.jb-tools input, .jb-tools select {
  height: 40px; border-radius: 12px; border: 1px solid var(--m-line-2); background: rgba(255, 255, 255, .04); color: var(--m-text); font: 14px var(--m-font); padding: 0 12px;
}
.jb-tools input { flex: 1; min-width: 0; }
.jb-tools select { cursor: pointer; }
.jb-tools select option { background: #141826; }
.jb-lucky { height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--m-grad); color: #fff; font: 600 13px var(--m-font); cursor: pointer; white-space: nowrap; }
.jb-artists { display: flex; gap: 6px; padding: 2px 16px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.jb-artists[hidden] { display: none; }
.jb-artists button {
  flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--m-line-2); background: transparent; color: var(--m-text); font: 500 12px var(--m-font); cursor: pointer; white-space: nowrap;
}
.jb-artists button b { font: 500 10px var(--m-mono); color: var(--m-dim); margin-left: 2px; }
.jb-artists button:hover { background: var(--m-surface-2); }
.jb-artists button.on { background: #fff; color: #0b0d18; border-color: #fff; }
.jb-artists button.on b { color: #555; }
.jb-count { padding: 0 16px 6px; font-size: 12px; color: var(--m-muted); min-height: 18px; }

.jb-list { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
.jb-list > li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.jb-list > li:hover { background: rgba(255, 255, 255, .04); }
.jb-list > li + li { border-top: 1px solid rgba(255, 255, 255, .04); }
.jb-list > li > img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #151a2b; }
.jb-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jb-tx > b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-tx > span { display: flex; gap: 8px; min-width: 0; font-size: 12px; color: var(--m-muted); white-space: nowrap; overflow: hidden; }
.jb-tx em { font-style: normal; color: var(--m-dim); overflow: hidden; text-overflow: ellipsis; }
.jb-a { border: 0; padding: 0; background: none; color: var(--m-muted); font: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 60%; }
.jb-a:hover { color: var(--m-cyan); text-decoration: underline; }
.jb-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--m-dim); }
.jb-meta time { font-family: var(--m-mono); min-width: 36px; text-align: right; }
.jb-g { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--m-muted); }
.jb-g.g-dubstep { background: rgba(168, 85, 247, .16); color: #c99bff; } .jb-g.g-dnb { background: rgba(34, 197, 94, .14); color: #7ee2a0; }
.jb-g.g-rap { background: rgba(255, 200, 61, .13); color: #ffd56b; } .jb-g.g-house, .jb-g.g-dance { background: rgba(63, 210, 255, .13); color: #7fdcff; }
.jb-g.g-vgm { background: rgba(255, 61, 90, .14); color: #ff8a9c; } .jb-g.g-pop, .jb-g.g-rnb { background: rgba(244, 114, 182, .14); color: #f7a1cf; }
.jb-g.g-rock { background: rgba(249, 115, 22, .15); color: #ffaa70; } .jb-g.g-trap, .jb-g.g-lofi { background: rgba(148, 163, 184, .15); color: #c4ccdb; }
.jb-play {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--m-gold-grad); color: #1d1300; font: 700 12px var(--m-font); white-space: nowrap; transition: transform .12s, filter .12s;
}
.jb-play:hover { transform: translateY(-1px); filter: brightness(1.06); }
.jb-play.busy { opacity: .6; pointer-events: none; }
.jb-play .spr.ring { transform: scale(.8); }
.jb-st { display: inline-block; padding: 7px 12px; border-radius: 999px; font: 600 12px var(--m-font); background: rgba(63, 210, 255, .12); color: var(--m-cyan); white-space: nowrap; }
.jb-st.live { background: rgba(255, 61, 90, .15); color: #ff8a9c; }
.jb-st.dim { background: transparent; color: var(--m-dim); }
.jb-list > li.is-playing { background: rgba(255, 61, 90, .06); }
.jb-list > li.jb-empty { display: block; padding: 40px 16px; text-align: center; color: var(--m-muted); border: 0; }
.jb-list > li.sc { grid-template-columns: 44px minmax(0, 1fr) auto; }
.jb-list > li.sc .sc-badge { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: #ff5500; color: #fff; font-weight: 700; }
.jb-list > li.sc .t { font-weight: 600; font-size: 14px; } .jb-list > li.sc .a { font-size: 12px; color: var(--m-muted); }
.jb-list > li.sc button { height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--m-gold-grad); color: #1d1300; font: 700 12px var(--m-font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.jb-more { margin: 0 16px 14px; height: 38px; border-radius: 12px; border: 1px solid var(--m-line-2); background: var(--m-surface); color: var(--m-text); font: 600 13px var(--m-font); cursor: pointer; }
.jb-more[hidden] { display: none; }

/* ---- phones: full screen, crates become a swipe row ---- */
@media (max-width: 760px) {
  .jb { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .jb-shell { border-radius: 0; border: 0; }
  .jb-head { padding: 14px 16px 10px; gap: 10px; }
  .jb-head h2 { font-size: 22px; }
  .jb-wallet span { display: none; }
  .jb-np { grid-template-columns: 1fr; padding: 0 16px 10px; gap: 6px; }
  .jb-np-now { display: none; }
  .jb-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .jb-crates { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--m-line); padding: 10px 16px; gap: 6px; scrollbar-width: none; }
  .jb-crates button { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--m-surface-2); font-size: 13px; }
  .jb-crates button.on { box-shadow: none; background: var(--m-blue); }
  .jb-tools { flex-wrap: wrap; padding: 10px 16px 8px; }
  .jb-tools input { flex: 1 1 100%; }
  .jb-tools select { flex: 1; }
  .jb-artists, .jb-count { padding-left: 16px; padding-right: 16px; }
  .jb-list { padding: 0 8px calc(12px + env(safe-area-inset-bottom)); }
  .jb-list > li { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 8px; }
  .jb-crates .jb-plhead { display: none; }
  .jb-crates .jb-plbtn { background: rgba(176, 64, 255, .16); }
  .jb-crates .jb-plnew { border: 1px dashed var(--m-line-2); }
  .jb-meta { display: none; }
  .jb-play { height: 36px; padding: 0 12px; }
  .jb-play > span { display: none; }
}
.jb-sub { margin: 6px 0 0; font-size: 13px; color: var(--m-muted); }
@media (max-width: 760px) { .jb-sub { font-size: 12px; } }
.jb-ring { width: 14px; height: 14px; image-rendering: pixelated; object-fit: cover; object-position: 0 0; flex: none; }
.jb-wallet .jb-ring { width: 16px; height: 16px; }

/* ---- room mood vote (2026-11-15) ---- */
.moodbar { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 4px; }
.mood-k { font: 600 13px var(--m-font); color: var(--m-text); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.mood-k small { font-weight: 500; font-size: 12px; color: var(--m-muted); }
.mood-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-opts button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--m-line-2); background: var(--m-surface-2); color: var(--m-text); font: 600 13px var(--m-font); transition: background .15s, border-color .15s, transform .15s;
}
.mood-opts button:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.mood-opts button b { font: 600 11px var(--m-mono); color: var(--m-muted); padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.mood-opts button.cur { border-color: rgba(176, 64, 255, .7); background: linear-gradient(135deg, rgba(176, 64, 255, .28), rgba(61, 109, 255, .22)); box-shadow: 0 0 18px -6px rgba(176, 64, 255, .8); }
.mood-opts button.mine { outline: 2px solid var(--m-cyan); outline-offset: 1px; }
.moodtag { display: inline-block; align-self: flex-start; margin: 4px 0 2px; padding: 3px 8px; border-radius: 999px; font: 700 10px var(--m-font); letter-spacing: .06em; color: #e6c8ff; background: rgba(176, 64, 255, .2); }

/* ---- player playlists (2026-11-16) ---- */
.jb-plhead { margin: 14px 12px 4px; font: 600 10px var(--m-font); letter-spacing: .12em; text-transform: uppercase; color: var(--m-dim); }
.jb-crates .jb-plnew { color: var(--m-cyan); justify-content: flex-start; }
.jb-crates .jb-plnew:hover { color: #fff; }
.jb-add, .jb-rm {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--m-line-2); background: transparent; color: var(--m-muted);
  font: 600 15px var(--m-font); cursor: pointer; display: grid; place-items: center; transition: background .12s, color .12s, border-color .12s;
}
.jb-add:hover { background: rgba(61, 109, 255, .2); border-color: var(--m-blue); color: #fff; }
.jb-rm { font-size: 12px; }
.jb-rm:hover { background: rgba(255, 61, 90, .15); border-color: var(--m-red); color: #ff8a9c; }
.jb-np-now .jb-save { width: auto; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; margin-left: auto; white-space: nowrap; flex: none; }
.jb-countrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jb-pltools { display: flex; gap: 6px; padding: 0 16px 6px; }
.jb-pltools[hidden] { display: none; }
.jb-pltools button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--m-line-2); background: transparent; color: var(--m-muted); font: 500 12px var(--m-font); cursor: pointer; }
.jb-pltools button:hover { color: var(--m-text); background: var(--m-surface-2); }
#jb-pldel:hover { color: #ff8a9c; border-color: var(--m-red); }
.jb-plmenu {
  position: fixed; z-index: 50; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 14px; border: 1px solid var(--m-line-2);
  background: #11141f; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); font-family: var(--m-font);
}
.jb-plmenu[hidden] { display: none; }
.jb-mh { padding: 6px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--m-dim); }
.jb-plmenu > button { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--m-text); font: 500 14px var(--m-font); cursor: pointer; text-align: left; }
.jb-plmenu > button:hover { background: var(--m-surface-2); }
.jb-plmenu > button b { font: 500 11px var(--m-mono); color: var(--m-dim); }
.jb-mform { display: flex; gap: 6px; padding: 6px 4px 4px; }
.jb-mform input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--m-line-2); background: rgba(255, 255, 255, .05); color: var(--m-text); font: 14px var(--m-font); }
.jb-mform button { height: 34px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--m-grad); color: #fff; font: 600 13px var(--m-font); cursor: pointer; }
.jb-pltools .jb-plplay { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--m-gold-grad); color: #1d1300; font-weight: 700; }
.jb-pltools .jb-plplay:hover { color: #1d1300; filter: brightness(1.06); background: var(--m-gold-grad); }
.jb-pltools .jb-plplay[hidden] { display: none; }
.jb-pltools .jb-plplay:disabled { background: transparent; color: var(--m-dim); border: 1px solid var(--m-line-2); cursor: default; }
.jb-pltools { flex-wrap: wrap; justify-content: flex-end; }
.mood-k small { display: inline-flex; align-items: center; gap: 5px; }
.mood-k small b { color: var(--m-text); }
.mood-k em { font-style: normal; font-size: 11px; color: var(--m-dim); margin-left: auto; }

/* Artists crate: A-Z index (2026-11-25) */
.jb-list > li.jb-letter { display: block; position: sticky; top: 0; z-index: 1; padding: 10px 10px 4px; font: 700 15px 'Space Grotesk', sans-serif; color: var(--m-cyan); background: #0d1020; border: 0; border-radius: 0; }
.jb-list > li.jb-artrow { display: block; padding: 0; }
.jb-artrow button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--m-text); font: inherit; text-align: left; cursor: pointer; }
.jb-artrow button:hover { background: rgba(255, 255, 255, .05); }
.jb-artrow b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-artrow span { font: 500 11px var(--m-mono); color: var(--m-dim); flex: none; }
.jb-artists button.jb-jump { min-width: 30px; padding-left: 0; padding-right: 0; text-align: center; font-weight: 600; }

/* zones.css */
/* GENERATED by /root/ops/dl/tools/build_zones.py — Sonic zone scenes (real Sonic Advance / S&K sprites, spr/zones/PROVENANCE.md) */
#scene[data-theme="arcade-coast"] { background: linear-gradient(#2aa6f0 0 300px, #0b0f24 300px); }
#scene[data-theme="arcade-coast"] .sky { filter: none; background: #2aa6f0; }
#scene[data-theme="arcade-coast"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/arcade-coast/bg.png) repeat-x left bottom / 300px 300px; image-rendering: pixelated; }
#scene[data-theme="arcade-coast"] .scenery, #scene[data-theme="arcade-coast"] .lay.near, #scene[data-theme="arcade-coast"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="arcade-coast"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="arcade-coast"] .truss span::after { content: 'NEO GREEN HILL \2022  ZONE 1'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="arcade-coast"] .lip { background: #3fbf3f; box-shadow: 0 0 18px #3fbf3f; }
#scene[data-theme="neon-night"] { background: linear-gradient(#1a0e3c 0 300px, #0b0f24 300px); }
#scene[data-theme="neon-night"] .sky { filter: none; background: #1a0e3c; }
#scene[data-theme="neon-night"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/neon-night/bg.png) repeat-x left bottom / 304px 300px; image-rendering: pixelated; }
#scene[data-theme="neon-night"] .scenery, #scene[data-theme="neon-night"] .lay.near, #scene[data-theme="neon-night"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="neon-night"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="neon-night"] .truss span::after { content: 'CASINO PARADISE \2022  ZONE 2'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="neon-night"] .lip { background: #ff2bd6; box-shadow: 0 0 18px #ff2bd6; }
#scene[data-theme="neon-night"] .palm { display: none; }
#scene[data-theme="neon-night"] .bumper { background: url(/spr/zones/neon-night/prop_bumper.png) no-repeat center bottom / contain !important; image-rendering: pixelated; animation: none; width: 42px; height: 42px; top: 234px; }
#scene[data-theme="neon-night"] .bumper.hit, #scene[data-theme="neon-night"] .bumper.spin, #scene[data-theme="neon-night"] .bumper.active { animation: hop .45s cubic-bezier(.3,1.6,.5,1) !important; }
#scene[data-theme="neon-night"] .endpost { background: url(/spr/zones/neon-night/prop_endpost.png) no-repeat center bottom / contain !important; image-rendering: pixelated; animation: none; width: 62px; height: 52px; top: 256px; }
#scene[data-theme="neon-night"] .endpost.hit, #scene[data-theme="neon-night"] .endpost.spin, #scene[data-theme="neon-night"] .endpost.active { animation: hop .45s cubic-bezier(.3,1.6,.5,1) !important; }
#scene[data-theme="sunset-speedway"] { background: linear-gradient(#e86a2a 0 300px, #0b0f24 300px); }
#scene[data-theme="sunset-speedway"] .sky { filter: none; background: #e86a2a; }
#scene[data-theme="sunset-speedway"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/sunset-speedway/bg.png) repeat-x left bottom / 472px 300px; image-rendering: pixelated; }
#scene[data-theme="sunset-speedway"] .scenery, #scene[data-theme="sunset-speedway"] .lay.near, #scene[data-theme="sunset-speedway"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="sunset-speedway"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="sunset-speedway"] .truss span::after { content: 'EGG ROCKET \2022  ZONE 3'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="sunset-speedway"] .lip { background: #ff9a1f; box-shadow: 0 0 18px #ff9a1f; }
#scene[data-theme="sunset-speedway"] .palm { display: none; }
#scene[data-theme="sunset-speedway"] .endpost { background: url(/spr/zones/sunset-speedway/prop_endpost.png) no-repeat center bottom / contain !important; image-rendering: pixelated; animation: none; width: 57px; height: 58px; top: 250px; }
#scene[data-theme="sunset-speedway"] .endpost.hit, #scene[data-theme="sunset-speedway"] .endpost.spin, #scene[data-theme="sunset-speedway"] .endpost.active { animation: hop .45s cubic-bezier(.3,1.6,.5,1) !important; }
#scene[data-theme="jungle-breaks"] { background: linear-gradient(#7cc4e8 0 300px, #0b0f24 300px); }
#scene[data-theme="jungle-breaks"] .sky { filter: none; background: #7cc4e8; }
#scene[data-theme="jungle-breaks"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/jungle-breaks/bg.png) repeat-x left bottom / 486px 300px; image-rendering: pixelated; }
#scene[data-theme="jungle-breaks"] .scenery, #scene[data-theme="jungle-breaks"] .lay.near, #scene[data-theme="jungle-breaks"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="jungle-breaks"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="jungle-breaks"] .truss span::after { content: 'ANGEL ISLAND \2022  ZONE 4'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="jungle-breaks"] .lip { background: #25c043; box-shadow: 0 0 18px #25c043; }
#scene[data-theme="jungle-breaks"] .endpost { background: url(/spr/zones/jungle-breaks/prop_endpost.png) no-repeat center bottom / contain !important; image-rendering: pixelated; animation: none; width: 57px; height: 58px; top: 250px; }
#scene[data-theme="jungle-breaks"] .endpost.hit, #scene[data-theme="jungle-breaks"] .endpost.spin, #scene[data-theme="jungle-breaks"] .endpost.active { animation: hop .45s cubic-bezier(.3,1.6,.5,1) !important; }
#scene[data-theme="chrome-club"] { background: linear-gradient(#0c1430 0 300px, #0b0f24 300px); }
#scene[data-theme="chrome-club"] .sky { filter: none; background: #0c1430; }
#scene[data-theme="chrome-club"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/chrome-club/bg.png) repeat-x left bottom / 450px 300px; image-rendering: pixelated; }
#scene[data-theme="chrome-club"] .scenery, #scene[data-theme="chrome-club"] .lay.near, #scene[data-theme="chrome-club"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="chrome-club"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="chrome-club"] .truss span::after { content: 'SECRET BASE \2022  ZONE 5'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="chrome-club"] .lip { background: #20d0ff; box-shadow: 0 0 18px #20d0ff; }
#scene[data-theme="chrome-club"] .palm { display: none; }
#scene[data-theme="chrome-club"] .endpost { background: url(/spr/zones/chrome-club/prop_endpost.png) no-repeat center bottom / contain !important; image-rendering: pixelated; animation: none; width: 57px; height: 58px; top: 250px; }
#scene[data-theme="chrome-club"] .endpost.hit, #scene[data-theme="chrome-club"] .endpost.spin, #scene[data-theme="chrome-club"] .endpost.active { animation: hop .45s cubic-bezier(.3,1.6,.5,1) !important; }
#scene[data-theme="pixel-cosmos"] { background: linear-gradient(#1a0a3a 0 300px, #0b0f24 300px); }
#scene[data-theme="pixel-cosmos"] .sky { filter: none; background: #1a0a3a; }
#scene[data-theme="pixel-cosmos"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/pixel-cosmos/bg.png) repeat-x left bottom / 1058px 300px; image-rendering: pixelated; }
#scene[data-theme="pixel-cosmos"] .scenery, #scene[data-theme="pixel-cosmos"] .lay.near, #scene[data-theme="pixel-cosmos"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="pixel-cosmos"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="pixel-cosmos"] .truss span::after { content: 'COSMIC ANGEL \2022  ZONE 6'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="pixel-cosmos"] .lip { background: #b56aff; box-shadow: 0 0 18px #b56aff; }
#scene[data-theme="pixel-cosmos"] .palm { display: none; }
#scene[data-theme="pixel-cosmos"] .endpost { background: url(/spr/zones/pixel-cosmos/prop_endpost.png) no-repeat center bottom / contain !important; image-rendering: pixelated; animation: none; width: 57px; height: 58px; top: 250px; }
#scene[data-theme="pixel-cosmos"] .endpost.hit, #scene[data-theme="pixel-cosmos"] .endpost.spin, #scene[data-theme="pixel-cosmos"] .endpost.active { animation: hop .45s cubic-bezier(.3,1.6,.5,1) !important; }
#scene[data-theme="lava-works"] { background: linear-gradient(#1a0a0a 0 300px, #0b0f24 300px); }
#scene[data-theme="lava-works"] .sky { filter: none; background: #1a0a0a; }
#scene[data-theme="lava-works"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/lava-works/bg.png) repeat-x left bottom / 607px 300px; image-rendering: pixelated; }
#scene[data-theme="lava-works"] .scenery, #scene[data-theme="lava-works"] .lay.near, #scene[data-theme="lava-works"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="lava-works"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="lava-works"] .truss span::after { content: 'LAVA REEF \2022  ZONE 7'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="lava-works"] .lip { background: #ff5a1f; box-shadow: 0 0 18px #ff5a1f; }
#scene[data-theme="lava-works"] .palm { display: none; }
#scene[data-theme="ice-circuit"] { background: linear-gradient(#5ab8f0 0 300px, #0b0f24 300px); }
#scene[data-theme="ice-circuit"] .sky { filter: none; background: #5ab8f0; }
#scene[data-theme="ice-circuit"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/ice-circuit/bg.png) repeat-x left bottom / 150px 300px; image-rendering: pixelated; }
#scene[data-theme="ice-circuit"] .scenery, #scene[data-theme="ice-circuit"] .lay.near, #scene[data-theme="ice-circuit"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="ice-circuit"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="ice-circuit"] .truss span::after { content: 'ICE MOUNTAIN \2022  ZONE 8'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="ice-circuit"] .lip { background: #9fefff; box-shadow: 0 0 18px #9fefff; }
#scene[data-theme="ice-circuit"] .palm { display: none; }
#scene[data-theme="ice-circuit"] .endpost { background: url(/spr/zones/ice-circuit/prop_endpost.png) no-repeat center bottom / contain !important; image-rendering: pixelated; animation: none; width: 57px; height: 58px; top: 250px; }
#scene[data-theme="ice-circuit"] .endpost.hit, #scene[data-theme="ice-circuit"] .endpost.spin, #scene[data-theme="ice-circuit"] .endpost.active { animation: hop .45s cubic-bezier(.3,1.6,.5,1) !important; }
#scene[data-theme="ice-circuit"] .starpost { background: url(/spr/zones/ice-circuit/prop_starpost.png) no-repeat center bottom / contain !important; image-rendering: pixelated; animation: none; width: 24px; height: 77px; top: 233px; }
#scene[data-theme="ice-circuit"] .starpost.hit, #scene[data-theme="ice-circuit"] .starpost.spin, #scene[data-theme="ice-circuit"] .starpost.active { animation: hop .45s cubic-bezier(.3,1.6,.5,1) !important; }
#scene[data-theme="batman-tas"] { background: linear-gradient(#1a0606 0 300px, #0b0f24 300px); }
#scene[data-theme="batman-tas"] .sky { filter: none; background: #1a0606; }
#scene[data-theme="batman-tas"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/batman-tas/bg.png) repeat-x left bottom / 692px 300px; image-rendering: pixelated; }
#scene[data-theme="batman-tas"] .scenery, #scene[data-theme="batman-tas"] .lay.near, #scene[data-theme="batman-tas"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="batman-tas"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="batman-tas"] .truss span::after { content: 'GOTHAM CITY \2022  AFTER DARK'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="batman-tas"] .lip { background: #c8102e; box-shadow: 0 0 18px #c8102e; }
#scene[data-theme="batman-tas"] .palm { display: none; }
#scene[data-theme="batman-tas"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="batman-tas"] .stagechar.knux { background: url(/spr/zones/batman-tas/char_knux.png) no-repeat 0 100% / 400% 100%; image-rendering: pixelated; --n: 4; --dur: 1.2s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 132px; top: 29px; width: 56px; height: 109px; scale: 1 1; }
#scene[data-theme="batman-tas"] .stagechar.knux.punch, #scene[data-theme="batman-tas"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="batman-tas"] .stagechar.sonic { background: url(/spr/zones/batman-tas/char_sonic.png) no-repeat 0 100% / 200% 100%; image-rendering: pixelated; --n: 2; --dur: 0.9s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 778px; top: 39px; width: 44px; height: 99px; scale: -1 1; }
#scene[data-theme="batman-tas"] .stagechar.sonic.punch, #scene[data-theme="batman-tas"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="megaman-wily"] { background: linear-gradient(#183c5c 0 300px, #0b0f24 300px); }
#scene[data-theme="megaman-wily"] .sky { filter: none; background: #183c5c; }
#scene[data-theme="megaman-wily"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/megaman-wily/bg.png) repeat-x left bottom / 1878px 300px; image-rendering: pixelated; }
#scene[data-theme="megaman-wily"] .scenery, #scene[data-theme="megaman-wily"] .lay.near, #scene[data-theme="megaman-wily"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="megaman-wily"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="megaman-wily"] .truss span::after { content: 'DR. WILY\27 S CASTLE \2022  STAGE 1'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="megaman-wily"] .lip { background: #3cbcfc; box-shadow: 0 0 18px #3cbcfc; }
#scene[data-theme="megaman-wily"] .palm { display: none; }
#scene[data-theme="megaman-wily"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="megaman-wily"] .stagechar.knux { background: url(/spr/zones/megaman-wily/char_knux.png) no-repeat 0 100% / 600% 100%; image-rendering: pixelated; --n: 6; --dur: 1.8s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 139px; top: 90px; width: 42px; height: 48px; scale: 1 1; }
#scene[data-theme="megaman-wily"] .stagechar.knux.punch, #scene[data-theme="megaman-wily"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="megaman-wily"] .stagechar.sonic { background: url(/spr/zones/megaman-wily/char_sonic.png) no-repeat 0 100% / 600% 100%; image-rendering: pixelated; --n: 6; --dur: 0.9s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 771px; top: 82px; width: 58px; height: 56px; scale: -1 1; }
#scene[data-theme="megaman-wily"] .stagechar.sonic.punch, #scene[data-theme="megaman-wily"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="ewj-junk"] { background: linear-gradient(#0067c5 0 300px, #0b0f24 300px); }
#scene[data-theme="ewj-junk"] .sky { filter: none; background: #0067c5; }
#scene[data-theme="ewj-junk"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/ewj-junk/bg.png) repeat-x left bottom / 750px 300px; image-rendering: pixelated; }
#scene[data-theme="ewj-junk"] .scenery, #scene[data-theme="ewj-junk"] .lay.near, #scene[data-theme="ewj-junk"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="ewj-junk"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="ewj-junk"] .truss span::after { content: 'NEW JUNK CITY \2022  EARTHWORM JIM'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="ewj-junk"] .lip { background: #ff8a1f; box-shadow: 0 0 18px #ff8a1f; }
#scene[data-theme="ewj-junk"] .palm { display: none; }
#scene[data-theme="ewj-junk"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="ewj-junk"] .stagechar.knux { background: url(/spr/zones/ewj-junk/char_knux.png) no-repeat 0 100% / 3400% 100%; image-rendering: pixelated; --n: 34; --dur: 4.8s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 35px; top: 22px; width: 250px; height: 116px; scale: 1 1; }
#scene[data-theme="ewj-junk"] .stagechar.knux.punch, #scene[data-theme="ewj-junk"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="ewj-junk"] .stagechar.sonic { background: url(/spr/zones/ewj-junk/char_sonic.png) no-repeat 0 100% / 1400% 100%; image-rendering: pixelated; --n: 14; --dur: 3.2s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 692px; top: 58px; width: 216px; height: 80px; scale: -1 1; }
#scene[data-theme="ewj-junk"] .stagechar.sonic.punch, #scene[data-theme="ewj-junk"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="smb3-grass"] { background: linear-gradient(#9cfcf0 0 300px, #0b0f24 300px); }
#scene[data-theme="smb3-grass"] .sky { filter: none; background: #9cfcf0; }
#scene[data-theme="smb3-grass"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/smb3-grass/bg.png) repeat-x left bottom / 1168px 300px; image-rendering: pixelated; }
#scene[data-theme="smb3-grass"] .scenery, #scene[data-theme="smb3-grass"] .lay.near, #scene[data-theme="smb3-grass"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="smb3-grass"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="smb3-grass"] .truss span::after { content: 'WORLD 1-1 \2022  SUPER MARIO BROS. 3'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="smb3-grass"] .lip { background: #f8b800; box-shadow: 0 0 18px #f8b800; }
#scene[data-theme="smb3-grass"] .palm { display: none; }
#scene[data-theme="smb3-grass"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="smb3-grass"] .stagechar.knux { background: url(/spr/zones/smb3-grass/char_knux.png) no-repeat 0 100% / 800% 100%; image-rendering: pixelated; --n: 8; --dur: 1.6s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 124px; top: 54px; width: 72px; height: 84px; scale: 1 1; }
#scene[data-theme="smb3-grass"] .stagechar.knux.punch, #scene[data-theme="smb3-grass"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="smb3-grass"] .stagechar.sonic { background: url(/spr/zones/smb3-grass/char_sonic.png) no-repeat 0 100% / 400% 100%; image-rendering: pixelated; --n: 4; --dur: 1.2s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 775px; top: 66px; width: 51px; height: 72px; scale: -1 1; }
#scene[data-theme="smb3-grass"] .stagechar.sonic.punch, #scene[data-theme="smb3-grass"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="dk-glacier"] { background: linear-gradient(#5a78c8 0 300px, #0b0f24 300px); }
#scene[data-theme="dk-glacier"] .sky { filter: none; background: #5a78c8; }
#scene[data-theme="dk-glacier"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/dk-glacier/bg.png) repeat-x left bottom / 686px 300px; image-rendering: pixelated; }
#scene[data-theme="dk-glacier"] .scenery, #scene[data-theme="dk-glacier"] .lay.near, #scene[data-theme="dk-glacier"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="dk-glacier"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="dk-glacier"] .truss span::after { content: 'GORILLA GLACIER \2022  DKC'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="dk-glacier"] .lip { background: #cfe8ff; box-shadow: 0 0 18px #cfe8ff; }
#scene[data-theme="dk-glacier"] .palm { display: none; }
#scene[data-theme="dk-glacier"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="xmas-nights"] { background: linear-gradient(#0a1440 0 300px, #0b0f24 300px); }
#scene[data-theme="xmas-nights"] .sky { filter: none; background: #0a1440; }
#scene[data-theme="xmas-nights"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/xmas-nights/bg.png) repeat-x left bottom / 495px 300px; image-rendering: pixelated; }
#scene[data-theme="xmas-nights"] .scenery, #scene[data-theme="xmas-nights"] .lay.near, #scene[data-theme="xmas-nights"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="xmas-nights"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="xmas-nights"] .truss span::after { content: 'SPRING VALLEY \2022  CHRISTMAS NiGHTS'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="xmas-nights"] .lip { background: #ffd23f; box-shadow: 0 0 18px #ffd23f; }
#scene[data-theme="xmas-nights"] .palm { display: none; }
#scene[data-theme="xmas-nights"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="xmas-nights"] .stagechar.knux { background: url(/spr/zones/xmas-nights/char_knux.png) no-repeat 0 100% / 100% 100%; image-rendering: pixelated; --n: 1; --dur: 1s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 122px; top: 68px; width: 76px; height: 70px; scale: 1 1; }
#scene[data-theme="xmas-nights"] .stagechar.knux.punch, #scene[data-theme="xmas-nights"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="xmas-nights"] .stagechar.sonic { background: url(/spr/zones/xmas-nights/char_sonic.png) no-repeat 0 100% / 100% 100%; image-rendering: pixelated; --n: 1; --dur: 1s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 759px; top: 59px; width: 82px; height: 79px; scale: -1 1; }
#scene[data-theme="xmas-nights"] .stagechar.sonic.punch, #scene[data-theme="xmas-nights"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="s3-icecap"] { background: linear-gradient(#3a78d8 0 300px, #0b0f24 300px); }
#scene[data-theme="s3-icecap"] .sky { filter: none; background: #3a78d8; }
#scene[data-theme="s3-icecap"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/s3-icecap/bg.png) repeat-x left bottom / 430px 300px; image-rendering: pixelated; }
#scene[data-theme="s3-icecap"] .scenery, #scene[data-theme="s3-icecap"] .lay.near, #scene[data-theme="s3-icecap"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="s3-icecap"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="s3-icecap"] .truss span::after { content: 'ICE CAP \2022  SONIC 3'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="s3-icecap"] .lip { background: #a8e8ff; box-shadow: 0 0 18px #a8e8ff; }
#scene[data-theme="s3-icecap"] .palm { display: none; }
#scene[data-theme="doom-e1"] { background: linear-gradient(#3a2412 0 300px, #0b0f24 300px); }
#scene[data-theme="doom-e1"] .sky { filter: none; background: #3a2412; }
#scene[data-theme="doom-e1"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/doom-e1/bg.png) repeat-x left bottom / 600px 300px; image-rendering: pixelated; }
#scene[data-theme="doom-e1"] .scenery, #scene[data-theme="doom-e1"] .lay.near, #scene[data-theme="doom-e1"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="doom-e1"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="doom-e1"] .truss span::after { content: 'DOOM \2022  E1M1 HANGAR'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="doom-e1"] .lip { background: #d01c00; box-shadow: 0 0 18px #d01c00; }
#scene[data-theme="doom-e1"] .palm { display: none; }
#scene[data-theme="doom-e1"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="doom-e1"] .stagechar.knux { background: url(/spr/zones/doom-e1/char_knux.png) no-repeat 0 100% / 600% 100%; image-rendering: pixelated; --n: 6; --dur: 1.1s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 121px; top: 32px; width: 78px; height: 106px; scale: 1 1; }
#scene[data-theme="doom-e1"] .stagechar.knux.punch, #scene[data-theme="doom-e1"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="doom-e1"] .stagechar.sonic { background: url(/spr/zones/doom-e1/char_sonic.png) no-repeat 0 100% / 600% 100%; image-rendering: pixelated; --n: 6; --dur: 1.2s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 754px; top: 24px; width: 93px; height: 114px; scale: 1 1; }
#scene[data-theme="doom-e1"] .stagechar.sonic.punch, #scene[data-theme="doom-e1"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="ecco-homebay"] { background: linear-gradient(#2878e8 0 300px, #0b0f24 300px); }
#scene[data-theme="ecco-homebay"] .sky { filter: none; background: #2878e8; }
#scene[data-theme="ecco-homebay"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/ecco-homebay/bg.png) repeat-x left bottom / 960px 300px; image-rendering: pixelated; }
#scene[data-theme="ecco-homebay"] .scenery, #scene[data-theme="ecco-homebay"] .lay.near, #scene[data-theme="ecco-homebay"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="ecco-homebay"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="ecco-homebay"] .truss span::after { content: 'HOME BAY \2022  ECCO THE DOLPHIN'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="ecco-homebay"] .lip { background: #3fd0ff; box-shadow: 0 0 18px #3fd0ff; }
#scene[data-theme="ecco-homebay"] .palm { display: none; }
#scene[data-theme="ecco-homebay"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="ecco-homebay"] .stagechar.knux { background: url(/spr/zones/ecco-homebay/char_knux.png) no-repeat 0 100% / 100% 100%; image-rendering: pixelated; --n: 1; --dur: 1s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 110px; top: 106px; width: 101px; height: 32px; scale: 1 1; }
#scene[data-theme="ecco-homebay"] .stagechar.knux.punch, #scene[data-theme="ecco-homebay"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="ecco-homebay"] .stagechar.sonic { background: url(/spr/zones/ecco-homebay/char_sonic.png) no-repeat 0 100% / 100% 100%; image-rendering: pixelated; --n: 1; --dur: 1s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 750px; top: 106px; width: 101px; height: 32px; scale: -1 1; }
#scene[data-theme="ecco-homebay"] .stagechar.sonic.punch, #scene[data-theme="ecco-homebay"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="hk-world"] { background: linear-gradient(#63b4ff 0 300px, #0b0f24 300px); }
#scene[data-theme="hk-world"] .sky { filter: none; background: #63b4ff; }
#scene[data-theme="hk-world"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/hk-world/bg.png) repeat-x left bottom / 960px 300px; image-rendering: pixelated; }
#scene[data-theme="hk-world"] .scenery, #scene[data-theme="hk-world"] .lay.near, #scene[data-theme="hk-world"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="hk-world"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="hk-world"] .truss span::after { content: 'KITTY\27 S HOUSE \2022  HELLO KITTY WORLD'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="hk-world"] .lip { background: #ff5fa2; box-shadow: 0 0 18px #ff5fa2; }
#scene[data-theme="hk-world"] .palm { display: none; }
#scene[data-theme="hk-world"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="hk-world"] .stagechar.knux { background: url(/spr/zones/hk-world/char_knux.png) no-repeat 0 100% / 200% 100%; image-rendering: pixelated; --n: 2; --dur: 0.9s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 125px; top: 50px; width: 70px; height: 88px; scale: 1 1; }
#scene[data-theme="hk-world"] .stagechar.knux.punch, #scene[data-theme="hk-world"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="hk-world"] .stagechar.sonic { background: url(/spr/zones/hk-world/char_sonic.png) no-repeat 0 100% / 200% 100%; image-rendering: pixelated; --n: 2; --dur: 0.9s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 765px; top: 50px; width: 70px; height: 88px; scale: 1 1; }
#scene[data-theme="hk-world"] .stagechar.sonic.punch, #scene[data-theme="hk-world"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="nick-toons"] { background: linear-gradient(#5ad0f0 0 300px, #0b0f24 300px); }
#scene[data-theme="nick-toons"] .sky { filter: none; background: #5ad0f0; }
#scene[data-theme="nick-toons"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 320px; background: url(/spr/zones/nick-toons/bg.png) repeat-x left bottom / 480px 320px; image-rendering: pixelated; }
#scene[data-theme="nick-toons"] .scenery, #scene[data-theme="nick-toons"] .lay.near, #scene[data-theme="nick-toons"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="nick-toons"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="nick-toons"] .truss span::after { content: 'NICKELODEON \2022  BIKINI BOTTOM'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="nick-toons"] .lip { background: #ff7a00; box-shadow: 0 0 18px #ff7a00; }
#scene[data-theme="nick-toons"] .palm { display: none; }
#scene[data-theme="nick-toons"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="nick-toons"] .stagechar.knux { background: url(/spr/zones/nick-toons/char_knux.png) no-repeat 0 100% / 600% 100%; image-rendering: pixelated; --n: 6; --dur: 0.8s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 122px; top: 50px; width: 76px; height: 88px; scale: 1 1; }
#scene[data-theme="nick-toons"] .stagechar.knux.punch, #scene[data-theme="nick-toons"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="nick-toons"] .stagechar.sonic { background: url(/spr/zones/nick-toons/char_sonic.png) no-repeat 0 100% / 1200% 100%; image-rendering: pixelated; --n: 12; --dur: 1.4s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 762px; top: 39px; width: 76px; height: 99px; scale: -1 1; }
#scene[data-theme="nick-toons"] .stagechar.sonic.punch, #scene[data-theme="nick-toons"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="cd-rangers"] { background: linear-gradient(#3cbcfc 0 300px, #0b0f24 300px); }
#scene[data-theme="cd-rangers"] .sky { filter: none; background: #3cbcfc; }
#scene[data-theme="cd-rangers"] .far { filter: none; animation: none; clip-path: none; border: 0; transform: none; border-radius: 0; left: 0; width: auto; right: 0; top: 0; height: 300px; background: url(/spr/zones/cd-rangers/bg.png) repeat-x left bottom / 960px 300px; image-rendering: pixelated; }
#scene[data-theme="cd-rangers"] .scenery, #scene[data-theme="cd-rangers"] .lay.near, #scene[data-theme="cd-rangers"] :is(.tailsfly, .eggmobile) { display: none; }
#scene[data-theme="cd-rangers"] .truss span { font-size: 0; letter-spacing: 0; }
#scene[data-theme="cd-rangers"] .truss span::after { content: 'CHIP \27 N DALE \2022  RESCUE RANGERS'; font-size: 13px; letter-spacing: 3px; }
#scene[data-theme="cd-rangers"] .lip { background: #e03c28; box-shadow: 0 0 18px #e03c28; }
#scene[data-theme="cd-rangers"] .palm { display: none; }
#scene[data-theme="cd-rangers"] :is(.endpost, .starpost, .bumper, .spring) { display: none; }
#scene[data-theme="cd-rangers"] .stagechar.knux { background: url(/spr/zones/cd-rangers/char_knux.png) no-repeat 0 100% / 400% 100%; image-rendering: pixelated; --n: 4; --dur: 0.6s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 133px; top: 66px; width: 54px; height: 72px; scale: -1 1; }
#scene[data-theme="cd-rangers"] .stagechar.knux.punch, #scene[data-theme="cd-rangers"] .stagechar.knux.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="cd-rangers"] .stagechar.sonic { background: url(/spr/zones/cd-rangers/char_sonic.png) no-repeat 0 100% / 400% 100%; image-rendering: pixelated; --n: 4; --dur: 0.6s; animation: sheet var(--dur) steps(var(--n), jump-none) infinite; left: 773px; top: 69px; width: 54px; height: 69px; scale: 1 1; }
#scene[data-theme="cd-rangers"] .stagechar.sonic.punch, #scene[data-theme="cd-rangers"] .stagechar.sonic.spindash { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }

/* gb.css */
/* Pallet Town (Pokemon Red) stage, Super Game Boy colours (the game's own SGB palettes: PAL_ROUTE map,
   PAL_REDMON/YELLOWMON etc. per Pokemon). Was DMG green first; too harsh (Spindok 2026-11-14). Art = pret/pokered graphics (spr/gb). */
#scene[data-theme="pkmn-red"] { --gb0: #191010; --gb1: #a5d6ff; --gb2: #ade75a; --gb3: #ffefff; background: var(--gb3); }
#scene[data-theme="pkmn-red"] .sky { filter: none; background: var(--gb3); }
#scene[data-theme="pkmn-red"] .far { filter: none; animation: none; clip-path: none; top: 0; height: 312px;
  background: url(/spr/gb/pallet.png) center top / 960px auto no-repeat; image-rendering: pixelated; }
#scene[data-theme="pkmn-red"] :is(.scenery, .lay.near, .palm, .tailsfly, .eggmobile, .endpost, .starpost, .bumper, .spring, .beams) { display: none !important; }


/* stage furniture in flat GB colours */
#scene[data-theme="pkmn-red"] .truss { border-image: repeating-linear-gradient(45deg, var(--gb0) 0 6px, var(--gb2) 6px 12px) 10; }
#scene[data-theme="pkmn-red"] .truss span { font-size: 0; letter-spacing: 0; background: var(--gb3); border: 3px solid var(--gb0); border-radius: 3px; box-shadow: none; }
#scene[data-theme="pkmn-red"] .truss span::after { content: 'PALLET TOWN \2022  POK\E9 MON RED'; font: 9px/1 "Press Start 2P", monospace; letter-spacing: 1px; color: var(--gb0); font-style: normal; }
#scene[data-theme="pkmn-red"] .deckstage { background: #7fa860; border-color: var(--gb0); box-shadow: none; }
#scene[data-theme="pkmn-red"] .boothfront { background: var(--gb2); border: 3px solid var(--gb0); box-shadow: none; }
#scene[data-theme="pkmn-red"] .boothfront span { color: var(--gb0); text-shadow: none; font: 10px/1 "Press Start 2P", monospace; letter-spacing: 1px; font-style: normal; }
#scene[data-theme="pkmn-red"] .lip { background: var(--gb0); box-shadow: none; }

/* Now Spinning = a Pokemon text box (white-ish box, thick double border, blinking ▼) */
#scene[data-theme="pkmn-red"] .screen { background: var(--gb3); border: 6px double var(--gb0); border-radius: 6px; box-shadow: 0 0 0 3px var(--gb3), 0 0 0 5px var(--gb0); filter: none !important; }
#scene[data-theme="pkmn-red"] .screen img { image-rendering: pixelated; border: 3px solid var(--gb0); }
#scene[data-theme="pkmn-red"] .scrinfo { position: relative; }
#scene[data-theme="pkmn-red"] :is(.scrlbl, .scrtitle, .scrartist) { color: var(--gb0) !important; text-shadow: none !important; font-family: "Press Start 2P", monospace !important; font-style: normal !important; }
#scene[data-theme="pkmn-red"] .scrlbl { font-size: 7px; letter-spacing: 1px; opacity: 1; }
#scene[data-theme="pkmn-red"] .scrtitle { font-size: 13px; line-height: 1.5; }
#scene[data-theme="pkmn-red"] .scrartist { font-size: 9px; line-height: 1.6; }
#scene[data-theme="pkmn-red"] .scrbar { background: var(--gb2); border: 2px solid var(--gb0); border-radius: 0; height: 8px; }
#scene[data-theme="pkmn-red"] .scrbar i { background: var(--gb0); box-shadow: none; }
#scene[data-theme="pkmn-red"] .scrinfo::after { content: '\25BC'; position: absolute; right: 2px; bottom: -2px; font: 9px/1 "Press Start 2P", monospace; color: var(--gb0); animation: gb-blink 1s steps(1) infinite; }

/* stage Pokemon: Gen 1 front sprites (no animation frames in Gen 1, so they hop like a battle intro) */
#scene[data-theme="pkmn-red"] .stagechar { image-rendering: pixelated !important; background-repeat: no-repeat !important; background-position: center bottom !important; background-size: contain !important; filter: none; }
#scene[data-theme="pkmn-red"] .stagechar.knux { background-image: url(/spr/gb/charizard.png) !important; left: 78px; top: -8px; width: 165px; height: 165px; scale: -1 1; }
#scene[data-theme="pkmn-red"] .stagechar.sonic { background-image: url(/spr/gb/pikachu.png) !important; left: 744px; top: 30px; width: 117px; height: 120px; scale: 1 1; }
#scene[data-theme="pkmn-red"] .stagechar:where(:not(.punch, .spindash)) { animation: gb-hop 2.6s steps(1) infinite; }
#scene[data-theme="pkmn-red"] .stagechar.sonic:where(:not(.punch, .spindash)) { animation-delay: -1.3s; }
#scene[data-theme="pkmn-red"] .stagechar:is(.punch, .spindash) { animation: hop .5s steps(4); }

/* decor: native pokered sprites stay pixel-crisp */
#scene[data-theme="pkmn-red"] .themedecor .deco i { image-rendering: pixelated; }
#scene[data-theme="pkmn-red"] .themedecor .gb-sky { animation-duration: 24s; }
#scene[data-theme="pkmn-red"] .themedecor .gb-red { animation-duration: 30s; animation-delay: -6s; }
#scene[data-theme="pkmn-red"] .themedecor .gb-zzz::after { content: 'Z'; position: absolute; right: -6px; top: -10px; font: 12px/1 "Press Start 2P", monospace; color: var(--gb0); animation: gb-z 2.4s steps(6) infinite; }

/* LCD: faint dot-matrix grid over the whole room */
#scene[data-theme="pkmn-red"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 900; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(25, 16, 16, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(25, 16, 16, .035) 0 1px, transparent 1px 3px); }

@keyframes gb-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes gb-hop { 0%, 70%, 100% { translate: 0 0; } 76% { translate: 0 -10px; } 82% { translate: 0 0; } 88% { translate: 0 -5px; } 94% { translate: 0 0; } }
@keyframes gb-z { 0% { translate: 0 0; opacity: 1; } 100% { translate: 10px -24px; opacity: 0; } }


/* gs.css */
/* New Bark Town (Pokemon Gold/Silver) stage, Game Boy Color daytime palettes straight from pret/pokegold
   (bg_tiles.pal, npc_sprites.pal, per-Pokemon pics). Art: spr/gs (see PROVENANCE.md). Built by /root/ops/dl/tools/gs_render.py + gs_sprites.py. */
#scene[data-theme="pkmn-gold"] { --gs0: #383838; --gs1: #deffde; --gs2: #f8b800; --gs3: #ffffff; --gsb: #426aff; background: var(--gs1); }
#scene[data-theme="pkmn-gold"] .sky { filter: none; background: #94ff52; }
#scene[data-theme="pkmn-gold"] .far { filter: none; animation: none; clip-path: none; border: 0; border-radius: 0; transform: none; left: 0; right: 0; width: auto; top: 0; height: 312px;
  background: url(/spr/gs/newbark.png) center top / 960px auto no-repeat; image-rendering: pixelated; }
#scene[data-theme="pkmn-gold"] :is(.scenery, .lay.near, .palm, .tailsfly, .eggmobile, .endpost, .starpost, .bumper, .spring, .beams) { display: none !important; }

/* stage furniture: Gold/Silver menu colours */
#scene[data-theme="pkmn-gold"] .truss { border-image: repeating-linear-gradient(45deg, var(--gs0) 0 6px, var(--gs2) 6px 12px) 10; }
#scene[data-theme="pkmn-gold"] .truss span { font-size: 0; letter-spacing: 0; background: var(--gs3); border: 3px solid var(--gs0); border-radius: 3px; box-shadow: none; }
#scene[data-theme="pkmn-gold"] .truss span::after { content: 'NEW BARK TOWN \2022  POK\E9 MON GOLD & SILVER'; font: 9px/1 "Press Start 2P", monospace; letter-spacing: 1px; color: var(--gs0); font-style: normal; }
#scene[data-theme="pkmn-gold"] .deckstage { background: repeating-linear-gradient(90deg, #c89848 0 30px, #a07028 30px 32px); border-color: var(--gs0); box-shadow: none; }
#scene[data-theme="pkmn-gold"] .boothfront { background: var(--gs2); border: 3px solid var(--gs0); box-shadow: none; }
#scene[data-theme="pkmn-gold"] .boothfront span { color: var(--gs0); text-shadow: none; font: 10px/1 "Press Start 2P", monospace; letter-spacing: 1px; font-style: normal; }
#scene[data-theme="pkmn-gold"] .lip { background: var(--gs0); box-shadow: none; }

/* Now Playing = a Gold/Silver text box */
#scene[data-theme="pkmn-gold"] .screen { background: var(--gs3); border: 6px double var(--gs0); border-radius: 6px; box-shadow: 0 0 0 3px var(--gs3), 0 0 0 5px var(--gs0); filter: none !important; }
#scene[data-theme="pkmn-gold"] .screen img { image-rendering: pixelated; border: 3px solid var(--gs0); }
#scene[data-theme="pkmn-gold"] .scrinfo { position: relative; }
#scene[data-theme="pkmn-gold"] :is(.scrlbl, .scrtitle, .scrartist) { color: var(--gs0) !important; text-shadow: none !important; font-family: "Press Start 2P", monospace !important; font-style: normal !important; }
#scene[data-theme="pkmn-gold"] .scrlbl { font-size: 7px; letter-spacing: 1px; opacity: 1; }
#scene[data-theme="pkmn-gold"] .scrtitle { font-size: 13px; line-height: 1.5; }
#scene[data-theme="pkmn-gold"] .scrartist { font-size: 9px; line-height: 1.6; }
#scene[data-theme="pkmn-gold"] .scrbar { background: #deffde; border: 2px solid var(--gs0); border-radius: 0; height: 8px; }
#scene[data-theme="pkmn-gold"] .scrbar i { background: #00b800; box-shadow: none; }
#scene[data-theme="pkmn-gold"] .scrinfo::after { content: '\25BC'; position: absolute; right: 2px; bottom: -2px; font: 9px/1 "Press Start 2P", monospace; color: var(--gs0); animation: gb-blink 1s steps(1) infinite; }

/* the box-art legends on the speakers: Gold's Ho-Oh, Silver's Lugia (battle-intro hop, like Pallet) */
#scene[data-theme="pkmn-gold"] .stagechar { image-rendering: pixelated !important; background-repeat: no-repeat !important; background-position: center bottom !important; background-size: contain !important; animation: none; }
#scene[data-theme="pkmn-gold"] .stagechar.knux { background-image: url(/spr/gs/hooh.png?v=2) !important; left: 84px; top: -2px; width: 150px; height: 153px; scale: 1 1; }
#scene[data-theme="pkmn-gold"] .stagechar.sonic { background-image: url(/spr/gs/lugia.png?v=2) !important; left: 736px; top: 8px; width: 156px; height: 139px; scale: 1 1; }
#scene[data-theme="pkmn-gold"] .stagechar:where(:not(.punch, .spindash)) { animation: gs-fly 3.2s ease-in-out infinite; }
#scene[data-theme="pkmn-gold"] .stagechar.sonic:where(:not(.punch, .spindash)) { animation-delay: -1.6s; }
#scene[data-theme="pkmn-gold"] .stagechar:is(.punch, .spindash) { animation: hop .5s steps(4); }

#scene[data-theme="pkmn-gold"] .themedecor .deco i { image-rendering: pixelated; }
#scene[data-theme="pkmn-gold"] .themedecor .gs-sky { animation-duration: 22s; }
#scene[data-theme="pkmn-gold"] .themedecor .gs-unown { animation-duration: 46s; animation-delay: -20s; }
#scene[data-theme="pkmn-gold"] .themedecor .gs-gold { animation-duration: 30s; animation-delay: -8s; }
#scene[data-theme="pkmn-gold"] .themedecor .gs-bike { animation-duration: 16s; }
#scene[data-theme="pkmn-gold"] .themedecor .gs-fairy { animation-duration: 38s; animation-delay: -17s; }
#scene[data-theme="pkmn-gold"] .themedecor .gs-wiggle { transform-origin: 50% 100%; animation: gs-wiggle 3s steps(1) infinite; }

/* LCD: faint GBC pixel grid */
#scene[data-theme="pkmn-gold"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 900; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(56, 56, 56, .03) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(56, 56, 56, .03) 0 1px, transparent 1px 3px); }

@keyframes gs-fly { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes gs-wiggle { 0%, 60%, 100% { rotate: 0deg; } 70% { rotate: -6deg; } 80% { rotate: 6deg; } 90% { rotate: -4deg; } }
@keyframes gb-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* thin Unown glyphs + the legends read against the busy tree tiles */
#scene[data-theme="pkmn-gold"] .themedecor .gs-unown i { filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff); }
#scene[data-theme="pkmn-gold"] .stagechar { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 1px #fff); }
#scene[data-theme="pkmn-gold"] .scrlbl { white-space: nowrap; }

/* tetris.css */
/* NES Tetris stage (1989, Nintendo). Art rendered from the CelestialAmber/TetrisNESDisasm CHR + nametables + palettes
   by /root/ops/dl/tools/nes_tetris.py + tetris_prep.py (spr/tetris, PROVENANCE.md): A-type ending launch pad + St Basil's,
   B-type concert cast (Kid Icarus, DK, Bowser, Peach, Samus, Link, Mario, Luigi) with their own 2-frame animations. */
#scene[data-theme="tetris-nes"] { --tn0: #000; --tn1: #fffeff; --tn2: #4240ff; --tnsky: #4240ff; background: var(--tnsky); }
#scene[data-theme="tetris-nes"] .sky { filter: none; background: var(--tnsky); }
#scene[data-theme="tetris-nes"] .far { filter: none; animation: none; clip-path: none; border: 0; border-radius: 0; transform: none; left: 0; right: 0; width: auto; top: 0; height: 300px;
  background: url(/spr/tetris/bg.png) center top / 960px 300px no-repeat; image-rendering: pixelated; }
#scene[data-theme="tetris-nes"] :is(.scenery, .lay.near, .palm, .tailsfly, .eggmobile, .endpost, .starpost, .bumper, .spring) { display: none !important; }

/* stage furniture: the in-game frame (black panels, white/grey border) */
#scene[data-theme="tetris-nes"] .truss { border-image: repeating-linear-gradient(90deg, #b5313d 0 14px, #0f0f0f 14px 16px) 10; }
#scene[data-theme="tetris-nes"] .truss span { font-size: 0; letter-spacing: 0; background: var(--tn0); border: 3px solid var(--tn1); border-radius: 2px; box-shadow: 0 0 0 2px #6c6c6c; }
#scene[data-theme="tetris-nes"] .truss span::after { content: 'B-TYPE CONCERT \2022  TETRIS'; font: 9px/1 "Press Start 2P", monospace; letter-spacing: 1px; color: var(--tn1); font-style: normal; }
#scene[data-theme="tetris-nes"] .deckstage { background: repeating-linear-gradient(90deg, #994e00 0 15px, #561d00 15px 16px), #994e00; border-color: #000; box-shadow: none; }
#scene[data-theme="tetris-nes"] .boothfront { background: var(--tn0); border: 3px solid var(--tn1); box-shadow: 0 0 0 2px #6c6c6c; }
#scene[data-theme="tetris-nes"] .boothfront span { color: var(--tn1); text-shadow: none; font: 10px/1 "Press Start 2P", monospace; letter-spacing: 1px; font-style: normal; }
#scene[data-theme="tetris-nes"] .lip { background: #0f0f0f; box-shadow: none; }
#scene[data-theme="tetris-nes"] .beams i { background: linear-gradient(#ffffff88, transparent); }

/* Now Playing = the black score panel */
#scene[data-theme="tetris-nes"] .screen { background: var(--tn0); border: 4px solid var(--tn1); border-radius: 4px; box-shadow: 0 0 0 3px #6c6c6c, 0 0 0 5px #000; filter: none !important; }
#scene[data-theme="tetris-nes"] .screen img { image-rendering: pixelated; border: 3px solid var(--tn1); }
#scene[data-theme="tetris-nes"] :is(.scrlbl, .scrtitle, .scrartist) { color: var(--tn1) !important; text-shadow: none !important; font-family: "Press Start 2P", monospace !important; font-style: normal !important; }
#scene[data-theme="tetris-nes"] .scrlbl { font-size: 7px; letter-spacing: 1px; opacity: 1; white-space: nowrap; color: #b5b5b5 !important; }
#scene[data-theme="tetris-nes"] .scrtitle { font-size: 13px; line-height: 1.5; }
#scene[data-theme="tetris-nes"] .scrartist { font-size: 9px; line-height: 1.6; color: #fe8170 !important; }
#scene[data-theme="tetris-nes"] .scrbar { background: #000; border: 2px solid var(--tn1); border-radius: 0; height: 8px; }
#scene[data-theme="tetris-nes"] .scrbar i { background: #45e082; box-shadow: none; }

/* speakers: Donkey Kong on harp, Bowser on drums (their B-type concert frames) */
#scene[data-theme="tetris-nes"] .stagechar { image-rendering: pixelated !important; background-repeat: no-repeat !important; background-position: 0 100%; --n: 2; --dur: .55s;
  animation: sheet var(--dur) steps(var(--n), jump-none) infinite; background-size: 200% 100% !important; }
#scene[data-theme="tetris-nes"] .stagechar.knux { background-image: url(/spr/tetris/dk.png) !important; left: 116px; top: 50px; width: 108px; height: 90px; scale: 1 1; }
#scene[data-theme="tetris-nes"] .stagechar.sonic { background-image: url(/spr/tetris/bowser.png) !important; left: 756px; top: 53px; width: 96px; height: 87px; scale: 1 1; }
#scene[data-theme="tetris-nes"] .stagechar:is(.punch, .spindash) { animation: sheet var(--dur) steps(var(--n), jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }

#scene[data-theme="tetris-nes"] .themedecor .deco i { image-rendering: pixelated; }
#scene[data-theme="tetris-nes"] .themedecor .tn-buran { animation-duration: 34s; }
#scene[data-theme="tetris-nes"] .themedecor .tn-dragon { animation-duration: 40s; animation-delay: -14s; }
#scene[data-theme="tetris-nes"] .themedecor .tn-ufo { animation-duration: 26s; animation-delay: -9s; }
#scene[data-theme="tetris-nes"] .themedecor .tn-blimp { animation-duration: 60s; animation-delay: -30s; }
#scene[data-theme="tetris-nes"] .themedecor .tn-dove { animation-duration: 20s; animation-delay: -4s; }
#scene[data-theme="tetris-nes"] .themedecor .tn-mario { animation-duration: 30s; }
#scene[data-theme="tetris-nes"] .themedecor .tn-luigi { animation-duration: 36s; animation-delay: -18s; }
/* the A-type launch: rocket sits on the pad, then lifts off and comes back round */
#scene[data-theme="tetris-nes"] .themedecor .tn-rocket { animation: tn-launch 36s linear infinite; }
/* tetrominoes drop in NES gravity steps, behind the stage */
#scene[data-theme="tetris-nes"] .themedecor .tn-fall { animation: tn-fall var(--fd, 16s) steps(20) infinite; animation-delay: var(--fdl, 0s); }
@keyframes tn-launch { 0%, 62% { translate: 0 0; } 63% { translate: -1px 0; } 64% { translate: 1px 0; } 66% { translate: 0 -6px; } 82% { translate: 0 -420px; } 82.1%, 92% { translate: 0 -420px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
@keyframes tn-fall { 0% { translate: 0 -60px; opacity: 1; } 88% { translate: 0 250px; opacity: 1; } 92%, 100% { translate: 0 250px; opacity: 0; } }

/* stage-anim.css */
/* Stage idle motion (2026-11-14): bring static props to life on every stage.
   Only uses the individual `rotate` / `translate` / `opacity` properties so it never fights the
   `transform` / `scale: -1 1` (mirroring) the stage CSS already sets. Theme-specific animations
   elsewhere have higher specificity and still win. */
@keyframes sa-sway { 0%, 100% { rotate: -1.6deg; } 50% { rotate: 1.6deg; } }
@keyframes sa-sway-soft { 0%, 100% { rotate: -.7deg; } 50% { rotate: .7deg; } }
@keyframes sa-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes sa-breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes sa-wiggle { 0%, 86%, 100% { rotate: 0deg; } 89% { rotate: -7deg; } 92% { rotate: 6deg; } 95% { rotate: -3deg; } 98% { rotate: 1deg; } }
@keyframes sa-boing { 0%, 84%, 100% { translate: 0 0; } 89% { translate: 0 -16px; } 94% { translate: 0 0; } 97% { translate: 0 -4px; } }
@keyframes sa-press { 0%, 40%, 100% { translate: 0 0; } 50% { translate: 0 22px; } 54% { translate: 0 20px; } 70% { translate: 0 0; } }
@keyframes sa-blink { 0%, 48% { opacity: 1; } 50%, 98% { opacity: .35; } }
@keyframes sa-neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }
@keyframes sa-shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
@keyframes sa-spinpost { 0%, 82% { rotate: y 0deg; } 100% { rotate: y 720deg; } }

/* ---- shared Sonic-zone props ---- */
#scene :where(.palm:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { transform-origin: 50% 100%; animation: sa-sway 5.5s ease-in-out infinite; }
#scene :where(.palm.r:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation-delay: -2.7s; }
#scene :where(.bumper:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sa-wiggle 5s ease-in-out infinite; }
#scene :where(.bumper.r:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation-delay: -2.4s; }
#scene :where(.spring:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sa-boing 4.2s ease-out infinite; }
#scene :where(.spring.r:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation-delay: -2.1s; }
#scene :where(.starpost:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { transform-origin: 50% 100%; animation: sa-sway-soft 3.4s ease-in-out infinite; }
#scene:is([data-theme="arcade-coast"], [data-theme="neon-night"], [data-theme="sunset-speedway"], [data-theme="jungle-breaks"],
  [data-theme="chrome-club"], [data-theme="pixel-cosmos"], [data-theme="lava-works"], [data-theme="ice-circuit"]) .endpost:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sa-spinpost 7s ease-in-out infinite; }

/* ---- zone decor (sprite url lives on the inner <i>) ---- */
:where(.themedecor .deco:not(.poke):has(> i[style*="/palm"])) { transform-origin: 50% 100%; animation: sa-sway 6s ease-in-out infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="palm2"])) { animation-delay: -3s; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/flowers"])) { transform-origin: 50% 100%; animation: sa-sway 2.6s ease-in-out infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="flowers2"])) { animation-delay: -1.3s; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/tree"])) { transform-origin: 50% 100%; animation: sa-sway-soft 7s ease-in-out infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="tree2"])) { animation-delay: -3.5s; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/welcome."])) { animation: sa-neon 4.5s linear infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/flipper."])) { transform-origin: 15% 50%; animation: sa-wiggle 3.2s ease-in-out infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/capsule."])) { animation: sa-bob 3.4s ease-in-out infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/press"])) { animation: sa-press 3.2s ease-in infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="press2"])) { animation-delay: -1.6s; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/crusher."])) { animation: sa-press 2.8s ease-in infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/hazard."])) { animation: sa-blink 1.1s steps(1) infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/ice."])), :where(.themedecor .deco:not(.poke):has(> i[style*="/ice2."])) { animation: sa-shimmer 3s ease-in-out infinite; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/ice2."])) { animation-delay: -1.5s; }
:where(.themedecor .deco:not(.poke):has(> i[style*="/logo."])) { animation: sa-bob 4s ease-in-out infinite; }

/* ---- Coke Zero ---- */
#scene[data-theme="coke-zero"] .stagechar:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sa-breathe 3.2s ease-in-out infinite; }
#scene[data-theme="coke-zero"] .stagechar.sonic:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation-delay: -1.6s; }
#scene[data-theme="coke-zero"] .starpost:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sa-wiggle 4s ease-in-out infinite; }
#scene[data-theme="coke-zero"] .spring:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sa-breathe 2.8s ease-in-out infinite; }

/* ---- DK stages ---- */
#scene[data-theme="dk-jungle"] .spring:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sheet 1.4s steps(7, jump-none) infinite !important; }
#scene:is([data-theme="dk-jungle"], [data-theme="dk-lockjaw"]) .starpost:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)),
#scene[data-theme="dk-jungle"] .endpost:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { transform-origin: 50% 100%; animation: sa-sway 4.5s ease-in-out infinite; }
#scene[data-theme="dk-lockjaw"] .endpost:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sa-bob 5s ease-in-out infinite; }
#scene[data-theme="dk-lockjaw"] .palm.r:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { transform-origin: 50% 50%; animation: sa-bob 2.6s ease-in-out infinite; }

/* ---- Mewtwo / WoW ---- */
#scene[data-theme="mewtwo-lair"] .stagechar.knux:where(:not(.hit,.spin,.active,.punch,.spindash,.boing,.hop,.shake,.super)) { animation: sa-bob 3s ease-in-out infinite; }

#scene[data-theme="coke-zero"] .palm:where(:not(.hit)) { animation: none; } /* vending towers stay put */
#scene:is([data-theme="coke-zero"], [data-theme="neon-night"]) .bumper:where(:not(.hit,.spin,.active,.hop,.shake)) { animation: sa-wiggle 5s ease-in-out infinite !important; }
#scene:is([data-theme="coke-zero"], [data-theme="neon-night"]) .bumper.r:where(:not(.hit,.spin,.active,.hop,.shake)) { animation-delay: -2.4s !important; }
#scene[data-theme="ice-circuit"] .starpost:where(:not(.hit,.spin,.active,.hop,.shake)) { transform-origin: 50% 100%; animation: sa-sway-soft 3.4s ease-in-out infinite !important; }

/* ---- WoW / Molten Core: Warcraft II cast (2026-11-14) ---- */
#scene[data-theme="wow-mc"] .stagechar { image-rendering: pixelated !important; background-repeat: no-repeat !important; background-position: 0 100%; width: 136px; height: 136px; }
#scene[data-theme="wow-mc"] .stagechar.knux { background-image: url(/spr/wc2/dragon_fly.png) !important; background-size: 600% 100% !important; left: 94px; top: 14px; height: 124px !important; filter: drop-shadow(0 0 10px #ff5a00); }
#scene[data-theme="wow-mc"] .stagechar.sonic { background-image: url(/spr/wc2/daemon_fly.png) !important; background-size: 500% 100% !important; left: 724px; top: 6px; filter: drop-shadow(0 0 10px #ff5a00); }
#scene[data-theme="wow-mc"] .stagechar.knux:where(:not(.punch,.spindash)) { animation: sheet .9s steps(6, jump-none) infinite, sa-bob 3.4s ease-in-out infinite; }
#scene[data-theme="wow-mc"] .stagechar.sonic:where(:not(.punch,.spindash)) { animation: sheet .7s steps(5, jump-none) infinite, sa-bob 3s ease-in-out infinite; }
#scene[data-theme="wow-mc"] .stagechar.knux:is(.punch,.spindash) { animation: sheet .9s steps(6, jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="wow-mc"] .stagechar.sonic:is(.punch,.spindash) { animation: sheet .7s steps(5, jump-none) infinite, hop .5s cubic-bezier(.3,1.6,.5,1); }
#scene[data-theme="wow-mc"] .themedecor .deco i { image-rendering: pixelated; }
#scene[data-theme="wow-mc"] .themedecor .deco:has(> i[style*="/logo."]) i { image-rendering: auto; }
#scene[data-theme="wow-mc"] .themedecor .wc-sky { animation-duration: 21s; }
#scene[data-theme="wow-mc"] .themedecor .wc-ogre { animation-duration: 34s; animation-delay: -9s; }
#scene[data-theme="wow-mc"] .themedecor .wc-flip i { scale: -1 1; }
#scene[data-theme="wow-mc"] .themedecor .deco:has(> i[style*="fire_big"]) { filter: drop-shadow(0 0 12px #ff6a00); }
@keyframes wc-bounce { 0%, 100% { translate: 0 0; } 25% { translate: 0 -10px; } 50% { translate: 0 0; } 75% { translate: 0 -6px; } }
#scene[data-theme="wow-mc"] .themedecor .wc-dance { animation: wc-bounce .6s ease-in-out infinite; filter: drop-shadow(0 0 6px #ff6a0088); }
#scene[data-theme="wow-mc"] .themedecor .wc-dance.b { animation-delay: -.3s; }

/* layout.css */
/* Arrange your page (2026-11-25) */
.lay-hidden { display: none !important; }
body.lay-edit .lay-hidden { display: block !important; opacity: .4; }
body.lay-edit [data-w] { position: relative; outline: 2px dashed rgba(61, 220, 255, .45); outline-offset: 3px; cursor: grab; }
body.lay-edit [data-w].lay-drag { opacity: .5; outline-color: #3ddcff; }
.lay-bar { display: flex; align-items: center; gap: 6px; margin: -4px -4px 10px; padding: 6px 8px; border-radius: 10px; background: rgba(61, 109, 255, .18); font: 600 12px Inter, system-ui, sans-serif; color: #fff; }
.lay-bar b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lay-grip { color: #8fdcff; font-size: 16px; line-height: 1; }
.lay-bar button { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 3px 10px; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer; }
.lay-bar button:hover { background: rgba(255, 255, 255, .14); }
.lay-dock { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; white-space: nowrap; justify-content: center;
  max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 16px; background: rgba(12, 15, 28, .94); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(12px);
  font: 500 13px Inter, system-ui, sans-serif; color: #c9d1ea; }
.lay-dock[hidden] { display: none; }
.lay-dock b { font-family: 'Space Grotesk', Inter, sans-serif; color: #fff; }
.lay-dock button { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 6px 14px; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.lay-dock .lay-done { background: linear-gradient(135deg, #3d6dff, #3ddcff); border: 0; color: #06070d; }
@media (max-width: 700px) { .lay-dock span { display: none; } }
