/* KinPella Reading — read-along player + library.
   Scoped under .rd so nothing collides with site.css. Tokens are the live
   KinPella site tokens (paper / ink / navy / primary / teal / sun).
   Motion: sink-then-spring presses, drawn success star, confetti reserved
   for real wins — per the App Motion Standard. */
.rd{
  --paper:#f7f8fb; --ink:#202d42; --navy:#101935; --navy2:#17244b;
  --primary:#6c57d8; --primary-dark:#5540b7; --teal:#76e1d2; --sun:#ffca71;
  --card:#ffffff; --soft:#eceafd; --muted:#5b6b8c;
  --spring:cubic-bezier(.34,1.56,.64,1);
  --ease-out:cubic-bezier(.22,1,.36,1);
  color:var(--ink);
  font-family:var(--font-ui);
  /* The page is designed responsively at every width; stop phone browsers
     (Chrome Android text autosizing / font boosting) inflating text inside
     the fixed-geometry cards — on the owner's phone that inflation made
     card text collide and clip (2026-11-30 recording). Designed metrics
     render as designed; Kids Mode remains the big-text route. */
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
.rd *{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
.rd-wrap{width:100%; max-width:430px; margin:0 auto; padding:0 16px 8px;}
.rd-lib-wrap{width:100%; max-width:860px; margin:0 auto; padding:0 16px 8px;}

/* ---------- navy band (player + library header) ---------- */
.rd-band{
  width:100%; color:#fff; padding:20px 0 32px;
  background:linear-gradient(150deg,var(--navy2) 0%,var(--navy) 70%);
  border-bottom-left-radius:28px; border-bottom-right-radius:28px;
}
.rd-hrow{display:flex; align-items:flex-start; justify-content:space-between; gap:12px;}
.rd-back{
  display:inline-flex; align-items:center; gap:6px; color:#c9d4f2; text-decoration:none;
  font-weight:700; font-size:14.5px; padding:8px 2px;
}
.rd-back:hover{color:#fff;}
.rd-kicker{font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); margin:2px 0 0;}
.rd-band h1{font-family:var(--font-ui); font-weight:900; font-size:30px; line-height:1.12; margin:8px 0 4px; color:#fff;}
.rd-band h1 em{font-style:normal; color:var(--sun);}
.rd-sub{color:#c9d4f2; font-size:15.5px; font-weight:500; margin:0; max-width:560px;}
.rd-search{display:flex; align-items:center; gap:9px; background:#fff; border-radius:999px; padding:6px 8px 6px 16px; margin-top:16px; max-width:560px; box-shadow:0 10px 24px -12px rgba(6,12,34,.45);}
.rd-search svg{flex:none;}
.rd-search input{flex:1; min-width:0; border:0; outline:none; background:none; font:inherit; font-size:16px; font-weight:600; color:var(--ink); min-height:44px;}
.rd-search-count{color:#c9d4f2; font-size:14px; font-weight:700; margin:10px 0 0;}
.rd-sub-kids{font-family:var(--font-read);display:none; color:#e8edfb; font-size:19px; line-height:1.6; font-weight:600; margin:0; max-width:560px;}
.rd-stars{
  display:flex; align-items:center; gap:6px; background:rgba(255,255,255,.10);
  border:1.5px solid rgba(255,255,255,.22); border-radius:999px; padding:7px 12px 7px 9px; flex:none;
}
.rd-stars svg{width:24px; height:24px; display:block;}
.rd-stars .rd-slot path{fill:rgba(255,255,255,.18); stroke:rgba(255,255,255,.55); stroke-width:1.6;}
.rd-stars .rd-slot.rd-won path{fill:var(--sun); stroke:#e8a93d;}
.rd-stars .rd-slot.rd-won{animation:rd-starpop .8s var(--spring);}
@keyframes rd-starpop{0%{transform:scale(.4) rotate(-30deg);} 60%{transform:scale(1.35) rotate(8deg);} 100%{transform:scale(1) rotate(0);}}
.rd-stars .rd-count{font-weight:900; font-size:14px; min-width:52px; color:#fff;}

/* ---------- story card / stage ---------- */
.rd-card{
  background:var(--card); border-radius:24px; margin-top:-14px;
  box-shadow:0 12px 32px rgba(16,25,53,.13), 0 2px 0 rgba(16,25,53,.05);
  padding:18px 16px 14px; position:relative;
}
.rd-charrow{display:flex; align-items:center; gap:12px; margin-bottom:4px;}
.rd-mascot{width:58px; height:58px; flex:none; border-radius:50%; display:grid; place-items:center; box-shadow:inset 0 -4px 0 rgba(0,0,0,.08);}
.rd-mascot svg{width:44px; height:44px;}
.rd-charname{font-family:var(--font-read); font-weight:800; font-size:19px;}
.rd-charhint{font-family:var(--font-read);color:var(--muted); font-size:14px; font-weight:500;}
.rd-stage{
  min-height:150px; display:flex; flex-wrap:wrap; align-content:center; align-items:center;
  padding:8px 2px 4px;
  font-family:var(--font-read); font-weight:800; font-size:31px; line-height:1.5; letter-spacing:.01em;
}
@media(min-width:1440px){.rd-stage{font-size:34px}}
@media(min-width:2200px){.rd-stage{font-size:38px;line-height:1.55}}
.rd-stage.rd-swap{animation:rd-swapin .35s cubic-bezier(.55,0,.1,1);}
@keyframes rd-swapin{from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);}}
.rd-w{
  display:inline-block; padding:1px 7px; margin:1px 1px; border-radius:12px; cursor:pointer;
  transition:background .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out);
}
.rd-w:active{transform:scale(.93);}
.rd-w.rd-hot{background:var(--sun); color:var(--ink); box-shadow:0 6px 14px -6px rgba(232,169,61,.6); transform:translateY(-2px) scale(1.06);}
.rd-w.rd-done{color:var(--primary-dark);}
.rd-dots{display:flex; gap:6px; justify-content:center; padding:10px 0 2px; flex-wrap:wrap;}
.rd-dots i{width:9px; height:9px; border-radius:50%; background:#d9dcea; transition:all .3s var(--ease-out);}
.rd-dots i.rd-on{background:var(--primary); transform:scale(1.35);}
.rd-dots i.rd-past{background:#b7aef0;}

.rd-controls{display:flex; gap:12px; margin-top:14px;}
.rd-btn{
  font-family:var(--font-read); font-weight:800; border:0; cursor:pointer; color:#fff;
  border-radius:999px; min-height:60px; font-size:19px; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  transition:transform .8s var(--spring), box-shadow .12s ease;
  touch-action:manipulation; user-select:none;
}
.rd-btn:active{transform:scale(.95); transition:transform .07s ease-in;}
.rd-btn-play{flex:1; background:var(--primary); box-shadow:0 10px 20px -8px rgba(85,64,183,.5), inset 0 1px 0 rgba(255,255,255,.35); font-size:21px;}
.rd-btn-replay{width:60px; flex:none; background:#fff; color:var(--primary-dark); box-shadow:0 10px 20px -10px rgba(85,64,183,.35), inset 0 0 0 2.5px var(--soft);}
.rd-btn svg{width:24px; height:24px; flex:none;}
.rd-nextrow{margin-top:10px; text-align:center;}
.rd-nextlink{color:var(--primary-dark); font-weight:800; font-size:16.5px; text-decoration:none; font-family:var(--font-read);}
.rd-nextlink:hover{text-decoration:underline;}

/* ---------- phonics ---------- */
.rd-phonics{margin-top:14px;}
.rd-phonics h2, .rd-note h2{font-family:var(--font-read); font-weight:900; font-size:21px; margin:0 0 3px;}
.rd-hint{color:var(--muted); font-size:14.5px; font-weight:500; margin:0 0 8px;}
.rd-chips{display:flex; gap:9px; flex-wrap:wrap;}
.rd-chip{
  font-family:var(--font-read); font-weight:800; font-size:19px; border:0; cursor:pointer;
  background:#fff; color:var(--ink); border-radius:999px; padding:12px 18px; min-height:52px;
  box-shadow:0 8px 16px -8px rgba(85,64,183,.30), inset 0 0 0 2px var(--soft);
  transition:transform .8s var(--spring), box-shadow .12s ease, background .2s;
  touch-action:manipulation; user-select:none; position:relative;
}
.rd-chip:active{transform:scale(.95); transition:transform .07s ease-in;}
.rd-chip.rd-sel{background:var(--primary); color:#fff; box-shadow:0 10px 20px -8px rgba(85,64,183,.5), inset 0 1px 0 rgba(255,255,255,.35);}
.rd-chip .rd-badge{position:absolute; top:-8px; right:-6px; width:24px; height:24px; display:none;}
.rd-chip.rd-complete .rd-badge{display:block; animation:rd-starpop .8s var(--spring);}
.rd-letters{display:flex; gap:10px; margin-top:10px; min-height:68px; align-items:flex-start; flex-wrap:wrap;}
.rd-tile{
  width:62px; height:68px; border:0; border-radius:18px; cursor:pointer;
  background:var(--soft); color:var(--primary-dark);
  font-family:var(--font-read); font-weight:900; font-size:34px;
  box-shadow:0 8px 16px -8px rgba(85,64,183,.30); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0;
  transition:transform .8s var(--spring), box-shadow .12s ease, background .25s cubic-bezier(.55,0,.1,1), color .2s cubic-bezier(.55,0,.1,1);
  touch-action:manipulation; user-select:none;
}
.rd-tile small{font-size:11.5px; font-weight:700; color:var(--muted); letter-spacing:.02em;}
.rd-tile:active{transform:scale(.93); transition:transform .07s ease-in;}
.rd-tile.rd-heard{background:var(--teal); color:#0d4a43; box-shadow:0 8px 16px -8px rgba(31,122,110,.45), inset 0 1px 0 rgba(255,255,255,.35);}
.rd-tile.rd-heard small{color:#0d4a43;}
.rd-tile.rd-bounce{animation:rd-bounce .7s var(--spring);}
@keyframes rd-bounce{0%{transform:scale(1);} 35%{transform:scale(1.22) rotate(-4deg);} 65%{transform:scale(.94);} 100%{transform:scale(1);}}

.rd-note{
  margin-top:14px; background:#fff; border-radius:20px; padding:13px 15px;
  box-shadow:0 8px 22px rgba(16,25,53,.09); display:flex; gap:13px; align-items:center;
}
.rd-note svg{width:40px; height:40px; flex:none;}
.rd-note p{margin:0; color:var(--muted); font-size:14.5px; font-weight:500;}
.rd-note h2{font-size:17.5px;}
.rd-foot{color:var(--muted); font-size:12.5px; text-align:center; padding:12px 0 4px; font-weight:500;}

/* ---------- reward overlay ---------- */
.rd-veil{
  position:fixed; inset:0; background:rgba(16,25,53,.55); backdrop-filter:blur(3px);
  display:none; align-items:center; justify-content:center; padding:22px; z-index:60;
}
.rd-veil.rd-show{display:flex;}
.rd-reward-card{
  background:#fff; border-radius:28px; padding:30px 24px 24px; text-align:center; max-width:340px; width:100%;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.rd-veil.rd-show .rd-reward-card{animation:rd-cardin .45s var(--spring);}
@keyframes rd-cardin{from{transform:scale(.8) translateY(26px); opacity:0;} to{transform:scale(1) translateY(0); opacity:1;}}
.rd-bigstar{width:118px; height:118px; margin:0 auto 6px; display:block;}
.rd-bigstar path{
  fill:none; stroke:#e8a93d; stroke-width:2.4; stroke-linejoin:round;
  stroke-dasharray:320; stroke-dashoffset:320;
}
.rd-veil.rd-show .rd-bigstar path{animation:rd-draw .47s var(--ease-out) .1s forwards, rd-fillin .3s ease .55s forwards;}
@keyframes rd-draw{to{stroke-dashoffset:0;}}
@keyframes rd-fillin{to{fill:var(--sun);}}
.rd-reward-card h3{font-family:var(--font-read); font-weight:900; font-size:27px; margin:6px 0 4px;}
.rd-reward-card p{color:var(--muted); font-weight:500; font-size:16px; margin:0 0 18px;}
.rd-btn-again{width:100%; background:var(--primary); box-shadow:0 10px 20px -8px rgba(85,64,183,.5), inset 0 1px 0 rgba(255,255,255,.35); margin-bottom:10px;}
.rd-btn-more{width:100%; background:#fff; color:var(--primary-dark); box-shadow:0 10px 20px -10px rgba(85,64,183,.35), inset 0 0 0 2.5px var(--soft);}
#rd-confetti{position:fixed; inset:0; pointer-events:none; z-index:70; display:none;}

/* ---------- library ---------- */
.rd-lib-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px;}
.rd-story-card{
  background:#fff; border-radius:24px; padding:20px; text-decoration:none; color:var(--ink);
  box-shadow:0 12px 32px rgba(16,25,53,.13), 0 2px 0 rgba(16,25,53,.05);
  display:flex; flex-direction:column; gap:8px; position:relative;
  transition:transform .8s var(--spring), box-shadow .12s ease;
}
.rd-story-card:active{transform:scale(.97); transition:transform .07s ease-in;}
.rd-story-card .rd-mascot{width:72px; height:72px;}
.rd-story-card .rd-mascot svg{width:56px; height:56px;}
.rd-story-card h3{font-family:var(--font-read); font-weight:900; font-size:23px; margin:2px 0 0;}
.rd-story-card p{margin:0; color:var(--muted); font-size:15px; font-weight:500;}
.rd-story-meta{display:flex; align-items:center; justify-content:space-between; margin-top:6px;}
.rd-story-count{font-weight:800; font-size:14px; color:var(--primary-dark); font-family:var(--font-read);}
.rd-story-stars{font-size:15px; letter-spacing:2px; color:#d9dcea;}
.rd-story-stars .rd-lit{color:#e8a93d;}
.rd-steps{display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; margin-top:22px;}
.rd-step{background:#fff; border-radius:20px; padding:16px 18px; box-shadow:0 8px 22px rgba(16,25,53,.09);}
.rd-step h3{font-family:var(--font-ui); font-weight:800; font-size:17.5px; margin:0 0 4px;}
.rd-step p{margin:0; color:var(--muted); font-size:14.5px; font-weight:500;}

@media (max-width:480px){
  .rd-band h1{font-size:27px;}
  .rd-stage{font-size:29px;}
}

/* ---------- the level path (library) ---------- */
.rd-level{margin-top:34px;}
/* Was margin-top:-14px (tucked under the navy band like the story card),
   but the level heading has no card background of its own — on the owner's
   phone the band painted over the top of the "Level 1" heading glyphs and
   clipped them (2026-12-01 recording). Positive clearance instead. */
.rd-level:first-of-type{margin-top:20px;}
.rd-level-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px;}
.rd-level-head h2{font-family:var(--font-ui); font-weight:900; font-size:24px; margin:0;}
.rd-level-head p{margin:2px 0 0; color:var(--muted); font-size:14.5px; font-weight:500;}
.rd-level-state{
  flex:none; font-family:var(--font-ui); font-weight:800; font-size:14px;
  background:var(--soft); color:var(--primary-dark); border-radius:999px; padding:7px 14px;
  /* Status label, not text to copy: a long-press on "Open" selected the word
     and popped the phone's dictionary card over the page (2026-12-01 recording). */
  user-select:none; -webkit-user-select:none;
}
.rd-level-state.rd-state-locked{background:#f3ddba; color:#7a5410;}
.rd-level-state.rd-state-done{background:#d9f2c9; color:#33691e;}
.rd-level-progress{font-family:var(--font-read); font-weight:800; font-size:15px; color:var(--primary-dark); margin:10px 0 6px;}
.rd-progressbar{height:12px; border-radius:999px; background:#e4e1f5; overflow:hidden; margin-bottom:16px;}
.rd-progressbar i{display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--primary),#8f7ef0); transition:width .6s var(--ease-out);}
.rd-path-arrow{
  text-align:center; font-family:var(--font-ui); font-weight:800; font-size:15px;
  color:var(--muted); margin-top:26px;
}
.rd-level-locked .rd-story-card{background:#fdfbf7;}
.rd-story-card .rd-lock{
  display:flex; align-items:center; gap:8px; font-family:var(--font-ui); font-weight:800;
  font-size:14.5px; color:#7a5410; background:#fdf1d7; border-radius:14px; padding:9px 12px;
}
.rd-story-card .rd-lock[hidden]{display:none;}
.rd-story-card.rd-locked .rd-mascot{filter:saturate(.55);}
.rd-shake{animation:rd-shake .45s var(--ease-out);}
@keyframes rd-shake{0%,100%{transform:translateX(0);} 25%{transform:translateX(-6px);} 55%{transform:translateX(5px);} 80%{transform:translateX(-3px);}}
.rd-unlock-banner{
  margin-top:-14px; background:#fff8e6; border:2px solid var(--sun); border-radius:22px;
  padding:16px 18px; display:flex; gap:13px; align-items:center;
  box-shadow:0 12px 32px rgba(232,169,61,.25);
  animation:rd-cardin .5s var(--spring);
}
.rd-unlock-banner[hidden]{display:none;}
.rd-unlock-banner svg{width:44px; height:44px; flex:none;}
.rd-unlock-banner h2{font-family:var(--font-read); font-weight:900; font-size:21px; margin:0 0 2px;}
.rd-unlock-banner p{margin:0; color:var(--muted); font-size:14.5px; font-weight:500;}
.rd-lockbig{font-size:64px; line-height:1.1;}

/* ---------- three ways to read (story page) ---------- */
.rd-modes{margin-top:-14px; background:#fff; border-radius:22px; padding:14px; box-shadow:0 12px 32px rgba(16,25,53,.13), 0 2px 0 rgba(16,25,53,.05);}
.rd-modes-title{font-family:var(--font-read); font-weight:900; font-size:18px; margin:0 0 8px;}
/* Professional segmented bar (owner-approved sample, 2026-12-01): ONE
   connected pill track replaces the three chunky mode cards — three
   equal segments (drawn icon over a short label), a purple gradient
   pill that SLIDES to the active segment, and the active mode's
   description on ONE line under the bar. Same bar at every width —
   phone, Fold, browser. Mode behaviour is unchanged; only the
   picker's presentation moved.
   Pill position is PURE CSS (fix 2026-12-01, owner's phone recording):
   the bar is a strict 3-column grid, so segments are exact thirds by
   construction, and the pill's width + inset-inline-start derive from
   the active index (--pill-i) with percentages only — no JS offset
   measurement anywhere, so load timing, font swaps, entry animations
   and resize bursts can never leave the pill at a stale size. The
   index comes from the .rd-mode-on class via :has(), with reading.js
   setting the same variable inline as a fallback for engines without
   :has(). Logical properties mirror the pill in RTL for free. The
   slide transition arms only once reading.js adds .rd-bar-live after
   the first frame, so the pill never animates in from Listen on load. */
.rd-modebar{
  --pill-i:0;
  position:relative; display:grid; grid-template-columns:repeat(3,1fr);
  background:var(--soft); border-radius:999px; padding:4px;
  box-shadow:inset 0 2px 6px rgba(85,64,183,.12);
}
.rd-modebar:has(> .rd-mode[data-rd-mode="together"].rd-mode-on){--pill-i:1;}
.rd-modebar:has(> .rd-mode[data-rd-mode="myself"].rd-mode-on){--pill-i:2;}
.rd-modebar-pill{
  position:absolute; top:4px; bottom:4px; border-radius:999px;
  width:calc((100% - 8px) / 3);
  inset-inline-start:calc(4px + var(--pill-i) * ((100% - 8px) / 3));
  background:linear-gradient(160deg,#7a68e0,#5d47c9);
  box-shadow:0 10px 20px -8px rgba(85,64,183,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.rd-modebar.rd-bar-live .rd-modebar-pill{
  transition:inset-inline-start .45s cubic-bezier(.34,1.4,.64,1);
}
.rd-mode{
  position:relative; z-index:1; min-width:0;
  border:0; cursor:pointer; border-radius:999px; min-height:58px; padding:6px 4px;
  background:transparent; color:var(--ink);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; text-align:center;
  font-family:var(--font-read);
  transition:color .25s ease, transform .55s var(--spring);
  touch-action:manipulation; user-select:none; -webkit-user-select:none;
}
/* Apple press feel (owner steer 2026-12-01): quick sink in (~80ms),
   then the .55s house spring back with its slight overshoot pop. */
.rd-mode:active{transform:scale(.96); transition:transform .08s ease-in;}
.rd-mode-ico{
  width:23px; height:23px; flex:none; display:block;
  stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round;
}
.rd-mode-name{font-weight:800; font-size:13.5px; line-height:1.15; max-width:100%; overflow-wrap:break-word;}
.rd-mode.rd-mode-on{color:#fff;}
.rd-mode-desc-line{
  font-family:var(--font-read); font-weight:500; font-size:13.5px; color:var(--muted);
  line-height:1.35; text-align:center; margin:10px 0 0; transition:opacity .12s ease;
}
.rd-mode-desc-line.rd-desc-fade{opacity:0;}
@media (prefers-reduced-motion: reduce){
  .rd-modebar-pill{transition:none;}
  .rd-mode{transition:none;}
  .rd-mode-desc-line{transition:none;}
}
.rd .rd-card{margin-top:10px;}

/* Phone story flow (owner recording 2026-11-30): the band and stage
   give back their dead air so the story + Play controls sit on the
   first screen and Sound it out follows right under the card. The mode
   picker needs no phone variant any more — the segmented bar (above)
   is one row at every width by design (owner-approved 2026-12-01). */
@media (max-width:560px){
  .rd-band{padding:14px 0 24px;}
  .rd-band h1{margin:6px 0 2px;}
  .rd-stage{padding-top:4px;}
}
@media (max-width:480px){
  /* 3 lines of the 29px phone stage fit in 132px (3 x 43.5 = 130.5);
     the old 150px floor left dead air under short sentences. */
  .rd-stage{min-height:132px;}
}
.rd-m-myself .rd-controls{display:none;}

/* ---------- your turn (Read Together) + self-read controls ---------- */
.rd-turn{
  margin-top:14px; background:#fff8e6; border:2px dashed #e8a93d; border-radius:18px; padding:14px;
  animation:rd-cardin .4s var(--spring);
}
.rd-turn[hidden]{display:none;}
.rd-turn-text{font-size:18px; font-weight:500; margin:0 0 12px; text-align:center;}
.rd-turn-text strong{font-family:var(--font-read); font-weight:900;}
.rd-turn-row{display:flex; gap:10px; flex-wrap:wrap;}
.rd-btn-done{flex:1; background:#2f9e8f; box-shadow:0 10px 20px -8px rgba(31,122,110,.5), inset 0 1px 0 rgba(255,255,255,.35); font-size:18px; min-height:56px;}
.rd-btn-hear{background:#fff; color:var(--primary-dark); box-shadow:0 10px 20px -10px rgba(85,64,183,.35), inset 0 0 0 2.5px var(--soft); font-size:16.5px; min-height:56px; padding:0 18px;}
.rd-selfrow{display:flex; gap:10px; margin-top:14px; align-items:stretch;}
.rd-selfrow[hidden]{display:none;}
.rd-btn-next{flex:1; background:var(--primary); box-shadow:0 10px 20px -8px rgba(85,64,183,.5), inset 0 1px 0 rgba(255,255,255,.35); font-size:19px; min-height:56px;}
.rd-btn-prev{width:56px; flex:none; background:#fff; color:var(--primary-dark); box-shadow:0 10px 20px -10px rgba(85,64,183,.35), inset 0 0 0 2.5px var(--soft); font-size:19px; min-height:56px;}
.rd-selfrow .rd-btn-hear{flex:1;}

/* ── Kids Mode (owner 2026-11-28: EVERYTHING becomes for the kids) ──────
   Reading is already a child's space; with body.kids-mode on (set by the
   site header prefs script from kinpella_prefs_v1) everything steps up
   again — giant story words, a grown-up mode bar, phonics tiles
   a small finger cannot miss — and reading.js defaults the player to
   Listen mode (audio-first). Off = the sizes above, untouched. */
body.kids-mode .rd-stage{font-size:37px;line-height:1.55;min-height:170px}
body.kids-mode .rd-mode{min-height:76px;gap:3px}
body.kids-mode .rd-mode-ico{width:28px;height:28px}
body.kids-mode .rd-mode-name{font-size:16.5px}
body.kids-mode .rd-mode-desc-line{font-size:15.5px}
body.kids-mode .rd-btn{min-height:68px;font-size:21px}
body.kids-mode .rd-btn-play{font-size:24px}
body.kids-mode .rd-btn-replay{width:68px}
body.kids-mode .rd-btn-next,body.kids-mode .rd-btn-prev{min-height:64px}
body.kids-mode .rd-charname{font-size:22px}
body.kids-mode .rd-charhint{font-size:16px}
body.kids-mode .rd-mascot{width:68px;height:68px}
body.kids-mode .rd-chip{min-height:60px;font-size:21px;padding:14px 22px}
body.kids-mode .rd-tile{min-width:76px;min-height:76px;font-size:26px}
body.kids-mode .rd-band h1{font-size:35px}
body.kids-mode .rd-sub{display:none}
body.kids-mode .rd-sub-kids{display:block}
/* Kids layout fix (owner screenshot 2026-11-28): the first level section
   carries margin-top:-14px (the card-over-band overlap) — with the kids
   hero taller, that pulled the "Level 1" heading half under the hero's
   rounded bottom edge and half-clipped its Open pill over the band.
   In kids mode the heading sits fully clear below the hero instead. */
body.kids-mode .rd-level:first-of-type{margin-top:26px}
body.kids-mode .rd-unlock-banner{margin-top:22px}
body.kids-mode .rd-level-head{flex-wrap:wrap}
body.kids-mode .rd-level-head h2{font-size:26px}
body.kids-mode .rd-level-state{min-height:42px; display:inline-flex; align-items:center; font-size:15.5px; padding:9px 16px}
body.kids-mode .rd-grown,html.kids-mode .rd-grown{display:none!important}
body.kids-mode .rd-nextlink{font-size:19px;padding:12px 8px;display:inline-block}
body.kids-mode .rd-back{min-height:48px;font-size:16.5px}

/* ── Side-space layout (owner order 2026-11-30, Fold recording of
   "Pip the Pup": "the top is top notch but the bottom — all of those
   things laying on top of each other… split that up to the sides") ──
   At tablet/Fold widths and up the story page leaves the 430px phone
   column: the wrap takes the site measure (1180px) and the stacked
   flow splits two ways — the read itself (mode picker + story stage
   + Play controls) in the main column, Sound it out + the star note
   + next-story in a side column — so the sides carry content instead
   of sitting empty white. Sound it out takes the page's white-card
   treatment in its column. Phone (<=699px) keeps the shipped layout
   byte-for-byte: no rule below can match there. Kids Mode rides the
   same split with its big sizes untouched (targets stay >=56px). */
@media (min-width:700px){
  .rd-wrap{max-width:1180px}
  .rd > .rd-wrap{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    column-gap:22px;
    align-items:start;
  }
  .rd > .rd-wrap > .rd-modes{grid-column:1; grid-row:1; min-width:0;}
  .rd > .rd-wrap > .rd-card{grid-column:1; grid-row:2; min-width:0;}
  .rd > .rd-wrap > .rd-phonics{
    grid-column:2; grid-row:1 / span 2; min-width:0; margin-top:-14px;
    background:var(--card); border-radius:24px; padding:18px 16px 16px;
    box-shadow:0 12px 32px rgba(16,25,53,.13), 0 2px 0 rgba(16,25,53,.05);
  }
  .rd > .rd-wrap > .rd-note{grid-column:2; grid-row:3; min-width:0;}
  .rd > .rd-wrap > .rd-nextrow{grid-column:2; grid-row:4; min-width:0;}
  .rd > .rd-wrap > .rd-foot{grid-column:1 / -1; grid-row:5;}
}
@media (min-width:1100px){
  .rd > .rd-wrap{grid-template-columns:minmax(0,1fr) 360px;}
  .rd-lib-wrap{max-width:1180px}
}
