.dj-battle{--dj-bg:#17151a;--dj-panel:#242129;--dj-ink:#f1ecdf;--dj-soft:#aaa2ad;--dj-acid:#d8ef54;--dj-pink:#e967aa;--dj-violet:#a64be0;background:var(--dj-bg);color:var(--dj-ink);font-family:Inter,Arial,Helvetica,sans-serif;margin:0 auto;padding-bottom:0;overflow:hidden}.dj-battle *{box-sizing:border-box}.dj-battle button,.dj-battle a{font:inherit}.dj-hero{min-height:440px;position:relative;display:flex;align-items:center;padding:55px 9%;overflow:hidden;background:linear-gradient(90deg,rgba(16,13,22,.95),rgba(19,14,24,.68) 54%,rgba(17,13,20,.24)),url('/assets/dj-battle/banner.webp') center 49%/cover}.dj-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#17151a 0,transparent 18%,transparent 83%,rgba(15,13,16,.25));pointer-events:none}.dj-hero-copy{position:relative;z-index:1;max-width:600px}.dj-kicker{font-size:9px;font-weight:800;letter-spacing:.2em;color:#b5aeb7}.dj-kicker i{width:7px;height:7px;border-radius:50%;background:var(--dj-acid);display:inline-block;margin-right:8px}.dj-hero h1{font-size:clamp(62px,9vw,106px);line-height:.79;letter-spacing:-.075em;margin:26px 0 19px;font-weight:950;color:#f3eddf}.dj-hero h1 em,.dj-section h2 em,.dj-rules h2 em,.dj-leaderboard h2 em{font-family:Georgia,serif;font-weight:400;color:var(--dj-acid);letter-spacing:-.08em}.dj-hero-copy p{font-size:14px;color:#d2cbd4;margin:0 0 22px}.dj-cta{appearance:none;text-decoration:none;background:var(--dj-acid);color:#18171a;border:0;padding:14px 18px;font-weight:900;letter-spacing:.1em;font-size:10px;display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-width:185px;cursor:pointer;transition:transform .15s,background .15s}.dj-cta b{font-size:16px}.dj-cta:hover{transform:translateY(-2px);background:#ecff6a;color:#18171a}.dj-hero-seal{position:absolute;z-index:1;right:11%;top:22%;width:160px;height:160px;border:1px solid rgba(216,239,84,.7);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(9deg);color:var(--dj-acid);font:15px Georgia,serif;letter-spacing:.13em;text-align:center;text-shadow:0 1px 4px #150f1c}.dj-hero-seal b{font:32px Arial;margin:5px}.dj-hero-index{position:absolute;right:5.5%;bottom:27px;z-index:1;font-size:8px;letter-spacing:.18em;color:#c1b9c4}.dj-hero-index i{color:var(--dj-acid);font-style:normal;margin:0 7px}
.dj-section{padding:72px 8%;background:#1b191e}.dj-section-heading,.dj-battle-heading,.dj-leaderboard-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:30px}.dj-section h2,.dj-battle-heading h2,.dj-leaderboard h2{font-size:32px;line-height:1;margin:11px 0 0;letter-spacing:-.06em;color:var(--dj-ink)}.dj-section-heading>span{font-size:8px;letter-spacing:.18em;color:#8f8991;padding-bottom:6px}.dj-setup-grid{display:grid;grid-template-columns:1.22fr .78fr;gap:28px}.dj-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-content:start}.dj-roster-card{position:relative;border:1px solid #39343e;background:#211e25;color:var(--dj-ink);padding:8px;display:flex;align-items:center;gap:9px;text-align:left;min-width:0;cursor:pointer;transition:border .15s,background .15s}.dj-roster-card:hover,.dj-roster-card[aria-selected="true"]{border-color:var(--dj-color);background:#2c2730}.dj-roster-card[aria-selected="true"]:after{content:"";position:absolute;width:6px;height:6px;background:var(--dj-acid);right:7px;top:7px}.dj-pixel-face{display:block;image-rendering:pixelated;background:#332d37;flex:0 0 auto;object-fit:cover}.dj-roster-card .dj-pixel-face{width:44px;height:48px}.dj-roster-meta{min-width:0}.dj-roster-meta b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dj-roster-meta small{display:block;margin-top:4px;color:var(--dj-color);font-size:7px;letter-spacing:.15em}.dj-card-arrow{position:absolute;right:9px;bottom:6px;color:#aaa;font-size:11px}.dj-setup-card{background:#242129;border:1px solid #3b3540;padding:12px}.dj-selected-preview{height:175px;position:relative;overflow:hidden;background:var(--dj-color,#72589a)}.dj-selected-preview:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(18,15,21,.93),transparent 68%),repeating-linear-gradient(0deg,transparent 0 5px,rgba(0,0,0,.05) 6px)}.dj-selected-preview .dj-pixel-face{width:100%;height:100%;object-position:center 30%;opacity:.8;mix-blend-mode:luminosity}.dj-player-label,.dj-selected-name{position:absolute;z-index:1;left:13px}.dj-player-label{bottom:40px;color:var(--dj-acid);font-size:8px;letter-spacing:.18em}.dj-selected-name{bottom:12px;font-size:21px;font-weight:900;letter-spacing:-.04em}.dj-stage-heading{font-size:8px;letter-spacing:.16em;color:#aaa2ad;margin:15px 1px 10px}.dj-stages{display:flex;gap:6px}.dj-stage-choice{flex:1;min-width:0;background:#302b34;border:1px solid transparent;color:#bcb5c0;padding:7px 2px;display:flex;align-items:center;flex-direction:column;gap:4px;cursor:pointer}.dj-stage-choice:hover,.dj-stage-choice[aria-pressed="true"]{border-color:var(--dj-acid);color:var(--dj-acid);background:#36323a}.dj-stage-choice span{font-size:17px}.dj-stage-choice small{font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.dj-stage-caption{display:flex;justify-content:space-between;align-items:center;margin:10px 1px 12px;gap:5px}.dj-stage-caption b{font-size:9px}.dj-stage-caption span{font-size:8px;color:#9c949f;text-align:right}.dj-full{width:100%;min-width:0}.dj-hint{text-align:center;color:#978f9a;font-size:8px;letter-spacing:.04em;margin:9px 0 1px}
.dj-battle-screen{padding:50px 8% 62px;background:#111015;border-top:1px solid rgba(241,236,223,.15)}.dj-battle-heading{align-items:center;margin-bottom:20px}.dj-battle-heading h2{font-size:28px}.dj-back{background:none;border:0;color:#b9b2bc;font-size:9px;letter-spacing:.12em;cursor:pointer}.dj-back:hover{color:var(--dj-acid)}.dj-versus{height:275px;background:#221e27;border:1px solid #413943;display:grid;grid-template-columns:1fr 58px 1fr;position:relative;overflow:hidden}.dj-fighter{padding:16px 22px;position:relative;z-index:1}.dj-fighter-art{height:145px;display:flex;align-items:center;gap:12px;position:relative}.dj-fighter-art .dj-pixel-face{width:105px;height:130px;border:2px solid #423c48;object-position:center 28%}.dj-fighter-art:after{content:"✦";font-size:32px;color:var(--dj-acid);text-shadow:3px 3px var(--dj-violet)}.dj-rival .dj-fighter-art{justify-content:flex-end}.dj-rival .dj-fighter-art:after{content:"♫";order:-1;color:#fa8862}.dj-fighter>small{display:block;font-size:7px;letter-spacing:.2em;color:#a9a0ad}.dj-fighter-name{display:block;font-size:13px;margin-top:4px}.dj-health{height:8px;background:#514b55;margin-top:10px;clip-path:polygon(0 0,100% 0,98% 100%,0 100%)}.dj-health span{height:100%;display:block;width:100%;background:linear-gradient(90deg,var(--dj-acid),#a8d44c);transition:width .4s}.dj-rival .dj-health span{margin-left:auto;background:linear-gradient(90deg,#f78f68,#e54b76)}.dj-vitality{display:flex;justify-content:space-between;font-size:7px;color:#a59da8;letter-spacing:.12em;margin-top:4px}.dj-versus-mark{align-self:center;justify-self:center;z-index:1;color:var(--dj-acid);font-size:17px;font-weight:900;font-style:italic;display:flex;flex-direction:column;align-items:center}.dj-versus-mark small{font-size:15px}.dj-stage-backdrop{position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,13,24,.72),rgba(16,13,24,.24)),url('/assets/dj-battle/banner.webp') center/cover;opacity:.57;mix-blend-mode:screen;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.dj-stage-backdrop span{font-size:35px;color:var(--dj-acid)}.dj-stage-backdrop b{margin-top:3px;font-size:16px;text-shadow:0 2px 8px #000}.dj-stage-backdrop small{margin-top:6px;font-size:7px;letter-spacing:.2em}.dj-battle-message{min-height:42px;margin-top:10px;border:1px solid #37313b;background:#211d25;display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;font-size:11px;color:#dfd8e2;padding:7px}.dj-battle-message b{color:#fa8966;font-size:14px}.dj-now-playing{font-size:9px;color:#aaa2ad;letter-spacing:.1em;margin:11px 0}.dj-now-playing b{color:var(--dj-acid);margin-left:7px}.dj-crate-heading{display:flex;justify-content:space-between;align-items:end;margin:24px 0 12px}.dj-crate-heading h3{font-size:18px;letter-spacing:-.03em;margin:6px 0 0;color:var(--dj-ink)}.dj-crate-heading h3 small{color:#978f9a;font-size:8px;letter-spacing:.13em;margin-left:7px}.dj-score-pill{border:1px solid #47414a;padding:8px 10px;font-size:8px;letter-spacing:.13em;color:#a49da6}.dj-score-pill b{color:var(--dj-acid);font-size:13px;margin-left:7px}.dj-song-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.dj-song{min-width:0;display:flex;align-items:center;gap:8px;text-align:left;background:#211e24;border:1px solid #39343d;color:var(--dj-ink);padding:7px;cursor:pointer;transition:background .12s,border .12s}.dj-song:hover:not(:disabled){background:#302b34;border-color:var(--dj-violet)}.dj-song:disabled{opacity:.55;cursor:wait}.dj-song-number{font-size:8px;color:#7e7782;width:18px}.dj-vinyl{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#19171b 0 20%,#6b4a7b 21% 27%,#19171b 28%);font-size:10px;color:var(--dj-acid)}.dj-song-info{min-width:0;flex:1}.dj-song-info b,.dj-song-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dj-song-info b{font-size:9px}.dj-song-info small{font-size:8px;color:#968f99;margin-top:3px}.dj-song-play{font-size:8px;color:var(--dj-acid)}
.dj-result{max-width:560px;margin:36px auto 60px;background:#242129;border:1px solid #514955;text-align:center;padding:35px 24px}.dj-result-star{font-size:34px;color:var(--dj-acid)}.dj-result .dj-kicker{margin:11px 0}.dj-result h2{font-size:28px;margin:0 0 7px;color:var(--dj-ink)}.dj-result>strong{font-size:60px;letter-spacing:-.07em}.dj-result>strong small{font-size:10px;letter-spacing:.15em;color:#aaa}.dj-result>p{font-size:12px;color:#bbb4be}.dj-result-actions{display:flex;gap:16px;align-items:center;justify-content:center;margin-top:20px}.dj-save-status{font-size:10px;color:var(--dj-acid);min-height:16px}.dj-save-status a{color:var(--dj-acid);text-decoration:underline}
.dj-bottom-grid{padding:65px 8%;display:grid;grid-template-columns:.82fr 1.18fr;gap:46px;background:#1a181d}.dj-rules{padding:20px 0}.dj-rules h2{font-size:39px;line-height:.9;letter-spacing:-.06em;margin:18px 0 26px;color:var(--dj-ink)}.dj-rules>div:not(.dj-kicker){display:flex;gap:15px;align-items:center;padding:12px 0;border-top:1px solid #39343c;font-size:10px;color:#d1cbd2}.dj-rules>div:nth-last-of-type(1){border-bottom:1px solid #39343c}.dj-rules>div b{color:var(--dj-acid);font-size:9px}.dj-rules>small{display:block;color:#928b95;font-size:8px;margin-top:13px;letter-spacing:.1em}.dj-leaderboard{padding:21px;background:#242129;border:1px solid #403a44}.dj-leaderboard-heading{align-items:center;margin-bottom:15px}.dj-leaderboard h2{font-size:25px}.dj-leaderboard-heading>span{font-size:8px;color:var(--dj-acid);border:1px solid #65712d;padding:6px 8px;letter-spacing:.13em}.dj-leaderboard-list ol{list-style:none;margin:0;padding:0}.dj-leaderboard-list li{display:flex;align-items:center;gap:12px;border-top:1px solid #39343c;padding:11px 2px}.dj-rank{color:var(--dj-acid);font-size:10px;width:23px}.dj-score-person{flex:1;min-width:0}.dj-score-person b,.dj-score-person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dj-score-person b{font-size:10px}.dj-score-person small{font-size:8px;color:#9d96a1;margin-top:3px}.dj-leaderboard-list li>strong{font-size:13px}.dj-empty{min-height:125px;border-top:1px solid #39343c;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#a49da6;font-size:10px}.dj-leaderboard-foot{border-top:1px solid #39343c;padding-top:12px;margin-top:10px;color:#918a95;font-size:8px;letter-spacing:.1em}.dj-leaderboard-foot a{color:var(--dj-acid);text-decoration:none}.dj-battle[hidden],.dj-battle-screen[hidden],.dj-result[hidden],.dj-now-playing[hidden]{display:none!important}
@media(max-width:900px){.dj-section,.dj-battle-screen,.dj-bottom-grid{padding-left:5%;padding-right:5%}.dj-setup-grid{grid-template-columns:1fr}.dj-roster{grid-template-columns:repeat(3,minmax(0,1fr))}.dj-bottom-grid{gap:24px}}
@media(max-width:600px){.dj-hero{min-height:360px;padding:45px 7%;background-position:48% center}.dj-hero h1{font-size:72px}.dj-hero-seal{width:90px;height:90px;top:23%;right:7%;font-size:8px}.dj-hero-seal b{font-size:20px;margin:0}.dj-hero-index{font-size:7px}.dj-section{padding-top:48px;padding-bottom:48px}.dj-section-heading{align-items:start;gap:12px}.dj-section h2{font-size:27px}.dj-section-heading>span{max-width:95px;text-align:right;line-height:1.5}.dj-roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.dj-roster-card{padding:7px;gap:7px}.dj-roster-card .dj-pixel-face{width:37px;height:40px}.dj-roster-meta b{font-size:9px}.dj-roster-meta small{font-size:6px}.dj-selected-preview{height:155px}.dj-battle-screen{padding-top:37px}.dj-battle-heading{align-items:start}.dj-battle-heading h2{font-size:21px}.dj-versus{height:235px;grid-template-columns:1fr 35px 1fr}.dj-fighter{padding:12px 8px}.dj-fighter-art{height:120px;gap:4px}.dj-fighter-art .dj-pixel-face{width:75px;height:105px}.dj-fighter-art:after{font-size:20px}.dj-fighter-name{font-size:9px}.dj-stage-backdrop b{font-size:10px}.dj-stage-backdrop small{font-size:5px}.dj-battle-message{font-size:9px}.dj-song-grid{grid-template-columns:1fr}.dj-crate-heading h3{font-size:15px}.dj-score-pill{font-size:7px}.dj-bottom-grid{grid-template-columns:1fr;gap:28px;padding-top:45px;padding-bottom:45px}.dj-rules h2{font-size:35px}.dj-result{margin:25px 5% 45px;padding:30px 15px}.dj-result>strong{font-size:52px}}
.dj-audio-note{font-size:11px;color:#aaa2ad;margin:7px 0 0;letter-spacing:.02em}
.dj-battle{font-family:"Courier New",monospace;--dj-bg:#100d19;--dj-panel:#21182c;--dj-acid:#f2de55;--dj-violet:#b85be8}
.dj-section{background:linear-gradient(180deg,rgba(13,10,24,.88),rgba(17,12,27,.94)),url('/assets/dj-battle/banner.webp') center/cover}
.dj-roster-card{min-height:82px;background:rgba(25,20,33,.94);border:2px solid #51425e;box-shadow:inset -3px -3px 0 rgba(0,0,0,.3);padding:5px 8px}
.dj-roster-card:hover,.dj-roster-card[aria-selected="true"]{background:rgba(48,34,57,.97);box-shadow:0 0 0 2px #16121d,0 0 18px color-mix(in srgb,var(--dj-color) 50%,transparent)}
.dj-pixel-face{background:transparent!important;border:0!important;image-rendering:auto}
.dj-roster-card .dj-pixel-face{width:47px;height:64px;align-self:flex-end}
.dj-roster-meta b{font-family:"Courier New",monospace;font-size:11px}
.dj-selected-preview{height:225px;background:linear-gradient(180deg,rgba(18,13,26,.2),rgba(18,13,26,.85)),url('/assets/dj-battle/banner.webp') center/cover;border:2px solid var(--dj-color)}
.dj-selected-preview .dj-pixel-face{position:absolute;left:50%;bottom:0;width:auto;height:94%;transform:translateX(-50%);opacity:1;mix-blend-mode:normal;filter:drop-shadow(3px 0 0 rgba(14,10,20,.8))}
.dj-selected-preview:after{background:linear-gradient(0deg,rgba(18,15,21,.88),transparent 45%),repeating-linear-gradient(0deg,transparent 0 5px,rgba(0,0,0,.05) 6px)}
.dj-battle-screen{background:linear-gradient(rgba(12,10,18,.9),rgba(12,10,18,.96)),url('/assets/dj-battle/banner.webp') center/cover}
.dj-versus{height:340px;background:linear-gradient(0deg,rgba(19,13,25,.7),rgba(19,13,25,.3)),url('/assets/dj-battle/banner.webp') center/cover;border:2px solid #72576f;box-shadow:0 0 26px rgba(166,75,224,.2)}
.dj-fighter{padding:10px 24px 14px;display:flex;flex-direction:column;justify-content:flex-end}
.dj-fighter-art{height:235px;align-items:flex-end;justify-content:center;gap:0}
.dj-fighter-art .dj-pixel-face{width:auto;height:228px;max-width:100%;filter:drop-shadow(3px 0 0 rgba(10,7,16,.85))}
.dj-player .dj-fighter-art .dj-pixel-face{transform:translateY(9px)}
.dj-rival .dj-fighter-art .dj-pixel-face{transform:translateY(9px) scaleX(-1)}
.dj-fighter-art:after{position:absolute;right:8px;top:18px;text-shadow:2px 2px #842fa0;animation:dj-sparkle 1.2s steps(2,end) infinite}
.dj-rival .dj-fighter-art:after{left:8px;right:auto}
.dj-stage-backdrop{opacity:.26;mix-blend-mode:screen}
.dj-versus-mark{background:#21162b;border:2px solid var(--dj-acid);width:48px;height:48px;justify-content:center;box-shadow:0 0 18px rgba(242,222,85,.35)}
.dj-song{border:2px solid #403148;background:rgba(31,24,38,.95);box-shadow:inset -2px -2px 0 rgba(0,0,0,.35)}
.dj-song:hover:not(:disabled){border-color:var(--dj-acid);background:#33253d;transform:translateY(-1px)}
.dj-cta{box-shadow:4px 4px 0 #7d5f2a;text-transform:uppercase}
@keyframes dj-sparkle{50%{transform:translateY(-4px) scale(1.1)}}
@media(max-width:600px){.dj-selected-preview{height:200px}.dj-roster-card{min-height:74px}.dj-roster-card .dj-pixel-face{width:40px;height:56px}.dj-versus{height:285px}.dj-fighter{padding:8px 4px 10px}.dj-fighter-art{height:192px}.dj-fighter-art .dj-pixel-face{height:188px}.dj-versus-mark{width:34px;height:34px;font-size:13px}.dj-player .dj-fighter-art .dj-pixel-face,.dj-rival .dj-fighter-art .dj-pixel-face{transform:translateY(6px) scaleX(1)}.dj-rival .dj-fighter-art .dj-pixel-face{transform:translateY(6px) scaleX(-1)}}
.dj-battle-page{margin:0;background:#080b20;overflow-x:hidden}.dj-battle-page main{margin:0!important;padding:0!important;max-width:none!important}.dj-battle-screen{width:100%;min-height:100vh;padding:0 0 12px;border:0;display:flex;flex-direction:column;gap:0;background:#080b20;color:#fff;font-family:'VT323','Courier New',monospace}
.arcade-hud{min-height:92px;display:grid;grid-template-columns:minmax(0,1fr) 240px minmax(0,1fr);align-items:center;gap:12px;padding:8px 12px 2px;background:#090d2a}
.arcade-player-hud{height:76px;display:flex;align-items:center;gap:12px;min-width:0}
.arcade-rival-hud{justify-content:flex-end;text-align:right}
.arcade-face{width:82px;height:76px;flex:0 0 82px;display:grid;place-items:center;overflow:hidden;background:#111a40;border:4px solid #f4a83b;box-shadow:0 0 0 3px #472658,0 0 13px #25dffc}
.arcade-face .dj-pixel-face{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.arcade-hud-info{flex:1;min-width:0}
.arcade-hud-info>small{font:12px 'Press Start 2P',monospace;letter-spacing:.02em;color:#fff}
.arcade-hud-info>b{display:block;margin:5px 0 2px;font:22px 'VT323',monospace;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arcade-hud .dj-health{height:20px;margin-top:3px;border:3px solid #efa532;background:#091331;clip-path:none;padding:2px}
.arcade-hud .dj-health span{background:#42ee61;box-shadow:0 0 8px #21ff68;transition:width .4s}
.arcade-rival-hud .dj-health span{margin-left:auto;background:#42ee61}
.arcade-hud .dj-vitality{display:none}
.arcade-round{justify-self:center;min-width:220px;padding:10px 8px;text-align:center;background:#171438;border:4px solid #efa532;box-shadow:0 0 0 3px #52215f,0 0 14px #ff9d2e;color:#fff;font:22px 'Press Start 2P',monospace;white-space:nowrap}
.arcade-round::first-letter{color:#ffdb39}
.arcade-score-row{height:42px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;padding:0 18px;background:#090d2a}
.arcade-score,.arcade-combo{justify-self:start;padding:4px 12px;border:3px solid #22e9ef;background:#0a1432;color:#fff;font:13px 'Press Start 2P',monospace;box-shadow:0 0 8px #1ecfff}
.arcade-score b,.arcade-combo b{color:#ffd632}.arcade-combo{justify-self:end}.arcade-score-row .dj-back{justify-self:center;padding:4px 8px;border:1px solid #52466e;background:#14112e;color:#bfc9ec;font:12px 'VT323',monospace}
.dj-versus{flex:1 1 auto;width:100%;height:auto;min-height:360px;max-height:calc(100vh - 340px);position:relative;overflow:hidden;background-position:center 54%;background-size:cover;background-repeat:no-repeat;border:0;border-top:2px solid #433061;border-bottom:5px solid #f4a72f;box-shadow:inset 0 0 60px rgba(5,7,28,.16)}
.dj-fighter{position:absolute;bottom:1%;width:42%;height:75%;padding:0;z-index:2;display:flex;align-items:flex-end;justify-content:center;background:transparent}
.dj-player{left:4%}.dj-rival{right:4%}
.dj-fighter-art{height:100%;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:0}
.dj-fighter-art .dj-pixel-face{width:auto;height:100%;max-width:100%;border:0;background:transparent;object-fit:contain;filter:drop-shadow(4px 2px 0 #11132b)}
.dj-player .dj-fighter-art .dj-pixel-face{transform:none}.dj-rival .dj-fighter-art .dj-pixel-face{transform:scaleX(-1)}
.dj-fighter-art:after{display:none}
.dj-versus-mark{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);z-index:4;align-self:auto;display:grid;place-items:center;width:54px;height:54px;margin:0;background:#0a1230;border:3px solid #f3a836;color:#ffe345;font:16px 'Press Start 2P',monospace;box-shadow:0 0 14px #f6a42e}
.dj-stage-backdrop{position:absolute;z-index:5;inset:auto auto 12px 14px;display:flex;flex-direction:row;gap:7px;align-items:center;justify-content:flex-start;padding:6px 10px;background:rgba(7,11,34,.82);border:2px solid #22dff1;color:#fff;opacity:1;mix-blend-mode:normal;transform:none}
.dj-stage-backdrop span{font-size:18px;color:#ffdc41}.dj-stage-backdrop b{margin:0;font:11px 'Press Start 2P',monospace;text-shadow:2px 2px #6c248c}.dj-stage-backdrop small{display:none}.arcade-stage-caption{display:none}
.dj-battle-message{position:absolute;z-index:6;top:140px;left:50%;transform:translateX(-50%);min-height:0;margin:0;padding:5px 12px;border:1px solid rgba(44,230,241,.6);background:rgba(8,13,40,.84);color:#fff;font:16px 'VT323',monospace;white-space:nowrap}
.dj-battle-message b{color:#ffe04b;font:18px 'VT323',monospace}
.dj-now-playing{position:absolute;z-index:6;top:173px;left:50%;transform:translateX(-50%);margin:0;padding:3px 8px;background:rgba(8,13,40,.8);color:#fff;font:14px 'VT323',monospace;white-space:nowrap}
.dj-now-playing b{color:#30edf0}
.arcade-song-dock{position:relative;min-height:192px;padding:10px 94px 12px;background:#0a0c25;border-top:5px solid #eaaa39;box-shadow:inset 0 5px 0 #322758}
.arcade-song-dock::before,.arcade-song-dock::after{content:"";position:absolute;z-index:0;bottom:10px;top:22px;width:66px;background-image:url('/assets/dj-battle/ui/music-sprites.webp');background-repeat:no-repeat;background-size:200% 100%;background-position:right center;image-rendering:pixelated}
.arcade-song-dock::before{left:8px}.arcade-song-dock::after{right:8px}
.arcade-song-heading{position:relative;z-index:1;height:31px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
.arcade-song-heading>div:first-child{display:flex;align-items:center;gap:14px}.arcade-song-heading small{font:8px 'Press Start 2P',monospace;color:#30eaf1}.arcade-song-heading>div:first-child>b{font:13px 'Press Start 2P',monospace;color:#fff}.arcade-song-heading .dj-audio-note{margin:0;color:#9faed4;font:10px 'Press Start 2P',monospace}
.arcade-track-pager{display:flex;align-items:center;gap:8px;color:#fff;font:12px 'Press Start 2P',monospace}.arcade-track-pager button{width:26px;height:24px;border:2px solid #20e8f2;background:#151339;color:#ffe047;font-size:12px}.arcade-track-pager button:disabled{opacity:.35}
.dj-song-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.dj-song{height:126px;position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:20px 1fr 28px;align-items:center;column-gap:9px;min-width:0;padding:8px 10px;background:#171333;border:3px solid var(--track-color,#42f7f1);box-shadow:0 0 0 2px #090a20,0 0 9px var(--track-color,#42f7f1);color:#fff;transition:transform .12s,box-shadow .12s}
.dj-song:nth-child(2){--track-color:#ed45bd}.dj-song:nth-child(3){--track-color:#ffb326}.dj-song:nth-child(4){--track-color:#b357eb}
.dj-song:hover:not(:disabled){background:#201b46;border-color:var(--track-color);box-shadow:0 0 0 2px #090a20,0 0 17px var(--track-color);transform:translateY(-3px)}
.dj-song-number{grid-column:1/-1;width:100%;font:9px 'Press Start 2P',monospace;color:#fff;white-space:nowrap}
.dj-vinyl{grid-column:1;grid-row:2/4;display:block;width:56px;height:56px;background-image:url('/assets/dj-battle/ui/music-sprites.webp');background-repeat:no-repeat;background-size:200% 100%;background-position:left center;image-rendering:pixelated}
.dj-song-info{grid-column:2;grid-row:2;min-width:0;align-self:end}.dj-song-info b,.dj-song-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dj-song-info b{font:13px 'VT323',monospace;color:#fff}.dj-song-info small{margin-top:3px;font:11px 'VT323',monospace;color:#c7bdd5}
.dj-song-pick{grid-column:2;grid-row:3;justify-self:start;padding:3px 8px;border:2px solid #2be6eb;background:#0a102a;color:#fff;font:10px 'Press Start 2P',monospace;white-space:nowrap}
.dj-song:focus-visible,.arcade-track-pager button:focus-visible{outline:3px solid #ffe047;outline-offset:2px}
@media(max-width:800px){.arcade-hud{grid-template-columns:minmax(0,1fr) 140px minmax(0,1fr);gap:6px;padding:5px}.arcade-round{min-width:132px;padding:9px 4px;font-size:12px}.arcade-face{width:58px;height:58px;flex-basis:58px;border-width:3px}.arcade-player-hud{height:63px;gap:6px}.arcade-hud-info>small{font-size:7px}.arcade-hud-info>b{font-size:17px}.arcade-hud .dj-health{height:14px}.arcade-score-row{height:33px;padding:0 7px}.arcade-score,.arcade-combo{font-size:8px;padding:4px 6px}.dj-versus{min-height:300px;max-height:calc(100vh - 330px)}.dj-fighter{width:47%;height:70%}.dj-player{left:0}.dj-rival{right:0}.arcade-song-dock{min-height:210px;padding:8px 8px 10px}.arcade-song-dock::before,.arcade-song-dock::after{display:none}.arcade-song-heading{gap:6px}.arcade-song-heading>div:first-child{gap:6px}.arcade-song-heading small{font-size:6px}.arcade-song-heading>div:first-child>b{font-size:7px}.arcade-song-heading .dj-audio-note{font-size:6px}.dj-song-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.dj-song{height:85px;grid-template-columns:34px minmax(0,1fr);grid-template-rows:14px 1fr 21px;padding:5px;column-gap:5px}.dj-song-number{font-size:6px}.dj-vinyl{width:32px;height:32px}.dj-song-info b{font-size:12px}.dj-song-info small{font-size:10px}.dj-song-pick{font-size:6px;padding:2px 4px}.dj-battle-message{top:108px;font-size:13px}.dj-now-playing{top:132px;font-size:12px}}
@media(max-width:480px){.arcade-hud{grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr)}.arcade-face{width:43px;height:47px;flex-basis:43px}.arcade-player-hud{height:51px}.arcade-hud-info>small{font-size:5px}.arcade-hud-info>b{font-size:14px}.arcade-round{min-width:85px;font-size:8px;padding:8px 2px}.arcade-score-row{grid-template-columns:1fr auto 1fr}.arcade-score,.arcade-combo{font-size:6px;border-width:2px;padding:3px}.arcade-score-row .dj-back{font-size:11px}.dj-versus{min-height:260px;max-height:calc(100vh - 305px);background-position:center center}.dj-fighter{width:50%;height:64%}.dj-versus-mark{width:34px;height:34px;font-size:9px;border-width:2px}.dj-stage-backdrop{bottom:5px;left:5px;padding:4px 6px}.dj-stage-backdrop b{font-size:7px}.arcade-song-dock{padding-top:6px}.arcade-song-heading{height:25px}.arcade-song-heading .dj-audio-note{display:none}.arcade-track-pager{gap:4px;font-size:8px}.arcade-track-pager button{width:22px;height:21px}.dj-song{height:78px}.dj-battle-message{max-width:85vw;overflow:hidden;text-overflow:ellipsis}.dj-now-playing{max-width:90vw;overflow:hidden;text-overflow:ellipsis}}

/* The match is an immersive arcade screen that works in either phone orientation. */
.dj-battle.is-playing{position:relative;z-index:1000}
.dj-battle.is-playing>.dj-hero,
.dj-battle.is-playing>#choose-dj,
.dj-battle.is-playing>#dj-result,
.dj-battle.is-playing>.dj-bottom-grid{display:none!important}
.dj-battle.is-playing #dj-battle-screen{position:fixed;inset:0;z-index:1000;width:100vw;height:100vh;height:100dvh;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);}
@media (orientation:landscape) and (max-height:600px){
  .dj-battle.is-playing #dj-battle-screen{height:100vh;height:100dvh;min-height:0;}
  .dj-battle.is-playing .arcade-hud{height:60px;min-height:60px;padding:3px 8px;grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);gap:5px}
  .dj-battle.is-playing .arcade-player-hud{height:54px;gap:5px}
  .dj-battle.is-playing .arcade-face{width:47px;height:48px;flex-basis:47px;border-width:2px}
  .dj-battle.is-playing .arcade-round{min-width:112px;padding:7px 3px;font-size:9px;border-width:2px}
  .dj-battle.is-playing .arcade-hud-info>small{font-size:6px}
  .dj-battle.is-playing .arcade-hud-info>b{font-size:14px;margin:2px 0}
  .dj-battle.is-playing .arcade-hud .dj-health{height:9px;border-width:2px;padding:1px;margin:0}
  .dj-battle.is-playing .arcade-score-row{height:27px;min-height:27px;padding:0 8px}
  .dj-battle.is-playing .arcade-score,.dj-battle.is-playing .arcade-combo{font-size:6px;padding:2px 5px;border-width:1px}
  .dj-battle.is-playing .arcade-score-row .dj-back{font-size:10px}
  .dj-battle.is-playing .dj-versus{flex:1 1 0;height:auto;min-height:0;max-height:none}
  .dj-battle.is-playing .dj-fighter{height:78%}
  .dj-battle.is-playing .dj-versus-mark{width:34px;height:34px;font-size:9px;border-width:2px}
  .dj-battle.is-playing .dj-battle-message{top:8px;font-size:12px}
  .dj-battle.is-playing .dj-now-playing{top:30px;font-size:11px}
  .dj-battle.is-playing .arcade-song-dock{height:112px;min-height:112px;padding:4px 8px 6px;border-top-width:3px}
  .dj-battle.is-playing .arcade-song-heading{height:20px;margin-bottom:3px}
  .dj-battle.is-playing .arcade-song-heading>div:first-child>b{font-size:6px}
  .dj-battle.is-playing .arcade-song-heading small{font-size:5px}
  .dj-battle.is-playing .arcade-song-heading .dj-audio-note{display:none}
  .dj-battle.is-playing .arcade-track-pager{font-size:7px}
  .dj-battle.is-playing .arcade-track-pager button{width:19px;height:18px}
  .dj-battle.is-playing .dj-song-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .dj-battle.is-playing .dj-song{height:78px;grid-template-columns:31px minmax(0,1fr);grid-template-rows:12px 1fr 17px;padding:4px;column-gap:4px}
  .dj-battle.is-playing .dj-song-number{font-size:5px}
  .dj-battle.is-playing .dj-vinyl{width:29px;height:29px}
  .dj-battle.is-playing .dj-song-info b{font-size:11px}
  .dj-battle.is-playing .dj-song-info small{font-size:9px}
  .dj-battle.is-playing .dj-song-pick{font-size:5px;padding:1px 3px;border-width:1px}
}

/* Keep the selected Edinburgh scene visible from its top edge and clear the foreground DJs. */
.dj-battle.is-playing .dj-versus{background-position:center top!important}
.dj-battle.is-playing .dj-fighter-art{position:relative;z-index:4;width:100%;height:100%}

/* Song picks become animated, labelled music attacks inside the arena. */
.dj-song-projectile{position:absolute;z-index:7;top:56%;left:24%;display:flex;align-items:center;gap:6px;max-width:min(154px,28vw);min-height:34px;padding:4px 8px;border:3px solid #2ef0f1;background:#111a43;color:#fff;box-shadow:0 0 0 2px #150d31,0 0 16px #27e3ff;pointer-events:none;white-space:nowrap;overflow:hidden;font-family:'VT323',monospace}
.dj-song-projectile b{color:#ffe147;font:20px 'Press Start 2P',monospace;text-shadow:2px 2px #e943ba}
.dj-song-projectile span{overflow:hidden;text-overflow:ellipsis;font-size:16px}
.dj-projectile-left{border-color:#f04ac2;box-shadow:0 0 0 2px #150d31,0 0 16px #f04ac2}
.dj-player.is-attacking .dj-fighter-art{transform-origin:center bottom;animation:dj-player-throw 1.56s steps(8,end) both}
.dj-rival.is-attacking .dj-fighter-art{transform-origin:center bottom;animation:dj-rival-throw 1.56s steps(8,end) both}
.dj-fighter.is-hit .dj-fighter-art{animation:dj-hit-shake .34s steps(4,end);filter:brightness(1.8) sepia(.25)}
.dj-fighter.is-dancing .dj-pixel-face{transform-origin:center bottom;animation:dj-hit-dance 1.65s steps(8,end) both}
@keyframes dj-player-throw{0%,100%{transform:translateX(0) scale(1)}22%{transform:translateX(-11px) rotate(-3deg) scale(.98)}46%{transform:translateX(19px) rotate(3deg) scale(1.035)}67%{transform:translateX(10px) rotate(1deg) scale(1.015)}82%{transform:translateX(-3px) scale(1)}}
@keyframes dj-rival-throw{0%,100%{transform:translateX(0) scale(1)}22%{transform:translateX(11px) rotate(3deg) scale(.98)}46%{transform:translateX(-19px) rotate(-3deg) scale(1.035)}67%{transform:translateX(-10px) rotate(-1deg) scale(1.015)}82%{transform:translateX(3px) scale(1)}}
@keyframes dj-hit-shake{0%,100%{translate:0 0}25%{translate:-7px 0}50%{translate:6px 0}75%{translate:-3px 0}}
@keyframes dj-hit-dance{0%,100%{translate:0 0;rotate:0deg;scale:1}14%{translate:0 -8px;rotate:-5deg;scale:1.03}28%{translate:0 0;rotate:5deg;scale:1}42%{translate:0 -6px;rotate:-4deg;scale:1.02}58%{translate:0 0;rotate:5deg;scale:1}74%{translate:0 -4px;rotate:-3deg;scale:1.01}88%{translate:0 0;rotate:3deg;scale:1}}
@media(prefers-reduced-motion:reduce){.dj-player.is-attacking .dj-fighter-art,.dj-rival.is-attacking .dj-fighter-art,.dj-fighter.is-hit .dj-fighter-art,.dj-fighter.is-dancing .dj-pixel-face{animation:none}}

/* Six authored poses per DJ animate the arms, head and feet during each move. */
.dj-battle.is-playing .dj-fighter-art{display:flex;align-items:flex-end;justify-content:center;overflow:visible}
.dj-animated-sprite{height:100%;aspect-ratio:1;width:auto;max-width:100%;flex:0 1 auto;background-repeat:no-repeat;background-size:300% 200%;background-position:0 0;filter:drop-shadow(4px 2px 0 #11132b)}
.dj-rival .dj-animated-sprite{transform:scaleX(-1)}
.dj-player.is-attacking .dj-animated-sprite{animation:dj-sheet-throw 1.56s steps(1,end) both}
.dj-rival.is-attacking .dj-animated-sprite{animation:dj-sheet-throw 1.56s steps(1,end) both}
.dj-fighter.is-dancing .dj-animated-sprite{animation:dj-sheet-dance .72s steps(1,end) infinite}
.dj-fighter.is-hit .dj-animated-sprite{filter:brightness(1.7) sepia(.3) drop-shadow(4px 2px 0 #11132b)}
@keyframes dj-sheet-throw{0%,22%{background-position:0 0}23%,45%{background-position:50% 0}46%,68%{background-position:100% 0}69%,100%{background-position:0 100%}}
@keyframes dj-sheet-dance{0%,49%{background-position:50% 100%}50%,100%{background-position:100% 100%}}
.dj-fighter.is-dancing .dj-fighter-art{animation:dj-dance-bounce .72s ease-in-out infinite alternate}
@keyframes dj-dance-bounce{from{translate:0 0}to{translate:0 -5px}}
@media(max-width:600px){.dj-animated-sprite{height:100%;max-width:100%}}
@media(prefers-reduced-motion:reduce){.dj-player.is-attacking .dj-animated-sprite,.dj-rival.is-attacking .dj-animated-sprite,.dj-fighter.is-dancing .dj-animated-sprite,.dj-fighter.is-dancing .dj-fighter-art{animation:none}}

/* The selected DJ keeps moving while the player chooses their character. */
.dj-selected-preview .dj-animated-sprite{position:absolute;left:50%;bottom:0;height:94%;width:auto;aspect-ratio:1;max-width:100%;transform:translateX(-50%);background-repeat:no-repeat;background-size:300% 200%;background-position:50% 100%;animation:dj-sheet-dance .8s steps(1,end) infinite;filter:drop-shadow(3px 0 0 rgba(14,10,20,.8))}
.dj-stage-heading{color:var(--dj-acid);letter-spacing:.12em}
@media(prefers-reduced-motion:reduce){.dj-selected-preview .dj-animated-sprite{animation:none;background-position:50% 100%}}

/* Named face-offs and the final result play above the full-screen arena. */
.dj-fight-intro[hidden],.dj-ending[hidden]{display:none!important}
.dj-fight-intro{position:absolute;inset:0;z-index:25;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;justify-items:center;gap:clamp(8px,3vw,40px);overflow:hidden;padding:50px clamp(10px,5vw,70px);background:radial-gradient(ellipse at center,rgba(50,24,75,.94),rgba(7,10,32,.97) 72%);color:#fff;text-align:center}
.dj-fight-intro:before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.025) 5px)}
.dj-fight-intro-side{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.dj-fight-intro-side small{font:clamp(8px,1.5vh,12px) 'Press Start 2P',monospace;letter-spacing:.08em;color:#42f7f1}
.dj-fight-intro-side.is-rival small{color:#ff66c9}
.dj-fight-intro-side b{font:clamp(15px,3.3vh,28px) 'VT323',monospace;letter-spacing:.04em;color:#fff;text-shadow:2px 2px #8b37b5;white-space:nowrap}
.dj-fight-intro-sprite{width:min(29vh,30vw);height:auto;aspect-ratio:1;background-size:300% 200%;background-position:0 0;filter:drop-shadow(0 0 12px rgba(55,238,255,.25))}
.dj-fight-intro-side.is-rival .dj-fight-intro-sprite{transform:scaleX(-1);filter:drop-shadow(0 0 12px rgba(255,72,193,.3))}
.dj-fight-intro-versus{z-index:1;font:clamp(24px,7vh,62px) 'Press Start 2P',monospace;color:#ffdf42;text-shadow:4px 4px #e6349b,0 0 22px #ff8a35;animation:dj-versus-pop .45s cubic-bezier(.2,1.5,.4,1) both}
.dj-fight-intro-round,.dj-fight-intro-ready{position:absolute;z-index:1;left:50%;transform:translateX(-50%);font:clamp(8px,1.5vh,12px) 'Press Start 2P',monospace;white-space:nowrap}
.dj-fight-intro-round{top:clamp(12px,4vh,34px);color:#ffe047}
.dj-fight-intro-ready{bottom:clamp(12px,4vh,34px);color:#b8faff;letter-spacing:.15em;animation:dj-ready-blink .65s steps(2,end) infinite}
.dj-fight-intro-side.is-player{animation:dj-intro-left .65s cubic-bezier(.2,.8,.2,1) both}
.dj-fight-intro-side.is-rival{animation:dj-intro-right .65s cubic-bezier(.2,.8,.2,1) both}
.dj-ending{position:absolute;inset:0;z-index:26;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;justify-items:center;align-items:center;gap:clamp(5px,1.6vh,16px);overflow:hidden;padding:clamp(12px,3vh,28px);background:radial-gradient(ellipse at center,rgba(57,24,83,.97),rgba(7,10,32,.99) 74%);color:#fff;text-align:center}
.dj-ending-title{font:clamp(15px,4vh,34px) 'Press Start 2P',monospace;color:#ffe047;text-shadow:3px 3px #e6349b;animation:dj-versus-pop .45s cubic-bezier(.2,1.5,.4,1) both}
.dj-ending-subtitle{font:clamp(9px,1.8vh,14px) 'VT323',monospace;letter-spacing:.16em;color:#cefaff}
.dj-ending-portrait{position:relative;display:grid;place-items:center;align-self:stretch;min-height:0;aspect-ratio:1}
.dj-ending-sprite{width:min(48vh,48vw);height:auto;aspect-ratio:1;background-size:300% 200%;background-position:0 0;filter:drop-shadow(0 0 14px rgba(60,241,248,.3))}
.dj-ending--win .dj-ending-sprite{animation:dj-sheet-dance .72s steps(1,end) infinite}
.dj-ending--loss .dj-ending-sprite{background-position:0 0;filter:grayscale(.55) saturate(.65) brightness(.85);animation:dj-ending-sob .36s ease-in-out infinite alternate}
.dj-ending-tears{position:absolute;left:48%;top:21%;width:38px;height:60px;pointer-events:none}
.dj-ending-tears:before,.dj-ending-tears:after{content:"";position:absolute;top:0;width:11px;height:17px;border-radius:85% 15% 70% 70%;background:linear-gradient(135deg,#d9ffff,#35bfff 62%,#3b6eff);box-shadow:0 0 8px #35bfff;animation:dj-tear-fall .85s ease-in infinite}
.dj-ending-tears:after{left:18px;top:8px;animation-delay:.34s}
.dj-ending-score{font:clamp(10px,2vh,16px) 'VT323',monospace;letter-spacing:.13em;color:#fff}
@keyframes dj-intro-left{from{opacity:0;transform:translateX(-70px)}to{opacity:1;transform:translateX(0)}}
@keyframes dj-intro-right{from{opacity:0;transform:translateX(70px)}to{opacity:1;transform:translateX(0)}}
@keyframes dj-versus-pop{from{opacity:0;scale:.35}to{opacity:1;scale:1}}
@keyframes dj-ready-blink{50%{opacity:.35}}
@keyframes dj-ending-sob{to{translate:0 7px;rotate:-4deg}}
@keyframes dj-tear-fall{0%{opacity:0;translate:0 0}20%{opacity:1}100%{opacity:0;translate:3px 34px}}
@media(max-width:600px){.dj-fight-intro{gap:3vw;padding:48px 5vw}.dj-fight-intro-sprite{width:min(31vh,32vw)}.dj-fight-intro-side{gap:5px}.dj-ending-sprite{width:min(48vh,48vw)}}
@media(prefers-reduced-motion:reduce){.dj-fight-intro-side,.dj-fight-intro-versus,.dj-ending-title,.dj-ending--win .dj-ending-sprite,.dj-ending--loss .dj-ending-sprite,.dj-ending-tears:before,.dj-ending-tears:after{animation:none!important}}
.dj-ending-portrait{width:min(49vh,48vw);height:min(49vh,48vw)}
.dj-ending-sprite{width:100%;height:100%}

/* Longer face-off: DJs rush in, dance through the reveal, then the round begins. */
.dj-fight-intro-side.is-player{animation:dj-intro-left 1.45s cubic-bezier(.17,.84,.25,1.05) both}
.dj-fight-intro-side.is-rival{animation:dj-intro-right 1.45s cubic-bezier(.17,.84,.25,1.05) both}
.dj-fight-intro-sprite{animation:dj-sheet-dance .72s steps(1,end) infinite}
.dj-fight-intro-versus{animation-delay:1.2s}
.dj-fight-intro-ready{animation-delay:1.7s}
.dj-ending--win .dj-ending-title{position:relative;z-index:1;max-width:94vw;padding:10px clamp(12px,3vw,38px);border:4px solid #fff0a0;background:linear-gradient(180deg,#fff05a 0 42%,#ff9a1d 45% 100%);color:#fff;-webkit-text-stroke:2px #9d164b;font-size:clamp(29px,8vh,76px);line-height:1.3;letter-spacing:-.05em;text-shadow:3px 3px #ed2462,7px 7px #17102e;filter:drop-shadow(0 0 18px rgba(255,211,58,.75));transform:skew(-7deg);animation:dj-winner-banner .55s cubic-bezier(.16,1.5,.3,1) both}
@keyframes dj-intro-left{0%{opacity:0;transform:translateX(-100vw) rotate(-8deg) scale(.82)}75%{opacity:1;transform:translateX(15px) rotate(2deg) scale(1.04)}100%{opacity:1;transform:translateX(0) rotate(0) scale(1)}}
@keyframes dj-intro-right{0%{opacity:0;transform:translateX(100vw) rotate(8deg) scale(.82)}75%{opacity:1;transform:translateX(-15px) rotate(-2deg) scale(1.04)}100%{opacity:1;transform:translateX(0) rotate(0) scale(1)}}
@keyframes dj-winner-banner{from{opacity:0;scale:.2;rotate:-9deg}to{opacity:1;scale:1;rotate:0deg}}
@media(prefers-reduced-motion:reduce){.dj-fight-intro-sprite{animation:none}}
.dj-battle.is-playing #dj-arena .dj-versus-mark{display:none!important}

/* Loss reaction: the DJ folds in, trembles, and repeatedly wipes their eyes. */
.dj-ending--loss .dj-ending-sprite{
  transform-origin:50% 86%;
  filter:grayscale(.35) saturate(.6) brightness(.82) drop-shadow(0 0 10px rgba(73,158,255,.25));
  animation:dj-ending-cry-body 1.1s ease-in-out infinite,dj-ending-cry-pose 1.55s steps(1,end) infinite;
}
.dj-ending--loss .dj-ending-tears{left:47%;top:18%;width:42px;height:70px}
.dj-ending--loss .dj-ending-tears:before,.dj-ending--loss .dj-ending-tears:after{
  top:0;width:8px;height:27px;border-radius:50% 50% 65% 65%;
  background:linear-gradient(90deg,#a9faff,#39baff 58%,#4775ff);
  box-shadow:0 0 10px rgba(47,180,255,.9);
  animation:dj-cry-stream 1.05s ease-in infinite;
}
.dj-ending--loss .dj-ending-tears:after{left:19px;top:5px;animation-delay:.48s}
@keyframes dj-ending-cry-body{
  0%,100%{translate:0 0;rotate:0deg;scale:1}
  14%,48%{translate:0 11px;rotate:-4deg;scale:.95}
  22%,29%{translate:4px 7px;rotate:3deg;scale:.96}
  37%,43%{translate:-3px 9px;rotate:-2deg;scale:.96}
  67%,82%{translate:0 5px;rotate:2deg;scale:.98}
}
@keyframes dj-ending-cry-pose{
  0%,16%,53%,70%{background-position:0 0}
  17%,52%,71%,100%{background-position:50% 0}
}
@keyframes dj-cry-stream{
  0%{opacity:0;translate:0 -4px;scale:.7  .55}
  18%{opacity:1;scale:1 1}
  78%{opacity:1}
  100%{opacity:0;translate:2px 40px;scale:.8 1.1}
}
@media(prefers-reduced-motion:reduce){
  .dj-ending--loss .dj-ending-sprite,.dj-ending--loss .dj-ending-tears:before,.dj-ending--loss .dj-ending-tears:after{animation:none!important}
  .dj-ending--loss .dj-ending-sprite{background-position:50% 0;translate:0 8px;rotate:-3deg;scale:.96}
}

/* Use each DJ's generated six-pose crying sheet on defeat. */
.dj-ending--loss .dj-ending-sprite--crying{
  background-size:300% 200%;
  background-position:0 0;
  filter:drop-shadow(0 0 12px rgba(73,158,255,.32));
  transform-origin:50% 86%;
  animation:dj-ending-cry-body 1.2s ease-in-out infinite,
    dj-ending-cry-frames 2.4s steps(1,end) infinite;
}
@keyframes dj-ending-cry-frames{
  0%,16.6%{background-position:0 0}
  16.7%,33.2%{background-position:50% 0}
  33.3%,49.9%{background-position:100% 0}
  50%,66.6%{background-position:0 100%}
  66.7%,83.2%{background-position:50% 100%}
  83.3%,100%{background-position:100% 100%}
}
@media(prefers-reduced-motion:reduce){
  .dj-ending--loss .dj-ending-sprite--crying{animation:none!important;background-position:50% 100%;translate:0 8px;rotate:-3deg;scale:.96}
}

/* Keep the entire round location and its gameplay clue visible in the face-off. */
.dj-fight-intro-location,.dj-fight-intro-style{position:absolute;z-index:1;left:50%;width:min(92vw,900px);transform:translateX(-50%);text-align:center;font:clamp(7px,1.25vh,10px) 'Press Start 2P',monospace;letter-spacing:.04em;white-space:nowrap}
.dj-fight-intro-location{bottom:clamp(42px,8vh,62px);color:#ffe047}
.dj-fight-intro-style{bottom:clamp(27px,5vh,42px);color:#b8faff}
.arcade-track-pager>span{white-space:nowrap;color:#ffe047}

/* On short landscape screens, fit the complete stage art above the four-track dock. */
@media (orientation:landscape) and (max-height:600px){
  .dj-battle.is-playing .dj-versus{background-size:100% 100%!important;background-position:center center!important;background-color:#080b20}
  .dj-battle.is-playing .arcade-song-dock{flex:0 0 112px}
  .dj-battle.is-playing .dj-fight-intro-location{bottom:35px}
  .dj-battle.is-playing .dj-fight-intro-style{bottom:21px;font-size:7px}
  .dj-battle.is-playing .dj-fight-intro-ready{bottom:4px}
}

/* Simplified DJ Battle landing hero and the guide modal. */
.dj-hero h1{margin-top:0}
.dj-prize-callout{display:grid;gap:7px;max-width:510px;margin:0 0 20px;padding:10px 13px;border-left:3px solid var(--dj-acid);background:rgba(18,15,24,.72)}
.dj-prize-callout small,.dj-guide-prize small{font-size:8px;font-weight:800;letter-spacing:.16em;color:var(--dj-acid)}
.dj-prize-callout strong{font-size:13px;line-height:1.4;color:#f4efe5}
.dj-hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.dj-how-to-link{display:inline-flex;align-items:center;gap:8px;padding:12px 8px;border:0;background:transparent;color:#f1ecdf;font-weight:800;letter-spacing:.13em;font-size:10px;cursor:pointer}
.dj-how-to-link:hover{color:var(--dj-acid)}
.dj-how-to-link b{display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--dj-acid);border-radius:50%;color:var(--dj-acid)}
.dj-how-to-link:focus-visible,.dj-guide-close:focus-visible,.dj-guide-done:focus-visible{outline:3px solid #ffe047;outline-offset:3px}
.dj-bottom-grid{grid-template-columns:minmax(0,860px);justify-content:center}
.dj-guide-modal{width:min(680px,calc(100vw - 24px));max-width:none;max-height:min(88dvh,850px);padding:0;overflow:auto;border:1px solid #726c3a;background:#17151d;color:#f1ecdf;box-shadow:0 28px 100px rgba(0,0,0,.75)}
.dj-guide-modal::backdrop{background:rgba(7,6,14,.82);backdrop-filter:blur(5px)}
.dj-guide-panel{position:relative;padding:clamp(22px,5vw,42px)}
.dj-guide-close{position:absolute;top:14px;right:16px;width:38px;height:38px;border:1px solid #514a5a;background:#25212a;color:#f1ecdf;font-size:27px;line-height:1;cursor:pointer}
.dj-guide-close:hover{border-color:var(--dj-acid);color:var(--dj-acid)}
.dj-guide-panel>.dj-kicker{color:#b5aeb7}
.dj-guide-panel h2{margin:12px 42px 8px 0;font-size:clamp(27px,6vw,40px);letter-spacing:-.06em}
.dj-guide-panel h2 em{font-family:Georgia,serif;font-weight:400;color:var(--dj-acid)}
.dj-guide-intro{max-width:540px;margin:0 0 18px;color:#c9c2cf;font-size:13px;line-height:1.5}
.dj-guide-steps{display:grid;gap:0;list-style:none;margin:0;padding:0;counter-reset:guide-step}
.dj-guide-steps li{display:grid;grid-template-columns:minmax(120px,.37fr) 1fr;gap:16px;padding:13px 0;border-top:1px solid #38333e;counter-increment:guide-step}
.dj-guide-steps li b{font-size:11px;color:#fff}
.dj-guide-steps li b:before{content:"0" counter(guide-step) " / ";margin-right:5px;color:var(--dj-acid);font:9px 'Press Start 2P',monospace}
.dj-guide-steps li span{font-size:11px;line-height:1.55;color:#bdb6c2}
.dj-guide-prize{display:grid;gap:8px;margin-top:16px;padding:14px 16px;border:1px solid rgba(216,239,84,.42);background:rgba(216,239,84,.07)}
.dj-guide-prize strong{font-size:13px;line-height:1.45;color:#f5f0e5}
.dj-guide-sign-in{margin:13px 0 18px;color:#a9a1ac;font-size:10px}
.dj-guide-done{min-width:160px}
@media(max-width:600px){
  .dj-hero{min-height:390px}
  .dj-hero h1{font-size:68px}
  .dj-prize-callout{max-width:calc(100vw - 40px);padding:8px 10px}
  .dj-prize-callout strong{font-size:12px}
  .dj-hero-actions{gap:6px}
  .dj-hero-index{display:none}
  .dj-guide-steps li{grid-template-columns:1fr;gap:5px;padding:11px 0}
  .dj-guide-steps li b{font-size:10px}
  .dj-guide-steps li span{font-size:11px}
  .dj-guide-panel{padding:24px 20px}
  .dj-guide-close{top:10px;right:10px;width:34px;height:34px}
}
.dj-battle-message.is-no-damage{border-color:#ff6f85;background:rgba(62,12,28,.94);color:#ffe5e9;box-shadow:0 0 16px rgba(255,63,112,.42);font-weight:800;text-shadow:0 1px 8px rgba(255,63,112,.5)}

/* DJ selection: preview first, swipeable roster second, battle button last. */
.dj-setup-grid{display:flex;flex-direction:column;gap:14px;max-width:980px;margin:0 auto}
.dj-setup-card{width:100%;padding:12px}
.dj-selected-preview{height:clamp(250px,34vw,360px)}
.dj-stage-heading{margin:13px 1px 1px}
.dj-roster-carousel{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px;min-width:0}
.dj-roster{display:flex;gap:10px;min-width:0;overflow-x:auto;overflow-y:hidden;padding:5px 3px 12px;scroll-snap-type:x mandatory;scroll-padding-inline:3px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#73627f #29232f}
.dj-roster-card{flex:0 0 clamp(185px,22vw,225px);scroll-snap-align:start}
.dj-roster::-webkit-scrollbar{height:7px}
.dj-roster::-webkit-scrollbar-track{background:#29232f}
.dj-roster::-webkit-scrollbar-thumb{background:#73627f;border:1px solid #29232f}
.dj-roster-nav{width:38px;height:48px;border:1px solid #665873;background:#211c28;color:var(--dj-acid);font:700 27px/1 "Courier New",monospace;cursor:pointer;box-shadow:inset -2px -2px 0 rgba(0,0,0,.28)}
.dj-roster-nav:hover,.dj-roster-nav:focus-visible{border-color:var(--dj-acid);background:#33283b;outline:none}
.dj-roster-hint{text-align:center;color:#b3a8b9;font-size:8px;letter-spacing:.17em;margin:0 0 10px}
.dj-setup-actions{width:min(100%,520px);margin:0 auto}
.dj-setup-actions .dj-full{min-height:58px}
.dj-setup-actions .dj-hint{font-size:9px;line-height:1.6}
@media(max-width:600px){
  .dj-setup-grid{gap:12px}
  .dj-setup-card{padding:9px}
  .dj-selected-preview{height:clamp(220px,58vw,300px)}
  .dj-roster-carousel{grid-template-columns:36px minmax(0,1fr) 36px;gap:5px}
  .dj-roster-nav{width:36px;height:46px;font-size:23px}
  .dj-roster{gap:8px;padding-bottom:10px}
  .dj-roster-card{flex-basis:min(62vw,250px);min-height:74px}
  .dj-roster-hint{font-size:7px;letter-spacing:.12em}
  .dj-setup-actions .dj-full{min-height:54px}
}
.dj-hero-links{display:flex;align-items:center;flex-wrap:wrap;gap:4px 17px;margin-top:12px;font-family:"Press Start 2P","Courier New",monospace;font-size:8px;line-height:1.5;letter-spacing:.04em}
.dj-hero-links a{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:8px 0;color:#f1ecdf;text-decoration:none;border-bottom:1px solid rgba(241,236,223,.35);transition:color .15s,border-color .15s}
.dj-hero-links a:hover,.dj-hero-links a:focus-visible{color:var(--dj-acid);border-color:var(--dj-acid);outline:none}
.dj-hero-links .dj-high-scores-link{color:var(--dj-acid)}
.dj-hero-links b{font:700 13px/1 Arial,sans-serif}
.dj-hero-account{color:#c9c1cd;font-size:7px}
@media(max-width:600px){.dj-hero-links{gap:2px 13px;margin-top:8px;font-size:7px}}
.dj-versus>.dj-battle-message{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(82%,560px);min-height:0;margin:0;padding:8px 14px;white-space:normal;overflow:visible;text-overflow:clip;text-align:center;line-height:1.35;font:22px 'VT323',monospace;letter-spacing:.04em;pointer-events:none}
.dj-versus>.dj-battle-message.is-no-damage{width:min(86%,600px);padding:10px 14px;border:3px solid #ff6f85;background:rgba(48,5,19,.96);color:#fff1f3;font:clamp(13px,2.2vw,19px)/1.7 'Press Start 2P',monospace;letter-spacing:0;box-shadow:0 0 0 3px rgba(8,13,40,.85),0 0 25px rgba(255,63,112,.8);text-shadow:0 2px 8px rgba(255,63,112,.8);animation:dj-no-damage-pulse .45s ease-out both}
@keyframes dj-no-damage-pulse{0%{opacity:0;transform:translate(-50%,-50%) scale(.72)}65%{opacity:1;transform:translate(-50%,-50%) scale(1.06)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:900px),(max-height:600px){.dj-battle.is-playing .dj-versus>.dj-battle-message.is-no-damage{top:8px;width:min(92%,460px);padding:7px 9px;border-width:2px;font:clamp(9px,1.3vw,11px)/1.45 'Press Start 2P',monospace;transform:translateX(-50%);animation-name:dj-no-damage-pulse-mobile}}
@keyframes dj-no-damage-pulse-mobile{0%{opacity:0;transform:translateX(-50%) scale(.82)}65%{opacity:1;transform:translateX(-50%) scale(1.03)}100%{opacity:1;transform:translateX(-50%) scale(1)}}
.dj-leaderboard-list{max-height:min(58vh,480px);overflow-y:auto;overscroll-behavior:contain;padding-right:5px;scrollbar-width:thin;scrollbar-color:#8c7b3a #17151a}
.dj-leaderboard-list:focus-visible{outline:2px solid var(--dj-acid);outline-offset:3px}
.dj-leaderboard-list::-webkit-scrollbar{width:8px}
.dj-leaderboard-list::-webkit-scrollbar-track{background:#17151a}
.dj-leaderboard-list::-webkit-scrollbar-thumb{background:#8c7b3a;border:2px solid #17151a}
@media(max-width:600px){.dj-leaderboard-list{max-height:52vh}}
.dj-save-status{font-size:12px;font-weight:800;letter-spacing:.06em;line-height:1.6;margin:14px 0 0}
.dj-guest-save-notice{margin:7px 0 13px;padding:9px 12px;border-left:3px solid var(--dj-acid);background:rgba(8,13,40,.88);color:#e6dfeb;font:19px/1.45 'VT323',monospace;text-align:left}
.dj-guest-save-notice a{color:var(--dj-acid);font:8px 'Press Start 2P',monospace;text-decoration:underline;white-space:nowrap}
@media(max-width:600px){.dj-guest-save-notice{font-size:17px;padding:8px 10px}.dj-guest-save-notice a{font-size:7px}}

/* ==========================================================================
   DJ Battle responsive layout v2 (Orbit, 28 Nov 2026). Match screen only.
   - dvh with vh fallbacks, safe-area insets, readable clamp() type (no text under ~12px-equivalent)
   - arena keeps a fixed aspect ratio (4:3 portrait, 16:9 landscape) and scales to the space left over
   - portrait: score/exit bar, player bars, arena, 2x2 tracks. landscape: arena beside a 2x2 track panel.
   ========================================================================== */
.dj-battle.is-playing #dj-battle-screen{
  position:fixed;inset:0;z-index:1000;box-sizing:border-box;width:auto;height:100vh;height:100dvh;min-height:0;max-height:none;
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(auto,1fr);gap:0;
  padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
}
/* top bar: score and combo sit beside the Exit button (which is fixed, top-left) */
.dj-battle.is-playing .arcade-score-row{grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:8px;height:auto;min-height:58px;padding:6px 12px 2px 112px}
.dj-battle.is-playing .arcade-score,.dj-battle.is-playing .arcade-combo{font-size:clamp(9px,2.7vw,13px);padding:5px 9px;border-width:2px;white-space:nowrap}
.dj-battle.is-playing .arcade-hud{grid-row:2;height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:center;padding:4px 10px}
.dj-battle.is-playing .arcade-player-hud{height:auto;gap:6px;min-width:0}
.dj-battle.is-playing .arcade-face{--face:clamp(36px,6dvh + 10px,54px);width:var(--face);height:var(--face);flex:0 0 var(--face);border-width:2px;box-shadow:0 0 0 2px #472658,0 0 8px #25dffc}
.dj-battle.is-playing .arcade-hud-info>small{font-size:7px;line-height:1.2}
.dj-battle.is-playing .arcade-hud-info>b{font-size:clamp(17px,4.8vw,22px);line-height:1;margin:2px 0}
.dj-battle.is-playing .arcade-hud .dj-health{height:10px;margin:0;border-width:2px;padding:1px}
.dj-battle.is-playing .arcade-round{min-width:0;padding:5px 8px;border-width:3px;font-size:clamp(9px,2.8vw,14px);box-shadow:0 0 0 2px #52215f,0 0 10px #ff9d2e}
@media (orientation:portrait){
  .dj-battle.is-playing .arcade-hud{grid-template-columns:minmax(0,1fr) minmax(0,1fr);row-gap:4px;column-gap:10px}
  .dj-battle.is-playing .arcade-player-hud:not(.arcade-rival-hud){grid-column:1;grid-row:1}
  .dj-battle.is-playing .arcade-rival-hud{grid-column:2;grid-row:1}
  .dj-battle.is-playing .arcade-round{grid-column:1/-1;grid-row:2;justify-self:center;padding:3px 14px}
  .dj-battle.is-playing .arcade-song-heading>div:first-child>b,.dj-battle.is-playing .arcade-track-pager{display:none}
  .dj-battle.is-playing .arcade-song-heading small{white-space:nowrap;font-size:9px}
}
/* arena stage: reserves a box, the arena inside keeps its aspect ratio */
.dj-battle.is-playing .dj-arena-stage{grid-row:3;position:relative;width:100%;aspect-ratio:4/3;max-height:42vh;max-height:42dvh;min-height:0;overflow:hidden;display:block}
.dj-battle.is-playing .dj-arena-stage .dj-versus{position:relative;width:100%;height:100%;min-height:0;max-height:none;flex:none;margin:0 auto;border-top-width:2px;border-bottom-width:4px}
@supports (width:1cqw){
  .dj-battle.is-playing .dj-arena-stage{container-type:size;display:grid;place-items:center}
  .dj-battle.is-playing .dj-arena-stage .dj-versus{width:min(100cqw,calc(100cqh * 4 / 3));height:auto;aspect-ratio:4/3}
}
.dj-battle.is-playing .dj-versus>.dj-battle-message{top:6px;left:50%;right:auto;width:auto;max-width:94%;transform:translateX(-50%);white-space:normal;text-align:center;padding:3px 10px;font-size:clamp(15px,4.2vw,19px);line-height:1.1;letter-spacing:.02em}
.dj-battle.is-playing .dj-versus>.dj-battle-message.is-no-damage{width:min(94%,460px);font-size:clamp(10px,2.8vw,12px);line-height:1.4}
.dj-battle.is-playing .dj-battle-message b{font-size:1.1em}
.dj-battle.is-playing .dj-now-playing{top:auto;bottom:6px;max-width:94%;white-space:normal;text-align:center;font-size:clamp(14px,3.8vw,17px);line-height:1.1;padding:2px 8px}
.dj-battle.is-playing .dj-versus-mark{width:clamp(30px,9vw,44px);height:clamp(30px,9vw,44px);font-size:clamp(9px,2.6vw,13px);border-width:2px}
.dj-battle.is-playing .dj-fighter{height:80%}
/* track panel */
.dj-battle.is-playing .arcade-song-dock{grid-row:4;display:flex;flex-direction:column;height:auto;min-height:0;padding:6px 10px 10px;border-top-width:3px;overflow:visible}
.dj-battle.is-playing .arcade-song-dock::before,.dj-battle.is-playing .arcade-song-dock::after{display:none}
.dj-battle.is-playing .arcade-song-heading{height:auto;min-height:18px;margin:0 0 6px;justify-content:space-between;gap:8px}
.dj-battle.is-playing .arcade-song-heading small{font-size:8px;line-height:1.2}
.dj-battle.is-playing .arcade-song-heading>div:first-child>b{font-size:9px;line-height:1.2}
.dj-battle.is-playing .arcade-song-heading .dj-audio-note{display:none}
.dj-battle.is-playing .arcade-track-pager{font-size:8px}
.dj-battle.is-playing .dj-song-grid{flex:1 1 auto;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(62px,112px);align-content:center;gap:8px}
.dj-battle.is-playing .dj-song{height:auto;min-height:62px;display:grid;grid-template-columns:clamp(28px,8vw,44px) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:8px;row-gap:2px;align-items:center;padding:6px 8px;border-width:2px}
.dj-battle.is-playing .dj-song-number{grid-column:1/-1;font-size:8px;line-height:1.1}
.dj-battle.is-playing .dj-vinyl{grid-column:1;grid-row:2;width:clamp(28px,8vw,44px);height:clamp(28px,8vw,44px);flex:none}
.dj-battle.is-playing .dj-song-info{grid-column:2;grid-row:2;align-self:center;min-width:0}
.dj-battle.is-playing .dj-song-info b{font-size:clamp(16px,4.4vw,19px);line-height:1;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.dj-battle.is-playing .dj-song-info small{font-size:clamp(14px,3.8vw,16px);line-height:1;margin-top:2px}
.dj-battle.is-playing .dj-song-pick{display:none}
/* landscape (any phone or window wider than tall): arena beside the 2x2 track panel */
@media (orientation:landscape){
  .dj-battle.is-playing #dj-battle-screen{grid-template-columns:minmax(0,1fr) clamp(250px,44vw,440px);grid-template-rows:auto auto minmax(0,1fr)}
  .dj-battle.is-playing .arcade-hud{grid-column:1/-1;grid-row:1;padding:3px 10px 3px 68px}
  .dj-battle.is-playing .arcade-face{--face:clamp(34px,10dvh,52px)}
  .dj-battle.is-playing .arcade-score-row{grid-column:1;grid-row:2;min-height:0;padding:2px 12px 2px 62px}
  .dj-battle.is-playing .dj-arena-stage{grid-column:1;grid-row:3;aspect-ratio:auto;max-height:none;height:100%}
  .dj-battle.is-playing .dj-arena-stage .dj-versus{width:100%;height:100%;aspect-ratio:auto}
  @supports (width:1cqw){
    .dj-battle.is-playing .dj-arena-stage .dj-versus{width:min(100cqw,calc(100cqh * 16 / 9));height:auto;aspect-ratio:16/9}
  }
  .dj-battle.is-playing .arcade-song-dock{grid-column:2;grid-row:2/4;border-top-width:0;border-left:3px solid #eaaa39;padding:6px 8px}
  .dj-battle.is-playing .dj-song-grid{grid-auto-rows:minmax(54px,1fr);align-content:stretch}
  .dj-battle.is-playing .dj-song{min-height:54px}
  .dj-battle.is-playing .dj-versus>.dj-battle-message{font-size:clamp(15px,1.5vw + 6px,19px)}
  .dj-battle.is-playing .dj-song-info b{font-size:clamp(16px,1.4vw + 7px,19px)}
  .dj-battle.is-playing .dj-song-info small{font-size:clamp(14px,1.2vw + 6px,16px)}
  .dj-battle.is-playing .arcade-round{font-size:clamp(9px,1.2vw + 3px,14px)}
  .dj-battle.is-playing .arcade-score,.dj-battle.is-playing .arcade-combo{font-size:clamp(9px,1vw + 3px,12px);padding:3px 8px}
  .dj-battle.is-playing .arcade-hud-info>b{font-size:clamp(17px,1.6vw + 6px,22px)}
  .dj-battle.is-playing .dj-vinyl,.dj-battle.is-playing .dj-song{--v:1}
  .dj-battle.is-playing .dj-song{grid-template-columns:clamp(26px,3.4vw,42px) minmax(0,1fr)}
  .dj-battle.is-playing .dj-vinyl{width:clamp(26px,3.4vw,42px);height:clamp(26px,3.4vw,42px)}
}
/* short landscape (phone with browser bars, or SE): trim chrome, never the text */
@media (orientation:landscape) and (max-height:500px){
  .dj-battle.is-playing .arcade-hud-info>small,.dj-battle.is-playing .arcade-song-heading>div:first-child>b,.dj-battle.is-playing .arcade-track-pager{display:none}
  .dj-battle.is-playing .arcade-song-heading{min-height:0;margin-bottom:4px}
  .dj-battle.is-playing .arcade-song-dock{padding:4px 8px 6px}
  .dj-battle.is-playing .dj-song-grid{gap:6px}
  .dj-battle.is-playing .dj-song{padding:4px 7px;row-gap:0}
  .dj-battle.is-playing .dj-song-number{font-size:7px}
  .dj-battle.is-playing .arcade-hud .dj-health{height:8px}
}
@media (orientation:landscape) and (max-height:340px){
  .dj-battle.is-playing .dj-versus>.dj-battle-message{top:3px;padding:2px 8px;font-size:15px}
  .dj-battle.is-playing .dj-now-playing{bottom:3px;font-size:14px}
  .dj-battle.is-playing .dj-versus-mark{width:28px;height:28px;font-size:9px}
}
@media (prefers-reduced-motion:reduce){.dj-battle.is-playing .dj-song:hover:not(:disabled){transform:none}}
/* intro caption text: wrap instead of clipping on narrow phones, and stay legible */
.dj-battle.is-playing .dj-fight-intro-location,.dj-battle.is-playing .dj-fight-intro-style{white-space:normal;width:min(94%,900px);font-size:clamp(9px,2.5vw,11px);line-height:1.5}
.dj-battle.is-playing .dj-fight-intro-ready{font-size:clamp(9px,2.6vw,12px);bottom:max(6px,env(safe-area-inset-bottom,0px))}
.dj-battle.is-playing .dj-fight-intro-style{bottom:calc(max(6px,env(safe-area-inset-bottom,0px)) + 20px)}
.dj-battle.is-playing .dj-fight-intro-location{bottom:calc(max(6px,env(safe-area-inset-bottom,0px)) + 20px + 3em);top:auto}
@media (orientation:landscape) and (max-height:500px){
  .dj-battle.is-playing .dj-fight-intro-location{bottom:auto;top:30px}
  .dj-battle.is-playing .dj-fight-intro-style{bottom:calc(max(6px,env(safe-area-inset-bottom,0px)) + 18px)}
}
/* now-playing: two lines at most (one on short landscape) so it never swallows the fighters */
.dj-battle.is-playing .dj-now-playing{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.dj-battle.is-playing .dj-now-playing[hidden]{display:none}
@media (orientation:landscape) and (max-height:500px){.dj-battle.is-playing .dj-now-playing{-webkit-line-clamp:1;white-space:normal;max-width:90%}}
