:root {
  color-scheme: dark;
  --bg: #111512;
  --surface: #19201b;
  --muted: #adb9af;
  --line: #35453a;
  --accent: #c1fb70;
  --text: #f3f8f1;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
button, input { font: inherit; }
a { color: var(--accent); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1:focus, h2:focus { outline: none; }
.site-head, .site-foot, .shell { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.site-head, .site-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.site-head { min-height: 80px; border-bottom: 1px solid var(--line); }
.site-foot { border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .875rem; flex-wrap: wrap; }
.brand { font-size: 1.13rem; font-weight: 800; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; }
.brand-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--accent); color: var(--bg); font-style: italic; }
.season, .eyebrow { color: var(--accent); font-family: ui-monospace, monospace; font-weight: 650; font-size: .875rem; }
.season span { color: var(--muted); }
.shell { padding-block: clamp(26px, 7vh, 82px); flex: 1; }
.intro { display: grid; gap: 24px; }
.hero { border: 1px solid var(--line); border-radius: 24px; background: #1a241b; position: relative; overflow: hidden; display: flex; min-height: 375px; align-items: center; }
.hero-text { position: relative; z-index: 1; padding: clamp(25px, 5vw, 62px); }
.eyebrow { margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6.6rem); line-height: .94; letter-spacing: -.075em; margin: 0 0 22px; }
.hero h1 span { color: var(--accent); }
.lede { color: var(--muted); max-width: 51ch; font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.55; margin: 0 0 22px; }
.fact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fact-row span { border: 1px solid var(--line); border-radius: 50px; padding: 6px 12px; font-size: .875rem; }
.schematic { position: absolute; right: 0; top: 0; height: 100%; width: 43%; background: radial-gradient(ellipse at center, #273924 5%, transparent 72%); display: grid; place-items: center; }
.orbit { width: min(74%, 320px); aspect-ratio: 1; border-radius: 50%; position: absolute; border: 1px solid #607858; }
.orbit.inner { width: min(55%, 235px); border-style: dashed; opacity: .55; }
.cross { position: absolute; background: #546d4c; opacity: .65; }
.cross-x { height: 1px; width: 84%; }
.cross-y { width: 1px; height: 81%; }
.route { position: absolute; width: 39%; max-width: 160px; aspect-ratio: 1.23; border-left: 3px solid var(--accent); border-top: 3px solid var(--accent); transform: rotate(35deg); border-radius: 20px 0 0 0; filter: drop-shadow(0 0 12px #8cb85580); }
.route i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.route i:nth-child(1) { bottom: -5px; left: -7px; }
.route i:nth-child(2) { top: 0; left: 5px; }
.route i:nth-child(3) { top: -7px; right: -5px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; }
.start { padding: clamp(22px, 4vw, 36px); }
.start form { max-width: 630px; }
.start label, #login label { display: block; font-weight: 750; font-size: 1.25rem; margin-bottom: 12px; }
input:not([type=radio]) { display: block; width: 100%; border: 1px solid #526459; color: var(--text); background: #101611; border-radius: 10px; min-height: 49px; padding: 10px 14px; }
input::placeholder { color: var(--muted); opacity: 1; }
.quiet { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.primary, .secondary { cursor: pointer; font-weight: 740; min-height: 44px; padding: 9px 19px; border-radius: 10px; border: 1px solid transparent; }
.primary { color: #172011; background: var(--accent); }
.secondary { color: var(--text); background: transparent; border-color: #536458; }
.primary:hover:not(:disabled) { background: #d5ff99; }
.secondary:hover:not(:disabled) { background: #29362b; }
button:disabled { opacity: .42; cursor: default; }
.quiz-wrap { max-width: 820px; margin-inline: auto; }
.progress-label { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 10px; color: var(--muted); overflow-wrap: anywhere; }
.progress-label > :first-child { flex-shrink: 0; }
progress { appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 8px; overflow: hidden; background: #354239; color: var(--accent); }
progress::-webkit-progress-bar { background: #354239; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.question, .scores { margin-top: 18px; padding: clamp(20px, 4vw, 40px); }
.question h1 { font-size: clamp(1.48rem, 3.8vw, 2.48rem); line-height: 1.16; letter-spacing: -.035em; margin: 0 0 22px; overflow-wrap: anywhere; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.option { position: relative; min-height: 54px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; cursor: pointer; line-height: 1.36; }
.option:hover, .option:has(:checked) { background: #253322; border-color: #8cb757; }
.option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.option input { position: absolute; opacity: 0; }
.letter { display: grid; place-items: center; flex: 0 0 30px; height: 30px; background: #313f33; border-radius: 6px; font-size: .88rem; }
.option:has(:checked) .letter { background: var(--accent); color: #172011; }
.actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }
.error { color: #ffbba9; margin-top: 10px; }
.error:empty { display: none; }
.scores h2 { font-size: 1.35rem; margin-top: 0; }
.score { margin-bottom: 17px; }
.score div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.score strong { white-space: nowrap; }
.scores button { margin-top: 10px; }
.admin { color: var(--text); width: min(760px, calc(100% - 28px)); max-height: 88dvh; padding: clamp(16px, 4vw, 30px); overflow: auto; }
.admin::backdrop { background: #070a08c9; }
.admin-head { display: flex; gap: 10px; align-items: start; justify-content: space-between; margin-bottom: 16px; }
.admin-head h2 { margin: 0; overflow-wrap: anywhere; }
#login button { margin-top: 15px; }
.records { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.record { display: grid; gap: 3px; width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; background: #202b22; color: var(--text); padding: 11px 13px; overflow-wrap: anywhere; }
.record:hover { border-color: var(--accent); }
.record small, .answer-list p { color: var(--muted); }
.answer-list { padding-left: 25px; }
.answer-list li { margin-bottom: 14px; }
.answer-list p { margin: 4px 0; }
.pager { display: flex; gap: 8px; }
@media (max-width: 660px) {
  .site-head, .site-foot, .shell { width: calc(100% - 36px); }
  .site-head { min-height: 60px; }
  .shell { padding-block: 25px; }
  .hero { min-height: 315px; }
  .schematic { opacity: .32; width: 55%; }
  .hero-text .lede { max-width: 34ch; }
  .site-foot { padding-block: 16px; }
  .question, .scores { margin-top: 14px; }
}
