@font-face{font-family:"Nunito";src:url(/fonts/Nunito-Variable.woff2) format("woff2");font-weight:200 1000;font-style:normal;font-display:swap}
@font-face{font-family:"Nunito";src:url(/fonts/Nunito-Italic-Variable.woff2) format("woff2");font-weight:200 1000;font-style:italic;font-display:swap}
:root{
  --cream:#FFF6E3;--brown:#5C3A1E;--orange:#C4621E;--green:#46703A;--gold:#F6C543;--card-border:#6B4A2E;
  --bar:72px;--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px);
  --vh:100vh;
}
@supports (height:100dvh){:root{--vh:100dvh}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;height:100%;background:var(--cream)}
body{margin:0;min-height:var(--vh);font-family:"Nunito",system-ui,sans-serif;font-weight:700;color:var(--brown);background:var(--cream);
  -webkit-tap-highlight-color:transparent;overscroll-behavior:none;touch-action:manipulation;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.allow-select .selectable{-webkit-user-select:text;user-select:text}
img{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}
h1,h2,h3{font-weight:900;margin:0}
em{font-style:italic}
button{font:inherit;color:inherit;-webkit-appearance:none;appearance:none;border:0;background:none;cursor:pointer;touch-action:manipulation}
a{color:inherit}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- top bar ---------- */
.topbar{position:fixed;z-index:50;left:0;right:0;top:0;height:calc(var(--bar) + var(--sat));padding:calc(var(--sat) + 4px) calc(var(--sar) + 12px) 4px calc(var(--sal) + 12px);
  display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}
.topbar > *{pointer-events:auto}
.topbar .group{display:flex;gap:10px;align-items:center}
.icon-btn{width:64px;height:64px;border-radius:50%;background:#fffdf6;box-shadow:0 3px 0 rgba(92,58,30,.25),0 6px 14px rgba(92,58,30,.18);display:grid;place-items:center;flex:none}
.icon-btn svg{width:34px;height:34px}
.icon-btn:active{transform:scale(.94)}
.icon-btn[aria-pressed="false"] .on{display:none}
.icon-btn[aria-pressed="true"] .off{display:none}
.lang{display:flex;height:64px;border-radius:32px;background:#fffdf6;box-shadow:0 3px 0 rgba(92,58,30,.25),0 6px 14px rgba(92,58,30,.18);padding:4px;gap:2px}
.lang button{min-width:64px;height:56px;border-radius:28px;font-weight:900;font-size:22px;letter-spacing:.5px}
.lang button[aria-pressed="true"]{background:var(--green);color:#fff}
.page{min-height:var(--vh);padding:calc(var(--bar) + var(--sat) + 8px) calc(var(--sar) + 20px) calc(var(--sab) + 28px) calc(var(--sal) + 20px)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:72px;min-width:160px;padding:0 34px;border-radius:40px;background:var(--orange);color:#fff;
  font-weight:900;font-size:28px;text-decoration:none;box-shadow:0 5px 0 #8f4412,0 10px 18px rgba(92,58,30,.22);transition:transform .08s}
.btn:active{transform:translateY(3px) scale(.98);box-shadow:0 2px 0 #8f4412}
.btn.green{background:var(--green);box-shadow:0 5px 0 #2d4a25,0 10px 18px rgba(92,58,30,.22)}
.btn.cream{background:#fffdf6;color:var(--brown);box-shadow:0 5px 0 #d6c3a1,0 10px 18px rgba(92,58,30,.18)}
.btn.big{min-height:96px;min-width:240px;font-size:38px;border-radius:52px}
.btn-row{display:flex;flex-wrap:wrap;gap:18px;justify-content:center}

/* ---------- shared kid text ---------- */
.say{font-size:30px;font-weight:800;line-height:1.25;text-align:center;text-shadow:0 2px 0 #fff8e8,0 0 12px #fff8e8}
.bubble{background:rgba(255,253,246,.94);border-radius:28px;padding:14px 24px;box-shadow:0 6px 18px rgba(92,58,30,.18);font-size:28px;font-weight:800;line-height:1.25;text-align:center;max-width:min(86vw,720px)}
.title-xl{font-size:clamp(44px,6vw,72px);font-weight:1000;color:var(--green);text-shadow:0 3px 0 #fff,0 0 18px rgba(255,255,255,.9);text-align:center;line-height:1.05}
.sub{font-size:clamp(24px,3vw,32px);font-weight:800;text-align:center;text-shadow:0 2px 0 #fff8e8,0 0 10px #fff8e8}

@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes bob4{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes wobble{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes pulse{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.08);opacity:1}}
@keyframes wiggle{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-8deg)}80%{transform:rotate(6deg)}}
@keyframes sway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes popin{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
.bob{animation:bob 2.4s ease-in-out infinite}
.popin{animation:popin .45s ease-out both}

/* sparkles */
.sparkle{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;pointer-events:none;z-index:40}

/* overlay screens */
.screen{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;
  padding:calc(var(--bar) + var(--sat) + 10px) calc(var(--sar) + 20px) calc(var(--sab) + 24px) calc(var(--sal) + 20px);text-align:center}
.screen[hidden]{display:none!important}
.panel{background:rgba(255,248,232,.95);border-radius:36px;padding:26px 30px;box-shadow:0 14px 40px rgba(92,58,30,.25);display:flex;flex-direction:column;align-items:center;gap:16px;max-width:min(92vw,760px)}
.fact{background:#fff;border:4px dashed var(--gold);border-radius:24px;padding:14px 20px;font-size:24px;line-height:1.3;max-width:600px}
.book-card{display:flex;align-items:center;gap:14px;background:#fffdf6;border-radius:24px;padding:12px 20px;min-height:72px;font-size:22px;text-decoration:none;box-shadow:0 4px 0 #d6c3a1;max-width:620px;text-align:left}
.book-card img{width:64px;height:64px;object-fit:contain}
.dim{position:fixed;inset:0;background:rgba(255,246,227,.55);z-index:29}

/* ---------- game shell ---------- */
.game{position:fixed;inset:0;overflow:hidden;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.game .bg{position:absolute;inset:0;background-size:cover;background-position:center}
.stage{position:absolute;left:0;right:0;bottom:0;top:calc(var(--bar) + var(--sat))}
.hand{position:absolute;width:84px;height:84px;z-index:45;pointer-events:none;transition:left .9s ease-in-out,top .9s ease-in-out;margin:-10px 0 0 -30px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}

/* ---------- home map ---------- */
.map{position:fixed;inset:0;overflow:hidden;background:#cfe6b5 url(/art/backgrounds/bg-meadow-map-landscape.webp) center/cover no-repeat}
@media (orientation:portrait){.map{background-image:url(/art/backgrounds/bg-meadow-map-portrait.webp)}}
.spot{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:4px;min-width:130px;min-height:130px;text-decoration:none;z-index:2}
.spot .art{position:relative;width:var(--w,170px);height:var(--h,150px);display:grid;place-items:center;animation:bob4 3s ease-in-out infinite}
.spot .art img.lm{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(40,60,20,.3))}
.spot .art img.critter{position:absolute;width:46%;top:-26%;right:-10%;animation:bob 2.2s ease-in-out infinite;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}
.spot .label{background:rgba(255,253,246,.95);border-radius:20px;padding:6px 16px;font-size:22px;font-weight:900;box-shadow:0 3px 0 rgba(92,58,30,.2);white-space:nowrap}
.spot:active .art{transform:scale(.95)}
.map .welcome{position:absolute;left:50%;transform:translateX(-50%);top:calc(var(--bar) + var(--sat) + 6px);z-index:3}
.gu-key{position:absolute;right:calc(var(--sar) + 14px);bottom:calc(var(--sab) + 14px);width:56px;height:56px;border-radius:50%;background:rgba(255,253,246,.55);display:grid;place-items:center;opacity:.75;z-index:4}
.gu-key svg{width:28px;height:28px}

/* ---------- cards (hub, critters) ---------- */
.shelf{margin:26px auto 0;max-width:1240px}
.shelf h2{font-size:28px;margin:0 0 12px 6px}
.shelf .row{display:flex;flex-wrap:wrap;gap:22px}
.gcard{width:300px;min-height:340px;border-radius:32px;background:#fffdf6;box-shadow:0 6px 0 #e3d3b4,0 12px 26px rgba(92,58,30,.14);display:flex;flex-direction:column;align-items:center;padding:18px;gap:8px;text-decoration:none;position:relative;overflow:hidden}
.gcard .pic{width:100%;height:170px;border-radius:24px;display:grid;place-items:center}
.gcard .pic img{max-height:150px;max-width:90%;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,0,0,.2))}
.gcard h3{font-size:28px;text-align:center}
.gcard p{margin:0;font-size:20px;text-align:center}
.gcard .btn{margin-top:auto;min-height:64px;font-size:26px}
.gcard.soon .tapline{font-size:22px;color:var(--orange);min-height:30px}

/* ---------- grown-ups ---------- */
.gu{max-width:860px;margin:0 auto}
.gu section{background:#fffdf6;border-radius:28px;padding:22px 26px;margin:18px 0;box-shadow:0 4px 0 #e3d3b4}
.gu h1{font-size:44px;color:var(--green)}
.gu h2{font-size:28px;margin-bottom:8px;color:var(--green)}
.gu p,.gu li{font-size:21px;line-height:1.45;font-weight:700}
.gu .btn{font-size:24px;min-height:64px}
.gate{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:24px;text-align:center}
.holdleaf{position:relative;width:200px;height:200px;border-radius:50%;background:#fffdf6;box-shadow:0 8px 22px rgba(92,58,30,.2);display:grid;place-items:center;touch-action:none}
.holdleaf img{width:120px;pointer-events:none}
.holdleaf svg.ring{position:absolute;inset:-10px;width:220px;height:220px;transform:rotate(-90deg)}

/* reduced motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.12s!important}
}
