/* ================================================================
   Quivio Admin — canonical stylesheet
   Single file. All styles here. Do NOT create additional CSS files.
   ================================================================ */

/* Design tokens */
:root {
  --bg:           #f5f4f1;
  --surface:      #ffffff;
  --surface-2:    #f0ede9;
  --border:       #e5e1dc;
  --text:         #1c1917;
  --text-2:       #78716c;
  --text-3:       #a8a29e;
  --accent:       #6d28d9;
  --accent-mid:   #7c3aed;
  --accent-light: #ede9fe;
  --accent-text:  #5b21b6;
  --danger:       #dc2626;
  --danger-light: #fee2e2;
  --success:      #16a34a;
  --success-light:#dcfce7;
  --warning:      #d97706;
  --warning-light:#fef3c7;
  --sidebar-w:    224px;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 14px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #111110;
    --surface:      #1c1a18;
    --surface-2:    #252321;
    --border:       #2e2c28;
    --text:         #f5f4f2;
    --text-2:       #a8a29e;
    --text-3:       #78716c;
    --accent:       #8b5cf6;
    --accent-mid:   #a78bfa;
    --accent-light: #1e1535;
    --accent-text:  #c4b5fd;
    --danger:       #f87171;
    --danger-light: #450a0a;
    --success:      #4ade80;
    --success-light:#052e16;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.30);
    --shadow-md:    0 4px 14px rgba(0,0,0,.50);
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* App Shell */
.app-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 100;
  transition: transform .22s ease;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  user-select: none;
}
.sidebar-logo-text { font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.sidebar-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; }
.sidebar-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3); padding: 10px 10px 4px;
}
.nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  line-height: 1.4;
  transition: background .1s, color .1s;
  border: none; background: none;
  cursor: pointer; width: 100%;
  font-family: inherit;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--accent-light); color: var(--accent-text); font-weight: 600; }
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; }
.nav-link.active svg { opacity: 1; }
.sidebar-footer {
  padding: 8px 8px 12px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1px; flex-shrink: 0;
}
.sidebar-user-info { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.sidebar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent-text);
  font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-user-email {
  font-size: 12px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-toggle {
  display: none; position: fixed; top: 13px; left: 13px; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 8px; cursor: pointer; color: var(--text); line-height: 1;
  box-shadow: var(--shadow-sm); align-items: center;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .sidebar-overlay.open { display: block; }
  .page-body { margin-left: 0 !important; }
}

/* Page Body */
.page-body { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }

/* Page Header */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50; gap: 12px;
}
.page-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.page-actions { display: flex; align-items: center; gap: 8px; }

/* Content area */
.page-content { padding: 24px; flex: 1; }
.container { max-width: 1100px; margin: 0 auto; }

/* Buttons */
.btn, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500; border: none; cursor: pointer;
  text-decoration: none;
  transition: opacity .12s, transform .1s;
  white-space: nowrap; background: var(--accent); color: #fff;
  box-sizing: border-box; font-family: inherit; line-height: 1;
}
.btn:hover  { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn:active { opacity: .78; transform: translateY(0); }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500; border: none; cursor: pointer;
  text-decoration: none; transition: opacity .12s, transform .1s;
  white-space: nowrap; background: var(--danger); color: #fff;
  box-sizing: border-box; font-family: inherit; line-height: 1;
}
.btn-danger:hover  { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn-danger:active { opacity: .78; transform: translateY(0); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.capture-btn { height: auto; padding: 4px 10px; font-size: 13px; }
.seek-btn    { height: auto; padding: 3px 8px;  font-size: 12px; }

/* Card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* Tables */
.quiz-table, table.table { width: 100%; border-collapse: collapse; }
.quiz-table th, table.table th {
  padding: 10px 16px; text-align: left;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-2); border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.quiz-table td, table.table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px;
}
.quiz-table tbody tr:last-child td, table.table tbody tr:last-child td { border-bottom: none; }
.quiz-table tbody tr:hover, table.table tbody tr:hover { background: var(--surface-2); }
.quiz-table img.thumb { width: 96px; height: 54px; object-fit: cover; border-radius: var(--radius); display: block; }

/* Forms */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 28px; max-width: 680px;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-hint  { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.form-row   { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-actions {
  display: flex; align-items: center; gap: 10px;
  padding-top: 20px; border-top: 1px solid var(--border); margin-top: 24px;
}
.field-error { font-size: 13px; color: var(--danger); margin-top: 4px; }

/* Inputs */
input[type=text], input[type=number], input[type=email], input[type=password],
input[type=tel], input[type=url], textarea, select {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font-size: 14px; font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
  box-sizing: border-box;
}
input[type=text], input[type=number], input[type=email], input[type=password],
input[type=tel], input[type=url], select { height: 38px; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent-mid); box-shadow: 0 0 0 3px var(--accent-light);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }

/* Messages */
.msg { padding: 10px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.msg.success { background: var(--success-light); color: var(--success); }
.msg.error   { background: var(--danger-light);  color: var(--danger);  }
.msg.warning { background: var(--warning-light); color: var(--warning); }

/* Inline table actions */
.actions { display: flex; align-items: center; gap: 6px; }
.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 10px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; text-decoration: none;
  cursor: pointer; border: none; transition: opacity .12s;
  background: var(--accent); color: #fff; box-sizing: border-box; font-family: inherit;
}
.action-btn:hover { opacity: .84; text-decoration: none; }
.action-btn.danger { background: var(--danger); }

/* Badges */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-light); color: var(--accent-text); }
.badge.green { background: var(--success-light); color: var(--success); }
.badge.red   { background: var(--danger-light);  color: var(--danger);  }
.muted { color: var(--text-2); font-size: 14px; }

/* Section header */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title  { font-size: 15px; font-weight: 700; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-2); }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.empty-state p  { font-size: 14px; }

/* Drag handle */
.drag-handle { width: 36px; text-align: center; cursor: grab; color: var(--text-3); font-size: 15px; display: flex; align-items: center; justify-content: center; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.drag-handle .qnum { font-weight: 700; margin-left: 4px; font-size: 13px; color: var(--text-2); }
table.table tbody tr.dragging { opacity: .5; }

/* Saving indicator */
#roundsSaving, #questionsSaving { font-size: 13px; color: var(--text-3); margin-left: 8px; }
#roundsSaving.saving, #questionsSaving.saving { color: var(--accent); font-weight: 600; }

/* Timestamp badges */
.ts-badge { display: inline-block; font-variant-numeric: tabular-nums; font-size: .82rem; background: var(--accent-light); color: var(--accent-text); border-radius: 5px; padding: 2px 8px; min-width: 50px; text-align: center; }
.ts-badge.captured { background: var(--success-light); color: var(--success); }

/* Auth / Login page */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px 32px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; text-decoration: none; }
.auth-logo:hover { text-decoration: none; }
.auth-logo-mark { width: 40px; height: 40px; background: var(--accent); color: #fff; border-radius: 10px; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.auth-logo-text { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--text); }
.auth-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-subtitle { font-size: 14px; color: var(--text-2); text-align: center; margin-bottom: 24px; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; color: var(--text-2); }

/* Edit Round */
.er-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .er-grid { grid-template-columns: 1fr; } }
#yt-wrap { position: relative; width: 100%; aspect-ratio: 16/9; min-height: 320px; background: #000; border-radius: var(--radius-lg); overflow: hidden; }
#yt-player { position: absolute; inset: 0; width: 100%; height: 100%; }
.transport { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
#timecode { font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 700; background: var(--surface-2); border-radius: var(--radius); padding: 5px 12px; border: 1px solid var(--border); }
.round-timing { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.rt-group { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: var(--radius); padding: 8px 12px; flex: 1; border: 1px solid var(--border); min-width: 200px; }
.rt-name { font-weight: 600; font-size: .85rem; min-width: 30px; color: var(--text-2); }
.rt-save { margin-left: auto; display: flex; align-items: center; gap: 8px; }
td.ts-cell { white-space: nowrap; }
.seek-btn { opacity: .65; }
.seek-btn:hover { opacity: 1; }
.question-title { font-weight: 600; font-size: .95rem; }
.question-sub { color: var(--text-2); font-size: .88rem; margin-top: 3px; }
.inline-editor { background: var(--surface-2); padding: 16px; border-radius: var(--radius); margin-top: 10px; border: 1px solid var(--border); }
.inline-editor .inline-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Mobile responsive */
@media (max-width: 600px) {
  .page-content { padding: 16px; }
  .page-header  { padding: 12px 16px; }
  .form-card    { padding: 20px 16px; }
  .auth-card    { padding: 28px 20px; }
  .form-row     { flex-direction: column; gap: 0; }
}

/* ================================================================
   HOMEPAGE — Marvel Two-Mode Layout  (guest / non-logged-in only)
   Prefix: mv-   Does NOT affect admin pages.
   ================================================================ */

/* Override body background for homepage */
body.mv-home {
  background: #0d0d0d;
  overflow: hidden;
}

/* Stage — fixed full-viewport wrapper */
.mv-stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Background slideshow ── */
.mv-bg-show {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mv-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mv-bg-slide.is-active { opacity: 1; }

/* Dark fallback if image fails to load */
.mv-bg-slide:nth-child(1) { background-color: #180000; }
.mv-bg-slide:nth-child(2) { background-color: #000018; }
.mv-bg-slide:nth-child(3) { background-color: #160c00; }
.mv-bg-slide:nth-child(4) { background-color: #080010; }

/* ── Texture overlays ── */
.mv-halftone {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 22px 22px;
}
.mv-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 85% 85% at 50% 50%, transparent 25%, rgba(0,0,0,0.78) 100%);
}
.mv-edge-glow {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 140px rgba(230,36,41,0.10);
}

/* ── Central card ── */
.mv-card {
  position: relative;
  z-index: 10;
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 44px 38px 38px;
  background: rgba(6,6,6,0.90);
  border: 1px solid rgba(230,36,41,0.30);
  border-top: 3px solid #e62429;
  border-radius: 4px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 70px rgba(230,36,41,0.13), 0 28px 56px rgba(0,0,0,0.65);
}

/* ── Pane transitions ── */
.mv-pane {
  animation: mv-fade-in 0.3s ease both;
}
.mv-pane--hidden { display: none; }

@keyframes mv-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.mv-logo {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(52px, 12vw, 76px);
  font-weight: 400;           /* Impact is already heavy */
  letter-spacing: 0.05em;
  color: #e62429;
  line-height: 1;
  text-shadow: 0 0 48px rgba(230,36,41,0.45), 3px 3px 0 #5a0009;
  user-select: none;
  margin-bottom: 0;
}
.mv-logo--sm { font-size: clamp(36px, 8vw, 48px); }

/* ── Tagline ── */
.mv-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  margin: 5px 0 28px;
  font-family: 'Arial Narrow', Arial, sans-serif;
}

/* ── Form ── */
.mv-form { display: flex; flex-direction: column; gap: 10px; }

/* ── Inputs — override admin.css defaults for the dark panel ── */
.mv-field {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  /* override admin.css box-shadow on focus */
  box-shadow: none;
}
.mv-field::placeholder {
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.mv-field:focus {
  border-color: #e62429;
  background: rgba(255,255,255,0.13);
  box-shadow: none;
}
/* Suppress yellow autofill */
.mv-field:-webkit-autofill,
.mv-field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #101010 inset;
  -webkit-text-fill-color: #fff;
}

/* ── Primary CTA button ── */
.mv-cta {
  width: 100%;
  padding: 14px 16px;
  margin-top: 4px;
  background: #e62429;
  border: none;
  border-radius: 3px;
  color: #fff;
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(230,36,41,0.40);
  /* same height as .btn */
  line-height: 1.2;
}
.mv-cta:hover {
  background: #ff2c33;
  box-shadow: 0 6px 28px rgba(230,36,41,0.60);
  transform: translateY(-1px);
}
.mv-cta:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(230,36,41,0.35); }

/* ── OR divider ── */
.mv-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 14px;
  color: rgba(255,255,255,0.20);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.mv-sep::before, .mv-sep::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.09);
}

/* ── Ghost link ── */
.mv-ghost-link {
  display: block; text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s;
}
.mv-ghost-link:hover { color: rgba(255,255,255,0.80); text-decoration: none; }

/* ── Back button (creator → player) ── */
.mv-back-btn {
  display: block; width: 100%;
  margin-top: 14px; padding: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 3px;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  letter-spacing: 0.10em;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.mv-back-btn:hover { border-color: rgba(255,255,255,0.32); color: rgba(255,255,255,0.75); }

/* ── Creator pitch rotator ── */
.mv-pitch {
  position: relative;
  min-height: 44px;
  margin-bottom: 18px;
  overflow: hidden;
}
.mv-pitch-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.mv-pitch-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* First slide is also relative so the container has natural height */
.mv-pitch-slide:first-child { position: relative; }
.mv-pitch strong {
  display: block;
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #e62429;
  text-transform: uppercase;
  line-height: 1;
}
.mv-pitch span {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* ── Player wizard steps ── */
.mv-step {
  animation: mv-fade-in 0.25s ease both;
}
.mv-step--hidden { display: none !important; }

.mv-step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  margin: 14px 0 10px;
  font-family: 'Arial Narrow', Arial, sans-serif;
}

/* Back button variant that sits at the top of a step */
.mv-back-btn--step {
  margin-top: 0;
  margin-bottom: 4px;
  text-align: left;
  width: auto;
  padding: 6px 10px;
  font-size: 11px;
}

/* Guest / login choice buttons */
.mv-choice-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.mv-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: #fff;
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 15px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.mv-choice-btn:hover {
  background: rgba(230,36,41,0.10);
  border-color: rgba(230,36,41,0.55);
  box-shadow: 0 0 18px rgba(230,36,41,0.18);
}
.mv-choice-icon {
  font-size: 20px;
  line-height: 1;
}

/* Error text */
.mv-form-error {
  color: #ff6b6b;
  font-size: 11px;
  letter-spacing: 0.06em;
  min-height: 0;
  margin: 0;
  transition: all 0.2s;
}
.mv-form-error:empty { display: none; }

.mv-form-success {
  color: #6bffb8;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  text-align: center;
}

/* Scrollable list (creators / quizzes) */
.mv-list {
  margin-top: 8px;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 3px;
  background: rgba(0,0,0,0.25);
  scrollbar-width: thin;
  scrollbar-color: rgba(230,36,41,0.4) transparent;
}
.mv-list-loading {
  padding: 18px 14px;
  color: rgba(255,255,255,0.28);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0;
}
.mv-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.78);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mv-list-item:last-child { border-bottom: none; }
.mv-list-item:hover {
  background: rgba(230,36,41,0.09);
  color: #fff;
}
.mv-list-item.is-selected {
  background: rgba(230,36,41,0.14);
  color: #fff;
  box-shadow: inset 2px 0 0 #e62429;
}
.mv-list-item__name { flex: 1; font-weight: 600; }
.mv-list-item__meta { font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }

/* ── Bottom mode-switch bar ── */
.mv-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 20;
  display: flex; justify-content: center; gap: 12px;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  transition: opacity 0.35s, pointer-events 0.35s;
}
.mv-bottom-bar.is-hidden { opacity: 0; pointer-events: none; }

.mv-mode-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 22px;
  background: rgba(230,36,41,0.75);
  border: 1px solid rgba(230,36,41,0.9);
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  backdrop-filter: blur(6px);
}
.mv-mode-btn:hover {
  background: rgba(230,36,41,1);
  border-color: #e62429;
  color: #fff;
}
.mv-mode-btn--ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.60);
}
.mv-mode-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.38);
  color: rgba(255,255,255,0.90);
}

/* ── About page — wider card variant ── */
.mv-card--about {
  max-width: 640px;
  width: 94vw;
  padding: 40px 44px 36px;
}

/* ── Tabs ── */
.mv-tabs {
  display: flex;
  border-bottom: 2px solid rgba(255,255,255,0.12);
  margin: 18px 0 0;
  gap: 0;
}
.mv-tab {
  flex: 1;
  padding: 12px 0 10px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255,255,255,0.35);
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -2px;
}
.mv-tab.is-active {
  color: #fff;
  border-bottom-color: #e62429;
  text-shadow: 0 0 24px rgba(230,36,41,0.55);
}
.mv-tab:hover:not(.is-active) {
  color: rgba(255,255,255,0.70);
}

/* ── Tab panels ── */
.mv-tab-panel { padding-top: 22px; }
.mv-tab-panel--hidden { display: none; }

/* ── Feature list ── */
.mv-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mv-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mv-feature-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.mv-feature-list strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}
.mv-feature-list span {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Slide pip row ── */
.mv-pip-row {
  position: fixed; bottom: 82px; left: 50%; transform: translateX(-50%);
  z-index: 11;
  display: flex; gap: 7px;
}
.mv-pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.22); border: none;
  cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.mv-pip.is-active { background: #e62429; transform: scale(1.35); }

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
  .mv-card { padding: 32px 24px 28px; }
  .mv-logo { font-size: 52px; }
}

/* Confirmation modal (global) */
.quivio-confirm-overlay {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1200;
  background: rgba(0,0,0,0.45);
}
.quivio-confirm-overlay.open { display: flex; }
.quivio-confirm-dialog {
  width: 420px; max-width: calc(100% - 40px); background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 18px; color: var(--text);
}
.quivio-confirm-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.quivio-confirm-body  { font-size: 14px; color: var(--text-2); margin-bottom: 16px; white-space: pre-wrap; }
.quivio-confirm-actions { display:flex; gap:10px; justify-content:flex-end; }
.quivio-confirm-actions .btn { height: 36px; }
.quivio-confirm-cancel { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.quivio-confirm-ok { background: var(--danger); color: #fff; }

/* Site footer (marketing page) */
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; z-index: 999; font-size: 13px; }
.site-footer .actions { display: flex; gap: 8px; align-items: center; }
.footer-spacer { height: 56px; }

/* ── Captions panel (edit_round.php) ─────────────────────────────── */
#captionsSection { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.caption-row:hover { background: var(--surface-2) !important; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-3, #e5e7eb); }
.btn-sm { font-size: .82rem; padding: 4px 10px; height: auto; }

/* ── Studio two-pane layout (edit_round.php, edit_quiz.php) ─────── */
.studio-page { height: 100vh; overflow: hidden; min-height: unset !important; }
.studio-shell {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.studio-player {
  width: 420px;
  min-width: 300px;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.studio-player-inner { padding: 16px; flex: 1; }
.studio-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  min-height: 0;
  min-width: 0;
}
.studio-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.studio-content-header h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.studio-meta-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 16px;
}
.studio-meta-card .form-label { font-size: 12px; margin-bottom: 4px; }
.studio-meta-card .form-group { margin-bottom: 12px; }
.studio-meta-card .form-actions { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); }
.studio-meta-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
/* Quiz metadata panel (narrower than the player panel) */
.quiz-meta-panel { width: 360px; min-width: 260px; }
/* rt-heading: full-width label for round-timing flex container */
.rt-heading {
  flex-basis: 100%;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 2px;
}
/* Round cards (edit_quiz.php rounds list) */
.round-cards { display: flex; flex-direction: column; gap: 8px; }
.round-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: box-shadow .12s, border-color .12s;
}
.round-card:hover { box-shadow: var(--shadow-sm); border-color: var(--accent-light); }
.round-card[draggable="true"] { cursor: grab; }
.round-card[draggable="true"].dragging { opacity: .45; cursor: grabbing; }
.round-card.drag-over { outline: 2px solid var(--accent-mid); outline-offset: -1px; }
.round-card-handle { color: var(--text-3); font-size: 16px; user-select: none; flex-shrink: 0; }
.round-card-num {
  font-size: .72rem; font-weight: 700; color: var(--accent-text);
  background: var(--accent-light); border-radius: 999px;
  padding: 2px 8px; white-space: nowrap; flex-shrink: 0;
}
.round-card-body { flex: 1; min-width: 0; }
.round-card-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-card-meta { font-size: .8rem; color: var(--text-2); margin-top: 2px; }
.round-card-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
/* Responsive: stack on narrow viewports */
@media (max-width: 900px) {
  .studio-shell { flex-direction: column; overflow: auto; height: auto; }
  .studio-page { height: auto; min-height: 100vh !important; overflow: auto; }
  .studio-player, .quiz-meta-panel {
    width: 100%; min-width: 0;
    border-right: none; border-bottom: 1px solid var(--border);
    overflow: visible;
  }
  .studio-content { overflow: visible; }
}

/* ================================================================
   Quivio Game Room — play.php  (gm-* prefix)
   Neutral, functional theme; no Marvel colours.
   ================================================================ */

/* Page shell */
.gm-body {
  margin: 0;
  padding: 0;
  background: #111;
  color: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  min-height: 100vh;
}

/* Screen visibility */
.gm-screen { display: block; }

/* ── Configure screen ───────────────────────────────────── */
.gm-configure {
  max-width: 480px;
  margin: 60px auto;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 32px 28px;
}
.gm-configure__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.gm-configure__sub {
  margin: 0 0 24px;
  color: #aaa;
  font-size: 14px;
}

/* Toggle switch */
.gm-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #2a2a2a;
}
.gm-option-row--indent { padding-left: 16px; border-bottom: none; }
.gm-option-label { flex: 1; cursor: pointer; margin-right: 16px; }
.gm-option-name  { display: block; font-weight: 600; font-size: 14px; color: #eee; }
.gm-option-desc  { display: block; font-size: 12px; color: #888; margin-top: 2px; }
.gm-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.gm-toggle input { opacity: 0; width: 0; height: 0; }
.gm-toggle__slider {
  position: absolute; inset: 0;
  background: #444; border-radius: 26px; cursor: pointer;
  transition: background 0.2s;
}
.gm-toggle__slider::before {
  content: '';
  position: absolute; width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s;
}
.gm-toggle input:checked + .gm-toggle__slider { background: #2563eb; }
.gm-toggle input:checked + .gm-toggle__slider::before { transform: translateX(20px); }

/* Shared input style */
.gm-input {
  width: 100%;
  padding: 10px 12px;
  background: #252525;
  border: 1px solid #444;
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.gm-input:focus { border-color: #2563eb; }

/* Buttons */
.gm-btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.gm-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.gm-btn--primary { background: #2563eb; color: #fff; }
.gm-btn--primary:hover:not(:disabled) { background: #1d4ed8; }
.gm-btn--ghost { background: transparent; color: #aaa; border: 1px solid #444; }
.gm-btn--ghost:hover:not(:disabled) { border-color: #888; color: #eee; }
.gm-configure .gm-btn { width: 100%; margin-top: 24px; }

.gm-error { color: #f87171; font-size: 13px; min-height: 18px; margin: 8px 0 0; }

/* ── Lobby screen ───────────────────────────────────────── */
.gm-lobby {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 16px;
}
.gm-lobby__header {
  text-align: center;
  margin-bottom: 28px;
}
.gm-lobby__code-label { display: block; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .1em; }
.gm-lobby__code {
  display: block;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .25em;
  color: #fff;
  font-family: monospace;
}
.gm-lobby__quiz-name { color: #aaa; font-size: 14px; margin-top: 8px; }

/* QR code in lobby */
.gm-lobby__qr-wrap { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gm-lobby__qr-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.gm-lobby__qr-wrap #lobbyQR img,
.gm-lobby__qr-wrap #lobbyQR canvas { border-radius: 6px; border: 6px solid #fff; display: block; }
.gm-lobby__qr-url { font-size: 11px; color: #666; margin: 0; word-break: break-all; max-width: 200px; text-align: center; }

.gm-lobby__players {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  min-height: 80px;
  padding: 8px 0;
}
.gm-lobby__empty { text-align: center; color: #666; padding: 24px 0; }
.gm-lobby__list  { list-style: none; margin: 0; padding: 0; }
.gm-lobby__player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #222;
}
.gm-lobby__player:last-child { border-bottom: none; }
.gm-lobby__player--me { background: rgba(37,99,235,.12); }
.gm-lobby__player-name  { font-size: 14px; color: #e0e0e0; }
.gm-lobby__player-ready { font-size: 13px; }
.gm-ready--yes { color: #4ade80; }
.gm-ready--no  { color: #888; }

.gm-lobby__bar {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.gm-lobby__ready-count { margin: 0; font-size: 14px; color: #aaa; text-align: center; }
.gm-lobby__hint        { margin: 0; font-size: 14px; color: #888; text-align: center; }

/* ── Gameplay: video row ────────────────────────────────── */
.gm-video-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #000;
}
.gm-video-wrap {
  position: relative;
  flex: 3;
  height: min(28.125vw, 50vh);
  background: #0a0a0a;
  border-radius: 4px;
  overflow: hidden;
}
.gm-ad-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
  max-width: 300px;
  height: min(28.125vw, 50vh);
  background: #0a0a0a;
  border-radius: 4px;
  overflow: hidden;
}
/* #ytPlayerDiv is the positioned wrapper; #ytPlayerTarget inside it gets replaced
   by the YT iframe — both rules cover before and after YT.Player init */
#ytPlayerDiv {
  position: absolute;
  inset: 0;
}
.gm-iframe,
#ytPlayerDiv iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}
.gm-video-placeholder,
.gm-ad-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #555;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.gm-video-placeholder span,
.gm-ad-placeholder span   { font-size: 32px; }
.gm-ad-placeholder small  { color: #444; font-size: 11px; }

/* ── Host start bar ─────────────────────────────────────── */
.gm-host-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  padding: 10px 16px;
}
.gm-host-bar span { font-size: 14px; color: #aaa; }

/* ── Info bar ───────────────────────────────────────────── */
.gm-info-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #161616;
  border-top: 1px solid #222;
  padding: 8px 16px;
  font-size: 13px;
}
.gm-info-bar__quiz  { color: #888; }
.gm-info-bar__round { color: #eee; font-weight: 600; }
.gm-progress-bar {
  flex: 1;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
}
.gm-progress-bar__fill { height: 100%; background: #2563eb; width: 0; transition: width 0.4s; }

/* ── Game area / cards ──────────────────────────────────── */
.gm-game-area {
  padding: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.gm-card {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}
.gm-card__meta   { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.gm-card__msg    { font-size: 16px; color: #ddd; margin: 0 0 16px; }
.gm-card__title  { font-size: 22px; color: #fff; margin: 0 0 8px; }
.gm-card__waiting{ font-size: 14px; color: #888; margin: 8px 0 0; }
.gm-card__hint   { font-size: 13px; color: #888; margin: 8px 0 0; }
.gm-card--ready .gm-btn { margin-top: 12px; width: 100%; }

/* Countdown */
.gm-card--countdown { text-align: center; }
.gm-countdown { font-size: 80px; font-weight: 800; color: #2563eb; line-height: 1; }

/* Question card */
.gm-card--question .gm-card__meta { display: flex; gap: 16px; }
.gm-card__points { margin-left: auto; color: #facc15; font-weight: 700; }
.gm-card__qtext  { font-size: 18px; color: #fff; font-weight: 600; margin: 0 0 16px; line-height: 1.4; }
.gm-card__answers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.gm-answer-part label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.gm-card__timer-bar { height: 6px; background: #2a2a2a; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.gm-card__timer-fill { height: 100%; background: #22c55e; width: 100%; transition: width 0.2s linear; }
.gm-card__timer-fill--warn  { background: #f97316; } /* orange, 25-50% remaining */
.gm-card__timer-fill--danger { background: #ef4444; }
.gm-card__timer-text { font-size: 13px; color: #aaa; text-align: right; margin: 0 0 12px; }
.gm-card--question .gm-btn { width: 100%; }
.gm-card--question #qNavBar .gm-btn { width: auto; }

/* Reveal card */
.gm-card--reveal .gm-card__verdict { font-size: 20px; font-weight: 700; margin: 8px 0 6px; }
.gm-card__avail-pts   { font-size: 13px; color: #888; margin: 0 0 10px; }
/* Multi-part reveal rows */
.gm-part-row          { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; margin-bottom: 6px; font-size: 14px; flex-wrap: wrap; }
.gm-part-row--correct { background: #14532d; }
.gm-part-row--wrong   { background: #450a0a; }
.gm-part-label        { font-weight: 700; color: #d1d5db; min-width: 60px; }
.gm-part-icon         { flex-shrink: 0; }
.gm-part-submitted    { color: #fff; font-weight: 600; flex: 1; }
.gm-part-correct      { color: #86efac; font-size: 13px; }
.gm-part-pts          { color: #facc15; font-weight: 700; margin-left: auto; white-space: nowrap; }
.gm-card__submitted   { font-size: 16px; color: #fff; font-weight: 700; margin: 0 0 6px; }
.gm-card__submitted::before { content: 'Your answer: '; font-weight: 400; color: #aaa; }
.gm-card__reveal-answer { color: #86efac; font-size: 15px; margin: 0 0 4px; }
.gm-card__reveal-points { color: #facc15; font-weight: 600; font-size: 14px; margin: 0; }

/* Multi-select question buttons */
.gm-ms-choices        { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.gm-ms-choice         { padding: 10px 18px; border: 2px solid rgba(255,255,255,0.18); border-radius: 10px; background: rgba(255,255,255,0.07); color: #fff; font-size: 15px; cursor: pointer; transition: background 0.15s, border-color 0.15s; user-select: none; }
.gm-ms-choice:hover:not(:disabled) { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }
.gm-ms-choice--selected { background: #1d4ed8; border-color: #3b82f6; font-weight: 600; }
.gm-ms-choice--selected:hover:not(:disabled) { background: #2563eb; }
.gm-ms-choice:disabled { opacity: 0.55; cursor: not-allowed; }

/* Celebration */
.gm-card--celebration { text-align: center; }
.gm-celebration__icon  { font-size: 64px; }
.gm-celebration__tier  { font-size: 22px; font-weight: 700; color: #fff; margin: 8px 0 4px; }
.gm-celebration__score { font-size: 16px; color: #facc15; margin: 0; }

/* Leaderboard */
.gm-lb-list { list-style: none; margin: 8px 0 0; padding: 0; }
.gm-lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #232323;
  font-size: 14px;
}
.gm-lb-item:last-child { border-bottom: none; }
.gm-lb-item--me { color: #93c5fd; font-weight: 600; }
.gm-lb-rank  { width: 28px; text-align: center; font-size: 13px; color: #aaa; }
.gm-lb-name  { flex: 1; }
.gm-lb-score { color: #facc15; font-weight: 600; }
.gm-card--results .gm-btn { width: 100%; margin-top: 16px; }

/* Responsive: stack video panels vertically on narrow screens */
@media (max-width: 600px) {
  .gm-video-row { flex-direction: column; }
}
