/* MilaMeow — crayon colour on warm drawing paper.
   Shared visual language; page-specific layouts remain in their own stylesheets. */
:root {
  --paper: #F5F1E8;
  --paper-deep: #E6DECE;
  --card: #FAF7EF;
  --ink: #34332F;
  --ink-soft: #69655C;
  --navy: #363B32;
  --soft: #69655C;
  --sky: #63B5DF;
  --sunshine: #FFC321;
  --star-gold: #FFCF34;
  --sunshine-dark: #AD3523;
  --correct-dark: #426B38;
  --plum: #AD3523;
  --line: #CFC7B7;
  --ink-shadow: 0 8px 0 #162b4412;
  --wobble-a: 24px;
  --wobble-b: 24px;
  --gold: #FFC321;
}
body { background: var(--paper); color: var(--ink); }
a { color: var(--navy); text-underline-offset: .22em; }
a:hover { color: var(--plum); }
button, a, summary, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #AD3523; outline-offset: 5px; }
::selection { background: #FFCF34; color: var(--ink); }
header, header.site {
  background: #F5F1E8F5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
header .wrap { width: min(1240px, calc(100% - 64px)); max-width: 1240px; padding: 16px 0; }
.header-inner { gap: 24px; flex-wrap: nowrap; }
.logo { flex-shrink: 0; gap: 8px; }
.logo-name, .logo { color: var(--ink); }
.logo-name { font-size: 1.45rem; }
.logo-name small { font-size: .75rem; margin-top: 6px; }
.logo img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
header nav a, header.site nav a {
  font-size: .875rem;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
}
header nav a:hover, header.site nav a:hover, header nav a[aria-current="page"] { background: #E6DECE; color: var(--ink); }
.nav-button { border-width: 1px; border-radius: 50%; }
.btn {
  border: 1px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink);
  min-height: 52px;
  font-size: 1rem;
  padding: 16px 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn-sunshine { background: var(--sunshine); color: var(--ink); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn span[aria-hidden] { margin-inline-start: 22px; font-size: 1.35rem; }
/* Editorial pages */
body:not(.home) h1 { font-family: Arial, sans-serif; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.15; letter-spacing: -.035em; }
body:not(.home) h2 { font-family: Arial, sans-serif; font-size: 1.85rem; letter-spacing: -.025em; }
body:not(.home) .lead { font-size: 1.15rem; }
body:not(.home) .cards a, body:not(.home) .word {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 0 #E6DECE;
}
body:not(.home) .cards a:hover { border-color: var(--navy); transform: translateY(-3px); }
body:not(.home) .word { padding: 28px; }
body:not(.home) .word img { border-radius: 18px; background: #F5F1E8; }
body:not(.home) .crumbs { padding-block: 28px; }
body:not(.home) footer, footer.site { background: #E6DECE; border-top: 1px solid var(--line); }
/* Homepage */
.home { font-size: 17px; line-height: 1.75; }
.home .wrap { max-width: 1240px; padding-inline: 32px; }
.home header .wrap { padding-inline: 0; }
.home .paper-blobs { display: none; }
.home section { padding-block: 100px; }
.home .hero {
  padding-block: 64px 70px;
  background: #F5F1E8;
  overflow: clip;
}
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; min-height: 640px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 14px; }
.eyebrow, .section-eyebrow { font-size: .875rem; font-weight: bold; color: var(--navy); margin-bottom: 24px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #216146; }
.beta-label { border: 1px solid #CFC7B7; padding: 3px 10px; border-radius: 99px; margin-inline-start: 8px; font-size: .75rem; }
.hero h1 {
  font-family: Arial, sans-serif;
  font-size: clamp(3.8rem, 6.4vw, 6rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.02;
  color: var(--ink);
}
.hero h1 .crayon { min-width: 0; max-width: 100%; white-space: normal; color: #34332F; }
.hero-rotator { min-height: 2.05em; }
.hero-rotator svg { bottom: -.04em; height: .16em; }
.hero p.lead { margin-top: 26px; font-size: 1.1rem; line-height: 1.8; max-width: 27em; color: #69655C; }
.hero p.lead strong { font-weight: bold; text-shadow: none; }
.hero-ctas { margin-top: 28px; }
.hero-note { font-size: .875rem; max-width: 32em; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; justify-content: flex-start; }
.trust-badge { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; font-size: .875rem; color: #69655C; }
.trust-icon { font-size: 1rem; }
.hero-showcase {
  min-height: 620px;
  width: 100%;
  align-items: center;
  isolation: isolate;
}
.hero-showcase::before {
  content: '';
  position: absolute;
  inset: 20px -12px 22px;
  z-index: -1;
  background: #63B5DF;
  border-radius: 46% 46% 24px 24px;
  transform: rotate(-4deg);
}
.phone {
  width: 276px;
  border-radius: 36px;
  padding: 8px;
  background: #34332F;
  transform: rotate(3deg);
  box-shadow: 18px 24px 0 #1359a342, 0 25px 50px #0d3e7133;
  margin-top: 18px;
}
.phone video { border-radius: 28px; }
.phone::before { top: 16px; height: 16px; width: 62px; }
.phone::after { border-radius: 36px; }
.hello-sticker {
  position: absolute;
  left: -9px;
  top: -12px;
  z-index: 3;
  font: 900 clamp(3.5rem, 6vw, 5.5rem)/1 Arial, sans-serif;
  letter-spacing: -.08em;
  color: var(--ink);
  background: #FFC321;
  padding: 5px 22px 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-13deg);
}
.showcase-caption { position: absolute; bottom: -16px; font-size: .875rem; color: var(--navy); }
.daily-sticker { position: absolute; left: 0; bottom: 20px; background: #DDE7C7; color: #363B32; border: 1px solid #363B32; width: 114px; height: 114px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .75rem; transform: rotate(-10deg); z-index: 3; }
.daily-sticker > span { max-width: 90%; text-align: center; line-height: 1.3; margin-top: 5px; }
.daily-sticker strong { font: 900 3.2rem/.95 Arial, sans-serif; letter-spacing: -.05em; }
.word-ribbon { overflow: hidden; background: #363B32; color: white; padding: 18px 0; }
.word-ribbon > div { display: flex; gap: 42px; justify-content: center; align-items: center; white-space: nowrap; font: 800 clamp(1.4rem, 2.8vw, 2.3rem)/1.3 Arial, sans-serif; letter-spacing: -.03em; }
.word-ribbon i { color: #FFC321; font-style: normal; }
.section-eyebrow { text-align: center; margin-bottom: 16px; }
.section-title { font-family: Arial, sans-serif; font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 4rem); letter-spacing: -.045em; line-height: 1.1; color: var(--ink); margin-bottom: 22px; }
.section-sub { max-width: 40em; font-size: 1.05rem; line-height: 1.8; }
.trail { gap: 28px; margin-top: 64px; }
.trail-path { display: none; }
.step { padding: 32px 26px; border-radius: 24px; text-align: start; background: #E6DECE; }
.step:nth-of-type(2) { background: #F3E8BD; transform: rotate(-2deg); }
.step:nth-of-type(3) { background: #E8EDD9; }
.step-badge { margin: 0 0 40px; border: 0; background: white !important; box-shadow: none; border-radius: 16px; width: 62px; height: 62px; }
.step h3 { font: 800 1.7rem/1.2 Arial, sans-serif; letter-spacing: -.03em; margin-bottom: 14px; }
.step p { max-width: none; line-height: 1.8; }
.how-footer-note { font-size: .95rem; }
.how-sub-links a { min-height: 44px; display: inline-flex; align-items: center; white-space: normal; }
.home .worlds { background: #E6DECE; border: 0; }
.world-cards { gap: 24px; }
.world-card { border: 1px solid #CFC7B7; border-radius: 24px; padding: 12px 12px 26px; text-align: start; box-shadow: 0 7px 0 #E6DECE; }
.world-card:nth-child(2) { transform: translateY(24px); border-radius: 24px; }
.world-card:nth-child(2):hover { transform: translateY(16px); }
.world-art { display: flex; align-items: center; height: 240px; overflow: hidden; position: relative; border-radius: 16px; background: #E8EDD9; margin-bottom: 24px; direction: ltr; }
.world-art-food { background: #F3E8BD; }
.world-art-animals { background: #E6DECE; }
.world-art img { width: 35%; height: 70%; object-fit: contain; transform: rotate(-12deg); }
.world-art img:nth-child(2) { width: 48%; height: 86%; margin-inline: -9%; z-index: 1; transform: rotate(3deg); }
.world-art img:nth-child(3) { transform: rotate(14deg); }
.world-card h3, .world-card p, .world-card .en { margin-inline: 14px; }
.world-card h3 { font: 800 1.8rem/1.3 Arial, sans-serif; color: var(--ink); }
.world-card h3::after { content: '↖'; float: left; font-size: 1.5rem; }
.world-card .en { text-align: start; direction: ltr; font-size: .875rem; margin-top: 6px; letter-spacing: .03em; }
.world-card p { margin-top: 16px; font-size: .95rem; line-height: 1.8; }
.worlds-more { margin: 58px auto 0; max-width: 52em; font-size: .95rem; }
.home #science { background: #363B32; color: white; }
#science .section-title, #science .section-eyebrow { color: white; }
#science .section-sub, #science .science-kicker, #science .science-kicker strong, #science .science-disclaimer, #science > .wrap > .section-sub a { color: #E6DECE; }
.stat-chart { max-width: 650px; border: 0; border-radius: 24px; box-shadow: 8px 10px 0 #363B32; padding: 30px; }
.chart-bar.is-hero .chart-fill { background: #91BB48; }
.chart-bar.is-hero .chart-value { color: #256535; }
.chart-fill { border: 0; border-radius: 10px 10px 0 0; }
.chart-label small, .cite-link { font-size: .875rem; }
.paper-card, .paper-card:nth-child(odd), .paper-card:nth-child(even) { border: 1px solid #CFC7B7; border-radius: 20px; transform: none; box-shadow: none; padding: 28px; }
.paper-card-head { align-items: flex-start; }
.paper-card h3 { font: bold 1.35rem/1.3 Arial, sans-serif; }
.feature-icon { border: 0; border-radius: 14px; }
.paper-link { border: 1px solid #CFC7B7; background: #E6DECE; font-size: .875rem; padding: 6px 12px; }
.science-disclaimer { font-size: .95rem; }
.home #faq { padding-block: 100px; }
.faq-list { max-width: 860px; gap: 0; margin-top: 42px; border-top: 1px solid var(--line); }
.faq-list details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; padding: 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 4px; font-size: 1.1rem; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: normal 1.7rem/1 Arial, sans-serif; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { border: 0; margin: 0; }
.faq-list p { max-width: 44em; padding-bottom: 28px; }
.home .final-cta { background: #F3E8BD; border: 0; padding-block: 80px; }
.final-cta > .wrap { position: relative; }
.final-cta .section-eyebrow { color: var(--ink); margin-bottom: 24px; }
.final-cta h2 { font: 900 clamp(3.4rem, 7vw, 6.5rem)/1.05 Arial, sans-serif; letter-spacing: -.05em; color: var(--ink); }
.final-cta h2 span { display: inline-block; transform: rotate(-7deg); color: #FAF7EF; -webkit-text-stroke: 1.5px var(--ink); }
.final-cta p { color: #69655C; max-width: 40em; font-size: 1rem; }
.final-cta .btn { background: #363B32; color: white; box-shadow: 0 5px 0 #34332F; }
.final-cta .btn:hover { background: #426B38; box-shadow: 0 8px 0 #34332F; }
.final-cta .final-cta-note, .final-cta .final-cta-note a { font-size: .875rem; color: var(--ink); }
.home footer { background: #F5F1E8; border: 0; padding: 48px 0 32px; }
.footer-wordmark { font: 900 clamp(3.5rem, 14.5vw, 13rem)/1 Arial, sans-serif; letter-spacing: -.08em; color: #363B32; text-align: center; padding-bottom: 40px; }
.footer-wordmark > span { font-size: .15em; vertical-align: top; margin-top: 1.1em; display: inline-block; letter-spacing: 0; }
.home .footer-inner { font-size: .875rem; border-top: 1px solid var(--line); padding-top: 30px; gap: 14px 20px; }
.footer-notice { font-size: .875rem; }
#signup { border: 1px solid var(--ink); border-radius: 24px; box-shadow: 10px 14px 0 #162b4433; padding: 64px 28px 28px; max-height: calc(100dvh - 32px); overflow-y: auto; }
#signup::backdrop { background: #102a49b3; backdrop-filter: blur(6px); }
#signup h2 { font: 800 2rem/1.15 Arial, sans-serif; }
.signup-input { border: 1px solid #CFC7B7; border-radius: 12px; background: #F5F1E8; min-height: 52px; }
.signup-input:focus, .signup-input:focus-visible { outline: 3px solid #AD3523 !important; outline-offset: 3px; }
.signup-close { border: 1px solid var(--line); background: white; }
/* The chart keeps its truthful ratio even without JavaScript or motion. */
.stat-chart:not(.is-shown) .chart-fill { height: calc(var(--pct) / 100 * var(--track)); }
@media (max-width: 1100px) {
  header .wrap, .home header .wrap { width: calc(100% - 40px); }
  .header-inner { gap: 12px; }
  header nav, header.site nav { gap: 3px; }
  header nav a, header.site nav a { padding-inline: 7px; font-size: .875rem; }
  .logo-name small { white-space: normal; max-width: 140px; }
  .hero-grid { gap: 44px; }
  .hero h1 { font-size: clamp(3.5rem, 6.6vw, 5rem); }
  .world-art { height: 200px; }
}
@media (max-width: 960px) {
  header .nav-button, header.site .nav-button { display: flex; }
  header .nav-menu > nav, header.site .nav-menu > nav {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    inset-inline-end: 0;
    z-index: 11;
    flex-direction: column;
    align-items: stretch;
    width: min(280px, calc(100vw - 40px));
    gap: 2px;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 14px 40px #162b4426;
  }
  header .nav-toggle:checked ~ nav, header.site .nav-toggle:checked ~ nav { display: flex; }
  header .nav-menu > nav a, header.site .nav-menu > nav a { padding: 11px 14px; font-size: 1rem; }
  header .logo-name small { max-width: none; }
}
@media (max-width: 780px) {
  .home section { padding-block: 64px; }
  .home .wrap { padding-inline: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { padding-bottom: 0; }
  .eyebrow { justify-content: center; }
  .home .hero { padding-block: 38px 50px; }
  .hero h1 { font-size: clamp(3.5rem, 10vw, 5.5rem); }
  .hero h1 > br:nth-of-type(1) { display: none; }
  .hero h1 .crayon { display: block; }
  .hero-rotator { min-height: 2.1em; max-width: 8em; }
  .hero p.lead, .hero-note { margin-inline: auto; }
  .hero .trust-badges { justify-content: center; }
  .hero-showcase { max-width: 460px; min-height: 600px; margin: 0 auto 12px; }
  .hero-showcase::before { inset-inline: 10px; }
  .phone { width: 238px; }
  .hello-sticker { top: 0; left: 6px; font-size: 4.4rem; }
  .daily-sticker { left: 15px; bottom: 24px; width: 98px; height: 98px; }
  .showcase-caption { bottom: -8px; }
  .trail { grid-template-columns: 1fr; max-width: none; gap: 18px; margin-top: 36px; }
  .step { padding: 28px; }
  .step:nth-of-type(2) { transform: none; }
  .step-badge { float: inline-end; margin: 0 16px 20px 0; }
  .world-cards { max-width: 520px; gap: 24px; }
  .world-card:nth-child(2), .world-card:nth-child(2):hover { transform: none; }
  .world-art { height: 260px; }
  .worlds-more { margin-top: 32px; }
  .home #faq { padding-block: 64px; }
}
@media (max-width: 540px) {
  .logo img { width: 48px; height: 48px; }
  .home .wrap { padding-inline: 20px; }
  .home header .wrap { padding-inline: 0; }
  .logo-name { font-size: 1.2rem; }
  .logo-name small { font-size: .75rem; }
  .hero h1 { font-size: clamp(3.2rem, 11.5vw, 4.4rem); }
  .eyebrow { font-size: .75rem; gap: 6px; margin-bottom: 22px; }
  .beta-label { margin-inline-start: 0; }
  .hero p.lead { font-size: 1rem; margin-top: 16px; }
  .hero-ctas { margin-top: 22px; }
  .hero-note { font-size: .875rem; }
  .trust-badges { flex-wrap: wrap; gap: 10px 16px; }
  .hero-showcase { min-height: 530px; max-width: 360px; }
  .phone { width: 232px; }
  .hero-showcase::before { inset: 18px 0 8px; }
  .hello-sticker { left: -3px; top: 0; font-size: 3.4rem; padding: 4px 16px 12px; }
  .daily-sticker { width: 84px; height: 84px; left: 0; bottom: 22px; font-size: .75rem; }
  .daily-sticker strong { font-size: 2.5rem; }
  .showcase-caption { bottom: -20px; font-size: .75rem; }
  .word-ribbon > div { justify-content: flex-start; padding-inline: 24px; gap: 24px; }
  .section-title { font-size: 2.5rem; }
  .section-sub { font-size: 1rem; margin-bottom: 30px; }
  .world-art { height: 210px; }
  .science-grid { grid-template-columns: minmax(0, 1fr); }
  .paper-card { padding: 24px; }
  .stat-chart { padding: 24px 16px; }
  .chart-bars { gap: 28px; }
  .chart-label, .chart-label small { font-size: .875rem; }
  .faq-list summary { font-size: 1rem; }
  .final-cta h2 { font-size: 3.8rem; }
  .home .footer-inner { justify-content: center; }
  body:not(.home) .word { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .stat-chart:not(.is-shown) .chart-fill { height: calc(var(--pct) / 100 * var(--track)); }
}

/* Approved hero, closing CTA and footer stay as above. New work is scoped. */
@font-face { font-family: Rubik; src: url('/fonts/Rubik-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: PatrickHand; src: url('/fonts/PatrickHand-Regular.ttf') format('truetype'); font-display: swap; }
/* Underline belongs to the inline text fragments, never the reserved height. */
.hero .hero-rotator { min-height: 0; display: inline; }
.hero .hero-rotator svg { display: none; }
.hero-rotator-text { text-decoration: none; padding-bottom: .12em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 13 C75 2 115 4 163 11 S245 17 296 7' fill='none' stroke='%23FFC61A' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / 100% .2em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero h1 .crayon { min-height: 2.05em; display: block; }
.home .play-story { background: #F5F1E8; padding-block: 80px; overflow: clip; }
.home .play-layout { max-width: 1120px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
@font-face { font-family: GveretLevin; src: url('/fonts/GveretLevin-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
.play-copy { position: relative; isolation: isolate; min-width: 0; padding: 90px 12px 90px; container-type: inline-size; }
.play-scribbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: #69655C; font: 400 clamp(1.15rem,5.6cqi,1.9rem)/1.4 GveretLevin,cursive; }
.play-scribbles span { position: absolute; display: block; }
.scribble-research { top: 12px; right: 4%; transform: rotate(-11deg); }
.scribble-vocabulary { bottom: 8px; right: 4%; max-width: 92%; transform: rotate(-8deg); font-size: .86em; }
.scribble-league { top: 40%; left: 24%; transform: rotate(10deg); }
.scribble-heroes { top: 22%; left: 7%; transform: rotate(-16deg); color: #69655C; }
.scribble-games { bottom: 23%; left: 7%; transform: rotate(-13deg); color: #69655C; }
.play-comic { display: grid; gap: 48px; margin: 0; padding-block: 20px; font: 800 clamp(1.1rem,6.5cqi,2.4rem)/1.2 Rubik,Arial,sans-serif; color: #34332F; }
.play-comic-line { display: flex; align-items: baseline; gap: .3em; white-space: nowrap; transform: rotate(-3deg); }
.play-comic-line + .play-comic-line { transform: rotate(2deg); }
.play-comic-number { font-size: 3.4em; line-height: 1.1; color: #FFC321; -webkit-text-stroke: 3px #34332F; paint-order: stroke fill; text-shadow: 5px 5px 0 #34332F; }
.play-comic-line + .play-comic-line .play-comic-number { font-size: 2.1em; color: #63B5DF; }
.play-skills { margin-top: 36px; font: 800 clamp(1.25rem,6cqi,2rem)/1.55 Rubik,Arial,sans-serif; color: #34332F; text-decoration: underline; text-decoration-color: #FFC321; text-decoration-thickness: .16em; text-underline-offset: .12em; text-decoration-skip-ink: none; transform: rotate(-2deg); }
.gameplay-stage { position: relative; max-width: 280px; width: 100%; margin-inline: auto; }
.gameplay-stage::before { content: ''; position: absolute; inset: 28px -70px 50px; background: #FFC321; border-radius: 48% 43% 45% 50%; transform: rotate(-12deg); z-index: 0; }
.gameplay-stage video { position: relative; width: 100%; height: auto; display: block; border: 3px solid #34332F; border-radius: 26px; box-shadow: 0 9px 0 #2B214055; background: #F5F1E8; transform: rotate(-4deg); }
.gameplay-toggle { position: absolute; z-index: 2; left: 12px; bottom: 64px; width: 44px; height: 44px; border: 2px solid #34332F; border-radius: 50%; background: #FAF7EF; color: #34332F; box-shadow: 0 3px 0 #34332F; font: 800 1rem/1 Arial,sans-serif; cursor: pointer; }
.gameplay-toggle[hidden] { display: none; }
.gameplay-toggle:hover { background: #FFC321; }
.gameplay-label { display: table; position: relative; z-index: 1; margin: 0 auto 20px; font-size: .875rem; color: var(--ink-soft); }
.gameplay-stage figcaption { position: relative; text-align: center; margin-top: 25px; font-size: .875rem; color: var(--ink-soft); }
.gameplay-scribble { position: absolute; left: -55px; top: 41%; transform: rotate(-18deg); font: 4rem PatrickHand,sans-serif; color: #34332F; pointer-events: none; }
.home .worlds { background: #F5F1E8; border: 0; padding-block: 72px 48px; overflow: clip; }
.worlds .section-title { font: 800 clamp(2rem,4vw,3.4rem)/1.2 Rubik,Arial,sans-serif; color: #34332F; margin-bottom: 20px; }
.worlds .section-title > span { display: inline-block; background: #DDE7C7; border-radius: 50% 18% 45% 22%; padding: 0 .28em .08em; }
.world-carousel { --cover-width: clamp(240px,27vw,340px); --step: clamp(105px,15vw,200px); position: relative; max-width: 1240px; margin-inline: auto; }
.world-track { display: flex; direction: rtl; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px; }
.world-slide { flex: 0 0 var(--cover-width); min-width: 0; text-align: center; scroll-snap-align: center; }
.world-cover { display: flex; flex-direction: column; align-items: center; width: 100%; aspect-ratio: 3/4; padding: 22px 12px 18px; border: 1px solid #2B214026; border-radius: 14px; background: #FAF7EF; box-shadow: 0 18px 30px -16px #2B214070; color: #34332F; cursor: pointer; }
.world-slide:nth-child(4n+2) .world-cover { background: #ECE5EE; }
.world-slide:nth-child(4n+3) .world-cover { background: #F3E8BD; }
.world-slide:nth-child(4n) .world-cover { background: #E8EDD9; }
.world-island { width: 100%; aspect-ratio: 260/238; margin-block: auto; mix-blend-mode: multiply; background: url('/assets/design/world-islands.png') no-repeat; background-size: 500% auto; background-position: var(--island-x) var(--island-y); }
.world-index { font: 800 .75rem/1.4 Rubik,sans-serif; letter-spacing: .08em; }
.world-english { font: 2rem/1.2 PatrickHand,sans-serif; display: block; margin-top: 8px; }
.world-caption { padding: 26px 4px 0; }
.world-caption h3 { font: 800 1.65rem/1.3 Rubik,sans-serif; color: #34332F; }
.world-caption p { font-size: 1rem; color: #69655C; margin-top: 8px; }
.world-carousel.is-enhanced .world-track { display: block; position: relative; height: calc(var(--cover-width) * 4 / 3 + 153px); overflow: visible; padding: 28px 0 0; touch-action: pan-y; }
.is-enhanced .world-slide { position: absolute; top: 28px; left: calc(50% - var(--cover-width) / 2); width: var(--cover-width); transform: translateX(calc(var(--offset) * var(--step))) translateY(var(--drop)) rotate(var(--angle)) scale(var(--scale)); transform-origin: 50% 35%; z-index: var(--layer); visibility: var(--visibility); transition: transform 480ms cubic-bezier(.22,.68,0,1), opacity 300ms ease; }
.is-enhanced .world-slide:not(.is-current) .world-cover { filter: saturate(.7) brightness(.91); }
.is-enhanced .world-caption { visibility: hidden; opacity: 0; }
.is-enhanced .is-current .world-caption { visibility: visible; opacity: 1; transition: opacity 240ms ease 120ms; }
.world-controls { display: flex; direction: rtl; justify-content: center; align-items: center; gap: 24px; margin-top: 8px; }
.world-controls button { width: 48px; height: 48px; background: white; border: 1px solid #2B214025; border-radius: 50%; box-shadow: 0 4px 12px #2B214012; color: #34332F; font-size: 1.5rem; cursor: pointer; }
.world-controls button:hover { background: #DDE7C7; }
.world-controls button[hidden] { display: none; }
.is-enhanced .world-controls button { position: absolute; top: calc(var(--cover-width) * .66); z-index: 6; }
.is-enhanced .world-prev { right: max(20px,calc(50% - var(--cover-width) * 1.45)); }
.is-enhanced .world-next { left: max(20px,calc(50% - var(--cover-width) * 1.45)); }
@media (prefers-reduced-motion: reduce) {
 .is-enhanced .world-slide, .is-enhanced .is-current .world-caption { transition: none; }
}
#science .research-details > .section-sub, #science .research-details > .section-sub a { color: #E6DECE; }
@media(max-width:780px) {
 .home .play-layout { grid-template-columns: 1fr; gap: 48px; max-width: 560px; }
 .home .play-story { padding-block: 64px; }
 .play-copy { padding-block: 64px 76px; }
 .play-comic { gap: 40px; }
 .play-comic-number { -webkit-text-stroke-width: 2px; text-shadow: 3px 3px 0 #34332F; }
 .gameplay-stage { max-width: 265px; }
 .gameplay-stage::before { inset-inline: -35px; }
 .gameplay-scribble { left: -28px; font-size: 3rem; }
 .world-carousel { --cover-width: min(62vw,300px); --step: 25vw; }
 .world-cover { padding: 16px 10px; }
 .world-english { font-size: 1.6rem; }
 .world-caption { padding-top: 24px; }
 .world-caption p { min-height: 2.8em; }
 .home .worlds { padding-top: 52px; }
 .world-caption h3 { font-size: 1.4rem; }
 .world-caption p { font-size: .95rem; }
 .hero h1 .crayon { min-height: 2.1em; }
}

.world-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.reel-playback {
  position: absolute; bottom: 20px; inset-inline-start: 20px; z-index: 6;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid #ffffff80; border-radius: 50%;
  background: #162b44d9; color: white; font: 700 18px/1 Arial, sans-serif;
  cursor: pointer;
}
.reel-playback[hidden] { display: none; }
.reel-playback:focus-visible { outline: 3px solid var(--sunshine); outline-offset: 2px; }
.reel-sound {
  top: auto; bottom: 20px; inset-inline-start: 72px; inset-inline-end: auto;
  width: 44px; height: 44px; font-size: 1rem; background: #162b44d9;
}
.hello-sticker, .daily-sticker { pointer-events: none; }
