/* Wild Honey Kids (2026-11-08) · bright, big and easy to tap */
:root {
  --sky: #7cc8f2; --sky2: #bfe6ff; --honey: #f7b928; --honey-d: #d98e04; --ink: #3a2a12; --cream: #fff8e6;
  --green: #6fbf5f; --blue: #2f8fd8; --red: #e85a4f; --card: #fffdf6;
  --f: 'Fredoka', 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--sky2); color: var(--ink); font-family: var(--f); font-weight: 500; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
#app { position: fixed; inset: 0; overflow: hidden; }

.screen { position: absolute; inset: 0; display: none; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
.screen.on { display: block; animation: scr-in .35s ease-out; }
@keyframes scr-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 18px; background: #fff; color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 #d8c9a6, 0 8px 18px rgba(58, 42, 18, .15); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #d8c9a6, 0 4px 10px rgba(58, 42, 18, .15); }
.btn.big { min-height: 60px; padding: 12px 28px; font-size: 22px; border-radius: 22px; }
.btn.sm { min-height: 40px; padding: 6px 14px; font-size: 16px; border-radius: 14px; }
.btn.gold { background: linear-gradient(180deg, #ffd969, var(--honey)); box-shadow: 0 6px 0 var(--honey-d), 0 10px 22px rgba(217, 142, 4, .35); }
.btn.gold:active { box-shadow: 0 2px 0 var(--honey-d), 0 4px 10px rgba(217, 142, 4, .3); }
.btn.blue { background: linear-gradient(180deg, #8fd3ff, #4fb1e8); color: #fff; box-shadow: 0 6px 0 #2a83c0, 0 10px 22px rgba(42, 131, 192, .3); text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn:focus-visible, .hcard:focus-visible, .ans:focus-visible, .fact:focus-visible, .tg:focus-visible, .pin:focus { outline: 4px solid var(--blue); outline-offset: 3px; }

/* ---------- title ---------- */
#title { background: linear-gradient(180deg, #7cc8f2 0%, #bfe6ff 62%, #e8f7ff 100%); }
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sun { position: absolute; right: 8%; top: 6%; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #fff6b0 0 45%, #ffd23f 60%, rgba(255, 210, 63, 0) 72%); animation: sun 6s ease-in-out infinite; }
@keyframes sun { 50% { transform: scale(1.08); } }
.cloud { position: absolute; width: 140px; height: 46px; border-radius: 40px; background: #fff; opacity: .92; animation: drift 38s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.cloud::before { width: 64px; height: 64px; left: 22px; top: -30px; } .cloud::after { width: 48px; height: 48px; left: 70px; top: -20px; }
.cloud.c1 { top: 12%; left: -10%; } .cloud.c2 { top: 26%; left: 40%; transform: scale(.7); animation-duration: 52s; animation-delay: -20s; } .cloud.c3 { top: 8%; left: 70%; transform: scale(.85); animation-duration: 46s; animation-delay: -34s; }
@keyframes drift { from { translate: -20vw 0; } to { translate: 120vw 0; } }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; pointer-events: none; }
.title-wrap { position: relative; z-index: 2; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 16px 40px; text-align: center; }
.logo { position: relative; display: flex; flex-direction: column; align-items: center; line-height: .9; }
.logo-top { font-size: clamp(54px, 13vw, 112px); font-weight: 700; color: var(--honey); letter-spacing: .01em; -webkit-text-stroke: 4px #7a4a05; paint-order: stroke fill; text-shadow: 0 6px 0 #a96a06, 0 12px 26px rgba(122, 74, 5, .35); }
.logo-kids { margin-top: -6px; padding: 4px 26px 8px; border-radius: 20px; background: linear-gradient(180deg, #8fd3ff, #2f8fd8); color: #fff; font-size: clamp(34px, 7.5vw, 62px); font-weight: 700; transform: rotate(-4deg); box-shadow: 0 6px 0 #1f6fb0, 0 10px 24px rgba(31, 111, 176, .35); text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.drips { position: absolute; top: calc(clamp(54px, 13vw, 112px) * .82); width: min(78vw, 540px); height: auto; pointer-events: none; z-index: -1; }
.tagline { margin: 6px 0 2px; font-size: clamp(19px, 3.6vw, 26px); font-weight: 600; color: #1f4f78; }
.title-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.heroes-row { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.heroes-row img { width: clamp(46px, 9vw, 70px); height: clamp(46px, 9vw, 70px); border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); animation: bob 3s ease-in-out infinite; }
.heroes-row img:nth-child(2n) { animation-delay: -1.2s; } .heroes-row img:nth-child(3n) { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.lobby { position: absolute; left: 12px; top: calc(12px + env(safe-area-inset-top)); z-index: 3; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .85); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: 0 3px 0 #d8c9a6; }

/* Buzz the honeybee */
.buzz { width: 96px; height: 88px; flex: none; }
.buzz svg { width: 100%; height: 100%; overflow: visible; }
.buzz .wings { transform-origin: 60px 40px; animation: flap .18s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleY(.72); } }
.buzz.sm { width: 64px; height: 58px; }
.buzz-fly { position: absolute; z-index: 3; left: 0; top: 0; animation: fly 16s ease-in-out infinite; pointer-events: none; }
@keyframes fly { 0% { transform: translate(4vw, 9vh); } 30% { transform: translate(calc(96vw - 110px), 5vh) rotate(6deg); } 50% { transform: translate(calc(96vw - 110px), 34vh); } 80% { transform: translate(2vw, 40vh) rotate(-6deg); } 100% { transform: translate(4vw, 9vh); } }
@media (max-width: 600px) { .buzz-fly .buzz { width: 64px; height: 58px; } }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: rgba(255, 253, 246, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 0 #eadbb5; }
.bar h1 { flex: 1; min-width: 0; margin: 0; font-size: clamp(19px, 4.4vw, 26px); font-weight: 700; color: #7a4a05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-btn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 16px; background: #fff; font-size: 26px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 0 #d8c9a6; }
.bar-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #d8c9a6; }
.bar-sp { width: 48px; flex: none; }
.bar-chip { flex: none; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 14px; background: #fff3c4; font-size: 17px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 0 #e8cf7f; }
.bar-face { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 3px solid var(--honey); background: #fff; }
.bar-face img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- pick a hero ---------- */
#pick { background: linear-gradient(180deg, #bfe6ff, #fff4d6); }
.pick-body { max-width: 980px; margin: 0 auto; padding: 16px 14px 34px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.seg { display: inline-flex; padding: 6px; gap: 6px; border-radius: 22px; background: #fff; box-shadow: 0 4px 0 #d8c9a6; }
.seg button { min-width: 130px; min-height: 52px; border: 0; border-radius: 16px; background: transparent; font-size: 21px; font-weight: 600; cursor: pointer; }
.seg button[aria-selected="true"] { background: linear-gradient(180deg, #ffd969, var(--honey)); box-shadow: inset 0 -3px 0 var(--honey-d); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; }
.hcard { position: relative; display: flex; flex-direction: column; padding: 0; border: 5px solid #fff; border-radius: 22px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 0 6px 0 #d8c9a6, 0 10px 24px rgba(58, 42, 18, .15); transition: transform .15s; }
.hcard img { display: block; width: 100%; aspect-ratio: 360 / 565; object-fit: cover; object-position: top; }
.hc-txt { display: block; padding: 8px 10px 12px; text-align: center; }
.hc-name { display: block; font-size: 22px; font-weight: 700; color: #7a4a05; }
.hc-say { display: block; font-size: 16px; font-weight: 500; line-height: 1.25; }
.hcard.on { border-color: var(--honey); transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 5px rgba(247, 185, 40, .45), 0 12px 0 var(--honey-d), 0 18px 34px rgba(217, 142, 4, .35); }
.hcard.on::after { content: "✓"; position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-size: 24px; font-weight: 700; box-shadow: 0 3px 0 #3f8f35; }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .hcard { flex-direction: row; align-items: center; }
  .hcard img { width: 38%; aspect-ratio: 3 / 4; }
  .hc-txt { padding: 10px 14px; text-align: left; }
  .hc-name { font-size: 24px; }
  .hc-say { font-size: 18px; }
}

/* ---------- map ---------- */
#map { background: #f6e3ad; }
.map-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 12px 26px; min-height: calc(100% - 64px); }
.map-wrap { width: 100%; max-width: 560px; }
#mapSvg { display: block; width: 100%; height: auto; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); border-radius: 26px; background: #f6e3ad; box-shadow: 0 0 0 6px #fff, 0 12px 30px rgba(58, 42, 18, .22); }
.map-side { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; }
.buzz-say { display: flex; align-items: center; gap: 10px; }
.trail-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tl { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 12px 6px 8px; border: 0; border-radius: 18px; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 4px 0 #e5d4ab; }
.tl:active { transform: translateY(3px); box-shadow: 0 1px 0 #e5d4ab; }
.tl-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #cfc6b4; color: #fff; font-weight: 700; font-size: 18px; }
.tl.done .tl-n { background: var(--green); } .tl.now .tl-n { background: var(--honey); color: #5a3604; }
.tl-ico { flex: none; font-size: 26px; }
.tl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.tl-t b { font-size: 18px; } .tl-t small { font-size: 14.5px; color: #8a7a5a; }
.tl-s { flex: none; font-size: 20px; }
.tl.now { background: #fff3c4; box-shadow: 0 4px 0 #e8cf7f, 0 0 0 3px rgba(247, 185, 40, .5); }
.tl.locked { opacity: .7; }
.buzz-say p, .bs-txt { position: relative; margin: 0; padding: 12px 16px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 #e5d4ab; font-size: 18px; font-weight: 600; line-height: 1.35; }
.buzz-say p::before, .bs-txt::before { content: ""; position: absolute; left: -10px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-left: 0; border-right-color: #fff; }
.trail { fill: none; stroke: #a0582c; stroke-width: 5; stroke-dasharray: 2 13; stroke-linecap: round; opacity: .75; }
.sea-lbl, .water-lbl, .inset-lbl, .pin-lbl { font-family: var(--f); font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.sea-lbl { font-size: 22px; fill: #1f6fb0; stroke: none; opacity: .75; }
.water-lbl { font-size: 15px; fill: #1f6fb0; }
.inset-lbl { font-size: 20px; fill: #7a4a05; }
.deco { font-size: 30px; text-anchor: middle; }
.pin { cursor: pointer; }
.pin-c { fill: #cfc6b4; stroke: #fff; stroke-width: 4; }
.pin-n { font-family: var(--f); font-weight: 700; font-size: 20px; fill: #fff; text-anchor: middle; pointer-events: none; }
.pin.sm .pin-n { font-size: 16px; }
.pin-lbl { font-size: 16px; fill: var(--ink); pointer-events: none; }
.pin-lbl.sm { font-size: 12.5px; }
.pin.done .pin-c { fill: var(--green); }
.pin.now .pin-c { fill: var(--honey); stroke: #fff; }
.pin.now .pin-n { fill: #5a3604; }
.pin.locked { opacity: .82; }
.halo { animation: halo 1.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes halo { 50% { transform: scale(1.25); opacity: .55; } }
.pin.now .pin-c { animation: pinpop 1.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pinpop { 50% { transform: scale(1.12); } }
.me-b { animation: hop 1.1s ease-in-out infinite; }
@keyframes hop { 50% { transform: translateY(-8px); } }
@media (min-aspect-ratio: 1/1) and (min-width: 700px) {
  .map-body { flex-direction: row; justify-content: center; align-items: center; gap: 26px; }
  .map-wrap { width: auto; max-width: none; }
  #mapSvg { width: auto; height: calc(100vh - 100px); height: calc(100dvh - 100px); max-height: none; }
  .map-side { max-width: 340px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; padding: 4px 4px 10px; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .map-body { flex-direction: row; justify-content: center; align-items: center; gap: 16px; }
  .map-wrap { width: auto; }
  #mapSvg { width: auto; height: calc(100vh - 86px); height: calc(100dvh - 86px); max-height: none; }
  .map-side { max-width: 300px; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; padding: 4px 4px 10px; }
  .buzz-say p { font-size: 16px; }
}

/* ---------- a stop ---------- */
#stop { background: linear-gradient(180deg, #bfe6ff 0, #fff4d6 340px, #fff4d6); }
.steps { display: flex; justify-content: center; gap: 6px; margin: 10px auto 0; padding: 0 10px; list-style: none; max-width: 760px; }
.steps li { flex: 1; padding: 7px 4px; border-radius: 14px; background: rgba(255, 255, 255, .6); text-align: center; font-size: 15px; font-weight: 600; color: #8a7a5a; }
.steps li.now { background: var(--honey); color: #4a2c02; box-shadow: 0 3px 0 var(--honey-d); }
.steps li.past { background: #d9f2cf; color: #2f6f28; }
.stop-body { max-width: 760px; margin: 0 auto; padding: 12px 12px 30px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 26px; background: var(--card); box-shadow: 0 6px 0 #ead9b0, 0 14px 30px rgba(58, 42, 18, .12); animation: card-in .35s ease-out; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.card .next { align-self: center; }
.photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #e9dcc0; }
.photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo figcaption { padding: 8px 12px 10px; background: #fff3d6; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.stop-tag { position: absolute; left: 10px; top: 10px; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .92); font-weight: 700; font-size: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.buzz-say.big { align-items: flex-start; }
.buzz-say.big .buzz { margin-top: 6px; }
.bs-txt p { margin: 0 0 6px; padding: 0; background: none; box-shadow: none; font-size: 19px; }
.bs-txt p::before { display: none; }
.bs-txt .btn { margin-top: 4px; }
.verse { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 18px; background: #eaf6ff; border: 3px dashed #8fc9ef; }
.verse span { font-size: 26px; line-height: 1; }
.verse p { margin: 0; font-size: 18px; font-weight: 600; font-style: italic; color: #1f4f78; line-height: 1.35; }
.verse cite { display: block; margin-top: 4px; font-style: normal; font-size: 15px; color: #2f8fd8; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 12px; border: 0; border-radius: 18px; background: linear-gradient(180deg, #fff6c9, #ffe9a3); text-align: left; cursor: pointer; box-shadow: 0 4px 0 #e8cf7f; }
.fact b { font-size: 17px; }
.f-hint { font-size: 15px; color: #8a6a22; }
.f-txt { display: none; font-size: 16.5px; font-weight: 500; line-height: 1.35; }
.fact.open { background: linear-gradient(180deg, #e7f8df, #cdeebf); box-shadow: 0 4px 0 #9fd28c; animation: flip .4s ease-out; }
.fact.open .f-hint { display: none; } .fact.open .f-txt { display: block; }
@keyframes flip { from { transform: rotateY(90deg); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact { min-height: 0; } }

/* the tap-game stage */
.prompt { font-size: 19px; }
.stage { --u: 6px; position: relative; width: 100%; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 22px; border: 5px solid #fff; box-shadow: 0 8px 22px rgba(58, 42, 18, .2); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
@media (max-width: 520px) { .stage { aspect-ratio: 1 / 1.08; } }
.count { position: absolute; z-index: 6; left: 10px; top: 10px; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .92); font-size: 20px; font-weight: 700; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.25); } }
.decor { position: absolute; z-index: 1; transform: translate(-50%, -50%); line-height: 1; pointer-events: none; }
.decor.front { z-index: 3; }
.tg { position: absolute; z-index: 2; display: grid; place-items: center; min-width: 56px; min-height: 56px; padding: 6px; border: 0; background: none; line-height: 1; cursor: pointer; transform: translate(-50%, -50%); touch-action: manipulation; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.tg.flip { transform: translate(-50%, -50%) scaleX(-1); }
.tg.peek { animation: peek 3.2s ease-in-out infinite; }
@keyframes peek { 0%, 70%, 100% { transform: translate(-50%, -50%) rotate(0); } 78% { transform: translate(-50%, -58%) rotate(-10deg); } 86% { transform: translate(-50%, -54%) rotate(8deg); } }
.tg.hint { animation: hint 1s ease-in-out infinite; filter: drop-shadow(0 0 10px #fff6a0) drop-shadow(0 0 18px #ffd23f); }
@keyframes hint { 50% { transform: translate(-50%, -50%) scale(1.2); } }
.tg.got { animation: got .45s ease-out forwards; pointer-events: none; }
@keyframes got { 40% { transform: translate(-50%, -50%) scale(1.45); } 100% { transform: translate(-50%, -80%) scale(.4); opacity: 0; } }
.tg.plate.got { animation: none; opacity: 1; }
.tg.plate i { position: absolute; left: 50%; top: 42%; font-style: normal; font-size: .62em; transform: translate(-50%, -50%); animation: drop .35s ease-out; }
@keyframes drop { from { transform: translate(-50%, -160%); opacity: 0; } }
.tg.pop { animation: rise .3s ease-out; }
.tg.pop.down { transition: transform .3s, opacity .3s; transform: translate(-50%, 0) scale(.5); opacity: 0; }
@keyframes rise { from { transform: translate(-50%, 20%) scale(.3); opacity: 0; } }
.tg.bye { opacity: 0; transition: opacity .4s; pointer-events: none; }
.spark { position: absolute; z-index: 7; font-size: 34px; transform: translate(-50%, -50%); pointer-events: none; animation: spark .9s ease-out forwards; }
@keyframes spark { to { transform: translate(-50%, -160%) scale(1.5); opacity: 0; } }
.bubble { position: absolute; z-index: 7; padding: 6px 12px; border-radius: 16px; background: #fff; font-size: 20px; font-weight: 700; color: #2f6f28; transform: translate(-50%, -50%); box-shadow: 0 3px 0 rgba(0, 0, 0, .15); pointer-events: none; animation: spark 1.1s ease-out forwards; white-space: nowrap; }
.done-msg { margin: 0; padding: 12px 14px; border-radius: 18px; background: #e7f8df; color: #2f6f28; font-size: 20px; font-weight: 700; text-align: center; }
.after { position: absolute; z-index: 5; left: 50%; top: 24%; font-size: calc(var(--u) * 22); transform: translate(-50%, -50%); filter: drop-shadow(0 0 18px #fff7b0) drop-shadow(0 0 34px #ffd23f); animation: shine 2.2s ease-in-out infinite, after-in .8s ease-out; pointer-events: none; }
.after.a-jordan { animation: dove 2.4s ease-out forwards; }
@keyframes after-in { from { transform: translate(-50%, -50%) scale(.2); opacity: 0; } }
@keyframes shine { 50% { filter: drop-shadow(0 0 28px #fff7b0) drop-shadow(0 0 50px #ffd23f); } }
@keyframes dove { from { top: -20%; opacity: 0; } 60% { opacity: 1; } to { top: 30%; } }
.stage.won::after { content: ""; position: absolute; inset: 0; z-index: 4; background: radial-gradient(circle at 50% 30%, rgba(255, 246, 180, .55), transparent 60%); pointer-events: none; animation: card-in .6s ease-out; }

/* scenes */
.scene-naz { background: linear-gradient(180deg, #bfe6ff 0, #e8f7ff 52%, #b7e08e 52%, #8fcf6a 100%); }
.scene-beth { background: radial-gradient(circle at 70% 18%, rgba(255, 246, 180, .25), transparent 30%), linear-gradient(180deg, #18224f 0, #2b3a7a 50%, #2f5a3a 50%, #23452c 100%); }
.scene-temple { background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, .55) 9% 13%, rgba(190, 150, 90, .35) 13% 14%, transparent 14% 25%), linear-gradient(180deg, #f6e6c2 0, #ecd4a0 68%, #d9b977 68%, #cfab66 100%); }
.scene-jordan { background: linear-gradient(180deg, #bfe6ff 0, #e8f7ff 38%, #9fd27c 38%, #86c463 100%); }
.river { position: absolute; left: -5%; right: -5%; top: 56%; height: 24%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 20px, transparent 20px 60px), linear-gradient(180deg, #6cc6f0, #3a9fdc); border-radius: 50% / 22%; animation: flow 4s linear infinite; }
@keyframes flow { to { background-position: 120px 0, 0 0; } }
.scene-galilee { background: linear-gradient(180deg, #ffcf8f 0, #ffe7c2 16%, #6ec8f2 22%, #2f8fd8 100%); }
.scene-olives { background: radial-gradient(ellipse 60% 40% at 50% 100%, #f2dcae 0 60%, transparent 61%), linear-gradient(180deg, #bfe6ff 0, #e8f7ff 40%, #cfe3a0 40%, #b6d27f 100%); }
.scene-upper { background: linear-gradient(180deg, #f6e0b8 0, #e9c992 100%); }
.table { position: absolute; left: 22%; right: 22%; top: 40%; height: 26%; border-radius: 24px; background: linear-gradient(180deg, #b8763c, #8f5528); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .15), 0 10px 0 rgba(0, 0, 0, .1); }
.scene-geth { background: radial-gradient(circle at 84% 12%, rgba(255, 246, 200, .35), transparent 22%), linear-gradient(180deg, #0f1a3d 0, #22336b 58%, #1f3f2a 58%, #17311f 100%); }
.scene-golg { background: linear-gradient(180deg, #ffd6c2 0, #ffe9c4 62%, #c8e3a0 62%, #b9d98f 100%); }
.scene-golg .cross { position: absolute; left: 50%; top: 12%; width: 22%; transform: translateX(-50%); }
.scene-golg .hill { position: absolute; left: 0; right: 0; bottom: 36%; width: 100%; height: 12%; }
.scene-tomb { background: linear-gradient(180deg, #bfe6ff 0, #e8f7ff 46%, #9fd27c 46%, #86c463 100%); }
.big-tg { left: 50%; top: 58%; width: 44%; min-width: 0; }
.big-tg svg { width: 100%; height: auto; display: block; }
.big-tg.look-jar { width: 34%; top: 60%; }
.big-tg.look-stone { width: 76%; top: 62%; }
.big-tg.look-heart { top: 60%; width: auto; }
.heart { display: block; font-size: calc(var(--u) * 26); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 0 calc(var(--glow, 0) * 30px) #ff7a8a); }
.big-tg.boing { animation: boing .3s; }
@keyframes boing { 40% { transform: translate(-50%, -50%) scale(.92); } }
.water { transition: y .35s ease-out; }
.stone { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.light { opacity: 0; transition: opacity .8s; }
.big-tg.open .light { opacity: 1; filter: drop-shadow(0 0 20px #fff6a0); }
.bucket { z-index: 3; transform: translate(-50%, -50%) rotate(-20deg); transition: transform .2s; }
.bucket.pour { animation: pour .5s; }
@keyframes pour { 50% { transform: translate(-50%, -50%) rotate(-70deg); } }

/* quiz */
.answers { display: grid; gap: 12px; }
.ans { min-height: 64px; padding: 12px 18px; border: 0; border-radius: 20px; background: #fff; text-align: left; font-size: 21px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 0 #d8c9a6, 0 8px 18px rgba(58, 42, 18, .1); }
.ans:active { transform: translateY(3px); box-shadow: 0 2px 0 #d8c9a6; }
.ans.ok { background: #d9f6cd; box-shadow: 0 5px 0 #6fbf5f; }
.ans.ok::after { content: " ✅"; }
.ans.no { animation: shake .45s; background: #ffe2dc; box-shadow: 0 5px 0 #e8a89f; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.ans.dim { opacity: .45; }
.why { margin: 0; padding: 12px 14px; border-radius: 18px; background: #e7f8df; color: #2f6f28; font-size: 18.5px; font-weight: 600; line-height: 1.35; }

/* stamp */
.card.stamp { align-items: center; text-align: center; }
.card.stamp h2 { margin: 0; font-size: clamp(28px, 6vw, 40px); color: #7a4a05; }
.st-msg { margin: 0; font-size: 19px; }
.coins { margin: 0; padding: 8px 16px; border-radius: 16px; background: #eaf6ff; color: #1f6fb0; font-size: 20px; font-weight: 700; }
.stamp-drop { width: min(62vw, 230px); animation: stampin .55s cubic-bezier(.2, 1.4, .4, 1) .2s both; }
@keyframes stampin { from { transform: scale(2.4) rotate(-22deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.stamp-svg { width: 100%; height: auto; display: block; }
.st-ring { fill: #fff3f0; stroke: #d6483d; stroke-width: 7; }
.st-ring2 { fill: none; stroke: #d6483d; stroke-width: 3; stroke-dasharray: 5 5; }
.st-arc { font-family: var(--f); font-weight: 700; font-size: 15px; fill: #d6483d; letter-spacing: .06em; }
.st-arc.sm { font-size: 11px; }
.st-ico { font-size: 46px; text-anchor: middle; }
.stamp-svg:not(.on) .st-ring { fill: #f1ece2; stroke: #c9bfae; } .stamp-svg:not(.on) .st-ring2 { stroke: #c9bfae; } .stamp-svg:not(.on) .st-arc { fill: #b3a891; } .stamp-svg:not(.on) .st-ico { opacity: .3; filter: grayscale(1); }

/* passport */
#passport { background: linear-gradient(180deg, #bfe6ff, #fff4d6); }
.pass-body { max-width: 900px; margin: 0 auto; padding: 14px 12px 34px; }
.pass-card { padding: 16px; border-radius: 26px; background: linear-gradient(180deg, #2f5aa0, #23467f); box-shadow: 0 8px 0 #18325c, 0 16px 34px rgba(24, 50, 92, .3); }
.pass-who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; }
.pass-who b { display: block; font-size: 22px; }
.pass-who small { font-size: 16px; color: #cfe3ff; }
.pass-face { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 4px solid var(--honey); background: #fff; font-size: 34px; }
.pass-face img { width: 100%; height: 100%; object-fit: cover; }
.stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 18px; background: repeating-linear-gradient(0deg, #fffaf0 0 30px, #f6eedd 30px 31px); }
.st-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: #5a4a30; }
.st-cell .stamp-svg { transform: rotate(-6deg); }
.st-cell:nth-child(2n) .stamp-svg { transform: rotate(5deg); }
@media (max-width: 640px) { .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-cell { font-size: 15px; } }

/* the end */
#finale { background: linear-gradient(180deg, #ffd27a, #fff1c9); }
.sky.gold .sun { left: 50%; right: auto; top: 10%; width: 220px; height: 220px; transform: translateX(-50%); }
.finale-wrap { position: relative; z-index: 2; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 16px; text-align: center; overflow: hidden; }
.rays { position: absolute; left: 50%; top: 32%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; background: repeating-conic-gradient(rgba(255, 255, 255, .35) 0 6deg, transparent 6deg 18deg); border-radius: 50%; animation: spin 40s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }
.finale-h { margin: 0; font-size: clamp(48px, 11vw, 92px); font-weight: 700; color: #fff; -webkit-text-stroke: 4px #c9820a; paint-order: stroke fill; text-shadow: 0 6px 0 #a96a06, 0 0 40px rgba(255, 255, 255, .8); }
.finale-p { max-width: 560px; margin: 0; font-size: clamp(19px, 3.6vw, 24px); font-weight: 600; color: #6a3f04; }
.finale-hero img { width: min(42vw, 200px); border-radius: 22px; border: 6px solid #fff; box-shadow: 0 10px 30px rgba(169, 106, 6, .35); }
.finale-badge { margin: 0; padding: 8px 20px; border-radius: 20px; background: #fff; font-size: 22px; font-weight: 700; color: #7a4a05; box-shadow: 0 5px 0 #e8c46a; }

/* confetti + toast */
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti span { position: absolute; top: -8vh; animation: fall 2.8s ease-in forwards; }
@keyframes fall { to { transform: translate(var(--dx, 0), 115vh) rotate(540deg); } }
.toast { position: fixed; z-index: 95; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 18px; background: #3a2a12; color: #fff; font-size: 18px; font-weight: 600; text-align: center; transform: translate(-50%, 220%); visibility: hidden; transition: transform .3s, visibility 0s .3s; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .3s; }

@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .title-wrap { padding: 46px 16px 20px; gap: 8px; }
  .logo-top { font-size: clamp(40px, 13vh, 72px); -webkit-text-stroke-width: 3px; }
  .logo-kids { font-size: clamp(26px, 8vh, 44px); }
  .drips { top: calc(clamp(40px, 13vh, 72px) * .82); width: min(52vw, 420px); }
  .tagline { font-size: 18px; }
  .btn.big { min-height: 52px; font-size: 19px; }
  .heroes-row img { width: 44px; height: 44px; }
  .buzz-fly { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .buzz-fly { display: none; }
}
