:root {
  color-scheme: dark;
  --ink: #17132d;
  --ink-soft: #241d43;
  --paper: #fff9ef;
  --paper-2: #f8efe3;
  --muted: #a9a1bf;
  --violet: #7c4dff;
  --violet-dark: #5e32d8;
  --pink: #ff5f7d;
  --orange: #ffad43;
  --mint: #35d6bd;
  --blue: #65a8ff;
  --lime: #c9f36b;
  --danger: #ff6b78;
  --shadow: 0 30px 80px rgba(8, 4, 28, 0.34);
  --radius-xl: 36px;
  --radius-lg: 25px;
  --radius-md: 17px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 95, 125, 0.2), transparent 32rem),
    radial-gradient(circle at 85% 84%, rgba(53, 214, 189, 0.15), transparent 32rem),
    linear-gradient(145deg, #130f28, #211742 60%, #15172e);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.09);
  transform: rotate(24deg);
}

.ambient::before,
.ambient::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 35px currentColor;
}

.ambient::before { width: 9px; height: 9px; left: 24%; top: 15%; }
.ambient::after { width: 5px; height: 5px; right: 18%; bottom: 24%; }
.ambient-one { left: -8rem; top: 20%; color: var(--pink); }
.ambient-two { right: -9rem; bottom: 5%; color: var(--mint); transform: rotate(-18deg); }

.topbar {
  width: min(1440px, calc(100% - 38px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 8px 22px rgba(53, 214, 189, .25);
}

.live-pill,
.eyebrow,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.live-pill {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #d8d2ea;
  background: rgba(255, 255, 255, .06);
}

.live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(255, 95, 125, .13);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: .45; transform: scale(.82); } }

#app {
  width: min(1440px, calc(100% - 38px));
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
  margin: 0 auto;
  padding: 24px 0 64px;
}

.home-shell {
  min-height: calc(100vh - 150px);
  min-height: calc(100dvh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: clamp(35px, 7vw, 110px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy { max-width: 690px; }

.eyebrow {
  padding: 10px 14px;
  color: #23173d;
  background: var(--orange);
  transform: rotate(-2deg);
  box-shadow: 0 8px 22px rgba(255, 173, 67, .18);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 25px 0 21px;
  font-size: clamp(3.7rem, 8.5vw, 8.2rem);
  line-height: .86;
  letter-spacing: -.075em;
  font-weight: 950;
}

.gradient-word {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--orange) 42%, var(--lime));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 580px;
  margin-bottom: 28px;
  color: #c8c0db;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-meta span {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #e8e2f5;
  background: rgba(255,255,255,.05);
  font-size: .82rem;
  font-weight: 700;
}

.card {
  border: 1px solid rgba(255,255,255,.48);
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: linear-gradient(155deg, rgba(255,255,255,.97), rgba(248,239,227,.96));
  box-shadow: var(--shadow);
}

.join-card {
  position: relative;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
}

.join-card::before {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -55px;
  top: -54px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(145deg, var(--violet), var(--pink));
}

.join-card h2 { margin-bottom: 7px; font-size: 1.9rem; letter-spacing: -.04em; }
.join-card > p { margin-bottom: 27px; color: #686074; line-height: 1.5; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }

.field label,
.field-label {
  color: #4c455a;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #d8cfe0;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  transition: border-color .18s, box-shadow .18s;
}

input, select { min-height: 50px; padding: 0 15px; }
textarea { min-height: 92px; padding: 13px 15px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,77,255,.11); }
input::placeholder, textarea::placeholder { color: #a69dac; }

.code-input {
  text-transform: uppercase;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--violet);
  box-shadow: 0 9px 22px rgba(95, 50, 216, .23);
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s, box-shadow .16s, opacity .16s;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(95, 50, 216, .29); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button.full { width: 100%; min-height: 57px; }
.button.dark { background: var(--ink); box-shadow: 0 9px 22px rgba(23,19,45,.2); }
.button.pink { background: var(--pink); }
.button.mint { color: var(--ink); background: var(--mint); }
.button.orange { color: var(--ink); background: var(--orange); }
.button.ghost { color: var(--ink); border: 1px solid #d9d0e0; background: transparent; box-shadow: none; }
.button.danger { color: #a81932; border: 1px solid #ffc6ce; background: #fff0f1; box-shadow: none; }
.button.small { min-height: 39px; padding: 0 14px; border-radius: 11px; font-size: .84rem; }
.text-button { padding: 5px; border: 0; color: inherit; background: transparent; cursor: pointer; font-weight: 750; }

.form-error { min-height: 1.35em; margin: 3px 0 10px; color: #b62a43; font-size: .87rem; font-weight: 700; }

.screen-shell { max-width: 1100px; margin: 0 auto; }

.screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.screen-head h1 { margin: 4px 0 0; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: .95; }
.screen-head p { margin: 8px 0 0; color: var(--muted); }
.screen-head > .button.ghost { color: var(--paper); border-color: rgba(255,255,255,.28); }

.room-chip {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  color: var(--paper);
  background: rgba(255,255,255,.06);
  text-align: right;
}
.room-chip small { display: block; color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.room-chip strong { display: block; margin-top: 2px; font-size: 1.2rem; letter-spacing: .13em; }

.game-card { padding: clamp(24px, 5vw, 56px); }
.game-card.centered { text-align: center; }
.game-card h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.05em; }
.game-card > p { color: #625b70; line-height: 1.55; }

.lobby-orbit {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin: 4px auto 27px;
  border: 1px dashed rgba(124,77,255,.35);
  border-radius: 50%;
  animation: spin 13s linear infinite;
}
.lobby-orbit span { font-size: 2.8rem; animation: spin 13s linear reverse infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 25px 0 0; }
.player-cloud span { padding: 9px 13px; border-radius: 999px; color: #3c334b; background: #ede4f4; font-weight: 750; }

.question-top { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 25px; }
.category-chip { padding: 9px 13px; border-radius: 999px; color: #522c05; background: var(--orange); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.bonus-chip { display: inline-flex; margin-left: 8px; padding: 9px 13px; border-radius: 999px; color: white; background: var(--pink); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.question-progress { color: #746b80; font-size: .88rem; font-weight: 800; }
.question-title { max-width: 920px; margin-bottom: 30px; font-size: clamp(1.9rem, 4vw, 3.55rem); line-height: 1.06; letter-spacing: -.048em; }

.timer-track { width: 100%; height: 7px; margin-bottom: 24px; overflow: hidden; border: 0; border-radius: 99px; appearance: none; background: #e4dbe9; }
.timer-track::-webkit-progress-bar { border-radius: 99px; background: #e4dbe9; }
.timer-track::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--violet), var(--pink)); transition: width .25s linear; }
.timer-track::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--violet), var(--pink)); transition: width .25s linear; }

.answers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.answer-button,
.answer-display {
  position: relative;
  min-height: 91px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid transparent;
  border-radius: 19px;
  color: var(--ink);
  background: #f0e8f4;
  text-align: left;
  font-weight: 820;
}
.answer-button { cursor: pointer; transition: transform .16s, border-color .16s, background .16s; }
.answer-button:hover { transform: translateY(-2px); border-color: #c8b7e9; }
.answer-button.selected { border-color: var(--violet); background: #e4d9ff; box-shadow: 0 8px 22px rgba(124,77,255,.13); }
.answer-button.correct, .answer-display.correct { border-color: #1eaf98; background: #d9f7ef; }
.answer-button.wrong { border-color: var(--pink); background: #ffe1e6; }
.answer-button.joke-answer, .answer-display.joke-answer { overflow: hidden; border-color: rgba(255,95,125,.26); background: linear-gradient(118deg, #fff0bd, #ffd9e1); }
.answer-button.joke-answer::after, .answer-display.joke-answer::after { content: '🃏'; position: absolute; right: 10px; bottom: -13px; font-size: 2.5rem; opacity: .13; transform: rotate(-14deg); }
.joke-answer-label { display: block; margin-bottom: 3px; color: #9c3a54; font-size: .65rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.answer-letter { width: 35px; height: 35px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; color: white; background: var(--ink); font-size: .82rem; font-weight: 950; }
.answer-button:nth-child(2) .answer-letter, .answer-display:nth-child(2) .answer-letter { background: var(--pink); }
.answer-button:nth-child(3) .answer-letter, .answer-display:nth-child(3) .answer-letter { background: #258fcd; }
.answer-button:nth-child(4) .answer-letter, .answer-display:nth-child(4) .answer-letter { color: var(--ink); background: var(--orange); }
.answer-button:nth-child(5) .answer-letter, .answer-display:nth-child(5) .answer-letter { color: var(--ink); background: var(--mint); }
.answer-button:nth-child(6) .answer-letter, .answer-display:nth-child(6) .answer-letter { background: var(--violet); }
.joke-question-editor { border-color: rgba(255,95,125,.42); box-shadow: 0 15px 38px rgba(255,95,125,.08); }
.joke-option-editor { position: relative; border-color: rgba(255,95,125,.32); background: linear-gradient(118deg, #fff7d9, #ffe6eb); }
.option-editor-letter { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: white; background: var(--ink); font-size: .72rem; font-weight: 950; }
.joker-editor-label { padding: 5px 8px; border-radius: 99px; color: #9c3a54; background: #ffd4dc; font-size: .62rem; font-weight: 950; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.joke-format-help { margin: 10px 0 0; padding: 11px 14px; border-radius: 13px; color: #7d4050; background: #fff0c9; font-size: .8rem; font-weight: 750; }
.interlude-editor { margin: 17px 0; padding: 15px; border: 1px solid #d8cae8; border-radius: 17px; background: linear-gradient(135deg, #f1e9ff, #fff4d6); }
.interlude-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.interlude-editor-head strong, .interlude-editor-head small { display: block; }
.interlude-editor-head small { margin-top: 3px; color: #746b7d; font-size: .72rem; }
.interlude-editor-head select { width: min(220px, 45%); }
.interlude-editor .field { margin-top: 11px; }
.interlude-editor textarea { min-height: 88px; }
.prize-box-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.prize-box-toolbar .field { min-width: min(100%, 330px); margin: 0; }
.prize-pool { margin: 0 0 18px; padding: 17px; border: 1px solid #ddd2e5; border-radius: 22px; background: #fbf8fc; }
.prize-pool legend { padding: 0 9px; font-size: .9rem; font-weight: 950; }
.prize-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.prize-admin-card { min-width: 0; padding: 13px; border: 1px solid #e0d5e7; border-radius: 18px; background: white; box-shadow: 0 10px 26px rgba(60,36,83,.06); }
.prize-admin-card > img { width: 100%; height: 180px; display: block; object-fit: contain; border-radius: 14px; background: radial-gradient(circle, #fff5cf, #efe4f5); }
.prize-admin-card .field { margin-top: 10px; }
.prize-admin-card textarea { min-height: 78px; }
.prize-pool-toggle { display: flex; align-items: center; gap: 9px; margin: 10px 0 2px; padding: 8px 10px; border-radius: 12px; color: #4e4359; background: #f3edf7; font-size: .76rem; font-weight: 900; }
.prize-pool-toggle input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--violet); }
.prize-add-button { margin-top: 13px; }

.score-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 21px; border-top: 1px solid #ddd3e0; color: #625a6d; }
.score-strip strong { color: var(--ink); }
.answer-feedback { padding: 8px 13px; border-radius: 99px; font-size: .86rem; font-weight: 850; }
.answer-feedback.good { color: #096b5e; background: #d2f5ec; }
.answer-feedback.bad { color: #a51d36; background: #ffe2e7; }

.leaderboard { display: grid; gap: 10px; max-width: 760px; margin: 24px auto 0; }
.leader-row { min-height: 61px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 17px; border-radius: 17px; color: var(--ink); background: #f0e8f4; }
.leader-row:nth-child(1) { background: linear-gradient(90deg, #ffe59b, #fff3c9); transform: scale(1.015); }
.leader-row:nth-child(2) { background: linear-gradient(90deg, #e2e4ec, #f5f5fa); }
.leader-row:nth-child(3) { background: linear-gradient(90deg, #f6cead, #ffead7); }
.leader-rank { font-size: 1.2rem; font-weight: 950; }
.leader-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 850; }
.leader-score { color: #665e70; font-variant-numeric: tabular-nums; font-weight: 800; }

.waiting-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--violet); animation: pulse 1.4s infinite; }

.admin-shell { max-width: 1360px; margin: 0 auto; }
.admin-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-panel { min-width: 0; width: 100%; padding: 23px; border-radius: var(--radius-lg); color: var(--ink); background: var(--paper); box-shadow: 0 20px 55px rgba(8,4,28,.24); }
.admin-panel input, .admin-panel textarea, .admin-panel select { min-width: 0; max-width: 100%; }
.admin-panel.sticky { position: sticky; top: 18px; }
.admin-panel h2 { margin-bottom: 5px; font-size: 1.35rem; letter-spacing: -.03em; }
.admin-panel > p { color: #706779; font-size: .9rem; line-height: 1.5; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 19px 0; }
.admin-stat { padding: 14px; border-radius: 14px; background: #eee6f2; }
.admin-stat small { display: block; color: #786f80; font-size: .67rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.admin-stat strong { display: block; margin-top: 4px; font-size: 1.3rem; }
.status-chip { padding: 8px 10px; color: #5f3d05; background: #ffe3a8; }
.status-chip.question { color: #3c218f; background: #e3d8ff; }
.status-chip.intro { color: #8d2648; background: #ffd9e5; }
.status-chip.reveal { color: #08685b; background: #d7f7ef; }
.status-chip.interlude { color: #6d2b86; background: #f2d9ff; }
.status-chip.finished { color: #97263b; background: #ffe0e5; }
.status-chip.ceremony { color: #664600; background: #fff0aa; }
.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.admin-actions .button:first-child, .admin-actions .button.wide { grid-column: 1 / -1; }
.utility-links { display: flex; gap: 8px; margin-top: 13px; }
.utility-links .button { flex: 1; }

.kvisser-panel { margin-top: 18px; overflow: hidden; border: 1px solid #d9c9ef; border-radius: 20px; background: linear-gradient(160deg, #f1e9ff, #fff9ef 72%); box-shadow: 0 14px 34px rgba(86,50,170,.13); }
.kvisser-head { min-height: 61px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e2d7eb; }
.kvisser-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, var(--violet), var(--pink)); font-size: 1.08rem; font-weight: 950; }
.kvisser-head strong, .kvisser-head small { display: block; }
.kvisser-head strong { font-size: .9rem; }
.kvisser-head small { margin-top: 2px; color: #776d81; font-size: .65rem; font-weight: 750; }
.kvisser-online { padding: 5px 8px; border-radius: 99px; color: #096b5e; background: #d2f5ec; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.kvisser-messages { max-height: 215px; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; padding: 11px; }
.kvisser-message { max-width: 92%; padding: 9px 11px; border-radius: 13px 13px 13px 4px; color: #4d4559; background: white; font-size: .75rem; font-weight: 720; line-height: 1.4; box-shadow: 0 5px 14px rgba(34,19,62,.07); }
.kvisser-message.user { align-self: flex-end; border-radius: 13px 13px 4px 13px; color: white; background: var(--violet); }
.kvisser-message small { display: block; margin-top: 7px; padding-top: 7px; border-top: 1px solid #e9e1ed; color: #176c60; font-size: .66rem; }
.kvisser-form { padding: 10px; border-top: 1px solid #e2d7eb; }
.kvisser-form textarea { min-height: 63px; padding: 9px 11px; font-size: .78rem; }
.kvisser-form > div { display: flex; justify-content: space-between; gap: 7px; margin-top: 7px; }
.kvisser-form .button { min-height: 36px; font-size: .75rem; }

.host-remote { margin-top: 18px; padding: 15px; border-radius: 20px; color: var(--paper); background: linear-gradient(155deg, #261b4a, #17132d 68%); box-shadow: 0 16px 35px rgba(23,19,45,.24); }
.host-remote-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.12); }
.host-remote-head small, .host-remote-head strong { display: block; }
.host-remote-head small { margin-bottom: 2px; color: #bcb1d2; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.host-remote-head strong { font-size: 1rem; }
.host-remote-head > span { padding: 6px 8px; border-radius: 99px; color: var(--ink); background: var(--mint); font-size: .66rem; font-weight: 900; }
.host-shortcut-group { margin-top: 13px; }
.host-shortcut-group > span { display: block; margin-bottom: 7px; color: #c9bfd8; font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.host-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.host-shortcut { min-width: 0; min-height: 55px; display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: white; background: rgba(255,255,255,.08); cursor: pointer; text-align: left; }
.host-shortcut.global { background: rgba(53,214,189,.14); }
.host-shortcut.quiz { background: rgba(124,77,255,.18); }
.host-shortcut b { font-size: 1.15rem; }
.host-shortcut span { overflow: hidden; text-overflow: ellipsis; font-size: .72rem; font-weight: 850; line-height: 1.15; }
.host-shortcut:active { transform: scale(.97); }
.host-shortcut:disabled { opacity: .5; }
.host-custom-cue { margin-top: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; }
.host-custom-cue summary { padding: 10px 12px; cursor: pointer; font-size: .76rem; font-weight: 850; }
.host-custom-cue form { padding: 0 10px 10px; }
.host-custom-cue textarea { min-height: 70px; padding: 10px; border-color: rgba(255,255,255,.18); color: white; background: rgba(255,255,255,.08); }
.host-custom-cue form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; margin-top: 7px; }
.host-custom-cue select { min-height: 39px; padding: 0 9px; }
.host-remote > .button { margin-top: 9px; color: white; border-color: rgba(255,255,255,.2); }

.editor-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 20px; }
.editor-head p { margin: 4px 0 0; color: #706779; font-size: .88rem; }
.editor-head-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.quiz-library-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 16px; padding: 15px; border: 1px solid #dfd5e3; border-radius: 17px; background: #f2eaf5; }
.quiz-library-bar .field { margin: 0; }
.library-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 1px; }
.quiz-basics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #e0d7e3; }
.quiz-basics .field { margin: 0; }
.host-editor-section { padding: 21px 0 9px; border-bottom: 1px solid #e0d7e3; }
.editor-head.compact { margin-bottom: 13px; }
.editor-head.compact h3 { margin: 0; font-size: 1.08rem; }
.host-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.host-action-collection { min-width: 0; padding: 13px; border: 1px solid #ddd3e1; border-radius: 18px; background: #f3ebf5; }
.host-action-collection-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 9px; }
.host-action-collection-head strong, .host-action-collection-head small { display: block; }
.host-action-collection-head strong { font-size: .88rem; }
.host-action-collection-head small { margin-top: 2px; color: #7f7485; font-size: .65rem; }
.host-action-editor { margin-top: 7px; overflow: hidden; border: 1px solid #dfd5e3; border-radius: 13px; background: #fffdf8; }
.host-action-editor summary { min-height: 48px; display: grid; grid-template-columns: 27px minmax(0,1fr) auto 16px; align-items: center; gap: 7px; padding: 8px 10px; list-style: none; cursor: pointer; }
.host-action-editor summary::-webkit-details-marker { display: none; }
.host-action-editor summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.host-action-editor summary small { color: #83798a; font-size: .63rem; }
.host-action-editor-body { padding: 11px; border-top: 1px solid #e7dee8; }
.host-action-editor-body .field { margin-bottom: 9px; }
.host-action-editor-body textarea { min-height: 70px; }
.host-action-mini-grid { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 8px; }
.quiz-intro-editor { padding: 15px; border: 1px solid #ddd3e1; border-radius: 18px; background: linear-gradient(145deg, #fffdf8, #f2eaff); }
.quiz-intro-editor textarea { min-height: 120px; }
.sound-picker-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sound-picker { min-width: 0; margin: 0; padding: 12px; border: 1px solid #ddd3e1; border-radius: 17px; background: #f3ebf5; }
.sound-picker legend { padding: 0 7px; color: var(--ink); font-size: .78rem; font-weight: 900; }
.sound-picker label { min-width: 0; display: grid; grid-template-columns: 18px 20px minmax(0,1fr); align-items: center; gap: 6px; margin-top: 7px; padding: 8px; border: 1px solid #e2d8e5; border-radius: 12px; background: #fffdf8; cursor: pointer; }
.sound-picker input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--violet); }
.sound-picker strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.sound-picker audio { grid-column: 1 / -1; width: 100%; height: 30px; }

.question-editor { margin-top: 13px; overflow: hidden; border: 1px solid #dfd5e3; border-radius: 18px; background: #fffdf8; }
.question-editor summary { min-height: 67px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; list-style: none; cursor: pointer; }
.question-editor summary::-webkit-details-marker { display: none; }
.question-editor[open] summary { border-bottom: 1px solid #e5dce7; }
.question-number { width: 35px; height: 35px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; color: white; background: var(--violet); font-size: .8rem; font-weight: 900; }
.question-summary { min-width: 0; flex: 1; }
.question-summary small { display: block; margin-bottom: 2px; color: #8b8192; font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.question-summary strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; }
.drag-hint { color: #a89eae; }
.question-body { padding: 17px; }
.question-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
.question-row.host-copy-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 5px; }
.host-copy-row textarea { min-height: 76px; }
.option-editor { display: grid; grid-template-columns: 34px 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; margin-top: 9px; }
.option-editor input[type="radio"] { width: 22px; min-height: 22px; margin: 0 auto; accent-color: var(--violet); }
.option-editor input[type="text"] { min-height: 44px; }
.question-tools { display: flex; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #ebe3ec; }
.editor-footer { display: flex; justify-content: flex-end; gap: 9px; margin: 22px -7px -7px; padding: 12px; border: 1px solid rgba(213,202,218,.8); border-radius: 16px; background: rgba(255,249,239,.91); }

.ai-workshop { margin-top: 32px; padding-top: 25px; border-top: 2px solid #dfd5e3; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.provider-card { min-width: 0; margin: 0; padding: 17px; border: 1px solid #ddd3e1; border-radius: 18px; background: #fffdf8; }
.provider-card legend { padding: 0 7px; color: var(--ink); font-size: .9rem; font-weight: 900; }
.provider-card .field { margin-bottom: 11px; }
.provider-card input { min-height: 43px; }
.provider-dot { width: 9px; height: 9px; display: inline-block; margin-right: 5px; border-radius: 99px; background: var(--pink); }
.provider-dot.ready { background: var(--mint); box-shadow: 0 0 0 4px rgba(53,214,189,.13); }
.provider-mini-grid { display: grid; grid-template-columns: 1fr 130px; gap: 9px; }
.provider-save { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 2px 0; color: #746b7d; font-size: .81rem; font-weight: 700; }
.provider-button-row { display: flex; flex-wrap: wrap; gap: 7px; }
.character-studio { grid-column: 1 / -1; padding: 16px; border: 1px solid #d9cee0; border-radius: 19px; background: #f2eaf5; }
.character-studio-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.character-studio-head strong, .character-studio-head small { display: block; }
.character-studio-head small { margin-top: 4px; color: #766d7e; font-size: .72rem; }
.character-editor { margin-top: 8px; overflow: hidden; border: 1px solid #ded4e2; border-radius: 14px; background: #fffdf8; }
.character-editor summary { min-height: 48px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 18px; align-items: center; gap: 9px; padding: 9px 12px; list-style: none; cursor: pointer; }
.character-editor summary::-webkit-details-marker { display: none; }
.character-editor summary small { overflow: hidden; color: #7b7182; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.character-editor-body { padding: 13px; border-top: 1px solid #e7dee8; }
.character-editor-body textarea { min-height: 110px; }
.generation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 22px; }
.generation-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid #ded4e2; border-radius: 18px; background: #f3ebf5; }
.generation-card > strong { font-size: .96rem; }
.generation-card > p { min-height: 2.7em; margin: 5px 0 13px; color: #736a7b; font-size: .8rem; line-height: 1.4; }
.generation-card .field { margin-bottom: 10px; }
.generation-card textarea { min-height: 76px; }
.generation-card .button { margin-top: auto; }
.approval-check { display: flex; align-items: flex-start; gap: 8px; margin: 3px 0 13px; color: #625969; font-size: .76rem; font-weight: 750; line-height: 1.35; }
.approval-check input { width: 17px; min-height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--violet); }
.job-list { margin-top: 22px; }
.job-list h3 { margin-bottom: 10px; }
.job-row { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: 8px; padding: 10px 13px; border: 1px solid #e1d8e4; border-radius: 14px; background: #fffdf8; }
.job-row strong, .job-row small { display: block; }
.job-row small { margin-top: 3px; color: #807686; font-size: .7rem; }
.job-row audio { width: 250px; height: 36px; }
.job-image { width: 84px; height: 84px; display: block; object-fit: contain; border-radius: 13px; background: #f2eaf6; }

.admin-login { max-width: 470px; margin: 9vh auto 0; padding: clamp(29px, 5vw, 46px); }
.admin-login .brand-mark { width: 52px; height: 52px; margin-bottom: 25px; font-size: 1.3rem; }
.admin-login h1 { margin: 0 0 9px; font-size: 2.5rem; }
.admin-login > p { color: #6a6274; line-height: 1.5; }

.live-shell { width: min(1500px, 100%); min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px); display: grid; place-items: center; margin: 0 auto; }
.live-card { width: 100%; padding: clamp(32px, 5vw, 72px); }
.live-card .question-title { max-width: 1100px; font-size: clamp(2.8rem, 6vw, 6rem); }
.live-card .answer-display { min-height: 105px; font-size: clamp(1.05rem, 2vw, 1.45rem); }
.live-lobby-code { display: inline-block; margin: 9px 0 22px; padding: 13px 25px; border: 2px solid rgba(124,77,255,.23); border-radius: 18px; color: var(--violet-dark); background: #eee6ff; font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 950; letter-spacing: .14em; }
.live-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; color: #6b6376; font-weight: 800; }

body.live-mode { overflow: hidden; background: #120e28; }
body.live-mode .topbar { display: none; }
body.live-mode #app { width: 100%; min-height: 100vh; min-height: 100dvh; padding: 0; }
.live-lock-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #51204f, #211844 44%, #11152b); }
.live-lock-card { width: min(100%, 470px); padding: clamp(30px, 5vw, 48px); border: 1px solid rgba(255,255,255,.16); border-radius: 34px; color: #fff9ef; background: rgba(28,22,57,.88); box-shadow: 0 32px 90px rgba(3,2,17,.48); backdrop-filter: blur(22px); }
.live-lock-card h1 { margin: 10px 0 8px; font-size: clamp(2rem, 7vw, 3.25rem); line-height: .96; }
.live-lock-card > p { margin: 0 0 26px; color: rgba(255,249,239,.72); line-height: 1.55; }
.live-lock-card label { color: rgba(255,249,239,.82); }
.live-lock-card input { color: #17132d; background: #fff9ef; }
.live-lock-orbit { display: grid; width: 76px; height: 76px; margin-bottom: 22px; place-items: center; border-radius: 50%; font-size: 2rem; background: linear-gradient(135deg, #ff5f7d, #7c4dff); box-shadow: 0 0 0 10px rgba(255,95,125,.09), 0 14px 40px rgba(124,77,255,.35); }
.live-lock-button { position: fixed; z-index: 50; right: 18px; top: 72px; min-height: 40px; padding: 0 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,249,239,.8); background: rgba(17,21,43,.72); box-shadow: 0 8px 28px rgba(0,0,0,.2); backdrop-filter: blur(14px); cursor: pointer; }
.live-lock-button:hover { color: #fff; border-color: rgba(255,255,255,.42); }
.remotion-stage { width: 100vw; height: 100vh; height: 100dvh; display: grid; place-items: center; overflow: hidden; background: #120e28; }
.remotion-viewport { width: min(100vw, calc(100vh * 16 / 9)); width: min(100vw, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9; max-height: 100vh; max-height: 100dvh; }
.remotion-viewport > div { width: 100% !important; height: 100% !important; }
.live-sound-toggle { position: fixed; z-index: 40; right: 455px; bottom: 18px; min-height: 39px; padding: 0 13px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; color: #eee8f7; background: rgba(17,12,39,.76); box-shadow: 0 12px 32px rgba(0,0,0,.28); backdrop-filter: blur(15px); cursor: pointer; font-weight: 850; opacity: .72; }
.live-sound-toggle.armed { color: var(--ink); background: rgba(201,243,107,.9); opacity: .9; }
.live-sound-toggle:hover { opacity: 1; }
.live-hidden-menu { position: fixed; z-index: 80; right: 18px; top: 18px; display: grid; grid-template-columns: minmax(180px,1fr) auto auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: #f5f0e9; background: rgba(12,10,20,.88); box-shadow: 0 20px 60px rgba(0,0,0,.4); backdrop-filter: blur(16px); }
.live-hidden-menu strong, .live-hidden-menu small { display: block; }
.live-hidden-menu small { margin-top: 2px; color: #98929f; font-size: .64rem; }
.live-hidden-menu button { min-height: 38px; padding: 0 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; color: #eee8f2; background: rgba(255,255,255,.08); cursor: pointer; }

.loading-card { width: 240px; margin: 25vh auto 0; text-align: center; color: var(--muted); }
.spinner { width: 44px; height: 44px; margin: 0 auto 15px; border: 4px solid rgba(255,255,255,.12); border-top-color: var(--mint); border-radius: 50%; animation: spin 1s linear infinite; }
.empty-note { padding: 18px; border: 1px dashed #d8cfdd; border-radius: 14px; color: #817887; text-align: center; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: min(520px, calc(100% - 30px));
  padding: 12px 17px;
  border-radius: 13px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 14px 40px rgba(4,3,15,.36);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { color: white; background: var(--danger); }

@media (max-width: 900px) {
  .home-shell { grid-template-columns: 1fr; gap: 34px; padding: 25px 0 50px; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-meta { justify-content: center; }
  .join-card { width: min(520px, 100%); margin: 0 auto; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-panel.sticky { position: static; }
  .host-editor-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: 1fr; }
  .character-studio, .provider-save { grid-column: auto; }
  .live-sound-toggle { right: 12px; bottom: 12px; }
}

@media (max-width: 640px) {
  .topbar, #app { width: min(100% - 24px, 1440px); }
  .topbar { height: 70px; }
  #app { min-height: calc(100dvh - 70px); padding-top: 10px; }
  .home-shell { min-height: auto; }
  h1 { font-size: clamp(3.35rem, 18vw, 5.6rem); }
  .hero-copy > p { font-size: 1rem; }
  .join-card, .card { border-radius: 26px; }
  .screen-head { align-items: center; }
  .screen-head h1 { font-size: 2.35rem; }
  .screen-head p { display: none; }
  .room-chip { padding: 9px 11px; }
  .room-chip strong { font-size: 1rem; }
  .game-card { padding: 23px 17px; }
  .question-title { font-size: 1.8rem; }
  .answers-grid { grid-template-columns: 1fr; }
  .answer-button, .answer-display { min-height: 72px; padding: 13px; border-radius: 16px; }
  .score-strip { align-items: flex-start; flex-direction: column; gap: 9px; }
  .admin-panel { padding: 17px; border-radius: 20px; }
  .admin-actions { grid-template-columns: 1fr; }
  .admin-actions .button:first-child, .admin-actions .button.wide { grid-column: auto; }
  .host-remote { margin-left: -3px; margin-right: -3px; padding: 14px; }
  .host-shortcut { min-height: 61px; }
  .quiz-library-bar { grid-template-columns: 1fr; }
  .library-actions .button { flex: 1; }
  .quiz-basics, .question-row, .question-row.host-copy-row { grid-template-columns: 1fr; }
  .question-tools { flex-wrap: wrap; }
  .editor-head { align-items: flex-start; flex-direction: column; }
  .editor-footer { justify-content: stretch; }
  .editor-footer .button { flex: 1; }
  .provider-grid, .generation-grid { grid-template-columns: 1fr; }
  .provider-save { grid-column: auto; align-items: stretch; flex-direction: column; }
  .provider-mini-grid { grid-template-columns: 1fr; }
  .host-action-mini-grid { grid-template-columns: 1fr; }
  .sound-picker-grid { grid-template-columns: 1fr; }
  .prize-card-grid { grid-template-columns: 1fr; }
  .prize-box-toolbar { align-items: stretch; flex-direction: column; }
  .option-editor { grid-template-columns: 30px 26px minmax(0, 1fr); }
  .joker-editor-label { grid-column: 3; width: max-content; }
  .interlude-editor-head { align-items: stretch; flex-direction: column; }
  .interlude-editor-head select { width: 100%; }
  .job-row { align-items: stretch; flex-direction: column; }
  .job-row audio { width: 100%; }
  .live-card .question-title { font-size: 2.25rem; }
  .live-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Trivia Town 0.3 */
.section-kicker { display: block; margin-bottom: 7px; color: #746b83; font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading.compact { margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.section-heading a { color: #6540dc; font-weight: 800; text-decoration: none; }

.admin-mode { color: #211b31; background: #eeedf2; }
.admin-mode .ambient, .admin-mode > .topbar, .operator-mode .ambient, .operator-mode > .topbar, .profile-mode .ambient, .profile-mode > .topbar { display: none; }
.admin-mode #app { width: min(1540px, calc(100% - 34px)); min-height: 100vh; padding: 17px 0 55px; }
.station-admin-shell { color: #241e31; }
.station-nav { min-height: 68px; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 2.5fr) auto; align-items: center; gap: 22px; padding: 0 18px; border: 1px solid #d9d6df; border-radius: 19px; background: rgba(255,255,255,.88); box-shadow: 0 12px 35px rgba(37,28,56,.07); }
.station-wordmark { display: flex; flex-direction: column; text-decoration: none; }
.station-wordmark small { color: #7c728a; font-size: .65rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.station-wordmark strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.station-nav-links { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.station-nav-links a, .station-nav-actions a, .station-nav-actions button { min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border: 0; border-radius: 10px; color: #6e6679; background: transparent; font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
.station-nav-links a.active { color: #2e2352; background: #ebe5ff; }
.station-nav-actions { display: flex; align-items: center; gap: 3px; }
.station-nav-actions a { color: #fff; background: #242035; }
.station-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 48px 7px 27px; }
.station-page-head h1 { margin: 0 0 10px; font-size: clamp(2.6rem, 5vw, 5.1rem); line-height: .9; letter-spacing: -.065em; }
.station-page-head p { max-width: 680px; margin: 0; color: #716a79; line-height: 1.55; }
.station-page-actions { flex: 0 0 auto; }
.station-surface { padding: 24px; border: 1px solid #dcd8e0; border-radius: 20px; background: #fff; box-shadow: 0 15px 40px rgba(34,25,49,.055); }
.station-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.station-metrics article { min-height: 132px; display: flex; flex-direction: column; padding: 20px; border: 1px solid #ddd9e2; border-radius: 18px; background: #fff; }
.station-metrics small { color: #766f7d; font-weight: 750; }
.station-metrics strong { margin: auto 0 2px; font-size: 2.45rem; line-height: 1; letter-spacing: -.06em; }
.station-metrics span { color: #857e8a; font-size: .75rem; }
.station-dashboard-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 12px; }
.dashboard-wide { grid-column: 1 / -1; }
.station-current { background: linear-gradient(135deg,#fff 65%,#eee8ff); }
.station-current > p { max-width: 680px; color: #70697a; }
.current-show-meta, .surface-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.current-show-meta { margin: 24px 0; }
.current-show-meta span { padding: 8px 11px; border-radius: 9px; color: #625970; background: #f1eff4; font-size: .77rem; }
.compact-row, .history-row, .run-row { display: grid; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #ebe8ed; }
.compact-row { grid-template-columns: 64px 1fr; }
.compact-row time { display: grid; min-height: 44px; place-items: center; border-radius: 11px; color: #5938c5; background: #ece6ff; font-size: .76rem; font-weight: 900; }
.compact-row strong, .compact-row small, .history-row strong, .history-row small { display: block; }
.compact-row small, .history-row small, .run-row small { margin-top: 3px; color: #817987; font-size: .72rem; }
.run-row { grid-template-columns: minmax(0,1fr) 100px 90px; }
.run-row > :last-child { text-align: right; }
.run-status { justify-self: start; padding: 5px 8px; border-radius: 7px; color: #51485d; background: #ece9ef; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.run-status.completed { color: #146454; background: #d9f4eb; }

.station-lock-banner { margin-bottom: 12px; padding: 14px 17px; border: 1px solid #e6b85a; border-radius: 13px; color: #62450a; background: #fff2d5; font-weight: 750; }
.shows-layout { display: grid; grid-template-columns: minmax(230px,.58fr) minmax(0,1.42fr); gap: 12px; }
.show-list { display: flex; flex-direction: column; gap: 7px; }
.show-list-item { width: 100%; display: flex; flex-direction: column; gap: 5px; padding: 17px; border: 1px solid #dbd7df; border-radius: 15px; color: #282130; background: rgba(255,255,255,.72); text-align: left; cursor: pointer; }
.show-list-item.active { border-color: #7552e8; background: #fff; box-shadow: inset 4px 0 #7552e8, 0 10px 26px rgba(52,34,99,.09); }
.show-list-item strong { font-size: .93rem; }
.show-list-item small, .show-type { color: #817987; font-size: .69rem; }
.show-type { font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.show-settings .section-heading > span { padding: 6px 9px; border-radius: 8px; color: #554375; background: #eee8ff; font-size: .7rem; font-weight: 800; }
.settings-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.settings-two-col .span-two { grid-column: 1 / -1; }
.station-admin-shell .field label { color: #6e6576; }
.station-admin-shell input, .station-admin-shell textarea, .station-admin-shell select { color: #241c31; background: #f8f7f9; }
.station-admin-shell textarea { min-height: 98px; }
.show-editor-tabs { width: max-content; max-width: 100%; display: flex; gap: 4px; margin: 18px 0 0; padding: 4px; overflow-x: auto; border: 1px solid #d8d4de; border-radius: 13px; color: #5d5568; background: #fff; }
.show-editor-tabs a { padding: 9px 13px; border-radius: 9px; font-size: .77rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.show-editor-tabs a.active { color: #fff; background: #282235; }
.split-admin-editor .station-nav { margin-bottom: 0; }
.split-admin-editor .admin-grid { display: block; }
.split-admin-editor .admin-panel.sticky { display: none; }
.split-admin-editor .admin-panel { margin-top: 8px; }
.split-admin-editor.questions-only .host-editor-section, .split-admin-editor.questions-only .ai-workshop { display: none; }
.split-admin-editor.presentation-only #question-list, .split-admin-editor.presentation-only .ai-workshop, .split-admin-editor.presentation-only .prize-section { display: none; }

.calendar-layout, .settings-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.agenda-item { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid #eae7ed; }
.agenda-item time { min-height: 64px; display: grid; place-content: center; border-radius: 14px; color: #fff; background: #2a2338; text-align: center; }
.agenda-item time b { font-size: 1.5rem; line-height: 1; }
.agenda-item time span { margin-top: 3px; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.agenda-item h3 { margin: 4px 0; font-size: 1.12rem; }
.agenda-item p { margin: 0; color: #776f7e; font-size: .8rem; }
.history-row { grid-template-columns: 1fr auto; }
.history-row > :last-child { text-align: right; }

.prize-box-tabs { display: flex; gap: 5px; margin-bottom: 12px; overflow-x: auto; }
.prize-box-tabs button { padding: 10px 14px; border: 1px solid #d9d5df; border-radius: 11px; color: #635b6e; background: #fff; font-weight: 800; cursor: pointer; }
.prize-box-tabs button.active { color: #fff; border-color: #2c2538; background: #2c2538; }
.prize-box-page { display: none; }
.prize-box-page.active { display: block; }
.prize-library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.prize-library-grid article { overflow: hidden; border: 1px solid #ddd8e0; border-radius: 16px; background: #faf9fb; }
.prize-library-grid img { width: 100%; aspect-ratio: 1.35; display: block; object-fit: cover; }
.prize-library-grid article > div { padding: 13px; }
.prize-library-grid small { color: #7955d5; font-weight: 900; text-transform: uppercase; }
.prize-library-grid input, .prize-library-grid textarea { margin-top: 8px; }
.prize-library-grid textarea { min-height: 82px; }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 16px; }

.character-designer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.character-design-card textarea { min-height: 150px; }
.character-role-row { display: grid; grid-template-columns: 68px 1fr; align-items: end; gap: 13px; }
.character-monogram { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 21px; color: #211b2f; background: var(--lime); font-size: 1.6rem; font-weight: 950; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.character-monogram[style*="coral"] { background: #ff8c82; }
.character-monogram[style*="violet"] { color: #fff; background: #8668e8; }
.character-monogram[style*="blue"] { background: #84b8ff; }

.asset-filter-row { display: flex; justify-content: space-between; margin-bottom: 18px; color: #776f7f; }
.asset-filter-row span { font-weight: 900; }
.asset-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.asset-grid article { overflow: hidden; border: 1px solid #dcd7df; border-radius: 15px; background: #faf9fb; }
.asset-grid img, .asset-audio-mark { width: 100%; aspect-ratio: 1.45; display: grid; place-items: center; object-fit: cover; color: #d8cfef; background: linear-gradient(145deg,#2f2741,#171323); font-size: .68rem; font-weight: 950; letter-spacing: .18em; }
.asset-grid article > div:last-child { padding: 12px; }
.asset-grid small, .asset-grid strong { display: block; }
.asset-grid small { color: #756a81; font-size: .67rem; font-weight: 850; text-transform: uppercase; }
.asset-grid audio { width: 100%; margin-top: 9px; }
.asset-live-only { display: block; margin-top: 9px; color: #746b7c; font-size: .69rem; }
.secure-label { padding: 6px 9px; border-radius: 8px; color: #15624f; background: #d9f3e9; font-size: .66rem; font-weight: 900; text-transform: uppercase; }

/* Operator command surface */
.operator-mode { color: #f3f0e9; background: #0c0e12; }
.operator-mode #app { width: min(1580px, calc(100% - 28px)); min-height: 100vh; padding: 14px 0 40px; }
.operator-login-shell { min-height: calc(100vh - 30px); display: grid; place-items: center; }
.operator-login-card { width: min(510px,100%); padding: 38px; border: 1px solid #30333b; border-radius: 24px; background: #16181e; box-shadow: 0 35px 100px rgba(0,0,0,.5); }
.operator-login-card h1 { margin: 16px 0 13px; font-size: clamp(2.8rem,7vw,5rem); line-height: .87; }
.operator-login-card p { color: #999da6; line-height: 1.55; }
.operator-login-card input, .operator-login-card select { color: #f6f3ed; border-color: #393d46; background: #22252c; }
.operator-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 5px; }
.operator-header h1 { margin: 8px 0 3px; font-size: clamp(2.1rem,4.5vw,4.4rem); line-height: .9; letter-spacing: -.06em; }
.operator-header p { margin: 0; color: #898d95; }
.operator-header-actions { display: flex; gap: 7px; }
.operator-mode .operator-header-actions .button.ghost { color: #f3f0e9; border-color: #454953; background: #1b1d23; }
.operator-mode .operator-header-actions .button.ghost:hover { color: #161a0d; border-color: #b8f06a; background: #b8f06a; }
.operator-onair { display: inline-flex; align-items: center; gap: 8px; color: #ff6e70; font-size: .68rem; font-weight: 950; letter-spacing: .13em; }
.operator-onair i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d55; box-shadow: 0 0 0 5px rgba(255,77,85,.11); }
.operator-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(330px,.65fr); gap: 10px; }
.operator-grid > *, .operator-primary, .operator-side { min-width: 0; }
.operator-primary, .operator-side { display: flex; flex-direction: column; gap: 10px; }
.operator-now-card, .operator-scene-card, .stats-card, .operator-cues { border: 1px solid #2a2d34; border-radius: 18px; background: #15171c; }
.operator-now-card { min-height: 470px; display: flex; flex-direction: column; padding: 24px; }
.operator-now-head { display: flex; align-items: center; justify-content: space-between; }
.operator-now-head .section-kicker, .operator-scene-card .section-kicker, .operator-side .section-kicker { color: #777d87; }
.operator-big-message { max-width: 780px; margin: auto 0; }
.operator-big-message small, .operator-question > small { color: #b8f06a; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.operator-big-message h2, .operator-question h2 { margin: 10px 0 14px; font-size: clamp(2.3rem,4vw,4.4rem); line-height: .94; letter-spacing: -.055em; }
.operator-big-message p { color: #9da1aa; line-height: 1.55; }
.operator-lobby { margin: auto 0; }
.operator-prize-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 7px; margin-top: 20px; padding: 13px; border: 1px solid #30333b; border-radius: 13px; background: #1b1d22; }
.operator-prize-form label { color: #81858e; }
.operator-prize-form .field { min-width: 0; }
.operator-prize-form select { width: 100%; min-width: 0; max-width: 100%; color: #ece9e3; border-color: #373a42; background: #25272d; }
.operator-prize-form button { min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; color: #17200c; background: #b8f06a; font-weight: 900; cursor: pointer; }
.operator-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.operator-options span { min-height: 60px; display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid #32353d; border-radius: 12px; color: #b4b7bd; background: #1c1e24; }
.operator-options span.correct { color: #19210d; border-color: #b8f06a; background: #b8f06a; }
.operator-options b { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #e9e6ec; background: #363942; }
.operator-transport { display: grid; grid-template-columns: 1.5fr 1fr; gap: 7px; margin-top: auto; padding-top: 18px; }
.operator-transport button { min-height: 62px; border: 1px solid #343840; border-radius: 12px; color: #d6d5d9; background: #22242a; font-weight: 900; cursor: pointer; }
.operator-transport .transport-primary { color: #18200e; border-color: #b8f06a; background: #b8f06a; font-size: 1.05rem; }
.operator-transport .transport-primary.warm { color: #25170b; border-color: #ffad62; background: #ffad62; }
.operator-scene-card, .stats-card, .operator-cues { padding: 19px; }
.operator-scene-card .section-heading > span { color: #8d9199; font-size: .72rem; }
.scene-control-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.scene-control-grid button, .camera-strip button, .operator-cue-grid button { min-height: 48px; border: 1px solid #34373f; border-radius: 10px; color: #b9bbc1; background: #202228; font-size: .75rem; font-weight: 800; cursor: pointer; }
.scene-control-grid button.active, .camera-strip button.active { color: #17200c; border-color: #b8f06a; background: #b8f06a; }
.scene-control-grid .stop-show { color: #ffb9bb; border-color: rgba(255,94,98,.38); background: rgba(255,76,82,.09); }
.camera-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; margin-top: 7px; }
.camera-strip button { min-height: 37px; }
.stats-card > .section-heading > strong { font-size: 2rem; }
.stat-meter { display: flex; justify-content: space-between; color: #a6a9b0; font-size: .78rem; }
.stat-meter b { color: #f3f0e9; }
.stats-card progress { width: 100%; height: 8px; margin: 9px 0 17px; accent-color: #b8f06a; }
.operator-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.operator-stat-grid div { padding: 12px; border-radius: 10px; background: #202228; }
.operator-stat-grid small, .operator-stat-grid strong { display: block; }
.operator-stat-grid small { color: #858991; font-size: .65rem; }
.operator-stat-grid strong { margin-top: 4px; font-size: 1.05rem; text-transform: capitalize; }
.operator-insight { margin: 12px 0 0; padding: 11px; border-left: 3px solid #b8f06a; color: #a8abb1; background: #1e211c; font-size: .74rem; line-height: 1.4; }
.operator-insight.warning { border-color: #ffad62; background: #251f19; }
.operator-cue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.operator-cue-grid button { padding: 9px; text-align: left; }
.operator-cue-grid strong, .operator-cue-grid small { display: block; }
.operator-cue-grid small { margin-top: 2px; color: #7f838c; font-size: .63rem; }

/* Content library, sequences and live production */
.quiz-landing-copy > p { max-width: 720px; }
.landing-cast { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.landing-cast > span { display: grid; padding: 10px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.07); }
.landing-cast b { color: #fff9ef; font-size: .8rem; }
.landing-cast small { margin-top: 2px; color: #aaa3ba; font-size: .63rem; font-weight: 800; }
.landing-room-badge { display: inline-flex; padding: 7px 10px; border-radius: 99px; color: #342046; background: #c9f36b; font-size: .68rem; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; }
.question-library-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) 220px auto auto; align-items: end; gap: 8px; margin-bottom: 14px; }
.question-library-page-results { display: grid; gap: 10px; }
.library-question-card, .question-bank-result { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.58); }
.library-question-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px; cursor: pointer; list-style: none; }
.library-question-card > summary span { display: grid; gap: 4px; }
.library-question-card > summary small, .library-question-card > summary em { color: var(--violet); font-size: .68rem; font-style: normal; font-weight: 850; }
.library-question-card > summary b { color: var(--muted); font-size: .7rem; }
.library-question-body { display: grid; gap: 13px; padding: 0 17px 17px; }
.question-production-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.question-bank-result { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 14px; }
.question-bank-result > div { min-width: 0; display: grid; gap: 4px; }
.question-bank-result small, .question-bank-result span { color: var(--muted); font-size: .68rem; }
.question-bank-dialog { width: min(980px,calc(100% - 24px)); max-height: 86vh; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 40px 120px rgba(32,20,49,.32); }
.question-bank-dialog::backdrop { background: rgba(18,13,31,.62); backdrop-filter: blur(8px); }
.question-bank-dialog > div { padding: 24px; }
.question-library-grid, .sequence-builder-list { display: grid; gap: 12px; }
.question-library-card, .sequence-editor { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.58); }
.question-library-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px; }
.question-library-card h3 { margin: 6px 0; font-size: 1.15rem; }
.question-library-card p { margin: 0; color: var(--muted); }
.question-library-card small, .library-reference { color: var(--violet); font-weight: 850; }
.sequence-editor > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px; cursor: pointer; list-style: none; }
.sequence-editor > summary span:first-child { display: grid; gap: 4px; }
.sequence-editor-body { display: grid; gap: 18px; padding: 0 19px 19px; }
.sequence-lines { display: grid; gap: 8px; }
.sequence-line { display: grid; grid-template-columns: 28px 150px minmax(220px,1fr) 130px 180px; align-items: start; gap: 7px; }
.sequence-line > span { display: grid; height: 42px; place-items: center; border-radius: 9px; background: var(--ink); color: white; font-weight: 900; }
.sequence-ready, .fallback-status { padding: 7px 10px; border-radius: 99px; font-size: .68rem; font-weight: 900; }
.sequence-ready.ready, .fallback-status.ready, .operator-sequence-grid .ready { color: #173f35; background: #b9f3dd; }
.sequence-ready.blocked, .fallback-status.blocked, .operator-sequence-grid .blocked { color: #652927; background: #ffd1cc; }
.asset-preflight { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff8e7; }
.asset-preflight-list { display: grid; gap: 6px; }
.asset-preflight-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.operator-timeline-card, .operator-production-card, .operator-participant-card { padding: 19px; border: 1px solid #2a2d34; border-radius: 18px; background: #15171c; }
.operator-timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px,1fr); gap: 7px; overflow-x: auto; padding-bottom: 6px; }
.timeline-item { min-height: 118px; display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 12px; border: 1px solid #30333b; border-radius: 12px; background: #1d1f25; }
.timeline-item i { width: 7px; height: 100%; border-radius: 99px; background: #454953; }
.timeline-item.now i { background: #b8f06a; box-shadow: 0 0 18px rgba(184,240,106,.4); }
.timeline-item.done { opacity: .45; }
.timeline-item > div { min-width: 0; }
.timeline-item small, .timeline-item strong, .timeline-item span { display: block; }
.timeline-item small { color: #b8f06a; font-size: .59rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.timeline-item strong { margin-top: 5px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; }
.timeline-item span { margin-top: 5px; color: #7e838c; font-size: .65rem; }
.timeline-item button { grid-column: 1/-1; min-height: 32px; border: 0; border-radius: 8px; color: #14200a; background: #b8f06a; font-weight: 900; cursor: pointer; }
.timeline-item button:disabled { color: #858891; background: #2b2e35; cursor: not-allowed; }
.operator-live-sequence { margin: auto 0; }
.operator-live-sequence h2 { margin: 12px 0; font-size: clamp(2.4rem,5vw,5rem); line-height: .9; }
.operator-live-flag { display: inline-block; padding: 8px 11px; border-radius: 8px; color: #250b0d; background: #ff7378; font-size: .7rem; font-weight: 950; letter-spacing: .12em; }
.operator-sequence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.operator-sequence-grid article { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #30333b; border-radius: 11px; background: #1e2026; }
.operator-sequence-grid article > div:first-child { min-width: 0; display: grid; gap: 4px; }
.operator-sequence-grid article small { color: #878c95; font-size: .58rem; font-weight: 900; letter-spacing: .09em; }
.operator-sequence-grid article strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.operator-sequence-grid article span { width: max-content; padding: 4px 6px; border-radius: 99px; font-size: .56rem; font-weight: 900; }
.operator-sequence-grid article > div:last-child { display: grid; gap: 5px; }
.operator-sequence-grid button, .operator-form-actions button, .participant-send, .active-participant-messages button { min-height: 34px; border: 1px solid #3b3f48; border-radius: 8px; color: #d7d8dc; background: #292c33; font-size: .67rem; font-weight: 900; cursor: pointer; }
.operator-sequence-grid button:last-child, .operator-form-actions .primary, .participant-send { color: #16200c; border-color: #b8f06a; background: #b8f06a; }
.operator-sequence-grid button:disabled { color: #71757d; border-color: #30333a; background: #24262c; cursor: not-allowed; }
.operator-adhoc { margin-top: 12px; border-top: 1px solid #2c2f36; }
.operator-adhoc summary { padding: 14px 0 4px; color: #b8f06a; font-size: .72rem; font-weight: 900; cursor: pointer; }
.operator-adhoc form, .operator-participant-card form { display: grid; gap: 8px; padding-top: 10px; }
.operator-mode .operator-adhoc input, .operator-mode .operator-adhoc select, .operator-mode .operator-adhoc textarea, .operator-mode .operator-participant-card input, .operator-mode .operator-participant-card select, .operator-mode .operator-participant-card textarea { color: #eeeae3; border-color: #383b44; background: #23252b; }
.operator-mode .operator-production-card label, .operator-mode .operator-participant-card label { color: #92969e; }
.operator-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.operator-check { display: flex; align-items: center; gap: 8px; color: #a7aab0; font-size: .72rem; }
.active-participant-messages { display: grid; gap: 6px; margin-top: 10px; }
.active-participant-messages > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px; border-radius: 9px; background: #202228; font-size: .66rem; }
.active-participant-messages span { color: #b8f06a; }
.active-participant-messages strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.participant-message { position: relative; z-index: 5; display: grid; grid-template-columns: 86px 1fr; gap: 16px; margin-bottom: 16px; padding: 16px; border: 2px solid var(--violet); border-radius: 22px; background: linear-gradient(135deg,#f3edff,#fff9ef); box-shadow: 0 20px 55px rgba(72,43,120,.18); animation: participant-pop .42s cubic-bezier(.2,.9,.2,1.1); }
.participant-character { display: grid; align-content: center; text-align: center; }
.participant-character img { width: 76px; height: 76px; object-fit: cover; border-radius: 20px; }
.participant-character > span { margin-top: 5px; font-size: .65rem; font-weight: 900; }
.participant-message small { color: var(--violet); font-weight: 950; letter-spacing: .1em; }
.participant-message h2 { margin: 7px 0 10px; font-size: 1.22rem; line-height: 1.08; }
.participant-message-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.participant-message-options button, .participant-message-reply button { min-height: 42px; border: 0; border-radius: 10px; color: white; background: var(--violet); font-weight: 900; }
.participant-message-reply { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.participant-message-reply input { min-width: 0; }
.participant-replied { margin: 0; color: var(--muted); }
@keyframes participant-pop { from { opacity: 0; transform: translateY(-20px) scale(.96) rotateX(12deg); } }

/* Public station and account */
.station-public-shell, .profile-shell, .account-shell { width: min(1120px,100%); margin: 0 auto; }
.station-public-hero { max-width: 780px; padding: 70px 0 50px; }
.station-public-hero h1, .account-shell > header h1, .profile-head h1 { margin: 12px 0 18px; font-size: clamp(3.5rem,8vw,7rem); line-height: .87; }
.station-public-hero p, .account-shell > header p, .profile-head p { max-width: 680px; color: #aaa3ba; font-size: 1.05rem; line-height: 1.55; }
.station-public-hero .button.ghost { color: #f7f2ea; border-color: rgba(247,242,234,.68); }
.station-public-hero .button.ghost:hover { color: #211833; border-color: #b8f06a; background: #b8f06a; }
.station-public-list { padding-bottom: 60px; }
.public-show-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin-top: 10px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.06); }
.public-show-card small { color: var(--lime); font-weight: 850; text-transform: uppercase; }
.public-show-card h3 { margin: 7px 0; font-size: 1.45rem; }
.public-show-card p { margin: 0; color: #aaa3ba; }
.station-started { color: #241c31; }
.station-started h2 { font-size: 2.5rem; }
.station-start-actions { display: flex; gap: 8px; }
.account-shell > header { max-width: 830px; padding: 50px 0 30px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-card { color: #241c31; }
.account-card h2 { font-size: 1.7rem; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 18px; color: #777080; font-size: .8rem; line-height: 1.35; }
.consent-row input { width: 18px; height: 18px; flex: 0 0 auto; }
.profile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 50px 0 30px; }
.profile-history { padding-bottom: 50px; }

@media (max-width: 1050px) {
  .station-nav { grid-template-columns: 1fr auto; }
  .station-nav-links { grid-row: 2; grid-column: 1 / -1; padding-bottom: 8px; }
  .station-metrics { grid-template-columns: 1fr 1fr; }
  .station-dashboard-grid, .calendar-layout, .settings-layout { grid-template-columns: 1fr; }
  .dashboard-wide { grid-column: auto; }
  .asset-grid { grid-template-columns: repeat(2,1fr); }
  .prize-library-grid { grid-template-columns: repeat(2,1fr); }
  .operator-grid { grid-template-columns: 1fr; }
  .operator-side { display: grid; grid-template-columns: 1fr 1fr; }
  .sequence-line { grid-template-columns: 28px 1fr 1fr; }
  .sequence-line textarea, .sequence-line select:last-child { grid-column: span 2; }
}

@media (max-width: 720px) {
  .admin-mode #app, .operator-mode #app { width: min(100% - 18px,1540px); padding-top: 9px; }
  .station-nav { padding: 9px 11px; }
  .station-nav-actions a { display: none; }
  .station-page-head, .operator-header, .profile-head { align-items: flex-start; flex-direction: column; }
  .station-page-head { padding-top: 34px; }
  .station-page-actions, .station-page-actions .button { width: 100%; }
  .station-metrics, .shows-layout, .settings-two-col, .character-designer-grid, .account-grid, .operator-side { grid-template-columns: 1fr; }
  .settings-two-col .span-two { grid-column: auto; }
  .show-list { max-height: 280px; overflow: auto; }
  .prize-library-grid, .asset-grid { grid-template-columns: 1fr; }
  .operator-header { padding: 16px 4px; }
  .operator-header-actions { width: 100%; }
  .operator-header-actions > * { flex: 1; }
  .operator-now-card { min-height: 410px; padding: 17px; }
  .operator-options { grid-template-columns: 1fr; }
  .operator-prize-form { grid-template-columns: 1fr; }
  .operator-sequence-grid { grid-template-columns: 1fr; }
  .sequence-line { grid-template-columns: 28px 1fr; }
  .sequence-line textarea, .sequence-line select, .sequence-line select:last-child { grid-column: 2; }
  .participant-message { grid-template-columns: 58px 1fr; }
  .question-library-toolbar, .question-production-grid { grid-template-columns: 1fr; }
  .participant-character img { width: 54px; height: 54px; }
  .scene-control-grid { grid-template-columns: 1fr 1fr; }
  .camera-strip { grid-template-columns: repeat(3,1fr); }
  .public-show-card { grid-template-columns: 1fr; }
  .public-show-card .button { width: 100%; }
  .station-public-hero { padding-top: 42px; }
}
