:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #10151f; color: #edf2f7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #9eeaf3; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ffd866; outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .7rem 1rem; background: #ffd866; color: #10151f; font-weight: 700; z-index: 1; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem max(1.5rem, calc((100% - 70rem) / 2)); border-bottom: 1px solid #2f3c50; }
.brand { color: #edf2f7; font-size: 1.25rem; font-weight: 800; text-decoration: none; }
main { width: min(70rem, calc(100% - 3rem)); margin: 0 auto; padding: 1.5rem 0 3rem; }
main:focus { outline: none; }
.breadcrumb { color: #c9d5e6; font-size: .9rem; margin-bottom: 2rem; }
h1 { max-width: 20ch; margin-bottom: .5rem; }
h2 { margin-top: 2rem; }
.lead { max-width: 70ch; font-size: 1.1rem; line-height: 1.6; }
.eyebrow { color: #78dce8; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.notice, .timing-notice { max-width: 75ch; padding: 1rem; border-left: .3rem solid #78dce8; background: #202c40; line-height: 1.5; }
.how-to-use { display: grid; gap: .6rem; max-width: 65ch; line-height: 1.5; }
.risk-grid, .controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; }
.risk-card, button { border: 1px solid #55738a; border-radius: .5rem; padding: 1rem; color: #edf2f7; background: #182131; font: inherit; text-align: left; }
.risk-card { display: grid; gap: .45rem; text-decoration: none; min-height: 11rem; }
.risk-card:hover { border-color: #78dce8; background: #202c40; }
.risk-card span, .risk-card b { color: #9eeaf3; }
.risk-card small { color: #c9d5e6; line-height: 1.4; }
.risk-card b { margin-top: auto; }
.available { border-color: #78dce8; }
button { cursor: pointer; display: grid; gap: .35rem; min-height: 6rem; }
button:hover { background: #243247; }
button span { color: #c9d5e6; font-size: .9rem; }
#status { min-height: 1.5rem; font-weight: 700; margin: 1.5rem 0; }
#result { margin-top: 1.5rem; }
.lesson-steps { display: grid; gap: .75rem; margin: 0; padding-left: 1.5rem; }
.lesson-steps li { padding: .8rem; background: #202c40; border-left: .3rem solid #78dce8; border-radius: .4rem; }
.lesson-steps p, .lesson-steps pre { margin: .5rem 0 0; }
pre { overflow-wrap: anywhere; white-space: pre-wrap; border: 1px solid #2f3c50; border-radius: .4rem; padding: 1rem; background: #10151f; }
details { margin-top: 1.5rem; color: #c9d5e6; }
summary { cursor: pointer; color: #9eeaf3; }
#reset { margin-top: 1.5rem; }
@media (max-width: 35rem) { main { width: min(100% - 2rem, 70rem); } .site-header { padding: 1rem; } }
