/* Little Learners: the look of the whole game.
   more-math.js and more-mind.js add a few styles of their own for their games. */
@font-face { font-family:"Fredoka"; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/fredoka.woff2) format("woff2"); }
:root { --bg:#dff3ff; --ink:#1e2a4a; --muted:#5b6b8c; --card:#fff; --blue:#3b82f6; --green:#22c55e; --pink:#ec4899; --orange:#f97316; --purple:#8b5cf6;
  --sky1:#8fd3ff; --sky2:#d9f1ff; --sky3:#fff6e0; --shadow:#a9d8f5;
  --font:"Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; --emoji:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
* { box-sizing:border-box; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; height:100%; overflow:hidden; color:var(--ink); font-family:var(--font); -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
body { background:linear-gradient(var(--sky1), var(--sky2) 45%, var(--sky3)); }
button { font-family:inherit; color:inherit; cursor:pointer; }
.hidden { display:none !important; }
/* pictures that stand in for emoji */
img.em { width:1em; height:1em; vertical-align:-.14em; display:inline-block; pointer-events:none; -webkit-user-drag:none; user-select:none; }

/* ---------- sky: sun, clouds and hills behind everything ---------- */
#sky { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
#sky .sun { position:absolute; right:6vw; top:calc(64px + env(safe-area-inset-top)); width:92px; height:92px; border-radius:50%;
  background:radial-gradient(circle at 38% 36%, #fff7c2, #ffd84a 60%, #ffb52e); box-shadow:0 0 0 14px rgba(255,220,90,.25), 0 0 0 30px rgba(255,220,90,.12); animation:sunpulse 5s ease-in-out infinite; }
#sky .cloud { position:absolute; width:150px; height:46px; background:#fff; border-radius:999px; opacity:.9; animation:drift linear infinite; }
#sky .cloud::before, #sky .cloud::after { content:""; position:absolute; background:#fff; border-radius:50%; }
#sky .cloud::before { width:64px; height:64px; left:22px; top:-30px; }
#sky .cloud::after { width:84px; height:84px; right:18px; top:-44px; }
#sky .c1 { top:16%; animation-duration:70s; animation-delay:-20s; }
#sky .c2 { top:38%; transform:scale(.7); animation-duration:95s; animation-delay:-60s; opacity:.75; }
#sky .c3 { top:58%; transform:scale(1.2); animation-duration:120s; animation-delay:-90s; opacity:.6; }
#sky .hills { position:absolute; left:0; right:0; bottom:0; width:100%; height:26vh; min-height:120px; }
@keyframes drift { from { left:-220px; } to { left:110vw; } }
@keyframes sunpulse { 50% { box-shadow:0 0 0 20px rgba(255,220,90,.22), 0 0 0 44px rgba(255,220,90,.1); } }

/* ---------- top bar ---------- */
header { position:fixed; top:0; left:0; right:0; z-index:10; display:flex; align-items:center; gap:8px;
  padding:max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background:rgba(255,255,255,.72); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:3px solid rgba(125,211,252,.7); }
header .title { flex:1; font-weight:700; font-size:21px; color:#0b5f96; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hbtn { position:relative; width:46px; height:46px; flex:none; border-radius:15px; border:0; background:linear-gradient(#fff,#f1f9ff); box-shadow:0 4px 0 var(--shadow); font-size:24px; font-family:var(--emoji);
  display:flex; align-items:center; justify-content:center; text-decoration:none; color:var(--ink); padding:0; }
.hbtn:active { transform:translateY(3px); box-shadow:none; }
.hbtn.off { opacity:.4; }
.hbtn.gift { animation:wiggle 1.1s ease-in-out infinite; background:linear-gradient(#fff7d6,#ffe08a); box-shadow:0 4px 0 #f5b83d; }
.hbtn.gift i { position:absolute; top:-6px; right:-6px; min-width:22px; height:22px; border-radius:999px; background:#ef4444; color:#fff; font:700 14px var(--font); font-style:normal;
  display:flex; align-items:center; justify-content:center; padding:0 5px; box-shadow:0 2px 0 #b91c1c; }
.starbox { display:flex; align-items:center; gap:5px; background:linear-gradient(#fffdf2,#fff3c4); border:0; border-radius:999px; padding:7px 14px; font-weight:700; font-size:19px; box-shadow:0 4px 0 #f5c542; flex:none; }
.starbox.bump { animation:pop .4s; }
body.app #bArcade { display:none; }

main { position:fixed; inset:0; z-index:1; display:flex; flex-direction:column; gap:8px;
  padding:calc(72px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }

/* ---------- home ---------- */
#home { overflow-y:auto; touch-action:pan-y; display:block; -webkit-overflow-scrolling:touch; }
.hero { max-width:820px; margin:4px auto 12px; display:flex; align-items:center; gap:14px; }
.owlbtn { flex:none; width:clamp(104px,26vw,150px); border:0; background:none; padding:0; filter:drop-shadow(0 8px 6px rgba(20,60,110,.18)); }
.owlbtn:active { transform:scale(.95); }
.hello { position:relative; flex:1; background:#fff; border-radius:26px; padding:14px 18px; box-shadow:0 6px 0 var(--shadow); }
.hello::before { content:""; position:absolute; left:-12px; top:50%; margin-top:-12px; border:12px solid transparent; border-right-color:#fff; border-left:0; }
.hello .hi { font-size:clamp(22px,5.6vw,34px); font-weight:700; color:#0b5f96; line-height:1.15; }
.hello .sub { font-size:clamp(15px,3.8vw,19px); color:var(--muted); font-weight:500; margin-top:2px; }
.streak { display:inline-flex; align-items:center; gap:6px; margin-top:8px; background:#fff3c4; color:#92400e; font-weight:700; font-size:15px; border-radius:999px; padding:4px 12px; }
.picks { max-width:820px; margin:0 auto 14px; background:rgba(255,255,255,.78); border-radius:26px; padding:12px 14px 14px; box-shadow:0 6px 0 var(--shadow); }
.picks h2 { margin:0 0 8px; font-size:clamp(18px,4.6vw,22px); color:#b45309; display:flex; align-items:center; gap:8px; }
.picks h2 small { font-size:14px; font-weight:600; color:var(--muted); }
.pickrow { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.pick { position:relative; border:0; border-radius:20px; padding:10px 6px 8px; display:flex; flex-direction:column; align-items:center; gap:2px; color:#fff;
  background:linear-gradient(var(--c1),var(--c2)); box-shadow:0 5px 0 rgba(0,0,0,.16); touch-action:pan-y; }
.pick:active { transform:translateY(3px); box-shadow:0 2px 0 rgba(0,0,0,.16); }
.pick .pic { font-family:var(--emoji); font-size:clamp(34px,9vw,48px); line-height:1.1; }
.pick .name { font-weight:700; font-size:clamp(13px,3.4vw,16px); text-shadow:0 2px 0 rgba(0,0,0,.14); text-align:center; line-height:1.1; }
.pick .dots { display:flex; gap:3px; margin-top:4px; }
.pick .dots i { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.4); }
.pick .dots i.on { background:#fff; box-shadow:0 0 6px #fff; }
.pick.done::after { content:"✓"; position:absolute; top:-8px; right:-6px; width:30px; height:30px; border-radius:50%; background:#22c55e; color:#fff; font-weight:700; font-size:19px;
  display:flex; align-items:center; justify-content:center; box-shadow:0 3px 0 #15803d; }
.sect { max-width:820px; margin:8px auto 10px; font-size:clamp(20px,5vw,25px); color:#0b5f96; display:flex; align-items:center; gap:8px; text-shadow:0 2px 0 rgba(255,255,255,.7); }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:16px; max-width:820px; margin:0 auto 22px; }
.gcard { position:relative; border:0; border-radius:28px; padding:16px 10px 12px; display:flex; flex-direction:column; align-items:center; gap:5px; overflow:hidden; touch-action:pan-y;
  background:linear-gradient(var(--c1),var(--c2)); box-shadow:0 7px 0 rgba(0,0,0,.16), 0 14px 22px rgba(20,60,110,.14); animation:popin .45s backwards; }
.gcard::before { content:""; position:absolute; left:-20%; right:-20%; top:-60%; height:100%; background:rgba(255,255,255,.22); border-radius:50%; pointer-events:none; }
.gcard:active { transform:translateY(4px) scale(.98); box-shadow:0 3px 0 rgba(0,0,0,.16); }
.gcard .pic { position:relative; font-family:var(--emoji); font-size:clamp(58px,15vw,72px); line-height:1.08; filter:drop-shadow(0 5px 3px rgba(0,0,0,.18)); animation:bob 3s ease-in-out infinite; }
.gcard:nth-child(2n) .pic { animation-delay:-1.2s; } .gcard:nth-child(3n) .pic { animation-delay:-2.1s; }
.gcard .name { position:relative; font-weight:700; font-size:clamp(17px,4.4vw,21px); color:#fff; text-shadow:0 2px 0 rgba(0,0,0,.16); text-align:center; line-height:1.1; }
.gcard .mast { position:relative; display:flex; gap:2px; font-size:18px; height:22px; }
.gcard .mast .em { filter:grayscale(1) brightness(1.6) opacity(.45); }
.gcard .mast .em.got { filter:none; animation:pop .5s; }
.gcard .prog { position:relative; font-size:13px; font-weight:600; color:rgba(255,255,255,.96); background:rgba(0,0,0,.14); padding:2px 10px; border-radius:999px; }
.grid .gcard:nth-child(1) { animation-delay:.03s; } .grid .gcard:nth-child(2) { animation-delay:.09s; } .grid .gcard:nth-child(3) { animation-delay:.15s; } .grid .gcard:nth-child(4) { animation-delay:.21s; }
.grownbar { max-width:820px; margin:6px auto 34px; display:flex; justify-content:center; }
.grownbtn { border:0; border-radius:999px; padding:10px 20px; font-size:16px; font-weight:600; color:var(--muted); background:rgba(255,255,255,.8); box-shadow:0 3px 0 var(--shadow); display:flex; align-items:center; gap:8px; }

/* ---------- play screen ---------- */
#bubble { flex:none; display:flex; align-items:center; gap:10px; background:#fff; border-radius:24px; padding:6px 12px 6px 6px; box-shadow:0 5px 0 var(--shadow); min-height:74px; }
#bubble .owl { flex:none; width:64px; height:68px; }
#bubble .txt { flex:1; font-size:clamp(17px,4.6vw,23px); font-weight:600; line-height:1.25; }
#trail { flex:none; display:flex; justify-content:center; gap:8px; height:26px; font-size:22px; }
#trail .em { filter:grayscale(1) brightness(1.25) opacity(.55); transition:transform .2s; }
#trail .em.on { filter:drop-shadow(0 0 5px #ffd84a); animation:pop .45s; }
#stage { flex:1; min-height:0; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
#bar { flex:none; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; min-height:58px; align-items:center; }
.act { border:0; border-radius:999px; padding:12px 22px; font-size:19px; font-weight:700; color:#fff; background:linear-gradient(#60a5fa,var(--blue)); box-shadow:0 5px 0 #1d4ed8; display:inline-flex; align-items:center; gap:6px; }
.act.green { background:linear-gradient(#4ade80,var(--green)); box-shadow:0 5px 0 #15803d; } .act.pink { background:linear-gradient(#f472b6,var(--pink)); box-shadow:0 5px 0 #be185d; }
.act.orange { background:linear-gradient(#fb923c,var(--orange)); box-shadow:0 5px 0 #c2410c; } .act.grey { background:linear-gradient(#fff,#e8f1fb); color:var(--ink); box-shadow:0 5px 0 #c3d4ea; }
.act:active { transform:translateY(4px); box-shadow:none; }
.act:disabled { opacity:.4; }
/* tracing */
.tracewrap { position:relative; background:#fff; border-radius:30px; box-shadow:0 7px 0 var(--shadow), 0 16px 26px rgba(20,60,110,.12); touch-action:none; }
.tracewrap canvas { display:block; touch-action:none; border-radius:30px; }
.word { display:flex; align-items:center; gap:10px; font-size:clamp(22px,6vw,34px); font-weight:700; background:rgba(255,255,255,.8); border-radius:999px; padding:4px 18px; }
.word .e { font-family:var(--emoji); font-size:1.4em; }
.meter { width:min(320px,80%); height:14px; background:rgba(255,255,255,.8); border-radius:999px; overflow:hidden; box-shadow:inset 0 2px 3px rgba(0,0,0,.12); }
.meter i { display:block; height:100%; width:0; background:linear-gradient(90deg,#22c55e,#a3e635,#facc15); border-radius:999px; transition:width .25s; }
/* letters grid */
.letters { display:grid; grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:10px; width:100%; max-width:760px; overflow-y:auto; touch-action:pan-y; padding:4px 4px 10px; }
.ltile { border:0; border-radius:20px; aspect-ratio:1; font-size:32px; font-weight:700; color:#fff; box-shadow:0 5px 0 rgba(0,0,0,.18); touch-action:pan-y; background-image:linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,0)) !important; animation:popin .35s backwards; }
.ltile:active { transform:translateY(3px); box-shadow:0 2px 0 rgba(0,0,0,.18); }
.bigcard { background:#fff; border-radius:30px; padding:18px 26px; box-shadow:0 7px 0 var(--shadow); display:flex; flex-direction:column; align-items:center; gap:6px; animation:popin .4s; }
.bigcard .L { font-size:clamp(70px,18vw,120px); font-weight:700; line-height:1; color:var(--purple); }
.bigcard .ex { display:flex; gap:16px; font-size:16px; font-weight:600; color:var(--muted); }
.bigcard .ex div { display:flex; flex-direction:column; align-items:center; }
.bigcard .ex b { font-family:var(--emoji); font-size:50px; font-weight:400; }
/* choices */
.choices { display:flex; gap:clamp(10px,3vw,22px); flex-wrap:wrap; justify-content:center; align-items:center; }
.choice { border:0; background:linear-gradient(#fff,#f3faff); border-radius:28px; box-shadow:0 7px 0 var(--shadow), 0 14px 20px rgba(20,60,110,.1); width:clamp(92px,26vw,150px); aspect-ratio:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:2px; animation:popin .4s backwards; transition:transform .12s; }
.choice:nth-child(2) { animation-delay:.07s; } .choice:nth-child(3) { animation-delay:.14s; } .choice:nth-child(4) { animation-delay:.21s; } .choice:nth-child(5) { animation-delay:.28s; } .choice:nth-child(6) { animation-delay:.35s; }
.choice .e { font-family:var(--emoji); font-size:clamp(46px,13vw,76px); line-height:1.05; }
.choice .n { font-size:15px; font-weight:600; color:var(--muted); min-height:18px; }
.choice.num { font-size:clamp(40px,12vw,64px); font-weight:700; color:var(--blue); }
.choice:active { transform:scale(.94); }
.choice.good { background:#dcfce7; box-shadow:0 7px 0 #86efac, 0 0 0 5px rgba(134,239,172,.55); animation:pop .5s; }
.choice.bad { animation:shake .4s; background:#fee2e2; }
.choice svg { width:78%; height:78%; filter:drop-shadow(0 4px 2px rgba(0,0,0,.15)); }
.big-q { font-size:clamp(46px,14vw,80px); font-weight:700; color:var(--purple); line-height:1; text-shadow:0 3px 0 #fff; }
/* counting */
.things { display:flex; flex-wrap:wrap; gap:clamp(6px,2vw,14px); justify-content:center; align-content:center; max-width:720px; }
.thing { position:relative; border:0; background:none; font-family:var(--emoji); font-size:clamp(44px,12vw,70px); line-height:1; padding:5px; border-radius:20px; animation:popin .35s backwards; }
.thing:nth-child(3n) { animation-delay:.08s; } .thing:nth-child(3n+1) { animation-delay:.16s; }
.thing:active { transform:scale(.9) !important; }
.thing.on { background:#fff3c4; box-shadow:0 0 0 3px #fcd34d; }
.thing .badge { position:absolute; top:-4px; right:-4px; font-family:var(--font); font-size:15px; font-weight:700; color:#fff; background:var(--orange); border-radius:999px; min-width:24px; height:24px;
  display:flex; align-items:center; justify-content:center; box-shadow:0 2px 0 #c2410c; animation:pop .3s; }
.tabs { display:flex; gap:8px; flex-wrap:wrap; }
.tab { border:0; border-radius:999px; padding:9px 18px; font-size:17px; font-weight:700; background:rgba(255,255,255,.85); box-shadow:0 3px 0 var(--shadow); display:inline-flex; align-items:center; gap:6px; }
.tab.on { background:linear-gradient(#a78bfa,var(--purple)); color:#fff; box-shadow:0 3px 0 #5b21b6; }

/* ---------- pop-up sheets: sticker book, surprise, grown-ups, break ---------- */
.sheet { position:fixed; inset:0; z-index:40; display:flex; align-items:center; justify-content:center; background:rgba(15,40,80,.5); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  padding:max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.panel { position:relative; width:100%; max-width:640px; max-height:100%; overflow-y:auto; touch-action:pan-y; background:linear-gradient(#fff,#f3faff); border-radius:30px; padding:18px;
  box-shadow:0 10px 0 rgba(0,0,0,.16), 0 30px 60px rgba(0,0,0,.25); animation:popin .35s; display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center; }
.panel * { touch-action:pan-y; }
.panel h2 { margin:0; font-size:clamp(22px,6vw,30px); color:#0b5f96; display:flex; align-items:center; gap:8px; }
.panel p { margin:0; color:var(--muted); font-size:16px; line-height:1.4; }
.panel .close { position:absolute; right:12px; top:12px; width:42px; height:42px; border-radius:50%; border:0; background:#eef6ff; font-size:20px; font-weight:700; color:var(--muted); box-shadow:0 3px 0 var(--shadow); }
.stickers { display:grid; grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:10px; width:100%; }
.sticker { aspect-ratio:1; border:0; border-radius:18px; background:#eef6ff; font-family:var(--emoji); font-size:42px; display:flex; align-items:center; justify-content:center; padding:0; }
.sticker.got { background:#fff; box-shadow:0 4px 0 var(--shadow); }
.sticker.got:active { transform:scale(1.25) rotate(-8deg); }
.sticker.locked .em { filter:brightness(0) opacity(.13); }
.sticker.new { animation:pop .6s 2; box-shadow:0 0 0 4px #fcd34d, 0 4px 0 var(--shadow); }
.giftbox { border:0; background:none; font-family:var(--emoji); font-size:clamp(120px,36vw,190px); line-height:1; animation:wiggle 1s ease-in-out infinite; filter:drop-shadow(0 12px 8px rgba(0,0,0,.2)); padding:0; }
.giftbox.open { animation:reveal .7s; }
.gate .keys { display:grid; grid-template-columns:repeat(3,64px); gap:10px; }
.gate .keys button { height:56px; border:0; border-radius:16px; background:#eef6ff; font-size:24px; font-weight:700; box-shadow:0 4px 0 var(--shadow); }
.gate .keys button:active { transform:translateY(3px); box-shadow:none; }
.gate .ask { font-size:20px; font-weight:700; color:var(--ink); }
.gate .dots { letter-spacing:8px; font-size:26px; min-height:34px; color:var(--purple); }
#grown .panel { align-items:stretch; text-align:left; max-width:720px; }
#grown h3 { margin:8px 0 2px; font-size:18px; color:#0b5f96; }
#grown .rows { display:flex; flex-direction:column; gap:8px; }
#grown .row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:16px; padding:8px 12px; box-shadow:0 3px 0 var(--shadow); font-size:15px; }
#grown .row > span:first-child { flex:1; min-width:150px; font-weight:600; }
#grown .row small { display:block; font-weight:500; color:var(--muted); font-size:13px; }
#grown .rep { display:grid; grid-template-columns:1fr auto auto; gap:2px 12px; align-items:center; background:#fff; border-radius:16px; padding:8px 12px; box-shadow:0 3px 0 var(--shadow); font-size:15px; }
#grown .rep b { font-weight:700; } #grown .rep small { grid-column:1 / -1; color:var(--muted); font-size:13px; }
#grown .rep .bar { grid-column:1 / -1; height:7px; border-radius:4px; background:#e5eefb; overflow:hidden; }
#grown .rep .bar i { display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#60a5fa,#22c55e); }
#grown .sum { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:8px; }
#grown .sum div { background:#fff; border-radius:16px; padding:10px; text-align:center; box-shadow:0 3px 0 var(--shadow); font-size:14px; color:var(--muted); }
#grown .sum b { display:block; font-size:26px; color:var(--ink); }
#grown .hbtn { width:auto; padding:0 14px; font:600 15px var(--font); gap:6px; height:42px; }
#grown a { color:#0b5f96; }
#grown .note { font-size:14px; color:var(--muted); line-height:1.45; }
#rest .panel { background:linear-gradient(#fff8e1,#ffe9c7); }
.toast { position:fixed; left:50%; top:calc(78px + env(safe-area-inset-top)); z-index:35; transform:translateX(-50%); background:#fff; border-radius:999px; padding:8px 18px; font-weight:700; font-size:17px;
  box-shadow:0 5px 0 #86efac, 0 12px 24px rgba(0,0,0,.18); display:flex; align-items:center; gap:8px; animation:toast 3.2s forwards; pointer-events:none; white-space:nowrap; }

#fx { position:fixed; inset:0; pointer-events:none; z-index:50; }
.flystar { position:fixed; z-index:51; font-family:var(--emoji); font-size:34px; pointer-events:none; transition:transform .8s cubic-bezier(.5,-0.3,.6,1), opacity .8s; }

/* ---------- the owl ---------- */
.owl svg { width:100%; height:100%; display:block; overflow:visible; }
.owl .lid { transform-box:fill-box; transform-origin:center top; transform:scaleY(0); animation:blink 4.2s infinite; }
.owl .wing { transform-box:fill-box; transition:transform .2s; }
.owl .wing.l { transform-origin:85% 15%; } .owl .wing.r { transform-origin:15% 15%; }
.owl .beak2 { transform-box:fill-box; transform-origin:center top; }
.owl .body { transform-box:fill-box; transform-origin:center bottom; animation:breathe 3s ease-in-out infinite; }
body.talking .owl .beak2 { animation:chat .22s ease-in-out infinite alternate; }
.owl.cheer { animation:hop .7s; }
.owl.cheer .wing.l { transform:rotate(55deg); } .owl.cheer .wing.r { transform:rotate(-55deg); }
.owl.oops { animation:tilt .7s; }
.owl.wave .wing.r { animation:wave .5s 3; }

@keyframes blink { 0%, 94%, 100% { transform:scaleY(0); } 96%, 98% { transform:scaleY(1); } }
@keyframes breathe { 50% { transform:scaleY(1.025); } }
@keyframes chat { to { transform:translateY(3.5px) scaleY(1.5); } }
@keyframes hop { 0%, 100% { transform:translateY(0) scale(1); } 30% { transform:translateY(-16px) scale(1.06, .96); } 55% { transform:translateY(0) scale(.97, 1.04); } 75% { transform:translateY(-7px); } }
@keyframes tilt { 0%, 100% { transform:rotate(0); } 35% { transform:rotate(-11deg); } 70% { transform:rotate(7deg); } }
@keyframes wave { 50% { transform:rotate(-70deg); } }
@keyframes bob { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-5px) } }
@keyframes pop { 0% { transform:scale(1) } 40% { transform:scale(1.18) } 100% { transform:scale(1) } }
@keyframes popin { 0% { transform:scale(.4); opacity:0; } 70% { transform:scale(1.08); opacity:1; } 100% { transform:scale(1); } }
@keyframes shake { 0%,100% { transform:translateX(0) } 25% { transform:translateX(-9px) rotate(-3deg) } 75% { transform:translateX(9px) rotate(3deg) } }
@keyframes wiggle { 0%, 100% { transform:rotate(-7deg) scale(1); } 50% { transform:rotate(7deg) scale(1.06); } }
@keyframes reveal { 0% { transform:scale(.2) rotate(-30deg); } 60% { transform:scale(1.25) rotate(8deg); } 100% { transform:scale(1) rotate(0); } }
@keyframes toast { 0% { opacity:0; transform:translate(-50%,-20px); } 10%, 85% { opacity:1; transform:translate(-50%,0); } 100% { opacity:0; transform:translate(-50%,-20px); } }
@media (max-width:440px) { header .title { display:none; } header { justify-content:space-between; } }
@media (max-height:520px) { #sky .sun { width:60px; height:60px; } #bubble { min-height:58px; } #bubble .owl { width:50px; height:52px; } #trail { height:20px; font-size:17px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; } #sky .cloud { animation:none; left:12vw; } #sky .c2 { left:55vw; } #sky .c3 { left:30vw; } }
