/* Readability and narrow-screen repairs; preserve the tissue world. */
.pixel-icon{min-width:44px;min-height:44px}.stage-disclaimer{font:12px/1.4 var(--body);color:#d2dedb}.histogram-caption,.mode-note,.recap-edition,.editorial-score-note{font-size:14px!important}.round-review h3{font-size:22px}.round-review .example-list{font-size:16px}.recap-left>h2{font-family:var(--display);font-size:160px;line-height:.8;margin:18px 0}.patient #prompt:is(h1,h2){font-family:var(--display);line-height:1.05}.patient #prompt:is(h2){font-size:42px}.result-actions .text-button,.result-actions .text-link{min-height:44px;display:inline-flex;align-items:center;padding:8px}.example-list li{gap:16px}.tiny{font-size:13px!important}
@media(max-width:640px){.site-header{gap:4px;padding:0 8px}.brand{font-size:28px;gap:4px;flex-shrink:0}.brand small{font-size:8px}.header-actions{gap:2px;flex-shrink:1;min-width:0}.header-actions>.pass-link{display:none!important}.header-actions>.pixel-icon{width:44px!important;height:44px;min-width:44px;flex:0 0 44px}.pixel-icon svg{width:20px;height:20px}.stage-bottom{padding-bottom:12px}.stage-disclaimer{font-size:12px!important;max-width:340px;margin:5px auto 0}.stage-modes{gap:4px;flex-wrap:wrap}.stage-modes a{min-height:44px;font-size:18px;padding:7px 9px}.recap-left>h2{font-size:110px}.recap-streak{font-size:17px}.round-histogram span{font-size:17px}.result-actions{gap:5px}.pass-nudge p{font-size:14px!important}.example-list{font-size:16px}.intro-controls .toggle{font-size:16px}.patient #vocab-note{font-size:13px}.site-footer{font-size:14px}}
@media(max-width:360px){.brand{font-size:25px}.pixel-vial{width:9px}.site-header{gap:2px}.header-actions{gap:0}.stage-modes a{font-size:16px;padding-inline:7px}}
.content-nav{display:flex;gap:8px 18px;flex-wrap:wrap;max-width:1100px;margin:18px auto;padding:0 24px;font:17px/1.5 var(--body)}.content-nav a{min-height:44px;display:inline-flex;align-items:center}.breadcrumbs{max-width:1100px;margin:16px auto;padding:0 24px;font:14px/1.7 var(--body)}.access-options{font:16px/1.5 var(--body);margin:12px auto;max-width:480px}.access-options label{display:block;margin:8px}.easy-read .intro,.easy-read .patient,.easy-read .complete{font-family:var(--body)}.easy-read .patient #prompt{font-family:var(--body);font-size:clamp(27px,4vw,40px);line-height:1.2}.easy-read .patient p,.easy-read .example-list,.easy-read #answer{font-size:18px!important}.easy-read .intro p{font-size:17px!important}.population-bins{display:flex;flex-wrap:wrap;gap:10px;padding:0;list-style:none;font:14px/1.5 var(--body)}#population-score{font:15px/1.5 var(--body);margin:12px 0}.answer-suggestion{font:16px/1.6 var(--body);margin:16px auto;max-width:500px}.sync-panel{margin:32px 0}.sync-panel input{display:block;width:100%;max-width:500px;min-height:44px;margin:10px 0}#sync-key{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:var(--panel);font:16px/1.6 monospace}.game-explainer{position:relative}.intro-disclosure{font-size:14px!important}.reveal .accepted-label{font-size:15px!important}
@media(max-width:640px){.access-options{font-size:14px}.access-options summary{min-height:44px}.intro-facts{font-size:14px!important}.intro-disclosure{font-size:13px!important}.content-nav{padding:0 16px;font-size:16px}.breadcrumbs{padding:0 16px}.easy-read .patient #prompt{font-size:27px}.reveal{padding-bottom:70px}}
@media(max-width:640px){.med-stage{height:calc(100svh - 54px);min-height:650px}.game-page>.site-header{height:54px}.game-page #main>.breadcrumbs{display:none}.game-page:has(.breadcrumbs) .access-options:before{content:'Practice and learning options';display:block;color:var(--muted);font-size:14px}.patient:not(.revealed)>#game-error{font-size:14px;line-height:1.4;padding-right:0;top:calc(var(--answer-top) + 80px)}.patient:not(.revealed)>#game-error:not([hidden])+#restore-round{font-size:14px;top:calc(var(--answer-top) + 125px)}}
@media(max-width:360px){.brand{font-size:23px}.brand small{font-size:6px;margin-left:2px}.site-header{padding-inline:6px}}
.game-brand-title{display:block;font:24px/1.2 var(--display);letter-spacing:.08em;color:var(--mint);margin-bottom:6px}.intro h1 .game-brand-title{color:var(--mint)}@media(max-width:640px){.game-brand-title{font-size:19px}}
.intro-controls{flex-wrap:wrap}.intro-controls .study-toggle{width:100%;justify-content:center;margin-top:8px}.study-toggle input{flex-shrink:0}@media(max-width:640px){.intro-controls .study-toggle{font-size:13px;letter-spacing:.02em;min-height:36px;margin:0}}
#restore-notice{max-width:1068px;margin:16px auto}.intro .practice-summary{font:17px/1.4 var(--body);color:var(--muted);margin:8px 0 16px}.intro-controls .toggle{display:flex;align-items:center;min-height:44px}.intro-controls .study-toggle{font-size:19px}.intro-controls .study-toggle input{width:34px;min-width:34px}@media(max-width:640px){.intro .practice-summary{font-size:14px;margin:7px 0 12px}.intro-controls .study-toggle{font-size:18px;min-height:44px}#restore-notice{margin:16px}.intro-controls .secondary{min-height:44px}}
@media(max-width:360px){.intro:has(.study-toggle) h1{font-size:32px}.intro-controls{row-gap:8px}}
@media(min-width:641px) and (max-height:500px){.intro h1{font-size:40px;margin-bottom:6px}.intro .game-brand-title{font-size:18px;margin-bottom:4px}.edition-meta{font-size:16px;gap:12px;margin-bottom:8px}.edition-meta time{font-size:16px}.intro .practice-summary{font-size:14px;margin:6px 0 8px}.intro-controls{gap:8px}.intro-controls .primary,.intro-controls .secondary{font-size:24px;min-height:44px;padding:8px 12px}.intro-controls kbd{display:none}.intro-controls .toggle{font-size:16px;letter-spacing:.02em;min-height:44px}.intro-controls .study-toggle{width:auto;margin:0;font-size:16px}}

.account-panel{padding:22px 0;border-bottom:1px solid var(--line);margin-bottom:24px}.account-panel p{overflow-wrap:anywhere}.google-signin{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:1px solid #747775;border-radius:4px;background:#fff;color:#1f1f1f;font:500 15px Arial,sans-serif;text-decoration:none}.google-signin:focus-visible{outline:3px solid #2e78cf;outline-offset:3px}.google-signin[hidden]{display:none}#answer-check-status{font:14px/1.4 var(--body);color:var(--ink);margin:8px 0;max-width:34rem}.answer-controls input:disabled{opacity:.8}

.answer-form #vocab-note{position:static;width:auto;height:auto;overflow:visible;clip:auto;margin:8px 0 0;padding:0;font:13px/1.35 var(--body);color:#c3d4cf}.answer-form #vocab-note[hidden]{display:none}#answer-check-status{margin:8px 0 0;color:#d0dfda}.daylight .answer-form #vocab-note,.daylight #answer-check-status{color:#214c43}

.google-signin:hover{color:#1f1f1f;background:#f2f4f4}.answer-form #vocab-note{font-size:14px}

@media(max-width:640px){.intro-controls .primary{min-height:44px}}
@media(max-width:360px){.edition-meta{flex-wrap:nowrap;gap:7px;font-size:12px}.edition-meta time{font-size:12px;white-space:nowrap}.edition-meta span{white-space:nowrap}.edition-meta span:last-child{width:auto}.edition-meta b{font-size:12px}}

@media(max-width:640px){.pass-price{order:-1;border-top:0;border-bottom:1px solid var(--line);padding:0 0 24px}.pass-panel{margin-top:18px}}

/* The mobile header must expose the account and paid upgrade without relying on an icon. */
.account-strip{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-height:44px;padding:5px 20px;border-bottom:1px solid var(--line);background:var(--paper);font:14px var(--body)}.account-strip a{min-height:32px;display:inline-flex;align-items:center}.account-strip [data-pass-link]{font-weight:700}.pass-account{margin:18px 0}.pass-account p{font-size:15px}.checkout-steps{font-size:14px;line-height:1.5;padding-left:20px;margin:14px 0}.legacy-recovery{margin:24px 0}.legacy-recovery summary,.sync-panel>summary{cursor:pointer;font-size:16px}.account-access{padding-bottom:20px}.round-upgrade{display:grid;gap:10px;margin-top:20px;font-size:14px}.round-upgrade .primary{font-size:16px}.in-round .account-strip{display:none}@media(max-width:640px){.account-strip{justify-content:space-between;gap:8px;padding:4px 12px;font-size:13px}.pass-panel{padding:22px}.pass-price{padding-top:0}.page-title{margin-bottom:20px}}

.pass-price #buy-pass{width:100%;white-space:normal;font-size:16px;min-height:48px}.pass-price .checkout-steps{margin:12px 0 0;font-size:12px}.pass-price .pass-account{margin:12px 0}.pass-account p{margin:0;font-size:14px}.pass-price #purchase>.notice{font-size:14px}.pass-price #payment-message:empty{display:none}

.pass-page .content-nav{display:none}.pass-page main{padding-top:4px}.pass-page .breadcrumbs{margin:8px 0}.pass-page .page-title h1{font-size:clamp(30px,5vw,40px);line-height:1.15;margin-bottom:12px}.pass-page .page-title>p{font-size:16px;line-height:1.5}.pass-page .pass-panel{margin-top:12px}

.playing-round .account-strip{display:none}

/* Clinical packs: real chapters and account progress. */
.pack-library{margin-top:2rem}.pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.pack-card{padding:1.1rem;border:1px solid #50766b;border-radius:12px;background:var(--panel,#12302b)}.pack-card h3{margin-top:0}.pack-card ol{padding:0;list-style:none}.pack-card li{margin:1rem 0}.chapter-link{display:flex;flex-direction:column;gap:.35rem;padding:.7rem;border:1px solid #638e7c;border-radius:6px;min-height:44px}.chapter-link small,.chapter-progress{font-size:.85rem}.chapter-progress{display:block;margin-top:.3rem}.pack-result{font-family:Atkinson,sans-serif;line-height:1.6}.pack-result a{display:inline-flex;margin-top:.5rem}.pack-library .tiny{line-height:1.6}@media(max-width:800px){.pack-grid{grid-template-columns:1fr}}

.clinical-offer{max-width:1060px;margin:1.5rem auto;padding:1.3rem;border:1px solid #638e7c;border-radius:12px;background:var(--panel,#12302b);font-family:Atkinson,sans-serif;line-height:1.6}.clinical-offer h2{margin:.2rem 0 .8rem}.offer-label{font-size:.85rem;text-transform:uppercase;letter-spacing:.07em;margin:0}.clinical-offer ul{padding-left:1.2rem}.clinical-offer nav,.round-upgrade nav{display:flex;gap:.65rem;flex-wrap:wrap}.round-upgrade h2{font-family:Atkinson,sans-serif;font-size:1.2rem;margin:.5rem 0}.round-upgrade p{font-family:Atkinson,sans-serif;font-size:.95rem;line-height:1.5;margin:.65rem 0}.round-upgrade{max-width:100%;overflow-wrap:anywhere}.round-upgrade nav a{min-height:44px}.account-strip a:last-child{text-align:right}@media(max-width:500px){.clinical-offer{margin:1rem .75rem;padding:1rem}.clinical-offer nav a,.round-upgrade nav a{width:100%;box-sizing:border-box}.account-strip{align-items:center}.account-strip a:last-child{max-width:65%}}

.email-signin{border:1px solid var(--line);padding:1rem;margin:1rem 0;border-radius:10px}.email-signin form{display:grid;gap:.65rem}.email-signin input:not([type=checkbox]){width:100%;box-sizing:border-box;min-height:44px;font-size:16px}.email-actions{display:flex;gap:.6rem;flex-wrap:wrap}.email-signin [role=status]{overflow-wrap:anywhere}.show-password{display:flex;gap:.5rem;align-items:center}.email-signin p{line-height:1.5}@media(max-width:500px){.email-actions button{width:100%}}

.payment-actions{display:grid;gap:10px}.payment-actions button{width:100%;white-space:normal;font-size:16px;min-height:48px}.payment-actions small{line-height:1.4;max-width:42ch}

.prose figure{margin:24px 0}.prose figure img{display:block;max-width:100%;height:auto;border:1px solid var(--line)}.prose figcaption{font-size:14px;line-height:1.5;margin-top:8px;color:var(--muted)}
/* Keep the utility controls visible on compact tablet and phone landscape widths. */
@media(min-width:641px) and (max-width:800px){.header-actions>.pass-link{display:none}.header-actions{gap:14px}}
/* Preserve readable clinical labels against the day scene's pale upper wall. */
.daylight .intro>p{color:#183e3b!important}.daylight .intro h1>span,.daylight .intro h1 .game-brand-title{color:#174c47}.daylight .intro-controls .secondary{color:#123b38;background:#d9e9df;border-color:#385a55}
/* Clinical library: one mode choice, chapter progress and contextual recovery. */
.pack-library{max-width:1100px;margin:2rem auto 3rem}.pack-library h2{margin-bottom:.65rem}.library-next{display:inline-flex;margin:0 0 1.25rem}.library-mode{display:flex;align-items:center;gap:1rem;margin:0 0 1.5rem;font-size:16px}.library-mode select{font-family:var(--body);background:#173034;color:var(--ink);border:1px solid #789e94;min-height:44px;padding:8px 12px;max-width:100%}.pack-card{border-radius:0;background:#10282c;border-color:#52736c;padding:20px}.pack-card p{font-size:16px;line-height:1.6;margin:12px 0 22px}.pack-card h3{font-size:32px}.pack-card li{padding:15px 0;margin:0;border-top:1px solid #3d5d56}.chapter-link{border:0!important;background:transparent!important;padding:0!important;min-height:44px;display:flex;flex-direction:column;gap:6px}.chapter-link>span{font-size:18px}.chapter-link small{font-size:14px;text-decoration:none}.chapter-progress{display:block;margin-top:8px;color:#adcabe;font-size:14px;line-height:1.5}.chapter-actions{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px}.chapter-actions:empty{display:none}.chapter-actions a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}.chapter-actions .review-missed{font-weight:700;color:#e6d59c}.pass-owner .pass-panel{grid-template-columns:1fr;max-width:850px;margin:auto}.pass-owner .pass-panel>div:first-child,.pass-owner .pass-price>strong,.pass-owner .pass-price>span,.pass-owner .checkout-steps{display:none}.chapter-result-options{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 18px}.chapter-result-options .secondary{font-size:24px}
/* Keep long answer sets usable while preserving normal page scrolling. */
.patient.revealed{max-height:min(calc(100% - 90px),calc(100svh - 145px));overflow-y:auto;scrollbar-width:thin;scrollbar-color:#6b9d8e #10272a;overscroll-behavior-y:auto}.reveal .reveal-prompt{font:700 17px/1.45 var(--body);color:#e2eee7;margin-bottom:18px}.reveal-actions{position:sticky;bottom:-1px;background:#0b1b1e;padding:12px 0 5px;z-index:2}.reveal-actions .primary{width:100%;font-size:28px}.reveal .reviewed-set[open]{margin-bottom:8px}.study-mode #hud-clock svg{display:none}.study-mode #hud-timer{font:24px/1 var(--display);min-width:54px}.study-mode .patient .hint{display:block;font:15px/1.55 var(--body);background:#102c2f;color:#c4dbd1;border:1px solid #4c7167;padding:10px 14px;margin-top:16px;max-width:568px}.study-mode .patient .hint summary{font-size:15px;cursor:pointer}.study-mode .patient .hint p{margin:8px 0 0}.study-mode .patient-meta{letter-spacing:.08em}.study-mode .bed-hud .done{background:#285e51;border-color:#6aa995}.study-mode .reveal-head .tier-badge{font-family:var(--display);font-size:30px;background:none;padding:0}.study-mode .complete .study-result-title{font-size:clamp(55px,7vw,94px);line-height:1;margin-bottom:20px}.study-mode .recap-list li{align-items:start}.study-mode .recap-list li>span:nth-child(2){font-size:16px;line-height:1.5}.study-mode .recap-list li>b{font-size:14px}.study-mode .complete .round-review .result-score{display:none}.study-mode .reveal .example-list{font-size:16px;line-height:1.6}.daylight.study-mode .patient .hint{background:#d3e4da;color:#133d37}.study-mode .complete .mode-note{font-size:16px}
@media(max-width:640px){.pack-library{margin:2rem 16px}.pack-grid{gap:20px}.pack-card{padding:18px}.library-mode{align-items:start;flex-direction:column;gap:8px}.library-mode select{width:100%}.patient.revealed{max-height:min(calc(100% - 80px),calc(100svh - 130px))}.reveal .reveal-prompt{font-size:15px;line-height:1.5}.reveal-actions .primary{font-size:25px}.study-mode .patient .hint{font-size:14px;line-height:1.45;text-align:left;margin-top:12px}.study-mode .patient-meta{font-size:15px}.study-mode #hud-timer{font-size:22px;min-width:45px}.chapter-result-options{gap:10px}.chapter-result-options .secondary{font-size:23px}.study-mode .recap-list li>span:nth-child(2){font-size:15px}}

.pass-owner .pack-intro{display:none}

.study-mode .tier-badge{color:#b6ead9}.study-mode .tier-badge:before{background:#437f6c}
/* Completed rounds use normal page scrolling so long recaps and teaching notes stay reachable. */
.phase-complete .med-stage{height:auto;min-height:calc(100svh - 64px);overflow:hidden}.phase-complete #game{position:relative;inset:auto}.phase-complete .world-ruler{display:none}.phase-complete .complete,.phase-complete .complete.review-open{top:0;max-height:none;overflow:visible;padding:32px 20px 40px;margin:0 auto}.phase-complete .stage-bottom,.game-page.phase-complete:has(.complete.review-open) .stage-bottom{position:relative;display:block}.phase-complete .recap-right{min-width:0}.phase-complete .complete .round-review{scroll-margin-top:32px}
@media(max-width:640px){.phase-complete .med-stage{min-height:calc(100svh - 54px)}.phase-complete .complete,.phase-complete .complete.review-open{margin:0 20px;padding:28px 0 32px}.phase-complete .recap-right{width:100%}}

.patient:not(.revealed)>#game-error{position:static;transform:none;width:100%;max-width:568px;margin:12px auto 0;padding:8px 10px;border:1px solid #79554f;background:#201e21;text-align:left}.patient:not(.revealed)>#game-error:not([hidden])+#restore-round{position:static;transform:none;margin:8px auto;min-height:44px}.daylight .patient:not(.revealed)>#game-error{color:#6c231b;background:#f5ddd5;border-color:#ad7363}
@media(max-height:500px) and (max-width:900px){.has-run:not(.round-complete) .breadcrumbs{display:none}.has-run:not(.round-complete) .brand>span{display:none}.has-run:not(.round-complete) .patient.revealed{top:8px;max-height:calc(100svh - 76px)}}

/* Include actual navigation height in the playable viewport; short screens can scroll. */
.game-page:not(.phase-complete) .med-stage{height:calc(100svh - var(--stage-page-top,64px))}
.med-stage:has(.intro) .pixel-needle{top:max(calc(46% - 140px),var(--intro-safe-bottom,280px))}
