/* חכמת ההמונים — one stylesheet for every page.
   A deep indigo "stage" with vivid Kahoot-style answer tiles, white cards,
   chunky 3D buttons and a playful Hebrew display face. */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;800&family=Secular+One&display=swap");

:root {
  --bg-1: #241457;
  --bg-2: #4a2491;
  --bg-3: #6c2fb0;
  --ink: #1d1640;
  --ink-2: #4a4470;
  --muted: #8b86a8;
  --card: #ffffff;
  --card-2: #f5f3fc;
  --line: #e6e2f3;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, .12);
  --glass-2: rgba(255, 255, 255, .2);
  --gold: #ffc53d;
  --silver: #cfd6e6;
  --bronze: #e39a5c;
  --good: #23c16b;
  --good-d: #179152;
  --bad: #ff5a5f;
  --warn: #ffb020;
  --accent: #7b3fe4;
  --accent-d: #5a23bd;
  --c1: #ff5a5f; --c2: #12b5a5; --c3: #ffa41b; --c4: #3d7bff; --c5: #e84393; --c6: #22b85f;
  --r: 20px;
  --shadow: 0 10px 30px rgba(20, 8, 60, .25);
  --f-display: "Secular One", "Rubik", system-ui, sans-serif;
  --f-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dock-h: 96px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--f-body);
  color: var(--white);
  min-height: 100dvh;
  background: radial-gradient(1200px 700px at 85% -10%, var(--bg-3) 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 110%, #2b5bd6 0%, transparent 55%),
              linear-gradient(160deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* floating blobs behind everything */
.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blobs i {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .18;
  animation: float 18s ease-in-out infinite;
}
.blobs i:nth-child(1) { width: 160px; height: 160px; background: var(--c3); top: 8%; left: -40px; }
.blobs i:nth-child(2) { width: 110px; height: 110px; background: var(--c2); top: 55%; right: -30px; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 70px; height: 70px; background: var(--c5); bottom: 8%; left: 30%; animation-delay: -11s; }
.blobs i:nth-child(4) { width: 50px; height: 50px; background: var(--c4); top: 20%; right: 25%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(20px, -30px) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .blobs i, * { animation: none !important; transition: none !important; } }

.wrap { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 14px 16px 24px; }
.wrap.wide { max-width: 1180px; }

/* ---------- brand / top bar ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, var(--gold), #ff7a45); box-shadow: 0 4px 0 #c0562a; flex: none;
}
.brand .names { min-width: 0; }
.brand h1 { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 0; letter-spacing: .3px; }
.brand .sub { font-size: 14px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.topbar .tools { display: flex; gap: 8px; align-items: center; flex: none; }
.iconbtn {
  width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--glass); color: #fff;
  font-size: 20px; display: grid; place-items: center; text-decoration: none;
}
.iconbtn:hover { background: var(--glass-2); }
.scorechip {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .25); font-weight: 700; font-size: 16px; white-space: nowrap;
}
.scorechip .rk { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 13px; }

/* ---------- cards ---------- */
.card {
  background: var(--card); color: var(--ink); border-radius: var(--r); padding: 18px;
  box-shadow: var(--shadow); margin-bottom: 14px; position: relative;
}
.card h2 { font-family: var(--f-display); font-weight: 400; font-size: 21px; margin: 0 0 10px; }
.card h3 { font-size: 16px; margin: 14px 0 8px; color: var(--ink-2); }
.card.glass { background: var(--glass); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .15); }
.muted { color: var(--muted); }
.glass .muted, .onstage .muted { color: rgba(255, 255, 255, .72); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.small { font-size: 13px; }
.pop { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.slide { animation: slide .45s ease both; }
@keyframes slide { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- buttons ---------- */
.btn {
  border: 0; border-radius: 16px; padding: 12px 18px; font-weight: 700; font-size: 17px;
  background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-d);
  transition: transform .08s, box-shadow .08s, filter .15s; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-d); }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { filter: grayscale(.7); opacity: .55; cursor: default; transform: none; }
.btn.big { font-size: 22px; padding: 16px 24px; border-radius: 20px; font-family: var(--f-display); font-weight: 400; }
.btn.block { width: 100%; }
.btn.good { background: var(--good); box-shadow: 0 4px 0 var(--good-d); }
.btn.good:active { box-shadow: 0 1px 0 var(--good-d); }
.btn.warn { background: var(--warn); color: var(--ink); box-shadow: 0 4px 0 #c7800f; }
.btn.danger { background: var(--bad); box-shadow: 0 4px 0 #c43a3f; }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 #c9951c; }
.btn.ghost { background: var(--card-2); color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.btn.glassy { background: var(--glass-2); box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.btn.sm { font-size: 14px; padding: 8px 12px; border-radius: 12px; }
.linkbtn { background: none; border: 0; color: inherit; text-decoration: underline; opacity: .8; padding: 4px; }

/* segmented choice */
.seg { display: flex; background: var(--card-2); border-radius: 14px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 0; border: 0; background: transparent; border-radius: 11px; padding: 10px 8px; font-weight: 600;
  color: var(--ink-2); min-width: 110px;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(60, 30, 140, .15); }
.seg.locked button:not([aria-pressed="true"]) { opacity: .4; cursor: not-allowed; }

/* fields */
label.fld { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); margin: 10px 0 6px; }
.input, textarea.input {
  width: 100%; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px;
  padding: 12px 14px; font-size: 17px; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input.huge { font-size: 26px; text-align: center; font-family: var(--f-display); padding: 14px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--card-2); color: var(--ink); font-weight: 600; font-size: 15px; max-width: 100%;
}
.chip button { border: 0; background: rgba(0, 0, 0, .08); border-radius: 50%; width: 22px; height: 22px; font-size: 12px; line-height: 1; padding: 0; }
.chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glass .chip, .onstage .chip { background: var(--glass-2); color: #fff; }

/* ---------- player stage ---------- */
.onstage { color: #fff; }
.qcard {
  background: #fff; color: var(--ink); border-radius: 24px; padding: 18px 18px 20px; box-shadow: var(--shadow);
  text-align: center; margin-bottom: 14px; position: relative;
}
.qmeta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.qtext { font-family: var(--f-display); font-size: 25px; line-height: 1.3; margin: 4px 0 0; }
.qcount { background: var(--card-2); border-radius: 999px; padding: 2px 10px; }

.search { margin-bottom: 10px; }
.search .input { background: rgba(255, 255, 255, .95); border-color: transparent; }

.answers { display: grid; grid-template-columns: 1fr; gap: 10px; padding-bottom: calc(var(--dock-h) + 16px); }
.answers.two { grid-template-columns: 1fr 1fr; }
.ans {
  --c: var(--c1);
  position: relative; border: 0; border-radius: 18px; min-height: 66px; padding: 12px 16px;
  background: var(--c); color: #fff; font-family: var(--f-display); font-size: 25px; line-height: 1.15;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .28); text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
  transition: transform .1s, opacity .2s, box-shadow .1s, filter .2s; text-align: center;
  overflow-wrap: anywhere; animation: slide .35s ease both;
}
.ans:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.answers.has-pick .ans:not(.picked) { opacity: .5; filter: saturate(.6); }
.ans.picked { transform: scale(1.02); outline: 4px solid #fff; outline-offset: 2px; opacity: 1; }
.ans.picked::after {
  content: "✓"; position: absolute; top: 50%; inset-inline-start: 12px; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--good);
  font-size: 20px; display: grid; place-items: center; font-family: var(--f-body); font-weight: 800; text-shadow: none;
}
.ans:nth-child(6n+1) { --c: var(--c1); } .ans:nth-child(6n+2) { --c: var(--c2); } .ans:nth-child(6n+3) { --c: var(--c3); }
.ans:nth-child(6n+4) { --c: var(--c4); } .ans:nth-child(6n+5) { --c: var(--c5); } .ans:nth-child(6n+6) { --c: var(--c6); }
.answers.locked .ans { pointer-events: none; }

/* the always-visible answer dock */
.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(30, 14, 72, .96) 60%, rgba(30, 14, 72, 0));
}
.dock .inner { max-width: 560px; margin: 0 auto; }
.dock .btn { width: 100%; font-size: 26px; padding: 16px; }
.dock .hint { text-align: center; font-size: 14px; opacity: .85; margin-top: 6px; min-height: 18px; }

/* countdown ring */
.timer { position: absolute; top: -22px; left: 50%; margin-left: -29px; width: 58px; height: 58px; }
.qcard:has(.timer) .qmeta { margin-top: 14px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer .trk { stroke: #eee; }
.timer .val { stroke: var(--good); transition: stroke .3s; stroke-linecap: round; }
.timer.hurry .val { stroke: var(--bad); }
.timer .num {
  position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--ink);
}
.timer-wrap { background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.bigcount {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 30; pointer-events: none;
  font-family: var(--f-display); font-size: 140px; color: #fff; text-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
.bigcount span { animation: zoom .9s ease-out both; }
@keyframes zoom { from { transform: scale(2); opacity: 0; } 30% { opacity: 1; } to { transform: scale(.8); opacity: 0; } }

/* waiting / lobby */
.hero { text-align: center; padding: 24px 8px; }
.hero .emoji { font-size: 72px; display: inline-block; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.hero h2 { font-family: var(--f-display); font-weight: 400; font-size: 30px; margin: 10px 0 6px; }
.hero p { font-size: 17px; opacity: .9; margin: 0 0 8px; }
.dots::after { content: ""; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.progress { height: 12px; background: rgba(255, 255, 255, .18); border-radius: 999px; overflow: hidden; margin: 12px auto; max-width: 320px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ff7a45); border-radius: 999px; transition: width .5s; }

/* reveal */
.verdict {
  border-radius: 24px; padding: 18px; text-align: center; margin-bottom: 14px; color: #fff;
  box-shadow: var(--shadow); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.verdict.hit, .verdict.tie { background: linear-gradient(135deg, #23c16b, #13a0a0); }
.verdict.close { background: linear-gradient(135deg, #ffb020, #ff7a45); }
.verdict.miss, .verdict.none { background: linear-gradient(135deg, #ff5a5f, #c43a8f); }
.verdict.nocons, .verdict.void, .verdict.skipped, .verdict.absent { background: linear-gradient(135deg, #6a6f9e, #494d7c); }
.verdict .big { font-family: var(--f-display); font-size: 28px; line-height: 1.2; }
.verdict .pts { font-size: 40px; font-weight: 800; margin-top: 4px; }
.verdict .bonus { display: inline-block; background: rgba(0, 0, 0, .2); border-radius: 999px; padding: 2px 10px; font-size: 15px; margin-top: 4px; }
.majority { text-align: center; }
.majority .lbl { font-size: 15px; color: var(--muted); font-weight: 600; }
.majority .who { font-family: var(--f-display); font-size: 38px; line-height: 1.15; color: var(--accent); margin: 4px 0; overflow-wrap: anywhere; }
.majority .crown { font-size: 34px; display: block; animation: bob 2s ease-in-out infinite; }

.bars { display: grid; gap: 8px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; gap: 8px; align-items: center; font-weight: 600; }
.bar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .tr { height: 26px; background: var(--card-2); border-radius: 10px; overflow: hidden; }
.bar .fl { height: 100%; width: 0; border-radius: 10px; background: var(--c4); transition: width 1s cubic-bezier(.2, .9, .3, 1); }
.bar.top .fl { background: linear-gradient(90deg, var(--gold), #ff7a45); }
.bar.mine .nm::after { content: " ← אתה"; color: var(--accent); font-size: 12px; }
.bar .n { min-width: 26px; text-align: center; }

/* leaderboard */
.board { display: grid; gap: 8px; }
.lrow {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
  animation: slide .4s ease both;
}
.lrow .rk {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--card-2); color: var(--ink-2);
}
.lrow.r1 .rk { background: var(--gold); color: var(--ink); }
.lrow.r2 .rk { background: var(--silver); }
.lrow.r3 .rk { background: var(--bronze); color: #fff; }
.lrow .nm { font-family: var(--f-display); font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .sc { font-weight: 800; font-size: 20px; }
.lrow .meta { font-size: 12px; color: var(--muted); font-family: var(--f-body); }
.lrow.me { outline: 3px solid var(--gold); }
.lrow .tag { font-size: 11px; background: var(--card-2); border-radius: 999px; padding: 1px 7px; margin-inline-start: 6px; font-family: var(--f-body); vertical-align: middle; }

/* podium */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 24px 0 18px; }
.pod { flex: 1 1 0; max-width: 150px; text-align: center; }
.pod .nm { font-family: var(--f-display); font-size: 20px; margin-bottom: 6px; overflow-wrap: anywhere; }
.pod .blk {
  border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font-family: var(--f-display); font-size: 40px;
  color: var(--ink); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); animation: rise .9s cubic-bezier(.2, 1.2, .4, 1) both;
  transform-origin: bottom;
}
.pod .sc { font-size: 14px; font-weight: 700; margin-top: 6px; }
.pod.p1 .blk { height: 150px; background: var(--gold); animation-delay: .9s; }
.pod.p2 .blk { height: 110px; background: var(--silver); animation-delay: .5s; }
.pod.p3 .blk { height: 80px; background: var(--bronze); animation-delay: .1s; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.award { background: #fff; color: var(--ink); border-radius: 18px; padding: 12px; text-align: center; animation: pop .5s both; }
.award .ic { font-size: 34px; }
.award .t { font-weight: 700; color: var(--muted); font-size: 13px; }
.award .n { font-family: var(--f-display); font-size: 19px; overflow-wrap: anywhere; }
.award .d { font-size: 13px; color: var(--ink-2); }

/* toast */
.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow);
  font-weight: 600; animation: pop .3s both; max-width: calc(100% - 32px); text-align: center;
}
.toast.err { background: var(--bad); }

canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.conn { position: fixed; bottom: 8px; left: 8px; font-size: 12px; background: rgba(0, 0, 0, .4); padding: 3px 9px; border-radius: 999px; z-index: 40; }

/* ---------- admin console ---------- */
.agrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .agrid { grid-template-columns: minmax(0, 1fr); } }
.linkbox { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qrbox { background: #fff; padding: 8px; border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); line-height: 0; }
.qrbox canvas { width: 148px; height: 148px; image-rendering: pixelated; }
.linktext { direction: ltr; font-family: ui-monospace, Consolas, monospace; background: var(--card-2); border-radius: 10px; padding: 8px 10px; font-size: 14px; overflow-wrap: anywhere; }
.statepill { display: inline-block; border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 13px; background: var(--card-2); color: var(--ink-2); }
.statepill.live { background: #dff7ea; color: var(--good-d); }
.plist { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.prow { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--card-2); }
.prow .dot { width: 10px; height: 10px; border-radius: 50%; background: #c9c5da; }
.prow .dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(35, 193, 107, .2); }
.prow .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .st { font-size: 12px; border-radius: 999px; padding: 2px 8px; background: #fff; }
.prow .st.answered { background: #dff7ea; color: var(--good-d); }
.prow .st.choosing { background: #fff2d6; color: #a86a00; }
.prow .acts { display: flex; gap: 4px; }
.prow .acts button { border: 0; background: #fff; border-radius: 8px; padding: 4px 7px; font-size: 13px; }
.qlist { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.qitem { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--card-2); font-size: 15px; }
.qitem .i { font-weight: 800; color: var(--muted); }
.qitem .acts { display: flex; gap: 4px; }
.qitem .acts button { border: 0; background: #fff; border-radius: 8px; padding: 4px 7px; font-size: 13px; }
.bigq { font-family: var(--f-display); font-size: 24px; line-height: 1.3; margin: 6px 0 10px; }
.meter { font-size: 44px; font-weight: 800; color: var(--accent); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.votes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin-top: 10px; font-size: 14px; }
.votes div { background: var(--card-2); border-radius: 10px; padding: 6px 10px; }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.danger-zone { border: 2px dashed #ffd0d2; }
.empty { text-align: center; color: var(--muted); padding: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { border: 0; border-radius: 12px; padding: 10px 16px; background: var(--glass); color: #fff; font-weight: 700; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--accent); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: 13px; font-weight: 600; }
.tblwrap { overflow-x: auto; }
.gitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card-2); margin-bottom: 8px; }
.gitem .t { font-weight: 700; font-size: 17px; }
.gitem .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- TV screen ---------- */
body.tv { overflow: hidden; }
.tv .stage { position: relative; z-index: 1; height: 100dvh; display: flex; flex-direction: column; padding: 3vh 4vw; }
.tv .head { display: flex; justify-content: space-between; align-items: center; }
.tv .head h1 { font-family: var(--f-display); font-weight: 400; font-size: 4.5vh; margin: 0; }
.tv .head .sub { font-size: 2.6vh; opacity: .85; }
.tv .body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 0; }
.tv .qbig { font-family: var(--f-display); font-size: 6.5vh; text-align: center; background: #fff; color: var(--ink); padding: 3vh 4vw; border-radius: 3vh; box-shadow: var(--shadow); max-width: 90vw; }
.tv .tvcount { font-size: 12vh; font-weight: 800; margin-top: 4vh; }
.tv .tvlabel { font-size: 3vh; opacity: .85; }
.tv .join { display: flex; gap: 5vw; align-items: center; }
.tv .join .qrbox canvas { width: 34vh; height: 34vh; }
.tv .join .url { font-size: 3.2vh; direction: ltr; background: rgba(0, 0, 0, .25); padding: 1vh 2vw; border-radius: 1.5vh; }
.tv .names { display: flex; flex-wrap: wrap; gap: 1.2vh; justify-content: center; margin-top: 4vh; max-width: 90vw; }
.tv .names .chip { font-size: 3vh; padding: 1vh 2vw; background: var(--glass-2); color: #fff; }
.tv .bars { width: min(80vw, 1100px); gap: 1.6vh; }
.tv .bar { font-size: 3.4vh; grid-template-columns: 26% 1fr 6vh; }
.tv .bar .tr { height: 5vh; background: rgba(255, 255, 255, .15); }
.tv .who { font-family: var(--f-display); font-size: 8vh; color: var(--gold); text-align: center; line-height: 1.1; }
.tv .board { width: min(70vw, 900px); }
.tv .lrow .nm { font-size: 3.4vh; }
.tv .lrow .sc { font-size: 3.4vh; }
.tv .podium .nm { font-size: 3.6vh; }
.tv .podium .pod { max-width: 22vw; }
.tv .podium .p1 .blk { height: 30vh; } .tv .podium .p2 .blk { height: 22vh; } .tv .podium .p3 .blk { height: 16vh; }
.tv .timer { position: static; width: 14vh; height: 14vh; margin-top: 3vh; }
.tv .timer .num { font-size: 5vh; }
.hero.compact { padding: 8px 8px 12px; }
.hero.compact .emoji { font-size: 46px; }
.hero.compact h2 { font-size: 26px; margin-top: 4px; }
