/* Quiz. Dark table, one question, answers as a stack of buttons.
 * The light chrome comes from game-chrome.css. This file is only the play. */

:root {
  --bg: #14110f;
  --surface: #211c18;
  --surface-2: #2b241f;
  --ink: #f6efe6;
  --muted: #b3a69c;
  --line: rgba(246, 239, 230, .14);
  --coral: #e0402e;
  --green: #35c98a;
  --red: #ff6046;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}
.screen { display: none; padding: 28px 0 72px; }
.screen.is-active { display: block; flex: 1; }
.shell { width: min(calc(100% - 36px), 880px); margin: 0 auto; }
.kicker {
  margin: 0 0 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
h1, h2 { font-family: "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.02em; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 28px 0 10px; }
.lede, .note { color: var(--muted); }
.lede { font-size: 18px; margin: 0 0 22px; }
.form-error { color: #ffb4a8; margin: 0 0 12px; }
.field { margin: 0 0 16px; }
.field label, .check { display: block; margin-bottom: 6px; font-weight: 600; }
input[type="text"], input[type="number"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
textarea { min-height: 84px; resize: vertical; }
.button, .quiz-pick {
  font: inherit;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.button-primary { background: var(--coral); color: white; font-weight: 700; }
.button-ghost, .button-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button-small { padding: 8px 12px; font-size: 14px; }
.setup-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quiz-list { display: grid; gap: 10px; }
.quiz-pick {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 14px 16px;
  flex-direction: column;
  align-items: flex-start;
}
.quiz-pick b { font-size: 18px; }
.quiz-pick span { color: var(--muted); font-size: 14px; }
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  color: var(--muted);
}
.lobby-cols { display: grid; gap: 16px; }
@media (min-width: 800px) { .lobby-cols { grid-template-columns: 1.1fr .9fr; } }
.lobby-card, .q-card, .score-row, .seat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.lobby-card { padding: 16px; }
.lobby-card-title { margin: 0 0 8px; font-size: 16px; }
.invite-row { display: flex; gap: 8px; }
.invite-url { flex: 1; }
.invite-scan { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.qr-box { background: white; padding: 8px; border-radius: 12px; }
.lobby-seats, .answer-strip, .scoreboard, .finish-board { display: grid; gap: 8px; }
.seat-chip, .score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.seat-chip.is-in { outline: 1px solid rgba(53, 201, 138, .7); }
.seat-dot { width: 12px; height: 12px; border-radius: 99px; flex: none; }
.score-row b, .seat-chip b { flex: 1; }
.score-row em, .seat-chip em { font-style: normal; color: var(--muted); }
.score-row.is-lead { background: var(--surface-2); }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.top-right { display: flex; gap: 8px; align-items: center; }
.link-button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; }
.duel-q { font-size: clamp(26px, 4vw, 40px); margin: 18px 0 6px; white-space: pre-wrap; }
.duel-sub { margin: 0 0 14px; color: var(--muted); font-size: 18px; }
.duel-clock { height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin: 8px 0 16px; }
.duel-clock span { display: block; height: 100%; width: 100%; background: var(--coral); }
.paused-bar { background: #3a2a12; color: #ffd457; padding: 8px 12px; border-radius: 10px; }
.pq-media { margin: 8px 0 16px; }
.pq-shot, .pq-frame { width: 100%; border-radius: 16px; background: black; }
.pq-shot { display: block; max-height: 420px; object-fit: contain; }
.pq-frame { aspect-ratio: 16 / 9; border: 0; }
.pq-audio { width: 100%; }
.pq-answers { display: grid; gap: 10px; }
.pq-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  min-height: 64px;
}
.pq-opt:disabled { cursor: default; }
.pq-letter {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #1a120f;
  background: var(--opt, var(--coral));
}
.pq-label { flex: 1; white-space: pre-wrap; }
.pq-opt.is-mine { outline: 2px solid white; }
.pq-opt.is-right { background: rgba(53, 201, 138, .18); }
.pq-opt.is-wrong { background: rgba(255, 96, 70, .16); }
.answer-strip { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 18px; }
.pq-ticker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.pq-ticker[hidden], .pq-feed[hidden] { display: none; }
.pq-ticker b {
  min-width: 3.2ch;
  font: 800 30px/1 "Space Grotesk", sans-serif;
  color: #ffd457;
  font-variant-numeric: tabular-nums;
}
.pq-feed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; min-height: 36px; }
.pq-feed:empty { display: none; }
.pq-feed-center { justify-content: center; margin: 18px 0 22px; }
.pq-feed-count {
  margin: 0 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pq-feed-center .pq-feed-count { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
.pq-feed-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--who) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--who) 60%, transparent);
  font-weight: 700;
  font-size: 15px;
  animation: pq-pop .45s cubic-bezier(.2, 1.6, .4, 1);
}
.pq-feed-chip i { width: 20px; height: 20px; border-radius: 99px; background: var(--who); position: relative; }
.pq-feed-chip i::after {
  content: "";
  position: absolute;
  left: 7px; top: 4px;
  width: 4px; height: 8px;
  border: solid #1a120f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@keyframes pq-pop {
  0% { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .pq-feed-chip { animation: none; } }
.q-card { padding: 16px; margin: 0 0 14px; }
.q-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.q-answer { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.q-answer input[type="text"] { flex: 1; }
.q-correct { width: 18px; height: 18px; flex: none; }
.media-panel { margin-top: 8px; }
.preview-img { max-width: 220px; border-radius: 12px; display: block; margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: auto; }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented button.on { background: var(--coral); color: white; border-color: transparent; }
.share-box { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mode-chosen { color: var(--muted); }
.mode-chosen a { color: var(--ink); }
.host-identity a { color: var(--ink); margin-left: 8px; }

/* One screen */
.local-names { display: grid; gap: 8px; max-width: 520px; }
.local-name { display: flex; align-items: center; gap: 10px; }
.local-name input { flex: 1; }
.local-center { text-align: center; padding-top: 8vh; }
.local-center .button { margin-top: 18px; }
.local-results { margin-top: 18px; }
.local-results .score-row em + em { min-width: 64px; text-align: right; color: var(--ink); font-weight: 700; }
.pq-opt em { font-style: normal; color: var(--muted); font-weight: 700; }

/* Builder. Same paper, cards and fields as the landing and account pages. Play screens stay dark. */
body.is-builder {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #102c2b;
  --muted: #6a7773;
  --line: rgba(16, 44, 43, .14);
  --coral: #ff6046;
  --coral-deep: #e94b33;
  --green: #26b8ae;
  --aqua: #26b8ae;
  --blue: #3d65e6;
  --yellow: #ffd457;
  --dark: #102725;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-builder .screen { padding: 0 0 72px; }
body.is-builder .form-error {
  width: min(calc(100% - 36px), 1120px);
  margin: 18px auto 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fdebe7;
  color: #c2341f;
  font-size: 15px;
}
body.is-builder .kicker { color: var(--coral); font-weight: 800; letter-spacing: .09em; }
body.is-builder h1 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
body.is-builder .lede { margin: 0; color: var(--muted); font-size: 18px; max-width: 60ch; }

.studio,
.finish { width: min(calc(100% - 36px), 1120px); margin: 0 auto; }
.studio-head { padding: 34px 0 26px; }
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.qb-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(16, 44, 43, .1);
}

/* fields */
body.is-builder input[type="text"],
body.is-builder input[type="url"],
body.is-builder input[type="number"],
body.is-builder textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
body.is-builder input:focus,
body.is-builder textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(38, 184, 174, .18);
}

/* buttons, as on the rest of the site */
body.is-builder .button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}
body.is-builder .button-primary { color: #fff; background: var(--coral); box-shadow: 0 8px 26px rgba(255, 96, 70, .3); }
body.is-builder .button-primary:hover { background: var(--coral-deep); }
body.is-builder .button-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .6); color: var(--ink); }
body.is-builder .button-ghost:hover { background: #fff; border-color: var(--ink); }
.button-block { width: 100%; }

/* question */
body.is-builder .q-prompt {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
  min-height: 120px;
  padding: 18px 20px;
  border-radius: 18px;
  resize: none;
  overflow: hidden;
  margin: 0 0 28px;
}
body.is-builder .q-prompt::placeholder { color: #9aa5a1; }

.media-h {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

/* answers: the quiz's own A–D colours, so the builder looks like what the room will see */
.q-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
body.is-builder .q-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px 8px 8px;
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
body.is-builder .q-answer:focus-within {
  background: #fff;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(38, 184, 174, .18);
}
body.is-builder .q-answer input[type="text"] {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
}
body.is-builder .q-answer input[type="text"]:focus { box-shadow: none; background: transparent; }
.q-letter {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: #e24b3b;
}
.q-answer:nth-child(4n + 2) .q-letter { background: #2eb8a8; color: #102c2b; }
.q-answer:nth-child(4n + 3) .q-letter { background: #f0c94a; color: #102c2b; }
.q-answer:nth-child(4n + 4) .q-letter { background: #3d62d6; }
body.is-builder .q-answer.is-right { background: #e9f7f5; border-color: rgba(38, 184, 174, .6); }
body.is-builder .q-correct {
  appearance: none;
  width: 30px;
  height: 30px;
  margin: 0;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 44, 43, .3);
  background: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
body.is-builder .q-correct:hover { border-color: var(--aqua); }
body.is-builder .q-correct:checked {
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M3 8.2 6.4 12 13 4'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--aqua);
}
.q-remove {
  width: 28px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.q-remove:hover { background: #f0efea; color: var(--ink); }
.add-answer {
  margin-top: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px dashed rgba(16, 44, 43, .28);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.add-answer:hover { background: #fbfbf9; border-color: var(--ink); }
.add-answer:disabled { opacity: .4; cursor: default; }

/* media + time */
.qb-extras {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.seconds-row { margin-top: 26px; }
.media-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.media-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: #eef4f0;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.media-tile:hover { transform: translateY(-1px); border-color: rgba(38, 184, 174, .55); background: #e8f2ec; }
.media-tile.on { background: #fff; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(38, 184, 174, .18); }
.tile-copy { display: grid; gap: 2px; min-width: 0; }
.tile-copy strong { font: 700 16px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.tile-copy small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.tile-ico { display: block; flex: none; }
.tile-image {
  width: 34px; height: 26px; border-radius: 6px;
  background: linear-gradient(155deg, #ff6046, #ffd457 55%, #26b8ae);
}
.tile-audio {
  width: 22px; height: 22px; margin: 0 6px; border-radius: 50%;
  background: #ff6046;
  box-shadow: 0 0 0 5px rgba(255, 96, 70, .2);
}
.tile-youtube { width: 34px; height: 24px; border-radius: 6px; background: #102c2b; position: relative; }
.tile-youtube::after {
  content: "";
  position: absolute;
  left: 13px; top: 6px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #ffd457;
}
.media-drawer {
  margin-top: 12px;
  padding: 18px;
  display: grid;
  gap: 12px;
  border-radius: 18px;
  background: #fbfbf9;
  border: 1px solid var(--line);
}
.file-pick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed rgba(16, 44, 43, .3);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.file-pick:hover { border-color: var(--aqua); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
body.is-builder .preview-img { display: block; max-width: 100%; max-height: 320px; border-radius: 14px; }
.preview-audio { width: 100%; }
.start-label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.start-label input { max-width: 160px; }
.media-drawer .text-quiet { justify-self: start; }

.seconds-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seconds-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.seconds-chip:hover { border-color: var(--ink); }
.seconds-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seconds-chip.is-none.on { background: var(--aqua); border-color: var(--aqua); }
.seconds-custom { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
body.is-builder .seconds-custom input { width: 92px; min-height: 40px; padding: 6px 12px; border-radius: 999px; }

/* side panel, the same shape as the start panel on a game page */
.qb-side { position: sticky; top: 90px; }
.qb-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(16, 44, 43, .12);
}
#deck { display: grid; gap: 8px; }
.deck-head {
  margin: 0 0 6px;
  font: 700 21px/1.1 "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}
.deck-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 14px;
  background: #eef4f0;
  border: 1px solid transparent;
  transition: border-color .15s, background .15s, opacity .15s;
}
.deck-item:hover { border-color: rgba(38, 184, 174, .55); }
.deck-item.on { background: #fff; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(38, 184, 174, .18); }
.deck-item.is-dragging { opacity: .45; }
.deck-item.is-over { border-color: var(--coral); border-style: dashed; }
.deck-item[draggable="true"] { cursor: grab; }
.deck-del {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s, background .15s, color .15s;
}
.deck-del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.deck-item:hover .deck-del, .deck-item.on .deck-del, .deck-del:focus-visible { opacity: 1; }
.deck-del:hover { background: rgba(255, 96, 70, .12); color: var(--coral-deep, #e0402e); }
.deck-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}
.deck-card b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  font: 700 14px/1 "Space Grotesk", sans-serif;
}
.deck-item.on .deck-card b { background: var(--ink); color: #fff; }
.deck-copy { min-width: 0; display: grid; gap: 1px; }
.deck-copy em {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deck-copy small { color: var(--muted); font-size: 12.5px; }
body.is-builder .deck-add {
  margin-top: 4px;
  color: #fff;
  background: var(--aqua);
  border: 0;
  box-shadow: 0 8px 22px rgba(38, 184, 174, .3);
}
body.is-builder .deck-add:hover { background: #1fa198; }
.studio-saved { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }

/* last step */
.finish { padding-top: 34px; }
.finish-sheet { max-width: 720px; margin: 0 auto; }
.summary {
  margin: 18px 0 4px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #eef4f0;
  font-weight: 700;
}
.field { margin: 0; }
.field label,
.field-label { display: block; margin: 20px 0 7px; font-size: 14px; font-weight: 700; }
.field-help { margin: 7px 0 0; font-size: 13.5px; color: var(--muted); }
.vis-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vis-card {
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: #eef4f0;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
}
.vis-card.on { background: #fff; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(38, 184, 174, .18); }
body.is-builder .check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
body.is-builder .check input { width: 18px; height: 18px; accent-color: var(--aqua); }
.finish-sheet > .button-block { margin-top: 26px; }
body.is-builder .share-box {
  margin-top: 20px;
  padding: 18px;
  display: grid;
  gap: 10px;
  border-radius: 18px;
  background: #eef4f0;
  border: 0;
}
.launch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.is-builder .button-tv { color: #fff; background: var(--ink); }
body.is-builder .button-live { color: var(--ink); background: var(--aqua); }
.quiet-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.text-quiet {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-quiet:hover { color: var(--ink); }
.text-quiet:disabled { opacity: .35; cursor: default; text-decoration: none; }

@media (max-width: 980px) {
  .studio-grid { grid-template-columns: 1fr; }
  .qb-side { position: static; }
}
@media (max-width: 680px) {
  .studio, .finish { width: min(calc(100% - 26px), 1120px); }
  .studio-head { padding: 22px 0 18px; }
  .qb-card { border-radius: 22px; }
  .q-answers,
  .media-tiles,
  .vis-cards,
  .launch-actions { grid-template-columns: 1fr; }
}

/* builder: dialog, recording, upload */
.pq-notice {
  width: min(420px, calc(100vw - 32px));
  padding: 28px 28px 22px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: #102c2b;
  box-shadow: 0 30px 80px rgba(16, 44, 43, .3);
  text-align: center;
}
.pq-notice::backdrop { background: rgba(16, 44, 43, .45); }
.pq-notice h2 { margin: 0 0 8px; font: 700 22px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.pq-notice p { margin: 0 0 18px; color: #5d6b69; line-height: 1.5; }
.pq-notice form { margin: 0; }
.pq-notice .button { min-width: 120px; min-height: 46px; border: 0; border-radius: 999px; font-weight: 800; color: #fff; background: #ff6046; cursor: pointer; }
body.is-builder .record-btn.is-live { background: #d7263d; animation: pq-rec 1.2s ease-in-out infinite; }
@keyframes pq-rec { 50% { box-shadow: 0 0 0 8px rgba(215, 38, 61, .18); } }
.upload-busy { margin: 0; font-weight: 700; color: var(--aqua); }
.seat-chip.is-waiting { border-style: dashed; opacity: .75; }
.seat-chip.is-waiting em { font-size: 13px; }
