body { overflow: hidden; }
  .stage { position: fixed; inset: 0 0 64px 0; display: flex; flex-direction: column; padding: 3vh 4vw; }
  .topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: clamp(16px, 1.6vw, 26px); }
  .topline .brand { font-size: clamp(20px, 2vw, 34px); }

  /* Stillingar */
  #setup { overflow-y: auto; inset: 0; }
  .setup-wrap { max-width: 980px; margin: 0 auto; width: 100%; padding-bottom: 40px; }
  .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 18px; }
  .panel h2 { margin: 0 0 14px; font-size: 18px; }
  .grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
  .row > .grow { flex: 1 1 260px; }
  .tracklist { list-style: none; margin: 12px 0 0; padding: 0; }
  .tracklist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
  .tracklist img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--bg2); }
  .tracklist .t { flex: 1; min-width: 0; }
  .tracklist .t b, .tracklist .t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tracklist .n { width: 26px; color: var(--muted); text-align: right; }
  .resume { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

  /* Biðsalur */
  .lobby { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4vw; align-items: center; }
  .qr { background: #fff; border-radius: 22px; padding: 2vh; aspect-ratio: 1; max-height: 62vh; justify-self: center; width: 100%; max-width: 62vh; }
  .qr svg { width: 100%; height: 100%; display: block; }
  .join-url { font-size: clamp(18px, 2.2vw, 38px); color: var(--muted); }
  .join-url b { color: var(--text); }
  .code { font-size: clamp(60px, 10vw, 170px); font-weight: 900; letter-spacing: .08em; line-height: 1; color: var(--accent); margin: 1vh 0 2vh; }
  .pcount { font-size: clamp(18px, 2vw, 32px); font-weight: 700; margin-bottom: 1.5vh; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 32vh; overflow: hidden; }
  .chips span { background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: clamp(14px, 1.3vw, 22px); }

  /* Spurning */
  .qhead { text-align: center; margin-top: 2vh; }
  .qhead h1 { font-size: clamp(28px, 4vw, 64px); margin: 0; font-weight: 900; }
  .qmid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6vw; }
  .timer { width: clamp(120px, 16vh, 200px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
           font-size: clamp(44px, 8vh, 96px); font-weight: 900; background: conic-gradient(var(--accent) var(--p, 100%), var(--card) 0); position: relative; }
  .timer::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
  .timer b { position: relative; }
  .answered { text-align: center; font-size: clamp(20px, 2.4vw, 40px); font-weight: 700; }
  .answered small { display: block; font-size: .5em; color: var(--muted); font-weight: 400; }
  .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vh 1.2vw; }
  .opt { border-radius: var(--radius); padding: 2.4vh 1.6vw; font-size: clamp(18px, 2.4vw, 42px); font-weight: 700; display: flex; align-items: center; gap: 1.2vw; min-height: 11vh; position: relative; overflow: hidden; transition: opacity .3s, transform .3s; }
  .opt .sh { font-size: .9em; opacity: .9; }
  .opt .lbl { flex: 1; min-width: 0; }
  .opt .cnt { font-size: .8em; font-weight: 900; }
  .opt .bar { position: absolute; left: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.75); }
  .opts.revealed .opt:not(.right) { opacity: .28; transform: scale(.97); }
  .opts.revealed .opt.right { outline: 5px solid #fff; }

  /* Rétt svar */
  .song { display: flex; align-items: center; gap: 2.5vw; justify-content: center; margin: 1vh 0 3vh; }
  .song img { width: clamp(110px, 20vh, 240px); aspect-ratio: 1; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); object-fit: cover; background: var(--card); }
  .song h2 { font-size: clamp(30px, 4.4vw, 76px); margin: 0; font-weight: 900; line-height: 1.05; }
  .song p { font-size: clamp(20px, 2.6vw, 44px); margin: .4vh 0 0; color: var(--muted); }
  .first { text-align: center; font-size: clamp(18px, 2vw, 34px); margin-bottom: 2vh; }
  .first b { color: var(--accent); }

  /* Stigatafla */
  .board { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 1100px; width: 100%; margin: 0 auto; gap: 1.1vh; }
  .board h1 { text-align: center; font-size: clamp(30px, 4vw, 64px); margin: 0 0 2vh; font-weight: 900; }
  .brow { display: grid; grid-template-columns: 3em 1fr auto; align-items: center; gap: 1vw; background: var(--card); border-radius: 12px; padding: 1.2vh 1.4vw; font-size: clamp(16px, 2vw, 34px); position: relative; overflow: hidden; }
  .brow .fill { position: absolute; inset: 0 auto 0 0; background: rgba(255,185,56,.14); }
  .brow > * { position: relative; }
  .brow .r { font-weight: 900; color: var(--accent); }
  .brow .s { font-weight: 700; }

  /* Verðlaunapallur */
  .podium { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2vw; padding-bottom: 2vh; }
  .pod { width: min(24vw, 320px); text-align: center; }
  .pod .name { font-size: clamp(20px, 2.6vw, 44px); font-weight: 900; margin-bottom: 1vh; overflow-wrap: anywhere; }
  .pod .pts { color: var(--muted); font-size: clamp(14px, 1.6vw, 26px); margin-bottom: 1vh; }
  .pod .block { border-radius: 14px 14px 0 0; display: grid; place-items: start center; padding-top: 2vh; font-size: clamp(40px, 6vw, 100px); font-weight: 900; color: #123647; }
  .pod.p1 .block { height: 40vh; background: var(--accent); }
  .pod.p2 .block { height: 28vh; background: #cfd3e6; }
  .pod.p3 .block { height: 20vh; background: #d99a63; }

  /* Stjórnborð */
  .bar-ctl { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
             background: rgba(15,12,24,.92); border-top: 1px solid var(--line); z-index: 5; }
  .bar-ctl .info { flex: 1; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 9; }

  @media (max-width: 800px) {
    body { overflow: auto; }
    .lobby { grid-template-columns: 1fr; }
    .opts { grid-template-columns: 1fr; }
  }

/* Val á leik */
.modes { display: flex; gap: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.modes a { color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.modes a.on { background: var(--accent); color: #123647; }

/* Tegund leiks: tónlist / spurningar / blandað */
.gtype { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.gtype button { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); transition: border-color .15s, background .15s; }
.gtype button:hover { border-color: var(--muted); }
.gtype button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: linear-gradient(0deg, rgba(255,185,56,.08), rgba(255,185,56,.08)), var(--card); }
.gtype svg { width: 30px; height: 30px; flex: 0 0 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.gtype button.on svg { color: var(--accent); }
.gtype b { display: block; font-size: 16px; }
.gtype small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 640px) { .gtype { grid-template-columns: 1fr; } }

/* Skrefanúmer reiknuð sjálfkrafa */
.setup-wrap { counter-reset: step; }
.panel.step:not(.hidden) > h2::before { counter-increment: step; content: counter(step) ". "; }
.setup-wrap[data-t="music"] .f-q, .setup-wrap[data-t="questions"] .f-music { display: none; }

/* Val á spurningum */
.qb-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.qb-head a { color: var(--accent); text-decoration: none; font-weight: 500; }
.qb-head a:hover { text-decoration: underline; }
.catpick { display: flex; flex-wrap: wrap; gap: 6px; }
.catpick button { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: 14px; }
.catpick button small { color: var(--muted); margin-left: 5px; font-size: 13px; }
.catpick button.on { background: var(--accent); border-color: var(--accent); color: #123647; font-weight: 500; }
.catpick button.on small { color: rgba(27,19,0,.7); }
.catpick .catkids { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.qfresh { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; margin: 0 0 12px !important; cursor: pointer; font-size: 14px; }
.qfresh input { width: 18px; height: 18px; accent-color: var(--accent); }
.tracklist .qi { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 6px; background: var(--bg2); display: grid; place-items: center; color: var(--accent); font-weight: 900; font-size: 20px; }
.tracklist .t small .ok { color: var(--good); }
.tracklist .t.wrap b { white-space: normal; }

/* Spurning á stóra skjánum */
.qhead .qcat { margin-top: .6vh; color: var(--accent); font-weight: 700; font-size: clamp(14px, 1.4vw, 24px); letter-spacing: .03em; }
.qtext { text-align: center; font-size: clamp(24px, 3.6vw, 62px); font-weight: 700; line-height: 1.2; max-width: 1400px; margin: 3vh auto 0; padding: 0 2vw; text-wrap: balance; }
#question.reveal .qtext { font-size: clamp(18px, 2.2vw, 38px); color: var(--muted); margin-top: 1.5vh; font-weight: 500; }
.qanswer { text-align: center; margin: 1.5vh 0 2vh; }
.qanswer .qa-lbl { color: var(--muted); font-size: clamp(13px, 1.3vw, 22px); text-transform: uppercase; letter-spacing: .14em; }
.qanswer h2 { font-size: clamp(34px, 5vw, 88px); margin: .4vh 0 0; font-weight: 900; color: var(--good); line-height: 1.05; }
.qanswer p { font-size: clamp(16px, 1.7vw, 30px); max-width: 1200px; margin: 1.4vh auto 0; line-height: 1.35; opacity: .92; }
.topline .modes { min-width: 0; }
.topline .brand { flex: 0 0 auto; }

/* Falinn listi (svörin sjást ekki á stóra skjánum) og föst „Búa til leik“-stika neðst */
.secret-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.secret-head h2 { margin: 0; }
.secret-note { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 15px; }
.secret-note svg { flex: 0 0 auto; color: var(--accent); }
.launchbar { position: sticky; bottom: 0; z-index: 6; margin: 18px -4px 0; padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -10px 30px rgba(0,0,0,.35); }
.launchbar .lb-info { flex: 1 1 220px; min-width: 0; font-size: 15px; color: var(--muted); }
.launchbar .lb-info b { color: var(--text); }
.launchbar input { width: 170px; }
.launchbar .err { flex-basis: 100%; margin: 0; }
@media (max-width: 560px) { .launchbar { padding: 10px 12px; gap: 8px 10px; } .launchbar .lb-info { flex-basis: 100%; } .launchbar input { flex: 1 1 100px; width: auto; min-width: 0; } .launchbar .btn { flex: 0 0 auto; } }
