:root {
  --bg: #1696d2;
  --panel: #3fa7d6;
  --border: rgba(255,255,255,.18);
  --text: #1a1a1a;
  --muted: rgba(255,255,255,.84);
  --accent: #2f93c9;
  --accent2: #d7ecf7;
  --danger: #ef6672;
  --success: #2ecc71;

  /* normalized shared theme tokens */
  --ui-white: #ffffff;
  --ui-black: #111111;
  --ui-gray-pill: linear-gradient(180deg, #5f6878 0%, #555d6c 100%);
  --ui-gray-pill-2: linear-gradient(180deg, #70798a 0%, #646d7d 100%);
  --ui-gray-card: linear-gradient(180deg, rgba(95,104,120,.78) 0%, rgba(85,93,108,.82) 100%);
  --ui-gray-border: rgba(255,255,255,.08);
  --ui-pill-border: rgba(255,255,255,.14);
  --ui-teal: #2fe0d6;
  --ui-panel-dark: rgba(12, 24, 49, 0.76);
  --ui-input-bg: rgba(255,255,255,.98);
  --ui-soft-white: rgba(255,255,255,.84);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
.wrap { width: min(1240px, 94vw); margin: 0 auto; }
.wrap-wide { width: min(1500px, 96vw); }
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}
.site-title { margin: 0; font-size: 1.6rem; }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; }
.nav-links a { color: var(--accent); text-decoration: none; font-weight: 700; }
.nav-links a:hover { text-decoration: underline; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: 22px;
  margin: 22px 0;
}
.inset-panel { margin: 0; background: rgba(255,255,255,.35); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.stack { display: grid; gap: 12px; }
.grid { display: grid; gap: 20px; }
.two-col { grid-template-columns: 1.12fr .88fr; }
.two-col-tight { grid-template-columns: 1fr 1fr; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ui-white);
  color: var(--ui-black);
}
textarea { resize: vertical; }
button, .btn {
  display: inline-block;
  border: 0;
  background: var(--accent);
  color: var(--ui-white);
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary { background: var(--text); color: var(--panel); }
.btn-danger { background: var(--danger); }
.button-row, .pill-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill, .mini-pill {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent2);
  color: var(--text);
  font-weight: 700;
  border: 1px solid var(--border);
}
.mini-pill { padding: 3px 8px; font-size: .88rem; }
.mini-pill.good { background: rgba(22,101,52,.18); border-color: rgba(22,101,52,.35); }
.mini-pill.bad { background: rgba(185,28,28,.15); border-color: rgba(185,28,28,.35); }
.flash-stack { margin-top: 20px; }
.flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  font-weight: 700;
}
.flash.success { background: #e9f8ef; color: #0f5132; }
.flash.error { background: #fff0ee; color: #8a1c14; }
.flash.info { background: #eef5ff; color: #1d4d8f; }
.subtle { color: var(--muted); }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.clean-list li { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.5); }
.compact-list li { padding: 10px 12px; }
.check-row, .radio-row { display: flex; align-items: center; gap: 10px; }
.check-row input, .radio-row input { width: auto; }
.box-check { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.5); }
.choice-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pick-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  background: var(--accent2);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 14px;
  border-radius: 12px;
}
.pick-radio { font-size: 1.1rem; min-width: 24px; }
.pick-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ui-white);
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
}
.theme-card input { display: none; }
.theme-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.theme-card input:checked + .theme-preview { outline: 3px solid var(--accent); }
.results-screen { min-height: 70vh; }
.big-question { font-size: clamp(1.9rem, 4vw, 3.4rem); margin: 8px 0 18px; }
.bar-list { display: grid; gap: 16px; margin-top: 20px; }
.bar-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}
.correct-bar { box-shadow: inset 0 0 0 2px var(--success); }
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.bar-track {
  width: 100%;
  height: 30px;
  border-radius: 999px;
  background: var(--accent2);
  overflow: hidden;
}
.bar-fill { height: 100%; background: var(--accent); }
.large-list li { font-size: 1.3rem; }
.correct-answer { box-shadow: inset 0 0 0 2px var(--success); }
.top-gap { margin-top: 12px; }
.left-options { align-items: stretch; }
.left-choice {
  justify-content: flex-start;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.55);
}
.left-choice span { flex: 1; }
.student-panel { margin-top: 40px; }
.possible-wrap, .fastest-wrap { margin-top: 22px; }
.possible-list, .fastest-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.overhead-body { background: var(--bg); }
.overhead-screen { min-height: calc(100vh - 40px); margin-top: 20px; }

@media (max-width: 900px) {
  .two-col, .two-col-tight { grid-template-columns: 1fr; }
  .nav-row { flex-direction: column; align-items: flex-start; }
}


.status-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 0; }
.status-bar-lg { margin-top: 16px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--border);
}
.status-pill.pending, .state-wait { background: #fff7e6; color: #8a5a00; border-color: #e7c685; }
.status-pill.done, .state-good { background: #e9f8ef; color: #0f5132; border-color: #9fd3af; }
.state-bad { background: #fff0ee; color: #8a1c14; border-color: #e3a7a0; }
.state-info { background: #eef5ff; color: #1d4d8f; border-color: #aac3ea; }
.state-neutral { background: var(--accent2); color: var(--text); border-color: var(--border); }
.nav-links a[target="_blank"]::after { content: " ↗"; font-size: .85em; }
.flash.top-gap { margin-top: 12px; }

.console-preview {
  margin-top: 14px;
}
.console-preview-shell {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.console-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.console-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 700;
}
.console-preview-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.console-preview-question {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.console-preview-answer {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.console-preview-options {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.console-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.22);
  color: inherit;
}
.console-option.selected {
  font-weight: 700;
}
.console-preview-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.waiting-board {
  display: grid;
  gap: 22px;
}
.timer-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--accent2);
  text-align: center;
}
.timer-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.timer-value {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  font-weight: 700;
}
.timer-subtle {
  font-size: 1.1rem;
  color: var(--muted);
}
.waiting-list li {
  font-size: 1.2rem;
}

.question-above-choices { margin: 2px 0 8px; }
.medal-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.medal-card {
  border-radius: 18px;
  padding: 18px;
  border: 2px solid var(--border);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  display: grid;
  gap: 10px;
  text-align: center;
}
.medal-card.gold { background: linear-gradient(180deg, #fff7d6 0%, #f3d36b 100%); border-color: #c9a227; color: #3a2a00; }
.medal-card.silver { background: linear-gradient(180deg, #f7f9fc 0%, #cfd6df 100%); border-color: #8f9aa7; color: #1e2834; }
.medal-card.bronze { background: linear-gradient(180deg, #f7e2d1 0%, #c98952 100%); border-color: #8e5a2b; color: #2f1b0d; }
.medal-top { display:flex; align-items:center; justify-content:center; gap:10px; font-weight:700; }
.medal-icon { font-size: 1.8rem; }
.medal-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.medal-name { font-size: 1.35rem; font-weight: 700; }
.medal-time { font-size: 1.7rem; font-weight: 700; }


.overhead-status-bar {
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.overhead-status-bar .pill {
  padding: 10px 14px;
}
.timer-card-top {
  margin-bottom: 6px;
}
.waiting-board .possible-wrap {
  margin-top: 8px;
}


.arcade-fastest-wrap {
  margin-top: 28px;
}
.arcade-fastest-panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 28px 24px;
  background:
    radial-gradient(circle at 50% 14%, rgba(26, 37, 85, 0.95) 0%, rgba(11, 18, 40, 0.97) 38%, rgba(4, 8, 17, 0.99) 72%, rgba(1, 3, 8, 1) 100%);
  box-shadow:
    0 0 18px rgba(255, 185, 40, 0.22),
    0 0 40px rgba(255, 185, 40, 0.10),
    inset 0 0 28px rgba(255, 255, 255, 0.04);
}
.arcade-fastest-panel::before,
.arcade-fastest-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
}
.arcade-fastest-panel::before {
  border: 6px solid #ffc22d;
  filter: drop-shadow(0 0 10px rgba(255, 190, 60, 0.35));
}
.arcade-fastest-panel::after {
  inset: 16px;
  border: 2px solid #ffe7a6;
  border-radius: 14px;
  opacity: 0.95;
}
.arcade-fastest-title {
  margin: 2px 0 18px;
  text-align: center;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd468;
  text-shadow:
    4px 4px 0 rgb(255, 120, 20),
    2px 2px 0 rgb(255, 185, 70),
    0 0 10px rgba(255, 190, 60, 0.45);
}
.arcade-fastest-headers,
.arcade-fastest-row {
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  gap: 10px;
  align-items: center;
}
.arcade-fastest-headers {
  margin: 8px 12px 12px;
  color: #fff5d2;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  text-shadow: 2px 2px 0 rgba(20,20,20,0.65);
}
.arcade-fastest-headers .name-head {
  text-align: center;
}
.arcade-fastest-headers .time-head {
  text-align: right;
  padding-right: 12px;
}
.arcade-fastest-divider {
  height: 3px;
  margin: 0 12px 14px;
  background: linear-gradient(to right, transparent 0%, #ffd228 10%, #ffd228 90%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 210, 40, 0.35);
}
.arcade-fastest-table {
  display: grid;
  gap: 10px;
}
.arcade-fastest-row {
  position: relative;
  margin: 0 2px;
  padding: 13px 18px;
  border-radius: 8px;
  background: rgba(22, 22, 42, 0.95);
  color: #f5f5eb;
}
.arcade-fastest-row:nth-child(even) {
  background: rgba(35, 35, 55, 0.95);
}
.arcade-fastest-row::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: -5px;
  height: 1px;
  background: rgb(90, 90, 130);
}
.arcade-fastest-row.top-1,
.arcade-fastest-row.top-2,
.arcade-fastest-row.top-3 {
  isolation: isolate;
}
.arcade-fastest-row.top-1::before,
.arcade-fastest-row.top-2::before,
.arcade-fastest-row.top-3::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  z-index: -1;
  opacity: 0.7;
}
.arcade-fastest-row.top-1::before { background: rgba(104, 70, 110, 0.35); }
.arcade-fastest-row.top-2::before { background: rgba(94, 64, 104, 0.28); }
.arcade-fastest-row.top-3::before { background: rgba(88, 56, 98, 0.26); }
.arcade-fastest-row.top-1 { color: rgb(235, 195, 55); }
.arcade-fastest-row.top-2 { color: rgb(220, 220, 228); }
.arcade-fastest-row.top-3 { color: rgb(220, 150, 68); }
.arcade-rank,
.arcade-name,
.arcade-time {
  font-size: clamp(1.15rem, 2.1vw, 1.8rem);
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(18,18,18,0.75);
}
.arcade-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.arcade-rank .emoji {
  width: 28px;
  text-align: center;
  font-size: 1.35rem;
}
.arcade-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
.arcade-time-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.arcade-time {
  font-weight: 900;
}
.arcade-correct-pill {
  text-shadow: none;
}

@media (max-width: 760px) {
  .arcade-fastest-panel {
    padding: 18px 16px 18px;
  }
  .arcade-fastest-headers,
  .arcade-fastest-row {
    grid-template-columns: 90px 1fr 138px;
  }
  .arcade-rank .emoji,
  .arcade-correct-pill {
    display: none;
  }
}

.student-theme-panel {
  min-height: 70vh;
}
.student-head {
  align-items: stretch;
  margin-bottom: 18px;
}
.student-timer-shell {
  min-width: min(360px, 100%);
  flex: 0 1 380px;
}
.compact-timer-card {
  padding: 18px 22px;
  height: 100%;
}
.compact-timer-value {
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.student-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: start;
}
.student-main-card,
.student-side-card {
  background: rgba(255,255,255,.4);
}
.student-question {
  margin-top: 6px;
  margin-bottom: 18px;
}
.student-options {
  gap: 14px;
}
.student-choice-card {
  min-height: 68px;
  font-size: 1.15rem;
  border-width: 2px;
  background: rgba(255,255,255,.72);
}
.student-choice-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.student-submit-btn {
  margin-top: 8px;
  min-height: 52px;
  font-size: 1.05rem;
}
.student-identity-card h3 {
  margin-top: 0;
}
.student-side-note {
  margin-bottom: 0;
}
.student-empty-state {
  padding: 18px 6px;
}
.intermission-card {
  margin-top: 8px;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .student-card-grid {
    grid-template-columns: 1fr;
  }
  .student-timer-shell {
    min-width: 0;
    flex-basis: 100%;
  }
}


/* Admin page theme refresh */
.admin-dashboard {
  --admin-bg: #08162d;
  --admin-panel: #0b1830;
  --admin-panel-2: #102241;
  --admin-card: #5e6674;
  --admin-card-2: #6b7380;
  --admin-border: #23395d;
  --admin-soft-border: rgba(149, 176, 221, 0.18);
  --admin-text: #f6f8fc;
  --admin-muted: #c8d2e7;
  --admin-blue: #5da0ff;
  --admin-blue-2: #7eb4ff;
  --admin-pill: #193156;
  --admin-pill-border: #284973;
  color: var(--admin-text);
}
.admin-dashboard .panel {
  background: linear-gradient(180deg, var(--admin-panel) 0%, #0a1730 100%);
  border-color: var(--admin-border);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}
.admin-dashboard .panel.inset-panel,
.admin-dashboard .console-preview-shell,
.admin-dashboard .console-preview-panel,
.admin-dashboard .theme-preview,
.admin-dashboard .theme-card input:checked + .theme-preview,
.admin-dashboard .clean-list li,
.admin-dashboard .left-choice,
.admin-dashboard .box-check,
.admin-dashboard .pick-btn {
  background: rgba(255,255,255,.04);
  border-color: var(--admin-soft-border);
}
.admin-dashboard h2,
.admin-dashboard h3,
.admin-dashboard h4,
.admin-dashboard label,
.admin-dashboard strong,
.admin-dashboard .site-title {
  color: var(--admin-text);
}
.admin-dashboard .subtle,
.admin-dashboard small,
.admin-dashboard .console-preview-muted,
.admin-dashboard .timer-subtle {
  color: var(--admin-muted);
}
.admin-dashboard hr {
  border: 0;
  border-top: 1px solid rgba(149, 176, 221, 0.14);
  margin: 24px 0;
}
.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea {
  background: var(--ui-input-bg);
  border-color: rgba(255,255,255,.16);
  color: #101522;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.admin-dashboard input:focus,
.admin-dashboard select:focus,
.admin-dashboard textarea:focus {
  outline: 2px solid rgba(93,160,255,.35);
  border-color: var(--admin-blue);
}
.admin-dashboard .btn,
.admin-dashboard button,
.admin-dashboard .btn-secondary,
.admin-dashboard .btn-danger {
  background: linear-gradient(180deg, var(--admin-blue-2) 0%, var(--admin-blue) 100%);
  color: var(--ui-white);
  border: 1px solid var(--ui-gray-border);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.admin-dashboard .btn-secondary {
  background: linear-gradient(180deg, #7f8b9f 0%, #677283 100%);
}
.admin-dashboard .btn-danger {
  background: linear-gradient(180deg, #ff8d92 0%, #ef6672 100%);
}
.admin-dashboard .pill,
.admin-dashboard .mini-pill,
.admin-dashboard .status-pill,
.admin-dashboard .console-preview-badge {
  background: linear-gradient(180deg, var(--admin-pill) 0%, #1f3961 100%);
  color: var(--ui-white);
  border-color: var(--admin-pill-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.admin-dashboard .choice-picker {
  gap: 12px;
}
.admin-dashboard .pick-btn {
  background: var(--ui-gray-pill);
  color: var(--ui-white);
  border-color: var(--ui-gray-border);
}
.admin-dashboard .pick-btn.selected {
  background: linear-gradient(180deg, var(--admin-blue-2) 0%, var(--admin-blue) 100%);
  border-color: rgba(255,255,255,.22);
}
.admin-dashboard .console-preview-shell {
  background: linear-gradient(180deg, #0a1830 0%, #09162c 100%);
}
.admin-dashboard .console-preview-panel {
  background: linear-gradient(180deg, #0a1830 0%, #09162c 100%);
}
.admin-dashboard .console-option {
  background: var(--ui-gray-pill);
  color: var(--ui-white);
  border-color: var(--ui-gray-border);
}
.admin-dashboard .console-option.selected {
  background: linear-gradient(180deg, #6f7887 0%, #616a79 100%);
}
.admin-dashboard .flash.success,
.admin-dashboard .flash.info,
.admin-dashboard .flash.error {
  border-color: rgba(255,255,255,.12);
}
.admin-dashboard .flash.success { background: rgba(57, 111, 80, 0.28); color: #eefaf1; }
.admin-dashboard .flash.info { background: rgba(49, 88, 145, 0.28); color: #eef5ff; }
.admin-dashboard .flash.error { background: rgba(144, 62, 62, 0.28); color: #fff2f2; }
.admin-dashboard a { color: #a8c8ff; }
.admin-dashboard .clean-list li { color: var(--admin-text); }
.admin-dashboard .current-poll-header h2 { margin-top: 0; }
.admin-dashboard .button-row .inline-form { margin: 0; }


.admin-theme-page .panel {
  background: linear-gradient(180deg, rgba(8, 22, 54, 0.98) 0%, rgba(4, 16, 42, 0.98) 100%);
  border-color: #1f3969;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.admin-theme-page .inset-panel {
  background: linear-gradient(180deg, rgba(23, 40, 77, 0.95) 0%, rgba(18, 33, 66, 0.95) 100%);
  border-color: #2b477d;
}
.admin-theme-page h2,
.admin-theme-page h3,
.admin-theme-page h4,
.admin-theme-page label,
.admin-theme-page strong {
  color: #f8fbff;
}
.admin-theme-page .subtle {
  color: #c7d7f2;
}
.admin-theme-page .pill,
.admin-theme-page .mini-pill {
  background: linear-gradient(180deg, #213d71 0%, #182f5b 100%);
  color: var(--ui-white);
  border-color: #355b95;
  box-shadow: inset 0 1px 0 var(--ui-gray-border);
}
.admin-theme-page .clean-list li,
.admin-theme-page .compact-list li {
  background: linear-gradient(180deg, rgba(20, 38, 76, 0.96) 0%, rgba(14, 28, 58, 0.96) 100%);
  border-color: #2a4a80;
  color: #f3f7ff;
}
.admin-theme-page .box-check {
  background: linear-gradient(180deg, rgba(20, 38, 76, 0.94) 0%, rgba(13, 27, 57, 0.94) 100%);
  border-color: #2a4a80;
}
.admin-theme-page hr {
  border: 0;
  border-top: 1px solid #22406f;
  margin: 22px 0;
}
.admin-theme-page .current-poll-header {
  align-items: center;
}
.admin-current-poll-panel h3 {
  color: var(--ui-white);
  font-size: 1.65rem;
  line-height: 1.3;
  margin-bottom: 14px;
}
.admin-current-poll-panel .subtle {
  font-size: 1.03rem;
}
.admin-current-poll-panel .button-row .subtle {
  color: #b9cae8;
}
.admin-theme-page .btn-secondary {
  background: #6fb0ff;
  color: #08204b;
}
.admin-theme-page .btn-danger {
  background: #ef7f79;
  color: var(--ui-white);
}
.admin-theme-page .btn-secondary:hover,
.admin-theme-page .btn:hover {
  filter: brightness(1.06);
}


.pill, .mini-pill {
  color: var(--ui-white);
}

.pick-btn {
  color: var(--ui-white);
}

.bank-transfer-panel {
  gap: 10px;
}

.compact-note {
  margin: 0;
  font-size: .95rem;
}

.bank-transfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.bank-transfer-row input[type="file"] {
  margin: 0;
}

.bank-export-row {
  margin-top: 2px;
}

.bank-export-row .btn,
.bank-transfer-row .btn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .bank-transfer-row {
    grid-template-columns: 1fr;
  }
}


/* Force white text on light-blue admin pills and export buttons */
.admin-theme-page .btn-secondary,
.admin-theme-page .btn-secondary:visited,
.admin-dashboard .btn-secondary,
.admin-dashboard .btn-secondary:visited {
  color: var(--ui-white) !important;
}
.admin-theme-page .pill,
.admin-theme-page .mini-pill,
.admin-dashboard .pill,
.admin-dashboard .mini-pill {
  color: var(--ui-white) !important;
}

/* Updated darker gray pills for History and Student pages */
.history-page .pill,
.history-page .mini-pill,
.history-page .status-pill,
.history-page .state-neutral,
.history-page .state-info,
.history-page .state-wait,
.history-page .state-good,
.history-page .state-bad,
.student-page .pill,
.student-page .mini-pill,
.student-page .status-pill,
.student-page .state-neutral,
.student-page .state-info,
.student-page .state-wait,
.student-page .state-good,
.student-page .state-bad {
  background: var(--ui-gray-pill) !important;
  color: var(--ui-white) !important;
  border-color: var(--ui-gray-border) !important;
}


/* Darker gray styling for History and Student page card/pill elements */
.history-panel .clean-list li {
  background: var(--ui-gray-pill) !important;
  border-color: var(--ui-gray-border) !important;
  color: var(--ui-white) !important;
}
.history-panel .clean-list li .subtle {
  color: rgba(255,255,255,.82) !important;
}
.student-theme-panel .student-main-card,
.student-theme-panel .student-side-card {
  background: var(--ui-gray-card) !important;
  border-color: var(--ui-gray-border) !important;
}
.student-theme-panel .student-choice-card,
.student-theme-panel .left-choice,
.student-theme-panel .status-pill,
.student-theme-panel .state-neutral,
.student-theme-panel .state-info,
.student-theme-panel .state-wait,
.student-theme-panel .state-good,
.student-theme-panel .state-bad {
  background: var(--ui-gray-pill) !important;
  color: var(--ui-white) !important;
  border-color: var(--ui-gray-border) !important;
}
.student-theme-panel .subtle,
.student-theme-panel .student-side-note.flash.info {
  color: var(--ui-soft-white);
}
.student-theme-panel .student-side-note.flash.info {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.10) !important;
}


/* Exact overhead join banner layout: QR left, centered text, dark gray background */
.overhead-screen .overhead-join-banner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 0 14px 0 !important;
  padding: 10px 18px !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: #7f848d !important;
  text-align: left !important;
  box-shadow: none !important;
}

.overhead-screen .overhead-join-copy {
  min-width: 0;
  text-align: center;
}

.overhead-screen .overhead-join-label {
  margin: 0 0 2px 0 !important;
  font-size: clamp(1rem, 1.6vw, 1.25rem) !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  color: #e8ecf3 !important;
}

.overhead-screen .overhead-join-url {
  margin: 0 !important;
  font-size: clamp(1.8rem, 3.6vw, 3rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  color: var(--ui-white) !important;
  text-shadow: none !important;
  overflow-wrap: anywhere;
}

.overhead-screen .overhead-join-note {
  margin: 4px 0 0 0 !important;
  font-size: clamp(.95rem, 1.5vw, 1.2rem) !important;
  color: #eef2f7 !important;
}

.overhead-screen .overhead-qr-wrap {
  margin: 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.overhead-screen .overhead-qr-image {
  width: 78px !important;
  height: 78px !important;
  max-width: none !important;
  padding: 6px !important;
  border-radius: 12px !important;
  background: var(--ui-white) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.overhead-screen .big-question,
.overhead-screen #resultsApp .big-question,
.results-screen.overhead-screen .big-question {
  text-align: center !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 760px) {
  .overhead-screen .overhead-join-banner {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .overhead-screen .overhead-qr-wrap {
    justify-content: center !important;
  }

  .overhead-screen .overhead-join-url {
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
  }
}


/* Compact overhead one-screen cleanup */
.overhead-screen {
  min-height: calc(100vh - 24px);
  margin-top: 10px;
  padding: 14px 18px;
}

.overhead-screen .overhead-join-pill {
  display: inline-grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  width: fit-content !important;
  max-width: min(92vw, 980px) !important;
  margin: 0 auto 12px auto !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ui-pill-border) !important;
  background: var(--ui-gray-pill) !important;
  box-shadow: none !important;
}

.overhead-screen .overhead-join-copy,
.overhead-screen .overhead-join-singleline {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0;
  text-align: center !important;
  color: var(--ui-white) !important;
}

.overhead-screen .overhead-join-inline-label,
.overhead-screen .overhead-join-inline-url {
  font-size: clamp(1rem, 1.9vw, 1.7rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: var(--ui-white) !important;
  text-shadow: none !important;
}

.overhead-screen .overhead-join-inline-url {
  overflow-wrap: anywhere;
}

.overhead-screen .overhead-join-label,
.overhead-screen .overhead-join-url,
.overhead-screen .overhead-join-note {
  display: none !important;
}

.overhead-screen .overhead-qr-wrap {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.overhead-screen .overhead-qr-image {
  width: 58px !important;
  height: 58px !important;
  padding: 5px !important;
  border-radius: 10px !important;
  background: var(--ui-white) !important;
}

.overhead-screen .big-question,
.overhead-screen #resultsApp .big-question,
.results-screen.overhead-screen .big-question {
  text-align: center !important;
  font-size: clamp(2rem, 4vw, 3.8rem) !important;
  line-height: 1.12 !important;
  margin: 8px 0 12px !important;
}

.overhead-screen .arcade-fastest-wrap {
  margin-top: 12px !important;
}

.overhead-screen .arcade-fastest-panel {
  padding: 16px 18px 14px !important;
}

.overhead-screen .arcade-fastest-panel::before {
  border-width: 4px !important;
}

.overhead-screen .arcade-fastest-panel::after {
  inset: 10px !important;
}

.overhead-screen .arcade-fastest-title {
  margin: 0 0 10px !important;
  font-size: clamp(1.2rem, 2.4vw, 2rem) !important;
  text-shadow: none !important;
}

.overhead-screen .arcade-fastest-headers {
  margin: 4px 8px 8px !important;
  font-size: clamp(.9rem, 1.4vw, 1.1rem) !important;
}

.overhead-screen .arcade-fastest-divider {
  margin: 0 8px 8px !important;
}

.overhead-screen .arcade-fastest-table {
  gap: 6px !important;
}

.overhead-screen .arcade-fastest-row {
  padding: 8px 12px !important;
}

.overhead-screen .arcade-fastest-headers,
.overhead-screen .arcade-fastest-row {
  grid-template-columns: 110px 1fr 130px !important;
  gap: 8px !important;
}

.overhead-screen .arcade-rank,
.overhead-screen .arcade-name,
.overhead-screen .arcade-time {
  font-size: clamp(1rem, 1.7vw, 1.35rem) !important;
}

.overhead-screen .bar-list {
  gap: 10px !important;
  margin-top: 12px !important;
}

.overhead-screen .bar-card {
  padding: 12px 14px !important;
}

.overhead-screen .bar-label {
  font-size: 1rem !important;
  margin-bottom: 6px !important;
}

.overhead-screen .bar-track {
  height: 24px !important;
}

@media (max-width: 900px) {
  .overhead-screen .overhead-join-pill {
    max-width: 96vw !important;
    border-radius: 24px !important;
    padding: 10px 14px !important;
  }

  .overhead-screen .overhead-join-singleline {
    flex-wrap: wrap;
  }
}


/* Overhead polling view should match the clean pre-look */
.overhead-screen #resultsApp[data-view="overhead"] {
  min-height: 0;
}

.overhead-live-stage {
  display: grid;
  gap: 14px;
}

.overhead-top-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 2px;
}

.overhead-top-row-results {
  margin-bottom: 8px;
}

.overhead-top-spacer {
  min-height: 1px;
}

.overhead-timer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 460px;
  max-width: 460px;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--ui-gray-pill-2);
  color: #f2f5fb;
  font-weight: 800;
  justify-self: end;
  align-self: start;
  margin-top: 0;
}

.overhead-timer-pill-label,
.overhead-timer-pill-value {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.1;
}

.overhead-live-options {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.overhead-live-option {
  padding: 15px 16px;
  border-radius: 12px;
  border: 2px solid var(--ui-teal);
  background: var(--ui-panel-dark);
  color: #f6f8ff;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.overhead-live-short-answer {
  padding: 18px 20px;
  border-radius: 12px;
  border: 2px solid var(--ui-teal);
  background: var(--ui-panel-dark);
  color: #f6f8ff;
  font-size: 1.1rem;
  text-align: center;
}

.overhead-screen .arcade-fastest-title {
  text-shadow: none !important;
}

.overhead-screen .arcade-fastest-panel {
  padding: 12px 16px 12px !important;
}

.overhead-screen .arcade-fastest-title {
  font-size: clamp(1rem, 2vw, 1.55rem) !important;
  margin: 0 0 8px !important;
}

.overhead-screen .arcade-fastest-headers {
  margin: 2px 6px 6px !important;
  font-size: clamp(.82rem, 1.2vw, .98rem) !important;
}

.overhead-screen .arcade-fastest-divider {
  margin: 0 6px 6px !important;
}

.overhead-screen .arcade-fastest-table {
  gap: 4px !important;
}

.overhead-screen .arcade-fastest-row {
  padding: 7px 10px !important;
}

.overhead-screen .arcade-fastest-headers,
.overhead-screen .arcade-fastest-row {
  grid-template-columns: 92px 1fr 108px !important;
}

.overhead-screen .arcade-rank,
.overhead-screen .arcade-name,
.overhead-screen .arcade-time {
  font-size: clamp(.92rem, 1.45vw, 1.1rem) !important;
}

@media (max-width: 900px) {
  .overhead-top-row {
    grid-template-columns: 1fr;
  }

  .overhead-timer-pill {
    justify-self: center;
    min-width: 0;
    width: 100%;
    max-width: 420px;
  }
}


/* Put the join pill and the timer pill on the same line and level */
.overhead-pill-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 8px;
}

.overhead-timer-host {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 0 0 680px;
  width: 680px;
  max-width: 680px;
}

.overhead-screen .overhead-join-pill,
.overhead-screen .overhead-timer-pill {
  min-height: 78px !important;
  box-sizing: border-box;
}

.overhead-screen .overhead-timer-pill {
  width: 100% !important;
  max-width: none !important;
  padding: 0 22px !important;
  margin: 0 !important;
  align-self: flex-start !important;
}

.overhead-screen .overhead-timer-pill-label,
.overhead-screen .overhead-timer-pill-value {
  font-size: clamp(1.05rem, 1.7vw, 1.45rem) !important;
  font-weight: 800 !important;
}

.overhead-screen .overhead-timer-pill-closed {
  justify-content: center !important;
}

.overhead-top-row,
.overhead-top-row-results {
  display: none !important;
}

@media (max-width: 1100px) {
  .overhead-pill-row {
    flex-direction: column;
    align-items: center;
  }

  .overhead-timer-host {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
    justify-content: center;
  }

  .overhead-screen .overhead-timer-pill {
    width: min(680px, 96vw) !important;
    max-width: 96vw !important;
  }
}


/* Final top pill alignment tweaks */
.overhead-pill-row {
  align-items: flex-start;
}

.overhead-screen .overhead-join-pill {
  margin: 0 !important;
  justify-self: start !important;
  align-self: flex-start !important;
}

.overhead-screen .overhead-join-copy,
.overhead-screen .overhead-join-singleline {
  justify-content: flex-start !important;
  text-align: left !important;
}

.overhead-timer-host {
  margin-left: auto;
}

@media (max-width: 1100px) {
  .overhead-screen .overhead-join-copy,
  .overhead-screen .overhead-join-singleline {
    justify-content: center !important;
    text-align: center !important;
  }
}


/* Student page overhaul to match overhead page style */
.student-overhead-shell {
  min-height: calc(100vh - 24px);
  margin-top: 10px;
  padding: 14px 18px;
}

.student-pill-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 10px;
}

.student-join-pill,
.student-status-pill {
  min-height: 78px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid var(--ui-pill-border);
  background: var(--ui-gray-pill);
  color: var(--ui-white);
}

.student-join-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: min(92vw, 620px);
  padding: 0 28px;
  margin: 0;
}

.student-join-copy {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  text-align: left;
}

.student-join-inline-label {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ui-white);
}

.student-status-host {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 0 0 auto;
  margin-left: auto;
}

.student-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 560px;
  max-width: 560px;
  padding: 0 22px;
  margin: 0;
  font-weight: 800;
}

.student-status-label,
.student-status-value {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--ui-white);
}

.student-status-pill-closed {
  justify-content: center;
}

.student-state-card {
  background: var(--ui-gray-card) !important;
  border: 1px solid var(--ui-gray-border) !important;
  border-radius: 18px;
  padding: 22px;
  min-height: 420px;
}

.student-state-title,
.student-idle-title,
.student-question {
  text-align: center !important;
  color: var(--ui-white);
}

.student-state-subtle,
.student-idle-subtle,
.student-overhead-shell .subtle {
  color: var(--ui-soft-white);
}

.student-signin-form {
  margin-top: 20px;
}

.student-signin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.student-signin-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.student-idle-wrap {
  display: grid;
  place-items: center;
  min-height: 340px;
  text-align: center;
}

.student-idle-title {
  margin-bottom: 12px !important;
}

.student-options {
  gap: 14px;
  margin-top: 6px;
}

.student-choice-card {
  min-height: 68px;
  font-size: 1.15rem;
  border-width: 2px;
  background: var(--ui-gray-pill) !important;
  color: var(--ui-white) !important;
  border-color: var(--ui-gray-border) !important;
}

.student-choice-card:hover {
  border-color: var(--ui-teal) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.student-choice-card input {
  accent-color: var(--ui-teal);
}

.student-submit-btn {
  margin-top: 10px;
  min-height: 54px;
  min-width: 220px;
  font-size: 1.08rem;
  justify-self: center;
}

.student-overhead-shell textarea,
.student-overhead-shell input[type="text"] {
  background: var(--ui-input-bg);
  color: var(--ui-black);
}

@media (max-width: 1100px) {
  .student-pill-row {
    flex-direction: column;
    align-items: center;
  }

  .student-status-host {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .student-join-pill {
    max-width: 96vw;
  }

  .student-status-pill {
    width: min(560px, 96vw);
    max-width: 96vw;
  }
}

@media (max-width: 760px) {
  .student-signin-grid {
    grid-template-columns: 1fr;
  }

  .student-join-pill {
    width: 100%;
    justify-content: center;
    padding: 0 18px;
  }

  .student-join-copy {
    justify-content: center;
    text-align: center;
  }
}


/* Overhead astro logo sizing and placement tweak */
.overhead-screen .astro-logo,
.overhead-screen .overhead-astro-logo,
.overhead-screen .overhead-logo,
.overhead-screen .logo-astro,
.overhead-screen .join-logo,
.overhead-screen .overhead-pill-row > img:first-child,
.overhead-screen .overhead-join-pill > img:first-child {
  transform: translateX(25px) scale(1.1);
  transform-origin: center center;
}


/* === COMBINED HEADER PILL (LOGO + TEXT) === */

.astro-student-top-pill-combined {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 74px;
  margin: 10px 18px 12px;
  padding: 12px 20px;

  border-radius: 18px;
  background: linear-gradient(180deg, #31475d 0%, #2c3e50 100%);
  border: 2px solid rgba(255,255,255,0.22);
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);

  color: #ffffff;
  font-weight: 900;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* logo inside pill */
.astro-top-pill-logo {
  height: 42px;
  width: auto;
  display: block;
}


.astro-top-pill-logo {
  height: 42px;
  transform: scale(1.1);
}

/* === STUDENT COMBINED TOP PILL: GAME SHOW + TIMER POP + PERFECT CENTERING === */

.astro-student-top-pill-combined {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-height: 82px;
  margin: 10px 18px 12px;
  padding: 14px 24px;

  border-radius: 20px;
  background: linear-gradient(135deg, #3a536c 0%, #2f455c 45%, #26394c 100%);
  border: 2px solid rgba(255,255,255,0.28);

  box-shadow:
    0 6px 0 rgba(0,0,0,0.20),
    0 0 16px rgba(255,255,255,0.08);

  color: #ffffff !important;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.1;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.35),
    0 4px 8px rgba(0,0,0,0.35);
}

/* center all text content inside the pill */
.astro-student-top-pill-combined span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* logo inside pill */
.astro-top-pill-logo {
  height: 46px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

/* timer number pop */
.astro-student-top-pill-combined span span,
.astro-student-top-pill-combined #astroTimerText {
  font-size: 1.18em;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.38),
    0 4px 10px rgba(0,0,0,0.35);
}

/* optional extra emphasis for polling state */
.astro-student-top-pill-combined:has(#astroTimerText) {
  box-shadow:
    0 6px 0 rgba(0,0,0,0.20),
    0 0 18px rgba(255,255,255,0.10),
    0 0 22px rgba(47, 224, 214, 0.12);
}

@media (max-width: 760px) {
  .astro-student-top-pill-combined {
    gap: 10px;
    min-height: 74px;
    padding: 12px 18px;
    font-size: clamp(1.1rem, 4.6vw, 1.5rem);
  }

  .astro-top-pill-logo {
    height: 38px;
  }
}

/* === TIMER URGENCY PULSE (ONLY UNDER 10s) === */

@keyframes astroTimerUrgency {
  0% {
    transform: scale(1);
    box-shadow:
      0 6px 0 rgba(0,0,0,0.20),
      0 0 12px rgba(255,255,255,0.08);
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      0 6px 0 rgba(0,0,0,0.20),
      0 0 22px rgba(255, 80, 80, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 6px 0 rgba(0,0,0,0.20),
      0 0 12px rgba(255,255,255,0.08);
  }
}

/* applied dynamically */
.astro-timer-urgent {
  animation: astroTimerUrgency 1s ease-in-out infinite;
}


/* Faster pulse under 5 seconds */
.astro-timer-urgent-fast {
  animation: astroTimerUrgency 0.6s ease-in-out infinite;
}

/* Correct reveal flash on student page */
@keyframes astroCorrectReveal {
  0% {
    transform: scale(1);
    box-shadow:
      0 4px 0 rgba(0,0,0,0.16),
      0 0 0 rgba(46, 204, 113, 0);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 6px 0 rgba(0,0,0,0.18),
      0 0 22px rgba(46, 204, 113, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 4px 0 rgba(0,0,0,0.16),
      0 0 10px rgba(46, 204, 113, 0.22);
  }
}

.astro-correct-reveal {
  animation: astroCorrectReveal 0.9s ease;
}
