/* Baseline IT Systems palette (Brand Archive: gen.py / wallpapers.py; remote-support site CSS) */
@font-face { font-family: Montserrat; src: url(/brand/Montserrat-500.ttf) format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/brand/Montserrat-700.ttf) format('truetype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/brand/Montserrat-800.ttf) format('truetype'); font-weight: 800 900; font-display: swap; }
:root {
  --navy: #00112b;      /* brand navy (primary) */
  --navy-2: #0b2545;    /* site navy */
  --navy-3: #13315c;    /* site navy-2 */
  --gold: #d4a94f;      /* brand gold */
  --gold-deep: #b0832c; /* brand gold for text/lines on white */
  --gold-soft: #f1d9a6; /* site light gold */
  --blue: #1d5fbf;      /* site accent blue */
  --sky: #e8f0fb;       /* site sky */
  --bg: #f0f3f8; --card: #ffffff; --ink: #1b2430; --muted: #5a6573; --line: #d6dde8;
  --brand: var(--navy); --brand2: var(--gold); --ok: #17804a; --warn: #8a5a00; --bad: #c0392b;
  --radius: 16px; --shadow: 0 6px 24px rgba(0, 17, 43, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.45 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(circle at 10% 0%, var(--sky) 0, transparent 40%), radial-gradient(circle at 100% 100%, #f7ecd4 0, transparent 35%);
  min-height: 100vh; }
a { color: var(--blue); }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1200px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand2)); display: inline-block; }
header.bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
input, textarea, select { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--brand); }
textarea { min-height: 90px; resize: vertical; }
button { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer; background: var(--brand); color: #fff; transition: transform .05s, opacity .2s; }
button:active { transform: scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: var(--sky); color: var(--navy); }
button.ghost { background: transparent; color: var(--muted); padding: 6px 8px; }
button.danger { background: #fde8e8; color: var(--bad); }
button.ok { background: var(--ok); }
button.small { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
button.block { width: 100%; padding: 15px; font-size: 18px; margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.err { color: var(--bad); font-weight: 600; min-height: 1.2em; margin-top: 8px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sky); color: var(--navy-3); text-transform: uppercase; letter-spacing: .4px; }
.pill.open { background: #dcf7ea; color: var(--ok); } .pill.closed { background: #fff2cc; color: #9a6c00; }
.pill.accepted { background: #f7ecd4; color: #7a5a17; } .pill.draft { background: #eef1f5; color: var(--muted); }
.pill.bad { background: #fde8e8; color: var(--bad); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: 4px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); display: inline-block; }
.status-dot.on { background: var(--ok); }
.question-text { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 6px 0 12px; }
.locked { border: 2px solid var(--ok); background: #effbf5; border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.locked .lock { font-size: 28px; }
.locked .ans { font-size: 20px; font-weight: 800; word-break: break-word; }
.scorebox { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border: 0; border-bottom: 4px solid var(--gold); }
.scorebox .big { color: var(--gold); }
.scorebox .big { font-size: 34px; font-weight: 900; line-height: 1; }
.scorebox .lbl { opacity: .85; font-size: 13px; }
ol.lb { list-style: none; padding: 0; margin: 0; }
ol.lb li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
ol.lb li:last-child { border-bottom: 0; }
ol.lb .rk { width: 34px; height: 34px; border-radius: 10px; background: var(--sky); display: grid; place-items: center; font-weight: 800; color: var(--brand); flex: none; }
ol.lb li:nth-child(1) .rk { background: var(--gold); color: var(--navy); }
ol.lb li:nth-child(2) .rk { background: #e1e5ee; color: #444; }
ol.lb li:nth-child(3) .rk { background: #f3c19b; color: #6b3500; }
ol.lb .nm { flex: 1; font-weight: 700; word-break: break-word; }
ol.lb .sc { font-weight: 900; font-size: 18px; }
ol.lb li.mine { background: #fbf3e1; border-radius: 10px; }
.bars .bar { margin: 8px 0; }
.bars .bar .top { display: flex; justify-content: space-between; font-weight: 700; gap: 8px; }
.bars .bar .track { height: 14px; background: var(--sky); border-radius: 8px; overflow: hidden; margin-top: 4px; }
.bars .bar .fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); border-radius: 8px; }
.bars .bar.rej { opacity: .5; } .bars .bar.rej .fill { background: #bbb; }
.chip { display: inline-block; background: var(--sky); border-radius: 8px; padding: 2px 8px; margin: 2px; font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; z-index: 50; max-width: 90vw; }
/* host */
.grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.qlist .q { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qlist .q .num { font-weight: 800; color: var(--muted); width: 28px; flex: none; }
.qlist .q .txt { flex: 1; word-break: break-word; }
.qlist .q.focus { background: #fbf3e1; border-radius: 10px; }
.groups .g { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: #fff; }
.groups .g.rej { background: #fff6f6; border-color: #f5caca; }
.groups .g .head { display: flex; gap: 8px; align-items: center; }
.groups .g .head input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.groups .g .lbl { flex: 1; font-weight: 800; }
.groups .g .cnt { font-weight: 900; font-size: 18px; color: var(--brand); min-width: 28px; text-align: right; }
.groups .g details { margin-top: 6px; }
.groups .g .ans { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; }
.groups .g .ans input { width: 16px; height: 16px; }
.toolbar { position: sticky; top: 0; background: var(--card); z-index: 2; padding: 8px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.teams .t { padding: 8px 0; border-bottom: 1px solid var(--line); }
.teams .t .members { font-size: 13px; color: var(--muted); }
/* projector */
body.display { background: var(--navy); color: #fff; background-image: radial-gradient(circle at 15% 10%, #16346e 0, transparent 50%), radial-gradient(circle at 90% 95%, rgba(212,169,79,.18) 0, transparent 40%); }
body.display .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
body.display .muted { color: #a0aec4; }
.stage { max-width: 1300px; margin: 0 auto; padding: 3vh 3vw; min-height: 100vh; display: flex; flex-direction: column; }
.stage .title { font-size: 2.2vw; font-weight: 800; opacity: .9; }
.stage .huge { font-size: clamp(32px, 4.6vw, 80px); font-weight: 900; line-height: 1.1; margin: 3vh 0; }
.stage .joinbox { display: flex; gap: 4vw; align-items: center; justify-content: center; flex: 1; }
.stage .joinbox img { width: min(32vw, 46vh); background: #fff; border-radius: 18px; padding: 12px; }
.stage .codebig { font-size: clamp(48px, 9vw, 160px); font-weight: 900; letter-spacing: .12em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.stage ol.lb li { border-color: rgba(255,255,255,.12); font-size: clamp(18px, 2vw, 32px); padding: 1.2vh 6px; }
.stage ol.lb .rk { width: 2.4em; height: 2.4em; background: rgba(255,255,255,.12); color: #fff; }
.stage .bars .bar { font-size: clamp(18px, 2vw, 32px); margin: 1.6vh 0; }
.stage .bars .bar .track { height: 2.2vh; background: rgba(255,255,255,.12); }
.stage .counter { font-size: clamp(22px, 2.6vw, 44px); font-weight: 800; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; }
.stage ol.lb .sc { font-size: 1.1em; }
.stage .row .muted { font-size: clamp(14px, 1.4vw, 24px); }
[hidden] { display: none !important; }

.bonusForm .ansInput { margin-bottom: 8px; }
.kindhint { margin: -4px 0 10px; }
.locked.bad { border-color: var(--bad); background: #fff4f4; }
.ansList { margin: 4px 0 0; padding-left: 20px; font-weight: 800; }
.pill.kind-bonus { background: #fff0e0; color: #b35a00; } .pill.kind-final { background: #ffe5ec; color: #b3134a; }
.pill.kind-tiebreak { background: #e0f4ff; color: #00609b; } .pill.part { background: var(--navy); color: var(--gold); }
ol.survey { list-style: none; padding: 0; margin: 10px 0 0; }
ol.survey li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
ol.survey li.hit { background: #effbf5; border-radius: 10px; font-weight: 800; }
ol.survey .pts { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
ol.survey .pts.neg { background: var(--bad); }
ol.survey .lab { flex: 1; font-weight: 700; }
.stage ol.survey li { font-size: clamp(18px, 2.1vw, 34px); border-color: rgba(255,255,255,.12); padding: 1.1vh 6px; }
.stage ol.survey .pts { width: 2.2em; height: 2.2em; }
.stage .tag { display: inline-block; padding: .2em .7em; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 800; margin-right: .4em; }
/* host review */
table.review { width: 100%; border-collapse: collapse; font-size: 14px; }
table.review th, table.review td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.review select { padding: 4px 6px; font-size: 13px; border-radius: 8px; width: auto; max-width: 220px; }
table.review .pts { font-weight: 900; font-size: 16px; text-align: right; white-space: nowrap; }
.how { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.how.exact, .how.alias { background: #dcf7ea; color: var(--ok); } .how.fuzzy { background: #fff2cc; color: #9a6c00; } .how.none { background: #fde8e8; color: var(--bad); } .how.ovr { background: var(--sky); color: var(--navy-3); }
.slotsum { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.slotsum .chip b { color: var(--gold-deep); }
.notes { background: #fffbea; border: 1px dashed #e6c200; border-radius: 10px; padding: 8px 10px; font-size: 13px; white-space: pre-wrap; margin: 8px 0; }
.eventbox { border: 2px solid var(--gold); background: #fbf6ea; }
#qList { max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.stage ol.lb.cont li .rk { background: rgba(255,255,255,.12) !important; color: #fff !important; }

/* ---- Baseline branding ---- */
h1, h2, .question-text, .logo { color: var(--navy); }
body.display h1, body.display h2 { color: #fff; }
.logo img { height: 30px; width: auto; display: block; }
.logo .word { font-weight: 800; }
.logo .word small { font-weight: 600; color: var(--gold-deep); }
button { background: var(--navy); }
button:hover:not(:disabled) { background: var(--navy-3); }
button.secondary:hover:not(:disabled) { background: #d8e5f7; }
button.ghost:hover:not(:disabled) { background: transparent; color: var(--navy); }
button.danger:hover:not(:disabled) { background: #f9d6d6; }
button.ok { background: var(--ok); } button.ok:hover:not(:disabled) { background: #136b3e; }
button.block { background: linear-gradient(135deg, var(--navy), var(--navy-3)); border-bottom: 3px solid var(--gold); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,169,79,.25); }
.hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 18px 18px; margin-bottom: 14px; text-align: center; box-shadow: var(--shadow);
  background-image: radial-gradient(circle at 20% 0%, #16346e 0, transparent 60%), radial-gradient(circle at 100% 100%, rgba(212,169,79,.2) 0, transparent 50%);
  border-bottom: 4px solid var(--gold); }
.hero .kicker { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.hero .tn { font-size: 40px; font-weight: 900; line-height: 1.05; margin: 4px 0 6px; letter-spacing: -.5px; }
.hero .tn span { color: var(--gold); }
.hero .pw { font-size: 13px; color: #c9d3e3; margin-bottom: 8px; letter-spacing: .5px; }
.hero img { width: min(300px, 86%); height: auto; }
.brandfoot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; margin: 18px 0 8px; }
.brandfoot img { height: 22px; width: auto; }
.brandfoot b { color: var(--navy); }
.lbhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.lbhead img { height: 34px; width: auto; }
.lbhead .t { font-weight: 800; color: var(--navy); line-height: 1.1; }
.lbhead .t small { display: block; font-weight: 600; font-size: 11px; color: var(--gold-deep); letter-spacing: .3px; }
.lbhead h2 { margin: 0; flex: 1; }
/* projector */
.stage .title { color: #fff; }
.stage .tag { background: rgba(212,169,79,.18); color: var(--gold); border: 1px solid rgba(212,169,79,.45); }
.stage .codebig { color: var(--gold); }
.stage .huge .gold, .stage .gold { color: var(--gold); }
.stage .joinbox img.qr { border: 6px solid var(--gold); }
.stage ol.lb li:nth-child(1) .rk { background: var(--gold); color: var(--navy); }
.stage ol.survey .pts { background: var(--gold); color: var(--navy); }
.stage ol.survey .pts.neg { background: var(--bad); color: #fff; }
.stage .bars .bar .fill { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.stage .brandhero { text-align: center; margin: 1vh 0 2vh; }
.stage .brandhero .tn { font-size: clamp(40px, 5.6vw, 104px); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.stage .brandhero .tn span { color: var(--gold); }
.stage .brandhero .pw { display: inline-flex; align-items: center; gap: .6em; font-size: clamp(16px, 1.7vw, 30px); color: #c9d3e3; margin-top: 1.2vh; }
.stage .brandhero .pw img { height: 2.6em; width: auto; }
.stage .brandrow { display: flex; align-items: center; gap: 1.2vw; margin: 1vh 0 1vh; }
.stage .brandrow img { height: clamp(40px, 5vw, 84px); width: auto; }
.stage .brandrow .txt { font-size: clamp(14px, 1.3vw, 22px); color: #c9d3e3; }
.stage .brandrow .txt b { color: #fff; display: block; font-size: 1.4em; }
.stage .stagefoot { margin-top: auto; padding-top: 2vh; display: flex; align-items: center; gap: .6em; color: #8b9ab3; font-size: clamp(12px, 1vw, 18px); }
.stage .stagefoot img { height: 1.8em; width: auto; }
.stage .head { border-bottom: 2px solid rgba(212,169,79,.5); padding-bottom: 1vh; }
.stage .joinbox img { width: min(26vw, 38vh); }
.stage { padding-bottom: 1.5vh; }
.stage .stagefoot { padding-top: 1vh; }
.stage .brandhero .pw img { height: 4.2em; }
.hero img { width: min(340px, 92%); }
.stage .brandrow { flex: none; text-align: right; }
.stage .brandrow .txt b { font-size: 1.5em; }
.stage .brandrow img { height: clamp(48px, 6vw, 100px); }
.stage ol.lb li { padding: .9vh 6px; }
.stage ol.lb .rk { width: 2.1em; height: 2.1em; }

/* ---- host: sticky actions + phone layout ---- */
.modes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.modebtns { display: flex; gap: 6px; flex-wrap: wrap; }
.actionbar { position: sticky; bottom: 0; z-index: 30; margin: 0 -4px 14px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 20px rgba(0,17,43,.12); }
.actionbar .abstatus { margin-bottom: 6px; color: var(--ink); }
.actionbar .abbtns { display: flex; gap: 8px; }
.actionbar .abbtns button { flex: 1; min-height: 52px; font-size: 17px; }
@media (max-width: 640px) {
  .wrap { padding: 10px; }
  .wrap.wide { max-width: 100%; }
  .card { padding: 14px; border-radius: 14px; margin-bottom: 10px; }
  h1 { font-size: 21px; } h2 { font-size: 18px; }
  .question-text { font-size: 20px; }
  header.bar .logo { font-size: 18px; }
  #gameView > .card:first-child .row { gap: 6px; }
  #gameView > .card:first-child .row.small { flex-direction: column; align-items: flex-start; gap: 4px; }
  #gCode { font-size: 22px !important; }
  button { min-height: 44px; }
  button.small { min-height: 44px; padding: 10px 14px; font-size: 15px; border-radius: 11px; }
  button.ghost.small { min-width: 44px; }
  .modes { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .modes > * { min-width: 0; max-width: 100%; }
  .modebtns { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: thin; }
  .modebtns button { flex: none; }
  .row > .grow { min-width: 0; }
  #qList { max-height: none; overflow: visible; }
  .qlist .q { flex-wrap: wrap; }
  .qlist .q .txt { flex-basis: calc(100% - 40px); }
  .qlist .q > .row { width: 100%; justify-content: flex-end; }
  table.review, table.review tbody, table.review tr, table.review td { display: block; width: 100%; }
  table.review tr:has(th) { display: none; }
  table.review tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.review td { border: 0; padding: 3px 0; }
  table.review td.pts { text-align: left; font-size: 18px; }
  table.review td.pts::before { content: 'Points: '; font-size: 13px; font-weight: 600; color: var(--muted); }
  table.review select { width: 100%; max-width: none; min-height: 44px; font-size: 15px; }
  .groups .g .head input[type=checkbox], .groups .g .ans input { width: 26px; height: 26px; }
  .toolbar button { flex: 1 1 45%; }
  .eventbox .row, .eventbox button { width: auto; }
  .eventbox button { margin-top: 6px; }
  .teams .t .row button { flex: none; }
  .actionbar { margin: 0 -10px; border-radius: 14px 14px 0 0; }
  .toast { bottom: 110px; }
}
/* v4: per-team answer controls, points history */
.teamans{margin-top:12px;border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.teamans summary{cursor:pointer;padding:6px 0}
.teamans .trow{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.teamans .tname{flex:1;min-width:0;overflow-wrap:anywhere}
.histchips{display:flex;flex-wrap:wrap;gap:6px}
.ptsline{font-size:20px}
@media (max-width:640px){
  .teamans .trow{flex-wrap:wrap}
  .teamans .trow button{width:100%;min-height:44px}
  .scorevis{flex-wrap:wrap}
  .scorevis select{width:100%!important}
}
/* v5: change PIN */
.pinview input{font-size:20px;letter-spacing:4px;min-height:48px}
.pinview .block{margin-top:10px;min-height:48px}
@media (max-width:640px){ .pinview{margin:12px auto!important} }
/* v5: navigation + games list */
#topGames{font-weight:700}
.backbtn{font-weight:700}
.gamerow{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.gamerow .ginfo{flex:1;min-width:200px;overflow-wrap:anywhere}
.gamerow .gbtns{display:flex;gap:6px;flex-wrap:wrap}
@media (max-width:640px){
  header.bar{position:sticky;top:0;z-index:20;background:var(--bg,#eef2f8);padding:6px 0}
  #topGames,.backbtn{min-height:44px;padding:0 14px}
  .gamerow .gbtns{width:100%}
  .gamerow .gbtns button{flex:1;min-height:44px}
}
@media (max-width:640px){
  header.bar{flex-wrap:nowrap;gap:6px;margin-bottom:10px}
  header.bar .logo .word{display:none}
  header.bar > .row{flex-wrap:nowrap;gap:6px;min-width:0;flex:1;justify-content:flex-end}
  header.bar #connTxt{white-space:nowrap}
  header.bar #connTxt .long{display:none}
  header.bar #pinBtn,header.bar #logout{min-height:44px;padding:0 8px;white-space:nowrap}
  #topGames{padding:0 10px!important;white-space:nowrap}
}
/* v6: new-game form, trivia review, media */
.lbl2 { font-weight: 800; font-size: 14px; margin: 14px 0 6px; color: var(--navy-3); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg.seg3 { grid-template-columns: 1fr 1fr 1fr; }
.seg button { background: var(--sky); color: var(--navy); padding: 12px 8px; line-height: 1.2; border: 2px solid transparent; }
.seg button small { display: block; font-weight: 500; font-size: 12px; opacity: .8; margin-top: 2px; }
.seg button.on { background: var(--navy); color: #fff; border-color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 14px; margin: 8px 0; }
.checks input[type=checkbox] { width: 20px; height: 20px; flex: none; margin-top: 1px; }
#ngTopics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.pill.type-trivia { background: #e6f4ff; color: var(--blue); } .pill.type-opinion { background: #f7ecd4; color: #7a5a17; }
.verdict { display: flex; gap: 4px; flex-wrap: wrap; }
.verdict button { padding: 6px 9px; font-size: 13px; border-radius: 9px; background: #eef1f5; color: var(--ink); }
.verdict button.on.yes { background: var(--ok); color: #fff; } .verdict button.on.no { background: var(--bad); color: #fff; } .verdict button.on.auto { background: var(--navy-3); color: #fff; }
.wagerchip { display: inline-block; min-width: 28px; text-align: center; background: var(--gold-soft); color: var(--navy); font-weight: 800; border-radius: 8px; padding: 2px 6px; }
.mediabox { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin: 10px 0; background: #fafbfd; }
.mediabox audio { width: 100%; margin: 6px 0; }
.mediabox img { max-width: 100%; max-height: 220px; border-radius: 10px; display: block; margin: 6px 0; }
.qimg { max-width: 100%; max-height: 60vh; border-radius: 12px; display: block; margin: 8px auto; background: #fff; }
.wagers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.wagers button { background: var(--sky); color: var(--navy); font-size: 20px; padding: 12px 0; }
.wagers button.on { background: var(--navy); color: var(--gold); outline: 3px solid var(--gold); }
.wagers button:disabled { text-decoration: line-through; }
.prompt { font-weight: 700; font-size: 14px; margin: 8px 0 2px; }
.stage .qimg { max-height: 52vh; }
.stage .soundbtn { position: fixed; bottom: 2vh; right: 2vw; z-index: 60; font-size: clamp(14px, 1.4vw, 22px); background: var(--gold); color: var(--navy); }
.stage .audiobar { position: fixed; bottom: 2vh; left: 2vw; z-index: 60; display: flex; gap: 8px; align-items: center; background: rgba(0,0,0,.35); padding: 6px 10px; border-radius: 12px; font-size: clamp(12px, 1.2vw, 18px); }
.stage .audiobar button { padding: 6px 12px; background: rgba(255,255,255,.15); }
@media (max-width: 420px) { .seg.seg3 button small { display: none; } .grid2 { grid-template-columns: 1fr; } #ngTopics { grid-template-columns: 1fr; } }
body.display .audiobar { position: fixed; bottom: 6vh; left: 2vw; z-index: 60; display: flex; gap: 8px; align-items: center; background: rgba(0,0,0,.45); color: #fff; padding: 6px 10px; border-radius: 12px; font-size: clamp(12px, 1.2vw, 18px); }
body.display .audiobar button { padding: 6px 12px; background: rgba(255,255,255,.18); }
body.display .soundbtn { position: fixed; bottom: 2vh; right: 2vw; z-index: 60; font-size: clamp(14px, 1.4vw, 22px); background: var(--gold); color: var(--navy); }
body.display .qimg { max-height: 50vh; max-width: 90%; }

/* ---- v6.0.1 projector: full screen + fit to 16:9 without scrollbars ---- */
html:has(body.display), body.display { overflow: hidden; height: 100%; }
body.display .stage { max-width: max(1300px, 90vw); }
body.display .fsbtn { position: fixed; right: 1.4vw; bottom: 1.6vh; z-index: 80; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,17,43,.72); color: #fff; font: 700 clamp(12px, 1vw, 17px) Montserrat, system-ui, sans-serif; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .35s; }
body.display .fsbtn.show { opacity: 1; pointer-events: auto; }
body.display .fsbtn:hover { background: var(--gold); color: var(--navy); }
body.display .soundbtn { bottom: 7.5vh; }
body.display .fshint { position: fixed; left: 50%; bottom: 9vh; transform: translateX(-50%) translateY(10px); z-index: 85; background: rgba(0,17,43,.88);
  color: #fff; border: 1px solid rgba(212,169,79,.7); padding: 12px 22px; border-radius: 14px; font: 700 clamp(14px, 1.4vw, 24px) Montserrat, system-ui, sans-serif;
  opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; }
body.display .fshint.show { opacity: 1; transform: translateX(-50%); }
body.display.fs-idle, body.display.fs-idle * { cursor: none !important; }
body.display { user-select: none; -webkit-user-select: none; }

/* ---- v6.0.1 host Questions list: one page scroll (no inner scroll box), counts, round headers, wide labels ---- */
#qList { max-height: none; overflow: visible; padding-right: 0; }
.qlist h3.qpart { margin: 16px 0 4px; padding: 8px 10px; background: #eef2f8; border-radius: 10px; font-size: 1.05rem; }
.qlist h3.qpart:first-child { margin-top: 4px; }
.qlist .qround { margin: 12px 0 0; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--gold-deep); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.qlist .qround span { color: var(--muted); font-weight: 700; }
.qlist .q .num { width: auto; min-width: 2.6em; max-width: 9.5em; flex: none; padding: 2px 8px; border-radius: 8px; background: #eef2f8; color: #13315c;
  font-size: .82rem; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.qlist .q .txt { min-width: 0; }
@media (max-width: 640px) { .qlist .q .txt { flex: 1 1 0; flex-basis: 0; min-width: 0; } .qlist .q .num { max-width: 6.5em; } }
/* v6.0.1: question label is a chip on its own line above the text (never overlaps), at every width */
.qlist .q .txt .num { display: inline-block; width: auto; min-width: 0; max-width: 100%; margin: 0 0 4px; padding: 2px 9px; border-radius: 8px;
  background: #eef2f8; color: #13315c; font-weight: 800; font-size: .8rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.qlist .q .txt .qtext { display: block; }
@media (max-width: 640px) { .qlist .q .txt { flex: 1 1 100%; flex-basis: 100%; } }

/* v6.0.1 Show-answer flow */
.actionbar .abbtns button.big { flex: 2; min-height: 60px; font-size: 19px; font-weight: 800; }
.actionbar .abbtns button.secondary { flex: 1; }
body.display .rightteams { display: flex; flex-wrap: wrap; gap: .8vh .6vw; align-items: center; margin: 1.5vh 0; font-size: clamp(14px, 1.5vw, 28px); }
body.display .rightteams .tchip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .4vh 1vw; max-width: 100%; overflow-wrap: anywhere; }
body.display .rightteams .tchip b { color: var(--gold, #f5c542); }
body.display .rightteams .tchip.more { opacity: .75; }
body.display .revans { overflow-wrap: anywhere; }
/* v6.1 multi-host */
.whotag{background:var(--sky);color:var(--navy-3);border-radius:999px;padding:3px 10px;font-weight:700;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pill.owner{background:#eef1f5;color:var(--navy-3);text-transform:none;letter-spacing:0} .pill.owner.me{background:var(--sky)}
#ownerFilter{width:auto;min-height:36px;margin:0 8px}
.hostrow{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 0;border-top:1px solid #e3e8ef}
.hostrow.admin{border-top:0}
.hostrow.off .hinfo b{color:var(--muted);text-decoration:line-through}
.hostrow .gbtns{display:flex;gap:6px;flex-wrap:wrap}
.hostsview input{min-height:46px}
.hostsview input[type=password]{font-size:20px;letter-spacing:4px}
.hostsview .block{margin-top:10px;min-height:46px}
@media (max-width:640px){ .hostrow .gbtns{width:100%} .hostrow .gbtns button{flex:1 1 40%} .whotag{max-width:90px} }
@media (max-width:640px){ .whotag{display:none!important} body[data-view=gameView] #hostsBtn, body[data-view=pinView] #hostsBtn{display:none!important} }
