/* Explore and its four areas */
.xp-doors{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:760px){.xp-doors{grid-template-columns:repeat(2,minmax(0,1fr))}}
.xp-door{display:block;overflow:hidden;border:1px solid var(--line);border-radius:18px;color:var(--ink);text-decoration:none;transition:transform .2s}
.xp-door:hover{transform:translateY(-3px)}
.xp-door img{width:100%;aspect-ratio:4/3;object-fit:cover}
.xp-door-body{padding:16px 18px 20px}
.xp-door h2{color:var(--ink);font-size:24px;margin:0 0 6px}
.xp-door p{margin:0}
.xp-firsts{background:var(--sun-soft)}
.xp-storytime{background:var(--sky-soft)}
.xp-skills{background:var(--leaf-soft)}
.xp-play{background:var(--coral-soft)}
.xp-back{display:inline-flex;align-items:center;min-height:48px;font-weight:800}
@media(prefers-reduced-motion:reduce){.xp-door{transition:none}.xp-door:hover,a.ep:hover{transform:none}}


/* Journeys */
.jr-area,.jr-list{max-width:720px}
.jr-list{margin:24px auto 0}
.jr-row{display:grid;grid-template-columns:112px minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:16px;align-items:stretch}
.jr-row>img{width:100%;height:100%;min-height:100%;object-fit:cover}
.jr-card{background:var(--paper);color:var(--ink);text-decoration:none;margin:10px 0}
.jr-row-body,.jr-card-body{padding:8px;min-width:0;align-self:center}
.jr-row h3{font-size:18px;margin:0 0 4px;color:var(--ink)}
.jr-row p{margin:4px 0;font-size:15px;color:var(--ink)}
.jr-action{display:block;font-weight:800;margin-top:6px}
.jr-cards{display:grid;gap:8px;margin-top:8px}
.jr-secret{border-width:2px;border-style:solid}
.jr-coral{background:var(--coral-soft);border-color:var(--coral)}
.jr-sky{background:var(--sky-soft);border-color:var(--sky)}
.jr-leaf{background:var(--leaf-soft);border-color:var(--leaf)}
.jr-secret .jr-card-body{display:flex;flex-direction:column;align-items:flex-start}
.jr-story-box{margin-block:16px}
.jr-story-box .btn{min-height:48px;display:inline-flex;align-items:center}
@media(max-width:759px){.jr-row{grid-template-columns:100px minmax(0,1fr)}}
@media(min-width:760px){.jr-row{grid-template-columns:160px minmax(0,1fr)}}

/* Journey plan pages: written for the parent. */
.jm-section{padding-top:8px}
.jm{max-width:600px;margin:auto}
.jm h1{margin:4px 0 8px}
.jm-lead{margin:0 0 16px}
.jm h2{margin:36px 0 12px;font-size:24px}
.jm h3{margin:0 0 10px;font:800 18px/1.25 var(--body);color:var(--ink)}
.jm-watch{position:relative;display:block;border-radius:18px;overflow:hidden}
.jm-watch img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.jm-play{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--action);color:#fff;font-size:24px}
.jm-caption{margin:8px 0 0}.jm-caption strong{display:block}
.jm-you{margin-top:28px;padding:16px;border-radius:18px;background:var(--sun-soft)}
.jm-you img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:14px;margin-bottom:12px}
.jm-you h2{margin:0 0 8px}
.jm-you p{margin:0 0 10px}.jm-you p:last-child{margin:0}
.jm-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:center;margin:0 0 12px}
.jm-row img{width:112px;height:112px;object-fit:cover;border-radius:16px}
.jm-row p{margin:0;font-size:16px;line-height:1.45}.jm-row strong{display:block;font-size:17px}
.jm-ask{margin:14px 0 0}
.jm-q{margin:0 0 22px}.jm-q[hidden]{display:none}
.jm-chips{display:flex;flex-wrap:wrap;gap:10px 8px}.jm-chips-after{margin-top:12px}
/* Looks 36px tall; the ::after keeps the tap area 48px. */
.jm-chip{position:relative;min-height:36px;padding:0 13px;border:1.5px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font:700 14px var(--body);cursor:pointer}
.jm-chip::after{content:"";position:absolute;left:0;right:0;top:-6px;bottom:-6px}
.jm-pics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jm-pic{padding:0;overflow:hidden;border:2px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.jm-pic img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.jm-pic span{display:block;padding:8px 10px 10px;font-size:14px;line-height:1.35}
.jm-pic strong{display:block;font-size:16px}
.jm-chip[aria-pressed="true"],.jm-pic[aria-pressed="true"]{border-color:var(--teal);box-shadow:0 0 0 2px var(--teal)}
.jm-chip[aria-pressed="true"]{background:var(--teal-fill);color:var(--on-teal)}
.jm-chip:focus-visible,.jm-pic:focus-visible{outline:3px solid var(--teal-ink);outline-offset:3px}
.jm-hint{margin:10px 0 0;font-size:14px;color:var(--soft)}
.jm-card{margin:0;padding:18px;border-radius:18px;background:var(--paper);border:2px solid var(--teal)}
.jm-card[hidden]{display:none}
.jm-card h3{font:600 22px/1.2 var(--display);color:var(--teal-ink);margin:0 0 10px}
.jm-card p{margin:0 0 8px;font-size:18px;line-height:1.4}
.jm-card .jm-card-end{font-weight:800}
.jm-card-do{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:12px}
.jm-card .jm-card-do p{margin:0;font-size:14px;color:var(--soft);flex:1 1 180px}
.jm-print{min-height:48px;padding:8px 18px;font-size:15px;cursor:pointer}
.jm-share{margin:12px 0 0;font-size:15px;color:var(--soft)}
.jm-say{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 14px}
.jm-say span{padding:10px 16px;border-radius:18px 18px 18px 4px;background:var(--sky-soft);color:var(--ink);font-weight:800}
.jm-note{margin:10px 0 0;font-size:16px}
.jm-links{display:flex;flex-wrap:wrap;gap:6px 22px;margin:28px 0 8px;font-weight:800}
.jm-links a{min-height:48px;display:inline-flex;align-items:center}
.jm-src{display:none}
@media(min-width:760px){.jm-row{grid-template-columns:160px minmax(0,1fr)}.jm-row img{width:160px;height:160px}}

/* Plan pages: parent card, questions, print */
body:has(.jm) .menu-btn{min-width:48px;min-height:48px}
body:has(.jm) nav a,body:has(.jm) footer a{display:inline-flex;align-items:center;min-height:48px}
.jm-ask+.jm-row{margin-top:12px}
.jm-faq{padding:0}
.jm-more{position:relative;padding-block-end:3.5rem}
.jm-more>summary{position:absolute;inset-block-end:0;inset-inline-end:0;display:flex;align-items:center;min-block-size:48px;max-inline-size:100%;padding-inline:.5rem;color:var(--ink);font-weight:800;text-decoration:underline;text-underline-offset:.2em;list-style:none;cursor:pointer}
.jm-more>summary::-webkit-details-marker{display:none}
.jm-more>summary:focus-visible,.jm-faq summary:focus-visible,.jm-story a:focus-visible,.jm-help a:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.jm-more-open,.jm-more[open] .jm-more-closed{display:none}
.jm-more[open] .jm-more-open{display:inline}
.jm-more-body{padding-block:.5rem}
.jm-faq details{border-block-end:1px solid var(--line)}
.jm-faq summary{min-block-size:48px;padding-block:.75rem;color:var(--ink);font-weight:800;cursor:pointer}
.jm-answer{padding-block-end:.75rem}
.jm-answer p{margin:0}
.jm-story{margin:4px 0 0;font-size:15px}
.jm-story a,.jm-help a{display:inline-flex;align-items:center;min-height:48px;text-underline-offset:.2em}
.jm-help{margin:20px 0 0;font-size:15px;color:var(--ink)}
@media print{
  @page jm-guide{
    margin:18mm 14mm;
    @top-center{content:"Big Little Firsts · www.biglittlefirsts.com";font:800 9pt sans-serif;color:#4f4956}
    @bottom-center{content:"Big Little Firsts · www.biglittlefirsts.com";font:800 9pt sans-serif;color:#4f4956}
  }
  nav,footer,.jm .jm-chips,.jm .jm-pics,.jm .jm-print,.jm .jm-card-do,.rail-btn{display:none!important}
  body{background:#fff;color:#2f2a36;color-scheme:light}
  .jm{--ink:#2f2a36;--teal:#176d69;--soft:#4f4956;--paper:#fff;--bg:#fff;--sun-soft:#fff;--sky-soft:#fff;--line:#aaa;--teal-ink:#176d69;max-width:none;padding:0;font-size:12pt;line-height:1.5}
  .jm-section{page:jm-guide;padding:0}
  .jm h1{font-size:24pt}.jm h2{font-size:18pt;break-after:avoid}.jm h3{font-size:14pt}
  .jm-row p,.jm-row strong,.jm-note,.jm-card p{font-size:12pt}
  .jm-watch{max-width:70mm}.jm-play{display:none}
  .jm-you{padding:0;background:#fff}.jm-you img{max-width:70mm}
  .jm-row,.jm-faq details,.jm-card{break-inside:avoid}
  .jm-more{padding-block-end:0}.jm-more>summary{display:none}
  .jm-faq summary{min-block-size:0;padding-block:.5rem}
  .jm-say span{background:#fff;padding:0}
  .jm-card{background:#fff;color:var(--ink)}
  body.jm-print-plan .jm>*:not(.jm-card){display:none!important}
  body.jm-print-plan .jm-section{page:auto}
  body.jm-print-plan .jm-card{border:0;background:#fff;padding:0;max-width:none}
  body.jm-print-plan .jm-card p{font-size:20pt;color:#2f2a36}
  body.jm-print-plan .jm-card h3{font-size:30pt;color:#176d69}
  body.jm-print-plan .jm .jm-src{display:block;font:800 10pt var(--body);color:#6f6779;margin:0 0 8mm}
  body.jm-print-plan .jm .jm-src:last-child{margin:10mm 0 0}
}

/* Storytime */
/* Library: a grid of covers */
.sty-lib-head h1{margin:4px 0 2px}
.sty-lib-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:720px}
@media(min-width:760px){.sty-lib-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.sty-lib-tile{display:block;color:var(--ink);text-decoration:none}
.sty-lib-art{position:relative;display:block;aspect-ratio:1;border-radius:18px;overflow:hidden;box-shadow:0 6px 18px -8px var(--tint,#0004)}
.sty-lib-art img{width:100%;height:100%;object-fit:cover;display:block}
.sty-lib-play{position:absolute;right:8px;bottom:8px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--paper);color:var(--teal-ink);font-size:16px;box-shadow:0 2px 8px #0003}
.sty-lib-soon{position:absolute;left:8px;top:8px;padding:3px 10px;border-radius:999px;background:var(--paper);color:var(--ink);font-size:12px;font-weight:800}
.sty-lib-tile.is-soon .sty-lib-art img{opacity:.75}
.sty-lib-title{display:block;font:600 16px/1.2 var(--display);margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sty-lib-meta{display:block;font-size:13px;color:var(--soft);margin-top:2px}
.sty-lib-tile:focus-visible .sty-lib-art{outline:3px solid var(--sun);outline-offset:3px}

/* Player */
.sty-pl{max-width:420px;margin:0 auto;position:relative}
.sty-pl-page{background:linear-gradient(180deg,color-mix(in srgb,var(--tint) 32%,var(--bg)) 0,var(--bg) 560px)}
.sty-pl-art{width:clamp(120px,min(64vw,100vh - 510px),300px);width:clamp(120px,min(64vw,100svh - 510px),300px);aspect-ratio:1;margin:4px auto 12px;border-radius:22px;overflow:hidden;box-shadow:0 18px 40px -16px color-mix(in srgb,var(--tint) 80%,#000)}
.sty-pl-art img{width:100%;height:100%;object-fit:cover;display:block}
.sty-pl-titlebox{overflow:hidden;white-space:nowrap}
.sty-pl-title{display:inline-block;white-space:nowrap;text-wrap:nowrap;margin:0;font:600 24px/1.2 var(--display);color:var(--ink)}
.sty-pl-title.scroll{animation:sty-pl-scroll 9s ease-in-out 1.5s 1}
@keyframes sty-pl-scroll{0%,15%{transform:translateX(0)}55%,70%{transform:translateX(var(--shift))}100%{transform:translateX(0)}}
@media (prefers-reduced-motion:reduce){.sty-pl-title.scroll{animation:none}}
.sty-pl-by{margin:2px 0 0;font-size:15px;color:var(--soft)}
/* Scrubber: 4px line, 44px touch area */
.sty-pl-scrub{display:block;width:100%;height:44px;margin:4px 0 0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer;--p:0%}
.sty-pl-scrub::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(90deg,var(--sty-colour) var(--p),color-mix(in srgb,var(--ink) 18%,transparent) var(--p))}
.sty-pl-scrub::-moz-range-track{height:4px;border-radius:4px;background:color-mix(in srgb,var(--ink) 18%,transparent)}
.sty-pl-scrub::-moz-range-progress{height:4px;border-radius:4px;background:var(--sty-colour)}
.sty-pl-scrub::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border-radius:50%;background:var(--sty-colour);border:0}
.sty-pl-scrub::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--sty-colour);border:0}
.sty-pl-scrub:focus-visible{outline:3px solid var(--sun);outline-offset:2px;border-radius:8px}
.sty-pl-times{display:flex;justify-content:space-between;margin-top:-8px;font-size:13px;color:var(--soft);font-variant-numeric:tabular-nums}
/* Controls */
.sty-pl-controls{display:flex;align-items:center;justify-content:center;gap:10px;margin:6px 0 10px}
.sty-pl-skip{width:44px;height:44px;flex:0 0 44px;border-radius:50%;border:0;background:transparent;color:var(--ink);font:800 13px var(--body);display:grid;place-items:center;cursor:pointer}
.sty-pl-skip span{font-size:22px;line-height:1;display:block}
.sty-pl-play{width:64px;height:64px;flex:0 0 64px;border-radius:50%;border:0;background:var(--sty-colour);color:#fff;font-size:24px;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 20px -8px var(--sty-colour)}
.sty-pl-controls button:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
/* Up next */
.sty-pl-next{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:16px;background:color-mix(in srgb,var(--paper) 85%,transparent);border:1px solid var(--line);color:var(--ink);text-decoration:none}
.sty-pl-next img{width:52px;height:52px;border-radius:10px;object-fit:cover}
.sty-pl-next small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--teal-ink)}
.sty-pl-next b{display:block;font:600 15px/1.2 var(--display)}
.sty-pl-next em{font-style:normal;font-size:13px;color:var(--soft)}
.sty-pl-next .sty-pl-pill{padding:3px 10px;border-radius:999px;background:var(--sun-soft);font-size:12px;font-weight:800}
.sty-pl-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.sty-ezz{--sty-colour:var(--teal)}
.sty-nai{--sty-colour:var(--coral)}
.sty-pl-message{font-size:15px;font-weight:800;margin:0 0 18px}
.sty-pl-message[hidden]{display:none}
.sty-pl-controls button:disabled,.sty-pl-scrub:disabled{opacity:.55;cursor:not-allowed}

.sty-pl-toggles{margin:0 0 12px;display:flex;justify-content:center;gap:10px;}
.sty-pl-toggle{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 14px;border:2px solid var(--sty-colour);border-radius:999px;background:transparent;color:var(--sty-colour);font:700 14px var(--body);cursor:pointer}
.sty-pl-toggle[aria-pressed="true"]{background:var(--sty-colour);color:#fff}
.sty-pl-toggles button:focus-visible,.sty-pl-next:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
button.sty-pl-next{width:100%;text-align:left;font:inherit;cursor:pointer}
/* Player pages: less space above the back link, so Up next shows without scrolling (AT, 2026-11-01). */
.sty-pl-page main>section{padding-top:8px}
/* Fit most screens (AT, 2026-11-01): the cover above takes the height that's left; short screens also tighten the rest;
   short landscape screens put the cover beside the player. */
@media (max-height:640px){
 .sty-pl-art{margin:0 auto 8px}
 .page-top .sty-pl-title{font-size:20px}
 .sty-pl-by{font-size:14px}
 .sty-pl-controls{margin:2px 0 6px}
 .sty-pl-toggles{margin:0 0 8px}
 .sty-pl-next{padding:6px 10px;grid-template-columns:40px minmax(0,1fr) auto}
 .sty-pl-next img{width:40px;height:40px}
}
@media (orientation:landscape) and (max-height:520px){
 .sty-pl{max-width:760px;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:start}
 .sty-pl>*{grid-column:2}
 .sty-pl-art{grid-column:1;grid-row:1 / span 5;width:clamp(110px,min(24vw,100svh - 200px),240px);margin:0}
 .sty-pl-next{grid-column:1;grid-row:6 / span 2;align-self:start;margin-top:10px;padding:6px 10px;grid-template-columns:40px minmax(0,1fr) auto}
 .sty-pl-next img{width:40px;height:40px}
 /* Controls and the two toggles share one row; the toggles show their icon only (their names stay in aria-label). */
 .sty-pl-controls{grid-row:6;justify-content:flex-start;gap:6px;margin:2px 0 6px}
 .sty-pl-toggles{grid-row:6;justify-self:end;align-self:center;margin:0}
 .sty-pl-toggle{font-size:0;width:48px;padding:0;justify-content:center}
}

/* Skills */
.skl-page main>section{padding-top:8px;padding-bottom:20px}.skl-game{max-width:440px;margin:auto}
.skl-bubble{display:flex;align-items:center;gap:8px;background:var(--paper);border:2px solid var(--teal);border-radius:20px;padding:10px 12px;margin:8px 0 12px}.skl-bubble p{flex:1;margin:0;font:600 20px/1.25 var(--display);color:var(--ink)}
.skl-faces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.skl-face{padding:0;aspect-ratio:1;min-width:0;border:3px solid transparent;border-radius:16px;overflow:hidden;background:var(--paper);cursor:pointer}.skl-face img{width:100%;height:100%;display:block;object-fit:cover}
.skl-portrait{display:block;width:min(50%,180px,calc(100svh - 580px));min-width:100px;aspect-ratio:1;object-fit:cover;border-radius:18px;margin:0 auto 8px}.skl-words{display:grid;gap:6px}.skl-word{display:block;width:100%;height:56px;border:2px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink);font:800 18px var(--body);text-align:left;padding:0 16px;cursor:pointer}
.skl-dim{opacity:.6}.skl-correct{opacity:1;border-color:var(--teal);box-shadow:0 0 0 4px color-mix(in srgb,var(--teal) 35%,transparent)}.skl-shake{animation:skl-shake .3s ease}@keyframes skl-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
@media(prefers-reduced-motion:reduce){.skl-shake{animation:none}}
.skl-action{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;margin-top:12px}.skl-next{min-height:56px;padding:0 28px;font-size:18px;cursor:pointer}
.skl-face:focus-visible,.skl-word:focus-visible,.skl-next:focus-visible{outline:3px solid var(--sun);outline-offset:3px}

/* Play */
.ply-question{flex:1;min-width:0}.ply-question p:focus{outline:0}.ply-progress{display:block;margin-top:4px;color:var(--teal-ink);font:800 13px var(--body)}.ply-progress:empty{display:none}
.ply-lights:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.ply-help{display:flex;flex-wrap:wrap;gap:16px}.ply-lights{min-height:48px;padding:8px 4px;border:0;background:transparent;color:var(--teal-ink);font:800 15px var(--body);cursor:pointer}.ply-lights:hover{text-decoration:underline}.ply-lights:disabled{cursor:default;opacity:.65}.ply-lights[hidden]{display:none}
.ply-night{position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse 15% calc(15% * var(--scene-ratio,1.7768)) at var(--tx,50%) var(--ty,50%),transparent 65%,rgba(11,18,48,.93) 100%);opacity:1}.ply-night[hidden]{display:none}.ply-night.ply-lit{opacity:0;transition:opacity .6s ease-out}
.ply-game{max-width:1080px;margin:auto}.ply-game h1{margin:4px 0}.ply-stage{position:relative;min-width:0}.ply-fullscreen,.ply-clue{min-height:48px;border:0;background:transparent;color:var(--teal-ink);font:800 15px var(--body);cursor:pointer}.ply-fullscreen{width:48px;display:grid;place-items:center;flex:none;margin-left:4px}.ply-fullscreen[hidden]{display:none}.ply-bubble{max-width:640px}.ply-find{flex:none;text-align:center;font:700 12px var(--body);color:var(--teal-ink)}.ply-find[hidden]{display:none}.ply-find span{display:block}.ply-find img,.ply-emoji{width:72px;height:72px;border-radius:10px}.ply-find img{display:block;object-fit:cover}.ply-find .ply-emoji{display:grid;place-items:center;font-size:44px;line-height:1}.ply-find img[hidden],.ply-find .ply-emoji[hidden]{display:none}.ply-box-panel{font-size:14px}.ply-box-panel p{margin:8px 0 4px}.ply-box-panel pre{white-space:pre-wrap;margin:0}.ply-strip{max-width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:none;-webkit-overflow-scrolling:touch;border-radius:18px}.ply-image{position:relative;width:100%;aspect-ratio:1672/941}.ply-image img{display:block;width:100%;height:100%;max-width:none}.ply-target,.ply-mark{position:absolute;pointer-events:none}.ply-target{background:transparent;border:3px solid transparent;border-radius:50%;padding:0}.ply-target:focus-visible{outline:4px solid var(--sun);outline-offset:3px}.ply-hint{animation:ply-pulse 1s ease-in-out 2}.ply-mark{display:none;border-radius:50%}.ply-miss{display:block;width:34px;height:34px;border:3px solid white;box-shadow:0 0 0 2px var(--teal);transform:translate(-50%,-50%);animation:ply-fade .9s ease-out forwards}.ply-miss.ply-shake{animation:ply-shake .4s ease-in-out,ply-fade .9s ease-out forwards}.ply-found{display:block;border:4px solid #fff;box-shadow:0 0 0 4px var(--sun),0 0 18px 8px var(--sun)}.ply-star{position:absolute;left:50%;top:50%;width:12px;height:12px;background:var(--sun);clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 92%,50% 71%,21% 92%,32% 57%,2% 35%,39% 35%);animation:ply-star .8s ease-out forwards}.ply-star:nth-child(3n+2){background:var(--teal)}.ply-star:nth-child(3n){background:var(--coral)}.ply-swipe{font-size:14px;color:var(--soft);margin:4px 0}.ply-clue:focus-visible,.ply-fullscreen:focus-visible{outline:3px solid var(--sun);outline-offset:2px}.ply-stage:fullscreen{background:var(--bg);overflow:auto;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))}.ply-stage:fullscreen .ply-bubble{position:absolute;z-index:2;top:4px;left:12px;right:12px;margin:0;max-width:640px}.ply-stage:fullscreen .ply-strip{margin:auto}.ply-stage:fullscreen .ply-image{width:min(100%, 133svh);margin:auto}
@media(max-width:700px) and (orientation:portrait){.ply-image{--h:clamp(240px,100vh - 420px,520px);--h:clamp(240px,100svh - 420px,520px);height:var(--h);width:calc(var(--h) * 1.7768);max-width:none}.ply-stage:fullscreen .ply-image{width:min(133.26vh,1244px);width:min(133.26svh,1244px);height:min(75vh,700px);height:min(75svh,700px)}}
@media(min-width:701px), (orientation:landscape){.ply-image{--h:clamp(180px,100vh - 380px,600px);--h:clamp(180px,100svh - 380px,600px);width:min(100%,calc(var(--h) * 1.7768));margin:auto}}
@keyframes ply-shake{20%,60%{translate:-6px 0}40%,80%{translate:6px 0}}@keyframes ply-star{from{opacity:1;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(0)}to{opacity:0;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(-70px)}}@keyframes ply-pulse{50%{border-color:#fff;box-shadow:0 0 0 5px var(--sun),0 0 20px 8px var(--sun)}}@keyframes ply-fade{to{opacity:0;transform:translate(-50%,-50%) scale(1.4)}}
@media(prefers-reduced-motion:reduce){.ply-hint{animation:none;border-color:var(--sun);box-shadow:0 0 0 4px var(--sun)}.ply-miss,.ply-miss.ply-shake{animation:none}.ply-star{display:none}}
.ply-image{isolation:isolate;aspect-ratio:var(--scene-ratio,1.7768)}.ply-target{z-index:2}.ply-mark{z-index:3}
.ply-stage:fullscreen:has([data-room][hidden]) .ply-bubble{position:static;margin:8px 60px 12px 0}
@media(max-width:700px) and (orientation:portrait){.ply-image{width:calc(var(--h) * var(--scene-ratio,1.7768))}}
@media(min-width:701px), (orientation:landscape){.ply-image{width:min(100%,calc(var(--h) * var(--scene-ratio,1.7768)))}}
@media(prefers-reduced-motion:reduce){.ply-night.ply-lit{transition:none}}
/* Full-screen button sits in the bubble row. */


/* Home: four picture doors at every width; shared area navigation lives in style.css. */
.hm-explore{padding-block:12px 24px}
.hm-doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:720px;margin-inline:auto}
.hm-door{min-height:48px}
.hm-door img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.hm-door-body{padding:12px 14px 16px}
.hm-door h3{font:800 20px/1.2 var(--body);color:var(--ink);margin:0}
.hm-door:focus-visible{outline:3px solid var(--teal-ink);outline-offset:4px}
.hm-new{padding-block:20px 24px}
.hm-new h2{margin-bottom:16px}
@media(max-width:640px){.hm-doors{gap:10px}.hm-door-body{padding:10px 10px 12px}}
@media(min-width:900px){.hm-doors{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}}
/* Home order (2026-11-03): banner at its natural height, purpose line, doors, plans, New. */
.hero img{min-height:0}
.hm-why{max-width:720px;margin:0 auto 14px;text-align:center;font-size:18px;color:var(--soft)}
.hm-door{position:relative}
/* the live style.css has a .next box rule (display:flex, 18px padding) that catches the ribbon's "next" class */
.hm-door .ribbon.next{display:inline-block;top:8px;right:8px;margin:0;padding:3px 9px;font-size:11px;line-height:1.4;border-radius:999px;background:var(--sun);color:#2f2a36;gap:0;z-index:1}
.hm-firsts{padding-block:12px}
.hm-rows{display:grid;gap:10px;max-width:720px;margin-top:12px}
.hm-row{grid-template-columns:88px minmax(0,1fr);min-height:136px;margin:0}
.hm-firsts .lead{margin:12px 0 0}.hm-firsts .lead a{display:inline-flex;align-items:center;min-height:48px;font-weight:800}
@media(min-width:900px){.hm-rows{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}}

/* Games: one grid of Storytime library tiles; My stickers sits beside the heading. */
.gm-area{max-width:756px}
.gm-grid{margin-top:24px}
.gm-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-top:8px}.gm-heading h1{margin:0}
.stk-link{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding-inline:10px;font-weight:800;color:var(--teal-ink)}
.stk-link img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.stk-link:focus-visible{outline:3px solid var(--sun);outline-offset:3px}

/* Stickers */
.stk-area{max-width:440px}
.stk-how{margin:4px 0 12px}
.stk-note{margin:0;font-size:14px;color:var(--soft)}
.stk-animals{display:flex;gap:12px}
.stk-animal{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:4px 16px 4px 4px;border:2px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font:800 17px var(--body);cursor:pointer}
.stk-animal img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.stk-animal[aria-pressed="true"]{border-color:var(--teal-fill);box-shadow:0 0 0 2px var(--teal-fill)}
.stk-head{margin:20px 0 0;font-size:20px}
.stk-game{margin:16px 0 8px;font:800 15px var(--body);color:var(--soft)}
.stk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
.stk-slot{display:grid;justify-items:center;align-content:start;gap:6px;color:var(--ink);text-decoration:none}
.stk-label{font:700 13px/1.2 var(--body);text-align:center}
.stk-sticker{display:grid;place-items:center;flex:none;box-sizing:border-box;width:72px;height:72px;border:4px solid #fff;border-radius:50%;overflow:hidden;background:var(--paper);box-shadow:0 2px 6px rgba(40,30,20,.3);rotate:-3deg}
.stk-slot:nth-child(even) .stk-sticker{rotate:3deg}
.stk-sticker img{display:block;width:100%;height:100%;object-fit:cover}
.stk-empty,.stk-slot:nth-child(even) .stk-empty{border:2px dashed var(--soft);box-shadow:none;background:transparent;color:var(--teal-ink);font-size:22px;rotate:0deg}
.stk-clear{min-width:48px;min-height:48px;margin-top:16px;padding:0 8px;border:0;background:transparent;color:var(--teal-ink);font:800 17px var(--body);cursor:pointer}
.stk-pop{text-align:center}
.stk-pop a{display:inline-grid;justify-items:center;gap:6px;color:var(--ink);text-decoration:none}
.stk-pop strong{font:600 20px var(--display)}
.stk-pop .stk-more{color:var(--teal-ink);font:800 15px var(--body);text-decoration:underline}
.stk-pop .stk-sticker{width:128px;height:128px;border-width:6px;animation:stk-stick .45s cubic-bezier(.2,1.4,.4,1)}
.stk-ask{display:grid;justify-items:center;gap:8px}.stk-ask p{margin:0;font:600 18px var(--display)}
.stk-clear:hover{text-decoration:underline}
.stk-slot:focus-visible,.stk-animal:focus-visible,.stk-clear:focus-visible,.stk-pop a:focus-visible{outline:3px solid var(--sun);outline-offset:4px}
@keyframes stk-stick{from{transform:scale(1.7) rotate(-14deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.stk-pop .stk-sticker{animation:none}}

/* Levels */
[data-level="1"]{--lvl:#2f8f8a}[data-level="2"]{--lvl:#4f9a4b}[data-level="3"]{--lvl:#c07a12}[data-level="4"]{--lvl:#46549e}
@media (prefers-color-scheme:dark){[data-level="4"]{--lvl:#8b9ae0}}
[data-level] .skl-bubble{border-color:var(--lvl);background:color-mix(in srgb,var(--lvl) 10%,var(--paper))}
.lvl-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lvl-bar{display:flex;gap:4px;margin:0;padding:0;list-style:none}.lvl-bar[hidden]{display:none}
.lvl-step{position:relative;display:grid;place-items:center;width:48px;height:48px;padding:0;border:2px solid var(--line);border-radius:50%;background:var(--paper);font-size:22px;line-height:1;cursor:pointer}
.lvl-step[aria-current]{border-color:var(--lvl);box-shadow:0 0 0 2px var(--lvl)}
.lvl-done::after{content:"\2713";position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--success);color:var(--on-success);font:800 11px/1 var(--body)}
.lvl-step:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.lvl-dots{display:flex;gap:4px}.lvl-dots span{width:10px;height:10px;border:2px solid var(--lvl);border-radius:50%;box-sizing:border-box}.lvl-dots .lvl-on{background:var(--lvl)}
.lvl-prize{flex-basis:100%}
.lvl-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px}.lvl-title span{color:var(--ink);font:800 14px var(--body)}
@media(min-width:701px),(orientation:landscape){.ply-game .lvl-title{justify-content:center}}

/* Site-wide fixes */
.topics input:checked+span{background:var(--teal-fill);border-color:var(--teal-fill);color:var(--on-teal)}
:root{--action:#c24a38;--action-edge:#9c3a2a;--teal-fill:#176d69;--teal-edge:#0f5350;--on-teal:#fff;--success:#2f7d3b;--on-success:#fff;--cue-ink:#fff;--cue-shadow:#10201f}
@media (prefers-color-scheme:dark){:root{--teal-fill:#5cc6c0;--teal-edge:#3f9e98;--on-teal:#10201f}}
.btn.main{background:var(--action);box-shadow:0 3px 0 var(--action-edge)}
.btn.small{background:var(--teal-fill);color:var(--on-teal);box-shadow:0 3px 0 var(--teal-edge)}
.who.ezz,.who.nai{color:var(--ink);font-size:13px}
.ribbon.now{background:var(--success);color:var(--on-success)}
.menu-btn{min-width:44px;min-height:44px}
.sty-ezz{--sty-colour:var(--teal-fill)}.sty-nai{--sty-colour:var(--action)}
.sty-ezz .sty-pl-play,.sty-ezz .sty-pl-toggle[aria-pressed="true"]{color:var(--on-teal)}
.sty-pl-toggle{color:var(--ink)}
.page-top .xp-back+h1{margin-top:8px}
.sp-hero>.xp-back{grid-column:1/-1}
.hm-links{padding-block:8px 32px}.hm-links .wrap{display:flex;flex-wrap:wrap;gap:8px 24px}.hm-links a{min-height:48px;display:inline-flex;align-items:center;font-weight:800}
.jr-picker{align-items:start}
.ply-arrow{display:grid;place-items:center;width:100%;height:100%;color:var(--cue-ink);font:800 20px/1 var(--body);text-shadow:0 1px 3px var(--cue-shadow),0 0 3px var(--cue-shadow)}
.ply-swipe{font-size:28px;color:var(--teal-ink);animation:ply-nudge .8s ease-in-out 2}
@keyframes ply-nudge{25%{translate:-6px 0}75%{translate:6px 0}}
.ply-clue,.ply-lights{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:0 20px;border:2px solid var(--teal);border-radius:999px;background:var(--paper);color:var(--teal-ink);font:800 17px var(--body)}
.ply-clue[hidden],.ply-lights[hidden]{display:none}
@media(min-width:701px),(orientation:landscape){.ply-game h1,.ply-swipe{text-align:center}.ply-bubble{margin-inline:auto}.ply-help{justify-content:center}.ply-stage:fullscreen .ply-bubble{margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.ply-swipe{animation:none}}

/* Story pages: printables */
#printables .sp-resource{grid-template-columns:72px minmax(0,1fr);gap:14px}
#printables .sp-resource>img{width:72px;height:auto}
#printables h3{margin:0 0 6px}
#printables .sp-resource p{margin:0}
#printables article+article{margin-top:24px}
#printables .btn{min-height:48px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}
.sp-hero .sp-btns .btn{min-height:48px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:420px){.sp-hero .sp-btns{grid-template-columns:1fr}}
.jr-story-box .meta{margin:0 0 2px;font-weight:800}
.jr-story-box h2{font-size:clamp(21px,5.6vw,26px);margin:0 0 8px}
.jr-story-box p:not(.meta){margin:0 0 14px}

/* Find the differences */
.dif-game{max-width:1080px;margin:auto}.dif-game h1{margin:4px 0}.dif-game .lvl-top{flex-wrap:wrap}.dif-game .skl-bubble{max-width:640px;margin-inline:auto}
.dif-pair{display:grid;gap:12px}
.dif-picture{position:relative;aspect-ratio:3/2;min-width:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dif-picture img{display:block;width:100%;height:100%;border-radius:16px;box-shadow:0 0 0 2px var(--line)}
.dif-overlay{position:absolute;inset:0;pointer-events:none}
/* Rings: white edge plus a dark or coloured outline, so they show on pale paper and on dark outlines alike. Never recolour the pictures. */
.dif-mark,.dif-hint{position:absolute;box-sizing:border-box;aspect-ratio:1;min-width:48px;border:4px solid #fff;border-radius:50%;transform:translate(-50%,-50%)}
.dif-mark{box-shadow:0 0 0 3px var(--success),inset 0 0 0 2px var(--success)}
.dif-num{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;min-width:24px;height:24px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:var(--success);color:var(--on-success);font:800 13px/1 var(--body)}
.dif-hint{box-shadow:0 0 0 3px #5a3e2b,0 0 0 7px var(--sun)}
button.dif-hint{margin:0;padding:0;background:transparent;color:inherit;font:inherit;cursor:pointer;pointer-events:auto;-webkit-appearance:none;appearance:none}
button.dif-hint:focus-visible{outline:4px solid var(--teal-ink);outline-offset:4px}
.dif-pulse{animation:dif-pulse .75s ease-in-out 2}
@keyframes dif-pulse{50%{transform:translate(-50%,-50%) scale(1.15);box-shadow:0 0 0 3px #5a3e2b,0 0 0 10px var(--sun),0 0 20px 8px var(--sun)}}
@media(prefers-reduced-motion:reduce){.dif-pulse{animation:none}.dif-hint{box-shadow:0 0 0 3px #5a3e2b,0 0 0 9px var(--sun)}}
.dif-help{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:12px}
.dif-help .ply-clue:disabled{opacity:.6;cursor:default}
.dif-measure .dif-picture{touch-action:none}
@media(min-width:760px){.dif-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.dif-game h1{text-align:center}.dif-game .lvl-title{justify-content:center}}

/* For grown-ups: sections in order of importance */
.gu h2{font-size:22px;margin:32px 0 12px}.gu .lead{color:var(--soft);margin:0}
.gu-list{margin:0 0 12px;padding-left:20px}.gu-list li{margin:4px 0}
.gu .todo{margin-top:0}

/* How it works: links under the cards */
.hiw-links{display:flex;flex-wrap:wrap;gap:8px 24px;margin:16px 0 0}.hiw-links a{min-height:48px;display:inline-flex;align-items:center;font-weight:800}

/* Story pages: on phones the colouring rail shows two pages and a slice of the third, so it reads as swipeable */
@media (max-width:700px){.sp-thumbs>*{flex:0 0 calc((100% - 32px)/2.15)}}

/* Plan pages: the sentence under "Make your plan", and a row whose picture is 4:3 (shown whole, not cropped) */
.jm-plan-intro{margin:0 0 4px}
.jm-row-wide{grid-template-columns:149px minmax(0,1fr)}.jm-row-wide img{width:149px}
@media(min-width:760px){.jm-row-wide{grid-template-columns:213px minmax(0,1fr)}.jm-row-wide img{width:213px}}
