* { box-sizing: border-box; }
:root { font-family: system-ui, sans-serif; color: #233144; background: #f1f5f8; line-height: 1.55; }
body { margin: 0; padding: clamp(.6rem, 3vw, 2.5rem); }
main { max-width: 62rem; margin: auto; padding: clamp(1rem, 3.5vw, 2.5rem); border: 1px solid #d5dee6; border-radius: 1rem; background: white; }
header { border-bottom: 1px solid #dce3e9; padding-bottom: 1.3rem; }
.eyebrow { color: #485e8e; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .78rem; }
.eyebrow span { color: #a1afc8; padding: 0 .4em; }
h1 { margin: 0; line-height: 1.12; font-size: clamp(1.9rem, 5vw, 3.1rem); }
.bank, #key { padding: .8rem 1rem; border-radius: .65rem; background: #eaf0f6; }
.bank p { margin: .45rem 0 0; }
summary { font-weight: 650; cursor: pointer; }
.questions { padding-inline-start: 1.85rem; margin-block: 1.4rem; }
.questions li { margin-block: 1.05rem; }
input, button { font: inherit; }
input { inline-size: min(20rem, 100%); max-inline-size: 100%; padding: .55rem .8rem; border: 1px solid #aebac7; border-radius: .55rem; background: #fff; color: inherit; }
:focus-visible { outline: 3px solid #345fa2; outline-offset: 2px; }
.feedback { font-weight: 650; }
[data-state="correct"] { color: #226442; }
[data-state="retry"] { color: #8c4026; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
button { min-height: 44px; padding: .65rem 1rem; background: #e8eff5; border: 0; border-radius: .55rem; color: #253448; cursor: pointer; font-weight: 650; }
button:hover { filter: brightness(.95); }
.primary { color: white; background: #506799; }
#score:not(:empty) { padding: .85rem 1rem; border-radius: .6rem; background: #fbf1e8; }
#score:empty { margin: 0; }
#key { margin-top: 1rem; }
h2 { font-size: 1.1rem; margin: 0; }
#key ol { padding-inline-start: 1.65rem; margin-block: .4rem; }
@media (max-width: 36rem) { input { display: block; width: 100%; margin-block: .3rem; } .actions button { flex: 1 1 9rem; } }
