/* =========================================================================
   Nobel Rush — design system
   Palette: midnight navy, Nobel gold, warm paper. Fraunces + Inter.
   ========================================================================= */

:root {
  --paper: #f6f3ea;
  --bg: var(--paper);
  --bg-2: #ffffff;
  --bg-soft: #efe9db;
  --ink: #11152a;
  --ink-2: #2a3048;
  --muted: #5c6478;
  --line: #e3ddcd;
  --line-strong: #d5cdb8;
  --navy: #0a1330;
  --navy-2: #111c40;
  --gold: #c99a2e;
  --gold-2: #e6c150;
  --gold-ink: #7d5c10;
  --danger: #d23a4e;
  --ok: #12a37f;
  --card: #ffffff;
  --card-2: #fbf8f0;
  --header-bg: rgba(246, 243, 234, 0.86);
  --shadow: 0 10px 30px -18px rgba(16, 21, 42, 0.45);
  --shadow-lg: 0 26px 60px -30px rgba(10, 19, 48, 0.55);
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1140px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

[data-theme="dark"] {
  --bg: #080d1f;
  --bg-2: #0d1530;
  --bg-soft: #0b1229;
  --ink: #eef1fb;
  --ink-2: #c9d1ea;
  --muted: #98a2c0;
  --line: #1d2847;
  --line-strong: #2a3a66;
  --card: #0e1732;
  --card-2: #111c3d;
  --header-bg: rgba(8, 13, 31, 0.82);
  --gold: #e6c150;
  --gold-2: #f2d878;
  --gold-ink: #eecb63;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 26px 60px -30px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 154, 46, 0.10), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--ink-2); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(38px, 7vw, 74px) 0; }
.section-tight { padding: 30px 0; }
.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;
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800; font-size: 1.16rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--gold-ink); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--ink-2); padding: 8px 12px; border-radius: 9px; font-size: .94rem; font-weight: 500; text-decoration: none;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); box-shadow: inset 0 -2px 0 var(--gold); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2);
  cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: var(--shadow); gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links { margin-left: 0; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1.1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #241a04; box-shadow: 0 10px 24px -12px rgba(201, 154, 46, .9); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(201, 154, 46, .95); }
.btn-dark { background: var(--navy); color: #f3f0e6; }
[data-theme="dark"] .btn-dark { background: #202c55; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 9px 15px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Chips / badges ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700;
  color: var(--gold-ink); margin: 0 0 10px;
}
.badge-cat {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 7px;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 66px) 0 clamp(30px, 5vw, 52px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 26px; } .hero-art { order: -1; max-width: 280px; margin: 0 auto; } }
.hero h1 { margin-bottom: .3em; }
.hero h1 .gold { color: var(--gold-ink); }
.hero .lead { max-width: 34em; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 360px; filter: drop-shadow(0 24px 40px rgba(10, 19, 48, .28)); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stat-strip .chip { font-size: .8rem; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------------- Game ---------------- */
.game-section { padding-top: 8px; }
.game-shell {
  position: relative; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.game-topbar {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #eef1fb; flex-wrap: wrap;
}
[data-theme="dark"] .game-topbar { background: linear-gradient(180deg, #16224a, #0d1633); }
.game-topbar .gt-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.game-topbar .gt-mode { margin-left: auto; font-size: .8rem; opacity: .85; }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.hud .cell { background: var(--card); padding: 11px 14px; text-align: center; }
.hud .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.hud .v { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.hud .v.gold { color: var(--gold-ink); }
.lives { letter-spacing: 2px; font-size: 1.2rem !important; }
.game-body { padding: 20px; position: relative; min-height: 430px; }
@media (max-width: 560px) { .game-body { padding: 14px; } .hud .v { font-size: 1.15rem; } }

.timer-track { height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--line); }
.timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: background .3s ease; }
.timer-fill.low { background: linear-gradient(90deg, #ff8a6b, var(--danger)); }
.timer-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.timer-row .lv { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }

.prompt-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card-2);
  padding: 26px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: center;
  text-align: center; position: relative;
}
.prompt-card .pc-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.prompt-card .pc-text { font-family: var(--serif); font-size: clamp(1.15rem, 3.4vw, 1.6rem); line-height: 1.28; margin: 0; }
.prompt-card.flash-ok { animation: flashOk .5s ease; }
.prompt-card.flash-bad { animation: flashBad .5s ease; }
@keyframes flashOk { 0% { background: rgba(18,163,127,.22); } 100% { background: var(--card-2); } }
@keyframes flashBad { 0%,20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } 100% { transform: translateX(0); } }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 620px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.cat-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 10px; border-radius: var(--radius-sm); cursor: pointer; font: inherit;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line-strong);
  border-top: 4px solid var(--cat, var(--gold)); transition: transform .1s ease, box-shadow .2s ease, opacity .2s;
  min-height: 92px;
}
.cat-btn:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-btn .ci { width: 26px; height: 26px; }
.cat-btn .cn { font-weight: 700; font-size: .95rem; }
.cat-btn .key { font-size: .68rem; color: var(--muted); }
.cat-btn[disabled] { opacity: .28; cursor: not-allowed; }
.cat-btn.correct { background: rgba(18,163,127,.16); border-color: var(--ok); }
.cat-btn.wrong { background: rgba(210,58,78,.14); border-color: var(--danger); }

.powerups { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pu {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.pu:hover:not([disabled]) { background: var(--bg-soft); }
.pu[disabled] { opacity: .4; cursor: not-allowed; }
.pu .cnt { background: var(--bg-soft); border-radius: 999px; padding: 1px 8px; font-size: .78rem; }

.feedback { min-height: 30px; margin-top: 14px; font-size: .95rem; }
.feedback.ok { color: var(--ok); font-weight: 600; }
.feedback.bad { color: var(--danger); font-weight: 600; }
.feedback .rv { color: var(--muted); font-weight: 500; }

.float-score {
  position: absolute; font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--gold-ink);
  pointer-events: none; animation: floatUp .9s ease-out forwards;
}
@keyframes floatUp { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1.15); } }

/* Overlays */
.overlay {
  position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(10, 19, 48, .72); backdrop-filter: blur(4px); padding: 18px; overflow: auto;
}
[data-theme="dark"] .overlay { background: rgba(4, 8, 20, .82); }
.overlay[hidden] { display: none; }
.panel {
  background: var(--card); border-radius: 18px; padding: 26px; max-width: 560px; width: 100%;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-strong); text-align: center; margin: auto;
}
.panel h2 { margin-bottom: .3em; }
.panel .rank-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 800; color: var(--gold-ink); }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; text-align: left; }
@media (max-width: 520px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-card {
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 13px 15px; cursor: pointer; background: var(--card);
  display: flex; flex-direction: column; gap: 3px; font: inherit; text-align: left;
}
.mode-card:hover { border-color: var(--gold); }
.mode-card.sel { border-color: var(--gold); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--gold); }
.mode-card .mt { font-weight: 700; font-size: 1rem; }
.mode-card .md { font-size: .82rem; color: var(--muted); }
.mode-card .mb { font-size: .72rem; color: var(--gold-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.result-stats .rs { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.result-stats .rs .n { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.result-stats .rs .l { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.how-list { text-align: left; margin: 16px 0; padding-left: 0; list-style: none; }
.how-list li { display: flex; gap: 10px; margin-bottom: 9px; font-size: .93rem; }
.how-list .kbd { flex: none; }
.kbd {
  display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--bg-soft); font-size: .78rem; font-weight: 700; font-family: var(--sans);
}
.toast-level {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 25;
  background: var(--navy); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow); animation: toastIn 1.6s ease forwards; border: 1px solid rgba(230,193,80,.5);
}
[data-theme="dark"] .toast-level { background: #1c2a55; }
@keyframes toastIn { 0% { opacity: 0; transform: translate(-50%, -10px); } 15%,80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }

.practice-note { display: none; }
.game-shell[data-mode="practice"] .practice-note { display: block; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------------- Museum ---------------- */
.museum-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.search-wrap { position: relative; flex: 1 1 240px; }
.search-wrap input {
  width: 100%; padding: 12px 15px 12px 42px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); font: inherit;
}
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.chips-scroll { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card);
  color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.chip-btn .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip-btn:hover { background: var(--bg-soft); }
.chip-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .chip-btn.active { background: var(--gold); color: #221903; border-color: var(--gold); }
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.l-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; border-left: 4px solid var(--cat, var(--gold)); }
.l-card .lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.l-card .lc-year { font-family: var(--serif); font-weight: 700; color: var(--muted); font-size: .95rem; }
.l-card .lc-label { font-weight: 600; margin: 0 0 10px; }
.l-card .lc-who { font-family: var(--serif); font-size: 1.06rem; font-weight: 700; margin: 0 0 8px; }
.l-card .lc-fact { font-size: .87rem; color: var(--muted); margin: 0; border-top: 1px dashed var(--line-strong); padding-top: 10px; margin-top: auto; }
.l-count { font-size: .9rem; color: var(--muted); margin: 4px 0 0; }

/* ---------------- Quiz ---------------- */
.quiz-shell { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 26px; }
.q-progress { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); }
.q-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); width: 0; transition: width .3s ease; }
.q-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.q-text { font-family: var(--serif); font-size: clamp(1.2rem, 3.6vw, 1.6rem); line-height: 1.3; margin: 0 0 18px; }
.q-options { display: grid; gap: 10px; }
.q-opt {
  text-align: left; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; display: flex; gap: 12px; align-items: center;
}
.q-opt:hover:not([disabled]) { border-color: var(--gold); background: var(--card-2); }
.q-opt .letter { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.q-opt.correct { border-color: var(--ok); background: rgba(18,163,127,.14); }
.q-opt.wrong { border-color: var(--danger); background: rgba(210,58,78,.12); }
.q-opt[disabled] { cursor: default; }
.q-explain { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--card-2); border-left: 4px solid var(--gold); font-size: .93rem; display: none; }
.q-explain.show { display: block; }
.quiz-result { text-align: center; }
.quiz-result .big { font-family: var(--serif); font-size: 3rem; font-weight: 800; color: var(--gold-ink); line-height: 1; }

/* ---------------- History ---------------- */
.timeline { position: relative; margin: 26px 0 0; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--line-strong)); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--gold); }
.tl-year { font-family: var(--serif); font-weight: 800; font-size: 1.15rem; color: var(--gold-ink); }
.tl-title { font-weight: 700; margin: 2px 0 3px; }
.tl-text { color: var(--muted); font-size: .94rem; margin: 0; }
.records-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 22px; }
.rec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.rec .rv { font-family: var(--serif); font-size: 2.1rem; font-weight: 800; color: var(--gold-ink); line-height: 1; }
.rec .rl { font-weight: 700; margin: 6px 0 4px; }
.rec .rd { font-size: .85rem; color: var(--muted); margin: 0; }
.spotlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #eef1fb;
  border-radius: 20px; padding: 30px; border: 1px solid rgba(230,193,80,.35); position: relative; overflow: hidden;
}
.spotlight::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(230,193,80,.28), transparent 70%); }
.spotlight h2, .spotlight h3 { color: #fff; }
.spotlight .sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.sched .sc { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px; }
.sched .sc .d { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.sched .sc .p { font-weight: 700; margin-top: 3px; }
.sched .sc.today { border-color: var(--gold); background: rgba(230,193,80,.16); }
.sched .sc .st { font-size: .72rem; margin-top: 4px; color: var(--gold-2); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.medal-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 18px; margin-top: 18px; }
.medal-box ul { margin: 8px 0 0; padding-left: 20px; }
.medal-box li { margin-bottom: 5px; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 30px; padding: 34px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 18px; } }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--sans); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-2); font-size: .92rem; }
.disclaimer { font-size: .82rem; color: var(--muted); margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------------- Misc ---------------- */
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-strong); font-size: .83rem; font-weight: 600; color: var(--ink-2); }
.share-banner { display: none; margin-bottom: 18px; padding: 13px 16px; border-radius: 12px; background: linear-gradient(90deg, rgba(230,193,80,.2), rgba(230,193,80,.05)); border: 1px solid var(--gold); font-weight: 600; }
.share-banner.show { display: block; }
.cat-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

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