/* Kid mode — bright, bold, saturated, modern sans. Not beige. */
:root{
  --kid-bg:#e8f1ff;
  --kid-ink:#14203c;
  --kid-card:#ffffff;
}
body.mode-kid{
  background:var(--kid-bg);
  color:var(--kid-ink);
}
body.mode-kid .app{
  background:
    radial-gradient(800px 400px at 10% -10%,#ffe36a55,transparent 50%),
    radial-gradient(700px 380px at 110% 0,#7af0c855,transparent 45%),
    radial-gradient(600px 400px at 50% 120%,#7ec8ff66,transparent 50%),
    var(--kid-bg);
  padding:0;
  height:100dvh;
  max-height:100dvh;
  overflow:hidden !important;
}
body.mode-kid #app{
  flex:1 1 auto;
  min-height:0;
  height:100%;
  overflow:hidden !important;
  display:flex;
  flex-direction:column;
}
body.mode-kid .topbar, body.mode-kid .tabbar{display:none !important}
body.mode-kid #app{max-width:none;width:100%}
/* kid-shell width fill */
body.mode-kid .app,body.mode-kid .kid-shell,body.mode-kid .kid-shell .view{
  width:100%;
  max-width:none;
}

.kid-shell{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  min-height:0;
  height:100%;
  overflow:hidden;
  padding:0;
  color:var(--kid-ink);
  font-family:var(--font);
}
.kid-shell .view{padding:0;isolation:isolate}

.kid-topbar,.kid-chrome.branded{
  display:flex;align-items:center;gap:10px;
  min-height:calc(56px + env(safe-area-inset-top,0px));
  padding:calc(8px + env(safe-area-inset-top,0px)) 12px 8px;
  background:rgba(255,255,255,.86);
  border-bottom:3px solid #14203c;
  backdrop-filter:blur(12px);
  position:relative;flex:none;z-index:20
}
.kid-topbar .mark{width:34px;height:34px;border-radius:50%}
.kid-topbar .brand{flex:1}
.kid-topbar .brand-name{font-weight:800;font-size:.95rem;color:#14203c;letter-spacing:-.02em}
.kid-topbar .brand-sub{font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:#3a4a6a}
.kid-chrome-actions{display:flex;gap:6px;align-items:center}
.kid-icon-btn{
  width:44px;height:44px;border-radius:14px;border:2px solid #14203c;background:#fff;
  display:grid;place-items:center;cursor:pointer;color:#14203c
}
.kid-icon-btn svg{width:20px;height:20px}
.kid-icon-btn.grownup{background:#14203c;color:#fff;border-color:#14203c}
.who{display:flex;align-items:center;gap:8px;text-decoration:none;color:#14203c;font-weight:800}
.who span span{display:block;font-size:.65rem;font-weight:700;color:#3a4a6a}

.kid-hero{margin:6px 0 4px}
.kid-hero h1{font-size:clamp(2rem,8vw,2.6rem);color:#14203c;letter-spacing:-.04em}
.kid-hero .kicker{color:#ff4d6d;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;margin:0 0 4px}
.kid-hero p{color:#3a4a6a;margin:6px 0 0;font-weight:600}

.picker-grid{display:flex;flex-direction:column;gap:10px}
.picker-card{
  display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;
  background:#fff;border:3px solid #14203c;border-radius:22px;padding:12px 14px;
  text-align:left;cursor:pointer;box-shadow:4px 4px 0 #14203c
}
.picker-card h2{font-size:1.25rem;font-variant-numeric:lining-nums}
.picker-card p{margin:2px 0 0;color:#3a4a6a;font-weight:600}
.avatar-pick{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:8px}
.avatar-pick button{background:#fff;border:3px solid #14203c;border-radius:16px;padding:6px;cursor:pointer}
.avatar-pick button[aria-pressed="true"]{background:#ffe36a;box-shadow:3px 3px 0 #14203c}

.today-card{
  display:grid;grid-template-columns:1.2fr .8fr;gap:10px;align-items:stretch;
  background:#0066FF;color:#fff;
  border:3px solid #14203c;border-radius:24px;padding:10px;text-decoration:none;
  box-shadow:5px 5px 0 #14203c;margin:6px 0 6px;min-height:0
}
.today-card h2{color:#fff;font-size:1.15rem}
.today-card .tag{display:inline-block;background:#14203c;color:#fff;border-radius:999px;padding:3px 8px;font-size:.65rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.today-card .go{display:inline-block;margin-top:6px;background:#ffe36a;color:#14203c;font-weight:800;border-radius:999px;padding:7px 12px}
.today-card .thumb{border-radius:16px;background-size:cover;background-position:center;min-height:86px;max-height:140px;border:3px solid #14203c}
.today-card.chapel-cta{grid-template-columns:1fr;min-height:0}

.kid-subjects{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kid-subj{
  display:flex;flex-direction:column;gap:4px;min-height:88px;padding:8px 10px;
  border-radius:20px;text-decoration:none;border:3px solid #14203c;
  box-shadow:4px 4px 0 #14203c;color:#14203c;background:#fff
}
.kid-subj h3{font-size:.98rem;color:#14203c !important}
.kid-subj .short{font-size:.72rem;font-weight:700;color:#3a4a6a}
.kid-subj .glyph{width:38px;height:38px;border-radius:12px;background:rgba(20,32,60,.08);display:grid;place-items:center}
.kid-subj .glyph svg{width:22px;height:22px}

.sticker-row{display:flex;gap:8px;margin:2px 0 6px}
.sticker{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid #14203c;font-size:1.1rem}
.sticker.empty{opacity:.35}

.speak-btn{
  display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:10px 16px;
  background:#5b5bff;color:#fff;border:3px solid #14203c;border-radius:16px;
  font-weight:800;font-size:1.05rem;box-shadow:3px 3px 0 #14203c;cursor:pointer
}
.speak-btn svg{width:22px;height:22px}
.speak-btn[aria-pressed="true"]{background:#14203c}
.howto{font-weight:600;color:#3a4a6a}

.quiz h2{font-size:1.15rem;margin:8px 0}
.choices{display:flex;flex-direction:column;gap:8px}
.choice{
  min-height:52px;text-align:left;padding:12px 14px;border-radius:16px;
  border:3px solid #14203c;background:#fff;font-weight:800;cursor:pointer;box-shadow:3px 3px 0 #14203c
}
.choice.right{background:#3dff8a}
.choice.wrong{background:#ff8aa0}
.progress-dots{display:flex;gap:6px;margin:6px 0}
.progress-dots span{width:10px;height:10px;border-radius:50%;background:#c9d6ee}
.progress-dots span.on{background:#5b5bff}
.progress-dots span.ok{background:#1fae5b}
.feedback{min-height:1.2em;font-weight:800;margin-top:6px}
.feedback.ok{color:#0b7a3a}
.feedback.no{color:#c21d3a}

.result-card{
  background:#fff;border:3px solid #14203c;border-radius:24px;padding:20px 16px;
  text-align:center;box-shadow:6px 6px 0 #14203c;margin-top:12px
}
.result-card.pass{background:#d9ffe6}
.result-card.fail{background:#ffe4ea}
.result-card h1{font-size:2.4rem;margin:8px 0}
.result-card .score{font-family:var(--mono);font-size:1.4rem;font-weight:800}
.retake-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:56px;padding:12px 22px;margin-top:14px;width:100%;
  background:#ff4d6d;color:#fff;border:3px solid #14203c;border-radius:16px;
  font-weight:800;font-size:1.15rem;letter-spacing:.04em;text-transform:uppercase;
  box-shadow:4px 4px 0 #14203c;cursor:pointer
}

.celebrate{text-align:center;padding:18px 8px 28px;position:relative}
.celebrate h1{font-size:2.6rem}
.celebrate .cta{margin-top:16px;background:#5b5bff;color:#fff;border:3px solid #14203c;box-shadow:4px 4px 0 #14203c}
.stars-inline{font-size:1.8rem;margin:8px 0}
.spark{position:absolute;animation:none !important;border-radius:2px}
.confetti{position:absolute;inset:0;pointer-events:none}

.pin-wrap{max-width:360px;margin:0 auto;text-align:center;padding-top:8px}
.pin-wrap h1{font-size:1.8rem}
.dots{display:flex;justify-content:center;gap:10px;margin:16px 0}
.dots b{width:16px;height:16px;border-radius:50%;border:3px solid #14203c;background:#fff}
.dots b.fill{background:#14203c}
.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.key{
  min-height:64px;border-radius:16px;border:3px solid #14203c;background:#fff;
  font-weight:800;font-size:1.4rem;font-family:var(--mono);cursor:pointer;box-shadow:3px 3px 0 #14203c
}
.key.ghost{font-size:.8rem}
.pin-error{color:#c21d3a;font-weight:800;min-height:1.2em}

.fs-banner{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  background:#ffe36a;border:3px solid #14203c;border-radius:14px;padding:8px 10px;margin:10px 0;font-weight:700
}
.fs-banner button{background:#14203c;color:#fff;border:0;border-radius:10px;padding:8px 10px;font-weight:800}
@media (display-mode:fullscreen),(display-mode:standalone){
  .fs-banner{display:none !important}
}
body.fs-shot .fs-banner{display:none !important}

/* Grade bands */
.grade-k2 .kid-subj,.grade-k2 .choice,.grade-k2 .speak-btn{min-height:64px}
.grade-k2 .picker-card,.grade-k2 .kid-subj{border-radius:26px}
.grade-k2 h1{letter-spacing:-.03em}
.grade-g35 .kid-subj,.grade-g35 .today-card{border-radius:16px;box-shadow:0 8px 20px rgba(20,32,60,.12)}
.grade-g35 .today-card{box-shadow:0 10px 24px rgba(20,32,60,.18)}
.grade-g35 .picker-card{box-shadow:0 8px 18px rgba(20,32,60,.1)}

@media (min-width:768px){
  .kid-subjects{grid-template-columns:repeat(4,1fr)}
  .kid-lesson-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start}
  .today-card{grid-template-columns:1.3fr 1fr}
  .kid-shell .view{max-width:1100px;margin:0 auto;width:100%}
}

@media (max-width:400px){
  .kid-lesson-wrap .player{aspect-ratio:16/8}
  .howto{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
body.mode-kid,
body.mode-kid.mode-parent-dash{
  background:var(--kid-bg) !important;
  color:var(--kid-ink) !important;
}
body.mode-kid .app,
body.mode-kid.mode-parent-dash .app{
  background:
    radial-gradient(800px 400px at 10% -10%,#ffe36a55,transparent 50%),
    radial-gradient(700px 380px at 110% 0,#7af0c855,transparent 45%),
    radial-gradient(600px 400px at 50% 120%,#7ec8ff66,transparent 50%),
    var(--kid-bg) !important;
}
.kid-shell{color:var(--kid-ink)}
.kid-subj{
  background:linear-gradient(165deg, #fff 0%, color-mix(in srgb, currentColor 22%, #fff) 100%) !important;
}
.avatar{width:56px;height:56px;flex:none;line-height:0}
.avatar svg{width:56px;height:56px;display:block}
.avatar.lg,.avatar.lg svg{width:64px;height:64px}
.avatar.sm,.avatar.sm svg{width:32px;height:32px}
.avatar-pick button .avatar,.avatar-pick button .avatar svg{width:52px;height:52px}
.who .avatar,.who .avatar svg{width:36px;height:36px}
.kid-topbar .av-hit{
  display:grid;place-items:center;
  min-width:48px;min-height:48px;width:48px;height:48px;
  padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer;line-height:0;
}
.kid-topbar .who .avatar,.kid-topbar .who .avatar svg,.kid-topbar .av-hit .avatar,.kid-topbar .av-hit .avatar svg{
  width:48px;height:48px;
}
.picker-card .avatar{margin-right:2px}

/* Brighter kid theme: hot yellow, electric blue, bright pink, orange.
   Original art only. No Baby Shark, Pinkfong, or other trademarked likenesses. */
body.mode-kid,
body.mode-kid.mode-parent-dash{
  --kid-bg:#7CFFF0;
  --kid-ink:#141428;
  --hot:#FFE600;
  --pink:#FF2E93;
  --blue:#0066FF;
  --lime:#FF4FAD;
  --orange:#FF6A00;
  --electric:#00E5FF;
  background:
    radial-gradient(circle at 12% 8%, #FFE600 0 18%, transparent 19%),
    radial-gradient(circle at 92% 12%, #FF2E93 0 14%, transparent 15%),
    radial-gradient(circle at 80% 90%, #00E5FF 0 16%, transparent 17%),
    radial-gradient(circle at 8% 78%, #FF4FAD 0 12%, transparent 13%),
    linear-gradient(180deg, #7CFFF0 0%, #B4F8FF 40%, #FFF38A 100%) !important;
  color:var(--kid-ink) !important;
}
body.mode-kid .app,
body.mode-kid.mode-parent-dash .app{
  background:transparent !important;
}
.kid-shell .view,
.ms-shell .view,
.hs-shell .view{
  position:relative;z-index:1;
  flex:1 1 auto;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  min-height:0;
  height:100%;
  overflow:hidden;
  padding:0;
}
.kid-shell .view > .kid-topbar,
.ms-shell .view > .kid-topbar,
.hs-shell .view > .kid-topbar{grid-row:1}
.kid-scroll{
  grid-row:2;
  position:relative;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:0 16px 12px;
}
.kid-shell .view > .kid-dock,
.ms-shell .view > .kid-dock,
.hs-shell .view > .kid-dock{grid-row:3}
.kid-topbar{
  background:#FFE600 !important;
  border-bottom:5px solid #141428 !important;
}
.kid-topbar .brand-name{color:#141428;font-weight:900}
.kid-topbar .brand-sub{color:#141428;opacity:.8}
.kid-icon-btn{
  width:48px;height:48px;border-width:4px;border-radius:18px;
  box-shadow:3px 3px 0 #141428;background:#fff
}
.kid-icon-btn.grownup{background:#0066FF;color:#fff;border-color:#141428}
.kid-hero h1{color:#141428;text-shadow:3px 3px 0 #FFE600}
.kid-hero .kicker{color:#FF2E93;font-size:.78rem}

.picker-card,.kid-subj,.choice,.key,.result-card,.kid-chapel-card,.kid-discuss{
  border-width:4px !important;
  border-color:#141428 !important;
  box-shadow:5px 5px 0 #141428 !important;
}
.picker-card{background:#fff}
.today-card{
  background:#0066FF !important;
  border-width:5px !important;
  box-shadow:7px 7px 0 #141428 !important;
}
.today-card .go{
  background:#FFE600;color:#141428;border:3px solid #141428;
  font-size:1.05rem;animation:bob 1.4s ease-in-out infinite
}
.speak-btn,.retake-btn,.celebrate .cta,.dock-btn,.kid-chapel-card{
  transition:transform .15s ease
}
.speak-btn{background:#0066FF;border-width:4px;box-shadow:4px 4px 0 #141428}
.retake-btn{background:#FF2E93}
.celebrate .cta{background:#0066FF}

.kid-subj{
  background:#fff !important;
  min-height:88px
}
.kid-subj:nth-child(6n+1){background:#FFE600 !important}
.kid-subj:nth-child(6n+2){background:#00E5FF !important}
.kid-subj:nth-child(6n+3){background:#FF2E93 !important;color:#fff}
.kid-subj:nth-child(6n+3) h3,.kid-subj:nth-child(6n+3) .short{color:#fff !important}
.kid-subj:nth-child(6n+4){background:#B44AFF !important;color:#fff}
.kid-subj:nth-child(6n+4) h3,.kid-subj:nth-child(6n+4) .short{color:#fff !important}
.kid-subj:nth-child(6n+5){background:#FF6A00 !important;color:#fff}
.kid-subj:nth-child(6n+5) h3,.kid-subj:nth-child(6n+5) .short{color:#fff !important}
.kid-subj:nth-child(6n+6){background:#0066FF !important;color:#fff}
.kid-subj:nth-child(6n+6) h3,.kid-subj:nth-child(6n+6) .short{color:#fff !important}
.kid-subj .glyph{background:#fff;border:3px solid #141428}

.kid-subj:active,.picker-card:active,.choice:active,.speak-btn:active,
.dock-btn:active,.today-card:active,.retake-btn:active,.key:active{
  transform:translate(3px,3px) scale(.98);
  box-shadow:2px 2px 0 #141428 !important
}

/* Content always paints above decorations. Decorations live in the margins,
   often half off-canvas, so they cannot cover titles, cards, or buttons. */
.kid-hero,.today-card,.picker-card,.kid-subj,.kid-chapel-card,.choice,
.result-card,.celebrate,.section-label,.sticker-row,.avatar-pick,.speak-btn,
.quiz,.howto,.kid-player,.player,.pin-wrap,.keys,.level-card{
  position:relative;z-index:1
}
.kid-deco{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:-1}
.bubble{position:absolute;border-radius:50%;border:4px solid #141428;opacity:.85;animation:floaty 5s ease-in-out infinite}
.bubble.b1{width:46px;height:46px;background:#FF2E93;top:64px;left:-22px;animation-delay:0s}
.bubble.b2{width:28px;height:28px;background:#FF4FAD;top:88px;right:-16px;animation-delay:.6s}
.bubble.b3{width:36px;height:36px;background:#00E5FF;top:auto;bottom:148px;left:-20px;animation-delay:1.1s}
.kid-deco .star{position:absolute;color:#FFE600;font-size:1.6rem;text-shadow:2px 2px 0 #141428;animation:spinny 6s linear infinite}
.kid-deco .s1{top:76px;right:84px}
.kid-deco .s2{top:auto;bottom:168px;left:6px;animation-delay:1s;color:#FF2E93}
.kid-deco .s3{top:auto;bottom:180px;right:8px;animation-delay:2s;color:#0066FF}
.mascot{position:absolute;width:64px;height:64px;animation:wiggle 2.2s ease-in-out infinite}
.mascot-sun{top:68px;right:4px}
.mascot-bird{top:auto;bottom:140px;right:-30px;animation-delay:.5s}
body.fs-shot .kid-deco *,body.fs-shot .today-card .go,body.fs-shot .celebrate .burst{
  animation:none !important
}

@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@keyframes wiggle{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}
@keyframes spinny{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes burst{0%{transform:scale(.4);opacity:1}100%{transform:scale(1.3);opacity:0}}

.celebrate .burst{animation:bob .6s ease-in-out infinite;font-size:3rem;filter:drop-shadow(3px 3px 0 #141428)}
.celebrate h1{color:#141428;text-shadow:4px 4px 0 #FFE600}
.result-card.pass{background:#FFE600}
.result-card.fail{background:#FFD0E8}
.dots b{border-width:4px;background:#fff}
.dots b.fill{background:#0066FF}

.kid-dock{
  position:relative;flex:none;z-index:30;
  display:flex;gap:10px;padding:8px;
  margin:8px 12px calc(10px + env(safe-area-inset-bottom,0px));
  background:#141428;border:4px solid #141428;border-radius:24px;
  box-shadow:0 8px 0 #FF2E93
}
.dock-btn{
  flex:1;min-height:52px;border-radius:16px;border:3px solid #141428;
  background:#FFE600;color:#141428;font-weight:900;font-size:1rem;
  display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer
}
.dock-btn.on{background:#00E5FF}
.dock-ico{font-size:1.2rem}

.kid-chapel-grid{display:grid;gap:10px;margin:8px 0 0}
.kid-chapel-card{
  display:grid;grid-template-columns:84px 1fr;gap:8px;align-items:center;
  background:#fff;border:4px solid #141428;border-radius:22px;padding:5px;
  text-decoration:none;color:#141428
}
.kid-chapel-card:nth-child(odd){background:#FFE600}
.kid-chapel-card:nth-child(3n){background:#00E5FF}
.kid-chapel-card h3{font-size:.95rem;margin:0 0 2px}
.kid-chapel-card p{margin:0;font-size:.72rem;font-weight:700;line-height:1.25}
.kid-chapel-card .chapel-thumb{height:56px;border-radius:14px;border:3px solid #141428;background:#000 center/cover;position:relative}
.kid-chapel-card .play{position:absolute;right:6px;bottom:6px;background:#FF2E93;color:#fff;border:2px solid #141428;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-size:.7rem}
.kid-discuss{
  background:#FFE600;border:4px solid #141428;border-radius:22px;padding:14px;margin:12px 0;
  box-shadow:5px 5px 0 #141428;font-weight:800
}
.kid-discuss .tag{display:inline-block;background:#FF2E93;color:#fff;border:3px solid #141428;border-radius:999px;padding:2px 10px;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}

/* K-2: boldest, most playful */
.grade-k2 .kid-subj,.grade-k2 .choice,.grade-k2 .speak-btn,.grade-k2 .dock-btn{min-height:68px;border-radius:26px}
.grade-k2 .mascot{width:74px;height:74px}
.grade-k2 .today-card .go{animation-duration:1.1s}
.grade-k2 h1{font-size:clamp(2.1rem,9vw,2.8rem)}

/* Grades 3–5: the same bright primaries and neons as K–2.
   Only layout and text density mature a bit (tighter cards, slightly smaller type). */
.grade-g35 .kid-subj,.grade-g35 .choice,.grade-g35 .today-card,.grade-g35 .kid-chapel-card{
  border-radius:18px;
}
.grade-g35 .kid-subj .short,.grade-g35 .kid-chapel-card p,.grade-g35 .howto{
  font-size:.8rem;font-weight:700;line-height:1.35;
  display:block;-webkit-line-clamp:unset;overflow:visible;
}
.grade-g35 h1{letter-spacing:-.04em}
.grade-g35 .kid-subjects{gap:12px}

@media (min-width:768px){
  .kid-chapel-grid{grid-template-columns:1fr 1fr}
  .kid-dock{max-width:520px;width:calc(100% - 24px);margin-left:auto;margin-right:auto}
}

@media (prefers-reduced-motion: reduce){
  .kid-shell *,.kid-deco *,.today-card .go,.mascot,.bubble,.star,.celebrate .burst{
    animation:none !important;transition:none !important
  }
}

@media (max-width:600px){
  .player.kid-player,.kid-lesson-wrap .player{aspect-ratio:16/10;max-height:160px}
}


/* —— Bible story backgrounds (behind content; never cover text/buttons) —— */
body.mode-kid.has-story{
  background:var(--story-sky,#1E90FF) !important;
}
body.mode-kid.has-story .app{background:transparent !important}
.kid-story-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
}
.kid-story-bg img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;object-position:center top;display:block;
  transition:opacity .4s ease;
}
.kid-story-bg img.story-out{opacity:0}
.kid-story-bg img.story-in{opacity:0;animation:storyFadeIn .4s ease forwards}
@keyframes storyFadeIn{to{opacity:1}}
body.fs-shot .kid-story-bg img,
body.fs-shot .story-banner img{transition:none !important;animation:none !important;opacity:1 !important}
.kid-shell .view{isolation:isolate}
.kid-shell .view > .kid-topbar,
.kid-shell .view > .kid-scroll,
.kid-shell .view > .kid-dock{position:relative;z-index:2}
body.has-story .kid-deco{display:none !important}

.story-banner{
  position:relative;
  display:block;
  height:160px;
  margin:8px 0 16px;
  border:4px solid #141428;
  border-radius:24px;
  overflow:hidden;
  box-shadow:4px 4px 0 #141428;
  z-index:2;
  flex:none;
  background:var(--story-sky,#1E90FF);
}
.story-banner.is-compact{height:112px}
.story-banner img{
  width:100%;height:100%;object-fit:cover;object-position:center center;display:block;
  pointer-events:none;
}
.story-banner .story-chip{
  position:absolute;left:8px;right:8px;bottom:8px;
  margin:0;width:fit-content;max-width:calc(100% - 16px);
  z-index:3;
}
@media (min-width:768px){
  .story-banner{height:200px}
  .story-banner.is-compact{height:140px}
}
.kid-scroll > .story-chip{width:fit-content;max-width:100%}
.story-chip{
  position:relative;z-index:2;
  display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;
  margin:8px 0 14px;padding:6px 12px;
  background:#FFE600;color:#141428;
  border:4px solid #141428;border-radius:999px;
  font-weight:900;font-size:.86rem;line-height:1.2;
  box-shadow:3px 3px 0 #141428;max-width:100%;
  box-sizing:border-box;
}
.story-chip-kicker,.story-chip-title{font-weight:900;color:#141428}
.story-chip-ref{font-weight:800;font-size:.72rem;color:#141428;opacity:.8}
.story-strip{
  display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;
  margin:0 0 8px;padding:2px 0 6px;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.story-strip::-webkit-scrollbar{display:none}
.story-dot{
  box-sizing:border-box;flex:0 0 auto;width:40px;height:40px;border-radius:12px;
  border:3px solid #141428;background:#fff;font-size:1.05rem;
  box-shadow:3px 3px 0 #141428;cursor:pointer;display:grid;place-items:center;
}
.story-dot.on{background:#FFE600}

/* Headings stay readable on any story */
body.has-story .kid-hero h1,
body.has-story .kid-lesson-wrap h1,
body.has-story .pin-wrap h1,
body.has-story .section-label h2,
body.has-story .quiz h2{
  color:#141428;
  text-shadow:
    0 0 8px #fff, 0 0 14px #fff,
    2px 0 0 #fff,-2px 0 0 #fff,0 2px 0 #fff,0 -2px 0 #fff,
    3px 3px 0 #fff;
}
body.has-story .kid-hero .kicker,
body.has-story .kid-hero p,
body.has-story .howto,
body.has-story .pin-wrap p,
body.has-story .kid-lesson-wrap .kicker{
  text-shadow:none;
}
/* Solid pills so small copy stays readable over busy story art */
body.has-story .kid-hero p,
body.has-story .howto,
body.has-story .pin-wrap p{
  display:block;width:fit-content;max-width:100%;
  background:rgba(255,255,255,.94);color:#141428;
  padding:5px 10px;border-radius:12px;margin-left:0;margin-right:auto;
}
body.has-story .kid-hero .kicker,
body.has-story .kid-lesson-wrap .kicker{
  display:block;width:fit-content;background:#fff;color:#E6004C;
  padding:2px 10px;border-radius:999px;margin-bottom:6px;
}

/* —— Solid colorful buttons (no gradients). Big, high-contrast, 5-year-old clear. —— */
.kid-shell .today-card{
  background:#0066FF !important;color:#fff;
  background-image:none !important;
  border:4px solid #141428;border-radius:24px;
  box-shadow:5px 5px 0 #141428;
}
.kid-shell .today-card h2,.kid-shell .today-card p{color:#fff}
.kid-shell .today-card .tag{background:#141428;color:#FFE600;border:0}
.kid-shell .today-card .go,
.kid-shell .cta,
.kid-shell button.cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  margin-top:8px;padding:10px 18px;min-height:52px;
  background:#FF2E93 !important;background-image:none !important;
  color:#fff !important;
  border:4px solid #141428 !important;border-radius:999px;
  font-weight:900;font-size:1.05rem;
  box-shadow:4px 4px 0 #141428;cursor:pointer;text-decoration:none;
}
.kid-shell .today-card.chapel-cta{
  background:#FFE600 !important;color:#141428;
}
.kid-shell .today-card.chapel-cta h2,
.kid-shell .today-card.chapel-cta p{color:#141428}
.kid-shell .today-card.chapel-cta .tag{background:#141428;color:#FFE600}
.kid-shell .today-card.chapel-cta .go{
  background:#0066FF !important;color:#fff !important;
}

.kid-shell .kid-subj{
  border:4px solid #141428;border-radius:22px;
  box-shadow:4px 4px 0 #141428;
  min-height:92px;padding:10px 12px;
}
.kid-shell .kid-subj h3{color:inherit !important}
.kid-shell .kid-subj .short{color:inherit;opacity:.85}
.kid-shell .kid-subj .glyph{background:rgba(20,20,40,.12);border:3px solid currentColor}

.kid-shell .dock-btn{
  border:4px solid #141428;border-radius:18px;
  font-weight:900;font-size:1.02rem;min-height:56px;
  box-shadow:none;background-image:none !important;
}
.kid-shell .dock-btn.dock-home,
.kid-shell .dock-btn[data-go="kid/home"]{background:#00E5FF !important;color:#141428}
.kid-shell .dock-btn.dock-chapel,
.kid-shell .dock-btn[data-go="kid/chapel"]{background:#FFE600 !important;color:#141428}
.kid-shell .dock-btn.dock-play,
.kid-shell .dock-btn[data-go="kid/play"]{background:#7B2FF7 !important;color:#fff}
.kid-shell .dock-btn.on{
  box-shadow:0 0 0 3px #fff, 0 0 0 7px #141428;
}

.kid-shell .speak-btn{
  background:#0066FF;color:#fff;background-image:none;
  border:4px solid #141428;border-radius:20px;
  min-height:56px;font-weight:900;box-shadow:4px 4px 0 #141428;
}
.kid-shell .speak-btn[aria-pressed="true"]{background:#141428;color:#7CFFF0}
.kid-shell .retake-btn{
  background:#FF2E93;color:#fff;background-image:none;
  border:4px solid #141428;border-radius:20px;
  min-height:56px;font-weight:900;box-shadow:4px 4px 0 #141428;
}
.kid-shell .choice{
  background:#fff;background-image:none;
  border:4px solid #141428;border-radius:20px;
  min-height:56px;font-weight:900;box-shadow:4px 4px 0 #141428;
}
.kid-shell .choice.right{background:#FFE600}
.kid-shell .choice.wrong{background:#FF8AA0}
.kid-shell .picker-card{
  background:#00E5FF;background-image:none;color:#141428;
  border:4px solid #141428;border-radius:24px;
  box-shadow:5px 5px 0 #141428;min-height:72px;
}
.kid-shell .picker-grid .picker-card:nth-child(2){background:#FFE600}
.kid-shell .picker-grid .picker-card:nth-child(3){background:#FF4FAD}
.kid-shell .picker-grid .picker-card:nth-child(4){background:#FF8A3D}
.kid-shell .picker-card h2{color:#141428}
.kid-shell .picker-card p{color:#141428;opacity:.8}
.kid-shell .avatar-pick button{
  background:#fff;border:4px solid #141428;border-radius:18px;box-shadow:3px 3px 0 #141428;
}
.kid-shell .avatar-pick button[aria-pressed="true"]{background:#FFE600}
.kid-shell .key{
  background:#FFE600;color:#141428;background-image:none;
  border:4px solid #141428;border-radius:20px;
  min-height:68px;font-weight:900;font-size:1.5rem;
  box-shadow:4px 4px 0 #141428;
}
.kid-shell .key.ghost{background:#00E5FF;font-size:.78rem}
.kid-shell .kid-icon-btn{
  background:#fff;border:4px solid #141428;border-radius:16px;
  width:48px;height:48px;box-shadow:3px 3px 0 #141428;
}
.kid-shell .kid-icon-btn.grownup{background:#141428;color:#FFE600}
.kid-shell .fs-banner button{
  background:#FF2E93;color:#fff;border:4px solid #141428;border-radius:14px;
  font-weight:900;box-shadow:3px 3px 0 #141428;
}

/* No gradient washes on any kid control */
.kid-shell .today-card,
.kid-shell .today-card .go,
.kid-shell .cta,
.kid-shell .dock-btn,
.kid-shell .kid-subj,
.kid-shell .speak-btn,
.kid-shell .retake-btn,
.kid-shell .choice,
.kid-shell .picker-card,
.kid-shell .key{
  background-image:none !important;
}

/* Quiz and how-to sit on solid cards so story art stays in the margins. */
.kid-shell .howto,
.kid-shell .quiz{
  background:#fff;
  border:4px solid #141428;
  border-radius:20px;
  padding:10px 12px;
  box-shadow:4px 4px 0 #141428;
  position:relative;z-index:2;
}
.kid-shell .howto{margin:8px 0;font-weight:800;color:#141428;text-shadow:none}
.kid-btn-chapel{
  display:flex;align-items:center;justify-content:center;gap:8px;
  min-height:56px;width:100%;margin:4px 0 8px;
  background:#FFE600 !important;background-image:none !important;color:#141428;
  border:4px solid #141428;border-radius:22px;
  font-weight:900;font-size:1.15rem;text-decoration:none;
  box-shadow:4px 4px 0 #141428;
  position:relative;z-index:2;
}
@media (max-width:600px){
  .story-chip{padding:4px 10px;font-size:.8rem}
  .kid-scroll > .story-chip{margin:6px 0 12px}
  .story-banner{height:156px;margin:6px 0 14px}
  .kid-hero{margin:0 0 2px}
  .kid-hero h1{font-size:clamp(1.7rem,7vw,2.2rem);margin:0}
  .sticker-row{margin:0 0 4px}
  .sticker{width:28px;height:28px;font-size:.95rem}
  .kid-shell .today-card{padding:8px;margin:4px 0;min-height:0;grid-template-columns:1fr}
  .kid-shell .today-card .thumb{display:none}
  .kid-shell .today-card .go{min-height:44px;margin-top:4px;padding:8px 16px}
  .kid-shell .kid-subj{min-height:78px;padding:8px 10px}
  .section-label{margin:4px 0 6px}
  .pin-wrap .kicker{background:#141428;color:#FFE600;display:inline-block;border-radius:999px;padding:2px 8px;text-shadow:none}
}

/* Lesson fold: keep all three answers on a 390×844 screen. */
@media (max-width:600px){
  .kid-shell .howto{
    background:none;border:0;box-shadow:none;padding:2px 0;margin:4px 0 2px;
    font-size:.78rem;line-height:1.3;
  }
  .kid-shell .quiz{padding:8px;margin:4px 0 0;box-shadow:3px 3px 0 #141428}
  .kid-shell .choice{min-height:46px;padding:8px 12px;margin:0;box-shadow:3px 3px 0 #141428}
  .kid-shell .choices{gap:6px}
  .player.kid-player,.kid-lesson-wrap .player{aspect-ratio:16/10;max-height:128px}
  .kid-lesson-wrap h1{font-size:1.45rem;line-height:1.15;margin:2px 0 6px}
  .speak-btn,.kid-shell .speak-btn{min-height:48px;margin:6px 0}
  .progress-dots{margin:2px 0}
}

@media (max-width:430px){
  .kid-dock{gap:6px;padding:6px}
  .kid-dock .dock-btn{font-size:.82rem;gap:3px;min-height:48px}
  .home-coins{margin:4px 0 8px}
}
