@font-face {
  font-family: 'Orbitron';
  font-weight: 700;
  src: url('../fonts/orbitron-v35-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-weight: 900;
  src: url('../fonts/orbitron-v35-latin-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-weight: 500;
  src: url('../fonts/rajdhani-v17-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-weight: 600;
  src: url('../fonts/rajdhani-v17-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-weight: 700;
  src: url('../fonts/rajdhani-v17-latin-700.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #050310;
  color: #eae6ff;
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
#bg-canvas { position: fixed; inset: 0; z-index: 0; }
/* CRT scanlines over everything */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.14) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 99;
}
.screen {
  position: fixed; inset: 0; z-index: 1;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center;
}
.screen.active { display: flex; }

#rebrand-note {
  display: flex; align-items: center; gap: 12px;
  background: #171034ee; border: 1px solid #ffe600aa;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 8px 16px; font-size: 14px; color: #eae6ff;
  box-shadow: 0 0 22px #ffe60033; margin-bottom: 4px;
}
#rebrand-note b { color: #ffe600; }
.logo {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(44px, 8.5vw, 82px); font-weight: 900; letter-spacing: 5px; color: #fff;
  text-shadow: 0 0 34px #ff2ec488, 0 0 70px #9d4dff44;
}
.logo span {
  background: linear-gradient(90deg, #ff2ec4, #ffe600, #00f0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* RGB-split glitch slices */
.logo::before, .logo::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0;
}
.logo::before { color: #00f0ff; animation: glitchA 3.7s infinite; }
.logo::after  { color: #ff2ec4; animation: glitchB 3.7s infinite; }
@keyframes glitchA {
  0%, 89%, 96%, 100% { opacity: 0; }
  90% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); }
  93% { opacity: .8; transform: translate(2px, -1px);  clip-path: inset(60% 0 12% 0); }
}
@keyframes glitchB {
  0%, 89%, 96%, 100% { opacity: 0; }
  91% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(40% 0 30% 0); }
  94% { opacity: .8; transform: translate(-2px, 1px); clip-path: inset(5% 0 75% 0); }
}
.tagline {
  color: #9a8fd0; margin-top: -12px; letter-spacing: 6px;
  text-transform: uppercase; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .15s;
}
a.tagline:hover { color: #00f0ff; text-shadow: 0 0 12px #00f0ff88; }
.copyright { color: #55497e; font-size: 11px; letter-spacing: 2px; margin-top: 2px; }

.panel {
  background: linear-gradient(180deg, #171034e6, #100a26e6);
  border: 1px solid #4a2a9e;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  padding: 20px 24px;
  min-width: 340px; max-width: 520px; width: 92%;
  box-shadow: 0 0 44px #9d4dff33;
  display: flex; flex-direction: column; gap: 12px;
  backdrop-filter: blur(3px);
}
.panel h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 4px;
  color: #8f83c9; text-align: left; font-weight: 700;
}

button {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  color: #eae6ff;
  background: #1d1442;
  border: 1px solid #4a3a96;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  border-radius: 0;
  padding: 10px 18px; cursor: pointer;
  transition: all .15s;
}
button:hover { border-color: #ff2ec4; box-shadow: 0 0 16px #ff2ec455; background: #241852; }
button.sel {
  background: #35176b; border-color: #00f0ff;
  box-shadow: 0 0 16px #00f0ff55, inset 0 0 18px #00f0ff22;
}
button.cta {
  background: linear-gradient(90deg, #ff2ec4, #9d4dff);
  border: none; font-weight: 700; padding: 13px 40px; font-size: 19px;
  letter-spacing: 3px; text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
button.cta:hover { box-shadow: 0 0 28px #ff2ec488; }
button.cta:disabled { opacity: .45; cursor: default; box-shadow: none; }
button.ghost { background: transparent; }
button.gfocus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px #00f0ff, 0 0 22px #00f0ff88;
  background: #241852;
}
.seg { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.seg button { text-transform: uppercase; letter-spacing: 2px; }
button.expert { color: #ff3355; border-color: #ff335588; }
button.expert:hover { border-color: #ff3355; box-shadow: 0 0 16px #ff335566; }
button.expert.sel {
  background: #4a0f1e; border-color: #ff3355; color: #ff5c77;
  box-shadow: 0 0 18px #ff335577, inset 0 0 18px #ff335522;
}
button.nomercy { color: #d8c8ff; border-color: #0006; background: #0d0716; }
button.nomercy:hover { border-color: #b00020; box-shadow: 0 0 18px #b0002088; }
button.nomercy.sel {
  background: #1a020a; border-color: #b00020; color: #ff2038;
  box-shadow: 0 0 24px #b00020aa, inset 0 0 24px #b0002033;
  text-shadow: 0 0 8px #ff2038;
}

.song-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 34vh; overflow-y: auto;
  padding-right: 6px; text-align: left;
}
.song-list::-webkit-scrollbar { width: 8px; }
.song-list::-webkit-scrollbar-track { background: #140d30; }
.song-list::-webkit-scrollbar-thumb { background: #4a2a9e; }
.song-list::-webkit-scrollbar-thumb:hover { background: #ff2ec4; }
.song-list button { display: flex; justify-content: space-between; gap: 12px; flex-shrink: 0; font-size: 17px; }
.song-list .artist { color: #9a8fd0; font-size: 13px; }
.song-meta { display: flex; align-items: center; gap: 10px; }
.grade { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 900; }
.grade.g-S { color: #ffe600; text-shadow: 0 0 10px #ffe600aa; }
.grade.g-A { color: #39ff14; text-shadow: 0 0 8px #39ff1466; }
.grade.g-B { color: #00f0ff; }
.grade.g-C, .grade.g-D { color: #9a8fd0; }
.grade.g-F { color: #ff3355; }
.grade.ap { color: #fff; text-shadow: 0 0 6px #ffe600, 0 0 14px #ff2ec4; }
#res-chips { display: flex; gap: 10px; min-height: 26px; }
.chip {
  font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; padding: 4px 14px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  animation: slam .45s cubic-bezier(.2, 1.6, .4, 1);
}
.chip.fc { background: #4a2a0a; color: #ffe600; box-shadow: 0 0 18px #ffe60055; }
.chip.ap { background: #3a0a3a; color: #fff; text-shadow: 0 0 8px #ff2ec4; box-shadow: 0 0 22px #ff2ec488; }
.chip.best { background: #0a3a2a; color: #39ff14; box-shadow: 0 0 16px #39ff1455; }
.rating { font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; }
.rating.r-none { color: #5a5090; }
.rating.r-low  { color: #39ff14; text-shadow: 0 0 8px #39ff1455; }
.rating.r-mid  { color: #ffe600; text-shadow: 0 0 8px #ffe60055; }
.rating.r-high { color: #ff3355; text-shadow: 0 0 8px #ff335555; }
.rating.r-max  { color: #b967ff; text-shadow: 0 0 8px #b967ff77; }
button.mini {
  font-size: 11px; padding: 3px 10px; margin-left: 10px;
  letter-spacing: 1px; text-transform: none; vertical-align: middle;
}
.album-head {
  font-size: 12px; text-transform: uppercase; letter-spacing: 4px; font-weight: 700;
  color: #00f0ff; margin: 8px 0 2px 2px;
  text-shadow: 0 0 8px #00f0ff66;
}
.album-head:first-child { margin-top: 0; }

#song-info, #res-song {
  display: flex; align-items: center; gap: 12px;
  background: #140d30aa; border: 1px solid #3a2a7a;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 10px 14px; text-align: left;
}
#res-song { min-width: 320px; }
#si-art, #np-art, #res-art {
  width: 52px; height: 52px; object-fit: cover; flex-shrink: 0;
  border: 1px solid #4a3a96;
}
#si-art.noart, #np-art.noart, #res-art.noart {
  background: linear-gradient(135deg, #ff2ec4, #9d4dff, #00f0ff);
}
.si-text { flex: 1; min-width: 0; }
#si-title, #res-title { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#si-album, #res-album { color: #9a8fd0; font-size: 13px; letter-spacing: 1px; }
#si-spotify, #np-spotify, #res-spotify {
  color: #1ed760; text-decoration: none; font-weight: 700; font-size: 13px;
  letter-spacing: 1px; white-space: nowrap;
  text-shadow: 0 0 10px #1ed76055;
}
#si-spotify:hover, #np-spotify:hover, #res-spotify:hover { text-shadow: 0 0 14px #1ed760; }
#res-grade.failed {
  background: linear-gradient(180deg, #ff5c77, #a30b25);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 24px #ff335566);
}

#now-playing {
  position: absolute; right: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  background: #0d0722cc; border: 1px solid #3a2a7a;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 8px 12px; text-align: left;
  backdrop-filter: blur(3px);
}
#now-playing #np-art { width: 42px; height: 42px; }
.np-text { min-width: 0; }
#np-title { font-weight: 700; font-size: 14px; color: #eae6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

#bind-rows { display: flex; flex-direction: column; gap: 6px; }
.bind-row { display: flex; align-items: center; gap: 8px; }
.bind-row span { flex: 1; text-align: left; font-size: 15px; color: #b9aef0; }
.bind-btn { width: 96px; padding: 8px 4px; font-family: 'Orbitron', sans-serif; font-size: 12px; }
.bind-btn.capturing { border-color: #ffe600; color: #ffe600; box-shadow: 0 0 16px #ffe60066; animation: logoflicker 1s infinite; }
input[type="range"] { width: 130px; accent-color: #ff2ec4; cursor: pointer; }
.vol-label { width: 44px; text-align: right; font-family: 'Orbitron', sans-serif; font-size: 12px; color: #9a8fd0; }
.pad-debug { color: #00f0ff; font-size: 13px; text-align: right; }

.row { display: flex; gap: 12px; justify-content: center; margin-top: 6px; }
.hint { color: #7a6fb0; font-size: 14px; }
#pad-status { color: #00f0ff; min-height: 18px; text-shadow: 0 0 8px #00f0ff66; }
#offset-label { color: #9a8fd0; font-size: 13px; }

#cal-pad {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2b1663, #1d1442);
  border: 2px solid #ff2ec4;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: 5px;
  cursor: pointer; box-shadow: 0 0 34px #ff2ec455; transition: transform .05s;
}
#cal-pad.hit { transform: scale(.94); background: #35176b; box-shadow: 0 0 50px #00f0ff77; border-color: #00f0ff; }
#cal-status { color: #9a8fd0; min-height: 20px; }

#screen-play { padding: 0; }
#game-canvas { display: block; width: 100vw; height: 100vh; }
.hidden { display: none !important; }
#mp-players, #mp-results { display: flex; flex-direction: column; gap: 5px; text-align: left; }
#mp-results { max-height: 32vh; overflow-y: auto; padding-right: 4px; }
#mp-players { max-height: 18vh; overflow-y: auto; }
/* account chip: fixed top-right, present on every screen */
/* sits in the page flow under the logo — never floats over it */
#acct-bar {
  position: static; z-index: 40;
  display: flex; gap: 8px; align-items: center; justify-content: center;
  flex-wrap: wrap; margin: -4px auto 6px;
}
.acct-chip {
  display: flex; align-items: center; gap: 10px;
  background: #171034dd; border: 1px solid #4a3a96;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 7px 14px; font-size: 14px; color: #eae6ff;
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
}
button.acct-chip { cursor: pointer; letter-spacing: 1px; }
button.acct-chip:hover { border-color: #00f0ff; box-shadow: 0 0 14px #00f0ff44; }
.acct-chip.signed { border-color: #00f0ff; box-shadow: 0 0 14px #00f0ff33; }
#acct-name { color: #00f0ff; font-weight: 700; text-shadow: 0 0 10px #00f0ff55; }
#acct-stats { color: #8f83c9; font-size: 12px; }
body.playing #acct-bar { display: none; }
/* broadcast rig: hide every bit of chrome, the arena fills the frame */
body.kiosk #acct-bar, body.kiosk #now-playing { display: none; }
body.kiosk #screen-lobby .panel { opacity: .9; }
#btn-admin { border-color: #ffe600; color: #ffe600; }
#btn-admin:hover { box-shadow: 0 0 14px #ffe60055; }

/* streamer mode toggle — top of the multiplayer screen */
#streamer-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 4px;
  background: #140d30aa; border: 1px solid #3a2a7a;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all .2s;
}
#streamer-row.on { border-color: #53fc18; box-shadow: 0 0 18px #53fc1833; background: #10240faa; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }
.switch .track {
  width: 42px; height: 22px; background: #241a4f; border: 1px solid #4a3a96;
  border-radius: 11px; position: relative; transition: all .18s;
}
.switch .knob {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: #8f83c9; border-radius: 50%; transition: all .18s;
}
.switch input:checked + .track { background: #14370c; border-color: #53fc18; }
.switch input:checked + .track .knob { left: 22px; background: #53fc18; box-shadow: 0 0 10px #53fc18; }
.switch-label { font-weight: 700; font-size: 15px; white-space: nowrap; }
#streamer-row.on .switch-label { color: #53fc18; }
#streamer-note { flex: 1; text-align: left; }
#acct-modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: #050310cc; backdrop-filter: blur(4px);
}
.acct-panel { max-width: 430px; }
#acct-name { cursor: pointer; }
#acct-name:hover { text-decoration: underline; }
#acct-badge { font-size: 15px; }
.acct-sep { display: flex; align-items: center; gap: 10px; color: #55497e; font-size: 12px; margin: 4px 0; }
.acct-sep::before, .acct-sep::after { content: ''; flex: 1; height: 1px; background: #3a2a7a; }
#guest-name {
  font: inherit; color: #eae6ff; background: #140d30; border: 1px solid #4a3a96;
  padding: 8px 12px; flex: 1; min-width: 0;
}
.prov-row { flex-wrap: wrap; }
button.prov[data-prov="tiktok"] { border-color: #00f2ea; color: #00f2ea; }
button.prov.linked { background: #14370c; box-shadow: 0 0 12px #53fc1844; }

#adm-rtmp-url, #adm-rtmp-key, #adm-song, #adm-say, #adm-kick {
  font: inherit; color: #eae6ff; background: #140d30; border: 1px solid #4a3a96;
  padding: 8px 12px; flex: 1; min-width: 0;
}

/* profile */
.prof-panel { max-width: 720px; max-height: 82vh; overflow-y: auto; }
.prof-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.prof-stat {
  flex: 1 1 100px; background: #140d30aa; border: 1px solid #3a2a7a;
  padding: 10px; text-align: center;
}
.prof-stat b { display: block; font-family: 'Orbitron', sans-serif; font-size: 19px; color: #fff; }
.prof-stat span { font-size: 11px; color: #8f83c9; text-transform: uppercase; letter-spacing: 1px; }
.prof-list { display: flex; flex-direction: column; gap: 4px; max-height: 26vh; overflow-y: auto; }
.prof-row {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  background: #140d30aa; border: 1px solid #3a2a7a; padding: 6px 12px;
}
.pr-song { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-diff { color: #8f83c9; font-size: 11px; text-transform: uppercase; }
.pr-score { font-family: 'Orbitron', sans-serif; font-size: 12px; }
.pr-place { color: #ffe600; font-family: 'Orbitron', sans-serif; font-size: 12px; width: 62px; text-align: right; }
.acct-panel h2 { display: flex; justify-content: space-between; align-items: center; }
#acct-providers .row { margin-top: 2px; }

#screen-lobby .panel { max-width: 780px; }
#acct-in .bind-row, #acct-out .bind-row { gap: 10px; }
#acct-name { color: #00f0ff; font-weight: 700; text-shadow: 0 0 10px #00f0ff55; flex: 0 0 auto; }
#acct-stats { flex: 1; text-align: left; }
#acct-user, #acct-pass {
  font: inherit; color: #eae6ff; background: #140d30; border: 1px solid #4a3a96;
  padding: 8px 12px; flex: 1; min-width: 0;
}
button.prov { font-size: 13px; }
button.prov[data-prov="kick"] { border-color: #53fc18; color: #53fc18; }
button.prov[data-prov="twitch"] { border-color: #9146ff; color: #b98cff; }
button.prov[data-prov="youtube"] { border-color: #ff0033; color: #ff5c77; }
#mp-columns { display: flex; gap: 24px; align-items: flex-start; text-align: left; }
.mp-col { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mp-col h2 { margin-bottom: 2px; }
.mp-col .seg { justify-content: flex-start; flex-wrap: wrap; }
button.wide { width: 100%; }
.mode-desc { color: #7a6fb0; font-size: 12.5px; line-height: 1.35; margin: -2px 0 6px; }
#mp-join-row { border-top: 1px solid #3a2a7a; padding-top: 12px; margin-top: 4px; }
@media (max-width: 720px) { #mp-columns { flex-direction: column; } }
#mp-song {
  font: inherit; color: #eae6ff; background: #140d30; border: 1px solid #4a3a96;
  padding: 9px 12px; width: 100%; cursor: pointer;
}
#mp-song optgroup { color: #00f0ff; background: #0d0722; }
#mp-song option { color: #eae6ff; background: #140d30; }
.mp-player { padding: 7px 12px; background: #140d30aa; border: 1px solid #3a2a7a; font-size: 15px; }
.mp-player.me { border-color: #00f0ff; }
.mp-player.first-place { border-color: #ffe600; color: #ffe600; text-shadow: 0 0 10px #ffe60066; }
#mp-lobby-code { color: #ffe600; font-family: 'Orbitron', sans-serif; letter-spacing: 4px; text-shadow: 0 0 12px #ffe60077; }
#mp-name, #mp-code {
  font: inherit; color: #eae6ff; background: #140d30; border: 1px solid #4a3a96;
  padding: 8px 12px; width: 160px;
}
#mp-code { width: 90px; font-family: 'Orbitron', sans-serif; letter-spacing: 3px; text-transform: uppercase; }
#bots-left, #bots-right {
  position: absolute; top: 0; height: 100vh; z-index: 2;
  pointer-events: none; display: none;
}
#bots-left { left: 0; }
#bots-right { right: 0; }
#mp-board {
  position: absolute; left: 14px; top: 60px; z-index: 4;
  display: flex; flex-direction: column; gap: 6px; width: 190px;
  pointer-events: none;
}
.mp-row {
  background: #0d0722bb; border: 1px solid #3a2a7a; padding: 5px 9px;
  font-size: 12px;
}
.mp-row.dead { opacity: .35; filter: grayscale(1); }
.mp-name { display: block; font-weight: 700; color: #b9aef0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-score { display: block; font-family: 'Orbitron', sans-serif; font-size: 11px; color: #fff; }
.mp-hp { height: 4px; background: #1c1240; margin-top: 3px; }
.mp-hp i { display: block; height: 100%; background: linear-gradient(90deg, #ff3355, #ffe600, #39ff14); }

#pause-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: #050310cc;
  backdrop-filter: blur(4px);
}
.pause-panel { max-width: 460px; text-align: center; }
.pause-panel h2 { text-align: center; }

#res-grade {
  font-family: 'Orbitron', sans-serif;
  font-size: 120px; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #ffe600, #ff2ec4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px #ff2ec466);
}
#res-grade.slam { animation: slam .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slam {
  from { transform: scale(2.6); opacity: 0; }
  60%  { transform: scale(.92); opacity: 1; }
  to   { transform: scale(1); }
}
#res-score { font-size: 26px; font-weight: 600; }
#res-judges { display: flex; gap: 24px; color: #9a8fd0; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
#res-board { display: flex; flex-direction: column; gap: 4px; min-width: 340px; max-height: 30vh; overflow-y: auto; }
#res-board:empty { display: none; }
.rb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 5px 14px; background: #140d30aa; border: 1px solid #3a2a7a;
  font-size: 14px; text-align: left;
}
.rb-row.me { border-color: #00f0ff; box-shadow: 0 0 12px #00f0ff44; }
.rb-row.first { border-color: #ffe600; }
.rb-rank { font-family: 'Orbitron', sans-serif; font-size: 12px; color: #9a8fd0; width: 36px; }
.rb-row.first .rb-rank { color: #ffe600; }
.rb-name { flex: 1; font-weight: 700; }
.rb-score { font-family: 'Orbitron', sans-serif; font-size: 12px; }
.rb-gap { color: #55497e; text-align: center; }
#res-graph {
  max-width: 92vw; border: 1px solid #3a2a7a;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
#res-judges b {
  color: #eae6ff; display: block; font-size: 26px;
  font-family: 'Orbitron', sans-serif; font-weight: 700;
  text-shadow: 0 0 10px #00f0ff66;
}
