/* LIFE LIST — Bird the Real Florida
   Palette: Biscayne sunset over field-guide cream. */
:root {
  --paper: #fff7ec;
  --paper-2: #fdeedb;
  --card: #ffffff;
  --ink: #1d1830;
  --ink-2: #4a4360;
  --muted: #6d6680;
  --line: #ead9c4;
  --flamingo: #ff4f84;
  --flamingo-deep: #d62e65;
  --teal: #0a9c8f;
  --teal-deep: #077a70;
  --sun: #ffb23e;
  --sky: #2f8ae0;
  --leaf: #2f8f5b;
  --night: #221b3a;
  --good: #1f9d55;
  --bad: #d64545;
  --shadow: 0 10px 30px rgba(45, 25, 60, 0.12);
  --shadow-sm: 0 3px 10px rgba(45, 25, 60, 0.1);
  --radius: 18px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #141022;
  --paper-2: #1b1530;
  --card: #221b38;
  --ink: #f8efe4;
  --ink-2: #ddd1e8;
  --muted: #b3a8c6;
  --line: #3a3056;
  --flamingo: #ff6b98;
  --flamingo-deep: #ff4f84;
  --teal: #2fd0c0;
  --teal-deep: #1fb5a6;
  --sun: #ffc062;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  background-image: radial-gradient(circle at 90% -10%, rgba(255, 79, 132, 0.12), transparent 40%), radial-gradient(circle at -10% 30%, rgba(10, 156, 143, 0.08), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
[data-theme="dark"] a { color: var(--teal); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--flamingo); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.site-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 10px; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--flamingo-deep); background: color-mix(in srgb, var(--flamingo) 12%, transparent); }
.icon-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 1.05rem; display: inline-grid; place-items: center; flex: none; }
.icon-btn:hover { border-color: var(--flamingo); }
.nav-toggle { display: none; }
.life-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 6px 12px; text-decoration: none; flex: none; }
.site-nav a.life-pill, .site-nav a.life-pill:hover { color: var(--paper); background: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .site-nav { position: absolute; top: 60px; right: 12px; left: 12px; flex-direction: column; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
}

/* ---------- buttons ---------- */
.btn { --b: var(--flamingo); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 1rem/1 var(--font-body); padding: 14px 22px; border-radius: 14px; background: var(--b); color: #fff; text-decoration: none; box-shadow: 0 4px 0 color-mix(in srgb, var(--b) 60%, #000), var(--shadow-sm); transition: transform 0.12s ease, box-shadow 0.12s ease; min-height: 48px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--b) 60%, #000); }
.btn.teal { --b: var(--teal); }
.btn.ink { --b: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--flamingo); }
.btn.small { padding: 9px 14px; min-height: 38px; font-size: 0.9rem; border-radius: 11px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- generic ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--flamingo-deep); margin-bottom: 8px; }
[data-theme="dark"] .eyebrow { color: var(--flamingo); }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.exotic { background: #fff1d6; color: #8a5a00; border-color: #f5d79a; }
.chip.cons { background: #ffe3e8; color: #a0193f; border-color: #f7b8c8; }
.chip.win { background: #dff3ff; color: #145a8a; border-color: #b4dcf5; }
.chip.sum { background: #fff0e0; color: #9a4a00; border-color: #f7c99a; }
.chip.seen { background: #dcf5e6; color: #146c3a; border-color: #a8e0bf; }
[data-theme="dark"] .chip.exotic { background: #3d2f10; color: #ffd27a; border-color: #6b5420; }
[data-theme="dark"] .chip.cons { background: #3f1424; color: #ff9ab6; border-color: #6b2540; }
[data-theme="dark"] .chip.win { background: #10304a; color: #9fd4ff; border-color: #1f4f78; }
[data-theme="dark"] .chip.sum { background: #3d2410; color: #ffc08a; border-color: #6b4020; }
[data-theme="dark"] .chip.seen { background: #12391f; color: #8fe5b0; border-color: #1f6038; }
.rar { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.rar-c { color: var(--muted); } .rar-u { color: var(--teal-deep); } .rar-r { color: var(--flamingo-deep); } .rar-m { color: #b06a00; }
[data-theme="dark"] .rar-u { color: var(--teal); } [data-theme="dark"] .rar-r { color: var(--flamingo); } [data-theme="dark"] .rar-m { color: var(--sun); }
section { padding: 48px 0; }
.grid { display: grid; gap: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 200; transition: transform 0.25s ease; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; margin-top: 30px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-2); }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 2; padding: clamp(40px, 9vw, 96px) 0 clamp(150px, 24vw, 230px); }
.hero h1 { color: #fff; text-shadow: 0 2px 0 rgba(40, 10, 50, 0.35), 0 10px 40px rgba(40, 10, 50, 0.35); max-width: 12ch; }
.hero h1 em { font-style: italic; color: #ffe2a8; }
.hero .lead { color: #fff; text-shadow: 0 1px 8px rgba(40, 10, 50, 0.5); max-width: 36ch; font-weight: 500; }
.hero .eyebrow { color: #ffe2a8; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.vs { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.vs-box { background: rgba(255, 255, 255, 0.92); color: #1d1830; border-radius: 16px; padding: 10px 16px; min-width: 130px; box-shadow: var(--shadow-sm); }
.vs-box b { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.vs-box span { font-size: 0.8rem; font-weight: 600; color: #4a4360; }
.vs-box.real b { color: var(--flamingo-deep); }
.modes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mode-card { position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease; overflow: hidden; }
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mode-card canvas { width: 100%; height: 130px; border-radius: 12px; background: var(--paper-2); }
.mode-card h3 { margin: 6px 0 0; }
.mode-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.mode-card .go { margin-top: auto; font-weight: 800; color: var(--flamingo-deep); }
[data-theme="dark"] .mode-card .go { color: var(--flamingo); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat b { font-family: var(--font-display); font-size: 2rem; display: block; line-height: 1.05; }
.stat span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.two-col { display: grid; gap: 28px; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.feat { display: grid; gap: 20px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
@media (max-width: 700px) { .feat { grid-template-columns: 1fr; } }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fact-list li { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 12px; padding: 12px 14px; }
.fact-list li b { font-family: var(--font-display); }

/* ---------- play: setup ---------- */
.setup-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .opt-body { display: block; height: 100%; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: border-color 0.15s, transform 0.15s; }
.opt .opt-body b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.opt .opt-body span { color: var(--muted); font-size: 0.92rem; }
.opt input:checked + .opt-body { border-color: var(--flamingo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flamingo) 18%, transparent); }
.opt:hover .opt-body { border-color: color-mix(in srgb, var(--flamingo) 60%, var(--line)); }
button.opt { cursor: pointer; }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--flamingo); outline-offset: 2px; }
.setup-block { margin: 22px 0; }
.setup-block h3 { margin-bottom: 10px; }
.site-select { display: none; }
.site-select.show { display: grid; }
.how { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 10px 0 0; padding: 0; list-style: none; counter-reset: how; }
.how li { background: var(--paper-2); border-radius: 14px; padding: 12px 14px 12px 48px; position: relative; font-size: 0.95rem; }
.how li::before { counter-increment: how; content: counter(how); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--flamingo); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.9rem; }

/* ---------- play: game ---------- */
.game-shell { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #0d0a18; user-select: none; -webkit-user-select: none; }
.game-shell canvas { display: block; width: 100%; height: min(68vh, 620px); min-height: 380px; cursor: none; touch-action: none; }
.game-shell canvas:focus-visible { outline: 3px solid var(--flamingo); outline-offset: -3px; }
.hud { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; padding: 10px; pointer-events: none; }
.hud-box { background: rgba(20, 14, 34, 0.72); color: #fff; border-radius: 12px; padding: 6px 12px; font-weight: 700; font-size: 0.9rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud-box b { font-family: var(--font-display); font-size: 1.25rem; display: block; line-height: 1.1; }
.hud-box small { opacity: 0.75; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hud-site { max-width: 48%; }
.hud-right { display: flex; gap: 6px; }
.hud-time.low b { color: #ff8a8a; }
.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 10px; pointer-events: none; }
.hud-bottom > * { pointer-events: auto; }
.hint { background: rgba(20, 14, 34, 0.72); color: #fff; border-radius: 12px; padding: 7px 12px; font-size: 0.85rem; max-width: 60%; pointer-events: none; }
.pop { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 6vw, 3rem); color: #fff; text-shadow: 0 3px 0 var(--flamingo-deep), 0 8px 30px rgba(0, 0, 0, 0.5); pointer-events: none; opacity: 0; width: 92%; text-align: center; line-height: 1.05; }
.pop.show { animation: pop 1.4s ease forwards; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -55%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -75%) scale(0.98); } }
.overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 14px; background: rgba(13, 8, 24, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 5; }
.overlay.show { display: flex; }
.panel { background: var(--card); color: var(--ink); border-radius: 20px; padding: 18px; width: min(560px, 100%); max-height: 100%; overflow: auto; box-shadow: var(--shadow); border: 1px solid var(--line); }
.id-panel { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
.id-panel canvas.portrait { width: 180px; height: 180px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 6px #1d1830, inset 0 0 30px rgba(0, 0, 0, 0.25); }
.id-panel h3 { margin: 0 0 4px; }
.answers { display: grid; gap: 8px; margin-top: 10px; }
.answer { text-align: left; border: 2px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 11px 14px; font: 600 1rem/1.25 var(--font-body); cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 46px; }
.answer kbd { font: 700 0.75rem var(--font-body); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--muted); }
.answer:hover { border-color: var(--flamingo); }
.answer.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--card)); }
.answer.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--card)); }
.id-timer { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; margin-top: 10px; }
.id-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--sun), var(--flamingo)); transform-origin: left; }
.id-feedback { margin-top: 10px; font-size: 0.95rem; }
.id-feedback b { font-family: var(--font-display); }
@media (max-width: 700px), (max-height: 560px) {
  .overlay { position: fixed; z-index: 80; }
  .game-shell canvas { height: 70vh; height: 70svh; }
}
@media (max-width: 560px) {
  .id-panel { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .id-panel canvas.portrait { width: 120px; height: 120px; margin: 0 auto; }
  .answer { padding: 9px 12px; min-height: 42px; }
  .panel { padding: 14px; }
  .answer { text-align: left; }
  .hud-box { padding: 5px 9px; font-size: 0.8rem; }
  .hud-box b { font-size: 1.05rem; }
  .hint { max-width: 100%; font-size: 0.78rem; }
}
.interlude h2 { margin-bottom: 4px; }
.interlude .place { color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.interlude .tip { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; font-size: 0.95rem; }
.daybar { display: flex; gap: 4px; margin: 12px 0; }
.daybar i { flex: 1; height: 8px; border-radius: 8px; background: var(--line); }
.daybar i.done { background: var(--teal); }
.daybar i.now { background: var(--flamingo); }
.game-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.game-tools .muted { font-size: 0.88rem; }

/* ---------- report ---------- */
.report { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
@media (max-width: 860px) { .report { grid-template-columns: 1fr; } }
.report canvas.card-img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.report-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mini { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.mini canvas { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--paper-2); }
.mini.lifer { border-color: var(--flamingo); }
.mini.missing { opacity: 0.45; }
.big-num { font-family: var(--font-display); font-size: 3rem; font-weight: 900; line-height: 1; }

/* ---------- guide ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 20px; }
.toolbar input[type="search"], .toolbar select { font: 600 1rem var(--font-body); padding: 11px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); min-height: 46px; }
.toolbar input[type="search"] { flex: 1 1 220px; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--flamingo); outline: none; }
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sp-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
.sp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sp-card canvas { width: 100%; height: 170px; display: block; }
.sp-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.sp-card .sp-name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1.15; }
.sp-card .sci { font-style: italic; color: var(--muted); font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.dialog { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 14px; background: rgba(13, 8, 24, 0.6); }
.dialog.show { display: flex; }
.dialog .panel { width: min(720px, 100%); max-height: calc(100vh - 28px); position: relative; }
.dialog .close { position: absolute; top: 10px; right: 10px; }
.detail { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.detail canvas { width: 100%; height: 260px; border-radius: 16px; background: var(--paper-2); }
.detail ul { padding-left: 1.1em; margin: 0 0 12px; }
@media (max-width: 640px) { .detail { grid-template-columns: 1fr; } .detail canvas { height: 220px; } }
.count-note { font-weight: 700; color: var(--muted); }

/* ---------- sprint ---------- */
.sprint-stage { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 760px) { .sprint-stage { grid-template-columns: 1fr; } }
.scope { position: relative; width: min(380px, 100%); aspect-ratio: 1; margin: 0 auto; }
.scope canvas { width: 100%; height: 100%; border-radius: 50%; display: block; box-shadow: 0 0 0 10px #1d1830, 0 0 0 14px var(--flamingo), var(--shadow); background: #cfe3ea; }
.sprint-hud { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sprint-hud .stat { flex: 1 1 100px; padding: 10px 12px; }
.sprint-hud .stat b { font-size: 1.6rem; }
.streak-fire { color: var(--flamingo-deep); }
.timebar { height: 10px; border-radius: 10px; background: var(--paper-2); overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); }
.timebar i { display: block; height: 100%; background: linear-gradient(90deg, var(--flamingo), var(--sun)); width: 100%; transition: width 0.1s linear; }

/* ---------- quiz ---------- */
.quiz-card { max-width: 720px; margin: 0 auto; }
.q-progress { display: flex; gap: 4px; margin-bottom: 14px; }
.q-progress i { flex: 1; height: 7px; border-radius: 7px; background: var(--line); }
.q-progress i.ok { background: var(--good); }
.q-progress i.no { background: var(--bad); }
.q-progress i.now { background: var(--flamingo); }
.q-text { font-family: var(--font-display); font-size: clamp(1.3rem, 3.6vw, 1.75rem); font-weight: 700; line-height: 1.25; margin: 8px 0 16px; }
.q-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.q-explain { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); display: none; }
.q-explain.show { display: block; }
.q-scene { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.q-scene canvas { width: 120px; height: 120px; flex: none; border-radius: 16px; background: var(--paper-2); }
@media (max-width: 480px) { .q-scene { flex-direction: column; align-items: flex-start; } }

/* ---------- life list ---------- */
.life-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.life-tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; text-align: center; font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.life-tile canvas { width: 100%; height: 96px; border-radius: 10px; background: var(--paper-2); display: block; margin-bottom: 6px; }
.life-tile.unseen canvas { filter: brightness(0) opacity(0.25); background: transparent; }
[data-theme="dark"] .life-tile.unseen canvas { filter: brightness(0) invert(1) opacity(0.18); }
.life-tile.unseen { color: var(--muted); }
.life-tile .when { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.progress-ring { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.bar { height: 14px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--flamingo)); }
.compare-banner { background: color-mix(in srgb, var(--sun) 22%, var(--card)); border: 1px solid color-mix(in srgb, var(--sun) 50%, var(--line)); border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; }

/* ---------- about ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.sources li { word-break: break-word; }

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