/* CurioZoo's brand as tokens, and the pieces every page shares. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; src: url(/fonts/fredoka-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; src: url(/fonts/fredoka-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/nunito-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }

:root {
  --night: #0B3442; --night-deep: #0B2530; --night-card: #11313E; --night-line: #1B4A5B;
  --mango: #E0612B; --mango-lip: #A9441B; --fur: #F08A55; --mango-text: #B4501F; --mango-on-night: #F08A55;
  --cream: #FFF8EE; --sand: #F1E3D3; --line: #EADCCB; --tile-lip: #E2D0BC; --ink: #2B2926; --ink-soft: #5E574F;
  --glow: #FFE38A; --reward: #F2B134; --right: #2E9A5E; --help: #1F7FA0;
  --display: "Fredoka", ui-rounded, "Nunito", system-ui, sans-serif;
  --body: ui-rounded, "Nunito", -apple-system, "Segoe UI", system-ui, sans-serif;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gur: max(20px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 18px/1.55 var(--body); overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; text-wrap: balance; letter-spacing: -.012em; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px #0B2530; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gur); }
.lede { max-width: 58ch; }
.pre { opacity: .2; transform: translateY(26px); }
[data-rv] { transition: opacity .7s ease, transform .7s cubic-bezier(.15,.6,.35,1); }

/* chunky buttons: solid face, a darker lip; press sinks the face into the lip */
.btn { --face: var(--mango); --lip: var(--mango-lip); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 16px; background: var(--face); color: #fff; font: 700 19px/1.1 var(--display); text-decoration: none; box-shadow: 0 4px 0 var(--lip); transition: transform .08s, box-shadow .08s; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--lip); }
.btn.soon { cursor: default; }
.btn small { font: 500 13px/1 var(--body); opacity: .9; }
.btn.ghost { --face: transparent; --lip: transparent; box-shadow: inset 0 0 0 2px currentColor; color: inherit; }
.linkbtn { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 10px 2px; min-height: 44px; }
.tile { display: block; width: 100%; min-height: 54px; padding: 12px 18px; border-radius: 20px; background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--tile-lip); font: 600 20px/1.15 var(--display); text-align: center; transition: transform .08s, box-shadow .08s, border-color .1s; }
.tile:hover:not(:disabled) { border-color: var(--mango); box-shadow: 0 4px 0 var(--mango-lip); }
.tile:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--tile-lip); }
.tile:disabled { opacity: .55; cursor: default; }
.tile.chosen { opacity: 1; background: var(--mango); color: #fff; border-color: var(--mango); box-shadow: 0 4px 0 var(--mango-lip); }

/* the language switch */
.langs { display: inline-flex; border-radius: 12px; padding: 3px; gap: 2px; background: rgba(127,127,127,.18); }
.langs a { display: grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 9px; font: 600 15px/1 var(--display); text-decoration: none; }
.langs a[aria-current] { background: var(--mango-text); color: #fff; }

/* read-along: lantern yellow behind the word being read */
.w { border-radius: .22em; padding: 0 .06em; margin: 0 -.06em; transition: background .12s, color .12s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.w.on { background: var(--glow); color: var(--ink); }

/* paw tracks: scroll progress */
.pawbar { position: relative; height: 28px; }
.paws { position: absolute; inset: 7px 0 auto; display: flex; justify-content: space-between; }
.paws i { width: 14px; height: 14px; opacity: .22; transform: rotate(calc((var(--i) * 2 - 1) * 1deg)) translateY(calc(mod(var(--i), 2) * 3px - 1.5px)); transition: opacity .25s; }
.paws i svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.paws i.on { opacity: 1; color: var(--reward); }
.rider { position: absolute; left: 0; top: -3px; width: 34px; height: 34px; will-change: transform; }


/* the story book: pages share these, each mockup dresses them */
.sd { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; min-height: 430px; }
.sd-page { padding: clamp(22px, 3.4vw, 44px); min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sd-kicker { font: 700 14px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--mango-text); }
.sd-ask { font: 600 clamp(26px, 3.4vw, 38px)/1.1 var(--display); color: var(--night); text-wrap: balance; }
.sd-tiles { display: grid; gap: 12px; }
.sd-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: auto; }
.sd-gapline { display: flex; align-items: center; gap: 10px; }
.sd-line { flex: 1; height: 3px; border-radius: 2px; background: var(--sand); min-width: 16px; }
.sd-gap { min-width: 42px; min-height: 36px; padding: 5px 12px; display: grid; place-items: center; border-radius: 12px; border: 2px dashed #D9C6B0; color: #A58F76; font: 600 16px/1.1 var(--display); text-align: center; }
.sd-gap.full { border: 2px solid var(--mango); background: var(--mango); color: #fff; animation: pop .35s cubic-bezier(.3,1.5,.55,1); }
.sd-right { justify-content: center; gap: 18px; }
.sd-note { font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.sd-story { font: 500 clamp(20px, 2.1vw, 25px)/1.5 var(--display); color: var(--night); }
.sd-word { font-weight: 600; color: var(--mango-text); background: #FCEEE6; padding: .02em .28em; border-radius: .4em; }
.sd-word .w.on { background: var(--glow); }
.reading .sd-right { display: none; }
.reading.sd { grid-template-columns: 1fr; }
@keyframes pop { from { transform: scale(.6); } to { transform: none; } }
@media (max-width: 760px) { .sd { grid-template-columns: 1fr; } .sd-right { order: -1; flex-direction: row; flex-wrap: wrap; padding-bottom: 0; gap: 8px; } .sd-gapline { flex: 0 0 auto; } .sd-gapline .sd-line, .sd-right .sd-note { display: none; } .sd-gap { min-width: 34px; font-size: 14px; } }

g[data-alt] { display: none; }
.rigsvg { overflow: visible; display: block; width: 100%; height: 100%; }

/* After .btn and .tile, or their lip would replace the ring's dark halo. */
.btn:focus-visible { box-shadow: 0 0 0 7px #0B2530, 0 4px 0 var(--lip); }
.tile:focus-visible, .tile:hover:not(:disabled):focus-visible { box-shadow: 0 0 0 7px #0B2530, 0 4px 0 var(--tile-lip); }
