/* Shootaround — "Arena Night".
   Jumbotron black so headshots and team logos carry the colour, orange
   shot-clock LEDs for every number that matters, broadcast type for labels,
   and one strip of maple hardwood under the category banner. */

:root {
  --bg: #08080b;
  --bg2: #0e0e13;
  --panel: #14141b;
  --panel2: #1b1b24;
  --cell: #111117;
  --line: #24242e;
  --line2: #33333f;
  --text: #f4f3ef;
  --muted: #9a99a6;
  --dim: #5d5c68;

  --led: #ffb000;          /* shot-clock amber: scores, timers */
  --accent: #ff7a00;       /* arena orange: "on the clock", primary buttons */
  --accent2: #ff9a3c;
  --cyan: #19d3ff;
  --good: #3ddc84;
  --bad: #ff4a4a;
  --gold: #ffcf40;

  --maple: #d6a160;
  --maple2: #c58e4f;

  /* roster slot colours — saturated so they read on black */
  --PG: #ff4a4a; --SG: #3ddc84; --SF: #2f9bff; --PF: #ff9a2a;
  --C: #b06bff;  --G: #ff4fa3;  --F: #1fd1c1;  --UTIL: #8c8c99;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --digits: "Teko", "Bebas Neue", sans-serif;          /* numbers: scores, clocks, codes */
  --label: "Barlow Condensed", "Inter", sans-serif;     /* small caps labels, tags, ticker */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(255, 122, 0, .10), transparent 70%) fixed,
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent2); text-decoration: none; }
[hidden] { display: none !important; }
.led { font-family: var(--digits); color: var(--led); letter-spacing: .5px; }

/* ------------------------------------------------------------ top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 11, .9); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-family: var(--display); font-size: 26px; letter-spacing: 1.5px; color: var(--text); display: flex; align-items: center; gap: 9px; line-height: 1; }
.brand span.word em { font-style: normal; color: var(--accent); }
.brand em { font-style: normal; color: var(--accent); }
.brand .ball { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; box-shadow: inset -3px -3px 0 rgba(0,0,0,.25); flex: none; }
.brand .ball::before, .brand .ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.55); }
.brand .ball::before { clip-path: inset(0 48% 0 48%); }
.brand .ball::after { clip-path: inset(48% 0 48% 0); }
.top nav { display: flex; gap: 4px; }
.top nav a { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: var(--muted); padding: 5px 12px; border-radius: 6px; }
.top nav a:hover { color: var(--text); }
.top nav a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 22px 16px 60px; }
.narrow { max-width: 620px; }

/* ------------------------------------------------------------ generic */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px; padding: 11px 20px;
  font-family: var(--display); font-size: 20px; letter-spacing: 1px; line-height: 1;
  background: var(--accent); color: #140700; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn.orange { background: var(--accent); color: #140700; }
.btn.wide { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 16px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.lbl { font-family: var(--display); font-size: 16px; letter-spacing: 1.4px; color: var(--muted); margin: 0 0 8px; }
.muted { color: var(--muted); }
.pill {
  display: inline-block; font-family: var(--label); font-size: 18px; color: var(--led);
  letter-spacing: 1px; text-transform: uppercase; line-height: 1;
}

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  border: 0; box-shadow: inset 0 0 0 1px var(--line2); background: var(--cell); color: var(--muted);
  padding: 8px 13px; border-radius: 7px; font-weight: 700; font-size: 13px;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(255, 122, 0, .14); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }

input.text {
  width: 100%; background: var(--cell); border: 1px solid var(--line2); color: var(--text);
  padding: 11px 12px; border-radius: 8px; font: inherit; outline: none;
}
input.text:focus { border-color: var(--accent); }

/* ------------------------------------------------------------ home */
.hero { text-align: center; padding: 26px 0 24px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 8vw, 84px); margin: 0; letter-spacing: 2px; line-height: .95; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 15px; line-height: 1.55; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.mode {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; color: var(--text); transition: border-color .15s, transform .15s;
}
.mode:hover { border-color: var(--accent); transform: translateY(-2px); }
.mode h3 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 1px; margin: 6px 0 6px; line-height: 1; }
.mode p { margin: 0; color: var(--muted); line-height: 1.5; }
.mode .tag { font-family: var(--label); font-size: 17px; letter-spacing: 1px; text-transform: uppercase; }
.mode .tag.d { color: var(--accent); } .mode .tag.l { color: var(--good); } .mode .tag.r { color: var(--cyan); }

/* ------------------------------------------------------------ setup */
.setup { display: grid; gap: 14px; }
.plrows { display: grid; gap: 8px; }
.plrow { display: flex; gap: 8px; align-items: center; }
.plrow .sw { width: 6px; height: 38px; border-radius: 3px; flex: none; }
.plrow .x { background: none; border: 0; color: var(--dim); font-size: 18px; padding: 0 6px; }
.plrow .x:hover { color: var(--bad); }

/* ------------------------------------------------------------ jumbotron header */
.boardhead { text-align: center; margin-bottom: 14px; }
.cat {
  display: inline-block; margin-top: 8px; max-width: 820px; min-width: min(520px, 100%);
  background: var(--panel); border: 1px solid var(--line2); border-radius: 12px 12px 0 0;
  padding: 14px 30px 12px; position: relative;
}
/* the maple floor the jumbotron hangs over */
.cat::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px; border-radius: 0 0 8px 8px;
  background: repeating-linear-gradient(90deg, var(--maple) 0 46px, var(--maple2) 46px 48px, #dcab6c 48px 94px, #bd8748 94px 96px);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55);
}
.cat h1 { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: 1px; line-height: 1; }
.cat .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; margin: 26px auto 16px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 5px; width: fit-content; max-width: 100%;
}
.tb {
  display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--text);
  padding: 6px 14px 6px 6px; border-radius: 7px; font-weight: 600; font-size: 13px;
}
.tb:hover { background: var(--panel2); }
.tb:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.tb .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; flex: none; font-weight: 800; }
.tb .ic.blue { background: var(--accent); color: #140700; }
.tb .ic.orange { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent2); color: var(--accent2); }
.tb .ic.gray { color: var(--muted); }
.tb .ic.teal { background: var(--panel2); color: var(--cyan); }
.clock { font-family: var(--digits); font-size: 30px; line-height: 1; color: var(--led); padding: 0 12px; min-width: 70px; text-align: center; }
.clock.low { color: var(--bad); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* ------------------------------------------------------------ the board */
.boardwrap { overflow-x: auto; padding-bottom: 6px; }
.board {
  display: grid; gap: 0; min-width: max-content; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2);
}
.board > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hcorner { background: var(--bg2); }
.hplayer {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel);
  box-shadow: inset 0 3px 0 var(--pc, var(--accent)); min-width: 230px;
}
.hplayer.turn { background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 26%, var(--panel)) 0%, var(--panel) 100%); }
.hplayer .av {
  width: 34px; height: 34px; border-radius: 8px; background: var(--pc); display: grid; place-items: center;
  font-family: var(--display); font-size: 22px; color: #0b0b0b; flex: none;
}
.hplayer .nm { font-family: var(--display); font-size: 21px; letter-spacing: .8px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.hplayer .sc { font-family: var(--digits); font-size: 30px; color: var(--led); line-height: 1; white-space: nowrap; }
.hplayer .sc small { display: none; }
.hplayer .tot { font-family: var(--font); font-size: 11px; color: var(--muted); letter-spacing: 0; margin-top: 3px; }

.rlabel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--panel); color: var(--rc); width: 64px;
  font-family: var(--display); font-size: 24px; letter-spacing: 1px; line-height: 1;
  box-shadow: inset 4px 0 0 var(--rc);
}
.rlabel .ck { font-family: var(--font); font-size: 11px; color: var(--good); }
.rlabel.pen { font-size: 16px; color: var(--bad); box-shadow: inset 4px 0 0 var(--bad); }

.cell {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 66px; background: var(--cell);
  position: relative;
}
.cell.wait { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.cell.now {
  box-shadow: inset 0 0 0 2px var(--accent); background: rgba(255, 122, 0, .07);
  color: var(--accent); cursor: pointer; font-family: var(--label); font-size: 22px; letter-spacing: 1px;
}
.cell.now .spin { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--accent); flex: none; animation: rot 6s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.cell.passed { color: var(--dim); font-style: italic; }
.cell.filled { cursor: pointer; }
.cell.filled:hover { background: #17171f; }
/* headshot with the team logo pinned to its corner */
.pic { position: relative; flex: none; width: 58px; height: 44px; }
.pic .head { width: 58px; height: 44px; border-radius: 8px; }
.pic .badge { position: absolute; right: -6px; bottom: -5px; width: 22px; height: 22px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; box-shadow: 0 0 0 2px var(--cell); }
.pic .badge.tx { display: grid; place-items: center; font-size: 6.5px; font-weight: 900; color: #222; }
.cell .who { flex: 1; min-width: 0; }
.cell .who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.cell .who span { font-size: 11.5px; color: var(--muted); }
.cell .pts { font-family: var(--digits); font-size: 26px; color: var(--led); line-height: 1; min-width: 52px; text-align: right; }
.cell .pts.ace { color: var(--gold); text-shadow: 0 0 10px rgba(255, 207, 64, .45); }
.cell.pencell { min-height: 40px; color: var(--bad); justify-content: flex-end; font-family: var(--digits); font-size: 22px; }
.cell.flash { animation: flash 1.1s ease-out; }
@keyframes flash { from { background: rgba(255, 176, 0, .30); } to { background: var(--cell); } }

.logo { width: 28px; height: 28px; object-fit: contain; flex: none; }
.logo.tx { display: grid; place-items: center; font-size: 8px; font-weight: 800; color: var(--muted); background: var(--panel2); border-radius: 6px; }

.feed { margin: 16px auto 0; max-width: 760px; color: var(--muted); font-size: 13px; text-align: center; min-height: 18px; }

/* ------------------------------------------------------------ modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 40; display: none; }
.modal-bg.open { display: block; }
.modal {
  position: fixed; left: 50%; top: 7vh; transform: translateX(-50%); width: min(580px, calc(100vw - 24px));
  max-height: 86vh; display: none; flex-direction: column; z-index: 41;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  border-top: 3px solid var(--accent);
}
.modal.open { display: flex; }
.modal.big { width: min(840px, calc(100vw - 24px)); }
.mhead { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.mhead h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 1px; line-height: 1.05; display: flex; align-items: center; gap: 8px; }
.mhead .q { color: var(--muted); font-size: 13px; margin-top: 5px; }
.mbody { padding: 12px 18px 18px; overflow-y: auto; }
.mfoot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.mclose { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: var(--muted); font-size: 22px; }

.results { display: grid; gap: 4px; margin-top: 10px; }
.res {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--cell); border: 1px solid transparent; border-radius: 9px; padding: 6px 10px;
}
.res:hover:not(:disabled) { border-color: var(--accent); }
.res:disabled { opacity: .4; cursor: not-allowed; }
.res .nm { flex: 1; min-width: 0; font-weight: 600; }
.res .nm small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.res .yr { color: var(--muted); font-size: 12px; white-space: nowrap; }
.res .logo { width: 34px; height: 34px; }
.posb { font-family: var(--display); font-size: 17px; letter-spacing: .5px; padding: 2px 8px; border-radius: 5px; background: var(--panel2); color: var(--muted); min-width: 40px; text-align: center; }
.empty { color: var(--muted); text-align: center; padding: 22px 8px; }

.head { width: 52px; height: 39px; object-fit: cover; object-position: top; border-radius: 7px; background: var(--panel2); flex: none; }
.head.lg { width: 112px; height: 82px; border-radius: 10px; }
.head.wiki { object-position: 50% 18%; }
span.head { display: inline-block; background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Ccircle cx='20' cy='12' r='6' fill='%2333333f'/%3E%3Cpath d='M8 30c1-7 6-10 12-10s11 3 12 10z' fill='%2333333f'/%3E%3C/svg%3E") center/contain no-repeat; }

/* stat line card */
.statcard { display: flex; gap: 14px; align-items: center; }
.statcard h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: 1px; line-height: 1; }
.statcard .m { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.statgrid div { background: var(--cell); border-radius: 8px; padding: 8px; text-align: center; }
.statgrid b { display: block; font-family: var(--digits); font-weight: 400; font-size: 28px; color: var(--led); line-height: 1; }
.statgrid span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.fbreak { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.fbreak b { font-family: var(--digits); font-weight: 400; font-size: 22px; color: var(--led); }

/* results */
.standings { display: grid; gap: 6px; }
.srow { display: flex; align-items: center; gap: 12px; background: var(--cell); border-radius: 10px; padding: 10px 12px; }
.srow .rk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 20px; background: var(--panel2); }
.srow .rk.g { background: var(--gold); color: #2b2000; }
.srow .sw { width: 6px; height: 30px; border-radius: 3px; }
.srow .nm { flex: 1; font-family: var(--display); font-size: 22px; letter-spacing: .8px; }
.srow .pt { font-family: var(--digits); font-size: 32px; color: var(--led); line-height: 1; }
.srow .pt small { display: none; }
.best { display: grid; gap: 4px; margin-top: 6px; }
.brow { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 5px 8px; background: var(--cell); border-radius: 8px; }
.brow .slot { font-family: var(--display); font-size: 17px; padding: 2px 6px; border-radius: 5px; min-width: 44px; text-align: center; color: #0b0b0b; }
.brow .nm { flex: 1; font-weight: 600; }
.brow .nm small { color: var(--muted); font-weight: 500; }
.brow .pt { font-family: var(--digits); font-size: 22px; color: var(--led); }
.brow.got { box-shadow: inset 0 0 0 1px var(--good); }

.howto { line-height: 1.6; color: #d9d8d2; }
.howto h4 { margin: 16px 0 4px; font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: 1px; color: var(--accent2); }
.howto table { border-collapse: collapse; margin-top: 6px; }
.howto td { padding: 2px 16px 2px 0; }
.howto td:last-child { font-family: var(--digits); font-size: 20px; color: var(--led); text-align: right; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--panel2); border: 1px solid var(--line2); padding: 11px 18px; border-radius: 10px; font-weight: 700;
  transition: all .2s; z-index: 60; max-width: calc(100vw - 30px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--bad); color: #ffc4c4; }
.toast.good { border-color: var(--led); color: #ffe2a3; }

/* ------------------------------------------------------------ list mode */
.listhead { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.counter { font-family: var(--digits); font-size: 40px; color: var(--led); line-height: 1; }
.counter small { color: var(--muted); font-size: 26px; }
.lsearch { position: relative; max-width: 560px; margin: 0 auto 18px; }
.lsearch .results { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 6px; max-height: 340px; overflow-y: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 146px; justify-content: center;
}
.tile .v { font-family: var(--digits); font-size: 26px; color: var(--led); line-height: 1; }
.tile .n { font-weight: 700; font-size: 13px; }
.tile .s { font-size: 11px; color: var(--muted); }
.tile img.tl { width: 50px; height: 50px; object-fit: contain; opacity: .9; }
.tile.found { border-color: rgba(61, 220, 132, .5); background: linear-gradient(180deg, rgba(61,220,132,.10), var(--panel)); }
.tile.missed { border-color: rgba(255, 74, 74, .45); }
.tile.found .head, .tile.missed .head { width: 80px; height: 60px; }
.tile.pop { animation: pop .45s ease-out; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

@media (max-width: 640px) {
  .wrap { padding: 14px 10px 50px; }
  .hplayer { min-width: 180px; padding: 9px; }
  .cell .who b { max-width: 84px; }
  .pic, .pic .head { width: 46px; height: 35px; }
  .tb { padding: 5px 9px 5px 5px; font-size: 12px; }
  .tb .ic { width: 24px; height: 24px; }
  .rlabel { width: 50px; font-size: 20px; }
  .modal { top: 3vh; max-height: 94vh; }
  .cat { padding: 12px 16px 10px; }
}

/* ------------------------------------------------------------ rooms */
.banner-top { position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: var(--bad); color: #fff; text-align: center; padding: 6px; font-weight: 700; font-size: 13px; }
.codebig { font-family: var(--digits) !important; color: var(--led); font-size: 64px !important; letter-spacing: 10px !important; }
.plrow.lob { background: var(--cell); border-radius: 8px; padding: 6px 10px 6px 6px; }
.plrow.lob .pn { flex: 1; font-family: var(--display); font-size: 21px; letter-spacing: .8px; }
.you { font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #140700; background: var(--led); padding: 2px 5px; border-radius: 4px; vertical-align: middle; }
.hosttag { font-family: var(--font); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); padding: 1px 5px; border-radius: 4px; vertical-align: middle; margin-left: 4px; }
.waitbar { text-align: center; padding: 14px; border-radius: 10px; background: var(--panel); border: 1px dashed var(--line2); color: var(--muted); }
.waitbar b { color: var(--text); }
.roomcode { display: grid; place-items: center; height: 100%; font-family: var(--digits); color: var(--led); font-size: 18px; letter-spacing: 2px; }
.seg.ro button { cursor: default; }
.seg.ro button:not(.on) { opacity: .5; }
.hplayer.away { opacity: .55; }
.cell.now.mine { background: rgba(255, 122, 0, .16); }
.cell.bad { box-shadow: inset 0 0 0 2px var(--bad); }

.roomlist { display: grid; gap: 6px; }
.roomrow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.roomrow:hover { border-color: var(--accent); }
.roomrow .rc { font-family: var(--digits); font-size: 28px; color: var(--led); letter-spacing: 3px; }
.roomrow .rb { flex: 1; min-width: 0; }
.roomrow .rn { display: block; font-family: var(--display); font-size: 21px; letter-spacing: .8px; }
.roomrow .rm { font-size: 12px; color: var(--muted); }
.roomrow .go { font-family: var(--display); font-size: 18px; color: var(--accent2); letter-spacing: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkrow { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
.checkrow input { accent-color: var(--accent); width: 16px; height: 16px; }
input.code { font-family: var(--digits); font-size: 34px; letter-spacing: 12px; text-transform: uppercase; text-align: center; color: var(--led); }
.foot { color: var(--dim); font-size: 12.5px; text-align: center; margin-top: 28px; line-height: 1.6; }

/* ------------------------------------------------------------ dart */
.dartscore { display: flex; align-items: center; justify-content: center; gap: 34px; margin: 26px 0 16px; flex-wrap: wrap; }
.dartscore > div:not(.darts) { text-align: center; }
.dartscore .lbl { display: block; margin: 0; }
.dartscore .big { font-family: var(--digits); font-size: 64px; color: var(--led); line-height: .9; }
.dartscore .big.neg { color: var(--bad); }
.dartscore .big.dim { color: var(--muted); font-size: 40px; }
.darts { display: flex; gap: 8px; }
.dart { width: 14px; height: 38px; border-radius: 3px; background: var(--accent); clip-path: polygon(50% 0, 100% 22%, 70% 22%, 70% 100%, 30% 100%, 30% 22%, 0 22%); }
.dart.used { background: var(--line2); }
.throws { display: grid; gap: 6px; max-width: 560px; margin: 0 auto; }
.throw { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.throw .tn { font-family: var(--display); font-size: 22px; color: var(--muted); width: 18px; }
.throw .nm { flex: 1; font-weight: 700; }
.throw .nm small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.throw .tv { font-family: var(--digits); font-size: 30px; color: var(--led); }
.throw.pop { animation: pop .45s ease-out; }

/* ------------------------------------------------------------ imposter */
.itiles { max-width: 980px; margin: 0 auto; }
.itile { cursor: pointer; color: var(--text); font: inherit; }
.itile:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.itile:disabled { cursor: default; }
.itile .pic, .itile .pic .head { width: 84px; height: 62px; }
.itile .pic .badge { width: 26px; height: 26px; }
.tile.imp { border-color: var(--bad); background: linear-gradient(180deg, rgba(255,74,74,.16), var(--panel)); }
.tile .tag { font-family: var(--label); font-size: 18px; color: var(--bad); letter-spacing: 2px; line-height: 1; }
.tile.missed { opacity: .65; }
.throw .tv.bust { color: var(--bad); font-size: 26px; }
.throw .tv.bust small { font-size: 18px; color: var(--muted); text-decoration: line-through; }
