/* My Shout design system. Mobile first, warm and Kiwi. One file, no build.
   Tokens on :root, dark via prefers-color-scheme, big touch targets, safe
   areas for iOS. Brand colours from docs/brand/SHONA.md. */

:root {
  color-scheme: light dark;

  --coral: #ff5a36;
  --coral-deep: #e0431f;
  --sun: #ffc83d;
  --navy: #14213d;
  --cream: #fff8f0;

  --bg: var(--cream);
  --surface: #ffffff;
  --surface-2: #fff1e4;
  --text: var(--navy);
  --muted: #5b6478;
  --line: #ecdfd0;
  --accent: var(--coral);
  --accent-text: #ffffff;
  --highlight: var(--sun);
  --highlight-text: var(--navy);
  --ok: #1f8a4c;
  --warn: #b26a00;
  --danger: #c62828;
  --focus: #1f6feb;
  --shadow: 0 2px 10px rgba(20, 33, 61, 0.08);

  --radius: 16px;
  --radius-sm: 10px;
  --gap: 16px;
  --tap: 48px;
  --tap-big: 60px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --font-display: var(--font);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172c;
    --surface: #1a2440;
    --surface-2: #232f50;
    --text: #fff3e6;
    --muted: #a6afc4;
    --line: #2d3958;
    --accent: var(--coral);
    --accent-text: #ffffff;
    --focus: #8ab4ff;
    --ok: #4ccb7f;
    --warn: #ffb547;
    --danger: #ff6b6b;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  }
}

/* Reset, the short version */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100dvh;
  padding-bottom: var(--safe-bottom);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.9rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p + p { margin-top: 0.6em; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--coral-deep); }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* Focus: always visible, never removed */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

/* Layout */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--gap) calc(var(--gap) + var(--safe-right)) calc(var(--gap) * 2 + var(--safe-bottom)) calc(var(--gap) + var(--safe-left));
  display: grid;
  gap: var(--gap);
}
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  padding: calc(10px + var(--safe-top)) calc(var(--gap) + var(--safe-right)) 10px calc(var(--gap) + var(--safe-left));
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; min-height: var(--tap); white-space: nowrap; flex: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.topbar .region-pill { margin-left: auto; min-width: 0; flex: 0 1 auto; }
.topbar .btn { flex: none; white-space: nowrap; padding-left: 12px; padding-right: 12px; }

/* Pills and badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  max-width: 100%;
}
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill:hover { border-color: var(--accent); color: var(--text); }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  background: var(--surface-2); color: var(--muted);
}
.badge-dry { background: var(--highlight); color: var(--highlight-text); }
.badge-live { background: var(--accent); color: var(--accent-text); }
.badge-ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }

/* Buttons: 48px minimum, 60px for the big two */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 20px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 80ms ease, background 120ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { color: var(--text); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--coral-deep); color: var(--accent-text); }
.btn-sun { background: var(--highlight); color: var(--highlight-text); }
.btn-outline { background: transparent; border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-big { min-height: var(--tap-big); font-size: 1.15rem; border-radius: var(--radius); width: 100%; flex-direction: column; gap: 2px; padding: 12px 20px; }
.btn-block { width: 100%; }
.btn .sub { display: block; font-weight: 500; font-size: 0.85rem; opacity: 0.85; }
.btn-stack { display: grid; gap: 10px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-warm { background: var(--surface-2); }
.card-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #23325c 100%);
  color: #fff8f0; border: none;
}
.card-hero .muted { color: #c9d0e3; }
.card-hero a { color: var(--sun); }
.card h2 { margin-bottom: 10px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.card-hero .stat { background: rgba(255, 255, 255, 0.1); }
.stat-num { font-size: 1.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.card-hero .stat-label { color: #c9d0e3; }

/* Countdown */
.countdown {
  display: flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1;
}
.countdown-num { font-size: 2.6rem; letter-spacing: -0.02em; }
.countdown-unit { font-size: 0.9rem; font-weight: 600; opacity: 0.8; margin-right: 6px; }
.countdown-label { font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; }
.card-hero .countdown-label { color: #c9d0e3; }
.countdown.live .countdown-num { color: var(--sun); }
.live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral); margin-right: 6px; vertical-align: middle;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

/* Lists: prizes, regions, leaderboard */
.list { list-style: none; display: grid; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--tap); padding: 10px 12px;
  background: var(--surface-2); border-radius: var(--radius-sm);
}
.list-row .grow strong { display: block; }
.list-row .grow .muted { font-size: 0.85rem; }
.prize-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--highlight); color: var(--navy); font-weight: 800;
}

/* Leaderboard row: rank, name, score. Top three get the sun. */
.lb-row {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.lb-row.me { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.lb-rank { font-weight: 800; color: var(--muted); text-align: center; }
.lb-row:nth-child(-n+3) .lb-rank { color: var(--navy); background: var(--highlight); border-radius: 50%; width: 30px; height: 30px; line-height: 30px; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-score { font-weight: 800; }

/* Region picker */
.region-group { margin-top: 6px; }
.region-group h3 { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 8px; }
.region-option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 14px; text-align: left;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
}
.region-option:hover { border-color: var(--accent); }
.region-option[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.region-option .tick { margin-left: auto; color: var(--accent); font-weight: 800; visibility: hidden; }
.region-option[aria-pressed="true"] .tick { visibility: visible; }

/* Forms */
label { display: block; font-weight: 600; margin-bottom: 6px; }
.input, input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; }
.field + .field { margin-top: 12px; }
.help { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.95rem; }
.notice-ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.notice-warn { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); }
.notice-danger { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }

/* Details: how the draw works */
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 700; padding: 6px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details .body { padding: 0 0 14px; }
details .body p + p { margin-top: 0.7em; }

/* Music slots on the home page: hidden until their scripts fill them */
#music-widget:empty, #music-round:empty { display: none; }

/* Footer: the same links on every page (nav.js mountFooter) */
.footer {
  color: var(--muted); font-size: 0.85rem; text-align: center;
  max-width: 560px; margin: 0 auto;
  padding: 8px calc(var(--gap) + var(--safe-right)) calc(var(--gap) * 2 + var(--safe-bottom)) calc(var(--gap) + var(--safe-left));
}
.page > .footer { padding: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.footer a { color: inherit; min-height: 32px; display: inline-flex; align-items: center; }
.footer-host { margin-top: 8px; }

/* Skeleton while loading */
.skeleton { background: var(--surface-2); border-radius: 8px; color: transparent; animation: shimmer 1.2s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Motion off when asked */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Wider than a phone: more air, same layout */
@media (min-width: 600px) {
  body { font-size: 18px; }
  .page { padding-top: 24px; }
}

/* Page header: title and a one-line lead under the top bar */
.page-head h1 { margin-bottom: 4px; }
.page-head .lead { color: var(--muted); }

/* Status lines under a control: muted by default, coloured when it matters */
.status { font-size: 0.9rem; color: var(--muted); min-height: 1.3em; margin-top: 6px; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.error, .error { color: var(--danger); }
.big-num { font-size: 2.2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-text { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stats.stats-3 { grid-template-columns: 1fr 1fr 1fr; }
.stats-3 .stat { padding: 12px 10px; }
.stats-3 .stat-num { font-size: 1.5rem; }

/* Key and value rows (account, draw proofs) */
.kv { display: grid; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; min-height: var(--tap); }
.kv-row + .kv-row { border-top: 1px solid var(--line); }
.kv-k { color: var(--muted); font-size: 0.9rem; }
.kv-v { font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv-row select { width: auto; max-width: 60%; }
.list-plain { list-style: none; }
.list-plain li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.list-plain li:first-child { border-top: 0; padding-top: 0; }
.list-plain .kv-k { display: block; }

/* Switch: a 50x30 toggle, thumb slides right when on */
.switch { position: relative; width: 50px; height: 30px; flex: none; display: inline-block; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: 0.5; }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Numbered steps (iOS install guide) */
.steps { list-style: none; counter-reset: step; margin-top: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .n { counter-increment: step; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--highlight); color: var(--navy); font-weight: 800; font-size: 0.9rem; display: grid; place-items: center; }
.steps .n::before { content: counter(step); }
.steps svg { width: 22px; height: 22px; }
.icon-box { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); vertical-align: middle; margin: 0 3px; }

/* Checkbox rows in forms */
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; min-height: var(--tap); padding: 6px 0; margin: 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent); }

/* Login code */
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(2.4rem, 13vw, 3.6rem); letter-spacing: 0.16em; font-weight: 800;
  text-align: center; padding: 12px 0 4px; user-select: all; font-variant-numeric: tabular-nums;
}
.spinner { display: inline-block; width: 0.8em; height: 0.8em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -0.1em; margin-right: 0.4em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Quiz: play and live share these */
.quiz-timer { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 12px 0; }
.quiz-timer > i { display: block; height: 100%; background: var(--highlight); width: 100%; transition: width 0.2s linear; }
.quiz-timer.low > i { background: var(--danger); }
.quiz-prompt { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: 8px 0 14px; }
.quiz-media { margin: 0 0 12px; text-align: center; }
.quiz-media img { max-height: 260px; margin: 0 auto; border-radius: var(--radius-sm); }
.quiz-media audio { width: 100%; }
.credit { display: block; color: var(--muted); font-size: 0.7rem; margin-top: 4px; }
.quiz-options { display: grid; gap: 10px; }
.opt {
  appearance: none; display: block; width: 100%; position: relative;
  min-height: 56px; padding: 14px 44px 14px 16px; text-align: left; cursor: pointer;
  background: var(--surface-2); color: var(--text);
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-size: 1.05rem; font-weight: 600; line-height: 1.3;
}
.opt:disabled { cursor: default; }
.opt.picked { border-color: var(--highlight); }
.opt.correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, var(--surface)); }
.opt.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }
.opt .count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.quiz-fact { color: var(--muted); margin-top: 12px; }
.pill-live { background: var(--accent); color: var(--accent-text); border-color: transparent; }

/* Draw and verify */
.proof-list { margin: 0; padding: 0; }
.proof-row { display: grid; grid-template-columns: 7em 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.proof-row:first-child { border-top: 0; }
.proof-row dt { font-weight: 700; }
.proof-row dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.checks .tick { flex: 0 0 1.4em; font-weight: 800; }
.checks .ok .tick { color: var(--ok); }
.checks .fail .tick { color: var(--danger); }
.checks .detail { display: block; color: var(--muted); font-size: 0.85em; overflow-wrap: anywhere; }
.winner-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.winner-row:first-child { border-top: 0; }
.winner-row.you { background: color-mix(in srgb, var(--highlight) 22%, var(--surface)); border-radius: var(--radius-sm); padding: 10px 12px; border-top: 0; }
.winner-leaf { color: var(--muted); text-align: right; }
.status-dot { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.status-dot.ok { background: var(--ok); }
.status-dot.pending { background: var(--warn); }

/* Long-form text: credits and the legal pages */
.prose { line-height: 1.55; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin: 28px 0 10px; }
.prose h3 { margin: 20px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 12px; }
.prose li { margin: 4px 0; overflow-wrap: anywhere; }
.prose blockquote { border-left: 4px solid var(--warn); padding: 8px 14px; margin: 14px 0; background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9rem; margin: 0 0 12px; }
.prose th, .prose td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.draft-banner { background: var(--highlight); color: var(--highlight-text); padding: 10px 16px; font-weight: 700; text-align: center; font-size: 0.9rem; }

/* Music round by fm.video: the same tokens as the rest, plus fm.video's pink */
:root { --fm: #ff2e9a; }
.fm { color: var(--fm); font-weight: 800; }
.mr-brand { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }
.mr h1 span { color: var(--accent); }
.mr-facts { display: flex; gap: 10px; margin: 16px 0; }
.mr-fact { flex: 1; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; }
.mr-fact b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.mr-fact span { font-size: 0.75rem; color: var(--muted); }
.mr-progress { display: flex; gap: 6px; margin-bottom: 10px; }
.mr-dot { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.mr-dot.now { background: var(--highlight); }
.mr-dot.good { background: var(--ok); }
.mr-dot.bad { background: var(--danger); }
.mr-timer { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 4px 0 16px; }
.mr-timer i { display: block; height: 100%; width: 100%; background: var(--highlight); transform-origin: left; }
.mr-q { font-size: 1.25rem; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
.mr-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.mr-media { margin-bottom: 14px; }
.mr-media img { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.mr-credit { font-size: 0.7rem; color: var(--muted); margin-top: 4px; }
.mr-play { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--tap-big); padding: 14px; border-radius: var(--radius-sm); border: 2px dashed var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.mr-opts { display: grid; gap: 10px; }
.mr-opts.pics { grid-template-columns: 1fr 1fr; }
.mr-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border-radius: var(--radius-sm); border: 2px solid transparent; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
.mr-opt small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.mr-opt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.mr-opts.pics .mr-opt { flex-direction: column; align-items: stretch; text-align: center; padding: 8px; }
.mr-opt[disabled] { cursor: default; }
.mr-opt.picked { border-color: var(--highlight); }
.mr-opt.right { background: var(--ok); color: #fff; }
.mr-opt.right small { color: rgba(255, 255, 255, 0.85); }
.mr-opt.wrong { background: var(--danger); color: #fff; }
.mr-opt.wrong small { color: rgba(255, 255, 255, 0.85); }
.mr-opt.dim { opacity: 0.45; }
.mr-feedback { margin-top: 14px; min-height: 48px; font-size: 0.95rem; }
.mr-feedback b { font-size: 1.1rem; }
.mr-score { font-size: 4rem; font-weight: 800; color: var(--accent); line-height: 1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.mr-marks { font-size: 1.6rem; letter-spacing: 6px; margin: 6px 0 14px; }
.mr-list { list-style: none; }
.mr-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.mr-list li:first-child { border-top: 0; }
.mr-toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow); z-index: 20; }

/* Music round card on the home page (music-cta.js) */
.mcta { display: block; text-decoration: none; color: inherit; }
.mcta .card-hero { color: #fff8f0; }
.mcta-title { font-size: 1.35rem; font-weight: 800; margin: 6px 0 2px; line-height: 1.15; }
.mcta-meta { font-size: 0.9rem; color: #c9d0e3; }
.mcta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.mcta-score { font-size: 0.9rem; }
.mcta-score b { color: var(--sun); font-size: 1.25rem; }
.mcta-note { font-size: 0.75rem; color: #c9d0e3; margin-top: 10px; }
.mcta .mr-brand { color: #c9d0e3; }

/* Music video widget on the home page (music-widget.js) */
#music-widget h2 { margin-bottom: 10px; }
.music-frame { position: relative; aspect-ratio: 16 / 10; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.music-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; aspect-ratio: auto; }
.music-links { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
