@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,800&family=Inter:wght@400;600&display=swap');

:root {
  --bg: #0b0f2a;
  --bg2: #141a44;
  --cell: #1d2aa8;
  --cell-hi: #2a3bd4;
  --used: #151a3a;
  --gold: #ffcf3f;
  --text: #f2f3ff;
  --muted: #9aa0d0;
  --ok: #26c281;
  --bad: #ff5468;
  --radius: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #23308a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.45 Inter, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--display); margin: 0 0 .4em; letter-spacing: -.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.card { background: var(--bg2); border: 1px solid #262e6e; border-radius: var(--radius); padding: 20px; }
input {
  width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 10px;
  border: 2px solid #2d3680; background: #0d1233; color: var(--text); outline: none;
}
input:focus { border-color: var(--gold); }
input.code { text-transform: uppercase; letter-spacing: .3em; font-family: var(--display); font-weight: 800; text-align: center; font-size: 28px; }

button, .btn {
  font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer;
  background: #2d3680; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
button:hover { filter: brightness(1.15); }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.primary { background: var(--gold); color: #1a1600; }
.ok { background: var(--ok); color: #03150d; }
.bad { background: var(--bad); color: #1a0005; }
.small { padding: 6px 10px; font-size: 13px; }
.big { padding: 18px 26px; font-size: 20px; }
.full { width: 100%; }

.err { color: var(--bad); min-height: 1.4em; margin-top: 8px; }
.banner { background: #3a1020; border: 1px solid var(--bad); padding: 10px 14px; border-radius: 10px; margin: 10px 0; }

/* Spillepladen */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.board .cat {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(11px, 1.4vw, 16px);
  background: var(--cell); border-radius: 10px; padding: 12px 6px; text-align: center; min-height: 64px;
  display: flex; align-items: center; justify-content: center; line-height: 1.15;
}
.board .cell {
  background: var(--cell); border-radius: 10px; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; flex-direction: column;
  font-family: var(--display); font-weight: 800; color: var(--gold); font-size: clamp(18px, 3.4vw, 44px); border: 0; padding: 4px;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.board.clickable .cell:not(.used) { cursor: pointer; }
.board.clickable .cell:not(.used):hover { background: var(--cell-hi); transform: translateY(-2px); }
.board .cell.used { cursor: default; text-shadow: none; color: #fff; justify-content: flex-end; gap: 2px; padding: 6px 4px;
  background-repeat: no-repeat; background-position: center 28%; background-size: auto 52%; border: 3px solid transparent; }
.board .cell.used.none { background-color: var(--used); color: var(--muted); }
.board .cell.used.ok { background-color: #12603e; border-color: var(--ok); }
.board .cell.used.bad { background-color: #6b1726; border-color: var(--bad); }
.board .cell.used.sp-thief { background-image: url(/img/thief.svg); }
.board .cell.used.sp-double { background-image: url(/img/double.svg); }
.board .cell.used.sp-sing { background-image: url(/img/mic.svg); }
.board .cell .pts-small { font-family: Inter; font-weight: 600; font-size: clamp(8px, .9vw, 11px); opacity: .75; }
.board .cell .who-name { font-family: Inter; font-weight: 700; font-size: clamp(10px, 1.2vw, 15px); line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(0,0,0,.35); border-radius: 6px; padding: 2px 6px; }
.board .cell.active { outline: 3px solid var(--gold); }

/* Point */
.scores { display: flex; flex-direction: column; gap: 6px; }
.score { display: flex; align-items: center; gap: 8px; background: #10164a; border-radius: 10px; padding: 8px 12px; }
.score .name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score .pts { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 20px; min-width: 56px; text-align: right; }
.score.off { opacity: .45; }
.score.me { outline: 2px solid var(--gold); }
.score .badge { font-size: 11px; background: var(--gold); color: #1a1600; border-radius: 6px; padding: 1px 6px; }

/* Overlay for sang i gang */
.stage { text-align: center; padding: 26px 18px; }
.stage .catline { font-family: var(--display); text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.stage .pts { font-family: var(--display); font-size: 64px; font-weight: 800; color: var(--gold); line-height: 1; margin: 6px 0 16px; }
.who { font-family: var(--display); font-size: clamp(28px, 6vw, 64px); font-weight: 800; }
.answer { display: flex; gap: 16px; align-items: center; justify-content: center; text-align: left; flex-wrap: wrap; }
.answer img { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; background: #222; }
.answer .t { font-family: var(--display); font-size: 28px; font-weight: 800; }
.answer .a { color: var(--muted); font-size: 20px; }

.eq { display: inline-flex; gap: 5px; height: 40px; align-items: flex-end; margin: 10px 0; }
.eq i { width: 8px; background: var(--gold); border-radius: 3px; animation: eq 0.9s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: .15s } .eq i:nth-child(3) { animation-delay: .3s } .eq i:nth-child(4) { animation-delay: .45s } .eq i:nth-child(5) { animation-delay: .6s }
.eq.paused i { animation-play-state: paused; opacity: .4; }
@keyframes eq { 0%,100% { height: 8px } 50% { height: 40px } }

.progress { height: 8px; background: #10164a; border-radius: 4px; overflow: hidden; max-width: 420px; margin: 8px auto; }
.progress > div { height: 100%; width: 0; background: var(--gold); transition: width .1s linear; }

/* Buzz-knap */
.buzz {
  width: min(78vw, 360px); aspect-ratio: 1; border-radius: 50%; border: 0; margin: 20px auto; display: flex;
  font-family: var(--display); font-weight: 800; font-size: 48px; letter-spacing: .05em;
  background: radial-gradient(circle at 35% 30%, #ff8a98, var(--bad) 55%, #a8122a);
  color: #fff; box-shadow: 0 14px 0 #6b0718, 0 20px 40px rgba(0,0,0,.5); transition: transform .06s;
  user-select: none; touch-action: manipulation;
}
.buzz:active:not(:disabled) { transform: translateY(10px); box-shadow: 0 4px 0 #6b0718; }
.buzz:disabled { background: #2a2f55; box-shadow: 0 14px 0 #161a38; color: #6b70a0; opacity: 1; }

.facit { background: #0d1233; border: 2px dashed #3a438e; border-radius: 12px; padding: 12px; margin: 14px auto; max-width: 520px; }
.facit.blur .answer { filter: blur(14px); user-select: none; }

.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); padding: 14px 22px; border-radius: 12px; font-family: var(--display); font-size: 26px; font-weight: 800; z-index: 99; animation: pop .25s; }
@keyframes pop { from { transform: translateX(-50%) scale(.6); opacity: 0 } }

.logo { font-family: var(--display); font-weight: 800; font-size: 22px; }
.logo span { color: var(--gold); }
.codebox { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: .25em; color: var(--gold); }
#qr img, #qr canvas { background: #fff; padding: 8px; border-radius: 8px; }

.grid-host { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid-host { grid-template-columns: 1fr; } .board { gap: 4px; } .board .cat { min-height: 48px; padding: 6px 2px; } }

.tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; margin: 4px; }
.tag.gold { background: var(--gold); color: #1a1600; }
.tag.red { background: var(--bad); color: #fff; }
.countdown { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--text); }
.countdown.low { color: var(--bad); }
.countdown.paused { opacity: .45; }
.countbar { height: 6px; background: #10164a; border-radius: 3px; overflow: hidden; max-width: 420px; margin: 6px auto 0; }
.countbar > div { height: 100%; background: var(--ok); }
.special-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 7vw, 72px); color: var(--gold); text-transform: uppercase; line-height: 1; animation: pop .35s; }
.special-title.thief { color: var(--bad); }
.choices { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 16px auto; }
.choices button { justify-content: space-between; }
.judge { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin: 16px auto 0; }
.judge .both { grid-column: 1 / -1; }
.settings { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px 14px; align-items: center; font-size: 14px; }
.settings label { line-height: 1.3; }
.settings input, .settings select { width: 100%; font: inherit; padding: 8px 10px; font-size: 15px; border-radius: 8px; border: 1px solid #2d3680; background: #0d1233; color: var(--text); }
.settings .wide { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }

.sing-card { background: #0d1233 url(/img/mic.svg) no-repeat right 12px center / 70px; border: 2px solid var(--gold); border-radius: 14px; padding: 16px 90px 16px 18px; max-width: 520px; margin: 14px auto; text-align: left; }
.sing-card .t { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.sing-card .a { color: var(--muted); font-size: 18px; }
.sing-card .hint { margin-top: 10px; font-style: italic; font-size: 18px; color: var(--gold); }
.sing-card.big { max-width: 900px; background-size: 140px; padding-right: 170px; }
.sing-card.big .t { font-size: 56px; } .sing-card.big .a { font-size: 32px; } .sing-card.big .hint { font-size: 30px; }
.confirm { background: #0d1233; border: 2px solid var(--gold); border-radius: 12px; padding: 14px; max-width: 520px; margin: 16px auto 0; }
.confirm .q { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.catpick { text-align: left; margin: 16px 0; }
.catpick .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.chip { padding: 7px 12px; border-radius: 999px; background: #10164a; border: 1px solid #2d3680; font-size: 14px; font-weight: 600; }
.chip.on { background: var(--gold); color: #1a1600; border-color: var(--gold); }
.chip.usedcat { opacity: .45; }
.chip .x { margin-left: 6px; }
.catpick .bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.catpick .bar input { flex: 1; min-width: 180px; font-size: 15px; padding: 9px 12px; }

.sing-intro { text-align: center; padding: 10px 0; }
.sing-intro img { width: 140px; height: 140px; animation: micbounce .8s ease-in-out infinite alternate; filter: drop-shadow(0 0 24px rgba(255,207,63,.45)); }
.sing-intro .special-title { font-size: clamp(48px, 12vw, 96px); animation: zoomin .5s cubic-bezier(.2,1.6,.4,1); }
.sing-intro .sub { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--gold); margin-top: 6px; }
.sing-intro p { font-size: 18px; max-width: 460px; margin: 14px auto; }
.sing-intro .introcount { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 1; }
.sing-intro.big img { width: 260px; height: 260px; }
.sing-intro.big .special-title { font-size: 150px; }
.sing-intro.big .sub { font-size: 44px; }
.sing-intro.big p { font-size: 30px; max-width: 900px; }
.sing-intro.big .introcount { font-size: 140px; }
@keyframes micbounce { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.08); } }
@keyframes zoomin { from { transform: scale(.2); opacity: 0; } }

.allin-intro { text-align: center; padding: 10px 0; }
.allin-intro .flame { font-size: 90px; line-height: 1; animation: micbounce .5s ease-in-out infinite alternate; }
.allin-intro .headline { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--bad); font-size: clamp(30px, 7vw, 64px); line-height: 1.05; margin: 10px 0; animation: zoomin .5s cubic-bezier(.2,1.6,.4,1); text-shadow: 0 0 30px rgba(255,84,104,.45); }
.allin-intro p { font-size: 18px; max-width: 520px; margin: 10px auto; }
.allin-intro .introcount { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 1; }
.allin-intro.big .flame { font-size: 160px; }
.allin-intro.big .headline { font-size: 96px; }
.allin-intro.big p { font-size: 30px; max-width: 1000px; }
.allin-intro.big .introcount { font-size: 140px; }
.allin-btn { background: linear-gradient(135deg, #ff5468, #ff9a3c); color: #fff; font-family: var(--display); font-weight: 800; letter-spacing: .04em; }
.allin-btn.armed { background: var(--gold); color: #1a1600; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,207,63,.25); } }
.score .ai { font-size: 11px; color: var(--bad); font-weight: 700; }

/* Sidekolonne hos quizmasteren: mere luft */
.side .card { padding: 20px 22px; }
.side .card + .card { margin-top: 16px; }
.side h3 { font-size: 20px; margin-bottom: 12px; }
.side .scores { gap: 8px; }
.side .score { padding: 10px 12px; gap: 10px; }
.side .score .name { font-size: 16px; }
.side .score .pts { font-size: 22px; min-width: 64px; }
.side .score button.small { padding: 6px 11px; font-size: 15px; }
.side .help { font-size: 13px; line-height: 1.45; margin: 14px 0 0; }
.side .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.side .actions button { width: 100%; justify-content: center; padding: 10px 12px; }

/* Udskift kategori */
.board .cat { position: relative; padding-right: 30px; padding-left: 30px; }
.replace-btn { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  background: rgba(0,0,0,.28); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.replace-btn:hover:not(:disabled) { background: var(--gold); color: #1a1600; filter: none; }
.replace-btn:hover:not(:disabled) svg { transform: rotate(180deg); }
.replace-btn svg { transition: transform .35s; }
.board .cat.replacing { opacity: .75; }
.board .cat.replacing .replace-btn svg { animation: spin 1s linear infinite; }
.board .cell.waiting { opacity: .35; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .board .cat { padding-right: 26px; padding-left: 4px; } .replace-btn { width: 24px; height: 24px; top: 3px; right: 3px; } }

.grid-host > main, .grid-host > aside { min-width: 0; }
.wrap.host-wrap { max-width: 1480px; }
.board .cat .catname { overflow-wrap: anywhere; hyphens: auto; }

.score .name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.score .name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.score .name .badge, .score .name .ai { flex-shrink: 0; }
@media (max-width: 860px) {
  .board .cat { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 6px 2px 4px; font-size: 9px; }
  .board .cat .catname { overflow-wrap: break-word; hyphens: auto; }
  .board .cat .replace-btn { position: static; margin-top: auto; }
}

.anstimer { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px auto 0; max-width: 420px; }
.anstimer .lbl { color: var(--muted); font-size: 14px; }
.anstimer .num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; min-width: 56px; color: var(--gold); }
.anstimer .num.low { color: var(--bad); animation: anspulse 0.5s ease-in-out infinite; }
@keyframes anspulse { 50% { transform: scale(1.18); } }
.ansbar { height: 6px; background: #10164a; border-radius: 3px; overflow: hidden; max-width: 420px; margin: 6px auto 0; }
.ansbar > div { height: 100%; background: var(--gold); }
.waithost { background: #3a1020; border: 2px solid var(--bad); border-radius: 12px; padding: 14px; max-width: 520px; margin: 12px auto; }
.waithost .q { font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 10px; }

.board .cell.used.sp-terror { background-image: url(/img/bomb.svg); }
.terror-intro { text-align: center; padding: 10px 0; }
.terror-intro img { width: 130px; height: 130px; animation: shake .35s ease-in-out infinite; }
.terror-intro .headline { font-family: var(--display); font-weight: 800; color: var(--bad); font-size: clamp(36px, 9vw, 80px); line-height: 1; margin: 8px 0; animation: zoomin .5s cubic-bezier(.2,1.6,.4,1); text-shadow: 0 0 30px rgba(255,84,104,.5); }
.terror-intro .newcat { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 26px; text-transform: uppercase; }
.terror-intro p { font-size: 18px; max-width: 560px; margin: 12px auto; line-height: 1.45; }
.terror-intro .introcount { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; }
.terror-intro.big img { width: 220px; height: 220px; }
.terror-intro.big .headline { font-size: 130px; }
.terror-intro.big .newcat { font-size: 48px; }
.terror-intro.big p { font-size: 30px; max-width: 1100px; }
.terror-intro.big .introcount { font-size: 130px; }
@keyframes shake { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ---------- Podium ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 560px; margin: 20px auto 8px; }
.podium .slot { display: flex; flex-direction: column; align-items: center; text-align: center; animation: rise .7s cubic-bezier(.2,1.3,.4,1) both; min-width: 0; }
.podium .slot.me .step { box-shadow: 0 0 0 3px var(--gold) inset; }
.podium .medal { font-size: 44px; line-height: 1; margin-bottom: 4px; }
.podium .pname { font-family: var(--display); font-weight: 800; font-size: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .ppts { color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.podium .step { width: 100%; border-radius: 10px 10px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px;
  font-family: var(--display); font-weight: 800; font-size: 34px; color: rgba(255,255,255,.85); }
.podium .r1 .step { height: 150px; background: linear-gradient(#ffd75e, #c99a10); color: #3a2c00; }
.podium .r2 .step { height: 105px; background: linear-gradient(#e4e8f2, #8f97ad); color: #2a2f40; }
.podium .r3 .step { height: 75px; background: linear-gradient(#e7a66a, #9c5a22); color: #3a1e05; }
.podium.big { max-width: 1000px; gap: 18px; }
.podium.big .medal { font-size: 90px; }
.podium.big .pname { font-size: 40px; }
.podium.big .ppts { font-size: 28px; }
.podium.big .step { font-size: 70px; }
.podium.big .r1 .step { height: 300px; } .podium.big .r2 .step { height: 210px; } .podium.big .r3 .step { height: 150px; }
.stage .podium-rest .score .pts, .podium-rest .score .pts { font-size: 20px; margin: 0; line-height: 1.2; }
.myplace { text-align: center; font-family: var(--display); font-weight: 800; font-size: 20px; margin: 10px 0; }
.podium-rest { max-width: 420px; margin: 12px auto 0; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 200; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; animation-name: fall; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes fall { to { top: 105vh; transform: rotate(720deg) translateX(40px); } }
.welcome { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 7vw, 72px); line-height: 1.05; animation: zoomin .6s cubic-bezier(.2,1.6,.4,1); }
.welcome span { color: var(--gold); }

/* ALL IN-knappen ligger fast nederst på spillerens skærm */
.allin-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(11,15,42,0)); }
body.has-allin { padding-bottom: 110px; }
.rules { text-align: left; background: var(--bg2); border: 1px solid #262e6e; border-radius: var(--radius); padding: 14px 16px; margin: 16px auto 0; max-width: 560px; }
.rules h3 { font-size: 16px; margin: 10px 0 6px; color: var(--gold); }
.rules h3:first-child { margin-top: 0; }
.rules ul { margin: 0; padding-left: 18px; }
.rules li { font-size: 14px; line-height: 1.45; margin: 4px 0; }

.board .cell.used.sp-duel { background-image: url(/img/swords.svg); }
.duel-intro { text-align: center; padding: 10px 0; }
.duel-intro img { width: 120px; height: 120px; animation: shake .5s ease-in-out infinite; }
.duel-intro .headline { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: clamp(44px, 11vw, 96px); line-height: 1; animation: zoomin .5s cubic-bezier(.2,1.6,.4,1); }
.duel-intro .vs { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 8px 0; }
.duel-intro .vs i { color: var(--muted); font-style: normal; font-size: 18px; margin: 0 6px; }
.duel-intro p { font-size: 17px; max-width: 560px; margin: 10px auto; line-height: 1.45; }
.duel-intro .introcount { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; }
.duel-intro.big img { width: 200px; height: 200px; } .duel-intro.big .headline { font-size: 150px; }
.duel-intro.big .vs { font-size: 54px; } .duel-intro.big p { font-size: 28px; max-width: 1100px; } .duel-intro.big .introcount { font-size: 130px; }
.duel-status { max-width: 460px; margin: 14px auto; display: flex; flex-direction: column; gap: 8px; }
.duel-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #10164a; border-radius: 10px; padding: 10px 14px; font-size: 18px; }
.duel-row.win { outline: 3px solid var(--ok); }
.duel-answer { text-align: center; font-size: 20px; margin-top: 4px; }
.duel-answer b { color: var(--gold); font-family: var(--display); font-size: 28px; }
.years { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; margin: 16px auto; }
.years button { font-family: var(--display); font-weight: 800; font-size: 34px; padding: 22px 10px; background: var(--cell); color: var(--gold); border-radius: 14px; }
.years button.mine { background: var(--gold); color: #1a1600; }
.years button:disabled:not(.mine) { opacity: .35; }

/* Quizmaster: lobby i trin + tilsluttede spillere */
.gametitle { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--text); margin-left: 6px; padding-left: 12px; border-left: 2px solid #2d3680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.playersbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid #262e6e; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.playersbar .pbcount { margin-right: 6px; }
.playersbar .pbcount b { color: var(--gold); font-family: var(--display); font-size: 20px; }
.pchip { background: #1d2aa8; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 14px; animation: pop .25s; }
.pchip.off { background: #2a2f55; color: var(--muted); }
.lobby { display: flex; flex-direction: column; gap: 14px; }
.lobby .step { display: flex; gap: 16px; align-items: flex-start; text-align: left; }
.lobby .num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #1a1600; font-family: var(--display); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.lobby .sbody { flex: 1; min-width: 0; }
.lobby h3 { margin: 6px 0 10px; font-size: 20px; }
.lobby .catpick { margin: 0; }
.joinrow { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.joinrow #lobbyQr img { display: block; }
.joinurl { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--gold); word-break: break-all; }
