:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #2f5042; background: #f6fbf8; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 56px; }
.header { display: flex; justify-content: space-between; align-items: center; min-height: 84px; padding: 10px 0 24px; }
.logo-link { display: inline-flex; align-items: center; }.logo { display: block; width: min(230px, 58vw); height: auto; }
.card { background: white; border: 1px solid #d9ebe1; border-radius: 18px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 10px 36px #5bb2871a; }
.eyebrow { color: #55806c; font-size: 14px; font-weight: 650; margin: 0 0 10px; }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.12; letter-spacing: -.9px; margin: 0 0 14px; }
h2 { margin: 0 0 16px; font-size: 24px; }
.lead, .notice { color: #5d786b; line-height: 1.55; max-width: 680px; }
.notice { margin-top: 30px; padding: 14px 16px; border-left: 3px solid #8dcdae; background: #f1faf5; border-radius: 6px; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 14px; margin: 28px 0; }
.home-hero { max-width: 760px; margin: 10px auto 30px; text-align: center; }.home-hero h1 { color: #3f9d6c; background: linear-gradient(90deg, #5bb287, #478f6d); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }.home-hero .lead { margin: 0 auto; }.home-hero h2 { margin: 30px 0 0; font-size: 22px; }
.station-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 26px; padding: 18px 20px; border: 1px solid #cce7d8; border-radius: 14px; background: #f1faf5; color: #2f5042; text-decoration: none; }.station-callout strong { display: block; font-size: 17px; margin-bottom: 4px; }.station-callout span { color: #668477; font-size: 14px; }.station-callout em { color: #478f6d; font-style: normal; font-weight: 750; white-space: nowrap; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 28px 0; }.mode-card { display: flex; min-height: 166px; flex-direction: column; padding: 18px; border: 1px solid #d9ebe1; border-radius: 12px; background: #fff; }.mode-card > strong { font-size: 17px; margin-bottom: 5px; }.mode-card > small { color: #668477; }.mode-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; }.mode-actions > * { flex: 1; text-align: center; }.outline-button { border: 1px solid #80c4a0; border-radius: 10px; background: #fff; color: #478f6d; cursor: pointer; font: inherit; font-weight: 700; padding: 12px 14px; }.outline-button:hover { background: #f1faf5; }.mode-actions .outline-button { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }.mode-actions .outline-button:hover { background: #f1faf5; text-decoration-thickness: 2px; }
.choice, .answer { cursor: pointer; display: block; width: 100%; background: #fff; border: 1px solid #d9ebe1; border-radius: 12px; padding: 16px; text-align: left; color: #2f5042; font: inherit; transition: .15s ease; }
.choice:hover, .answer:hover { border-color: #5bb287; transform: translateY(-1px); }.button:focus-visible, .outline-button:focus-visible, .link-button:focus-visible, .choice:focus-visible, .logo-link:focus-visible, .search input:focus-visible { outline: 3px solid #2b8a5a; outline-offset: 3px; }
.choice strong { display: block; font-size: 17px; margin-bottom: 5px; }
.choice small { color: #668477; }
.button, .link-button { border: 0; border-radius: 10px; background: #5bb287; color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: 13px 18px; }
.button:hover { background: #478f6d; }.button:disabled { cursor: not-allowed; opacity: .55; }
.link-button { background: transparent; color: #478f6d; padding: 8px; }.link-button:hover { background: #eaf7ef; }
.meta { display: flex; align-items: center; gap: 12px; color: #668477; font-size: 14px; margin-bottom: 24px; }.progress { flex: 1; height: 7px; background: #e1eee6; border-radius: 9px; overflow: hidden; }.progress span { display:block; height:100%; background:#5bb287; }
.question { max-width: 820px; font-size: clamp(17px, 1.8vw, 22px); font-weight: 500; line-height: 1.5; margin: 0 0 22px; white-space: pre-line; }.answers { display: grid; gap: 10px; }.answer { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }.answer.selected { border-color: #5bb287; background: #f1faf5; }.answer.correct { border-color: #16a34a; background: #f0fdf4; }.answer.wrong { border-color: #dc2626; background: #fef2f2; }.answer.locked { pointer-events: none; }.answer input { margin-top: 4px; accent-color: #5bb287; }
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }.feedback { margin-top: 18px; padding: 14px; border-radius: 10px; background: #f2f8f4; line-height: 1.45; }.feedback.good { color: #166534; background:#f0fdf4; }.feedback.bad { color: #991b1b; background:#fef2f2; }
.result { text-align: center; }.result .lead { margin-left: auto; margin-right: auto; }.result .actions { justify-content: center; }.result-summary { max-width: 480px; margin: 18px auto 0; color: #477664; line-height: 1.5; }.score { color: #5bb287; font-size: clamp(45px, 9vw, 76px); font-weight: 800; line-height: 1; margin: 24px 0 8px; }.loading { text-align: center; color: #668477; padding: 72px 0; }
.view-title { font-size: clamp(25px, 4vw, 34px); }.search { display: grid; gap: 7px; margin: 22px 0; color: #477664; font-size: 14px; font-weight: 700; }.search input { width: 100%; padding: 12px 14px; border: 1px solid #b7dcca; border-radius: 10px; color: #2f5042; font: inherit; }.view-list { display: grid; gap: 22px; }.view-item { padding-top: 22px; border-top: 1px solid #d9ebe1; }.view-question { max-width: 820px; color: #2f5042; font-size: clamp(17px, 1.8vw, 22px); font-weight: 500; line-height: 1.5; white-space: pre-line; }.view-answer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #d9ebe1; border-radius: 10px; color: #2f5042; font-size: 16px; line-height: 1.45; }.view-answer.correct { border-color: #22a05b; background: #f0fdf4; color: #166534; }.view-answer b { flex: 0 0 auto; font-size: 13px; }.view-more { justify-content: center; }.empty-state { color: #668477; padding: 18px 0; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: #163c2d88; }.modal { width: min(620px, 100%); padding: clamp(24px, 5vw, 38px); border-radius: 18px; background: #fff; box-shadow: 0 24px 64px #18352955; }.modal h2 { color: #2f5042; }.modal p { color: #4e6c5e; line-height: 1.6; }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
@media (max-width: 560px) { .shell { width:min(100% - 24px, 960px); padding-top: 12px; } .header { min-height: 64px; padding-bottom: 16px; } .card { padding: 22px; } .station-callout { align-items: flex-start; flex-direction: column; gap: 10px; }.mode-actions, .modal-actions, .actions { align-items: stretch; flex-direction: column; }.mode-actions > *, .actions .button { width: 100%; }.view-answer { align-items: flex-start; flex-direction: column; gap: 6px; } }
