@font-face {
  font-family: Baloo;
  src: url('/assets/baloo.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --ink: #1f2a44;
  --blue: #205fcc;
  --sky: #e9f5ff;
  --yellow: #ffc21a;
  --line: #dde6ef;
  --muted: #526079;
  font-family: Baloo, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  scrollbar-color: #92b6dc #f0f6fb;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: var(--ink); background: #ffdf7b; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
button, input { font: inherit; }
a, button, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
[hidden] { display: none !important; }
.skip { position: absolute; top: -80px; background: #fff; padding: 12px; z-index: 20; }
.skip:focus { top: 8px; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; line-height: 1.1; }
.brand small { display: block; direction: ltr; font-size: 10px; letter-spacing: 2px; margin-top: 7px; }
.brand-icon { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 24px; }
.nav-links { display: flex; gap: 32px; font-size: 18px; font-weight: 600; }
.nav-links a { padding-block: 12px; }
.nav-links a:hover { color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; min-height: 48px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 700; font-size: 18px; transition: background .2s; }
.button:hover { background: #174b9e; }
.button.light { color: var(--ink); background: #edf3f8; }
.button.light:hover { background: #dce8f2; }
.button.yellow { color: var(--ink); background: var(--yellow); }
.button.yellow:hover { background: #ffd452; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.3; margin-bottom: 16px; font-weight: 800; }
h2 { font-size: 30px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 22px; line-height: 1.5; }
p { font-size: 18px; line-height: 1.9; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; min-height: 318px; padding: 12px 48px 12px 20px; gap: 24px; background: var(--sky); border-radius: 24px; margin-top: 16px; }
.hero-copy h1 { margin-bottom: 12px; }
.hero-copy h1 span { color: var(--blue); }
.hero-copy p { font-size: 19px; margin-bottom: 22px; }
.hero-art { position: relative; min-width: 0; }
.world { height: 306px; position: relative; direction: ltr; perspective: 900px; }
.scene { position: absolute; inset: 0; transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transform-style: preserve-3d; transition: transform .25s; }
.character-canvas, .character-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.character-canvas { opacity: 0; }
.characters-ready .character-canvas { opacity: 1; }
.characters-ready .character-fallback { visibility: hidden; }
.plinth { position: absolute; width: 78%; height: 26px; border-radius: 50%; background: #c8e2f5; left: 11%; bottom: 25px; }
.float-label { position: absolute; right: 15%; top: 14%; color: var(--blue); font-size: 15px; font-weight: 700; z-index: 2; }
.float-label.second { right: auto; left: 12%; top: 48%; }
.motion { display: block; margin: 0 auto; min-height: 36px; background: none; border: 0; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.section { padding-block: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 16px; font-weight: 600; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 24px; }
.episode-card { min-width: 0; }
.episode-card a { display: block; }
.thumb { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #eef4fa; position: relative; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.episode-card a:hover .thumb img { transform: scale(1.025); }
.episode-card a:hover h3 { color: var(--blue); }
.play-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #fff; color: var(--blue); border-radius: 50%; position: absolute; left: 14px; bottom: 14px; box-shadow: 0 3px 12px #15355726; }
.card-copy { padding: 12px 2px 0; }
.card-copy h3 { font-size: 21px; font-weight: 600; margin: 0; line-height: 1.55; }
.family-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-block: 10px 50px; padding-block: 24px; border-block: 1px solid var(--line); }
.family-links > a { display: flex; align-items: center; gap: 18px; }
.family-links > a > .icon:first-child { width: 32px; height: 32px; color: var(--blue); }
.family-links > a > .icon:last-child { margin-inline-start: auto; color: var(--blue); }
.family-links strong { display: block; font-size: 21px; font-weight: 600; }
.family-links small { font-size: 15px; color: var(--muted); }
.family-links a:hover strong { color: var(--blue); }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.footer .brand { font-size: 22px; }
.footer p { font-size: 13px; margin: 10px 0 0; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { padding-block: 10px; }
.page-intro { padding: 36px 0 24px; max-width: 790px; }
.page-intro h1 { font-size: 38px; }
.page-intro p { margin-bottom: 0; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); border-radius: 24px; padding: 8px 18px; background: #fff; color: var(--ink); min-height: 44px; }
.filters button[aria-pressed=true] { color: #fff; background: var(--blue); border-color: var(--blue); }
.search { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; font-size: 15px; }
.search input { min-width: 0; width: 190px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; caret-color: var(--blue); }
.search input::placeholder { color: #5b6a7e; }
.results { font-size: 14px; min-height: 28px; margin-block: 24px 36px; }
.watch { max-width: 900px; margin-inline: auto; padding-top: 32px; }
.watch h1 { font-size: 32px; margin-block: 22px 12px; }
.tag { color: var(--muted); font-size: 14px; }
.tag time { font-variant-numeric: tabular-nums; }
.player { background: #101c2d; border-radius: 16px; overflow: hidden; }
.player iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px 28px; }
.episode-details { border-top: 1px solid var(--line); }
.episode-details section { margin-top: 28px; }
details { padding: 20px 0; border-bottom: 1px solid var(--line); }
summary { font-size: 20px; font-weight: 600; min-height: 32px; }
details p { margin-block: 16px 0; }
.faq { max-width: 790px; margin-inline: auto; }
.faq h2 { margin-bottom: 16px; }
.related { margin-top: 12px; }
.reading { max-width: 790px; margin-inline: auto; }
.reading p { max-width: 70ch; }
.reading h2 { font-size: 27px; margin-top: 32px; }
.article-body { padding-bottom: 48px; }
.article-body a:not(.button) { color: var(--blue); text-decoration: underline; }
.activity { padding: 24px; margin-block: 24px; background: #fff5d5; border-radius: 14px; }
.activity h2 { margin-top: 0; }
.activity p:last-child { margin-bottom: 0; }
.callout { background: var(--sky); padding: 24px; border-radius: 14px; }
.small { font-size: 14px; }
.article-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.guide { padding: 20px 0; border-top: 1px solid var(--line); }
.guide .symbol { display: none; }
.guide h3 { margin-bottom: 10px; }
.guide p { font-size: 16px; }
.guide a { color: var(--blue); font-weight: 600; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused .scene { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scene { transform: none !important; }
}
@media (max-width: 950px) {
  .shell { width: calc(100% - 40px); }
  .nav-links { gap: 24px; }
  .nav > .button { display: none; }
  .hero { padding-inline: 30px 10px; gap: 10px; }
  .hero h1 { font-size: 38px; }
  .hero-copy p { font-size: 17px; }
  .cards { gap: 24px 18px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .nav { padding-block: 18px 12px; flex-wrap: wrap; gap: 16px; }
  .brand { font-size: 25px; }
  .nav-links { width: 100%; justify-content: space-between; font-size: 16px; gap: 12px; }
  .nav-links a { padding-block: 6px; }
  .hero { grid-template-columns: 1fr; padding: 26px 18px 10px; margin-top: 12px; gap: 0; border-radius: 18px; }
  .hero h1 { font-size: 34px; margin-bottom: 8px; }
  .hero-copy p { font-size: 16px; margin-bottom: 16px; }
  .hero-copy .button { padding: 10px 20px; font-size: 17px; }
  .world { height: 210px; }
  .hero-art { margin-top: 8px; }
  .motion { font-size: 11px; min-height: 32px; }
  .float-label { right: 15%; top: 12%; font-size: 13px; }
  .float-label.second { left: 13%; }
  .plinth { bottom: 18px; height: 18px; }
  .section { padding-block: 30px; }
  h2 { font-size: 25px; }
  .section-heading { gap: 12px; margin-bottom: 16px; }
  .section-heading h2 { font-size: 25px; }
  .text-link { font-size: 14px; gap: 4px; }
  .text-link .icon { width: 18px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }
  .thumb { border-radius: 12px; }
  .play-icon { width: 32px; height: 32px; left: 8px; bottom: 8px; }
  .play-icon .icon { width: 19px; }
  .card-copy { padding-top: 8px; }
  .card-copy h3 { font-size: 17px; }
  .family-links { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .family-links strong { font-size: 19px; }
  .family-links small { font-size: 14px; }
  .footer { flex-direction: column; align-items: start; gap: 14px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .page-intro { padding-top: 24px; }
  .page-intro h1 { font-size: 31px; }
  .page-intro p { font-size: 16px; }
  .filters { gap: 8px; }
  .filters button { padding-inline: 13px; font-size: 14px; }
  .search { margin-inline-start: 0; width: 100%; margin-top: 8px; }
  .search input { flex: 1; }
  .watch h1 { font-size: 26px; }
  .tag { font-size: 12px; }
  .actions .button { font-size: 15px; padding: 10px 16px; }
  .article-list { grid-template-columns: 1fr; gap: 8px; }
  .reading h2 { font-size: 24px; }
  .reading p, details p { font-size: 17px; }
  summary { font-size: 18px; }
}
.audience-note { display: block; font-size: 14px; color: var(--muted); margin: -8px 0 20px; }
.hero-copy { max-width: 510px; }
.hero-copy p { line-height: 1.8; }
.section-heading p { font-size: 16px; color: var(--muted); margin: 5px 0 0; }
.card-copy p { font-size: 15px; line-height: 1.7; margin: 6px 0 0; }
.family-links small { display: block; max-width: 42ch; line-height: 1.7; }
@media (max-width: 700px) {
  .audience-note { font-size: 12px; margin-bottom: 14px; }
  .hero-copy p { font-size: 16px; }
  .section-heading { align-items: start; }
  .section-heading p { font-size: 14px; }
  .card-copy p { font-size: 13px; line-height: 1.7; }
  .family-links small { font-size: 14px; }
}
