/* AnimalSake — kids animal-facts site. Design prototype (homepage).
   Palette + type as CSS variables so the look is tunable in one place. */
:root {
  --cream:        #fdf6e9;
  --cream-card:   #fffdf8;
  --ink:          #4a3526;   /* brown headings/body */
  --ink-soft:     #6f5b4a;
  --orange:       #f47b20;   /* primary accent (wordmark "Sake") */
  --orange-deep:  #e8620e;
  --green:        #6aa84f;   /* CTA / "explore" */
  --green-deep:   #4e8537;
  --line:         #efe3cf;
  --shadow:       0 6px 20px rgba(74,53,38,.10);
  --shadow-sm:    0 2px 8px rgba(74,53,38,.08);
  --radius:       18px;
  --radius-sm:    12px;
  /* category accents */
  --c-mammals:#f0992e; --c-birds:#3f9bd6; --c-reptiles:#6aa84f;
  --c-ocean:#2f8fb3; --c-insects:#e2932a; --c-pets:#e6688a; --c-facts:#8a63c4;
  --maxw: 1180px;
  --font: "Baloo 2","Quicksand","Segoe UI",system-ui,sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--cream); line-height: 1.55; font-size: 17px;
}
a { color: var(--orange-deep); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: var(--cream); position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 22px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 76px; width: auto; }
.brand__tag { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.nav { display: flex; gap: 20px; margin-left: 8px; flex: 1; }
.nav a { color: var(--ink); font-weight: 600; padding: 6px 2px; font-size: 16px; }
.nav a:hover { color: var(--orange-deep); }
.nav .caret { font-size: 11px; opacity: .6; }
.search { display: flex; align-items: center; background: #fff; border: 2px solid var(--line);
  border-radius: 999px; padding: 7px 14px; gap: 8px; min-width: 240px; }
.search input { border: 0; outline: 0; font-family: var(--font); font-size: 15px; flex: 1; background: transparent; }
.search button { border: 0; background: 0; cursor: pointer; color: var(--ink-soft); font-size: 16px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- hero (full-bleed photo, text overlaid) ---------- */
/* On ultrawide the photo is anchored to the RIGHT EDGE OF THE CONTENT COLUMN
   (not the viewport) so the lion never drifts miles away from the headline.
   --gutter is the empty space outside the centred max-width column. */
.hero { position: relative; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius);
  --gutter: max(20px, calc((100vw - var(--maxw)) / 2));
  /* HEIGHT-LOCKED (auto 100%), NOT cover. The image is sized to the hero's
     HEIGHT, never the viewport width — so on ultrawide it stays a constant size
     and CANNOT blow up. Pinned to the right edge of the centred content column
     (--gutter) so it bleeds full-width behind the text but never drifts off to
     the far viewport edge. The lion is 2.29:1, so at ~560px tall it renders
     ~1284px wide — wider than the 1180px column, so it covers the whole hero
     (incl. bottom-left) with no cream gaps. The cream scrim veils the left for
     text contrast; outer gutter is cream-on-cream = seamless. */
  background-size: auto 100%; background-repeat: no-repeat;
  background-position: center center; background-color: var(--cream);
  min-height: 540px; }
/* scrim dims the LEFT (under the text) for headline contrast, fading clear over
   the lion. Cream veil only where the text sits. */
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(253,246,233,.82) 0%,
    rgba(253,246,233,.55) calc(var(--gutter) + 360px),
    rgba(253,246,233,.15) calc(var(--gutter) + 540px),
    rgba(253,246,233,0) calc(var(--gutter) + 700px)); }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 60px 20px; min-height: 440px; }
.hero__text { max-width: 540px; }
.hero h1 { font-size: 54px; line-height: 1.05; margin: 0 0 16px; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.hero h1 .accent { color: var(--orange); }
.hero p { font-size: 18px; color: var(--ink-soft); margin: 0 0 24px; max-width: 28em; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 26px;
  font-weight: 700; font-size: 16px; cursor: pointer; border: 0; }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { background: rgba(255,255,255,.9); color: var(--ink); border: 2px solid var(--line); }
/* Anchored to the BOTTOM-RIGHT of the centred content column (hero__inner is
   position:relative), NOT the full-bleed hero — so it sits over the lion and
   structurally cannot reach the left-column headline at any width. Hidden on
   mobile where the column collapses. */
.hero__bubble-fox { height: 66px; width: auto; flex: 0 0 auto; }
.hero__bubble-text { flex: 1 1 auto; min-width: 0; }
.hero__bubble { position: absolute; right: 0; bottom: 88px; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  background: #fff; border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow); max-width: 300px; font-size: 14px;
  line-height: 1.4; color: var(--ink); }
.hero__bubble b { color: var(--orange-deep); display: block; margin-bottom: 3px; }
.hero__bubble::before { content: "\2726"; position: absolute; top: -15px; right: -5px;
  color: #f7c948; font-size: 23px; text-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ---------- category strip ---------- */
.cats { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  margin: -80px auto 0; max-width: calc(var(--maxw) - 40px); position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; padding: 18px; }
.cat { text-align: center; text-decoration: none; }
.cat__img { aspect-ratio: 1/1; border-radius: var(--radius-sm); background-color: var(--line);
  background-size: cover; background-position: center; margin-bottom: 8px; transition: transform .12s ease; }
.cat:hover .cat__img { transform: translateY(-3px); }
.cat__ico { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.cat__label { font-weight: 700; color: var(--ink); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cat__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- sections ---------- */
section { padding: 60px 0 8px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; padding-top: 20px; }
.sec-head h2 { font-size: 28px; margin: 0; display: flex; align-items: center; gap: 10px; }
.sec-head a { font-weight: 700; font-size: 14px; }

/* featured cards */
.feat { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.fcard { background: var(--cream-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.fcard__img { aspect-ratio: 4/3; background-color: var(--line); background-size: cover; background-position: center; position: relative; }
.tag { position: absolute; left: 12px; top: 12px; background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.fcard__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px;
  background: linear-gradient(to top, rgba(20,12,6,.80), rgba(20,12,6,.28) 55%, rgba(20,12,6,0)); }
.fcard__overlay h3 { color: #fff; margin: 0; font-size: 18px; line-height: 1.15; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.fcard__body { padding: 12px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.fcard p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; flex: 1; }
.readmore { font-weight: 700; font-size: 14px; }

/* fun facts band */
.funband { background: #f6e6c4; border-radius: var(--radius); padding: 22px 24px; margin-top: 20px;
  display: grid; grid-template-columns: auto repeat(3,1fr); gap: 22px; align-items: center; }
.funband__title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.funfact { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.funfact .dot { width: 100px; height: 100px; border-radius: 50%; background: var(--line); flex-shrink: 0; background-size: cover; background-position: center; box-shadow: var(--shadow-sm); }

/* learn & play */
.play { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.pcard { background: var(--cream-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.pcard__img { aspect-ratio: 16/9; background-color: var(--line); background-size: cover; background-position: center; position: relative; }
.pcard__body { padding: 12px 16px 16px; }
.pcard h3 { margin: 0 0 4px; font-size: 17px; }
.pcard p { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }

/* ---------- CTA band + footer ---------- */
.cta-band { margin-top: 40px; color: #fff; padding: 26px 0;
  background-image: linear-gradient(90deg, rgba(58,104,42,.88), rgba(106,168,79,.72)), url('/images/cta-banner-sm.webp');
  background-size: cover; background-position: center 40%; }
.cta-band__inner { display: flex; align-items: center; gap: 24px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: 24px; }
.cta-band p { margin: 4px 0 0; opacity: .95; font-size: 15px; }
.todayfact { background: rgba(255,252,245,.94); border: 2px dashed var(--orange);
  border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-left: auto; max-width: 320px; color: var(--ink); }
.todayfact b { display: block; color: var(--orange-deep); margin-bottom: 2px; }
.site-footer { background: var(--ink); color: #f3e9da; }
.site-footer__inner { display: flex; align-items: center; gap: 22px; max-width: var(--maxw); margin: 0 auto;
  padding: 18px 20px; flex-wrap: wrap; }
.site-footer .brand img { height: 34px; }
.site-footer nav { display: flex; gap: 20px; flex: 1; }
.site-footer a { color: #f3e9da; font-size: 14px; font-weight: 600; }
.site-footer .copy { font-size: 13px; opacity: .7; }

/* ---------- placeholder helper (until real photos) ---------- */
.ph-fill { display: grid; place-items: center; color: rgba(74,53,38,.45); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: center; height: 100%; }

/* ---------- brand icons (transparent PNG sticker set) ---------- */
.ico { display: inline-block; vertical-align: middle; width: auto; flex-shrink: 0; }
.sec-head h2 .ico { height: 30px; }
.funband__title .ico { height: 46px; }
.todayfact .ico { height: 22px; vertical-align: -5px; }
.btn .ico { height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(4,1fr); }
  .feat, .play { grid-template-columns: repeat(2,1fr); }
  .funband { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* header: brand left, avatar right on row 1; search full row 2; nav scroll row 3 */
  .site-header__inner { flex-wrap: wrap; gap: 10px 12px; }
  .brand img { height: 44px; }
  .brand { order: 1; }
  .avatar { order: 2; margin-left: auto; }
  .search { order: 3; width: 100%; min-width: 0; flex: 1 1 100%; }
  .nav { order: 4; width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .nav a { flex-shrink: 0; }
  .hero { min-height: 380px; background-position: center bottom; }
  .hero__inner { padding: 36px 20px; min-height: 380px; }
  .hero h1 { font-size: 38px; }
  /* stronger top-down scrim on mobile so text reads over the photo */
  .hero__scrim { background: linear-gradient(180deg, rgba(253,246,233,.95) 30%, rgba(253,246,233,.5) 60%, rgba(253,246,233,.15) 100%); }
  .hero__bubble { display: none; }
  .cats { grid-template-columns: repeat(2,1fr); margin-top: -16px; }
  .feat, .play { grid-template-columns: 1fr; }
  .funband { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .todayfact { margin-left: 0; }
}

/* ================= COLORING PAGE ================= */
.crumb { font-size: 14px; color: var(--ink-soft); padding: 18px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--ink-soft); font-weight: 600; }
.crumb a:hover { color: var(--orange-deep); }
.crumb b { color: var(--ink); }
.crumb span { opacity: .5; }

.color-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 14px 0 6px; }
.color-hero__text h1 { font-size: 52px; line-height: 1.05; margin: 0 0 14px; }
.color-hero__text h1 .accent { color: var(--orange); }
.color-hero__text p { font-size: 18px; color: var(--ink-soft); margin: 0; max-width: 30em; }
.color-hero__art img { width: 100%; height: auto; display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-family: var(--font); font-weight: 700; font-size: 14px;
  color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.chip img { width: 20px; height: 20px; object-fit: contain; }
.chip:hover { border-color: var(--orange); }
.chip--on { background: var(--green); color: #fff; border-color: var(--green); }

.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 4px; flex-wrap: wrap; gap: 10px; }
.toolbar__count { font-weight: 700; color: var(--ink-soft); font-size: 15px; }
.toolbar__sort { font-size: 14px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.toolbar__sort select { font-family: var(--font); font-weight: 700; color: var(--ink); border: 2px solid var(--line);
  background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; }

.color-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; padding-bottom: 8px; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.ccard__imglink { display: block; }
.color-grid .ccard__img { aspect-ratio: 3/4; }
.color-grid .ccard__img img { padding: 4px; }
.ccard { background: var(--cream-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .12s ease; text-decoration: none; color: inherit; }
.ccard:hover { box-shadow: var(--shadow); }
.ccard:hover { transform: translateY(-3px); }
.ccard__img { background: #fff; aspect-ratio: 4/3; border-bottom: 1px solid var(--line); }
.ccard__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ccard__body { padding: 12px 14px 14px; }
.ccard__body h3 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; line-height: 1.2; }
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; }
.badge--easy { background: #e3efda; color: var(--green-deep); }
.badge--med { background: #fbe8cf; color: var(--orange-deep); }
.ccard__btns { display: flex; gap: 7px; }
.ccard__btns .btn { flex: 1; justify-content: center; border-radius: 12px; white-space: nowrap; padding: 9px 8px; font-size: 12.5px; gap: 5px; }
.btn--sm { padding: 9px 8px; font-size: 12.5px; }
.ccard__btns .btn--ghost { background: var(--cream); border-color: var(--line); }
.ccard__btns .btn--primary { background: var(--orange); }
.ccard__btns .btn--primary:hover { background: var(--orange-deep); }

.side-box { background: #f8ecd0; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.side-box h2 { font-size: 20px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.side-box h2 .ico { height: 26px; }
.side-box p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.side-box hr { border: 0; border-top: 1px dashed rgba(74,53,38,.25); margin: 12px 0; }
.feat-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.feat-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.feat-ico--green { background: #cfeabf; } .feat-ico--blue { background: #c3e4f8; } .feat-ico--purple { background: #ddccf6; }
.feat-row b { display: block; font-size: 14px; }
.feat-row span { font-size: 13px; color: var(--ink-soft); }
.side-box__sloth { width: 140px; height: auto; display: block; margin: 8px auto 0; }

.showmore-wrap { text-align: center; padding: 12px 0 34px; }
.showmore { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 11px 26px;
  font-family: var(--font); font-weight: 700; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.showmore:hover { border-color: var(--orange); }

.cta-links { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.cta-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); color: var(--ink);
  font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.cta-pill img { width: 20px; height: 20px; object-fit: contain; }

@media (max-width: 1000px) {
  .color-layout { grid-template-columns: 1fr; }
  .side-box { order: -1; }
  .color-hero { grid-template-columns: 1fr; }
  .color-hero__art { max-width: 480px; }
  .cta-links { margin-left: 0; }
}
@media (max-width: 560px) {
  .color-grid { grid-template-columns: 1fr 1fr; }
  .color-hero__text h1 { font-size: 38px; }
}

/* ===== COLORING DETAIL PAGE ===== */
.cdetail { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 30px; align-items: start; padding: 8px 0 18px; }
.cdetail__left h1 { font-size: 46px; line-height: 1.05; margin: 6px 0 10px; }
.cdetail__left h1 .accent { color: var(--orange); }
.cdetail__sub { font-size: 17px; color: var(--ink-soft); margin: 0 0 18px; }
.cdetail__btns { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.cdetail__print { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.cdetail__print:hover { background: var(--green-deep); }

.factbox, .learnbox { background: #f8ecd0; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.factbox h3, .learnbox h3 { font-size: 18px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.factbox h3 .ico, .learnbox h3 .ico { height: 22px; }
.factbox ul { list-style: none; margin: 0; padding: 0; }
.factbox li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); margin-bottom: 9px; }
.factbox li:last-child { margin-bottom: 0; }
.factpaw { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.learnbox p { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.learnbox__btn { display: inline-block; background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: 14px; color: var(--orange-deep); }
.learnbox__btn:hover { border-color: var(--orange); }

.cdetail__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cdetail__imgs figure { margin: 0; display: flex; flex-direction: column-reverse; gap: 10px; }
.cdetail__imgs figcaption { text-align: center; font-weight: 700; color: var(--ink); font-size: 16px; }
.cimg { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.cimg img { width: 100%; height: auto; display: block; border-radius: 8px; }

.ymal { padding: 10px 0 30px; }
.ymal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.ymal__head h3 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.ymal__head h3 .ico { height: 24px; }
.ymal__all { font-weight: 700; font-size: 14px; color: var(--orange-deep); }
.ymal__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ymal__card { display: flex; align-items: center; gap: 10px; background: var(--cream-card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 8px 12px 8px 8px; }
.ymal__card span { font-weight: 700; font-size: 13px; color: var(--ink); line-height: 1.2; }
.ymal__img { width: 56px; height: 56px; border-radius: 8px; background: #fff; flex-shrink: 0; overflow: hidden; }
.ymal__img img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 900px) {
  .cdetail { grid-template-columns: 1fr; }
  .ymal__row { grid-template-columns: 1fr 1fr; }
}

/* ================= GAMES HUB ================= */
.games-hero { text-align: center; padding: 24px 0 18px; }
.games-hero h1 { font-size: 48px; margin: 0 0 10px; }
.games-hero h1 .accent { color: var(--orange); }
.games-hero p { font-size: 18px; color: var(--ink-soft); margin: 0 auto; max-width: 42em; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding-bottom: 30px; }
.gcard { background: var(--cream-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .12s ease; }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gcard__top { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; background-size: cover; background-position: center; background-repeat: no-repeat; }
.gcard__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,12,6,.22), rgba(20,12,6,0) 48%); pointer-events: none; }
.gcard__emoji { position: absolute; left: 10px; bottom: 10px; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px; line-height: 1; background: rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 2px 7px rgba(74,53,38,.28); }
.gcard__age { position: absolute; top: 10px; right: 10px; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 7px rgba(0,0,0,.28); }
.gcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.gcard__body h3 { font-size: 18px; margin: 0 0 6px; }
.gcard__body p { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; flex: 1; line-height: 1.4; }
.gcard__play { align-self: flex-start; background: var(--green); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.gcard__play span { font-size: 11px; }
.gcard:hover .gcard__play { background: var(--green-deep); }
@media (max-width: 560px) { .games-grid { grid-template-columns: 1fr 1fr; } .games-hero h1 { font-size: 36px; } }

/* mascot placements */
.cta-band__fox { height: 96px; width: auto; flex: 0 0 auto; }
.empty-fox { display: block; height: 200px; width: auto; margin: 0 auto 14px; }
.trust-fox { float: right; height: 152px; width: auto; margin: 2px 0 12px 22px; }
@media (max-width: 560px){ .trust-fox{ float:none; display:block; margin:0 auto 12px; } .empty-fox{ height:150px; } .cta-band__fox{ height:74px; } }

/* ---- workbook cross-promo insert (in articles) — full-bleed cover, whole card clickable ---- */
.workbook-cta { position: relative; display: grid; grid-template-columns: 132px 1fr; align-items: stretch; margin: 28px 0; background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .12s ease, transform .12s ease; }
.workbook-cta:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.workbook-cta__thumb { position: relative; display: block; background: #fff; }
.workbook-cta__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.workbook-cta__body { padding: 14px 18px; }
.workbook-cta__eyebrow { margin: 0 0 3px; color: var(--orange-deep); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.workbook-cta h3 { margin: 0 0 5px; font-size: 19px; font-weight: 800; line-height: 1.2; }
.workbook-cta__link { color: var(--ink); }
.workbook-cta:hover .workbook-cta__link { color: var(--orange-deep); }
.workbook-cta__link::after { content: ""; position: absolute; inset: 0; }
.workbook-cta p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 560px) { .workbook-cta { grid-template-columns: 104px 1fr; } }

/* ===== Animals nav dropdown (one honest menu — nav IA 2026-06) ===== */
.nav__item { position: relative; flex-shrink: 0; }
.nav__menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  min-width: 212px; margin: 0; padding: 8px; list-style: none;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu li { margin: 0; }
.nav__menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--cream); color: var(--orange-deep); }

/* ===== breadcrumb: unified .crumb; --bare self-centers when standalone (2026-06) ===== */
.crumb { flex-wrap: wrap; }
.crumb--bare { max-width: var(--maxw); margin-inline: auto; padding: 14px 20px 0; }

/* ===== nav fit: full keyword labels on one line; scroll-strip below 1150 (2026-06) ===== */
.nav a { white-space: nowrap; font-size: 15px; }
.nav__item { flex-shrink: 0; }
@media (min-width: 1151px) { .nav { gap: 14px; } .search { width: 215px; min-width: 195px; } }
@media (max-width: 1150px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav { order: 4; width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 16px; padding-bottom: 2px; }
  .nav a { flex-shrink: 0; }
}

/* ===== mobile: workbook & coloring covers 2-up (match games; avoid giant 1-up portraits) (2026-06) ===== */
@media (max-width: 600px) {
  .wb-grid, .wb-grid--row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wb-card__title { font-size: 14px; }
  .wb-card__meta { font-size: 11.5px; }
}

/* nav: vertically center the Animals dropdown item with the flat links (2026-06) */
.nav { align-items: center; }
.nav__item { display: flex; align-items: center; }

/* coloring index: Fun & Creative box BELOW the cards on stacked layout (was order:-1) (2026-06) */
@media (max-width: 1000px) { .side-box { order: 1; } }

/* footer: wrap links on narrow screens (was nowrap -> 460px row overflowed mobile) (2026-06) */
@media (max-width: 760px) {
  .site-footer__inner { flex-wrap: wrap; }
  .site-footer nav { flex-wrap: wrap; flex: 1 1 100%; row-gap: 10px; }
}

/* ===== Mobile hamburger menu (<=1150px); desktop unchanged (2026-06) ===== */
.nav-toggle { display: none; }
.nav-panel { display: contents; }              /* desktop: nav + search flow inline as before */
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }

@media (max-width: 1150px) {
  .site-header__inner { flex-wrap: wrap; align-items: center; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    order: 2; margin-left: auto; width: 46px; height: 46px;
    background: var(--cream-card); border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--orange); outline: none; }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .avatar { display: none; }                    /* logo left, hamburger right */

  .nav-panel { display: none; order: 3; flex-basis: 100%; width: 100%; flex-direction: column; gap: 2px; padding: 6px 0 8px; }
  .nav-panel.is-open { display: flex; }

  .nav-panel .nav { width: 100%; overflow: visible; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav-panel .nav > a, .nav-panel .nav__item > a { display: block; width: 100%; padding: 13px 6px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-panel .nav__item { display: block; }
  .nav-panel .nav__item > a .caret { float: right; opacity: .6; }
  /* Animals submenu shown inline (no hover on touch) */
  .nav-panel .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; min-width: 0; padding: 2px 0 6px 18px; }
  .nav-panel .nav__menu a { padding: 9px 6px; font-size: 15px; border-bottom: 1px dashed var(--line); }

  .nav-panel .search { display: flex; width: 100%; min-width: 0; margin-top: 12px; }
}

/* hero: single CTA on mobile (the secondary button crowds it) (2026-06) */
@media (max-width: 600px) { .hero .btn--ghost { display: none; } }

/* ===== Print: coloring pages print ONLY the line-art (not page chrome) (2026-06) =====
   Scoped via :has(.cdetail) so it never affects printing on articles/other pages. */
@media print {
  body:has(.cdetail) * { visibility: hidden !important; }
  body:has(.cdetail) .cimg:has(img:not([src*="-colored"])),
  body:has(.cdetail) .cimg:has(img:not([src*="-colored"])) img { visibility: visible !important; }
  body:has(.cdetail) .cimg:has(img:not([src*="-colored"])) {
    position: absolute; inset: 0; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff;
  }
  body:has(.cdetail) .cimg:has(img:not([src*="-colored"])) img {
    width: 100%; height: 100%; object-fit: contain;
  }
  @page { margin: 12mm; }
}
