:root { color-scheme: dark; font-family: system-ui, -apple-system, sans-serif; background:#101b2c; color:#f4eee2; }
* { box-sizing: border-box; }
body { margin:0; background:radial-gradient(ellipse at 50% 18%, #253750 0%, #101b2c 66%); line-height:1.6; }
main { width:min(100% - 2rem, 54rem); margin:0 auto; padding:clamp(2rem, 6vw, 4.5rem) 0 3rem; }
header { max-width:39rem; margin:0 auto 2.2rem; }
.eyebrow { color:#eccb8a; text-transform:uppercase; letter-spacing:.16em; font-size:.72rem; font-weight:700; }
h1,h2 { font-family:Georgia, serif; line-height:1.15; }
h1 { font-size:clamp(2.6rem, 8vw, 4.6rem); font-weight:400; margin:.35rem 0 1.1rem; letter-spacing:-.035em; }
h1 em { color:#f2cf8b; font-weight:400; }
header > p:last-child { max-width:36rem; color:#d8dfeb; font-size:1.06rem; }
.play, details { background:#1a293d; border:1px solid #52617a; border-radius:1rem; padding:clamp(1rem, 4vw, 2rem); box-shadow:0 1rem 3rem #09111d55; }
.challenge-heading { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:1rem; }
.challenge-heading h2 { margin:.2rem 0 0; font-size:1.7rem; font-weight:400; }
.challenge-heading .eyebrow { margin:0; }
.choices { display:flex; flex-wrap:wrap; gap:.45rem; }
button { font:inherit; cursor:pointer; }
.choices button, #reset { border:1px solid #8796aa; color:#f4eee2; background:#263951; padding:.5rem .75rem; border-radius:.55rem; }
.choices button[aria-pressed="true"] { background:#f2cf8b; border-color:#f2cf8b; color:#192336; }
button:focus-visible, summary:focus-visible { outline:3px solid #fff0b0; outline-offset:4px; }
#instruction { color:#d8dfeb; margin:1.1rem 0 0; }
.ring { width:min(100%, 24rem); aspect-ratio:1; margin:1rem auto; position:relative; border-radius:50%; background:radial-gradient(circle, #293c50 0%, #202f42 47%, transparent 68%); }
.ring::before { content:""; position:absolute; inset:11%; border:1px dashed #607187; border-radius:50%; opacity:.65; }
.lantern { position:absolute; transform:translate(-50%, -50%); width:3.6rem; min-height:3.75rem; border:1px solid #a3b4c6; border-radius:1rem .55rem 1rem .55rem; background:#334b62; color:#f4eee2; font-weight:700; box-shadow:0 .3rem .7rem #0b142288; }
.lantern[aria-pressed="true"] { background:#f0c674; border-color:#ffe4a3; color:#322613; box-shadow:0 0 1.25rem #f5cf7d77, 0 .3rem .7rem #0b142288; }
.lantern .number { display:block; line-height:1.1; font-size:1.05rem; }
.lantern .state { display:block; font-size:.65rem; letter-spacing:.03em; font-weight:600; }
.controls { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.1rem; }
#status { margin:0; flex:1 1 16rem; color:#f4eee2; }
details { margin-top:1rem; padding:1.1rem 1.4rem; }
summary { cursor:pointer; font-weight:700; color:#f2cf8b; }
summary span { font-size:.87em; font-weight:400; color:#d8dfeb; }
.explanation { max-width:44rem; color:#d8dfeb; }
.explanation h2 { color:#f4eee2; font-size:1.25rem; margin:1.4rem 0 .3rem; }
.explanation p { margin:.3rem 0; }
footer { text-align:center; color:#c5d1df; padding:2rem 0 0; font-size:.9rem; }
@media (max-width:380px) { .lantern { width:3.2rem; min-height:3.35rem; } .play { padding:1rem; } }
