/* Anton (SIL Open Font License, see /fonts/Anton-OFL-LICENSE.txt): a compressed bold gothic in the spirit of the show's lettering. */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/anton-latin-400-normal.woff2') format('woff2'), url('/fonts/anton-latin-400-normal.woff') format('woff'); }
/* Squada One (SIL Open Font License, see /fonts/SquadaOne-OFL-LICENSE.txt): squared, notched capitals used for the title and menu title bars. */
@font-face { font-family: 'Squada One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/squada-one-latin-400-normal.woff2') format('woff2'), url('/fonts/squada-one-latin-400-normal.woff') format('woff'); }
/* Saira Extra Condensed Black (SIL Open Font License, see /fonts/SairaExtraCondensed-OFL-LICENSE.txt): tall, rounded-square capitals for the title and menu title bars. */
@font-face { font-family: 'Saira XC'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/saira-extra-condensed-latin-800-normal.woff2') format('woff2'), url('/fonts/saira-extra-condensed-latin-800-normal.woff') format('woff'); }
@font-face { font-family: 'Saira XC'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('/fonts/saira-extra-condensed-latin-900-normal.woff2') format('woff2'), url('/fonts/saira-extra-condensed-latin-900-normal.woff') format('woff'); }
:root {
  --logo-font: 'Saira XC', 'Squada One', 'Anton', Impact, 'Haettenschweiler', sans-serif;
  --blue: #0a1fb8; --blue-d: #060f6b; --blue-l: #1a3cff; --gold: #ffcc33; --ink: #0b0f3a; --white: #fff;
  --green: #1fbf6a; --red: #e5484d; --panel: rgba(255,255,255,.08);
  --board-font: 'Anton', Impact, 'Haettenschweiler', 'Arial Narrow Bold', 'Franklin Gothic Heavy', sans-serif;
  --clue-font: 'Georgia', 'Times New Roman', serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; color: var(--white);
  /* deep-blue "starfield": a few tiny stars layered over the blue glow */
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.85), transparent 60%), radial-gradient(1px 1px at 27% 68%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(2px 2px at 41% 14%, rgba(255,230,190,.9), transparent 60%), radial-gradient(1px 1px at 56% 82%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 36%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1px 1px at 79% 74%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(2px 2px at 91% 18%, rgba(255,210,170,.85), transparent 60%), radial-gradient(1px 1px at 5% 88%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 34% 46%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1px 1px at 86% 52%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(circle at 50% 0%, #1a2fd6, #050a4a 70%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { min-height: 100vh; min-height: 100dvh; }
h1, h2, h3 { font-family: var(--board-font); letter-spacing: .04em; margin: .3em 0; font-weight: normal; }
/* Logo-style heading: gold gradient lettering with a dark extruded shadow. */
h1 { font-size: clamp(2rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: .05em; line-height: 1.05;
  color: var(--gold); background: linear-gradient(#fff6c2 0%, #ffd23f 45%, #e8a400 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 .045em 0 #6b4300) drop-shadow(0 .09em 0 #2a1900) drop-shadow(0 .14em .12em rgba(0,0,0,.55)); }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { h1 { background: none; -webkit-text-fill-color: currentColor; } }
/* The game's title: brushed-chrome lettering with a bronze bevel and a warm rim glow (home, splash, lobby). */
h1.logo { font-family: var(--logo-font); font-weight: 900; letter-spacing: .03em; line-height: .95; font-size: clamp(3.4rem, 12vw, 7.6rem);
  /* silver-to-steel-blue chrome fill (thickened with a same-colour stroke), thin bronze edge, warm rim glow */
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 20%, #dfe4ef 40%, #b4bdd2 49%, #8c98b6 53%, #b9c3da 68%, #eef1f8 86%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .03em #dde2ee; paint-order: stroke fill;
  filter: drop-shadow(.012em 0 0 #8a6a3a) drop-shadow(-.012em 0 0 #8a6a3a) drop-shadow(0 .012em 0 #8a6a3a) drop-shadow(0 -.012em 0 #8a6a3a)
          drop-shadow(0 .035em 0 #3a2a14) drop-shadow(-.07em 0 .07em rgba(255,150,40,.8)) drop-shadow(0 .1em .12em rgba(0,0,0,.6)); }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { h1.logo { background: none; -webkit-text-fill-color: #e8ebf3; } }
/* Menu "title bars": every card's first heading looks like a category header on the board. */
.card > h3:first-child, details.card > summary { text-transform: uppercase; letter-spacing: .06em; color: #fff; line-height: 1.1;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 8px rgba(0,0,0,.6);
  font-family: var(--logo-font); font-weight: 900; -webkit-text-stroke: .02em #000; paint-order: stroke fill;
  margin: -16px -16px 14px; padding: 9px 16px 7px; font-size: clamp(1.8rem, 3.8vw, 2.5rem); background: linear-gradient(#2142ff, #0a1fb8 70%, #08178f); border-bottom: 3px solid #000; border-radius: 13px 13px 0 0; }
details.card > summary { cursor: pointer; margin-bottom: 0; }
details.card[open] > summary { margin-bottom: 12px; }
.tabs button, .hostbar b, .btn.small { font-family: var(--logo-font); letter-spacing: .05em; text-transform: uppercase; font-weight: 400; font-size: 1.05rem; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); text-transform: uppercase; text-shadow: 2px 2px 0 #000; }
a { color: var(--gold); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 14px; }
.card { background: var(--panel); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 16px; margin: 12px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 0; min-width: 0; }
/* Rows of label-over-input fields: inputs line up on their bottom edge even when a label wraps, and fields wrap evenly on narrow screens. */
.row.fields { align-items: flex-end; row-gap: 8px; }
.row.fields > .grow { flex: 1 1 130px; }
/* Even grid for a block of same-sized number fields (4 across; 2 across on phones). */
.fieldgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; align-items: end; }
@media (max-width: 640px) { .fieldgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fieldgrid > div > label { display: flex; align-items: flex-end; min-height: 2.5em; margin: 0 0 4px; line-height: 1.15; }
.row.fields > div > label { display: flex; align-items: flex-end; min-height: 2.5em; margin: 0 0 4px; line-height: 1.15; }
.muted { opacity: .7; } .small { font-size: .85rem; } .center { text-align: center; } .gold { color: var(--gold); }
button, .btn, select, input, textarea { font: inherit; }
button, .btn { background: var(--gold); color: #1b1b1b; border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; min-height: 44px; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
button.good { background: var(--green); color: #fff; } button.bad { background: var(--red); color: #fff; }
button.small { padding: 6px 10px; min-height: 32px; font-size: .85rem; }
input, select, textarea { background: #fff; color: #111; border: 2px solid transparent; border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
label { display: block; font-size: .85rem; margin: 10px 0 4px; opacity: .85; }
label.check { display: flex; gap: 8px; align-items: center; } label.check input { width: auto; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.15); }
.err { background: #7a1519; padding: 10px 12px; border-radius: 10px; margin: 8px 0; } .okmsg { background: #0f5a33; padding: 10px 12px; border-radius: 10px; margin: 8px 0; }
.warn { background: #7a5a00; padding: 10px 12px; border-radius: 10px; margin: 8px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tabs button { background: rgba(255,255,255,.12); color: #fff; } .tabs button.on { background: var(--gold); color: #111; }
.acts { text-align: center; vertical-align: middle; } .acts button { margin: 2px; }
.pwbox { min-width: 0; } .pwbox > input { width: 100%; }
label.showpw { margin: 4px 0 0; font-size: .8rem; font-weight: 400; opacity: .85; cursor: pointer; text-transform: none; letter-spacing: 0; }
.version { text-align: center; font-size: .75rem; opacity: .55; padding: 18px 0 22px; letter-spacing: .04em; }
body:has(#splash) .version { position: fixed; left: 0; right: 0; bottom: 10px; z-index: 60; padding: 0; pointer-events: none; }
body:has(#musichdr) .musicbtn:not(.sfxbtn), body:has(#sfxbtn) .musicbtn:not(.sfxbtn) { display: none; }
.tvexit { position: fixed; left: 14px; top: 14px; z-index: 70; padding: 8px 14px; border-radius: 22px; font-size: .95rem; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; opacity: .5; }
.tvexit:hover, .tvexit:focus-visible { opacity: 1; }
.sfxbtn { top: 14px; bottom: auto; opacity: .65; } .sfxbtn:hover, .sfxbtn:focus-visible { opacity: 1; }
/* the header button (main menu) and the TV sound button replace the floating song button */
.profbtn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; }
.chipx { color: #ff4d52; font-weight: 900; text-decoration: none; margin-left: 4px; padding: 0 3px; border-radius: 50%; }
.chipx:hover, .chipx:focus-visible { background: var(--red); color: #fff; outline: none; }
.picklist input:disabled + span { opacity: .45; }
.teamgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.teamgrid .teamline { margin: 6px 0; }
@media (max-width: 640px) { .teamgrid { grid-template-columns: 1fr; } }
.teamline { margin: 10px 0; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 12px; max-height: 260px; overflow-y: auto; padding: 8px 10px; background: rgba(0,0,0,.25); border-radius: 10px; }
.picklist label.check { margin: 0; padding: 3px 0; }
.picklist label.check input { flex: 0 0 auto; }
.homecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 12px 0; }
.homecards > .card { margin: 0; min-width: 0; }
.homecards .codeform + *, .homecards .card > button { margin-top: 4px; }
.codeform { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.codeform input { flex: 0 0 6.2em; width: 6.2em; min-width: 0; padding: 8px 6px; font-size: 1.3rem; text-align: center; text-transform: uppercase; letter-spacing: .12em; }
.codeform button { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.pill { white-space: nowrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: rgba(255,255,255,.15); font-size: .8rem; }
.pill.on, .pill.green { background: var(--green); } .pill.off { background: #555; }
.pill.red { background: #d32f2f; color: #fff; } .pill.yellow { background: #f2c200; color: #1b1b1b; font-weight: 600; }

.musiclink { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--gold); text-decoration: none; border-bottom: 2px dotted currentColor; padding-bottom: 2px; }
.musicbtn { position: fixed; right: 14px; bottom: 14px; z-index: 70; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; font-size: 1.25rem; line-height: 1; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.35); color: #fff; }
/* ---------- splash ---------- */
#splash { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  background: radial-gradient(circle at 50% 30%, #2a46ff, #050a4a 75%); text-align: center; padding: 20px; }
#splash h1 { font-size: clamp(2.4rem, 10vw, 7rem); line-height: 1; }
#splash button { font-size: clamp(1.2rem, 3vw, 2rem); padding: 18px 40px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* ---------- board (TV + host) ---------- */
.tv { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 1.2vmin 1.6vmin; overflow: hidden; }
.tv .stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.grid { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(0, 1.15fr) repeat(5, minmax(0, 1fr)); gap: .8vmin; }
.cat, .cell { min-width: 0; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--blue); border: .3vmin solid #000; font-family: var(--board-font); text-transform: uppercase; }
.cat { color: #fff; font-size: clamp(.6rem, min(2.4vmin, 2.2cqw), 2.2rem); padding: .6vmin; line-height: 1.05; text-shadow: .2vmin .2vmin 0 #000; background: linear-gradient(#1b35e8, #0a1fb8); }
.grid { container-type: inline-size; }
.cell { color: var(--gold); font-size: clamp(.9rem, min(6.2vmin, 6.4cqw), 5rem); text-shadow: .35vmin .35vmin 0 #000; }
.cell.used { color: transparent; text-shadow: none; background: #070d55; }
.cell.pick { cursor: pointer; } .cell.pick:hover { background: var(--blue-l); }
.cell.dd { outline: .5vmin dashed var(--gold); outline-offset: -.8vmin; }
.cell.proposed { outline: .6vmin solid #fff; animation: pulse 1s infinite; }
.scorebar { display: flex; gap: 1vmin; padding-top: 1vmin; justify-content: center; }
.score { flex: 1; max-width: 26vw; background: var(--blue-d); border: .3vmin solid #000; border-radius: 1vmin; text-align: center; padding: .6vmin 1vmin; }
.score.control { box-shadow: 0 0 0 .5vmin var(--gold); }
.score .nm { font-size: clamp(.8rem, 2.4vmin, 2rem); color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score .amt { font-family: var(--board-font); font-size: clamp(1.2rem, 5vmin, 4rem); color: #fff; background: #000; border-radius: .6vmin; margin: .3vmin 0; }
.score .amt.neg { color: #ff7b7b; }
.score .mem { font-size: clamp(.6rem, 1.7vmin, 1.2rem); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(#0a24d6, #050a6a); border: .4vmin solid #000; padding: 2vmin 4vmin; gap: 2vmin; }
.big .meta { font-family: var(--board-font); color: var(--gold); font-size: clamp(1rem, 3.4vmin, 3rem); text-transform: uppercase; text-shadow: .25vmin .25vmin 0 #000; }
.big .clue { font-family: var(--clue-font); text-transform: uppercase; font-size: clamp(1.4rem, 6.2vmin, 5.4rem); line-height: 1.2; text-shadow: .3vmin .3vmin 0 #000; max-width: 92%; }
.big .clue.long { font-size: clamp(1.2rem, 4.6vmin, 4rem); }
/* Clue pictures and videos grow to fill whatever room the clue text leaves, as large as the screen allows,
   and are never stretched: object-fit keeps the original shape (black bars fill any spare space). */
.big img.clueimg, .big .cluevideo { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; max-width: 100%; max-height: 74vh; object-fit: contain; border: .3vmin solid #000; background: #000; }
.big .answer { font-family: var(--board-font); color: var(--gold); font-size: clamp(1.4rem, 6vmin, 5rem); text-transform: uppercase; text-shadow: .3vmin .3vmin 0 #000; }
.big .drawing { max-height: 34vh; max-width: 70%; background: #fff; border: .3vmin solid #000; }
.mediaslot { display: contents; }
.cluevideo { max-width: 100%; background: #000; }
.clueaudio { width: 60%; }
.big.dd { background: radial-gradient(circle, #2a46ff, #050a6a 70%); animation: ddpulse 1.2s ease-in-out infinite alternate; }
@keyframes ddpulse { to { filter: brightness(1.25); } }
.grid.fill .cat, .grid.fill .cell { animation: pop .4s both; animation-delay: calc(var(--n) * 70ms); }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.finalTable { width: 86%; font-size: 2.6vmin; color: #fff; border-collapse: collapse; }
.finalTable td { border-bottom: .2vmin solid rgba(255,255,255,.2); padding: .6vmin 1vmin; }
.finalTable tr.now { background: rgba(255,204,51,.18); } .finalTable td.amt { font-family: var(--board-font); color: var(--gold); text-align: right; }
.timer { width: 70%; height: 1.6vmin; background: rgba(0,0,0,.45); border-radius: 99px; overflow: hidden; }
.timer > i { display: block; height: 100%; background: var(--gold); width: 100%; transition: width .2s linear; }
.lights { display: flex; gap: 1vmin; } .lights i { width: 3vmin; height: 3vmin; border-radius: 50%; background: #222; } .lights.on i { background: var(--green); box-shadow: 0 0 2vmin var(--green); }
.lobbyTV { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3vmin; align-items: center; padding: 2vmin; }
.lobbyTV .code { font-family: var(--board-font); font-size: clamp(3rem, 18vmin, 12rem); color: var(--gold); letter-spacing: .1em; text-shadow: .5vmin .5vmin 0 #000; }
.lobbyTV .qr { background: #fff; padding: 1.4vmin; border-radius: 1.4vmin; width: min(34vmin, 100%); }
.teamsLobby { display: grid; gap: 1.2vmin; } .teamsLobby > div { background: var(--blue-d); border-radius: 1.2vmin; padding: 1.2vmin 2vmin; border: .3vmin solid #000; }
.teamsLobby b { font-size: clamp(1rem, 3.4vmin, 2.6rem); } .teamsLobby span { font-size: clamp(.8rem, 2.4vmin, 1.8rem); opacity: .85; display: block; }
.warnbar { position: fixed; top: 0; left: 0; right: 0; background: #7a5a00; text-align: center; font-size: .8rem; padding: 2px; z-index: 9; }
.banner { position: fixed; bottom: 1vmin; right: 1.4vmin; font-size: 1.6vmin; opacity: .6; }

/* ---------- player phone ---------- */
.phone { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.phone .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; opacity: .95; }
.phone .top > div:first-child { min-width: 0; } .phone .top > div:first-child > div:first-child { overflow-wrap: anywhere; }
.phone .main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 8px 0; }
.buzz { width: 100%; min-height: 40vh; border-radius: 22px; font-family: var(--board-font); font-size: clamp(2.5rem, 14vmin, 7rem); letter-spacing: .1em; background: radial-gradient(circle at 35% 30%, #ff6b6b, #c1121f 70%); color: #fff; border: 0; box-shadow: 0 10px 0 #7a0a12, 0 14px 30px rgba(0,0,0,.5); text-shadow: 0 3px 0 #7a0a12; }
.buzz:active { transform: translateY(8px); box-shadow: 0 2px 0 #7a0a12; }
.buzz:disabled { background: #444; box-shadow: 0 10px 0 #222; text-shadow: none; color: #aaa; }
.pclue { font-family: var(--clue-font); text-transform: uppercase; font-size: clamp(1.1rem, 4.4vmin, 2rem); text-align: center; line-height: 1.25; }
.wager { text-align: center; } .wager .amt { font-family: var(--board-font); font-size: clamp(2.4rem, 12vmin, 5rem); color: var(--gold); }
.wager .quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mini .c { background: var(--blue); border-radius: 6px; padding: 4px 2px; font-size: .62rem; text-align: center; font-family: var(--board-font); text-transform: uppercase; display: flex; align-items: center; justify-content: center; min-height: 34px; }
.mini .v { background: var(--blue); color: var(--gold); border: 0; border-radius: 6px; font-family: var(--board-font); font-size: clamp(.9rem, 3.2vmin, 1.6rem); padding: 0; min-height: 40px; }
.mini .v.used { visibility: hidden; } .mini .v.sel { outline: 3px solid #fff; }
.mini .v:disabled { opacity: 1; background: #0b1470; }
.drawpad { width: 100%; background: #fff; border-radius: 12px; touch-action: none; aspect-ratio: 3 / 2; max-height: 52vh; }
.approvals { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
@media (orientation: landscape) and (max-height: 520px) {
  /* Landscape phone: clue on the left, big buzzer on the right. */
  .phone .main:has(> .buzz) { display: grid; grid-template-columns: 1fr 1.1fr; grid-auto-rows: min-content; align-content: center; gap: 8px 16px; }
  .phone .main:has(> .buzz) > .buzz { grid-column: 2; grid-row: 1 / span 6; height: min(72vh, 300px); min-height: 0; align-self: center; font-size: clamp(2rem, 17vh, 5rem); }
  .phone .main:has(> .buzz) > :not(.buzz) { grid-column: 1; }
  .phone .main { gap: 8px; } .wager .amt { font-size: 2.4rem; } .drawpad { max-height: 60vh; }
}
/* ---------- admin ---------- */
.qrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; border-bottom: 1px solid rgba(255,255,255,.15); padding: 10px 0; }
.pchip { cursor: grab; user-select: none; padding: 5px 11px; font-size: .85rem; border: 2px solid transparent; }
.pchip.placed { background: rgba(31,191,106,.35); } .pchip.sel { border-color: var(--gold); background: rgba(255,204,51,.35); } .pchip.dragging { opacity: .4; }
.teambox { background: rgba(0,0,0,.25); border: 2px dashed rgba(255,255,255,.25); border-radius: 10px; padding: 8px; margin: 8px 0; } .teambox .members { margin-top: 6px; min-height: 30px; }
.over { outline: 3px solid var(--gold); background: rgba(255,204,51,.15); }
.chip { display: inline-block; background: rgba(255,255,255,.18); border-radius: 99px; padding: 1px 9px; margin: 2px 4px 2px 0; font-size: .75rem; }
.builder { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; }
.slot { background: var(--panel); border-radius: 10px; padding: 8px; } .slot select, .slot input { padding: 6px; font-size: .8rem; margin: 3px 0; }
.report li { margin: 4px 0; } .report .e { color: #ff9a9a; } .report .w { color: #ffd77a; }
.spell { background: #5a3d00; border-radius: 10px; padding: 10px; margin: 8px 0; }
dialog { background: #0e1670; color: #fff; border: 2px solid var(--gold); border-radius: 14px; max-width: 520px; width: 92vw; } dialog::backdrop { background: rgba(0,0,0,.6); }
