/* Apple-design audit: predictable controls, readable type, restrained depth. */
.text-link{min-height:44px;display:inline-flex;align-items:center;text-align:left}
:root{--font:ui-rounded,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--press-response:100ms;--surface:rgba(255,255,255,.92)}
body{font-family:var(--font);font-size:1.0625rem;line-height:1.6}
button,input,select{font-family:inherit}
button,a{-webkit-tap-highlight-color:transparent}
.header{position:sticky;top:0;z-index:30;background:var(--surface);backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);box-shadow:0 6px 20px #19344908;min-height:6rem}
.brand{font-weight:800;letter-spacing:-.04em}
.hero h1{font-size:clamp(2.6rem,4.6vw,4.05rem);font-weight:800;letter-spacing:-.04em;line-height:1.08}
h2{font-size:2.1rem;letter-spacing:-.025em;font-weight:750;line-height:1.2}
h3{letter-spacing:-.015em;font-weight:700}
.hero p,.parent-copy>p,.offline-intro>p{font-size:1rem;line-height:1.8}
.eyebrow{font-size:.75rem;letter-spacing:.11em;font-weight:700}
.brand small{font-size:.5625rem}
.hero-note,.picture-label,.paper-note,.results-text{font-size:.8125rem}
.age-card b{font-size:1rem}.age-card small{font-size:.8125rem;line-height:1.6}
.age-label{pointer-events:none}
.card-body h3{font-size:1.35rem}.card-body p{font-size:.9375rem;line-height:1.65;min-height:3.3em}
.card-category{font-size:.75rem}.card-bottom,.card-bottom b{font-size:.875rem}
.download-meta,.license-button{font-size:.8125rem;line-height:1.6}
.download-card h3{font-size:1rem}.download-links a{font-size:.875rem}
.parent-facts b{font-size:.9375rem}.parent-facts span{font-size:.875rem}
.section-top>p,.footer-inner p{font-size:.875rem}
.desktop-nav{font-size:.9375rem}.text-link{font-size:.9375rem}
.button,.filter,.shelf-button,.menu-toggle,.favorite,.close-button,.speak-button,.reset-filter,.download-links a,.license-button,.footer-links button,.shelf-item button,summary{min-height:44px}
.favorite,.close-button,.menu-toggle{min-width:44px}
.filter{font-size:.875rem;padding:.625rem 1rem}
.favorite{width:44px;height:44px}.close-button{width:44px;height:44px}
.license-button{display:inline-flex;align-items:center;margin-top:.25rem;text-align:left}
.reset-filter{white-space:nowrap}.footer-links button{font-size:.875rem}
summary{display:flex;align-items:center;gap:.5rem}summary::before{content:"+";width:1rem}details[open]>summary::before{content:"−"}
.button,.filter,.shelf-button,.favorite,.close-button,.menu-toggle,.answer,.download-links a,.speak-button,.shelf-item button{transition:transform 150ms ease-out,background-color 150ms ease-out,border-color 150ms ease-out}
.button:active,.filter:active,.shelf-button:active,.favorite:active,.close-button:active,.menu-toggle:active,.answer:active:not(:disabled),.download-links a:active,.speak-button:active,.shelf-item button:active{transform:scale(.97);transition-duration:var(--press-response)}
.card-open:active .card-picture{opacity:.82}.card-open:active{background:#f4f9fc}
.text-link:active,.license-button:active,.footer-links button:active{color:#0a548b;background:#126aab0a}
.card-open,.text-link,.license-button,.footer-links button{transition:background-color 100ms ease-out,color 100ms ease-out}
.primary{box-shadow:0 2px 6px #126aab24}
dialog{max-height:calc(100dvh - 2rem);overscroll-behavior:contain;border:1px solid #ffffffa6;border-radius:1.5rem}
.dialog-top{position:sticky;top:0;z-index:2;background:var(--surface);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.game-content{padding-bottom:2rem}.game-content h2{font-size:1.875rem;letter-spacing:-.025em}
.game-content>p{font-size:1.125rem;line-height:1.65}
.game-options{gap:.75rem}
.answer{position:relative;border-radius:1rem;min-height:6rem;padding-block:1.25rem;text-align:center}
.answer:disabled{opacity:1;color:var(--ink)}
.answer .picture-group{align-items:center;min-height:0}
.game-content .apple-group{flex-wrap:nowrap;align-items:center;min-height:0}
.game-content .apple-group .game-icon{width:2.5rem!important;height:2.5rem!important}
.answer.correct::after,.answer.retry::after{position:absolute;inset:auto 0 .25rem;font-size:1rem;line-height:1}
.answer.correct::after{content:"✓";color:#286537}
.answer.retry::after{content:"↻";color:#8d460b}
.game-feedback{min-height:3.5rem;font-size:1rem!important}.game-bottom{min-height:3rem}
.offline-idea{font-size:.875rem}.info-content p{font-size:1rem;line-height:1.75}
.search:focus-within{outline:3px solid #126aab;outline-offset:3px}.search input:focus-visible{outline:0}
.search{min-height:44px}.search input{font-size:1rem}
:focus-visible{outline:3px solid #126aab;outline-offset:4px}
.download-card,.activity-card,.age-card{min-width:0}
@media(hover:hover) and (pointer:fine){.activity-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #1934490a}.button.primary:hover{transform:translateY(-1px)}}
@media(max-width:800px){.header{min-height:5.25rem}.mobile-nav{position:sticky;top:5.25rem;z-index:29;max-height:calc(100dvh - 5.25rem);overflow-y:auto;background:var(--surface);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 10px 24px #1934490d}.mobile-nav a{min-height:44px}.section-top.compact>p{font-size:.8125rem}}
@media(max-width:560px){html{scroll-padding-top:6rem}.header{padding:1rem .875rem;gap:.5rem}.brand{font-size:1.625rem}.brand small{font-size:.4375rem}.shelf-button{padding:.375rem .625rem}.menu-toggle{padding:.375rem}.hero h1{font-size:clamp(2.35rem,11vw,3rem)}.hero .eyebrow{font-size:.6875rem}.hero-actions{gap:1rem}.hero p{font-size:1rem}.hero-note,.picture-label{font-size:.75rem}.age-card small{font-size:.8125rem}.activity-controls{flex-wrap:wrap}.search{flex:1 1 12rem}.filter{font-size:.8125rem;padding:.5rem .75rem}.card-body p{min-height:0}.game-content{padding-left:1.25rem;padding-right:1.25rem}.game-content h2{font-size:1.625rem}.game-content>p{font-size:1.0625rem}.game-options{gap:.5rem}.game-bottom{flex-wrap:wrap}.answer{min-height:5.5rem;padding:.75rem .25rem}.offline-intro h2{font-size:clamp(1.5rem,7vw,2rem)}.download-meta,.license-button{font-size:.8125rem}.download-links a{font-size:.875rem}.parent-copy h2{font-size:1.875rem}.footer-bottom{font-size:.75rem}.footer-links{gap:1rem;flex-wrap:wrap}.info-content .roadmap{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:560px){
  .answer{padding-block:1.25rem}
  .game-content .apple-group{gap:2px}
  .game-content .apple-group .game-icon{width:clamp(1rem,5.9vw,2rem)!important;height:clamp(1rem,5.9vw,2rem)!important}
}
@media(max-width:560px) and (max-height:700px){
  #game-dialog .dialog-top{padding-block:.5rem}
  .game-content h2{margin-block:.75rem .5rem}
  .game-content>p{margin-block:.625rem;line-height:1.45}
  .game-stimulus{margin-block:.75rem;min-height:3.75rem;padding:.625rem;gap:.375rem}
}
@media(prefers-reduced-transparency:reduce){.header,.mobile-nav,.dialog-top{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}dialog::backdrop{backdrop-filter:none}}
@media(prefers-contrast:more){:root{--muted:#243f52;--line:#587081;--surface:#fff}.header,.mobile-nav,.dialog-top{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}.activity-card,.age-card,.download-card,.filter,.answer,.search,dialog{border:2px solid #29485d}.card-tag{background:#fff}.text-link,.license-button{text-decoration-thickness:2px}}
@media(forced-colors:active){button,a,input{forced-color-adjust:auto}.answer.correct{outline:3px solid Highlight}.favorite[aria-pressed=true]{outline:2px solid Highlight}.visual-shape,.frame-cell{forced-color-adjust:none}}

.activity-start { margin: 0 0 1rem }
.activity-pages:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.25rem }
.activity-pages .button:disabled { opacity: .5; cursor: default }
#game-dialog[data-mode="end"] .game-progress { display: none }

.worksheet-downloads:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .75rem 1rem }
.worksheet-downloads a, .lesson-actions a { min-height: 44px }
.download-library { margin-block: 1rem }

.quiz-visual { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .14rem; max-width: 100%; min-width: 0 }
.quiz-token { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; font-size: 1.8rem; font-weight: 750; line-height: 1.2; text-align: center; overflow-wrap: anywhere }
.quiz-asset { flex: 0 0 auto; width: calc(2.5rem * var(--quiz-scale)); height: calc(2.5rem * var(--quiz-scale)) }
.quiz-asset img { display: block; width: 100%; height: 100%; object-fit: contain }
.quiz-token-compact { font-size: 1rem }
.quiz-upside-down { transform: rotate(180deg) }
.quiz-shape-circle,.quiz-shape-square { background: #78b9d8; border: 2px solid #244c60 }
.quiz-shape-circle { border-radius: 50% }
.quiz-shape-square { border-radius: .2rem }
.quiz-shape-triangle { background: #78b9d8; clip-path: polygon(50% 0,100% 100%,0 100%) }
.has-token-groups .answer .quiz-token { font-size: 1.25rem }
.has-token-groups .answer .quiz-asset { width: calc(1.5rem * var(--quiz-scale)); height: calc(1.5rem * var(--quiz-scale)) }
.has-token-groups .answer .quiz-token-compact { font-size: .9rem }
.has-quiz-visuals .answer .answer-label { font-size: .85rem; overflow-wrap: anywhere; max-width: 100%; line-height: 1.2 }
.has-quiz-visuals .answer:hover:not(:disabled):not(.retry) { background: #f0f8ff }
.has-quiz-visuals .answer.retry:hover:not(:disabled) { background: #fff2df; border-color: #c66c24 }
@media (max-width: 560px) {
  .quiz-token { font-size: 1.5rem }
  .quiz-token-compact { font-size: .9rem }
  .quiz-asset { width: calc(2rem * var(--quiz-scale)); height: calc(2rem * var(--quiz-scale)) }
  .has-token-groups .answer .quiz-token { font-size: 1rem }
  .has-token-groups .answer .quiz-token-compact { font-size: .85rem }
  .has-token-groups .answer .quiz-asset { width: calc(1.1rem * var(--quiz-scale)); height: calc(1.1rem * var(--quiz-scale)) }
  .has-quiz-visuals .answer .answer-label { font-size: .75rem }
}
@media (max-width: 380px) and (max-height: 640px) {
  .has-quiz-visuals #game-title { font-size: 1.5rem }
  .has-quiz-visuals #game-prompt { font-size: 1rem; line-height: 1.42 }
}

/* Ink, paper, sky and leaves from the opening illustration. */
.quiz-poster,
#game-dialog {
  --story-ink: #253d4a;
  --story-sky: #e4f2fb;
  --story-paper: #fff9e6;
  --story-card: #fffdfa;
  --story-leaf: #6b9875;
  --story-grass: #c1d9a7;
  --story-gold: #edb44f;
  --story-blue: #33749d;
  --story-rust: #c57055;
}
#game-dialog { color: var(--story-ink); background: var(--story-card) }
#game-dialog .dialog-top { background: #fffdfa }
#game-dialog .game-progress { background: #e4eddd }
#game-dialog .game-progress span { background: var(--story-leaf) }
.quiz-poster,
#game-dialog .game-stimulus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 66% 24% at 12% 110%, var(--story-grass) 98%, transparent 100%),
    radial-gradient(ellipse 75% 25% at 78% 114%, #b4d2b2 98%, transparent 100%),
    var(--story-sky);
}
.quiz-poster::before,
#game-dialog .game-stimulus::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .65rem auto auto 7%;
  width: 2rem;
  height: .6rem;
  border-radius: 100% 100% 45% 45%;
  background: #fff;
  box-shadow: .45rem -.19rem 0 -.03rem #fff;
  pointer-events: none;
}
.quiz-poster {
  display: grid;
  place-items: center;
  aspect-ratio: 380 / 220;
  padding: clamp(1.05rem,3vw,2rem);
}
.quiz-poster .quiz-visual {
  max-width: 88%;
  padding: .6rem .75rem;
  border-radius: .75rem;
  background: #fff9ede8;
}
.quiz-poster .quiz-token {
  font-size: clamp(1.2rem,4vw,2rem);
}
.quiz-poster .quiz-token-compact { font-size: .95rem }
.quiz-poster .quiz-visual-group .quiz-asset { width: 1.65rem; height: 1.65rem }
#game-dialog .game-stimulus { border: 1px solid #d5e7ee; border-radius: 1.1rem }
#game-dialog .answer { color: var(--story-ink); background: #fffaf0; border-color: #dfd6bf }
#game-dialog .answer:hover:not(:disabled):not(.retry) { background: #edf5f9; border-color: #496d81 }
#game-dialog .answer.correct { background: #e7f2e7; border-color: #527d56 }
#game-dialog .answer.retry, #game-dialog .answer.retry:hover:not(:disabled) { background: #fff0e8; border-color: #a86042 }
.has-quiz-visuals .answer .answer-label { color: var(--story-ink) }
.quiz-word {
  padding: .02em .18em;
  border-radius: .2em;
  background: #f8ead2;
  color: #295777;
}
.quiz-token { position: relative }
.quiz-picture-tag {
  position: absolute;
  bottom: -.24rem;
  right: -.25rem;
  z-index: 1;
  white-space: nowrap;
  font: 750 .63rem/1.1 system-ui,sans-serif;
  background: #fff9e6;
  border: 1px solid #ddcdaa;
  color: #253d4a;
  padding: .12rem .2rem;
  border-radius: .35rem;
}
.quiz-asset { --quiz-scale: 1 }
.quiz-shape-circle,.quiz-shape-square,.quiz-shape-triangle { background: #7aaabc; border-color: #33586c }
.quiz-mark { background: var(--mark-color, #253d4a); transform: scale(.83) }
.quiz-mark-circle, .quiz-mark-dot, .quiz-mark-ring { border-radius: 50% }
.quiz-mark-dot { transform: scale(.36) }
.quiz-mark-square, .quiz-mark-frame { border-radius: .2rem }
.quiz-mark-frame { border: 2px solid #527181 }
.quiz-mark-ring { border: .28rem solid #7da8bb; background: #f7edda }
.quiz-mark-triangle { clip-path: polygon(50% 0, 100% 100%, 0 100%) }
.quiz-mark-star { clip-path: polygon(50% 0,64% 34%,100% 37%,73% 60%,81% 97%,50% 78%,19% 97%,27% 60%,0 37%,36% 34%) }
.quiz-mark-spark { clip-path: polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%) }
.quiz-tone-blue { --mark-color: #3978a0 }
.quiz-tone-rust { --mark-color: #d17358 }
.quiz-tone-gold { --mark-color: #edb44f }
.quiz-tone-green { --mark-color: #5b9667 }
.quiz-tone-brown { --mark-color: #996942 }
.quiz-tone-violet { --mark-color: #856495 }
.quiz-tone-ink { --mark-color: #253d4a }
.quiz-tone-paper { --mark-color: #fff9e6 }
@media (prefers-contrast: more) {
  #game-dialog .answer { border-color: #253d4a }
  #game-dialog .answer.correct { border-color: #286537 }
  #game-dialog .answer.retry { border-color: #8d460b }
}
@media (forced-colors: active) {
  .quiz-mark, .quiz-shape-circle, .quiz-shape-square, .quiz-shape-triangle { forced-color-adjust: none }
}
@media (max-width: 380px) and (max-height: 640px) {
  #game-dialog.has-quiz-visuals .game-stimulus .quiz-visual-group .quiz-asset {
    width: calc(1.4rem * var(--quiz-scale));
    height: calc(1.4rem * var(--quiz-scale));
  }
}
.quiz-controls { justify-content: flex-start; flex-wrap: wrap; gap: .75rem }
.quiz-age-label { font-weight: 700 }
#quiz-age {
  min-height: 2.75rem;
  padding: .5rem .75rem;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.quiz-controls .search { min-height: 2.75rem }
.quiz-controls .search input { min-width: 0; font-size: 1rem }
.quiz-categories .quiz-category { display: flex; flex-direction: column; min-width: 0 }
.quiz-categories .card-picture {
  height: auto;
  aspect-ratio: 2.2;
  background: #e8f4ef;
}
.quiz-categories .quiz-category:nth-child(2) .card-picture { background: #f9edd8 }
.quiz-categories .quiz-category:nth-child(3) .card-picture { background: #e6f0f8 }
.quiz-categories .card-picture img { width: 100%; height: 100%; object-fit: contain; object-position: center }
.quiz-categories .card-body { flex: 1; display: flex; flex-direction: column }
.quiz-categories .card-body h3 { margin-top: 0 }
.quiz-categories .card-body p { font-size: 1rem; line-height: 1.45; min-height: 0 }
.quiz-category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
}
.quiz-category-actions > span { font-size: .9rem; color: var(--muted) }
.quiz-category-actions .button { min-height: 2.75rem; touch-action: manipulation; white-space: normal }
.quiz-category-actions .button:disabled { background: #edf2f5; color: #4a6374; box-shadow: none }
.game-save {
  margin-inline-start: auto;
  margin-inline-end: .5rem;
  flex: 0 0 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: white;
  color: var(--ink);
  font-size: 1.5rem;
  touch-action: manipulation;
}
.game-save[aria-pressed="true"] { background: #fff3ec; color: #a83923 }
#game-dialog .game-stimulus,
#game-dialog .answer { justify-content: center; align-items: center }
#game-dialog .scene-stimulus-image,
#game-dialog .scene-answer-image { display: block; margin-inline: auto; object-fit: contain; object-position: center }
#game-dialog .scene-answer-image { width: min(100%, 9rem); height: auto }
#game-dialog .full-lesson:not([open]) { margin-block-end: 0 }
@media (max-width: 740px) {
  .quiz-categories { grid-template-columns: minmax(0, 1fr) }
  .quiz-categories .quiz-category { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) }
  .quiz-categories .card-picture { height: 100%; min-height: 8rem; aspect-ratio: auto }
  .quiz-categories .card-body { padding: .875rem }
  .quiz-categories .card-body h3 { font-size: clamp(1.05rem, 4vw, 1.375rem) }
  .quiz-category-actions { padding-top: .75rem }
  .quiz-category-actions .button { padding-inline: .8rem }
}
@media (max-width: 560px) {
  .quiz-controls .search { width: 100% }
  #game-dialog .game-content { padding-inline: clamp(.85rem, 4vw, 1.25rem) }
  #game-dialog .game-options { gap: .5rem }
  #game-dialog .answer { min-width: 0; padding: .65rem .3rem; min-height: 5.25rem }
  #game-dialog .scene-stimulus-image { max-height: min(36vw, 10.5rem) }
  #game-dialog .scene-answer-image { max-height: min(22vw, 6.5rem) }
  #game-dialog .answer .answer-label { font-size: clamp(.8125rem, 3.5vw, .95rem); overflow-wrap: anywhere }
  #game-dialog .pedagogy-panel { padding: .35rem .75rem; margin-block: .75rem }
}

#game-dialog .game-stimulus {
  --quiz-art-size: clamp(3.75rem, 11vw, 6.25rem);
  min-height: 8rem;
  padding: clamp(.85rem, 3vw, 1.5rem);
  background: #f0f5f7;
  border-color: #9db5c2;
}
#game-dialog .game-stimulus::before { display: none }
#game-dialog .answer {
  --quiz-art-size: clamp(2.75rem, 7.5vw, 4.375rem);
  background: #fff;
  border-color: #708698;
}
#game-dialog .answer.correct { background: #e7f2e7; border-color: #527d56 }
#game-dialog .answer.retry { background: #fff0e8; border-color: #a86042 }
#game-dialog .quiz-visual { gap: clamp(.25rem, 1.25vw, .65rem) }
#game-dialog .quiz-visual-dense { --quiz-art-size: clamp(2rem, 6vw, 3.125rem) }
#game-dialog .quiz-visual .quiz-asset {
  width: min(100%, calc(var(--quiz-art-size) * var(--quiz-scale)));
  height: auto;
  aspect-ratio: 1;
}
#game-dialog .quiz-asset img[src*="tree"] { width: 100% !important; height: 100% !important }
#game-dialog .scene-stimulus-image { max-height: 16rem }
#game-dialog .scene-answer-image { width: min(100%, 12rem); max-height: 10rem }
#game-dialog .scene-answer-image[src*="vankus.png"] { width: min(100%, var(--quiz-art-size)); aspect-ratio: 1 }
#game-dialog .picture-group > .game-icon:only-child {
  width: min(100%, calc(var(--quiz-art-size) * var(--scale))) !important;
  height: auto !important;
  aspect-ratio: 1;
}
.quiz-tone-blue { --mark-color: #5a8eac }
.quiz-tone-rust { --mark-color: #cc816a }
.quiz-tone-gold { --mark-color: #e9b955 }
.quiz-tone-green { --mark-color: #71a078 }
@media (max-width: 560px) {
  #game-dialog .game-stimulus { min-height: 6rem }
  #game-dialog .game-options.has-token-groups { grid-template-columns: minmax(0, 1fr) !important }
  #game-dialog .game-options.has-wide-options { grid-template-columns: minmax(0, 1fr) !important }
  #game-dialog .game-options.has-token-groups .answer { --quiz-art-size: clamp(2.75rem, 13vw, 3.5rem) }
  #game-dialog .scene-stimulus-image { max-height: min(54vw, 12rem) }
  #game-dialog .scene-answer-image { max-height: min(34vw, 8rem) }
}
@media (prefers-contrast: more) {
  #game-dialog .answer, #game-dialog .game-stimulus { border-color: var(--story-ink) }
}
.quiz-extras { align-self: flex-start }
/* Keep the reading control separated from answers when no reference is needed. */
#game-stimulus[hidden]+.game-options{margin-top:20px}
/* One counted object uses the same base size in every answer. Explicit size tasks keep their scale. */
#game-dialog .picture-group > .game-icon{width:calc(var(--quiz-art-size) * var(--scale))!important;height:calc(var(--quiz-art-size) * var(--scale))!important;max-width:100%;object-fit:contain;flex:0 0 auto}
.answer-success-dialog{max-width:30rem;width:calc(100% - 2rem)}
.answer-success-content{padding:0 1.75rem 1.75rem;display:grid;gap:1rem}
.answer-success-content h2,.answer-success-content p{margin:0}
.answer-success-content p{font-size:1.0625rem;line-height:1.6}
.answer-success-content .text-link{justify-self:center;min-height:44px}
.answer-success-dialog::backdrop{background:#19344980;backdrop-filter:blur(3px)}
/* Explicit lengths prevent empty CSS shapes collapsing to their border width. */
#game-dialog .quiz-visual .quiz-asset{
 flex:0 0 auto;
 width:calc(var(--quiz-art-size) * var(--quiz-scale));
 height:calc(var(--quiz-art-size) * var(--quiz-scale));
 max-width:none;
 aspect-ratio:1;
}
.answer-success-dialog{width:min(30rem,calc(100% - 2rem))}
.answer-success-content{padding:0 1.8rem 1.8rem}
.answer-success-content h2{font-size:1.9rem;margin:0 0 1rem}
.answer-success-content p{font-size:1.05rem;line-height:1.6;margin:0 0 1.5rem}
.answer-success-content>.button{width:100%;margin-bottom:1rem}
.answer-success-content>.text-link{display:block;min-height:44px;margin:auto}

/* School stage first, followed by age or grade. */
.quiz-controls{flex-wrap:wrap;align-items:flex-end}
.quiz-filter-field{display:flex;flex-direction:column;gap:8px;min-width:190px}
.quiz-filter-field label{font-size:1rem}
#quiz-stage{font:inherit;font-size:1rem;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 38px 12px 14px;min-height:48px}
.quiz-controls .search{min-height:48px}
.quiz-controls .reset-filter{min-height:48px}
@media(max-width:600px){.quiz-filter-field{flex:1 1 100%;min-width:0}.quiz-filter-field select{width:100%;max-width:100%}.quiz-controls .search{flex:1 1 100%;width:100%}.quiz-controls .reset-filter{margin-left:0}}
