:root {
  color-scheme: light;
  --bg: #edf0f6;
  --panel: #fff;
  --text: #282840;
  --muted: #5d647c;
  --line: #dce1ed;
  --accent: #302d7d;
  --accent-dark: #242261;
  --accent-soft: #e8ecf8;
  --good: #28775a;
  --bad: #b34346;
  --radius: 12px;
  font:
    15px/1.5 Arial,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--accent);
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: var(--accent-dark);
}
button:active {
  transform: translateY(1px);
}
button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
button.secondary:hover {
  background: #f4f2fd;
  border-color: #c9c2ed;
}
button.danger {
  background: #fff0ef;
  color: #a32e33;
  border-color: #f5d8d5;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #9d8aff;
  outline-offset: 4px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dedee7;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  min-height: 48px;
}
input::placeholder,
textarea::placeholder {
  color: #92929f;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #ebe6ff;
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 110px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555561;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -1.2px;
  font-weight: 750;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
p {
  margin-bottom: 12px;
}
p:last-child {
  margin-bottom: 0;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
  font-weight: 400;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--accent);
  font-weight: 750;
  margin-bottom: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 18px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h2 {
  margin-bottom: 16px;
}
.hidden,
[hidden] {
  display: none !important;
}
.wide-button {
  width: 100%;
  justify-content: space-between;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #f1eff8;
  color: #6a617c;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.message {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.error {
  background: #fff0ef;
  color: var(--bad);
}
.status {
  color: var(--good);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.scroll {
  overflow: auto;
}
.mono {
  font-family: ui-monospace, monospace;
}
.compact {
  font-size: 13px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
}
.text-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.text-button {
  background: transparent;
  color: var(--accent);
  padding: 10px 0;
  justify-content: flex-start;
  min-height: 44px;
}
.text-button:hover {
  background: transparent;
  color: var(--accent-dark);
}
.icon-button {
  height: 40px;
  min-height: 40px;
  width: 40px;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}
.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -1.2px;
}
.brand > span:not(.brand-mark):not(.brand-dot) {
  font-weight: 450;
}
.brand-mark {
  width: 33px;
  height: 33px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
  margin-right: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-dot {
  font-size: 11px;
  align-self: flex-start;
  margin: 3px 0 0 3px;
  letter-spacing: 0;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.connection::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #81ae86;
  border-radius: 50%;
}
.connection.offline::before {
  background: #d27b43;
}
.small-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 20px;
}
.progress {
  height: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: #eae7f3;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.media {
  display: block;
  max-width: 100%;
  max-height: 320px;
  margin: 18px auto;
  border-radius: 12px;
}
.notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff4d9;
  border: 1px solid #f1dfa7;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  color: #785e22;
  font-size: 13px;
}
/* Captain: one task, one screen. */
.player-header {
  max-width: 1224px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
  padding: 0 28px;
}
.player-main {
  max-width: 1224px;
  margin: auto;
  padding: 34px 28px 22px;
}
.join-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 35px 40px 35px 10px;
}
.join-story h1 {
  font-size: clamp(36px, 4.6vw, 62px);
  letter-spacing: -2.7px;
  line-height: 1.08;
  max-width: 610px;
  margin: 18px 0 24px;
}
.join-story h1 em {
  font-style: normal;
  color: var(--accent);
}
.join-story > p {
  font-size: 17px;
  max-width: 360px;
  color: var(--muted);
}
.join-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 16px 50px #24252e05;
}
.join-card h2 {
  font-size: 25px;
  margin-bottom: 10px;
}
.join-card > p {
  margin-bottom: 28px;
}
.join-card .pin-input {
  font-size: 23px;
  letter-spacing: 7px;
  font-variant-numeric: tabular-nums;
}
.join-card button {
  margin-top: 6px;
  min-height: 52px;
}
.join-note {
  display: flex;
  gap: 10px;
  margin: 26px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.join-note > span {
  font-size: 25px;
  color: var(--accent);
}
.subtle-details {
  font-size: 11px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 30px;
}
.subtle-details p {
  margin-top: 8px;
}
.player-footer {
  display: flex;
  justify-content: space-between;
  color: #94939d;
  font-size: 10px;
  padding: 30px 0 0;
  margin-top: 20px;
}
.player-footer > span:first-child {
  font-weight: 700;
}
.player-app.playing .player-header {
  max-width: 640px;
  height: 68px;
}
.player-app.playing .player-main {
  max-width: 640px;
  padding-top: 8px;
}
.team-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 21px;
}
.team-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dcd4ed;
  border-radius: 12px;
  background: #e9e0f5;
  color: #715695;
  font-size: 13px;
  font-weight: 700;
}
.team-strip > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.team-strip strong {
  font-size: 12px;
}
.team-strip #title {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
}
.team-strip .icon-button {
  margin-left: auto;
  font-size: 16px;
}
.session-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
.game-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}
.game-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.timer {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.8px;
  background: #f3f1f9;
  border-radius: 12px;
  padding: 6px 12px;
  color: var(--text);
}
.timer.urgent {
  color: #a34630;
  background: #fff0e4;
}
.game-card > .progress {
  margin-bottom: 22px;
  height: 4px;
}
.game-card #question .eyebrow {
  font-size: 9px;
  letter-spacing: 1.1px;
  margin-bottom: 12px;
}
.game-card #question h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin-bottom: 22px;
}
.game-card #question .muted {
  font-size: 13px;
}
.game-card #inputs {
  gap: 9px;
}
.answer-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e3e1e9;
  background: #fff;
  border-radius: 12px;
  min-height: 56px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.answer-option::before {
  content: attr(data-letter);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f3f1f7;
  color: #898293;
  font-size: 12px;
  font-weight: 650;
}
.answer-option:has(input:checked) {
  border: 2px solid var(--accent);
  padding: 10px 13px;
  background: #f4f1ff;
  color: #4836b7;
}
.answer-option:has(input:checked)::before {
  background: var(--accent);
  color: #fff;
}
.answer-option:has(input:checked)::after {
  content: "✓";
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}
.answer-option:has(input:focus-visible) {
  outline: 3px solid #d7ccff;
  outline-offset: 2px;
}
.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  left: 18px;
  padding: 0;
}
.answer-option > span {
  flex: 1;
}
.answer-actions {
  padding-top: 18px;
}
.answer-actions button {
  min-height: 49px;
  font-size: 14px;
  border-radius: 12px;
}
.answer-actions button.saved {
  background: #e8f2eb;
  color: #2b6848;
  justify-content: center;
}
.answer-actions #saveStatus {
  font-size: 11px;
  margin: 10px 0 0;
  text-align: center;
  line-height: 1.4;
}
.answer-actions #saveStatus:empty {
  display: none;
}
.edit-hint {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
}
.participation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #efedf4;
}
.participant-dots {
  letter-spacing: -4px;
  padding-right: 4px;
  font-size: 15px;
  color: #a69dc2;
}
.count {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.history-panel {
  padding: 18px 3px;
  font-size: 12px;
  color: var(--muted);
}
.history-panel > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.history-panel .card {
  margin-top: 12px;
}
.results-card {
  margin-top: 18px;
}
.results-card h2 {
  font-size: 20px;
}
.results-card .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
}
.results-card .row {
  margin-bottom: 18px;
}
.lobby-art {
  font-size: 50px;
  width: 104px;
  height: 104px;
  border-radius: 32px;
  background: #efebff;
  color: #8061d0;
  display: grid;
  place-items: center;
  margin: 10px auto 22px;
  transform: rotate(-7deg);
}
.lobby-message {
  text-align: center;
  padding: 10px 0;
}
.lobby-message h2 {
  font-size: 29px !important;
  margin-bottom: 12px !important;
}
.lobby-message .muted {
  max-width: 280px;
  margin: 0 auto;
}
.lobby-message .waiting-pips {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 26px 0 10px;
}
.waiting-pips i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #baa8e8;
  animation: breathe 1.5s infinite;
}
.waiting-pips i:nth-child(2) {
  animation-delay: 0.2s;
}
.waiting-pips i:nth-child(3) {
  animation-delay: 0.4s;
}
.bet-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff6e9;
  border: 1px solid #f1e1c7;
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
  color: #8c622d;
}
.bet-control input {
  width: 100px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.answer-text {
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.reveal-answer {
  padding: 20px;
  background: #edf4e9;
  border: 1px solid #dce9d6;
  border-radius: 14px;
  margin-bottom: 16px;
}
.reveal-answer .eyebrow {
  color: #5a7a49;
  font-size: 10px;
}
.reveal-answer pre {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
}
.reveal-detail {
  font-size: 13px;
  color: #666571;
}
.own-verdict {
  padding: 12px;
  border-radius: 10px;
  background: #f4f2f7;
  font-size: 12px;
  margin: 18px 0 12px;
}
.result-ribbon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  font-size: 36px;
  border-radius: 24px;
  color: #9c742b;
  background: #faf0cb;
}
/* Studio: navigation separates preparation, hosting and review. */
.admin-app {
  background: #f7f8fa;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px 24px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  margin: 0 12px 38px;
}
.sidebar-caption {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #9695a2;
  margin: 0 12px 18px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  justify-content: flex-start;
  gap: 12px;
  background: transparent;
  color: #73717e;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 14px;
  min-height: 46px;
}
.nav-item > span:first-child {
  font-size: 19px;
  width: 20px;
  text-align: center;
}
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}
.nav-item:hover {
  background: #f5f3fb;
  color: var(--accent);
}
.nav-divider {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #aaa7b4;
  margin: 30px 14px 12px;
}
.nav-count {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #ded7f8;
  color: var(--accent);
  border-radius: 7px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.sidebar-bottom strong {
  display: block;
  font-size: 11px;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
}
.host-avatar {
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f0d9c7;
  color: #916442;
  font-size: 13px;
}
.sidebar-bottom .icon-button {
  margin-left: auto;
  width: 28px;
}
.admin-shell {
  margin-left: 234px;
}
.studio-header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
}
.breadcrumb {
  margin: 0 12px;
  color: #ccc;
}
.studio-main {
  max-width: 1560px;
  padding: 36px 40px 50px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 32px;
  margin-bottom: 9px;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.page-heading .muted {
  font-size: 13px;
}
.auth-panel {
  max-width: 480px;
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  margin: 50px auto;
}
.auth-panel h1 {
  font-size: 34px;
  margin-bottom: 18px;
}
.auth-panel .stack {
  margin-top: 28px;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.create-card {
  background: #f1eefc;
  border-color: #e6e0f7;
}
.create-card h2 {
  font-size: 22px;
}
.create-card .muted {
  font-size: 13px;
  margin-bottom: 24px;
}
.create-card .small-icon {
  background: #e5defa;
}
.create-card input,
.create-card select {
  background: #fff;
}
.game-list > .row {
  margin-bottom: 24px;
}
.game-list h2 {
  margin: 0;
}
.game-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 14px;
}
.game-row:hover {
  background: #f8f6ff;
  border-color: #cbc2f0;
}
.game-row .game-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e9e3fa;
  color: #8b72be;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 24px;
}
.game-row .game-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.game-row strong {
  font-size: 14px;
}
.game-row small {
  font-size: 11px;
  font-weight: 400;
}
.game-row .arrow {
  color: #9b92b1;
  font-size: 18px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.library-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.library-card .small-icon {
  background: #eef2df;
  color: #7b8b42;
}
.library-card h3 {
  margin-bottom: 9px;
}
.library-card p {
  font-size: 12px;
  color: var(--muted);
}
.section-summary {
  display: flex;
  justify-content: space-between;
  font-weight: 650;
  font-size: 17px;
  list-style: none;
  min-height: 34px;
  align-items: center;
}
.section-summary > span {
  color: var(--accent);
  font-size: 24px;
}
#builderPanel[open] > .section-summary {
  margin-bottom: 26px;
}
.import-panel {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.import-panel > summary {
  font-size: 13px;
}
.import-panel textarea {
  margin: 12px 0;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #7da080;
  border-radius: 50%;
  margin: 0 0 5px 12px;
}
.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 24px;
  align-items: start;
}
.host-stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  min-width: 0;
}
.room-pin {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.room-pin strong {
  font-size: 15px;
  color: var(--text);
  margin-left: 6px;
  letter-spacing: 2px;
}
.host-question-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 36px 0 18px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #958ca4;
  font-weight: 600;
}
.host-stage h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.8px;
  max-width: 800px;
  margin-bottom: 26px;
}
.host-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.host-option {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 65px;
  background: #f8f7fb;
  border: 1px solid #ece9f2;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
}
.host-option b {
  display: grid;
  place-items: center;
  background: #ede8f6;
  color: #8d7ca6;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 11px;
}
.host-option.correct {
  background: #edf5e9;
  border-color: #cadfbe;
}
.host-option.correct b {
  background: #d4e9c6;
  color: #4c7040;
}
.host-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.host-time {
  display: flex;
  align-items: center;
  gap: 12px;
}
.host-time .timer {
  font-size: 35px;
  background: none;
  padding: 0;
  letter-spacing: -1.2px;
}
.host-time small {
  font-size: 10px;
  width: 65px;
  line-height: 1.5;
}
.host-participation {
  width: 160px;
  text-align: right;
}
.host-participation strong {
  font-size: 20px;
  display: block;
}
.host-participation > span {
  font-size: 10px;
  color: var(--muted);
}
.host-participation .progress {
  margin-top: 10px;
  height: 4px;
}
.host-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.host-controls button {
  flex: 1;
}
.live-aside {
  display: grid;
  gap: 18px;
}
.live-aside .card {
  padding: 22px;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.metric-row strong {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.live-aside .text-button {
  font-size: 12px;
}
.host-explanation {
  background: #eff5e9;
  border: 1px solid #dbe7cf;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
}
.host-explanation strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
#addTeam {
  margin-bottom: 24px;
}
#addTeam input {
  flex: 1;
  min-width: 180px;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.team-row:last-child {
  border: 0;
}
.team-row .team-avatar {
  flex-shrink: 0;
}
.team-row .team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}
.team-row .team-info small {
  font-size: 11px;
}
.team-row .secondary {
  font-size: 11px;
  min-height: 38px;
  padding: 8px 12px;
}
.heading-count {
  font-size: 22px;
  color: #b6aec7;
  font-weight: 500;
}
.filter-label {
  font-size: 10px;
  min-width: 210px;
}
.filter-label select {
  font-size: 12px;
  min-height: 40px;
}
.review-info {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f0edf9;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  color: #827496;
  font-size: 12px;
}
.review-info > span {
  color: var(--accent);
  font-size: 19px;
}
.review-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 22px;
}
.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.review-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-identity strong {
  display: block;
  font-size: 13px;
}
.review-identity small {
  font-size: 10px;
}
.review-question {
  padding: 20px 24px 0;
  font-size: 14px;
  font-weight: 600;
  color: #615b6b;
}
.review-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 24px;
}
.review-response,
.review-reference {
  padding: 18px;
  background: #f6f4fb;
  border-radius: 12px;
}
.review-reference {
  background: #f1f5e9;
}
.review-comparison .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.review-comparison pre {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
}
.review-reference pre {
  color: #5c734a;
}
.review-reference small {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: #7b866e;
}
.review-card .status {
  font-size: 11px;
  margin: 0 24px 15px;
}
.review-decision {
  padding: 0 24px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}
.review-decision textarea {
  min-height: 48px;
  height: 48px;
  font-size: 12px;
}
.review-decision .row {
  gap: 8px;
  flex-wrap: nowrap;
}
.review-decision button {
  min-width: 108px;
  font-size: 12px;
}
.review-card > details {
  padding: 12px 24px;
  background: #faf9fc;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #9a91a5;
}
.review-card > details summary {
  min-height: 22px;
}
.history-entry {
  margin: 10px 0;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  color: #6d6575;
}
.review-card > .muted {
  padding: 0 24px;
  font-size: 12px;
}
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state .small-icon {
  margin: 0 auto 16px;
  background: #eef2e8;
  color: #789363;
}
.empty-state h3 {
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 13px;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.podium-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}
.podium-item:first-child {
  background: #f0ecfc;
  border-color: #e0d7f5;
}
.podium-item small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.podium-item h3 {
  font-size: 16px;
  max-width: 80%;
  margin-bottom: 16px;
}
.podium-score {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--accent);
}
.podium-score span {
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 6px;
  font-weight: 400;
}
.podium-medal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f2eccf;
  color: #9a7d40;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 10px 14px 16px;
  color: #a09aa9;
  font-weight: 500;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid #f0edf4;
  color: #635d6e;
}
tbody tr:last-child td {
  border: 0;
}
.rank-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f3f0f8;
  color: #9284a8;
  font-size: 11px;
  font-weight: 600;
}
.rank-badge.top {
  background: #eae2fa;
  color: #7754b2;
}
.table-team {
  font-weight: 650;
  color: var(--text);
}
.table-score {
  font-weight: 750;
  color: var(--accent);
}
.table-status {
  font-size: 10px;
  background: #f0f5eb;
  color: #708563;
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}
.table-status.pending {
  background: #fff3de;
  color: #ad894b;
}
.admin-app.presenting {
  background: #f6f5f2;
}
.presenting .sidebar,
.presenting .studio-header,
.presenting .page-heading,
.presenting .live-aside,
.presenting .host-controls {
  display: none !important;
}
.presenting .admin-shell {
  margin: 0;
}
.presenting .studio-main {
  max-width: 1600px;
  padding: 36px;
}
.presenting .live-layout {
  display: block;
}
.presenting .host-stage {
  min-height: calc(100vh - 72px);
  padding: 50px 64px;
  display: flex;
  flex-direction: column;
}
.presenting .host-stage h2 {
  font-size: clamp(32px, 4.5vw, 64px);
  max-width: 1150px;
  margin-bottom: 40px;
}
.presenting .host-question-meta {
  font-size: 13px;
  margin-top: 45px;
}
.presenting .host-option {
  font-size: 22px;
  min-height: 90px;
  padding: 20px;
}
.presenting .host-stage-footer {
  margin-top: auto;
  padding-top: 35px;
}
.presenting .host-time .timer {
  font-size: 60px;
}
.presenting .room-pin strong {
  font-size: 24px;
}
.present-exit {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 20;
  font-size: 11px;
  min-height: 34px;
  padding: 6px 12px;
  background: #ffffffdd;
  border: 1px solid var(--line);
  color: var(--muted);
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (min-width: 1000px) {
  .player-app.playing[data-phase="lobby"] .game-card {
    padding: 32px;
  }
  .player-app.playing[data-phase="lobby"] .game-card #question h2 {
    font-size: 30px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 25px 14px;
  }
  .admin-shell {
    margin-left: 200px;
  }
  .studio-main {
    padding: 28px 24px;
  }
  .studio-header {
    padding: 0 24px;
  }
  .live-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
  }
  .host-stage {
    padding: 24px;
  }
  .host-stage h2 {
    font-size: 27px;
  }
  .library-grid {
    grid-template-columns: 1fr 1fr;
  }
  .review-decision {
    grid-template-columns: 1fr;
  }
  .join-layout {
    gap: 45px;
    padding: 20px 0;
  }
  .join-story h1 {
    font-size: 49px;
  }
  .join-card {
    padding: 28px;
  }
}
@media (max-width: 850px) {
  .home-grid,
  .live-layout {
    grid-template-columns: 1fr;
  }
  .live-aside {
    grid-template-columns: 1fr 1fr;
  }
  .live-aside > .card:last-child {
    display: none;
  }
  .sidebar {
    width: 180px;
  }
  .admin-shell {
    margin-left: 180px;
  }
  .sidebar .brand {
    font-size: 21px;
    margin-left: 6px;
  }
  .nav-item {
    font-size: 12px;
  }
  .studio-main {
    padding: 24px 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading > .row {
    justify-content: flex-end;
  }
  .join-layout {
    gap: 30px;
  }
  .join-story h1 {
    font-size: 40px;
  }
  .join-art {
    transform: scale(0.8);
    transform-origin: left center;
    margin-right: -70px;
  }
  .join-card h2 {
    font-size: 21px;
  }
  .join-foot {
    margin-top: 5px;
  }
}
@media (max-width: 650px) {
  .player-header {
    height: 66px;
    padding: 0 20px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-mark {
    height: 29px;
    width: 29px;
    font-size: 22px;
    border-radius: 9px;
  }
  .player-header .connection {
    font-size: 9px;
  }
  .player-main {
    padding: 12px 20px 18px;
  }
  .join-layout {
    display: block;
    padding: 14px 0 0;
  }
  .join-story .eyebrow {
    font-size: 9px;
  }
  .join-story h1 {
    font-size: 37px;
    letter-spacing: -1.6px;
    margin: 12px 0 14px;
  }
  .join-story > p {
    font-size: 13px;
    max-width: 280px;
    margin-bottom: 25px;
  }
  .join-art,
  .join-foot {
    display: none;
  }
  .join-card {
    padding: 24px;
    border-radius: 20px;
  }
  .join-card > .small-icon {
    display: none;
  }
  .join-card h2 {
    font-size: 21px;
    margin-bottom: 7px;
  }
  .join-card > p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .join-card .stack {
    gap: 16px;
  }
  .join-card .pin-input {
    font-size: 20px;
  }
  .join-note {
    margin: 20px 0 12px;
    font-size: 10px;
  }
  .join-card label {
    font-size: 12px;
  }
  .join-card input {
    min-height: 48px;
    font-size: 16px;
  }
  .join-card .subtle-details {
    font-size: 10px;
  }
  .player-footer {
    padding-top: 16px;
    margin-top: 14px;
    font-size: 9px;
  }
  .player-app.playing .player-header {
    padding: 0 20px;
    height: 60px;
  }
  .player-app.playing .player-main {
    padding: 0 16px 14px;
  }
  .team-strip {
    padding: 3px 3px 15px;
  }
  .team-strip #title {
    max-width: 245px;
  }
  .game-card {
    padding: 20px;
    border-radius: 18px;
  }
  .game-card #question h2 {
    font-size: 22px;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
  }
  .game-card > .progress {
    margin-bottom: 18px;
  }
  .game-card #question .eyebrow {
    font-size: 8px;
  }
  .timer {
    font-size: 22px;
    padding: 5px 10px;
  }
  .game-status {
    margin-bottom: 12px;
  }
  .badge {
    font-size: 10px;
  }
  .answer-option {
    min-height: 52px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .answer-option:has(input:checked) {
    padding: 9px 11px;
  }
  .answer-option::before {
    height: 27px;
    width: 27px;
    font-size: 11px;
  }
  .game-card #inputs {
    gap: 8px;
  }
  .answer-actions {
    padding-top: 16px;
  }
  .participation {
    margin-top: 15px;
    padding-top: 12px;
  }
  .game-card #freeAnswer {
    min-height: 132px;
    font-size: 16px;
  }
  .game-card label {
    font-size: 12px;
  }
  .results-card {
    padding: 20px 12px;
  }
  .results-card > .row {
    padding: 0 6px;
  }
  .results-card table th,
  .results-card table td {
    padding: 12px 6px;
    font-size: 11px;
  }
  .results-card th:nth-child(5),
  .results-card td:nth-child(5) {
    display: none;
  }
  .results-card .table-team {
    max-width: 110px;
    overflow-wrap: anywhere;
  }
  .history-panel {
    padding: 16px 3px;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 16px;
  }
  .sidebar-caption,
  .nav-divider,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 3px;
  }
  .nav-item {
    padding: 9px 12px;
    min-height: 40px;
    white-space: nowrap;
    gap: 5px;
    font-size: 11px;
  }
  .nav-item > span:first-child {
    font-size: 15px;
    width: 16px;
  }
  .nav-count {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .admin-shell {
    margin: 0;
  }
  .studio-header {
    height: 52px;
    padding: 0 20px;
    font-size: 11px;
  }
  .studio-header .text-link {
    font-size: 11px;
  }
  .studio-main {
    padding: 24px 16px;
  }
  .page-heading {
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .page-heading button {
    font-size: 11px;
  }
  .card {
    padding: 20px;
  }
  .card h2 {
    font-size: 20px;
  }
  .home-grid {
    gap: 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .host-stage {
    padding: 20px;
    border-radius: 18px;
  }
  .host-question-meta {
    font-size: 8px;
    letter-spacing: 0.7px;
    margin: 24px 0 16px;
  }
  .host-stage h2 {
    font-size: 25px;
    line-height: 1.3;
  }
  .host-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .host-option {
    min-height: 50px;
    padding: 12px;
    font-size: 12px;
  }
  .host-stage-footer {
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
  }
  .host-time .timer {
    font-size: 29px;
  }
  .host-participation {
    width: 110px;
  }
  .host-time small {
    font-size: 9px;
    width: 55px;
  }
  .host-controls button {
    font-size: 12px;
  }
  .live-aside {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .live-aside .card,
  .host-tip {
    padding: 16px;
  }
  .host-tip p {
    font-size: 11px;
  }
  .live-aside .eyebrow {
    font-size: 8px;
  }
  .metric-row {
    font-size: 10px;
    gap: 5px;
  }
  .metric-row strong {
    font-size: 20px;
  }
  .review-comparison {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }
  .review-card-header {
    padding: 16px;
  }
  .review-question {
    padding: 16px 16px 0;
  }
  .review-comparison pre {
    font-size: 18px;
  }
  .review-decision {
    padding: 0 16px 16px;
    gap: 12px;
  }
  .review-decision .row button {
    flex: 1;
  }
  .review-card .status {
    margin: 0 16px 16px;
  }
  .review-card > details {
    padding: 12px 16px;
  }
  .podium {
    gap: 8px;
  }
  .podium-item {
    padding: 14px 10px;
  }
  .podium-item h3 {
    font-size: 12px;
    max-width: 100%;
    padding-top: 8px;
  }
  .podium-item small {
    font-size: 8px;
  }
  .podium-score {
    font-size: 22px;
  }
  .podium-medal {
    position: static;
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-bottom: 8px;
  }
  .podium-score span {
    font-size: 9px;
  }
  .team-row .team-avatar {
    width: 30px;
    height: 30px;
  }
  .team-row {
    gap: 10px;
  }
  .team-row .team-info {
    font-size: 12px;
  }
  .team-row .secondary {
    font-size: 10px;
  }
  .auth-panel {
    padding: 26px;
    margin: 10px 0;
  }
  .auth-panel h1 {
    font-size: 30px;
  }
  .presenting .studio-main {
    padding: 12px;
  }
  .presenting .host-stage {
    padding: 24px;
    min-height: calc(100vh - 24px);
  }
  .presenting .host-stage h2 {
    font-size: 30px;
  }
  .presenting .host-options {
    grid-template-columns: 1fr;
  }
  .presenting .host-option {
    font-size: 17px;
    min-height: 65px;
  }
  .presenting .host-time .timer {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.join-qr {
  display: block;
  width: 112px;
  height: 112px;
  image-rendering: pixelated;
  margin: 12px 0;
}
.present-invite {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f6f4fb;
  border: 1px solid #ebe7f2;
  border-radius: 16px;
  padding: 22px;
}
.present-invite canvas {
  width: 140px;
  height: 140px;
  image-rendering: pixelated;
  border-radius: 12px;
}
.present-invite h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.present-invite p {
  font-size: 12px;
  max-width: 240px;
}
.presenting .present-invite {
  background: transparent;
  border: 0;
  padding: 16px 0;
  gap: 40px;
}
.presenting .present-invite canvas {
  width: 240px;
  height: 240px;
}
.presenting .present-invite h3 {
  font-size: 30px;
}
.presenting .present-invite p {
  font-size: 19px;
  max-width: 400px;
}
.host-options.finished-table {
  display: block;
}
.own-team {
  background: #f6f2ff;
}
.sidebar-caption,
.nav-divider {
  font-size: 9px;
}
.review-comparison .eyebrow {
  font-size: 10px;
}
.host-question-meta {
  font-size: 10px;
}
.player-app #question .eyebrow {
  font-size: 10px;
}
.edit-hint {
  font-size: 11px;
}
@media (max-width: 650px) {
  .present-invite {
    flex-direction: column;
    text-align: center;
  }
  .present-invite canvas {
    width: 160px;
    height: 160px;
  }
  .presenting .present-invite canvas {
    width: 190px;
    height: 190px;
  }
  .presenting .present-invite h3 {
    font-size: 24px;
  }
  .presenting .present-invite p {
    font-size: 15px;
  }
  .host-question-meta {
    font-size: 9px;
  }
  .player-app #question .eyebrow {
    font-size: 9px;
  }
  .join-qr {
    width: 96px;
    height: 96px;
  }
}

/* FinIgra: a shared table. Brand colors follow the supplied event artwork. */
:root { --yellow: #ffcc25; --field: #302d7d; --field-dark: #242261; --blue-soft: #dbe3f3; }
body { overflow-wrap: anywhere; }
button { background: var(--yellow); color: var(--field-dark); border-radius: 6px; font-weight: 700; }
button:hover { background: #f2bc0b; }
button.secondary { border-color: #b8c0d4; }
button.secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
button:disabled { opacity: .55; }
input, select, textarea { border-color: #b8c0d4; border-radius: 6px; }
input::placeholder, textarea::placeholder { color: #686e82; }
input:focus, select:focus, textarea:focus { outline: 3px solid #cdd7ef; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #5278cb; }
label { color: #414963; }
.small-icon { border-radius: 50%; background: var(--blue-soft); color: var(--field); }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.15; color: var(--yellow); font-size: 30px; }
.brand strong { font-weight: 800; letter-spacing: -1.2px; }
.brand small { font-size: 8px; font-weight: 600; letter-spacing: 1.5px; color: #e3e6f8; }
.badge { background: var(--accent-soft); color: var(--field); border-radius: 5px; font-size: 12px; }
.eyebrow { letter-spacing: 1.2px; }
.text-button, .icon-button { background: transparent; color: var(--accent); }
.text-button:hover, .icon-button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.timer { background: #eff2f9; color: var(--field); border: 1px solid #bdc5dc; border-radius: 50%; min-width: 62px; min-height: 62px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.timer.urgent { border-color: #b7452e; background: #fff0e4; color: #94351f; }
.progress { background: var(--blue-soft); }
.notice { background: #fff6d6; border-color: #e6c94d; color: #594600; border-radius: 6px; }
.message { border-radius: 6px; }
.player-app { background: var(--field); color: white; min-height: 100vh; }
.player-header { max-width: 1120px; padding-inline: 28px; height: 96px; }
.player-header .connection { color: #e3e6f8; font-size: 12px; }
.player-header .connection::before { background: var(--yellow); }
.player-header .connection.offline { color: #ffe2a3; }
.player-main { max-width: 1120px; padding-top: 24px; }
.join-layout { grid-template-columns: 1.1fr 1fr; gap: 70px; padding: 28px 0; align-items: start; }
.join-story h1 { font-size: clamp(38px, 4.4vw, 59px); letter-spacing: -1.8px; line-height: 1.08; }
.join-story h1 em, .join-story .eyebrow { color: var(--yellow); }
.join-story > p { color: #e1e5f7; font-size: 16px; max-width: 420px; }
.join-steps { list-style: none; padding: 8px 0 0; margin: 22px 0 0; display: grid; gap: 20px; max-width: 380px; }
.join-steps li { display: flex; gap: 16px; align-items: center; font-size: 14px; color: #e1e5f7; }
.join-steps b { flex-shrink: 0; border: 1px solid #9594bc; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; color: var(--yellow); }
.join-card { border: 0; border-radius: 12px; box-shadow: 0 6px 0 var(--field-dark); color: var(--text); padding: 32px; }
.join-card button { justify-content: center; }
.join-card .subtle-details { font-size: 12px; }
.join-note { color: #5d647c; font-size: 12px; }
.player-footer { color: #d5d9ee; font-size: 11px; gap: 16px; }
.player-app.playing .player-header { max-width: 660px; height: 84px; }
.player-app.playing .player-main { max-width: 660px; }
.team-strip { padding-bottom: 16px; }
.team-strip strong { font-size: 14px; }
.team-strip #title { font-size: 12px; color: #e1e5f7; }
.team-avatar { border-radius: 50%; border: 1px solid #a6b3d2; color: var(--field); background: var(--blue-soft); }
.team-strip .icon-button { color: #f3f5ff; border: 1px solid #8988b5; border-radius: 50%; flex-shrink: 0; }
.team-strip .icon-button:hover { background: var(--field-dark); }
.session-meta { color: #e1e5f7; font-size: 12px; gap: 16px; }
.question-track { margin: 12px 0 24px; }
.track-steps { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 6px; list-style: none; padding: 0; margin: 0; }
.track-steps::before { content: ''; position: absolute; top: 50%; left: 15px; right: 15px; height: 1px; background: #8a89b5; }
.track-step, .track-gap { position: relative; z-index: 1; width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; background: var(--field); border: 1px solid #aaa9ca; border-radius: 50%; color: white; font-size: 12px; font-variant-numeric: tabular-nums; }
.track-step.passed { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--field); }
.track-step.current { background: var(--yellow); border: 3px solid white; color: var(--field); width: 44px; height: 44px; font-weight: 800; font-size: 16px; }
.track-gap { width: 18px; border: 0; }
.game-card { border: 0; border-radius: 12px; padding: 28px; color: var(--text); box-shadow: 0 6px 0 var(--field-dark); }
.game-status { margin-bottom: 22px; }
.game-card #question h2 { font-size: 27px; line-height: 1.25; margin-bottom: 24px; }
.game-card #question .eyebrow { font-size: 11px; }
.game-card #inputs { gap: 8px; }
.game-card #inputs label { font-size: 14px; }
.answer-option { border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 0; min-height: 58px; padding: 12px 8px; font-size: 16px !important; }
.answer-option::before { border-radius: 50%; border: 1px solid #adb7d0; background: white; color: var(--field); font-weight: 500; }
.answer-option:has(input:checked) { border: 1px solid var(--field); background: var(--accent-soft); color: var(--field); padding: 12px 8px; border-radius: 6px; }
.answer-option:has(input:checked)::before { background: var(--field); }
.answer-option:has(input:focus-visible) { outline-color: #5278cb; }
.answer-actions button { border-radius: 6px; justify-content: center; min-height: 52px; }
.answer-actions button.saved { background: var(--accent-soft); color: var(--field); border: 1px solid #b1b9d1; }
.answer-actions #saveStatus { text-align: left; color: #354960; font-size: 12px; }
.edit-hint { text-align: left; font-size: 12px; }
.participation { justify-content: flex-start; border-color: var(--line); }
.count { font-size: 12px; color: #525d76; }
.lobby-message { text-align: left; padding: 8px 0; }
.lobby-message h2 { font-size: 36px !important; line-height: 1.1 !important; color: var(--field); max-width: 320px; }
.lobby-message .muted { font-size: 15px !important; line-height: 1.6; }
.lobby-team { padding: 22px 0; margin: 24px 0; border-block: 1px solid var(--line); }
.lobby-team small { font-size: 11px; letter-spacing: 1px; display: block; }
.lobby-team strong { display: block; color: var(--field); font-size: 24px; margin-top: 6px; }
.player-app[data-phase="lobby"] .timer, .player-app[data-phase="finished"] .timer { display: none; }
.player-app .results-card, .player-app .history-panel .card { color: var(--text); border-radius: 12px; }
.history-panel { color: #e5e8f8; font-size: 14px; }
.history-panel .card h3 { margin-bottom: 12px; }
.reveal-answer { background: var(--accent-soft); border-color: var(--line); color: var(--field); border-radius: 6px; }
.own-verdict { color: #414963; }

/* The organiser works at a quieter, denser table in the same visual system. */
.sidebar { background: var(--field); border: 0; }
.sidebar .brand { margin-bottom: 36px; }
.sidebar-caption, .nav-divider { color: #d1d5ec; font-size: 10px; letter-spacing: 1px; }
.nav-item { color: #e5e8f8; border-radius: 6px; font-size: 14px; }
.nav-item:hover { background: var(--field-dark); color: white; }
.nav-item.active { color: var(--field-dark); background: var(--yellow); }
.nav-item > span:first-child { color: inherit; }
.nav-count { color: var(--field); background: var(--blue-soft); }
.sidebar-bottom { color: white; border-color: #7777a1; }
.sidebar-bottom small { color: #d1d5ec; }
.sidebar-bottom .icon-button { color: white; }
.host-avatar { background: var(--blue-soft); color: var(--field); }
.studio-header { background: white; border-bottom: 1px solid var(--line); }
.studio-main { max-width: 1540px; }
.auth-panel { border-radius: 12px; border-top: 5px solid var(--field); box-shadow: none; }
.auth-panel h1 { color: var(--field); }
.card, .library-card { border-radius: 10px; box-shadow: none; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1 { color: var(--field-dark); }
.create-card { background: white; border-top: 5px solid var(--yellow); }
.game-row { background: white; color: var(--text); border-radius: 0; border-bottom: 1px solid var(--line); }
.game-row:hover { background: #eff2fa; }
.game-icon { background: var(--blue-soft); color: var(--field); border-radius: 50%; }
.game-copy small { color: #5d647c; }
.library-card { border-left: 4px solid var(--field); }
.library-card .small-icon { width: 34px; height: 34px; font-size: 20px; margin-bottom: 14px; }
.admin-app .question-track { max-width: 720px; margin-bottom: 26px; }
.admin-app .track-steps::before { background: #a8b3cb; }
.admin-app .track-step { background: white; border-color: #a8b3cb; color: var(--field); }
.admin-app .track-step.passed { background: var(--blue-soft); }
.admin-app .track-step.current { background: var(--yellow); border: 3px solid var(--field); }
.admin-app .track-gap { color: var(--field); background: var(--bg); }
.host-stage { border-radius: 12px; border-top: 5px solid var(--field); }
.host-stage h2 { line-height: 1.25; }
.host-question-meta { color: #525d76; }
.host-option { border-radius: 6px; background: #f2f4fa; border-color: var(--line); font-size: 15px; }
.host-option b { border-radius: 50%; background: var(--blue-soft); color: var(--field); }
.host-option.correct { border-color: #357052; background: #edf6ef; }
.host-option.correct b { background: #276746; color: white; }
.host-time .timer { border: 0; border-radius: 0; min-height: 0; min-width: 0; }
.host-instruction { color: #545e75; font-size: 13px; border-left: 3px solid var(--yellow); padding-left: 12px; margin-bottom: 18px; }
.host-controls { padding-top: 18px; border-top: 1px solid var(--line); }
.host-controls .secondary { background: var(--accent-soft); border-color: #a8b3cb; color: var(--field); }
.live-aside { align-content: start; }
.live-aside .card { border-radius: 10px; }
.metric-row { font-size: 13px; border-bottom: 1px solid var(--line); }
.metric-row strong { color: var(--field); }
.host-explanation { border-radius: 6px; background: #edf6ef; color: #264b35; }
.present-invite { background: #f2f4fa; border-color: var(--line); border-radius: 8px; }
.review-info { background: var(--blue-soft); color: #354360; border-radius: 6px; }
.heading-count { color: #596489; }
.review-card { border-radius: 8px; border-left: 3px solid var(--field); }
.review-card-header { padding: 14px 20px; }
.review-identity strong { font-size: 15px; }
.review-identity small { font-size: 12px; }
.review-question { padding: 16px 20px 0; color: #3d465d; font-size: 15px; }
.review-comparison { padding: 16px 20px; gap: 12px; }
.review-response, .review-reference { border-radius: 4px; padding: 16px; }
.review-response { background: #eef1f8; }
.review-reference { background: #f4f6ee; }
.review-reference pre { color: #36503d; }
.review-reference small { color: #52614e; font-size: 12px; }
.review-comparison .eyebrow { font-size: 11px; }
.review-card > details { color: #545e75; background: #f5f7fb; font-size: 12px; }
.review-decision { padding: 0 20px 18px; }
.review-decision textarea { font-size: 14px; }
.review-decision button { font-size: 14px; }
.team-row .team-info { font-size: 14px; }
.team-row .team-info small { font-size: 12px; }
.podium-item { border-radius: 8px; border-top: 4px solid var(--blue-soft); }
.podium-item:first-child { background: #fff9e4; border-color: #e4cf7b; border-top-color: var(--yellow); }
.podium-medal { background: var(--yellow); color: var(--field); font-weight: 700; }
.podium-item small { color: #596278; }
.podium-score { color: var(--field); }
.rank-badge { background: #eef1f8; color: #515a75; border-radius: 50%; }
.rank-badge.top { background: var(--yellow); color: var(--field); }
table { font-size: 14px; }
th { color: #545e75; font-size: 12px; }
td { color: #414963; border-color: var(--line); padding-block: 14px; }
.table-status { color: #385b3f; font-size: 11px; }
.table-status.pending { color: #6e520c; background: #fff3c8; }
.own-team { background: var(--accent-soft); }
.admin-app.presenting { background: var(--field); }
.presenting .host-stage { border: 0; box-shadow: 0 7px 0 var(--field-dark); }
.presenting #hostTrack, .presenting .host-instruction { display: none; }
.presenting .host-stage-footer { margin-top: auto; }
.presenting .host-time .timer { color: var(--field); background: var(--yellow); padding: 8px 22px; border-radius: 8px; }
.presenting .host-time .timer.urgent { background: #ffdfcc; color: #94351f; }
.presenting .host-option { font-size: 24px; }
.presenting .finished-table { overflow-x: auto; }
.presenting table { font-size: 22px; }
.presenting th { font-size: 16px; }
@media (max-width: 1100px) { .join-layout { gap: 40px; } }
@media (max-width: 850px) { .live-aside { grid-template-columns: 1fr; } .live-aside > .card:last-child { display: block; } .join-steps { gap: 12px; } }
@media (max-width: 650px) {
  .player-header, .player-app.playing .player-header { padding: 0 20px; height: 82px; }
  .brand, .sidebar .brand { font-size: 28px; }
  .brand small { font-size: 7px; }
  .player-header .connection { font-size: 10px; max-width: 125px; }
  .player-main { padding: 8px 18px 22px; }
  .join-layout { padding: 10px 0 0; }
  .join-story h1 { font-size: 36px; margin-top: 12px; letter-spacing: -1px; }
  .join-story h1 br:nth-child(2) { display: none; }
  .join-story > p { color: #e1e5f7; font-size: 14px; max-width: none; }
  .join-steps { display: none; }
  .join-card { padding: 24px; border-radius: 12px; }
  .join-card .subtle-details, .join-note { font-size: 12px; }
  .player-app.playing .player-main { padding: 0 16px 18px; }
  .team-strip { padding: 0 0 14px; }
  .team-strip strong { font-size: 14px; }
  .team-strip #title { max-width: 225px; font-size: 11px; }
  .session-meta { font-size: 11px; }
  .question-track { margin: 10px 0 20px; }
  .track-step { width: 29px; height: 29px; font-size: 10px; }
  .track-step.current { width: 36px; height: 36px; font-size: 13px; }
  .track-steps { gap: 3px; }
  .track-gap { width: 12px; font-size: 10px; }
  .game-card { padding: 22px 18px; border-radius: 12px; }
  .game-card #question h2 { font-size: 24px; line-height: 1.25; }
  .game-card #question .eyebrow { font-size: 10px; }
  .game-status { margin-bottom: 20px; }
  .timer { min-height: 54px; min-width: 54px; font-size: 21px; padding: 5px 9px; }
  .answer-option, .answer-option:has(input:checked) { min-height: 56px; padding: 12px 8px; font-size: 15px !important; }
  .game-card #inputs label { font-size: 14px; }
  .answer-option::before { width: 26px; height: 26px; }
  .game-card input, .game-card textarea { font-size: 16px; }
  .lobby-message h2 { font-size: 32px !important; }
  .lobby-message .muted { font-size: 14px !important; }
  .player-footer { font-size: 10px; }
  .sidebar { padding: 18px 16px 12px; }
  .sidebar nav { gap: 5px; }
  .nav-item { min-height: 44px; font-size: 12px; }
  .sidebar-bottom { display: flex; padding-top: 10px; margin-top: 10px; }
  .sidebar-bottom .host-avatar, .sidebar-bottom small { display: none; }
  .sidebar-bottom strong { font-size: 12px; }
  .sidebar-bottom #signOut { margin-left: auto; }
  .studio-main { padding: 22px 16px; }
  .card { padding: 20px; }
  .review-card { padding: 0; }
  .review-comparison { grid-template-columns: 1fr; padding: 14px 16px; }
  .review-question { padding: 14px 16px 0; }
  .review-card-header { padding: 14px 16px; gap: 8px; flex-wrap: wrap; }
  .review-identity { min-width: 0; }
  .review-decision { padding: 0 16px 16px; }
  .review-decision button { min-width: 0; }
  .host-stage { padding: 22px 18px; border-radius: 12px; }
  .host-option { font-size: 15px; }
  .host-time .timer { font-size: 32px; }
  .live-aside { grid-template-columns: 1fr; }
  .live-aside .eyebrow { font-size: 11px; }
  .metric-row { font-size: 13px; }
  .live-aside .card { padding: 20px; }
  .podium { grid-template-columns: 1fr; }
  .podium-item { padding: 16px 20px; }
  .podium-item h3 { font-size: 17px; padding: 0; margin-bottom: 8px; }
  .podium-item small { font-size: 11px; }
  .podium-medal { position: absolute; width: 32px; height: 32px; font-size: 15px; }
  .podium-score { font-size: 28px; }
  .team-row { flex-wrap: wrap; }
  .team-row .team-info { min-width: 100px; }
  .team-row .secondary { min-height: 44px; font-size: 12px; }
  .presenting .host-stage { padding: 22px; }
  .presenting .host-option { font-size: 18px; }
}
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.game-row .game-icon { background: var(--blue-soft); color: var(--field); border-radius: 50%; }
.lobby-message p { margin-left: 0; margin-right: 0; max-width: none; }
.reveal-answer .eyebrow { color: var(--field); }
.history-entry { color: #4d576e; }
.checkbox-label { display: flex; align-items: center; gap: 10px; }
.checkbox-label input { width: 20px; min-height: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent); }
.review-tools { margin-bottom: 22px; align-items: end; gap: 24px; }
.review-tools > label { flex: 1; min-width: 200px; }
.review-hint { font-size: 13px; margin: 0 20px 14px; padding: 12px; color: #4a4118; background: #fff8dd; border-left: 3px solid var(--yellow); }
.review-source { display: inline-block; margin: 0 20px 14px; font-size: 13px; }
.library-details { font-size: 13px; margin-top: 18px; }
.library-question { border-top: 1px solid var(--line); padding: 18px 0; }
.library-question h3 { margin-bottom: 12px; }
.library-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
#studioRoundResults { margin-bottom: 24px; }
.player-app[data-phase="break"] .timer { display: none; }
#hostMedia .media { max-height: 420px; }
.presenting #hostMedia .media { max-height: 46vh; }
.host-app { background: var(--field); min-height: 100vh; }
.host-main { max-width: 1160px; margin: auto; padding: 20px 28px 60px; }
.host-back { color: #e1e5f7; font-size: 13px; }
#hostAuth { max-width: 540px; margin: 30px auto; }
#hostAuth h1 { margin-bottom: 16px; }
#hostLogin { margin-top: 24px; }
.host-screen-top { color: white; display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; }
#hostConnection { font-size: 12px; color: #dbe3f3; }
#hostRoundName { margin-top: 26px; }
#hostQuestion { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 28px; }
#hostResults { margin-top: 24px; }
#hostAnswer { margin: 24px 0; }
#hostCounts { margin-top: 24px; }
.host-app .host-stage { background: white; }
@media(max-width:650px) { .host-main { padding: 8px 16px 32px; } .host-back { max-width: 120px; font-size: 11px; } #hostAuth { padding: 24px 20px; } .host-screen-top { flex-wrap: wrap; } }
