/* ============================================================
   FABLE PIXELS — APP SHELL STYLES
   Tab bar, hub pages (paths, feelings, timeline, ways to know, me)
   Uses the kid design tokens from stories.css.
   ============================================================ */

/* ---------- bottom tab bar (phones and small tablets) ---------- */
.tabbar{display:none}
@media (max-width:760px){
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(255,255,255,.97);
    border-top:2px solid var(--k-line,#DCD3F5);padding:6px 4px calc(6px + env(safe-area-inset-bottom));justify-content:space-around;
    backdrop-filter:blur(6px)}
  .tabbar .tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:56px;justify-content:center;
    text-decoration:none;color:var(--k-ink2,#4A4468);font-size:13px;font-weight:600;border-radius:14px;max-width:96px}
  .tabbar .tab img{width:30px;height:30px}
  .tabbar .tab.on{color:var(--k-acc-deep,#43299E);background:var(--k-soft,#EDE7FF)}
  body.has-tabbar{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  body.has-tabbar .topbar .tb-nav{display:none}
  body.has-tabbar .tb-brand span:last-child{display:inline}
}
@media print{.tabbar{display:none!important}}

/* ---------- hub page basics ---------- */
.hub-head{display:flex;align-items:flex-start;gap:14px;margin:22px 0 6px}
.hub-head img{width:64px;height:64px;flex-shrink:0}
.hub-head h1{font-size:clamp(28px,5vw,40px);line-height:1.15;margin:0 0 4px}
.hub-head p{font-size:18px;color:var(--k-ink2);margin:0;max-width:60ch}
.sec-head .more{font-size:16px;font-weight:600;color:var(--k-acc-deep);text-decoration:none;white-space:nowrap}
.sec-head .more:hover{text-decoration:underline}

/* horizontal scroller for rows on the home tab */
.row-scroll{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 14px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.row-scroll > *{scroll-snap-align:start;flex-shrink:0}

/* small story card (used by paths, feelings, timeline, ways) */
.mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.mini-card{display:flex;flex-direction:column;background:#fff;border:2px solid var(--k-line);border-radius:20px;overflow:hidden;
  text-decoration:none;color:var(--k-ink);min-width:0}
.row-scroll .mini-card{width:200px}
.mini-card:hover{border-color:var(--k-acc);box-shadow:0 8px 20px rgba(107,79,216,.18)}
.mini-card .art{position:relative;display:flex;align-items:center;justify-content:center;height:120px}
.mini-card .art img{width:84px;height:84px}
.mini-card .tag{position:absolute;left:8px;top:8px;padding:2px 9px;border-radius:999px;font-size:13px;font-weight:600;background:rgba(255,255,255,.92);color:var(--k-ink2)}
.mini-card .tag.prog{background:var(--k-acc);color:#fff}
.mini-card .tag.played{background:var(--k-ok);color:#fff}
.mini-card .t{padding:10px 12px 2px;font-weight:700;font-size:17px;line-height:1.3}
.mini-card .q{padding:0 12px 6px;font-size:15px;line-height:1.4;color:var(--k-ink2)}
.mini-card .meta{padding:0 12px 10px;font-size:14px;color:var(--k-ink3);margin-top:auto}

/* ---------- feelings ---------- */
.feel-row{display:flex;flex-wrap:wrap;gap:10px}
.feel{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:0 18px 0 8px;border-radius:28px;border:2px solid transparent;
  background:var(--fc,#fff);color:var(--k-ink);font-size:17px;font-weight:600;text-decoration:none;cursor:pointer}
.feel img{width:40px;height:40px}
.feel:hover,.feel[aria-pressed="true"]{border-color:var(--k-ink)}
.feel-panel{background:var(--fc,#fff);border-radius:26px;padding:22px;margin:16px 0 8px}
.feel-panel .pip{display:flex;gap:14px;align-items:flex-start}
.feel-panel .pip img{width:64px;height:64px;flex-shrink:0}
.feel-panel .say{font-size:19px;line-height:1.5}
.try{display:flex;gap:12px;align-items:center;background:#fff;border-radius:18px;padding:14px 16px;margin:14px 0;font-size:17px}
.try b{white-space:nowrap}

/* ---------- paths ---------- */
.path-card{display:flex;flex-direction:column;gap:10px;background:var(--pc,#fff);border-radius:24px;padding:18px;text-decoration:none;color:var(--k-ink);
  border:2px solid transparent;min-width:0}
.row-scroll .path-card{width:280px}
.path-card:hover{border-color:var(--k-ink)}
.path-card .top{display:flex;gap:12px;align-items:center}
.path-card .top img{width:56px;height:56px}
.path-card .n{font-size:21px;font-weight:700;line-height:1.2}
.path-card .a{font-size:14px;color:var(--k-ink2)}
.path-card .b{font-size:16px;color:var(--k-ink2);line-height:1.45}
.path-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.steps{display:flex;gap:6px;align-items:center}
.steps .s{flex:1;height:10px;border-radius:999px;background:rgba(255,255,255,.75)}
.steps .s.past{background:var(--k-ok)}
.steps .lbl{font-size:14px;font-weight:600;color:var(--k-ink2);white-space:nowrap;margin-left:6px}
.stamp-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:var(--k-ok);color:#fff;font-size:14px;font-weight:700;align-self:flex-start}

/* path detail: a trail of numbered stops */
.trail{list-style:none;padding:0;margin:18px 0;display:flex;flex-direction:column;gap:0}
.trail li{display:flex;gap:16px;align-items:stretch}
.trail .dot{display:flex;flex-direction:column;align-items:center;width:44px;flex-shrink:0}
.trail .dot b{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:3px solid var(--k-line);font-size:18px}
.trail .dot i{flex:1;width:4px;background:var(--k-line);margin:4px 0;min-height:16px}
.trail li:last-child .dot i{display:none}
.trail li.done .dot b{background:var(--k-ok);border-color:var(--k-ok);color:#fff}
.trail li.next .dot b{background:var(--k-sun);border-color:var(--k-sun-deep)}
.trail .stop{flex:1;display:flex;gap:14px;align-items:center;background:#fff;border:2px solid var(--k-line);border-radius:20px;padding:12px 14px;margin-bottom:12px;text-decoration:none;color:var(--k-ink)}
.trail li.next .stop{border-color:var(--k-acc);box-shadow:0 6px 18px rgba(107,79,216,.18)}
.trail .stop img{width:56px;height:56px;flex-shrink:0}
.trail .stop .t{font-weight:700;font-size:18px}
.trail .stop .q{font-size:15px;color:var(--k-ink2)}
.trail .stop .go{margin-left:auto;font-weight:700;color:var(--k-acc-deep);white-space:nowrap}

/* ---------- timeline ---------- */
.era{display:grid;grid-template-columns:56px 1fr;gap:14px;margin-bottom:6px}
.era .rail{display:flex;flex-direction:column;align-items:center}
.era .rail img{width:48px;height:48px;background:#fff;border:2px solid var(--k-line);border-radius:50%;padding:6px}
.era .rail i{flex:1;width:4px;background:var(--k-line);margin-top:4px}
.era:last-child .rail i{display:none}
.era h2{font-size:22px;margin:10px 0 10px}
.era .mini-grid{margin-bottom:18px}
.where{display:flex;gap:3px;margin:6px 0 2px}
.where span{flex:1;height:8px;border-radius:999px;background:var(--k-line)}
.where span.on{background:var(--k-acc)}

/* ---------- ways to know ---------- */
.way-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.way-card{background:var(--ls,#fff);border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:8px;border:2px solid transparent;text-decoration:none;color:var(--k-ink)}
.way-card.lens-now{border-color:var(--lc)}
.way-card .top{display:flex;gap:12px;align-items:center}
.way-card .top img{width:52px;height:52px}
.way-card .n{font-size:20px;font-weight:700}
.way-card .tk{font-size:14px;color:var(--k-ink2)}
.way-card .c{font-size:15px;color:var(--k-ink2)}
.moments{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:8px}
.moments a{display:flex;gap:12px;align-items:center;background:#fff;border-radius:16px;padding:10px 12px;text-decoration:none;color:var(--k-ink);font-size:16px}
.moments a img{width:40px;height:40px;flex-shrink:0}
.moments a span{display:block}
.moments a .s{font-size:14px;color:var(--k-ink3)}

/* ---------- filters on the stories tab ---------- */
.filters{display:flex;flex-direction:column;gap:10px;margin:8px 0 14px}
.filters .chips{margin:0}
.view-toggle{display:inline-flex;border:2px solid var(--k-line);border-radius:999px;background:#fff;padding:3px}
.view-toggle button{min-height:44px;padding:0 16px;border:0;border-radius:999px;background:transparent;font-size:16px;font-weight:600;color:var(--k-ink2);cursor:pointer}
.view-toggle button[aria-pressed="true"]{background:var(--k-ink);color:#fff}

/* ---------- me tab ---------- */
.me-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:12px 0}
.me-stat{background:#fff;border:2px solid var(--k-line);border-radius:20px;padding:14px;text-align:center}
.me-stat b{display:block;font-size:34px;line-height:1.1}
.me-stat span{font-size:15px;color:var(--k-ink2)}
.stamp-row{display:flex;flex-wrap:wrap;gap:10px}
.stamp{display:flex;flex-direction:column;align-items:center;gap:4px;width:104px;text-align:center;font-size:14px;font-weight:600;text-decoration:none;color:var(--k-ink)}
.stamp .disc{width:76px;height:76px;border-radius:20px;display:flex;align-items:center;justify-content:center;background:#fff;border:2px dashed var(--k-line)}
.stamp .disc img{width:52px;height:52px;opacity:.35;filter:grayscale(1)}
.stamp.got .disc{border:3px solid var(--k-ok);transform:rotate(-4deg);box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 5px var(--k-ok)}
.stamp.got .disc img{opacity:1;filter:none}
.stamp .sub{font-weight:400;color:var(--k-ink3);font-size:13px}

/* install card (grown-ups corner and me tab) */
.install{display:flex;gap:14px;align-items:center;background:var(--k-soft);border-radius:22px;padding:16px 18px}
.install img{width:56px;height:56px;border-radius:14px}
.install .t{font-weight:700;font-size:18px}
.install .d{font-size:15px;color:var(--k-ink2)}

/* path banner on a story's start screen */
.path-note{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:var(--k-soft);font-size:15px;font-weight:600;color:var(--k-acc-deep);text-decoration:none}
.path-note img{width:24px;height:24px}

/* ---------- home tools on phones: players on one line, tools on the next ---------- */
@media (max-width:560px){
  .lib-tools{gap:8px}
  .lib-tools .who{flex-basis:100%;min-width:0}
  .lib-tools > .pill{flex:1 1 0;justify-content:center;padding:0 10px;min-width:0}
  .lib-tools > .pill span:not(.aa){font-size:14px}
  .lib-tools #wideLbl,.lib-tools #readLbl{display:none}
}

/* "keep going" card on a light story cover: dark text so it stays readable */
.keep.light{color:var(--k-ink)}
.keep.light .eyebrow{color:var(--k-ink2)}
.keep.light .bar{background:rgba(42,33,64,.18)}
.keep.light .bar.now{background:var(--k-ink)}
.keep.light .round{background:rgba(255,255,255,.6)}
.keep.light .round svg path{stroke:var(--k-ink)}
.way-grid{align-items:start}
button.way-card{justify-content:flex-start;align-items:stretch;width:100%;border-style:solid}
button.way-card .c{display:block}
@media (max-width:560px){ .lib-tools > .pill[data-gate]{flex:0 0 auto} }

/* ---------- story preview card ("What to expect") ---------- */
.preview{background:#fff;border:2px solid var(--k-line);border-radius:20px;padding:12px 16px;margin:0 0 16px;display:flex;flex-direction:column;gap:8px;max-width:620px}
.pv-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pv-t{font-weight:700;font-size:18px}
.pv-row{display:grid;grid-template-columns:100px 1fr;gap:10px;font-size:16px;line-height:1.45;color:var(--k-ink)}
.pv-k{font-weight:600;color:var(--k-ink3)}
.pv-roles{display:flex;flex-wrap:wrap;gap:6px}
.pv-roles span{padding:2px 10px;border-radius:999px;background:var(--k-sun);font-weight:600;font-size:15px}
@media (max-width:420px){.pv-row{grid-template-columns:1fr;gap:2px}}

/* ---------- screens left (inside the story picture) ---------- */
.left-pill{position:absolute;right:12px;bottom:12px;z-index:3;display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;
  background:rgba(255,255,255,.92);font-size:15px;font-weight:600;color:var(--k-ink)}
.lp-bar{display:inline-block;width:56px;height:8px;border-radius:999px;background:var(--k-line);overflow:hidden}
.lp-bar i{display:block;height:100%;background:var(--k-acc);border-radius:999px}
@media (max-width:640px){.left-pill{right:8px;bottom:8px;font-size:13px;padding:4px 10px}.lp-bar{width:40px}}

/* ---------- put it in order ---------- */
.o-slots{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:12px;margin:18px 0 6px;max-width:900px}
.o-slot,.o-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;padding:12px 8px;
  border-radius:22px;font:inherit;color:var(--k-ink);cursor:pointer;text-align:center}
.o-slot{background:var(--k-soft2);border:3px dashed var(--k-line)}
.o-slot.full{background:#fff;border:3px solid var(--k-acc)}
.o-slot.ok{background:#E3F0DF;border:3px solid var(--k-ok);cursor:default}
.o-slot.ok::after{content:"✓";position:absolute;right:10px;top:8px;font-weight:700;color:var(--k-ok);font-size:20px}
.o-num{position:absolute;left:10px;top:8px;width:30px;height:30px;border-radius:50%;background:var(--k-ink);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:16px}
.o-empty{font-size:34px;color:var(--k-ink3);font-weight:700}
.o-slot img,.o-card img{width:72px;height:72px}
.o-name{font-weight:700;font-size:16px;line-height:1.25}
.o-pile{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 0}
.o-card{width:160px;background:#fff;border:3px solid var(--k-line);box-shadow:0 5px 0 var(--k-line)}
.o-card:active{transform:translateY(3px);box-shadow:0 2px 0 var(--k-line)}
.o-card.hint{border-color:var(--k-sun-deep);box-shadow:0 0 0 6px var(--k-sun),0 5px 0 var(--k-sun-deep);animation:oPulse 1.2s ease-in-out infinite}
@keyframes oPulse{50%{transform:scale(1.04)}}
html.fp-calm .o-card.hint{animation:none}
@media (prefers-reduced-motion:reduce){.o-card.hint{animation:none}}
.o-msg{display:flex;gap:12px;align-items:center;border-radius:20px;padding:12px 16px;margin:10px 0;font-size:18px;line-height:1.45;max-width:900px;background:var(--k-soft)}
.o-msg img{width:52px;height:52px;flex-shrink:0}
.o-msg.win{background:#E3F0DF}
.o-msg.hint{background:#FFF1C9}
@media (max-width:560px){
  .o-slots{grid-template-columns:repeat(2,1fr)}
  .o-slot,.o-card{min-height:120px}
  .o-card{width:calc(50% - 6px)}
  .o-slot img,.o-card img{width:56px;height:56px}
}
/* first-screen tap hint sits above the screens-left counter on small screens */
@media (max-width:640px){.tap-hint{bottom:46px}}

/* ---------- game feel: the picture reacts ---------- */
.burst{position:absolute;left:50%;top:45%;width:0;height:0;z-index:4;pointer-events:none}
.burst img{position:absolute;width:30px;height:30px;left:-15px;top:-15px;opacity:0;animation:fpBurst .9s ease-out forwards}
@keyframes fpBurst{
  0%{opacity:0;transform:rotate(var(--a)) translateY(0) scale(.4)}
  20%{opacity:1}
  100%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1.1)}
}
.glow-pulse{position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 0 var(--gc);animation:fpGlow 1.2s ease-out forwards}
@keyframes fpGlow{0%{box-shadow:inset 0 0 0 0 var(--gc)}40%{box-shadow:inset 0 0 60px 8px var(--gc)}100%{box-shadow:inset 0 0 0 0 var(--gc)}}
.stage.cheer .prop img{animation:fpCheer .7s ease 1}
@keyframes fpCheer{0%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-14%) rotate(-6deg)}60%{transform:translateY(0) rotate(5deg)}80%{transform:translateY(-5%) rotate(0)}}
html.fp-calm .stage.cheer .prop img{animation:none}
.end-art{position:relative;display:inline-block}
.end-art .burst{top:50%}
@media (prefers-reduced-motion:reduce){.burst,.stage.cheer .prop img{animation:none!important;display:none}.glow-pulse{animation:none}}

/* ---------- your story (end screen) ---------- */
.ys-sum{font-size:18px;line-height:1.5;margin:4px 0 10px}
.ys-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.ys-list li{display:flex;gap:12px;align-items:center;background:var(--k-soft2);border-radius:16px;padding:8px 12px}
.ys-list img{width:40px;height:40px;flex-shrink:0}
.ys-list li > span{display:flex;flex-direction:column;gap:2px}
.ys-q{font-size:16px;font-weight:600}
.ys-k{font-size:14px;font-weight:600;align-self:flex-start;padding:1px 10px;border-radius:999px}
.ys-k.same{background:#E3F0DF;color:#2E6B4F}
.ys-k.own{background:#FFF1C9;color:#7A5A10}
.ys-k.open{background:#ECE6F6;color:#43299E}

/* ---------- shorter story scene (publisher review): about a third less height ---------- */
.stage{height:clamp(200px,30vh,260px)}
@media (max-width:640px){.stage{height:auto;aspect-ratio:16/10}}
.cover-art{min-height:220px}
.cover-art img{width:min(190px,50%)}
.end-art img{width:72px!important;height:72px!important}

/* ---------- slimmer ending: one column, grown-up extras behind one tap ---------- */
.end1{max-width:760px;margin:18px auto 0;display:flex;flex-direction:column;gap:14px}
.end1-head{display:flex;align-items:center;gap:16px}
.end1-head h1{margin:0;font-size:clamp(28px,4vw,40px);line-height:1.1}
.end1-head .end-art img{width:80px!important;height:80px!important}
.end1 .panel h2{margin:0 0 10px;font-size:22px}
.end1-sub{margin:12px 0 6px;font-size:15px;font-weight:600;color:var(--k-ink3)}
.end1-pip .who{font-size:20px!important;color:var(--k-ink)!important;font-weight:700!important}
.end1 .cover-btns{margin:0}
.end1-order{display:flex;gap:12px;align-items:center;padding:12px 16px;border-radius:18px;background:#F5ECDA;text-decoration:none;color:var(--k-ink);font-size:16px}
.end1-order img{width:44px;height:44px}
.end1-grown{background:#fff;border:2px solid var(--k-line);border-radius:18px;padding:0}
.end1-grown summary{cursor:pointer;padding:14px 16px;font-weight:600;font-size:16px;color:var(--k-acc-deep);list-style-position:inside}
.end1-gbody{padding:0 16px 16px;display:flex;flex-direction:column;gap:10px}
.end1-gbody .ask-card{margin:0}
/* phones: roomier story text */
@media (max-width:640px){
  .dialog{padding:8px 10px;gap:8px}
  .dialog .av{width:38px!important;height:38px!important;align-self:flex-start}
  .dialog .round{width:44px;height:44px}
  .tap-hint{left:8px;bottom:8px;transform:none;font-size:12px;padding:4px 10px}
}

/* 3D pictures are 256px: keep them at or near that so they stay sharp */
.prop{max-width:160px;max-height:160px}

/* ============================================================
   STORY READER (story-player.js): the same look as the Home page.
   Cream page, white rounded cards, thin lavender lines, one 3D picture,
   yellow "go" buttons, Lexend. Interactivity is hinted, not shouted:
   dotted words, soft rings, a small sparkle.
   ============================================================ */
#player .btn-main{background:var(--k-sun);color:var(--k-ink);box-shadow:0 5px 0 var(--k-sun-deep)}
#player .btn-main:active{box-shadow:0 2px 0 var(--k-sun-deep)}
#player .pip{border:2px solid var(--k-line);box-shadow:0 4px 12px rgba(42,33,64,.05)}
#player .cover-art{min-height:260px;box-shadow:0 6px 18px rgba(42,33,64,.07)}
#player .cover-art img{width:min(160px,46%)}
.rd-top{position:sticky;top:0;z-index:5;background:rgba(253,246,236,.95);backdrop-filter:blur(6px);margin:0;padding:8px 0 0;border-bottom:1px solid #EFE6D6;box-shadow:0 0 0 100vmax rgba(253,246,236,.95);clip-path:inset(0 -100vmax)}
.rd-in{display:flex;align-items:center;gap:10px}
.rd-top .round{width:48px;height:48px;flex-shrink:0}
.rd-top .round img{width:28px;height:28px}
.rd-top .round.on{box-shadow:inset 0 0 0 2px var(--k-acc)}
.rd-top .aa{font-size:18px;color:var(--k-ink)}
.rd-ttl{flex:1;min-width:0;font-weight:700;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-ttl small{display:block;font-weight:500;font-size:13px;color:var(--k-ink3)}
.rd-stars{display:inline-flex;align-items:center;gap:4px;height:40px;padding:0 12px 0 6px;border-radius:20px;background:#fff;border:2px solid var(--k-line);font-weight:700;font-size:16px}
.rd-stars img{width:26px;height:26px}
.rd-prog{display:flex;gap:5px;padding:8px 0 10px}
.rd-prog i{flex:1;height:6px;border-radius:3px;background:#EDE5F8}
.rd-prog i.done{background:var(--k-sun-deep)}
.rd-prog i.now{background:var(--k-acc)}
.rd{display:grid;grid-template-columns:250px 1fr;gap:24px;align-items:start;padding:20px 0 40px;max-width:1040px;margin:0 auto}
@media (max-width:760px){.rd{grid-template-columns:1fr;gap:14px;padding-top:14px}}
.rd-spot{border-radius:28px;overflow:hidden;background:#fff;box-shadow:0 6px 18px rgba(42,33,64,.07);position:sticky;top:104px}
.rd-art{height:210px;display:flex;align-items:center;justify-content:center;position:relative}
.rd-art img{width:140px;height:140px;filter:drop-shadow(0 12px 14px rgba(0,0,0,.18));animation:k-bob 3.6s ease-in-out infinite}
.rd-act{position:absolute;left:12px;top:12px;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:600;background:rgba(255,255,255,.92);color:var(--k-ink2)}
.rd-cap{padding:12px 16px;font-weight:600;font-size:16px}
.rd-cast{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 16px}
.rd-face{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:3px 12px 3px 3px;border-radius:999px;border:2px solid var(--k-line);background:#fff;font:inherit;font-size:14px;color:var(--k-ink);cursor:pointer;text-align:left}
.rd-face img{width:32px;height:32px;flex-shrink:0}
.rd-face:hover,.rd-face:focus-visible{border-color:var(--k-acc);background:var(--k-soft2)}
@media (max-width:760px){
  .rd-spot{position:static;display:flex;align-items:center;border-radius:22px}
  .rd-art{height:92px;width:104px;flex-shrink:0}.rd-art img{width:72px;height:72px}.rd-act{display:none}
  .rd-cap{padding:8px 12px;font-size:15px}
  .rd-cast{display:none}
}
.rd-page{position:relative;background:#fff;border-radius:32px;padding:28px 32px 22px;box-shadow:0 6px 18px rgba(42,33,64,.07)}
@media (max-width:760px){.rd-page{padding:20px 18px 18px;border-radius:26px}}
.rd-spark{position:absolute;right:-8px;top:-10px;width:28px;height:28px;animation:k-bob 2.6s ease-in-out infinite}
.rd-pov{display:inline-block;margin:0 0 12px;padding:6px 14px;border-radius:999px;background:#FFF3C4;font-weight:600;font-size:15px}
.rd-who{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.rd-who img{width:44px;height:44px}
.rd-who span{font-weight:600;color:var(--k-acc);font-size:16px;flex:1}
.rd-hear{width:44px!important;height:44px!important}
.rd-hear svg{width:22px;height:22px}
.rd-line{font-size:clamp(20px,2.3vw,24px);line-height:1.62;margin:0 0 16px}
.tw{background:none;border:0;padding:0 1px;margin:0;font:inherit;color:inherit;letter-spacing:inherit;cursor:pointer;border-bottom:3px dotted #B7A6EE;border-radius:2px;line-height:inherit}
.tw:hover,.tw:focus-visible{background:var(--k-soft2);border-bottom-color:var(--k-acc)}
.rd-pop{position:absolute;z-index:30;display:flex;align-items:center;gap:10px;max-width:280px;padding:8px 14px 8px 8px;border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(42,33,64,.18);font-size:16px;font-weight:500;color:var(--k-ink);animation:k-rise .2s ease-out;pointer-events:none}
.rd-pop img{width:52px;height:52px;flex-shrink:0}
.rd-hint{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--k-ink3);margin:-4px 0 14px}
.rd-hint i{width:20px;border-bottom:3px dotted #B7A6EE}
.rd-ask{font-size:20px;font-weight:700;margin:6px 0 12px}
.rd-opts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.rd-opts{grid-template-columns:1fr}}
.rd-opt{display:flex;align-items:center;gap:12px;min-height:78px;padding:10px 16px 10px 10px;border-radius:22px;border:2px solid var(--k-line);background:#fff;font:inherit;font-size:18px;font-weight:600;color:var(--k-ink);text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.rd-opt img{width:54px;height:54px;flex-shrink:0}
.rd-opt:hover,.rd-opt:focus-visible{border-color:var(--k-acc);background:var(--k-soft2)}
.rd-opt.picked{border-color:var(--k-acc);background:var(--k-soft)}
.rd-opt[disabled]{cursor:default}
.rd-opt[disabled]:not(.picked){opacity:.5}
.rd-reveal{margin-top:16px;padding:18px 20px;border-radius:24px;background:#FFF6DA}
.rd-rh{margin:0 0 6px;font-size:20px;font-weight:700}
.rd-rw{margin:0;font-size:18px;line-height:1.6}
.rd-rfoot{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.rd-them,.rd-badge{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 5px;border-radius:999px;background:#fff;font-size:15px}
.rd-badge{font-weight:600}
.rd-them img,.rd-badge img{width:32px;height:32px}
.rd-lenses{display:flex;flex-wrap:wrap;gap:10px}
.rd-lens{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 18px 0 8px;border-radius:26px;border:2px solid var(--k-line);background:#fff;font:inherit;font-size:17px;font-weight:600;color:var(--k-ink);cursor:pointer}
.rd-lens img{width:36px;height:36px}
.rd-lens.seen{border-color:var(--lc)}
.rd-lens.open{background:var(--ls);border-color:var(--lc)}
.rd-lbody{margin-top:12px;padding:16px 18px;border-radius:22px;background:var(--ls)}
.rd-lbody p{margin:0 0 10px;font-size:18px;line-height:1.55}
.rd-lbody p.m{margin:0;color:var(--k-ink2);font-size:17px}
.rd-lk{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--k-ink3);margin-bottom:2px}
.rd-nav{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:2px dashed #F0E8DA}
.rd-nav .left-pill{position:static;flex:1;background:none;box-shadow:none;padding:0;font-size:14px;color:var(--k-ink3);text-align:center;transform:none}
.rd-wait{font-size:15px;color:var(--k-ink3)}
.rd-grown{margin-top:12px;font-size:15px;color:var(--k-ink2)}
.rd-grown summary{cursor:pointer;font-weight:600;color:#3A2E8C;list-style:none}
.rd-grown summary::-webkit-details-marker{display:none}
.rd-grown summary::before{content:"+ "}
.rd-grown[open] summary::before{content:"– "}
.rd-grown p{margin:8px 0 0;padding:12px 14px;border-radius:16px;background:var(--k-soft2);font-size:16px}
html.fp-calm .rd-art img,html.fp-calm .rd-spark{animation:none}
@media (prefers-reduced-motion:reduce){.rd-art img,.rd-spark{animation:none}}
@media (max-width:480px){.rd-stars{display:none}.rd-in{gap:8px}.rd-top .round{width:44px;height:44px}}

/* ---------- reader: kid + parent review fixes ---------- */
/* while a story is open, the site menu and page notes step aside */
body.reading .topbar,body.reading .player ~ section,body.reading .foot{display:none}
body.reading .rd-top{top:0}
/* the voice button: Read to me / Stop */
.rd-voice{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px 0 10px;border-radius:22px;border:0;background:var(--k-soft);color:#3A2E8C;font:inherit;font-size:15px;font-weight:600;cursor:pointer;flex-shrink:0}
.rd-voice svg{width:22px;height:22px}
.rd-voice.on{background:#3A2E8C;color:#fff}
.rd-voice.on svg path{stroke:#fff}
/* dotted words shimmer on the first pages so they get noticed */
.rd-line.shimmer .tw{background:linear-gradient(90deg,transparent 0%,rgba(183,166,238,.35) 50%,transparent 100%) 0 0/220% 100% no-repeat;animation:twShine 2.8s ease-in-out 3}
@keyframes twShine{0%{background-position:120% 0}60%,100%{background-position:-120% 0}}
/* a short answer first, more on request */
.rd-src{display:inline-flex;align-items:center;gap:6px;margin-bottom:6px;font-size:13px;font-weight:700;letter-spacing:.03em;color:#7A5A12;text-transform:uppercase}
.rd-src img{width:20px;height:20px}
.rd-more{margin-top:4px;min-height:44px;padding:0 16px;border-radius:22px;border:2px solid #E9D48C;background:#fff;font:inherit;font-size:16px;font-weight:600;color:var(--k-ink);cursor:pointer}
.rd-more:hover,.rd-more:focus-visible{border-color:var(--k-sun-deep)}
.rd-nav .sp{flex:1}
/* the star counter pops when a trait is spotted */
.rd-stars.bump{animation:starBump .7s ease-out}
@keyframes starBump{0%{transform:scale(1)}35%{transform:scale(1.35);background:#FFF3C4;border-color:var(--k-sun-deep)}100%{transform:scale(1)}}
.rd-ref{display:block}
.rd-ref img{width:22px;height:22px;vertical-align:-5px;margin-right:6px}
/* phones: the Next button stays on screen */
@media (max-width:760px){
  .rd-nav{position:sticky;bottom:0;z-index:4;background:#fff;margin:16px -18px 0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:2px dashed #F0E8DA;border-radius:0 0 26px 26px;box-shadow:0 -8px 16px rgba(255,255,255,.9)}
  .rd-voice span{display:none}.rd-voice{padding:0;width:44px;justify-content:center}
}
/* For grown-ups: before you start */
.before{margin:14px 0 0;max-width:620px;border:2px solid var(--k-line);border-radius:20px;background:#fff}
.before summary{display:flex;align-items:center;gap:8px;min-height:52px;padding:0 16px;cursor:pointer;font-weight:600;color:#3A2E8C;list-style:none}
.before summary::-webkit-details-marker{display:none}
.before summary img{width:26px;height:26px}
.bf-body{padding:0 16px 12px;display:flex;flex-direction:column;gap:2px}
.bf-row{display:grid;grid-template-columns:130px 1fr auto;gap:10px;align-items:center;padding:8px 0;border-top:1px solid #F1ECFA}
.bf-k{font-weight:600;font-size:15px}
.bf-v{font-size:15px;color:var(--k-ink2)}
.bf-b{min-height:40px!important;padding:0 14px!important;font-size:14px!important}
@media (max-width:520px){.bf-row{grid-template-columns:1fr auto}.bf-k{grid-column:1/-1}}
html.fp-calm .rd-line.shimmer .tw,html.fp-calm .rd-stars.bump{animation:none}
@media (prefers-reduced-motion:reduce){.rd-line.shimmer .tw,.rd-stars.bump{animation:none}}
.rd-ttl .left-pill{position:static;display:block;background:none;box-shadow:none;border:0;padding:0;margin:0;transform:none;font-weight:500;font-size:13px;color:var(--k-ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:0}
.rd-line .w{white-space:nowrap}
.rd-bible{display:inline-flex;align-items:center;gap:6px;margin:-6px 0 14px;padding:4px 12px 4px 6px;border-radius:999px;background:#FFF6DA;font-size:14px;font-weight:600;color:#6B5310}
.rd-bible img{width:22px;height:22px}
.rd-bible span{font-weight:500;color:#7A6630}
.sister{font-size:15px;color:var(--k-ink2);margin:10px 0 0}
.sister-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.sister-links a{display:flex;flex-direction:column;gap:2px;flex:1 1 220px;padding:14px 16px;border-radius:20px;background:#fff;border:2px solid var(--k-line);text-decoration:none;color:var(--k-ink)}
.sister-links a b{font-size:17px}
.sister-links a span{font-size:15px;color:var(--k-ink2)}
.sister-links a:hover,.sister-links a:focus-visible{border-color:var(--k-acc)}

/* ============================================================
   SHARED FOOTER + SISTER SITES (site_parts.py)
   ============================================================ */
.site-foot{margin-top:48px;background:#fff;border-top:1px solid #EFE6D6}
.sf-in{max-width:1180px;margin:0 auto;padding:36px 20px 40px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:28px}
@media (max-width:860px){.sf-in{grid-template-columns:1fr 1fr}.sf-brand{grid-column:1/-1}}
@media (max-width:480px){.sf-in{grid-template-columns:1fr}}
.sf-logo{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:20px;color:var(--k-ink);text-decoration:none;margin-bottom:8px}
.sf-px{display:grid;grid-template-columns:repeat(3,7px);gap:2px}
.sf-px span{width:7px;height:7px;border-radius:2px}
.sf-brand p{margin:0 0 6px;font-size:16px;color:var(--k-ink2);line-height:1.5;max-width:34ch}
.sf-brand .sf-small{font-size:14px;color:var(--k-ink3)}
.sf-brand a{color:#3A2E8C}
.sf-col{display:flex;flex-direction:column;gap:2px}
.sf-col b{font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:var(--k-ink3);margin-bottom:6px}
.sf-col a{display:flex;align-items:center;min-height:36px;font-size:16px;font-weight:500;color:var(--k-ink);text-decoration:none}
.sf-col a:hover,.sf-col a:focus-visible{color:var(--k-acc);text-decoration:underline;text-underline-offset:3px}
body.has-tabbar .site-foot{padding-bottom:84px}

.sis-wrap{margin:36px 0 0}
.sis-wrap h2{margin:2px 0 14px;font-size:clamp(24px,3vw,30px)}
.sis-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:860px){.sis-grid{grid-template-columns:1fr}}
.sis{display:flex;flex-direction:column;border-radius:26px;background:#fff;overflow:hidden;text-decoration:none;color:var(--k-ink);box-shadow:0 6px 18px rgba(42,33,64,.07);border:2px solid transparent;transition:border-color .15s,transform .15s}
.sis:hover,.sis:focus-visible{border-color:var(--k-line);transform:translateY(-2px)}
.sis-art{height:120px;display:flex;align-items:center;justify-content:center}
.sis-art img{width:84px;height:84px;filter:drop-shadow(0 10px 10px rgba(0,0,0,.16))}
.sis-body{display:flex;flex-direction:column;gap:4px;padding:16px 18px 18px;flex:1}
.sis-name{font-weight:700;font-size:20px}
.sis-dom{font-size:14px;color:var(--k-ink3)}
.sis-who{align-self:flex-start;margin:6px 0 2px;padding:3px 10px;border-radius:999px;background:var(--k-soft);color:#3A2E8C;font-size:13px;font-weight:600}
.sis-txt{font-size:16px;line-height:1.5;color:var(--k-ink2);flex:1}
.sis-go{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-weight:600;font-size:15px;color:#3A2E8C}
@media (max-width:860px){.sis{flex-direction:row}.sis-art{width:110px;height:auto;flex-shrink:0}.sis-art img{width:64px;height:64px}}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.ab-hero{display:grid;grid-template-columns:300px 1fr;gap:32px;align-items:center;margin:16px 0 8px;padding:28px;border-radius:32px;background:#fff;box-shadow:0 6px 18px rgba(42,33,64,.07)}
.ab-hero-art{height:260px;border-radius:26px;background:linear-gradient(160deg,#ECE3FF 0%,#B7A1F2 100%);display:flex;align-items:center;justify-content:center}
.ab-hero-art img{width:160px;height:160px;filter:drop-shadow(0 14px 16px rgba(0,0,0,.2))}
.ab-hero h1{font-size:clamp(32px,4.6vw,52px);line-height:1.08;margin:4px 0 12px}
.ab-lead{font-size:clamp(18px,2vw,21px);line-height:1.55;color:var(--k-ink2);margin:0 0 20px;max-width:56ch}
@media (max-width:760px){.ab-hero{grid-template-columns:1fr;padding:18px;gap:18px}.ab-hero-art{height:170px}.ab-hero-art img{width:120px;height:120px}}
.ab-sec{margin:40px 0 0}
.ab-sec h2{margin:2px 0 14px;font-size:clamp(24px,3vw,30px)}
.ab-p{font-size:18px;line-height:1.6;color:var(--k-ink2);max-width:70ch;margin:0 0 14px}
.ab-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;counter-reset:none}
@media (max-width:960px){.ab-steps{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.ab-steps{grid-template-columns:1fr}}
.ab-steps li{position:relative;display:flex;flex-direction:column;gap:6px;padding:20px 18px;border-radius:24px;background:#fff;box-shadow:0 4px 12px rgba(42,33,64,.06)}
.ab-steps img{width:64px;height:64px;margin-bottom:4px}
.ab-steps b{font-size:18px}
.ab-steps span:not(.ab-n){font-size:16px;line-height:1.5;color:var(--k-ink2)}
.ab-n{position:absolute;right:16px;top:14px;width:30px;height:30px;border-radius:50%;background:var(--k-sun);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.ab-ways{display:flex;flex-wrap:wrap;gap:10px}
.ab-way{display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 18px 0 8px;border-radius:26px;background:var(--ls);color:var(--k-ink);text-decoration:none;font-weight:600;font-size:17px;border:2px solid transparent}
.ab-way img{width:36px;height:36px}
.ab-way:hover,.ab-way:focus-visible{border-color:var(--lc)}
.ab-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:860px){.ab-feats{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.ab-feats{grid-template-columns:1fr}}
.ab-feat{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:22px;background:#fff;box-shadow:0 4px 12px rgba(42,33,64,.06)}
.ab-feat img{width:48px;height:48px;flex-shrink:0}
.ab-feat b{display:block;font-size:17px;margin-bottom:2px}
.ab-feat span{font-size:15px;line-height:1.5;color:var(--k-ink2)}
.ab-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:760px){.ab-two{grid-template-columns:1fr}}
.ab-card{display:flex;gap:16px;align-items:flex-start;padding:22px;border-radius:26px;background:#fff;box-shadow:0 6px 18px rgba(42,33,64,.07)}
.ab-card img{width:64px;height:64px;flex-shrink:0}
.ab-card b{display:block;font-size:20px;margin-bottom:4px}
.ab-card span{display:block;font-size:16px;line-height:1.55;color:var(--k-ink2)}
.ab-link{display:inline-block;margin-top:10px;font-weight:600;color:#3A2E8C}
.ab-credits{margin:36px 0 0;padding:18px 20px;border-radius:20px;background:var(--k-soft2);font-size:14px;line-height:1.6;color:var(--k-ink2)}
.ab-credits b{display:block;font-size:15px;color:var(--k-ink);margin-bottom:4px}
.site-foot{box-shadow:0 0 0 100vmax #fff;clip-path:inset(0 -100vmax)}
body.has-tabbar .site-foot{padding-bottom:0}
@media (max-width:760px){body.has-tabbar .site-foot{padding-bottom:84px}}

/* ============================================================
   PUZZLE + PASSPORT PAGES (word-search, crossword, passport)
   The puzzle engines keep their own layout; these rules put them
   in the Home page look: cream page, white cards, lavender lines,
   pill buttons, yellow "go" buttons, bigger type.
   ============================================================ */
body.game{
  --page:#FDF6EC;--paper:#fff;--paper2:#F6F2FF;
  --ink:#2A2140;--ink2:#4A4468;--ink3:#5A5478;--rule:#DCD3F5;
  background:var(--k-bg);color:var(--k-ink)
}
body.game .col{max-width:820px}
body.game .puzzle-area{padding-top:26px}
body.game .pa-badge{background:none;color:var(--k-acc);padding:0;font-size:14px;letter-spacing:.06em}
body.game .pa-meta{font-size:15px;color:var(--k-ink3)}
body.game .pa-name{font-size:clamp(26px,3.4vw,34px);line-height:1.15}
body.game .pa-sil{width:44px;height:44px;font-size:2.1rem}
body.game .pa-flavor{font-size:18px;color:var(--k-ink2);margin-bottom:14px}
body.game .diff-row .dl,body.game .bot-row .sl{font-size:13px;color:var(--k-ink3)}
body.game .seg{gap:6px;flex-wrap:wrap}
body.game .sb,body.game .tool-btn,body.game .hint-btn{min-height:44px;padding:0 16px;border-radius:999px;border:2px solid var(--k-line);background:#fff;color:var(--k-ink);font-size:15px;font-weight:600}
body.game .sb:hover,body.game .tool-btn:hover,body.game .hint-btn:hover{border-color:var(--k-acc);color:var(--k-ink)}
body.game .sb.active{background:var(--k-ink);border-color:var(--k-ink);color:#fff}
body.game .new-btn,body.game .tool-btn.primary,body.game .done .next-btn{min-height:48px;padding:0 22px;border:0;border-radius:16px;background:var(--k-sun);color:var(--k-ink);font-size:17px;font-weight:700;box-shadow:0 4px 0 var(--k-sun-deep)}
body.game .new-btn:hover,body.game .tool-btn.primary:hover,body.game .done .next-btn:hover{background:#FFD84F}
body.game .bank{border:0;padding:16px 18px;margin-bottom:12px;border-radius:22px;background:#fff;box-shadow:0 4px 12px rgba(42,33,64,.06)}
body.game .bank-head .bk-label{font-size:16px;color:var(--k-ink)}
body.game .words{gap:6px 14px}
body.game .w{font-size:17px}
body.game .inst{font-size:16px;color:var(--k-ink2)}
body.game .grid{border:0;border-radius:22px;box-shadow:0 6px 18px rgba(42,33,64,.08)}
body.game .cell{border-color:#F1ECFA}
body.game .cell.alt{background:#FBF9FF}
body.game .prog .track{background:#EDE5F8;height:8px}
body.game .prog .pt{font-size:16px}
body.game .done{border:0;border-radius:24px;background:#FFF6DA;padding:22px}
body.game .done .eyebrow{font-size:13px;letter-spacing:.06em;color:#7A5A12;opacity:1}
body.game .done .dline{font-size:22px}
body.game .worlds-section{border-top:0;margin-top:36px;padding-top:0}
body.game .ws-title{font-size:clamp(22px,2.6vw,26px)}
body.game .ws-sub{font-size:17px;color:var(--k-ink2)}
body.game .worlds{gap:14px}
body.game .wc{border:2px solid transparent;border-radius:22px;padding:16px;box-shadow:0 4px 12px rgba(42,33,64,.06);position:relative;overflow:hidden}
body.game .wc::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--wc-accent,#ccc);opacity:.85}
body.game .wc:hover{border-color:var(--k-line);transform:translateY(-2px)}
body.game .wc-sil{width:52px;height:52px;border-radius:16px;background:var(--k-soft2);font-size:1.9rem}
body.game .wc-name{font-size:18px}
body.game .wc-tag{font-size:14px;color:var(--k-ink3)}
body.game .wc-flavor{font-size:15px;color:var(--k-ink2)}
/* crossword */
body.game .sheet{border:0;border-radius:24px;box-shadow:0 6px 18px rgba(42,33,64,.08)}
body.game .clue-bar{border:0;border-radius:20px;background:#FFF6DA;min-height:60px;font-size:18px}
body.game .clue-item{font-size:16px;border-radius:10px;padding:6px 8px}
body.game .clue-group h3,body.game .clue-group .cg-h{font-size:14px}
/* passport */
body.game .pp-hero h1{font-size:clamp(30px,4vw,40px)}
body.game .pp-hero .sub{font-size:18px}
body.game .pp-count{border:2px solid var(--k-line);background:#fff;font-size:15px;color:var(--k-ink)}
body.game .pp-stamp{border:2px solid transparent;border-radius:22px;box-shadow:0 4px 12px rgba(42,33,64,.06)}
body.game .pp-stamp.got{border-left:2px solid transparent;border-color:var(--s-acc)}
body.game .pp-arch{font-size:16px}
body.game .pp-char{font-size:12px}
body.game .pp-cta{font-size:14px}
body.game .pp-note{font-size:16px;color:var(--k-ink2)}
body.game .pp-explore .ws-title{text-align:left}
body.game .pp-explore .ws-sub{text-align:left}
body.game #storyStamps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:700px){body.game #storyStamps{grid-template-columns:1fr 1fr}}
@media (max-width:420px){body.game #storyStamps{grid-template-columns:1fr}}
body.game #storyStamps .badge-k{background:#fff;box-shadow:0 4px 12px rgba(42,33,64,.06);border-radius:20px}
body.game #storyStamps .badge-k.none{background:#fff}
body.game .pp-win{border:0;border-radius:24px;background:#FFF6DA}
img.e3d{width:80%;height:80%;object-fit:contain;display:block;margin:auto}
.pa-sil img.e3d,.wc-sil img.e3d{width:100%;height:100%}
body.game img.e3d{max-width:96px;max-height:96px}
body.game .pp-hero .motif img.e3d{width:72px;height:72px}
/* Play page */
body.game .play-hero{padding-top:18px}
.play-picks{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:6px 0 8px}
.shelf-head{display:flex;align-items:baseline;gap:10px;margin:22px 0 4px}
.shelf-head h2{font-size:22px;margin:0}
.shelf-head p{margin:0;font-size:15px;color:var(--k-ink3)}
.shelf-head:first-of-type{margin-top:8px}
@media (max-width:700px){.play-picks{grid-template-columns:1fr}}
.play-pick{display:flex;align-items:center;gap:14px;padding:12px;border-radius:24px;background:#fff;text-decoration:none;color:var(--k-ink);box-shadow:0 4px 12px rgba(42,33,64,.06);border:2px solid transparent}
.play-pick:hover,.play-pick:focus-visible{border-color:var(--k-line)}
.play-pick .pp-art{width:72px;height:72px;border-radius:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.play-pick .pp-art img{width:52px;height:52px}
.play-pick b{display:block;font-size:18px}
.play-pick span span{font-size:15px;color:var(--k-ink2);line-height:1.4}
body.game .riders{margin-top:26px}
body.game .riders-head h2,body.game .pp-strip-head h2{font-size:20px}
body.game .featured{border:0;border-radius:28px;overflow:hidden;box-shadow:0 6px 18px rgba(42,33,64,.08)}
body.game .featured-badge{background:var(--k-sun);color:var(--k-ink);border-radius:999px;font-size:13px;padding:4px 12px}
body.game .featured-name{font-size:clamp(24px,3vw,30px)}
body.game .featured-flavor{font-size:18px}
body.game .featured-cta{font-size:18px;font-weight:700;color:var(--k-ink);background:var(--k-sun)}
body.game .resume{border:0;border-radius:22px;box-shadow:0 4px 12px rgba(42,33,64,.06)}
body.game .pp-strip{border:0;border-radius:24px;box-shadow:0 4px 12px rgba(42,33,64,.06)}
body.game .cast-title,body.game .games-title{font-size:clamp(22px,2.6vw,26px);text-align:left}
body.game .cast-sub,body.game .games-sub{font-size:17px;color:var(--k-ink2);text-align:left}
body.game .cast-head{text-align:left}
body.game .game-card{border:0!important;border-radius:24px;box-shadow:0 4px 12px rgba(42,33,64,.06)}
body.game .cc-name{font-size:20px}
body.game .cc-flavor{font-size:16px}
body.game .cc-stamp{font-size:12px}
body.game .cc-go{font-size:16px;font-weight:700}
body.game .tilt-inner{border-radius:24px}
body.game .games{display:none}
body.game .tilt-inner{border:2px solid transparent;border-top:6px solid var(--t-acc,#ccc);border-radius:24px;box-shadow:0 4px 12px rgba(42,33,64,.06)}
body.game .resume{border-left:0;border-radius:22px}

/* ============================================================
   PHONE + TABLET POLISH (journey review)
   ============================================================ */
/* Story of the week: picture in its own column, never under the words */
.week .wk-top{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:start}
.week .wk-top img.art{position:static;width:96px;height:96px}
.week .title{padding-right:0}
/* Home hero on phones: picture on top, words full width, Play and the speaker on one line */
@media (max-width:600px){
  .keep{flex-direction:column;align-items:flex-start;gap:6px;padding:20px 20px 22px;min-height:0}
  .keep img.art{width:92px;height:92px}
  .keep .title{font-size:28px}
  .keep .row{flex-wrap:nowrap;align-items:center}
  .week{min-height:0;padding:20px}
  .week .wk-top img.art{width:76px;height:76px}
  .week .title{font-size:24px}
  .lib-h1{font-size:30px;margin-top:10px}
  .lib-sub{font-size:17px}
}
/* story cards: two per row on phones so kids can browse, not scroll forever */
@media (max-width:600px){
  .shelf{grid-template-columns:1fr 1fr;gap:12px}
  .card-k{border-radius:20px;border-width:3px}
  .card-k .art{height:104px}
  .card-k .art img{width:72px;height:72px}
  .card-k .t{font-size:16px;padding:10px 12px 2px;min-height:2.6em}
  .card-k .q{font-size:14px;padding:0 12px 8px}
  .card-k .meta{font-size:13px;padding:0 12px 10px}
  .card-k .tag{font-size:12px;left:8px;top:8px;padding:2px 8px}
}
/* story start page: picture card stays at the top of its column on tablets; smaller on phones */
.cover{align-items:start}
@media (min-width:821px){#player .cover-art{position:sticky;top:90px}}
@media (max-width:820px){#player .cover-art{min-height:170px}#player .cover-art img{width:116px}}
@media (max-width:600px){.meta-chips span{font-size:14px;padding:5px 12px}#player .cover h1{font-size:32px}}
/* no heavy dark buttons: the grown-ups button is soft like the rest */
.lib-tools .pill.dark,.pill.dark[data-gate]{background:var(--k-soft);border-color:var(--k-line);color:#3A2E8C}
#player .cover .cover-btns{margin:14px 0 18px}
.stat-grid,.me-stats{grid-auto-flow:row dense}

/* ============================================================
   IMAGE PROPORTION PASS (Oct 2026 review)
   Pictures stay at or under 160px (they are 256px files) and
   every picture box is sized to its picture, not the other way round.
   ============================================================ */
/* 2. Story of the week: title gets the full width; picture moves into the empty space beside Play */
.week .wk-top{display:block}
.week .wk-top img.art{position:absolute;right:20px;bottom:18px;width:120px;height:120px;top:auto}
.week .note{padding-right:150px}
@media (max-width:600px){.week .wk-top img.art{width:92px;height:92px;right:14px;bottom:14px}.week .note{padding-right:96px}}

/* Story start screen — option A "art tile": a near-square tile sized to its picture */
html.cover-tile .cover{grid-template-columns:300px 1fr;gap:40px}
html.cover-tile #player .cover-art{min-height:0;aspect-ratio:1/1;max-width:300px}
html.cover-tile #player .cover-art img{width:150px}
@media (max-width:820px){html.cover-tile .cover{grid-template-columns:1fr}html.cover-tile #player .cover-art{aspect-ratio:auto;height:180px;max-width:none}html.cover-tile #player .cover-art img{width:120px}}

/* Story start screen — option B "thin band": the story's colour as a slim band, no picture
   (the picture already lives on the card the child just tapped) */
html.cover-thin .cover{display:block;max-width:820px;margin:0 auto}
html.cover-thin #player .cover-art{min-height:0;height:72px;margin-bottom:22px;border-radius:22px;position:relative!important;top:auto!important;box-shadow:none;aspect-ratio:auto;max-width:none}
html.cover-thin #player .cover-art img{display:none}
@media (max-width:820px){html.cover-thin #player .cover-art{height:48px;margin-bottom:16px}}

/* No ALL-CAPS labels anywhere (VOICE.md: hard for dyslexic readers). Small labels also
   stay at a readable size for kids. */
.resume .r-label,.featured-badge,.pp-m .ml,.cc-stamp,.pp-char,.pp-win .we,.pa-badge,.diff-row .dl,.bot-row .sl,
.clue-bar .cb-dir,.clue-group h3,.done .eyebrow,.rd-lk,.sf-col b{
  text-transform:none!important;letter-spacing:.01em!important;font-size:max(14px,.875rem)!important}

/* Sister-site cards on phones: a short colour band on top instead of a tall thin strip */
@media (max-width:860px){
  .sis{flex-direction:column!important}
  .sis-art{width:auto!important;height:92px!important}
  .sis-art img{width:64px!important;height:64px!important}
}


/* ============================================================
   READABILITY PASS (dyslexia, ADHD, autism, young readers)
   - nothing a child reads is smaller than 14px; reading text 17px+
   - text contrast at least 4.5:1 (WCAG AA)
   - line spacing 1.5+ for paragraphs, 1.3 for short titles
   - lines no longer than about 70 characters
   - left-aligned paragraphs (no centred blocks, no justify, no caps, no italics)
   ============================================================ */
.tb-link{font-size:16px!important;padding:7px 12px!important}
@media (max-width:600px){.tb-link{font-size:15px!important;padding:6px 9px!important}}
.tabbar .tab span,.tabbar .tab{font-size:14px!important}
.card-k .t,.mini-card .t{line-height:1.3!important}
.card-k .meta,.mini-card .meta{font-size:15px!important;line-height:1.45;color:var(--k-ink2)!important}
.card-k .tag,.mini-card .tag{font-size:14px!important}
@media (max-width:640px){.card-k .meta{font-size:14px!important}.card-k .t{font-size:17px!important}}
/* small labels across hubs, passport and puzzles */
.path-card .sub,.stamp .sub,.sub,.sis-who,.pp-m .ml,.cc-tag,.cc-stamp,.pp-char,.pa-badge,.clue-group h3,.rn,.rc,
.left-pill,.pt,.cb-dir,.rh-sub,.dl,.sl,.rd-act,.pp-strip-head a,.sf-col b{font-size:max(14px,.875rem)!important}
/* links that sit on white in a world's colour: use the brand ink so they pass contrast */
body.game .cc-go,body.game .featured-cta{color:var(--k-ink)!important}
/* Story of the week: brand ink on the story's light colour; white only on a dark colour */

.week .note{font-size:17px!important;line-height:1.45}
/* paragraphs: comfortable spacing and line length */
p,li,.note,.empty-k,.pp-note{line-height:1.6}
p{max-width:58ch}
.moments a > span,.install .d,.ab-credits span{max-width:58ch;display:block}
.moments a > span > span{display:block}
.pp-note,.empty-k{text-align:left!important;max-width:60ch;margin-left:auto;margin-right:auto}
.ab-p,span.s{max-width:58ch!important;display:block}
.set-line .lbl span{max-width:58ch;display:block;line-height:1.5}

/* ============================================================
   FIRST-TIME JOURNEY PASS (Oct 2026)
   ============================================================ */
/* the "In the Bible" label: no caps, readable size */
.rd-src{text-transform:none!important;letter-spacing:.01em!important;font-size:15px!important}
/* what really happened: one strong line, not a heavy bold block */
.rd-rh{font-weight:600!important;line-height:1.45!important}
/* brand: thin lavender outlines, no thick dark borders */
.pip{border:2px solid var(--k-line)!important;box-shadow:0 4px 12px rgba(42,33,64,.05)}
.hold{border:2px solid #B9A9EE!important;background:var(--k-soft,#F3EEFF)!important}
/* story header on phones: show the whole title (2 lines max) and the page count */
@media (max-width:600px){
  .rd-ttl{white-space:normal!important;font-size:16px!important;line-height:1.25;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .rd-ttl .left-pill{font-size:14px!important}
  .ml-left{display:none}
}
/* settings pills on the start screen: the calm-mode sprout gets its words */
.pill img{width:28px;height:28px}
/* end of a story: "Up next" card in the next story's own colour */
.up-next{display:flex;align-items:center;gap:16px;margin:4px 0 14px;padding:12px;border-radius:24px;background:#fff;
  text-decoration:none;color:var(--k-ink);box-shadow:0 6px 18px rgba(42,33,64,.08);border:2px solid var(--k-line)}
.up-next .un-art{width:104px;height:96px;flex-shrink:0;border-radius:18px;background:var(--c);display:flex;align-items:center;justify-content:center}
.up-next .un-art img{width:72px;height:72px;filter:drop-shadow(0 8px 8px rgba(0,0,0,.18))}
.up-next .un-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.up-next .eyebrow{font-size:15px;font-weight:600;color:#5B3FC4}
.up-next b{font-size:20px;line-height:1.25}
.up-next .un-txt > span:last-child{font-size:16px;color:var(--k-ink2);line-height:1.4}
.up-next:hover,.up-next:focus-visible{border-color:#B9A9EE}
/* Home: a quiet trust note for parents, just above the footer */
.trust{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:34px 0 8px;padding:16px 20px;border-radius:22px;background:#fff;border:2px solid var(--k-line);box-shadow:0 4px 12px rgba(42,33,64,.05)}
.trust img{width:40px;height:40px;flex-shrink:0}
.trust p{margin:0;flex:1;min-width:220px;font-size:17px;line-height:1.5;color:var(--k-ink2)}
.trust a{font-weight:600;font-size:17px;color:#3A2E8C;white-space:nowrap}


/* ============================================================
   ONE READING ORDER (Oct 2026)
   On every card: small label (eyebrow) above the title, then the title,
   then the sentence, then the details (minutes, ages, progress).
   Every small label uses one size and weight.
   ============================================================ */
.eyebrow{display:block;font-size:15px!important;font-weight:600!important;letter-spacing:.01em!important;text-transform:none!important;line-height:1.3;margin-bottom:2px}
.keep .eyebrow{color:#fff}
/* white words on the soft Home hero: a soft shadow keeps them crisp on the lighter side */
.keep .eyebrow,.keep .title,.keep .t{text-shadow:0 1px 3px rgba(20,40,80,.35)}
/* Bible puzzles card: label sits above the title like everywhere else */
body.game .featured-badge{margin:0 0 4px!important}
body.game .featured-tag{display:none}
/* reading-order spacing on cards */
.path-card .a{font-size:15px!important;font-weight:500}
.path-card .n{display:block}
.way-card .tk.eyebrow,.cc-tag.eyebrow{margin:0 0 2px}
.cc-tag.eyebrow{font-size:15px!important}
/* left edges line up: the hero question starts exactly under the title */
.keep .bars span.t:only-child{padding-left:0!important}
/* every main "go" button is yellow with ink text, on every page and every surface */
.btn-main{background:var(--k-sun)!important;color:var(--k-ink)!important;box-shadow:0 5px 0 var(--k-sun-deep)!important;border:0!important}
.btn-main:active{box-shadow:0 2px 0 var(--k-sun-deep)!important}

/* ---------- Ready for more? (Luther's World hand-off, Oct 2026) ---------- */
.lw-next{display:flex;flex-direction:column;gap:10px;margin:14px 0;padding:18px 20px;border-radius:24px;background:#FFF6E0;border:1px solid #F2DDA4}
.lw-next p{margin:0;font-size:18px;line-height:1.6;color:var(--k-ink)}
.lw-next-note{font-size:14px;color:var(--k-ink3)}
.me-next{margin:22px 0 4px}
/* ---------- slim footer: the tab bar is the menu ---------- */
.sf-in.sf-slim{grid-template-columns:1fr auto;align-items:end}
.sf-row{display:flex;flex-wrap:wrap;gap:4px 20px}
.sf-row a{display:flex;align-items:center;min-height:44px;font-size:16px;font-weight:500;color:var(--k-ink);text-decoration:none}
.sf-row a:hover,.sf-row a:focus-visible{color:var(--k-acc);text-decoration:underline;text-underline-offset:3px}
@media (max-width:860px){.sf-in.sf-slim{grid-template-columns:1fr}}
/* small phones (320px): let grids and cards shrink instead of spilling sideways */
.gu-hero{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.grid-auto{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
.ab-card>*,.feature>span{min-width:0}
@media (max-width:360px){.ab-card{padding:18px 16px;gap:12px}.ab-card img{width:52px;height:52px}}
/* links: never the browser's default blue. :where() keeps this weaker than any styled link */
:where(a){color:#43299E;text-underline-offset:3px;text-decoration-thickness:1px}
:where(a):hover{color:var(--k-acc)}
a.featured{color:var(--k-ink);text-decoration:none}
.src-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.src-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:2px solid var(--k-line);border-radius:14px;background:#fff;color:var(--k-ink);font-size:15px;font-weight:600;text-decoration:none}
.src-btn:hover,.src-btn:focus-visible{border-color:var(--k-acc)}

/* ============================================================
   ONE-LINE FOOTER (Oct 2026). Desktop: a single quiet line.
   Phones: no footer at all; the tab bar is the menu, and About,
   Privacy and the grown-ups corner live on the Me tab.
   ============================================================ */
.site-foot{margin-top:40px;background:#fff;border-top:1px solid #EFE6D6}
.sf-line{max-width:1180px;margin:0 auto;padding:14px 20px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;font-size:15px;color:var(--k-ink3)}
.sf-line .sf-logo{margin:0;font-size:17px;gap:8px}
.sf-credit a{color:#3A2E8C;font-weight:500}
.sf-line .sf-row{margin-left:auto;gap:2px 18px}
.sf-line .sf-row a{min-height:40px;font-size:15px}
@media (max-width:760px){.site-foot{display:none}}
@media print{.site-foot{display:none}}

/* Story cover on phones: one way back instead of five tabs */
.tb-back{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:4px 12px 4px 6px;border-radius:12px;font-size:16px;font-weight:600;color:var(--k-ink);text-decoration:none;white-space:nowrap}
.tb-back:hover,.tb-back:focus-visible{background:var(--k-soft,#EDE7FF)}
.tb-back svg{width:20px;height:20px}
body.story-cover .tb-brand span:last-child{display:inline}

/* Me tab: about this app (replaces the footer on phones) */
.me-about{margin:28px 0 8px;padding:16px 18px;border-radius:20px;background:#fff;border:2px solid var(--k-line)}
.me-about p{margin:0 0 8px;font-size:15px;color:var(--k-ink2);line-height:1.5}
.me-about .sf-row{gap:2px 16px}
.me-about .sf-row a{min-height:40px;font-size:15px;font-weight:600;color:#3A2E8C}
@media (min-width:761px){.me-about{display:none}}

/* Go deeper: three places for grown-ups, at the end of a story */
.deeper{margin-top:4px;padding-top:12px;border-top:1px dashed var(--k-line)}
.deeper h3{margin:0 0 6px;font-size:18px}
.deeper p{margin:0 0 10px;font-size:16px;line-height:1.55;color:var(--k-ink2)}
.deeper .dq{margin:0 0 12px;padding:12px 14px;border-radius:14px;background:var(--k-soft2,#FFF6E5);font-size:16px;line-height:1.5}
.deeper .dq b{display:block;color:var(--k-ink);margin-bottom:2px}
.deeper-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}
.deeper-links a{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:16px;background:#fff;border:2px solid var(--k-line);text-decoration:none;color:var(--k-ink);font-weight:600;font-size:16px;line-height:1.3}
.deeper-links a small{font-size:13px;font-weight:500;color:var(--k-ink3)}
.deeper-links a:hover,.deeper-links a:focus-visible{border-color:var(--k-acc)}
.deeper .tonight{margin:12px 0 0;font-size:15px;color:var(--k-ink2)}

/* Home: the shelf shows six, then one card to the whole library */
.card-all{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;padding:14px;text-decoration:none;color:var(--k-ink);background:var(--k-soft,#EDE7FF);border:2px dashed #C9B8FF}
.card-all .art{background:transparent!important;box-shadow:none}
.card-all .art img{width:64px;height:64px}
.card-all .t{font-weight:700;font-size:18px}
.card-all .q{font-size:14px;color:var(--k-ink3)}

/* Grown-ups corner: a settings page, not a scroll. Long explainers fold; a jump row up top */
.gu-jump{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.gu-jump a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;border:2px solid var(--k-line);font-weight:600;font-size:15px;color:#3A2E8C;text-decoration:none}
.gu-jump a:hover,.gu-jump a:focus-visible{border-color:var(--k-acc)}
.gu-fold>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}
.gu-fold>summary::-webkit-details-marker{display:none}
.gu-fold>summary h2{margin:0}
.gu-fold>summary::after{content:"";width:12px;height:12px;flex-shrink:0;border-right:3px solid var(--k-ink3);border-bottom:3px solid var(--k-ink3);transform:rotate(45deg);margin-right:6px;transition:transform .2s}
.gu-fold[open]>summary::after{transform:rotate(-135deg)}
.gu-fold[open]>summary{margin-bottom:12px}
@media (prefers-reduced-motion:reduce){.gu-fold>summary::after{transition:none}}

/* Offline line and update toast (built by app.js) */
.net-line{margin:0 0 14px;padding:10px 14px;border-radius:14px;background:var(--k-soft2,#FFF6E5);font-size:15px;color:var(--k-ink2);display:flex;align-items:center;gap:10px}
.net-line img{width:24px;height:24px}
.fp-toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:70;max-width:calc(100% - 32px);padding:12px 16px;border-radius:16px;background:var(--k-ink,#241D4D);color:#fff;font-size:15px;box-shadow:0 10px 30px rgba(0,0,0,.18);display:flex;align-items:center;gap:12px}
.fp-toast button{min-height:40px;padding:0 14px;border-radius:12px;border:0;background:#FFD66B;color:#241D4D;font-weight:700;font-size:15px;cursor:pointer}
@media (min-width:761px){.fp-toast{bottom:24px}}

/* ============================================================
   v1.2 FAMILY (Oct 2026)
   ============================================================ */
/* Night mode: a warm, dimmed layer over everything. Fewer blue tones, softer whites,
   same layout and colors underneath. Taps go straight through it. */
html.fp-night body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:2147483000;background:rgba(60,32,4,.24)}
@media print{html.fp-night body::after{display:none}}

/* Grown-ups corner: start here (3 steps) */
.start3{background:#fff;border:2px solid var(--k-line);border-radius:24px;padding:18px 18px 14px;margin:0 0 18px}
.start3 h2{margin:0 0 4px}
.start3 > p{margin:0 0 12px;color:var(--k-ink2);font-size:16px}
.start3 ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:10px}
.start3 li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:18px;background:var(--k-soft2,#FFF6E5)}
.start3 .n{flex-shrink:0;width:34px;height:34px;border-radius:50%;background:var(--k-acc,#6B4FD8);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.start3 li b{display:block;font-size:17px;margin-bottom:2px}
.start3 li span{font-size:15px;color:var(--k-ink2);line-height:1.45}

/* This week's story + moving progress */
.wk-pick{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0}
.wk-pick select{min-height:46px;border-radius:14px;border:2px solid var(--k-line);padding:0 12px;font:inherit;font-size:16px;background:#fff;color:var(--k-ink);max-width:100%}
.wk-now{font-size:16px;color:var(--k-ink2);margin:6px 0 0}
.wk-now b{color:var(--k-ink)}
.mv-row{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.mv-code{width:100%;min-height:90px;border-radius:14px;border:2px solid var(--k-line);padding:10px 12px;font:14px/1.4 ui-monospace,Menlo,Consolas,monospace;color:var(--k-ink);background:#fff;box-sizing:border-box;word-break:break-all}
.mv-msg{font-size:15px;min-height:22px;margin:4px 0 0;color:var(--k-ink2)}
.mv-msg.ok{color:#2E7D4F}.mv-msg.bad{color:#B2433C}
.gu-version{margin:22px 0 4px;font-size:13px;color:var(--k-ink3);text-align:center}

/* Story ending: share */
.share-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.share-row .btn-soft{display:inline-flex;align-items:center;gap:8px}
.share-row .share-msg{font-size:15px;color:#2E7D4F}

/* Home: "New here?" link in the grown-ups card */
.trust .trust-links{display:flex;flex-wrap:wrap;gap:6px 18px}

/* ---------- light / night switch in the top bar ---------- */
.tb-night{flex-shrink:0;width:42px;height:42px;margin-left:6px;border-radius:50%;border:2px solid var(--k-line,#E4DCF5);background:#fff;color:#3A2E8C;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.tb-night:hover,.tb-night:focus-visible{border-color:var(--k-acc,#6B4FD8)}
.tb-night[aria-pressed="true"]{background:#3A2E8C;color:#FFD66B;border-color:#3A2E8C}
.topbar-in{gap:8px}
.topbar-in .tb-nav{margin-left:auto}
@media print{.tb-night{display:none}}

/* ---------- links are options, not underlined blog links ---------- */
:where(a){text-decoration:none}
:where(a):hover{text-decoration:none}
:where(p a, li a, .sf-credit a, .sis-hub a){font-weight:600;color:#43299E}
:where(p a, li a):hover{color:var(--k-acc)}
a.pill-link,button.pill-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;border:2px solid var(--k-line,#E4DCF5);color:#3A2E8C;font:inherit;font-weight:600;font-size:15px;text-decoration:none;cursor:pointer;line-height:1.2}
a.pill-link:hover,a.pill-link:focus-visible,button.pill-link:hover,button.pill-link:focus-visible{border-color:var(--k-acc,#6B4FD8);color:#3A2E8C}
.ab-link{display:inline-flex!important;align-items:center;min-height:44px;margin-top:12px!important;padding:0 16px;border-radius:999px;background:#fff;border:2px solid var(--k-line,#E4DCF5);color:#3A2E8C!important;font-weight:600;text-decoration:none!important}
.ab-link:hover{border-color:var(--k-acc,#6B4FD8)}
.trust .trust-links{gap:8px 10px}
.start3 li .pill-link{margin-top:10px}
.deeper .tonight{display:flex;flex-wrap:wrap;align-items:center;gap:8px}

/* ---------- path cards: the same shape, bottoms lined up ---------- */
.path-card .a{margin-top:auto}
.path-card .b{flex:0 0 auto}
@media (min-width:1000px){ .row-scroll .path-card{width:calc((100% - 42px) / 4)} }
@media (min-width:700px) and (max-width:999px){ .row-scroll .path-card{width:calc((100% - 28px) / 3)} }

/* ---------- Spanish for grown-ups (v1.3) ---------- */
.es-review{margin:10px 0 0;padding:10px 14px;border-radius:14px;background:#FFF6E5;border:1px dashed #E3C27A;font-size:14px;line-height:1.45;color:var(--k-ink2)}
main > .es-review{margin:0 0 16px}
.lang-pill{font-size:15px}

/* Home: grown-ups lock in the top bar (first-time parent review, Oct 6) */
.tb-lock{flex-shrink:0;width:42px;height:42px;margin-left:auto;border-radius:50%;border:2px solid var(--k-line,#E4DCF5);background:#fff;display:inline-flex;align-items:center;justify-content:center}
.tb-lock img{width:24px;height:24px}
.tb-lock + .tb-night,.tb-lock ~ .tb-night{margin-left:8px}
.tb-lock:hover,.tb-lock:focus-visible{border-color:var(--k-acc,#6B4FD8)}
@media print{.tb-lock{display:none}}
@media (max-width:760px){.gu-hero .gu-art{display:none}}

/* ---------- Puzzles: Bible puzzles vs Storybook puzzles (Oct 6) ----------
   Two kinds, never mixed: gold + dove = from the Bible stories; teal + book = classic storybooks. */
.kind-head{display:flex;flex-direction:column;gap:6px;margin:26px 0 2px;padding:14px 16px;border-radius:20px}
.kind-head p{margin:0;font-size:16px;line-height:1.45;color:var(--k-ink2)}
.kind-badge{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font-weight:700;font-size:18px;padding:6px 14px 6px 8px;border-radius:999px;background:#fff}
.kind-badge img{width:30px;height:30px}
.kind-bible{background:#F6ECD2}.kind-bible .kind-badge{color:#6E531A}
.kind-book{background:#DDF0F2}.kind-book .kind-badge{color:#245E68}
.book-sec{margin-top:30px;padding:0 0 18px;border-radius:24px;background:#F1F9FA}
.book-sec .kind-head{margin:0 0 6px}
.book-sec .cast-grid{padding:0 12px}
.age-chip,.kind-chip{display:inline-block;margin-top:6px;margin-right:6px;padding:2px 10px;border-radius:999px;font-size:13px!important;font-weight:600;line-height:1.6}
.age-chip{background:#EFEAFB;color:#4B3A8C!important}
.kind-chip{background:#DDF0F2;color:#245E68}
.play-pick .age-chip{display:inline-block}
.cc-chips{display:flex;flex-wrap:wrap;margin:2px 0 4px}
.cc-src{font-size:13px;color:var(--k-ink3,#6b6280);margin:6px 0 2px;line-height:1.4}
.cc-ways{display:flex;gap:6px;flex-wrap:wrap}
.cc-ways .pill-link{font-size:14px;padding:6px 12px}
.cc-foot{flex-wrap:wrap;gap:8px}
.for-story{margin:16px 0 4px;padding:16px;border-radius:24px;background:#fff;box-shadow:0 4px 12px rgba(42,33,64,.06);border:2px solid var(--k-line,#E4DCF5)}
.fs-top{display:flex;gap:14px;align-items:center}
.fs-art{width:72px;height:72px;border-radius:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.fs-art img{width:54px;height:54px}
.fs-top b{display:block;font-size:20px;margin:2px 0}
.fs-sub{display:block;font-size:15px;color:var(--k-ink2);line-height:1.4}
.fs-ways{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}
.fs-way{display:inline-flex;align-items:center;gap:8px;padding:8px 14px 8px 8px;border-radius:999px;background:#F6F2FF;border:2px solid var(--k-line,#E4DCF5);text-decoration:none;color:var(--k-ink);font-weight:600;font-size:16px}
.fs-way img{width:30px;height:30px}
.fs-way:hover,.fs-way:focus-visible{border-color:var(--k-acc,#6B4FD8)}
/* inside a word search or crossword: which kind of puzzle this is */
.world-kind{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 4px;border-radius:999px;font-size:13px;font-weight:700;margin:0 0 6px}
.world-kind img{width:22px;height:22px}
.world-kind.bible{background:#F6ECD2;color:#6E531A}
.world-kind.book{background:#DDF0F2;color:#245E68}
.world-src{display:block;font-size:13px;color:var(--k-ink3,#6b6280);margin-top:2px}
.ws-group{grid-column:1/-1;margin:14px 0 4px;padding:10px 12px;border-radius:14px;background:#DDF0F2;color:#245E68;font-size:15px;line-height:1.45}
.ws-group .kind-chip{background:#fff;margin:0 6px 0 0}
.play-pick .age-chip{display:block;width:max-content}
.world-src{margin-bottom:10px}

/* ---------- Puzzles: two rooms with a sticky switch (Oct 6) ---------- */
.room-switch{position:sticky;top:var(--tbh,62px);z-index:40;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px -4px 6px;padding:8px 4px;background:rgba(253,246,236,.95);backdrop-filter:blur(6px)}
.room-switch button{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:20px;border:2px solid var(--k-line,#E4DCF5);background:#fff;cursor:pointer;text-align:left;font:inherit;color:var(--k-ink);min-height:64px}
.room-switch img{width:36px;height:36px;flex-shrink:0}
.room-switch b{display:block;font-size:17px;line-height:1.2}
.room-switch small{display:block;font-size:13px;color:var(--k-ink3,#6b6280);line-height:1.3}
.room-switch #tabBible[aria-selected="true"]{background:#F6ECD2;border-color:#C79A3A;box-shadow:0 3px 0 #C79A3A}
.room-switch #tabBook[aria-selected="true"]{background:#DDF0F2;border-color:#3B8E9B;box-shadow:0 3px 0 #3B8E9B}
.room-switch button:focus-visible{outline:3px solid var(--k-acc,#6B4FD8);outline-offset:2px}
@media (max-width:420px){.room-switch small{display:none}.room-switch b{font-size:16px}.room-switch img{width:30px;height:30px}}
.room[hidden]{display:none}
body.in-storybook{background:#F1F9FA}
body.in-storybook .room-switch{background:rgba(241,249,250,.95)}
.book-hero{margin:8px 0 14px;padding:22px 20px;border-radius:28px;background:linear-gradient(160deg,#DDF0F2,#B9E0E5);display:flex;flex-direction:column;gap:8px}
.book-hero h2{margin:4px 0 0;font-size:clamp(26px,4vw,34px);color:#1F4F57}
.book-hero p{margin:0;font-size:17px;line-height:1.5;color:#244A50}
.book-hero .bh-note{font-size:15px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.7)}
.room-book .kind-badge{color:#245E68}
.room-book .cast-grid{padding:0}
.book-credit{font-size:13px;color:var(--k-ink3,#6b6280);margin:18px 4px 6px}
.book-off{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:18px;border-radius:24px;background:#fff;border:2px dashed #9CCBD2;margin-top:6px}
.book-off[hidden]{display:none}
.book-off img{width:48px;height:48px}
.book-off div{flex:1;min-width:200px}.book-off b{display:block;font-size:17px}.book-off span{font-size:15px;color:var(--k-ink2)}
.room-door{display:flex;align-items:center;gap:14px;margin:26px 0 8px;padding:16px;border-radius:24px;background:linear-gradient(160deg,#DDF0F2,#C3E5E9);text-decoration:none;color:#1F4F57;border:2px solid #9CCBD2}
.room-door b{display:block;font-size:19px}.room-door span span{font-size:15px;line-height:1.4;color:#244A50}
.rd-books{display:flex;flex-shrink:0}.rd-books img{width:34px;height:34px;margin-left:-10px;background:#fff;border-radius:50%;padding:3px;box-shadow:0 0 0 2px #DDF0F2}
.rd-books img:first-child{margin-left:0}
.rd-go{font-size:30px;margin-left:auto}
@media (max-width:480px){.room-door{flex-wrap:wrap}.rd-books img{width:30px;height:30px}}
/* back to the right room from a word puzzle */
.world-back{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:15px;color:var(--k-acc,#6B4FD8);text-decoration:none;margin:0 0 8px}
body.in-storybook .topbar{background:rgba(241,249,250,.92)}
@media (max-width:480px){.room-door{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.room-door .rd-books{grid-column:1/-1}.room-door .rd-go{grid-column:2;grid-row:2}}
.rd-books img{margin-left:-6px}
/* Me: first visit + the two puzzle doors (Oct 6) */
.me-start{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:18px;border-radius:24px;background:#fff;border:2px solid var(--k-line,#E4DCF5);margin:6px 0 10px}
.me-start img{width:64px;height:64px}
.me-start div{flex:1;min-width:200px}.me-start b{display:block;font-size:19px;margin-bottom:2px}.me-start span{font-size:16px;color:var(--k-ink2);line-height:1.45}
.me-start[hidden]{display:none}
.me-doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px}
.me-door{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:24px;text-decoration:none;color:var(--k-ink);border:2px solid transparent}
.me-door.bible{background:#F6ECD2;border-color:#E8D3A0}.me-door.bible .kind-badge{color:#6E531A}
.me-door.book{background:#DDF0F2;border-color:#9CCBD2}.me-door.book .kind-badge{color:#245E68}
.me-door .md-n{font-size:15px;color:var(--k-ink2);line-height:1.45}
.me-door .md-go{font-weight:700;font-size:16px}
.me-door:hover,.me-door:focus-visible{border-color:var(--k-acc,#6B4FD8)}
/* Home: the two puzzle doors */
.home-puzzles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px;margin-top:8px}
.hp-door{display:flex;align-items:center;gap:14px;padding:16px;border-radius:24px;text-decoration:none;color:var(--k-ink);border:2px solid transparent}
.hp-door b{display:block;font-size:19px}.hp-door span span{display:block;font-size:15px;line-height:1.45;color:var(--k-ink2)}
.hp-door.bible{background:#F6ECD2;border-color:#E8D3A0}
.hp-door.book{background:#DDF0F2;border-color:#9CCBD2}
.hp-door .hp-art{width:64px;height:64px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hp-door .hp-art img{width:46px;height:46px}
.hp-door:hover,.hp-door:focus-visible{border-color:var(--k-acc,#6B4FD8)}
.hp-door .rd-books{margin-top:6px}
/* story end: play with this story */
.end-play{padding:14px 16px;border-radius:24px;background:#F6ECD2}
.end-play .eyebrow{color:#6E531A}
.end-play .fs-ways{margin-top:8px}
.end-play .more{display:inline-block;margin-top:10px;font-weight:700;font-size:15px;color:#6E531A;text-decoration:none}
.room-switch [data-room="bible"][aria-selected="true"]{background:#F6ECD2;border-color:#C79A3A;box-shadow:0 3px 0 #C79A3A}
.room-switch [data-room="storybook"][aria-selected="true"]{background:#DDF0F2;border-color:#3B8E9B;box-shadow:0 3px 0 #3B8E9B}
/* story cover: story language for kids (Oct 6) */
.klang{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 2px}
.klang-k{font-size:15px;font-weight:600;color:var(--k-ink2)}
.klang button{min-height:44px;padding:6px 16px;border-radius:999px;border:2px solid var(--k-line,#E4DCF5);background:#fff;font:inherit;font-weight:700;font-size:16px;color:var(--k-ink);cursor:pointer}
.klang button[aria-pressed="true"]{background:#2A2140;color:#fff;border-color:#2A2140}
.klang button:focus-visible{outline:3px solid var(--k-acc,#6B4FD8);outline-offset:2px}
.home-klang{margin:6px 0 4px}
/* Spanish runs longer: let the empty-stage hint wrap */
.bs-stage .bs-empty{white-space:normal!important;max-width:86%;text-align:center;border-radius:22px}

/* ---------- neurodivergent first-use review (Oct 6) ---------- */
/* the logo's pixels twinkle twice when a page opens, then rest (no endless motion at the edge of the eye) */
.px-grid span{animation-iteration-count:2!important}
/* I Spy: the pictures hold still while you look for one */
.fi-stage .prop .bob{animation:none!important}
.fi-stage .plabel{max-width:220px;white-space:normal;text-align:center;z-index:5}
/* back links big enough to tap */
.fi-top .back,.bs-top .back,.px-top .back,.ws-top .back,.world-back,.ord-top .back,a.back{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;margin-left:-6px}
.pp-strip-head a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:999px;border:2px solid var(--k-line,#E4DCF5);background:#fff;font-weight:700;text-decoration:none}
/* no all-caps labels */
.px-daily .pd-tag{text-transform:none!important;letter-spacing:0!important}
/* hear-this buttons added to the puzzle pages */
.hear-pg{width:48px;height:48px;flex-shrink:0;border-radius:50%;border:2px solid var(--k-line,#E4DCF5);background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin-left:auto}
.hear-pg svg{width:24px;height:24px}
.hub-head{align-items:flex-start}
.bank-head .hear-pg,.clue-bar .hear-pg{width:44px;height:44px;margin-left:6px}

/* ---------- Play kit (Oct 6): every puzzle page has the same frame ----------
   1) a top row: back pill on the left, where-you-are on the right
   2) a board: one warm sky-to-sand surface under every game (storybook worlds tint it their own color)
   3) the same buttons (btn-main / btn-soft) under the board */
:root{--play-board:linear-gradient(180deg,#E6F1FF 0%,#FFF4DE 100%);--play-edge:#E2D8F6;--play-shadow:0 10px 30px rgba(60,45,120,.10)}
.play-top,.fi-top,.bs-top,.px-top,.ws-top,.ord-top{display:flex;align-items:center;gap:10px;margin:16px 0 4px;flex-wrap:wrap}
.play-top .spacer,.fi-top .spacer,.bs-top .spacer,.px-top .spacer,.ws-top .spacer,.ord-top .spacer{flex:1}
.fi-top .back,.bs-top .back,.px-top .back,.ws-top .back,.ord-top .back,.play-top .back,.world-back,a.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;margin:0;border-radius:999px;background:#fff;border:2px solid var(--k-line,#DCD3F5);color:var(--k-acc-deep,#43299E);font:700 15px/1 var(--body,Lexend,sans-serif);text-decoration:none;white-space:nowrap}
.fi-top .back:hover,.bs-top .back:hover,.px-top .back:hover,.ws-top .back:hover,.ord-top .back:hover,.play-top .back:hover,.world-back:hover,a.back:hover,
.fi-top .back:focus-visible,.play-top .back:focus-visible,.world-back:focus-visible,a.back:focus-visible{border-color:var(--k-acc,#6B4FD8)}
.play-count{font-weight:700;font-size:15px;color:var(--k-ink2,#4A4468)}
/* the board */
.o-slots,.ws-faces,.px-board{background:var(--play-board);border:2px solid var(--play-edge);border-radius:24px;box-shadow:var(--play-shadow);padding:14px}
.o-slots{max-width:900px}
.px-board .pb-grid{border-radius:14px}
.o-slot{background:rgba(255,255,255,.65)}
.ws-faces{max-width:760px}
@media (max-width:560px){.o-slots,.ws-faces,.px-board{padding:10px;border-radius:20px}}

/* ---------- one-time calm-mode question on the Puzzles tab ---------- */
.calm-ask{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#EEF6EC;border:2px solid #CFE5CA;border-radius:22px;padding:14px 16px;margin:14px 0 6px}
.calm-ask img{width:52px;height:52px;flex-shrink:0}
.calm-ask .ca-t{flex:1;min-width:200px}
.calm-ask b{display:block;font-size:18px;margin-bottom:2px}
.calm-ask span{font-size:16px;color:var(--k-ink2,#4A4468);line-height:1.4}
.calm-ask .cover-btns{margin:0}
/* every puzzle page uses the same width, so moving between them doesn't jump */
main.play-wrap{max-width:860px!important;margin-left:auto;margin-right:auto}
.calm-ask[hidden]{display:none}
/* phones: the word list and the crossword clue sit ON TOP of the tab bar, never behind it */
@media (max-width:760px){
  body.has-tabbar .bank.sticky{bottom:calc(70px + env(safe-area-inset-bottom))!important}
  body.has-tabbar .clue-bar{bottom:calc(70px + env(safe-area-inset-bottom))}
}
/* every puzzle page: the back pill sits in the same spot */
@media (max-width:560px){main.play-wrap{padding-left:20px!important;padding-right:20px!important}}
main.play-wrap .puzzle-area{padding-top:0!important;margin-top:0!important}
main.play-wrap .play-top{margin-top:16px}
/* I Spy: small pictures (stars, a bird) still get a finger-sized target */
.fi-stage .prop::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,52px);height:max(100%,52px);transform:translate(-50%,-50%);border-radius:50%}
html.fp-js .seo-only{display:none}
.seo-list{padding-left:20px;line-height:1.8}
/* Spanish front door: the 40 stories as compact rows */
.es-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important}
.es-list .mini-card{flex-direction:row;align-items:center;gap:12px;min-height:84px}
.es-list .mini-card .art{width:84px;min-width:84px;height:84px;display:flex;align-items:center;justify-content:center}
.es-list .mini-card .art img{width:56px;height:56px}
.es-list .mini-card .t{padding:0;font-size:17px}
.es-list .mini-card .meta{padding:0 10px 0 0}
.es-list .mini-card .es-txt{display:flex;flex-direction:column;gap:4px;padding:10px 12px 10px 0}
.es-list .es-txt .t,.es-list .es-txt .meta{padding:0!important}
