:root{color-scheme:light;--milk:#f1ede7;--ink:#1a1a1a;--orange:#f48200;--soft:#e8e1d8;--muted:#55504a}
*{box-sizing:border-box}body{margin:0;background:var(--milk);color:var(--ink);font:16px/1.55 Manrope,Arial,sans-serif}header,main{width:min(100% - 32px,740px);margin:auto}header{padding:20px 0}main{padding:12px 0 44px;outline:none}a{color:inherit}.brand,h1,h2,h3,button{font-family:Montserrat,Arial,sans-serif}.brand{font-weight:800;text-decoration:none}.brand em,h1 em{font-family:"Playfair Display",Georgia,serif;color:#9c4800}h1{font-size:clamp(28px,6.3vw,48px);line-height:1.12;margin:0 0 16px;letter-spacing:-.035em}h2{font-size:21px;margin:0 0 10px}p{margin:0 0 14px}.card,fieldset{border:1px solid #d5cdc1;border-radius:20px;padding:clamp(15px,4vw,25px);background:#fffdfa;margin:0 0 14px;min-width:0}.muted,small{color:var(--muted)}button{min-height:46px;border:1px solid var(--ink);border-radius:40px;padding:8px 17px;font-weight:700;background:var(--ink);color:white;cursor:pointer}button.secondary{background:transparent;color:var(--ink)}:focus-visible{outline:3px solid #ab5300;outline-offset:3px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.answer{display:flex;gap:10px;padding:10px 8px;min-height:44px;align-items:flex-start;border-bottom:1px solid var(--soft);cursor:pointer}.answer:has(input:checked){background:var(--soft)}input{accent-color:var(--ink);margin-top:5px}progress{width:100%;height:12px;accent-color:#9c4800;margin-bottom:14px}audio{width:100%;margin-top:10px}dl{margin:0}dt{font-weight:700}dd{margin:0 0 12px}.level{font-family:Montserrat,sans-serif;font-size:48px;font-weight:800;line-height:1.15;margin:8px 0 15px}.error{color:#902000}details{margin:14px 0}ul{padding-left:22px}
/* Keep native fieldsets, long answer text and controls within the card. */
main, form, fieldset, .card, .answer, .answer span { min-inline-size: 0; }
fieldset, .card, .actions button { max-inline-size: 100%; }
fieldset { inline-size: 100%; }
.question-title, .card, .answer span, button { overflow-wrap: anywhere; }
.answer { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.answer input { margin: 5px 0 0; }
.unknown { margin-top: 12px; }
.unknown[aria-pressed="true"] { background: var(--soft); }

.skill-row { overflow-wrap: anywhere; }

.question-title { font-size: 1.125rem; line-height: 1.4; margin: 0 0 12px; }
main:focus-visible{outline:none}.answer:has(input:focus-visible){outline:3px solid #ab5300;outline-offset:-3px}.unknown{border-color:transparent;text-decoration:underline}button:disabled{opacity:.55}
