@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#172540;background:#f0f4fa;font-synthesis:none;--navy:#101b36;--teal:#5be4cf;--blue:#244ed8;--muted:#53647c;--line:#d8e0ed;--white:#fff;--gold:#ffd476}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #3272ef;outline-offset:4px}button{touch-action:manipulation}.topbar{background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:22px max(24px,calc((100vw - 1120px)/2));gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font:500 23px 'Space Grotesk',sans-serif}.brand strong{font-weight:700}.brand-icon{background:var(--teal);color:var(--navy);height:36px;width:36px;display:grid;place-items:center;border-radius:9px;font-weight:700}.brand-caption{font-size:13px;letter-spacing:.16em;color:#b9c8df}main{max-width:1120px;margin:auto;padding:36px 24px 20px}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:700;color:var(--blue);margin:0 0 9px}h1{font:700 clamp(28px,4vw,40px)/1.15 'Space Grotesk',sans-serif;margin:0;letter-spacing:-.035em}.intro-note{color:var(--muted);font-size:15px;line-height:1.55;margin:0;border-left:2px solid var(--line);padding-left:24px}.mode-nav{display:flex;gap:8px;margin-bottom:24px}.mode-nav button{background:transparent;border:1px solid transparent;border-radius:10px;padding:13px 20px;color:var(--muted);font-weight:700;font-size:15px;display:flex;align-items:center;gap:10px}.mode-nav button[aria-current]{background:#fff;color:var(--navy);border-color:var(--line);box-shadow:0 3px 8px #18264908}.nav-num{font:500 12px 'Space Grotesk',sans-serif;opacity:.65}.game-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.surface{background:white;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 10px 30px #18264905}.game-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.tag{font-size:12px;font-weight:700;letter-spacing:.11em;color:var(--blue);margin:0}.counter{font-size:14px;color:var(--muted)}.progress-track{height:5px;background:#e8eef7;border-radius:4px;margin:18px 0 28px;overflow:hidden}.progress-track div{height:100%;background:var(--blue);transition:width .25s}.scenario{color:var(--muted);font-size:17px;line-height:1.5;margin:0 0 12px}h2{font:600 26px/1.25 'Space Grotesk',sans-serif;letter-spacing:-.025em;margin:0 0 22px}h3{font:600 20px/1.3 'Space Grotesk',sans-serif;margin:0 0 12px}.choices{display:grid;gap:10px}.choice{width:100%;background:#fff;border:1px solid #d5deec;border-radius:11px;padding:15px;text-align:left;display:flex;gap:13px;align-items:center;color:var(--navy);font-size:16px;line-height:1.4}.choice:hover:not(:disabled){border-color:var(--blue);background:#f6f8ff}.choice-id{flex-shrink:0;width:33px;height:33px;border-radius:8px;background:#edf1f9;display:grid;place-items:center;font:600 14px 'Space Grotesk',sans-serif}.choice.correct{background:#eafff7;border-color:#16836b}.choice.correct .choice-id{background:#157660;color:#fff}.choice.wrong{background:#fff1f1;border-color:#bc4141}.choice.wrong .choice-id{background:#a72b2b;color:#fff}.choice:disabled{color:inherit;opacity:1}.choice:not(.correct):not(.wrong):disabled{opacity:.66}.feedback{background:#f0f6fe;border-left:3px solid var(--blue);padding:15px 18px;border-radius:0 8px 8px 0;margin-top:20px;font-size:16px;line-height:1.5}.feedback strong{display:block;margin-bottom:4px}.feedback p{margin:7px 0 0}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.primary{background:var(--blue);color:#fff;border:1px solid var(--blue);padding:13px 23px;border-radius:10px;text-decoration:none;font-size:16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.primary:hover{background:#183fae}.secondary{background:transparent;color:var(--navy);border:1px solid #c9d5e6;border-radius:10px;padding:12px 20px;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.secondary:hover{background:#eaf0f8}.small-link{background:none;border:0;color:var(--muted);font-size:14px;text-decoration:underline;padding:10px 0}.scoreboard{background:var(--navy);color:white;border-radius:18px;padding:27px 24px;align-self:start}.scoreboard .tag{color:var(--teal)}.score{font:600 64px/1 'Space Grotesk',sans-serif;letter-spacing:-.06em;margin-top:16px}.score span{font-size:16px;letter-spacing:0;color:#b9c8df;margin-left:5px}.score-stats{display:flex;justify-content:space-between;margin:24px 0;padding-bottom:24px;border-bottom:1px solid #35405a;font-size:14px;color:#c1cde0}.score-stats strong{display:block;color:#fff;font-size:22px;margin-top:5px}.sequence-label{font-size:13px;color:#b9c8df;margin-bottom:14px}.sequence{display:flex;flex-wrap:wrap;gap:7px}.sequence span{border:1px solid #516078;border-radius:7px;min-width:31px;height:31px;display:grid;place-items:center;font:500 13px 'Space Grotesk',sans-serif}.sequence .pending{border-style:dashed;color:#93a3bc}.scoreboard-note{font-size:14px;line-height:1.5;color:#bccae0;margin:20px 0 0}.content-note{font-size:14px;color:#765b1a;background:#fff7df;border:1px solid #ecdcae;padding:12px 16px;border-radius:10px;margin:20px 0}footer{display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#64758d;margin-top:28px;padding-top:18px;border-top:1px solid var(--line);line-height:1.5}.card-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}.select-label{font-size:14px;font-weight:600;display:flex;align-items:center;gap:10px}select{padding:9px 30px 9px 10px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--navy);max-width:100%}.flash-card{width:100%;min-height:320px;position:relative;background:var(--navy);color:white;border:0;border-radius:18px;padding:32px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px}.flash-card.back{background:#153da9}.flash-number{font:500 14px 'Space Grotesk',sans-serif;color:var(--teal);text-transform:uppercase;letter-spacing:.1em}.flash-label{color:#bdcde4;font-size:14px}.flash-text{font:500 clamp(23px,3vw,32px)/1.4 'Space Grotesk',sans-serif;max-width:720px;margin:0;letter-spacing:-.02em}.flip-hint{font-size:14px;color:#c4d2e9;margin-top:10px}.card-purpose{font-size:16px;line-height:1.5;max-width:650px;color:#e1eafa;margin:0}.card-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin-top:20px}.card-actions .actions{margin:0}.practice-tally{font-size:14px;color:var(--muted);margin:18px 0 0}.sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.sheet{background:white;border:1px solid var(--line);border-radius:15px;padding:25px;display:flex;flex-direction:column;align-items:start}.sheet-number{font:600 34px 'Space Grotesk',sans-serif;color:var(--blue);margin-bottom:25px}.sheet p{color:var(--muted);line-height:1.55;font-size:16px;margin:0 0 24px;flex:1}.sheet .primary{width:100%;font-size:15px}.worksheet-intro{margin:0 0 22px;color:var(--muted);line-height:1.6;font-size:16px}.reference-list{margin-top:24px}.reference-list summary{font-size:16px;font-weight:700;cursor:pointer;padding:15px 0}.reference-trigger{padding:16px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:45px 1fr;gap:14px}.reference-trigger strong{font:600 22px 'Space Grotesk',sans-serif;color:var(--blue)}.reference-trigger p{margin:0 0 5px;line-height:1.5;font-size:16px}.reference-trigger small{font-size:14px;color:var(--muted)}.finish{text-align:center;padding:30px 0}.finish-score{font:700 80px/1 'Space Grotesk',sans-serif;color:var(--blue);margin:22px 0}.finish-score span{font-size:24px;color:var(--muted)}.finish p{color:var(--muted);font-size:17px;line-height:1.5}.finish .actions{justify-content:center}.result-detail{font-size:15px;text-align:left;line-height:1.5;padding:15px;background:#f2f6fb;border-radius:10px}.result-detail ul{margin:8px 0 0;padding-left:20px}.empty-pending{padding:24px;background:#fff7df;border:1px dashed #c6a952;border-radius:12px;line-height:1.6;color:#715414}.keyboard-note{font-size:13px;color:var(--muted);margin:16px 0 0}.worksheet-ref{margin-top:28px}
@media(max-width:800px){.game-grid{grid-template-columns:minmax(0,1fr) 210px;gap:16px}.surface{padding:24px}.scoreboard{padding:23px 19px}.sheet-grid{grid-template-columns:1fr}.sheet{padding:22px;display:grid;grid-template-columns:50px 1fr;column-gap:14px}.sheet-number{grid-row:1/4;margin:0}.sheet h3{margin-bottom:8px}.sheet p{margin-bottom:15px}.sheet .primary{width:max-content}}
@media(max-width:620px){.topbar{padding:18px 20px}.brand{font-size:20px}.brand-caption{display:none}main{padding:27px 16px 16px}.intro{margin-bottom:24px}.intro-note{display:none}.mode-nav{gap:4px;justify-content:space-between}.mode-nav button{font-size:14px;padding:11px 12px;gap:7px}.nav-num{display:none}.game-grid{grid-template-columns:1fr}.scoreboard{grid-row:1;display:flex;align-items:center;gap:16px;padding:14px 18px;border-radius:13px}.scoreboard .tag{font-size:11px}.score{font-size:31px;margin-top:4px}.score span{font-size:12px}.score-stats{gap:20px;margin:0 0 0 auto;padding:0;border:0;font-size:12px}.score-stats strong{font-size:17px;margin-top:2px}.sequence-label,.sequence,.scoreboard-note{display:none}.surface{padding:22px 18px;border-radius:13px}h2{font-size:23px}.scenario{font-size:16px}.choice{padding:13px 11px;font-size:15px;gap:10px}.choice-id{width:30px;height:30px}.flash-card{min-height:330px;padding:28px 22px}.card-toolbar .select-label{width:100%;justify-content:space-between}.card-actions{justify-content:center}.card-actions .actions{justify-content:center}.sheet{display:block}.sheet-number{font-size:25px;margin-bottom:14px}.sheet .primary{width:100%}footer{display:block}footer span{display:block;margin-bottom:5px}.keyboard-note{display:none}.content-note{font-size:14px}.finish-score{font-size:64px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.topbar,.mode-nav,.intro,#content-note,footer,.actions,.card-toolbar,.card-actions,.keyboard-note{display:none}body{background:white}main{padding:0;max-width:none}.surface,.sheet{border:0;box-shadow:none}.game-grid{display:block}.scoreboard{display:none}.reference-list{display:block}.reference-list details{display:block}}
