/* Foldi's shared interface language. Scene artwork and game geometry stay local. */
@font-face{font-family:Nunito;src:url('/fonts/nunito-bb55a5ca5c20.ttf') format('truetype');font-style:normal;font-weight:200 1000;font-display:swap}
:root{
 --foldi-paper:#faf7ee;--foldi-surface:#fffdf7;--foldi-ink:#293c32;--foldi-muted:#58695d;
 --foldi-green:#355c48;--foldi-hover:#294c39;--foldi-soft:#edf0e4;--foldi-line:#dcded0;
 --foldi-focus:#315c9c;--foldi-revise:#8f502d;--foldi-revise-surface:#fbf0e1;
 --foldi-control-radius:10px;--foldi-panel-radius:16px;--foldi-content:1240px;--foldi-gutter:24px;
 --foldi-space-1:4px;--foldi-space-2:8px;--foldi-space-3:12px;--foldi-space-4:16px;--foldi-space-6:24px;--foldi-space-8:32px;--foldi-space-12:48px;--foldi-space-16:64px;
 --green:var(--foldi-green);--ink:var(--foldi-ink);--muted:var(--foldi-muted);--line:var(--foldi-line);
 font-family:Nunito,system-ui,sans-serif;font-synthesis:none;
}
body{font-family:Nunito,system-ui,sans-serif;font-weight:500;color:var(--foldi-ink);background:var(--foldi-paper)}
button,input,select,textarea{font-family:inherit}
h1,h2,h3{color:var(--foldi-ink);font-weight:850;letter-spacing:-.025em;text-wrap:pretty}
p{line-height:1.5}
body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--foldi-focus);outline-offset:3px}
/* Route announcements focus headings, not a decorative box around the page. */
body :is(main,h1,h2)[tabindex="-1"]:focus{outline:none}
body :is(button,input,select,textarea):disabled{opacity:.55;cursor:not-allowed;filter:none}
body :is(.primary,.friend-play-action,.button.primary){background:var(--foldi-green);color:#fffdf5;border:1px solid var(--foldi-green);border-radius:var(--foldi-control-radius);min-height:48px;padding:12px 20px;font-size:16px;font-weight:800;line-height:1.25;text-decoration:none;text-align:center;box-shadow:none}
body :is(.primary,.friend-play-action,.button.primary):hover:not(:disabled){background:var(--foldi-hover);color:#fffdf5;border-color:var(--foldi-hover);filter:none}
body :is(.button.secondary,.button.outline,button.secondary,.undo){background:var(--foldi-surface);color:var(--foldi-green);border:1px solid #aab7a8;border-radius:var(--foldi-control-radius);min-height:44px;padding:10px 16px;font-size:16px;font-weight:800;line-height:1.3;box-shadow:none}
body :is(.button.secondary,.button.outline,button.secondary,.undo):hover:not(:disabled){background:var(--foldi-soft);border-color:var(--foldi-green);filter:none}
body :is(.quiet,.text-button){color:var(--foldi-green);font-size:14px;line-height:1.4;min-height:44px}
body select{appearance:auto;-webkit-appearance:auto;min-height:48px;padding:10px 12px;font-size:16px;color:var(--foldi-ink);background-color:var(--foldi-surface);border:1px solid #aab7a8;border-radius:var(--foldi-control-radius)}
body :is(.filter-fields select,.course-picker-label select){appearance:auto;font-size:16px;min-height:48px}
body :is(.foldi-kicker,.eyebrow){font-size:12px;font-weight:800;line-height:1.4;letter-spacing:.025em;color:var(--foldi-muted);text-transform:none}
body :is(.quiet-note,.theme-note,.scene-help,.grownup-recovery,.earlier-scenes,.foldi-help){font-size:14px;line-height:1.5;color:var(--foldi-muted)}
body :is(.foldi-game-header,.foldi-browse-header) :is(a,button){font-weight:800}
.foldi-game-header .game-identity>span{border:0;padding-left:0;font-weight:800}
.foldi-game-header .game-identity{gap:20px}
.foldi-game-header .brand{margin-inline:4px}
.foldi-browse-header #play-site-nav .foldi-account{border-left:0}
body[data-game] footer{font-size:14px;color:var(--foldi-muted);line-height:1.5}
body[data-game] footer summary{font-size:14px}
body[data-game] main>.intro h1{font-size:40px;line-height:1.15;font-weight:850;letter-spacing:-.025em}
body[data-game] main>.intro :is(p,.lead,.intro-copy){font-size:16px;line-height:1.5}
body[data-game] main>.intro .eyebrow{font-size:12px}
body[data-game] :is(.scene-hint,#scene-hint,.tray-help,.gentle-note){font-size:14px;line-height:1.5;color:var(--foldi-muted)}
body dialog{background:var(--foldi-surface);color:var(--foldi-ink);border-color:var(--foldi-line);border-radius:var(--foldi-panel-radius);padding:24px}
body dialog :is(p,li,dd,label){font-size:16px;line-height:1.55}
body dialog h2{font-size:28px;line-height:1.2}
/* A single next step, with paper/drawing continuation disclosed on request. */
body[data-game] .theme-more{width:100%;max-width:680px;text-align:left;border:0;background:transparent;margin:24px 0 0;padding:0;box-shadow:none}
body[data-game] .theme-more summary{font-size:14px;font-weight:800;color:var(--foldi-green);min-height:44px}
body[data-game] .theme-more a{font-size:14px;min-height:44px;margin:0 12px 0 0;padding:8px 0}
body[data-game] .theme-more p{font-size:14px;line-height:1.5;color:var(--foldi-muted);margin:8px 0}
/* Whole-page rhythm: the activity is primary; paper and parent material follow. */
.friend-hub-heading h1{font-size:44px;font-weight:850;line-height:1.15}
.friend-hub-heading>p{max-width:58ch}
.friend-choice strong{font-weight:800}
.friend-choice[aria-pressed=true] strong{text-decoration:none}
.friend-adventure{border-radius:var(--foldi-panel-radius);gap:32px}
.friend-adventure-art{object-fit:contain;object-position:center;filter:none;transform:none}
.friend-adventure h2{font-size:34px;font-weight:850}
.friend-adventure-copy .foldi-kicker{font-size:12px;letter-spacing:.025em;text-transform:none}
.friend-intro,.friend-reading,.friend-progress,.friend-access{font-size:14px;line-height:1.5}
.friend-reading{margin-bottom:8px}.friend-progress{margin-bottom:16px}
.launch-section-heading h2{font-size:30px;line-height:1.2}
.launch-section-heading .foldi-kicker{display:none}
.launch-deeper article{background:transparent;border-radius:0;padding:0;gap:24px}
.launch-deeper-grid{gap:48px}
.launch-deeper .paper-example,.launch-deeper .draw-example{max-width:150px;justify-self:center}
.launch-deeper h3{font-size:24px;line-height:1.2}
.launch-deeper p{font-size:16px;line-height:1.5}
.launch-deeper .launch-capability{font-size:14px;line-height:1.5;color:var(--foldi-muted)}
.launch-parent{padding-top:24px;padding-bottom:48px;gap:32px}
.launch-parent h2{font-size:24px}.launch-parent p{font-size:16px;line-height:1.6}
/* These paper surfaces keep their own text colors when shown in a themed reader. */
#homeView {color-scheme:light;}
#homeView :is(.launch-parent,.launch-deeper) p:not(.launch-capability,.launch-save-note),
.site-footer strong, #previewDialog :is(#previewDescription,dd),
#helpDialog :is(p,li) {color:var(--foldi-ink,#293c32);}
#homeView .launch-save-note, .site-footer p,
#previewDialog :is(.quiet-note,.eyebrow,dt), #helpDialog .quiet-note {color:var(--foldi-muted,#58695d);}
body .page-heading h1,body #libraryTitle,body #workbookView h1{font-size:44px;line-height:1.15;letter-spacing:-.025em}
body :is(.section-heading,.browse-heading) h2{font-size:30px;line-height:1.2}
body .activity-card{border:0;border-radius:var(--foldi-panel-radius);box-shadow:none;background:var(--foldi-surface)}
body .activity-card .card-copy{padding:20px;gap:8px}
body .activity-card h3{font-size:22px;line-height:1.25;margin-bottom:8px}
body .activity-card .card-meta{font-size:14px;color:var(--foldi-muted);margin-bottom:8px}
body .activity-card .card-readiness{font-size:14px!important;line-height:1.5!important;color:var(--foldi-muted)!important;background:transparent;border:0;padding:0;margin:0 0 16px!important}
body .card-actions{gap:12px;border:0;padding-top:0}
body .moment-card{box-shadow:none;border:0;background:var(--foldi-surface)}
body .moment-card:hover{transform:none}
body .moment-meta{font-size:14px;color:var(--foldi-muted)}
body .site-footer .quiet-note{font-size:14px}
/* Pip: keep picture-clue frames, remove decorative copy boundaries. */
body[data-game=window-lab] .panel-head h1{font-size:40px;line-height:1.15;font-weight:850}
body[data-game=window-lab] :is(.panel-head>p,.panel-head .intro){font-size:18px;line-height:1.5}
body[data-game=window-lab] :is(.scene-caption,.scene-caption p,.answer-caption){color:var(--foldi-muted);font-size:14px}
/* Momo: the letter board is the surface; its wrapper is not another card. */
body[data-game=word-hunt] .board-panel{border:0;background:transparent;padding:0;box-shadow:none;border-radius:0}
body[data-game=word-hunt] .selection-bar{background:var(--foldi-soft);padding:8px 12px;min-height:56px;margin-bottom:12px}
body[data-game=word-hunt] .selection-bar>span{font-size:12px;color:var(--foldi-muted);text-transform:none;letter-spacing:0}
body[data-game=word-hunt] .selection-bar .quiet{font-size:14px}
body[data-game=word-hunt] .board-top>span{font-size:12px;color:var(--foldi-muted)}
body[data-game=word-hunt] .targets{border:0;padding:0}
body[data-game=word-hunt] .targets>summary{font-size:18px;font-weight:800;line-height:1.35;min-height:48px;margin-bottom:8px;color:var(--foldi-ink)}
body[data-game=word-hunt] .targets:not([open])>summary{margin-bottom:0}
body[data-game=word-hunt] .targets>h2{font-size:18px}
body[data-game=word-hunt] .clue-guidance{font-size:14px;color:var(--foldi-muted);line-height:1.5}
body[data-game=word-hunt] .modes{border:0;background:var(--foldi-soft);padding:4px;border-radius:var(--foldi-control-radius)}
body[data-game=word-hunt] .modes button{font-size:14px;min-height:44px;border-radius:8px}
body[data-game=word-hunt] .modes [aria-pressed=true]{background:var(--foldi-green);color:#fffdf5;box-shadow:none}
body[data-game=word-hunt] .target{background:transparent;border:1px solid transparent;border-radius:var(--foldi-control-radius);min-height:48px;padding:8px}
body[data-game=word-hunt] .target:hover{background:var(--foldi-soft)}
body[data-game=word-hunt] .target[aria-pressed=true]{background:var(--foldi-soft);border-color:var(--foldi-green)}
body[data-game=word-hunt] .target.found{background:var(--foldi-soft)}
body[data-game=word-hunt] .target :is(.length,.clue){color:var(--foldi-muted);font-size:14px;line-height:1.45}
body[data-game=word-hunt] .target .word{font-size:16px;font-weight:800;color:var(--foldi-ink)}
body[data-game=word-hunt] .hint-panel{border:0;border-radius:var(--foldi-panel-radius);background:var(--foldi-soft);padding:16px}
body[data-game=word-hunt] .hint-panel p,body[data-game=word-hunt] #instructions,body[data-game=word-hunt] .feedback p{font-size:14px;line-height:1.5;color:var(--foldi-muted)}
body[data-game=word-hunt] .feedback{border:0;padding:12px 0 0;min-height:80px}
body[data-game=word-hunt] .feedback.retry{color:var(--foldi-revise)}
body[data-game=word-hunt] .feedback.found strong{color:var(--foldi-green)}
body[data-game=word-hunt] .scene-panel .scene{border:0;box-shadow:none}
body[data-game=word-hunt] :is(#reaction,#scene-count){font-size:14px;color:var(--foldi-muted)}
body[data-game=word-hunt] :is(.hint-actions button,#focus-clue,#use-clue,#board-pan button){font-size:14px;line-height:1.5}
body[data-game=word-hunt] .hint-actions button{color:var(--foldi-green);border-radius:var(--foldi-control-radius)}
body[data-game=word-hunt] :is(.theme-nav small,#page-choices small){font-size:12px;color:var(--foldi-muted)}
/* Mathilde: the goals remain inspectable; result copy is stated once. */
body[data-game=rain-lab] #goal-details{border:0;background:transparent;padding:0 0 8px}
body[data-game=rain-lab] .compact-goal{font-size:14px}
body[data-game=rain-lab] .goal-detail-label{display:none}
body[data-game=rain-lab][data-mode=done] #friend-status{display:none}
body[data-game=rain-lab] :is(#garden-status,.tray-help,.stock small){font-size:14px;line-height:1.5;color:var(--foldi-muted)}
body[data-game=rain-lab] .result{border:0;padding-top:16px;min-height:0}
body[data-game=rain-lab] .tray{border:0;background:transparent;box-shadow:none;padding:0}
body[data-game=rain-lab] #accessible-tools{border:0;padding-top:16px}
body[data-game=rain-lab][data-mode=idle] .test-track{visibility:hidden}
body[data-game=rain-lab] .result>div>p{font-size:16px;line-height:1.5;color:var(--foldi-muted)}
body[data-game=rain-lab] .result-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
body[data-game=rain-lab] .result-links>*{font-size:14px;min-height:44px}
/* Ankie/Zippy/Dot retain their scene materials and game-specific scales. */
body[data-game=ankie-show] :is(.control-note,.control-label small,#reaction p){font-size:14px;color:var(--foldi-muted);line-height:1.5}
body[data-game=pizza-lab] :is(.prep-caption p,.friend-says,.comparison span,.ingredient-choices small,.theme-more p){font-size:14px;color:var(--foldi-muted);line-height:1.5}
body[data-game=pizza-lab] .ingredient-choices strong{font-size:14px;font-weight:800}
body[data-game=pizza-lab] .comparison li{border:0;background:transparent;padding:8px 0}
body[data-game=pizza-lab] .delivery-comparison{border:0;padding-top:16px}
body[data-game=pizza-lab] .comparison li.mismatch{background:var(--foldi-revise-surface);padding-inline:8px;border-radius:10px}
body[data-game=pizza-lab] .result-cards article{border:0;background:var(--foldi-surface);border-radius:16px;padding:20px}
body[data-game=pizza-lab]:not([data-phase=orders]) main>.intro h1{font-size:28px}
body[data-game=dot-cipher] .episode-heading h1{font-size:36px;line-height:1.15;font-weight:850}
body[data-game=dot-cipher] .postcard-top h2{font-size:26px;line-height:1.2;font-weight:800}
body[data-game=dot-cipher] .feedback{border:0;background:var(--foldi-soft);border-radius:10px;font-size:16px;line-height:1.5;padding:12px 16px}
body[data-game=dot-cipher] .feedback.error{background:var(--foldi-revise-surface);color:var(--foldi-revise)}
body[data-game=dot-cipher] .feedback.conflict{background:var(--foldi-revise-surface);color:var(--foldi-revise)}
/* Selection is a shared semantic role; letter marks and postcard paper are not. */
body :is(#scenes,#customers,.theme-nav,#page-choices,#stage-nav,.course-nav) [aria-current],body :is(.piece-tabs,.pantry-tabs,.ingredient-choices) [aria-pressed=true]{background:var(--foldi-soft);border-color:var(--foldi-green);color:var(--foldi-ink);box-shadow:inset 0 0 0 1px var(--foldi-green)}
body[data-game=rain-lab] .course-nav a[aria-current] .step-symbol{background:var(--foldi-green);color:#fffdf5}
body[data-game] :is(canvas,#scene):focus-visible{outline-offset:-3px}
body[data-game=rain-lab] :is(.stock-piece small,.tray-heading span,.goal-detail,.picture-goal strong){font-size:14px;color:var(--foldi-muted);line-height:1.5}
body[data-game=rain-lab] .handle span{font-size:12px}
body[data-game=rain-lab] .course-nav small{font-size:12px}
body[data-game=ankie-show] :is(.range-ends,#landing-checks,#save-note){font-size:14px;color:var(--foldi-muted);line-height:1.5}
body[data-game=ankie-show] #reaction{border:0;padding-top:16px;margin-top:16px}
body[data-game=window-lab] #scenes small{font-size:12px;line-height:1.5;color:var(--foldi-muted)}
body[data-game=pizza-lab] :is(.request-item,.order-slip .request-item,.order-footnote,.chef-aside,.memory-count,.order-pace,.memory-note,.memory-reminder>span,.result-pizza>p,.comparison strong,.pantry-group legend,.view-order){font-size:14px;color:var(--foldi-muted);line-height:1.5}
body[data-game=pizza-lab] :is(.pantry-tabs button,.toolbar #back,.toolbar #undo){font-size:14px;min-height:44px}
body[data-game=pizza-lab] #customers small{font-size:12px;line-height:1.5;color:var(--foldi-muted)}
body[data-game=pizza-lab] .order-slip .slip-title h2{font-size:14px;line-height:1.4}
body[data-game=dot-cipher] :is(.reading-note,.primer small,.scraps p,.hint-count,.picker-note,.notebook-grid small,.postcard-tip,.episode-card small){font-size:14px;color:var(--foldi-muted);line-height:1.5}
body[data-game=dot-cipher] .word-number{font-size:12px;color:var(--foldi-muted)}
@media(max-width:1000px){
 .friend-hub-heading h1,body .page-heading h1,body #libraryTitle,body #workbookView h1{font-size:34px}
 .launch-section-heading h2,body :is(.section-heading,.browse-heading) h2{font-size:28px}
 .friend-adventure h2{font-size:30px}.launch-deeper-grid{gap:32px}
}
@media(max-width:700px){
 :root{--foldi-gutter:16px}
 .friend-hub-heading h1,body .page-heading h1,body #libraryTitle,body #workbookView h1{font-size:30px}
 .launch-section-heading h2,body :is(.section-heading,.browse-heading) h2{font-size:24px}
 .friend-adventure{gap:12px 16px;padding:16px}.friend-adventure h2{font-size:25px}
 .friend-intro,.friend-reading,.friend-progress,.friend-access{font-size:14px;margin:0}
 .friend-play-action{margin-top:4px}
 .launch-deeper article{padding:0;grid-template-columns:90px minmax(0,1fr);gap:20px}
 .launch-deeper h3{font-size:22px}.launch-deeper .launch-capability{font-size:14px}
 .launch-parent{gap:16px;padding-top:16px;padding-bottom:32px}.launch-parent h2{font-size:24px}
 .foldi-game-header .game-identity{gap:2px}
 .foldi-game-header .brand,.foldi-game-header .brand img{width:80px!important;height:44px!important}
 .foldi-game-header .game-identity>span{font-size:12px;line-height:1.2;max-width:120px}
 body[data-game] main>.intro h1,body[data-game=window-lab] .panel-head h1{font-size:30px}
 body[data-game] main>.intro :is(p,.lead,.intro-copy){font-size:16px}
 body[data-game] main>.intro .eyebrow{font-size:12px}
 body[data-game=word-hunt] .selection-bar{padding:6px 8px;min-height:48px}
 body[data-game=word-hunt] .selection-bar>span{display:none}
 body[data-game=word-hunt] .selection-bar strong{font-size:15px;letter-spacing:.02em}
 body[data-game=word-hunt] .target :is(.length,.clue){font-size:14px}
 body[data-game=word-hunt] .targets>h2{font-size:18px}
 body[data-game=ankie-show] .scene-column>.actions #roll{flex:1 1 100%;min-width:0}
 body[data-game=ankie-show] .scene-column>.actions>button:not(#roll){flex:1 1 0}
 body[data-game=rain-lab] .compact-goal{font-size:13px}
 body[data-game=rain-lab] .compact-goal{max-width:none;white-space:nowrap}
 body[data-game=rain-lab] #goal-details{padding:0 0 8px}
 body[data-game=dot-cipher] .episode-heading h1{font-size:30px}
 body[data-game=dot-cipher] .postcard-top h2{font-size:24px}
 body .activity-card .card-copy{padding:16px}
 body #workbookView .empty-state :is(.primary,a){display:flex;align-items:center;justify-content:center;width:100%;margin:12px auto 0;min-height:44px}
 body dialog{padding:20px}body dialog h2{font-size:24px}
}
@media(max-width:360px){.friend-adventure h2{font-size:23px}.launch-deeper article{grid-template-columns:72px minmax(0,1fr);gap:16px}.foldi-game-header>.all{padding-inline:6px;font-size:12px}.foldi-game-header nav>button{font-size:12px;padding-inline:6px}}
@media(prefers-reduced-motion:no-preference){
 .friend-choice,.friend-play-action,button.primary,.button.primary{transition:background-color .16s ease,border-color .16s ease}
 .friend-adventure{animation:foldi-reveal .16s ease-out}
 @keyframes foldi-reveal{from{opacity:.65}to{opacity:1}}
}
@media(prefers-reduced-motion:reduce){
 .friend-adventure,.friend-choice,.friend-play-action,.foldi-card,.moment-card,.button,button,.feedback{animation:none;transition:none;scroll-behavior:auto}
 .foldi-card:hover,.moment-card:hover{transform:none}
}
