/* Dani's Dig Site - Kids Block Lab blocky dig-site theme */
:root {
  --ink: #2a2418; --line: #2a1a10; --sand: #ecc98b; --sand-dark: #c99a5b; --sand-light: #f7e2b5; --dirt: #8b5a2b; --dirt-dark: #5e3a19;
  --grass: #5caf3a; --grass-dark: #3d8a24; --sky: #9fd8f7; --gold: #f5c542; --cream: #fff8e8; --teal: #26a69a; --glow: #ffe066;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", Verdana, sans-serif; font-size: 20px; line-height: 1.3;
  background-color: var(--sand);
  background-image: linear-gradient(45deg, rgba(120,70,20,.07) 25%, transparent 25%, transparent 75%, rgba(120,70,20,.07) 75%), linear-gradient(45deg, rgba(120,70,20,.07) 25%, transparent 25%, transparent 75%, rgba(120,70,20,.07) 75%);
  background-size: 28px 28px; background-position: 0 0, 14px 14px;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-user-select: none; user-select: none; overscroll-behavior: none;
}
#dig-app { max-width: 1100px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
button { font-family: inherit; font-weight: 800; color: var(--ink); cursor: pointer; border-radius: 0; touch-action: manipulation; }
.top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px 14px; position: relative;
  background: linear-gradient(180deg, var(--sky) 0 60%, #c6ecff); border-bottom: 10px solid var(--grass);
  box-shadow: 0 8px 0 var(--dirt);
}
.brand { flex: 1 1 200px; min-width: 0; }
h1 { margin: 0; font-size: clamp(26px, 5vw, 44px); line-height: 1.05; color: #fff; text-shadow: 3px 3px 0 var(--dirt-dark), -1px -1px 0 var(--dirt-dark); }
.h-ico { text-shadow: none; }
h2 { margin: 0 0 10px; font-size: 26px; }
h3 { margin: 6px 0; font-size: 20px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 12px; background: var(--gold); border: 4px solid var(--line); box-shadow: 3px 3px 0 var(--line); font-weight: 800; font-size: 22px; }
.pill.big { font-size: 30px; min-height: 72px; padding: 6px 16px; background: var(--cream); }
.pix { image-rendering: pixelated; display: block; }
.mascot { filter: drop-shadow(3px 3px 0 rgba(0,0,0,.3)); }
.mascot-btn, .icon-btn { min-width: 76px; min-height: 76px; padding: 4px; background: var(--cream); border: 4px solid var(--line); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15), 4px 4px 0 var(--line); font-size: 38px; display: inline-flex; align-items: center; justify-content: center; }
.mascot-btn { background: transparent; border: 0; box-shadow: none; }
main { padding: 22px 14px 28px; }

/* home */
.big-start {
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 120px; padding: 14px 18px; margin: 0 0 22px;
  font-size: clamp(28px, 5.5vw, 46px); line-height: 1.1; color: #fff; text-shadow: 3px 3px 0 rgba(0,0,0,.35);
  background: linear-gradient(180deg, #ffb74d, #f57c00 55%, #b4520a); border: 6px solid var(--line);
  box-shadow: inset 0 8px 0 rgba(255,255,255,.35), inset 0 -10px 0 rgba(0,0,0,.25), 6px 6px 0 var(--line);
  animation: breathe 2.4s ease-in-out infinite;
}
.big-start:active { transform: translateY(4px); box-shadow: inset 0 8px 0 rgba(255,255,255,.35), 2px 2px 0 var(--line); }
.bs-ico { font-size: 1.2em; text-shadow: none; }
.play-lab { min-height: 140px; }
.labs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
@media (min-width: 700px) { .labs { grid-template-columns: repeat(3, 1fr); } }
.lab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 12px 8px;
  border: 5px solid var(--line); box-shadow: inset 0 6px 0 rgba(255,255,255,.4), inset 0 -8px 0 rgba(0,0,0,.2), 5px 5px 0 var(--line); background: var(--cream);
}
.lab-btn:active { transform: translateY(3px); }
.lab-ico { font-size: 64px; line-height: 1; }
.lab-name { font-size: 20px; }
.lab-prog { font-size: 16px; min-height: 20px; }
.lab-letter { background: linear-gradient(180deg, #ffe082, #ffca28); }
.lab-number { background: linear-gradient(180deg, #a5d6a7, #66bb6a); }
.lab-pattern { background: linear-gradient(180deg, #b3e5fc, #4fc3f7); }
.lab-listen { background: linear-gradient(180deg, #f8bbd0, #f06292); }
.lab-story { background: linear-gradient(180deg, #d1c4e9, #9575cd); }
.lab-trace { background: linear-gradient(180deg, #ffccbc, #ff8a65); }
.collection { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; width: 100%; min-height: 88px; padding: 10px 14px; margin-bottom: 26px; background: var(--sand-light); border: 4px solid var(--line); box-shadow: 4px 4px 0 var(--line); font-size: 24px; }
.col-f { font-size: 34px; letter-spacing: 4px; }
.col-c { display: inline-flex; align-items: center; gap: 4px; }
.friends .pix { display: inline-block; }
.dim { opacity: .45; }
.grownup { text-align: center; }
.hold { position: relative; overflow: hidden; min-height: 60px; padding: 8px 18px; font-size: 18px; background: #efe3cf; border: 3px solid #8a7a66; color: #5a4a3a; }
.hold-tip { font-weight: 600; font-size: 15px; }
.hold-bar { position: absolute; left: 0; bottom: 0; height: 6px; width: 0; background: var(--teal); }
.hold.holding .hold-bar { width: 100%; transition: width 2s linear; }

/* lab */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stone { min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(180deg, #d7d7d7, #9e9e9e); border: 5px solid var(--line); box-shadow: inset 0 6px 0 rgba(255,255,255,.4), 4px 4px 0 var(--line); }
.stone .num { font-size: 40px; }
.stone .st { font-size: 18px; min-height: 22px; }
.stone.st-practicing { background: linear-gradient(180deg, #ffe58a, #f5c542); }
.stone.st-mastered { background: linear-gradient(180deg, #b9f6ca, #43a047); }
.stone.locked { opacity: .6; }

/* play */
.play { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--dirt); border-bottom: 6px solid var(--dirt-dark); }
.bar .icon-btn { min-width: 72px; min-height: 72px; font-size: 34px; }
.trail { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.spot { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: #6b4220; border: 3px solid #3b2410; box-shadow: inset 3px 3px 0 rgba(0,0,0,.25); }
.spot.done { background: var(--sand-light); }
.spot.now { background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
.stage { flex: 1; padding: 14px 12px 24px; position: relative; }
.task { display: flex; flex-direction: column; gap: 16px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.ask { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hear {
  min-width: 96px; min-height: 96px; font-size: 50px; background: linear-gradient(180deg, #80deea, #26a69a); border: 5px solid var(--line);
  box-shadow: inset 0 6px 0 rgba(255,255,255,.45), inset 0 -8px 0 rgba(0,0,0,.2), 5px 5px 0 var(--line);
}
.hear.book { background: linear-gradient(180deg, #d1c4e9, #9575cd); }
.hear:active, .opt:active, .big-btn:active, .tgt:active { transform: translateY(3px); }
.pcard { min-width: 120px; min-height: 120px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; background: var(--cream); border: 5px solid var(--line); box-shadow: 5px 5px 0 var(--line); font-size: 72px; }
.pcard .glyph { font-size: 96px; line-height: 1; }
.pcard.sound { font-size: 72px; background: #fff3c4; }
.pcard.word { gap: 10px; background: #fff3c4; }
.lblock { min-width: 84px; min-height: 96px; font-size: 64px; background: var(--cream); border: 4px solid var(--line); box-shadow: 3px 3px 0 var(--line); }
.pcard.objects { max-width: 640px; font-size: 52px; }
.obj { position: relative; min-width: 76px; min-height: 76px; font-size: 52px; background: transparent; border: 3px dashed transparent; padding: 0; }
.obj.counted { border-color: var(--teal); background: rgba(38,166,154,.12); }
.obj i { position: absolute; right: -6px; top: -8px; font-style: normal; font-size: 22px; min-width: 30px; background: var(--gold); border: 3px solid var(--line); line-height: 1.1; }
.obj:not(.counted) i { display: none; }
.pcard.dotcard svg { width: 160px; height: 120px; }
.addcard { font-size: 52px; }
.addcard .grp { display: inline-flex; flex-wrap: wrap; max-width: 260px; justify-content: center; }
.addcard .plus { font-size: 40px; }
.newcomer { animation: hopin .6s ease-out both; }
.subcard { font-size: 58px; min-height: 140px; align-items: flex-end; }
.balloon { display: inline-block; transition: transform 1.6s ease-in, opacity 1.6s ease-in; }
.balloon.fly { transform: translateY(-160px) rotate(8deg); opacity: 0; }
.seq { gap: 8px; }
.seq .cell { width: 74px; height: 74px; display: inline-flex; align-items: center; justify-content: center; font-size: 52px; }
.seq .cell.q { border: 4px dashed var(--dirt); background: #fff3c4; animation: pulse 1.4s ease-in-out infinite; }
.shape { width: 100%; height: 100%; max-width: 120px; max-height: 120px; display: block; }
.pcard .shape { width: 120px; height: 120px; }
.seq .shape { width: 64px; height: 64px; }
.dots { width: 100%; max-width: 150px; height: auto; }
.emo { line-height: 1; display: inline-block; }
.choices { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.choices.c3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 700px) { .choices.c4 { grid-template-columns: repeat(4, 1fr); } }
.opt {
  min-height: 130px; min-width: 72px; padding: 10px; display: flex; align-items: center; justify-content: center; background: var(--cream);
  border: 5px solid var(--line); box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 5px 5px 0 var(--line); font-size: 72px;
}
.opt .glyph { font-size: 84px; line-height: 1; }
.opt .shape { width: 100px; height: 100px; }
.opt.right { background: #c8f7c5; animation: bounce .6s ease-out; }
.opt.tried { opacity: .7; }
.opt.hint, .tgt.hint, .drag.hint, .dropzone.hint, .zone-h.hint { box-shadow: 0 0 0 6px var(--glow), 0 0 22px 8px var(--glow), 5px 5px 0 var(--line); animation: pulse 1s ease-in-out infinite; }
.group { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; font-size: 40px; max-width: 220px; }
.choices.groups .opt { min-height: 170px; }
.wiggle { animation: wiggle .5s ease-in-out; }
.burst { position: absolute; left: 50%; top: 32%; transform: translate(-50%, 0); font-size: 54px; font-weight: 900; color: #fff; text-shadow: 3px 3px 0 var(--dirt-dark); pointer-events: none; animation: rise 1.1s ease-out forwards; z-index: 5; }
.buddy { position: fixed; right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); pointer-events: none; z-index: 2; }
.hop { animation: hop .6s ease-out; }

/* scenes (drag) */
.scene { position: relative; width: 100%; height: 0; border: 5px solid var(--line); box-shadow: 5px 5px 0 var(--line); background: #bfe6ff; overflow: hidden; touch-action: none; font-size: 6px; }
.pos-scene { padding-top: 72%; }
.sort-scene { padding-top: 82%; }
.listen-scene { padding-top: 76%; background: linear-gradient(180deg, #d7f0ff 0 78%, #c99a5b 78%); }
.sort-scene { background: linear-gradient(180deg, #fff3c4 0 58%, #e7c68d 58%); }
.scene-wrap { width: 100%; margin: 0 auto; }
.scene-wrap.w82 { max-width: max(420px, calc((100vh - 250px) * 1.22)); max-width: max(420px, calc((100dvh - 250px) * 1.22)); }
.scene-wrap.w72 { max-width: max(420px, calc((100vh - 250px) * 1.38)); max-width: max(420px, calc((100dvh - 250px) * 1.38)); }
.scene-wrap.w76 { max-width: max(420px, calc((100vh - 370px) * 1.31)); max-width: max(420px, calc((100dvh - 370px) * 1.31)); }
.scene-wrap.w48 { max-width: max(420px, calc((100vh - 440px) * 2.08)); max-width: max(420px, calc((100dvh - 440px) * 2.08)); }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Drag boxes: real px size is set by fitScenes() from the scene width and item spacing (never overlapping);
   these are only the pre-layout defaults. The glyph is clamped inside its box and never takes the tap itself. */
.drag { position: absolute; transform: translate(-50%, -50%); width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; font-size: 43px; line-height: 1; overflow: hidden; box-sizing: border-box; cursor: grab; touch-action: none; z-index: 3; transition: left .25s ease, top .25s ease; }
.drag > *, .drag .emo { pointer-events: none; max-width: 100%; max-height: 100%; }
.drag .emo { font-size: 1em; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.25)); }
.drag .emo.huge { font-size: 1.2em; }
.drag .emo.small { font-size: .6em; }
.drag .shape { width: 70%; height: 70%; }
.drag.dragging { transition: none; z-index: 10; transform: translate(-50%, -50%) scale(1.15); cursor: grabbing; }
.drag.locked-in { cursor: default; pointer-events: none; }
.drag.in-box { transform: translate(-50%, -50%) scale(.62); }
.sortbox { position: absolute; display: flex; align-items: flex-end; justify-content: center; background: var(--bx, #999); border: 5px solid var(--line); box-shadow: inset 0 10px 0 rgba(255,255,255,.25); }
.sortbox .bx-ico { font-size: 9em; opacity: .55; margin-bottom: 1em; }
.sortbox .bx-ico.huge { font-size: 13em; }
.sortbox .bx-ico.small { font-size: 5em; }
.sortbox .bx-ico.svg { width: 14em; height: 14em; }
.drag.hint-a { box-shadow: 0 0 0 5px var(--glow); } .drag.hint-b { box-shadow: 0 0 0 5px #b2ebf2; }
.dropzone { position: absolute; display: flex; align-items: center; justify-content: center; border: 4px dashed rgba(42,26,16,.45); background: rgba(255,255,255,.25); }
.dropzone .emo, .crate-ico { font-size: 20em; opacity: .9; }
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 700px) { .targets { grid-template-columns: repeat(6, 1fr); } }
.tgt { min-height: 88px; padding: 6px; display: flex; align-items: center; justify-content: center; background: var(--cream); border: 4px solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.tgt .shape { width: 72px; height: 72px; }
.tgt.picked { background: #c8f7c5; }
.stepdots { display: flex; gap: 10px; }
.sd { width: 34px; height: 34px; background: #6b4220; border: 4px solid var(--line); }
.sd.on { background: var(--gold); }
.zone-h { position: absolute; border: 4px dashed transparent; pointer-events: none; }
.zone-h.hint { border-color: var(--glow); background: rgba(255,224,102,.25); }

/* story */
.story-scene { position: relative; width: 100%; padding-top: 48%; background: linear-gradient(180deg, #c6ecff 0 62%, #9ccc65 62%); border: 5px solid var(--line); box-shadow: 5px 5px 0 var(--line); overflow: hidden; }
.sc-item { position: absolute; transform: translate(-50%, -50%); font-size: clamp(44px, 8vw, 88px); line-height: 1; transition: transform .3s ease, filter .3s ease; }
.sc-item.hl { transform: translate(-50%, -50%) scale(1.3); filter: drop-shadow(0 0 12px #fff) drop-shadow(0 0 6px var(--glow)); }
.caption { margin: 0; min-height: 28px; text-align: center; font-size: 20px; color: #5a4a3a; }
.story-q .choices { margin-top: 4px; }

/* trace */
.trace-wrap { width: 100%; border: 5px solid var(--line); box-shadow: 5px 5px 0 var(--line); background: #fffaf0; touch-action: none; }
.trace-cv { display: block; touch-action: none; width: 100%; }
.trace-btns { display: flex; gap: 18px; justify-content: center; }
.model { min-height: 96px; padding: 6px 18px; display: flex; align-items: center; font-size: clamp(44px, 9vw, 80px); background: var(--cream); border: 5px solid var(--line); box-shadow: 4px 4px 0 var(--line); letter-spacing: 4px; }
.big-btn { min-width: 110px; min-height: 96px; font-size: 48px; background: var(--cream); border: 5px solid var(--line); box-shadow: inset 0 -8px 0 rgba(0,0,0,.15), 5px 5px 0 var(--line); }
.big-btn.go { background: linear-gradient(180deg, #a5d6a7, #43a047); }

/* done / dig */
.done-screen { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px; overflow: hidden; text-align: center; }
.big-title { font-size: clamp(40px, 9vw, 72px); color: #fff; }
.party .pix { animation: hop 1s ease-in-out infinite; }
.rewards { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.done-btns { display: flex; gap: 20px; }
.dirt { position: relative; width: 220px; height: 220px; padding: 0; border: 6px solid var(--line); background: var(--dirt); box-shadow: 6px 6px 0 var(--line); overflow: hidden; }
.dirt-block { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #7a4b22 0 18px, #6a3f1b 18px 36px); transition: opacity .3s; z-index: 2; }
.dirt-block.c1 { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 60%, 30% 55%, 0 40%); }
.dirt-block.c2 { clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 50% 60%, 35% 70%, 20% 40%, 0 30%); }
.dirt-block.c3 { opacity: 0; }
.fossil-hidden { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 130px; background: var(--sand-light); }
.dirt.open .fossil-hidden { animation: bounce .8s ease-out; }
.confetti { position: absolute; top: -40px; font-size: 34px; animation: fall 2.6s ease-in forwards; pointer-events: none; }
.overlay { position: fixed; inset: 0; background: rgba(42,26,16,.55); display: flex; align-items: center; justify-content: center; z-index: 50; }
.ov-box { display: flex; gap: 28px; padding: 26px; background: var(--sand-light); border: 6px solid var(--line); box-shadow: 6px 6px 0 var(--line); }

/* collection + parent */
.panel { background: var(--cream); border: 4px solid var(--line); box-shadow: 5px 5px 0 var(--line); padding: 14px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.slot { min-height: 76px; display: flex; align-items: center; justify-content: center; font-size: 44px; background: var(--sand-light); border: 3px solid var(--line); }
.slot.empty { opacity: .45; font-size: 30px; }
.friends-row { display: flex; gap: 14px; flex-wrap: wrap; }
.friend { min-width: 96px; min-height: 96px; display: flex; align-items: center; justify-content: center; background: var(--sand-light); border: 4px solid var(--line); font-size: 40px; }
.friend.on { background: #c8f7c5; box-shadow: 0 0 0 5px var(--glow); }
.friend.empty { opacity: .5; }
.stickers { font-size: 42px; display: flex; flex-wrap: wrap; gap: 6px; }
.parent-main, .gate-main { -webkit-user-select: text; user-select: text; font-size: 18px; }
.help { font-size: 22px; font-weight: 700; }
.muted { color: #6a5a48; font-size: 16px; }
.gate-in { min-height: 64px; font-size: 40px; text-align: center; background: #fff; border: 4px solid var(--line); margin-bottom: 12px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; }
.key { min-height: 72px; font-size: 30px; background: var(--sand-light); border: 4px solid var(--line); box-shadow: 3px 3px 0 var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stats div { background: var(--sand-light); border: 3px solid var(--line); padding: 8px; display: flex; flex-direction: column; }
.stats b { font-size: 24px; }
.acc-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) 2fr minmax(80px, auto); gap: 10px; align-items: center; margin: 6px 0; }
.acc-bar { height: 22px; background: #eadcc4; border: 3px solid var(--line); }
.acc-bar i { display: block; height: 100%; background: var(--grass); }
.panel.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.panel ul { margin: 4px 0; padding-left: 22px; }
.tbl-wrap { overflow-x: auto; }
table.skills { border-collapse: collapse; width: 100%; font-size: 16px; }
table.skills th, table.skills td { border: 2px solid #c9b79a; padding: 6px 8px; text-align: left; white-space: nowrap; }
.recent { list-style: none; padding: 0 !important; }
.recent li { padding: 4px 0; border-bottom: 1px dashed #c9b79a; }
.when { color: #6a5a48; font-size: 15px; }
.field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; font-weight: 700; }
.field input { font: inherit; font-size: 22px; min-height: 52px; padding: 6px 10px; border: 4px solid var(--line); -webkit-user-select: text; user-select: text; }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.seg, .tog { min-height: 56px; padding: 6px 14px; font-size: 18px; background: var(--sand-light); border: 4px solid var(--line); box-shadow: 3px 3px 0 var(--line); }
.seg.on, .tog.on { background: #a5d6a7; }
.tog.warn { background: #ffcc80; }

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes bounce { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px) rotate(-2deg); } 75% { transform: translateX(8px) rotate(2deg); } }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1.1); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px); } }
@keyframes hopin { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: none; } }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(260deg); opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .balloon.fly { transform: none; opacity: .15; }
  .confetti { display: none; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .buddy { display: none; }
  .opt { min-height: 96px; }
  .pcard { min-height: 96px; }
  .big-start { min-height: 96px; }
}
