/* ==========================================================================
   Gopa's birthday story · daisy meadow theme
   ========================================================================== */
:root {
  --ink: #4b3a46;
  --muted: #8c7884;
  --pink: #ff8fab;
  --pink-deep: #e8628f;
  --pink-shadow: #e0658a;
  --yellow: #ffcf3f;
  --sun: #ffb703;
  --leaf: #7cb66b;
  --leaf-deep: #4f8f45;
  --cream: #fffaf0;
  --card: rgba(255, 255, 255, .9);
  --shadow: 0 10px 30px rgba(120, 80, 60, .14);
  --font: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --script: 'Pacifico', 'Brush Script MT', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #dff2ff 0%, #fff6e3 52%, #e4f5d4 100%);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; touch-action: manipulation; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
/* Scrolling still works by touch / wheel; the bars are just hidden. */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
s { opacity: .65; }

/* ---------- Meadow background ---------- */
.meadow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.meadow::before {
  content: ""; position: absolute; inset: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='%23ffffff' stroke='%23f1e3cf' stroke-width='.6'%3E%3Ccircle cx='22' cy='15' r='4'/%3E%3Ccircle cx='28.06' cy='18.5' r='4'/%3E%3Ccircle cx='28.06' cy='25.5' r='4'/%3E%3Ccircle cx='22' cy='29' r='4'/%3E%3Ccircle cx='15.94' cy='25.5' r='4'/%3E%3Ccircle cx='15.94' cy='18.5' r='4'/%3E%3C/g%3E%3Ccircle cx='22' cy='22' r='3.6' fill='%23ffcf3f'/%3E%3Cg fill='%23ffffff' stroke='%23f1e3cf' stroke-width='.5'%3E%3Ccircle cx='67' cy='62.5' r='3'/%3E%3Ccircle cx='71.33' cy='65' r='3'/%3E%3Ccircle cx='71.33' cy='70' r='3'/%3E%3Ccircle cx='67' cy='72.5' r='3'/%3E%3Ccircle cx='62.67' cy='70' r='3'/%3E%3Ccircle cx='62.67' cy='65' r='3'/%3E%3C/g%3E%3Ccircle cx='67' cy='67.5' r='2.6' fill='%23ffcf3f'/%3E%3C/svg%3E");
  background-size: 90px 90px;
}
.meadow__sun {
  position: absolute; top: -90px; right: -70px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, #fff6c2 0%, #ffe27a 40%, rgba(255, 226, 122, 0) 70%);
  animation: glow 6s ease-in-out infinite;
}
.meadow__cloud {
  position: absolute; width: 140px; height: 44px; background: #fff; border-radius: 44px; opacity: .9;
  box-shadow: 30px -18px 0 6px #fff, 70px -6px 0 0 #fff;
  animation: drift 60s linear infinite;
}
.meadow__cloud--a { top: 9%; left: -200px; }
.meadow__cloud--b { top: 22%; left: -200px; transform: scale(.7); animation-duration: 85s; animation-delay: -40s; }
.meadow__hill { position: absolute; left: -10%; right: -10%; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.meadow__hill--back { height: 26vh; background: #c6e8ad; left: -30%; right: 20%; }
.meadow__hill--front { height: 18vh; background: #aedd8f; left: 25%; right: -35%; }
.meadow__daisies { position: absolute; inset: 0; }
.bg-daisy {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  filter: drop-shadow(0 3px 4px rgba(120, 90, 50, .15));
  animation: sway var(--d) ease-in-out infinite alternate, spin calc(var(--d) * 9) linear infinite;
}
.petal {
  position: absolute; top: -20px; left: var(--x); width: 12px; height: 18px;
  background: #fff; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset 0 -2px 0 #f2e6d3; opacity: .9;
  animation: fall var(--d) linear infinite; animation-delay: var(--delay);
}

/* ---------- App shell (phone style) ---------- */
.app {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px; height: 100vh; height: 100dvh;
  margin: 0 auto; overflow: hidden;
}
@media (min-width: 600px) {
  body { display: flex; align-items: center; justify-content: center; }
  .app {
    height: min(880px, calc(100dvh - 40px));
    border-radius: 38px;
    background: rgba(255, 252, 244, .55);
    backdrop-filter: blur(3px);
    box-shadow: 0 0 0 10px #fff, 0 0 0 13px #f2e3cf, 0 30px 80px rgba(90, 60, 40, .25);
  }
}

.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(26px) scale(.985);
  transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s;
}
.screen.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .55s ease, transform .55s ease, visibility 0s;
}
.app.is-instant .screen { transition: none; }
.screen__inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 28px 22px; text-align: center; overflow-y: auto; position: relative;
}
.screen__inner--top { flex: 0 0 auto; justify-content: flex-start; padding-top: 48px; pointer-events: none; z-index: 2; }
.screen__scroll { flex: 1; overflow-y: auto; padding: 22px 18px 26px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.screen__footer {
  padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; position: relative; z-index: 3;
  background: linear-gradient(to top, rgba(255, 250, 240, .97) 55%, rgba(255, 250, 240, 0));
}
.screen__footer--clear { background: none; margin-top: auto; }

.test-reset {
  position: absolute; top: 10px; right: 10px; z-index: 50;
  border: 1px dashed #e7b2c2; background: rgba(255, 255, 255, .85); color: #c05a7c;
  border-radius: 999px; padding: 4px 10px; font-size: .75rem; cursor: pointer;
}

/* ---------- Typography ---------- */
.eyebrow { margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.script-title {
  margin: 0; font-family: var(--script); font-weight: 400; line-height: 1.25;
  font-size: clamp(2.3rem, 11vw, 3.2rem); color: #ff7aa2;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(255, 207, 63, .5);
}
.script-title--xl { font-size: clamp(2.1rem, 10.5vw, 3rem); }
.title { margin: 6px 0 0; font-size: 1.6rem; font-weight: 700; }
.mega { margin: 0; font-size: clamp(3rem, 16vw, 4.2rem); font-weight: 700; color: var(--pink-deep); text-shadow: 4px 4px 0 #fff3c4; animation: pop-in .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.lead { margin: 0; font-size: 1.08rem; line-height: 1.5; max-width: 330px; }
.muted { margin: 0; color: var(--muted); }
.center { text-align: center; }
.pill { display: inline-block; min-width: 30px; padding: 2px 10px; border-radius: 999px; background: #fff; color: var(--pink-deep); font-weight: 700; box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn--primary { color: #fff; background: linear-gradient(135deg, #ffa1b8, #ff7aa2); box-shadow: 0 7px 0 var(--pink-shadow), 0 14px 24px rgba(240, 98, 146, .3); }
.btn--primary:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 var(--pink-shadow), 0 6px 12px rgba(240, 98, 146, .3); }
.btn--secondary { color: #8a5a00; background: #fff1b8; box-shadow: 0 6px 0 #f2c94c; }
.btn--secondary:active { transform: translateY(4px); box-shadow: 0 2px 0 #f2c94c; }
.btn--ghost { background: rgba(255, 255, 255, .8); border: 2px dashed #f3b5c6; color: #c05a7c; padding: 11px 20px; margin-top: 6px; }
.btn--block { width: 100%; }
.btn--whatsapp { color: #fff; background: #25d366; box-shadow: 0 7px 0 #1a9e4b, 0 14px 24px rgba(37, 211, 102, .3); margin-top: 6px; }
.btn--whatsapp:active { transform: translateY(5px); box-shadow: 0 2px 0 #1a9e4b; }
.is-shy { animation: wiggle .5s ease; }

/* ---------- Critters (animated cartoons) ---------- */
.critter { width: 150px; height: auto; overflow: visible; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(120, 80, 60, .18)); }
.critter--lg { width: min(180px, 46vw); }
.critter--md { width: 130px; }
.critter--sm { width: 86px; }
.critter__eye { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
.critter__ear--l, .critter__ear--r { transform-box: fill-box; transform-origin: 50% 100%; }
.critter__ear--l { animation: ear-l 3s ease-in-out infinite; }
.critter__ear--r { animation: ear-r 3s ease-in-out infinite; }
.critter__paw--wave { transform-box: fill-box; transform-origin: 50% 100%; animation: wave .8s ease-in-out infinite alternate; }
.critter__paw--late { animation-delay: -.4s; }
.critter__heart { transform-box: fill-box; transform-origin: center; animation: beat 1.1s ease-in-out infinite; }
.critter__hat { transform-box: fill-box; transform-origin: 50% 100%; animation: tilt 2.6s ease-in-out infinite; }

/* ---------- 1 · Countdown ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 360px; margin: 10px 0 2px; }
.countdown__cell {
  position: relative; background: rgba(255, 255, 255, .9); border-radius: 20px; padding: 14px 4px 9px;
  box-shadow: var(--shadow), inset 0 -5px 0 #ffe7a8;
}
.countdown__cell::before { content: "✿"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); color: var(--yellow); font-size: 18px; }
.countdown__num { display: block; font-size: clamp(1.6rem, 8vw, 2.2rem); font-weight: 700; color: var(--pink-deep); font-variant-numeric: tabular-nums; }
.countdown__num.tick { animation: tick .45s ease; }
.countdown__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.countdown__date { margin: 4px 0 0; font-weight: 600; color: #b07a00; background: #fff6d6; padding: 4px 14px; border-radius: 999px; font-size: .9rem; }

/* ---------- 2 · Balloons ---------- */
.balloon-sky { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.balloon {
  position: absolute; bottom: -170px; left: var(--x); width: var(--w); height: calc(var(--w) * 1.22);
  padding: 0; border: 0; background: none; cursor: pointer;
  animation: rise var(--d) linear forwards;
}
.balloon__body {
  position: absolute; inset: 0; border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .8) 0 7%, transparent 8%), radial-gradient(circle at 40% 35%, var(--c1), var(--c2) 75%);
  box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .06);
}
.balloon__body::before { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 9px solid var(--c2); border-top: 0; }
.balloon__body::after { content: ""; position: absolute; left: 50%; top: calc(100% + 8px); width: 2px; height: 90px; background: linear-gradient(#cdb0bc, transparent); }
.balloon.is-popped .balloon__body { animation: balloon-pop .28s ease-out forwards; }
.spark { position: fixed; width: 9px; height: 9px; border-radius: 50%; background: var(--c); pointer-events: none; animation: spark .6s ease-out forwards; }

/* ---------- 3 · Passcode (calculator keypad) ---------- */
.calc {
  width: 100%; max-width: 310px; margin-top: 4px; padding: 16px; border-radius: 30px;
  background: #fffdf8; box-shadow: var(--shadow), inset 0 0 0 3px #fbe3ea;
}
.calc__display {
  display: flex; justify-content: center; gap: 18px; padding: 18px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #fff0f5, #ffe1ec); box-shadow: inset 0 3px 8px rgba(200, 100, 140, .18);
}
.pin__dot { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #f39ab5; transition: transform .2s, background .2s; }
.pin__dot.is-filled { background: #ff7aa2; border-color: #ff7aa2; transform: scale(1.18); }
.calc.is-wrong { animation: shake .45s; }
.calc.is-wrong .pin__dot { border-color: #e05a5a; }
.calc.is-right .pin__dot { background: #7cc67a; border-color: #7cc67a; }
.pin__msg { min-height: 1.4em; margin: 8px 0; font-size: .9rem; color: var(--pink-deep); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.key {
  height: 60px; border: 0; border-radius: 20px; cursor: pointer;
  background: #fff; color: #6b4a5a; font-size: 1.6rem; font-weight: 600;
  box-shadow: 0 5px 0 #f3d6df, 0 8px 14px rgba(200, 120, 150, .14);
  transition: transform .08s, box-shadow .08s; user-select: none;
}
.key:active, .key.is-pressed { transform: translateY(4px); box-shadow: 0 1px 0 #f3d6df; }
.key--fn { background: #fff4cc; color: #b07a00; box-shadow: 0 5px 0 #f2d680; }
.key--ok { background: var(--pink); color: #fff; box-shadow: 0 5px 0 var(--pink-shadow); }

/* ---------- 4 · Yeah ---------- */
.rays {
  position: absolute; top: 50%; left: 50%; width: 680px; height: 680px; margin: -400px 0 0 -340px; z-index: -1;
  background: repeating-conic-gradient(rgba(255, 207, 63, .22) 0 10deg, transparent 10deg 20deg);
  border-radius: 50%; animation: spin 30s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%); mask: radial-gradient(circle, #000 20%, transparent 65%);
}

/* ---------- 5 · Wish ---------- */
.wish-hero { position: relative; text-align: center; padding: 8px 0 4px; }
.deco-daisy { position: absolute; width: 52px; height: 52px; animation: spin 18s linear infinite; }
.deco-daisy--a { top: 0; left: 0; }
.deco-daisy--b { top: 46px; right: 2px; width: 38px; height: 38px; animation-direction: reverse; }
.name-ribbon {
  display: inline-block; margin: 6px 0 0; padding: 6px 26px; border-radius: 999px;
  background: var(--yellow); color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: .05em;
  box-shadow: 0 6px 0 #f0b400; text-shadow: 0 2px 0 rgba(176, 122, 0, .4);
}
.wish-card {
  display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: center;
  margin: 22px 0 18px; padding: 18px 14px; border-radius: 26px;
  background: var(--card); box-shadow: var(--shadow); border: 2px solid #fff;
}
.daisy-frame { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.daisy-frame__petals { position: absolute; inset: -14%; width: 128%; height: 128%; animation: spin 40s linear infinite; filter: drop-shadow(0 4px 6px rgba(120, 90, 50, .15)); }
.daisy-frame img { position: relative; width: 74%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--yellow); box-shadow: 0 0 0 4px #fff; }
.wish-card__msg p { margin: 0 0 8px; font-size: .93rem; line-height: 1.5; }
.wish-card__msg p:first-child { font-weight: 600; color: var(--pink-deep); }
.sign { font-family: var(--script); color: var(--pink-deep); font-size: .95rem !important; }
.section-title { margin: 6px 0 10px; text-align: center; font-size: 1.1rem; color: #a0652a; }
.bouquet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 14px; padding: 4px 2px 8px; }
.bloom {
  display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: zoom-in;
  transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.45s);
}
.bouquet .bloom:nth-child(even) { margin-top: 36px; }
.bloom__head { position: relative; display: grid; place-items: center; width: 100%; max-width: 165px; aspect-ratio: 1; }
.bloom__head svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 32s linear infinite; }
.bloom__head img { position: relative; width: 47%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--ring, #5a3317); }
.bloom__stem { position: relative; width: 6px; height: 40px; margin-top: -10px; border-radius: 3px; background: linear-gradient(#6fae5b, var(--leaf-deep)); }
.bloom__stem::before, .bloom__stem::after { content: ""; position: absolute; top: 14px; width: 24px; height: 12px; background: var(--leaf); border-radius: 0 100% 0 100%; }
.bloom__stem::before { left: 5px; }
.bloom__stem::after { right: 5px; transform: scaleX(-1); }
.bloom__label { margin-top: 2px; padding: 2px 12px; border-radius: 999px; background: #fff6d6; color: #a0652a; font-weight: 600; font-size: .8rem; }

/* ---------- 6 · Museum ---------- */
.walk { position: absolute; inset: 0; display: flex; flex-direction: column; background: #2f2530; overflow: hidden; }
.walk__hud { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px 58px; color: #fff6e0; z-index: 3; }
.walk__title { font-family: var(--script); font-size: 1.1rem; white-space: nowrap; }
.walk__progress { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.walk__bar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--pink)); }
.walk__viewport { position: relative; flex: 1; overflow: hidden; }
.walk__far { position: absolute; left: 0; width: 2400px; will-change: transform; }
.walk__world { position: absolute; top: 0; bottom: 0; left: 0; width: var(--world-w, 2600px); will-change: transform; }
.museum__wall {
  position: absolute; inset: 0 0 28% 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='%23ffffff' opacity='.55'%3E%3Ccircle cx='30' cy='25' r='3'/%3E%3Ccircle cx='34.3' cy='27.5' r='3'/%3E%3Ccircle cx='34.3' cy='32.5' r='3'/%3E%3Ccircle cx='30' cy='35' r='3'/%3E%3Ccircle cx='25.7' cy='32.5' r='3'/%3E%3Ccircle cx='25.7' cy='27.5' r='3'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='2.4' fill='%23ffcf3f' opacity='.7'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fde7da, #f6d6c4);
  box-shadow: inset 0 -16px 0 #e0bf9a, inset 0 -20px 0 #b88a63;
}
.museum__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .09) 0 2px, transparent 2px 120px), linear-gradient(180deg, #d39b69, #a6704a);
}
.walk__sign {
  position: absolute; left: 70px; top: 16%; width: 150px; padding: 12px 10px; text-align: center;
  background: #fffaf0; border-radius: 14px; border: 3px solid #e9c46a; box-shadow: 0 8px 16px rgba(60, 30, 10, .2);
  font-size: .82rem; line-height: 1.35;
}
.walk__sign b { display: block; font-family: var(--script); font-weight: 400; color: var(--pink-deep); font-size: 1rem; }
.walk__sign small { display: block; margin-top: 4px; color: var(--muted); }
.exhibit {
  position: absolute; top: 6%; left: var(--x); transform: translateX(-50%);
  width: clamp(118px, 34vw, 150px); margin: 0; display: flex; flex-direction: column; align-items: center;
}
.exhibit__light {
  position: absolute; top: -40px; left: 50%; width: 200%; height: 170%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 244, 196, .75), transparent 62%);
  opacity: .35; transition: opacity .4s;
}
.exhibit__frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 9px; border-radius: 6px;
  background: linear-gradient(135deg, #e9c46a, #c99a2e 40%, #f3d98b 60%, #b8860b);
  box-shadow: 0 12px 20px rgba(60, 30, 10, .35), inset 0 0 0 3px rgba(255, 255, 255, .35);
  transition: transform .35s ease;
}
.exhibit__frame img { width: 100%; height: 100%; object-fit: cover; border: 4px solid #fffaf0; }
.exhibit__plaque {
  margin-top: 10px; padding: 5px 9px; max-width: 115%; text-align: center; line-height: 1.3;
  font-size: .72rem; background: #fffaf0; border-radius: 6px; box-shadow: 0 3px 6px rgba(0, 0, 0, .15);
}
.exhibit__plaque b { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #b07a00; }
.exhibit__reactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; font-size: .75rem; }
.exhibit__reactions span { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .9); }
.exhibit.is-near .exhibit__light { opacity: 1; }
.exhibit.is-near .exhibit__frame { transform: scale(1.05) rotate(-1deg); }
.finish { position: absolute; bottom: 9%; left: var(--x); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 1; }
.finish__flag { width: 70px; height: 140px; overflow: visible; }
.finish__cloth { transform-box: fill-box; transform-origin: 0 50%; animation: flag 1.2s ease-in-out infinite alternate; }
.finish__label { margin-top: -6px; padding: 3px 10px; border-radius: 6px; background: #2f2530; color: #fff; font-weight: 700; letter-spacing: .14em; font-size: .75rem; }
.finish::after {
  content: ""; position: absolute; bottom: -18%; left: 50%; width: 22px; height: 120px; transform: translateX(-50%) skewX(-20deg); z-index: -1;
  background: repeating-linear-gradient(0deg, #fff 0 11px, #2f2530 11px 22px); opacity: .55;
}
.walk__avatar { position: absolute; bottom: 6%; left: 0; width: clamp(72px, 21vw, 92px); transform: translateX(calc(var(--ax, 140px) - 50%)); z-index: 2; }
.walk__avatar::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -4px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, .22); z-index: -1; }
.avatar-flip.is-left, .walk__flip.is-left { transform: scaleX(-1); }
.avatar { display: block; width: 100%; height: auto; overflow: visible; }
.avatar__leg, .avatar__arm { transform-box: fill-box; transform-origin: 50% 0; }
.avatar__eye { transform-box: fill-box; transform-origin: center; animation: blink 3.6s infinite; }
.is-walking .avatar { animation: walk-bob .24s ease-in-out infinite alternate; }
.is-walking .avatar__leg--front, .is-walking .avatar__arm--back { animation: swing-a .48s ease-in-out infinite alternate; }
.is-walking .avatar__leg--back, .is-walking .avatar__arm--front { animation: swing-b .48s ease-in-out infinite alternate; }
.react-bar {
  position: absolute; left: 50%; bottom: 108px; z-index: 4; display: flex; gap: 4px;
  padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .25s, transform .25s;
}
.react-bar.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.react-bar button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; font-size: 1.6rem; cursor: pointer; transition: transform .15s; }
.react-bar button:active { transform: scale(1.35); }
.float-emoji { position: absolute; z-index: 5; font-size: 1.9rem; pointer-events: none; animation: float-up 1.5s ease-out forwards; }
.walk__controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); background: #2f2530; z-index: 3; }
.pad {
  flex: 0 0 auto; width: 74px; height: 74px; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(#ffd166, var(--sun)); color: #6b3e00; font-size: 1.6rem;
  box-shadow: 0 6px 0 #c98600; user-select: none; -webkit-user-select: none; touch-action: none;
}
.pad.is-pressed { transform: translateY(4px); box-shadow: 0 2px 0 #c98600; }
.walk__hint { margin: 0; color: #fff6e0; opacity: .85; font-size: .85rem; text-align: center; }
.walk__done {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; color: #fff; background: rgba(47, 37, 48, .86); animation: fade-in .5s ease;
}
.walk__done .script-title { text-shadow: 3px 3px 0 rgba(0, 0, 0, .2); }

/* ---------- 7 · Shop + 8 · Checkout ---------- */
.screen__scroll--shop { padding-top: 0; }
.shopbar {
  position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between;
  margin: 0 -18px 14px; padding: 14px 18px; background: rgba(255, 250, 240, .95); backdrop-filter: blur(6px);
  box-shadow: 0 2px 0 #f6e4cf;
}
.shopbar__logo { font-weight: 700; color: var(--pink-deep); }
.shopbar__cart { position: relative; font-size: 1.3rem; }
.shopbar__cart i { position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink-deep); color: #fff; font: 700 .7rem/18px var(--font); text-align: center; }
.product { border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.product__media { position: relative; background: radial-gradient(circle at 50% 60%, #fff6c7, #ffe3ea); padding: 18px; }
.product__media img { width: 82%; margin: 0 auto; animation: bob 3s ease-in-out infinite; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--pink-deep); font-size: .75rem; font-weight: 700; box-shadow: var(--shadow); }
.critter--peek { position: absolute; right: -6px; bottom: -14px; width: 92px; }
.product__body { padding: 18px 18px 20px; }
.product__brand { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product__title { margin: 4px 0 6px; font-size: 1.45rem; }
.product__rating { color: #f5a700; font-size: .95rem; }
.product__rating span { color: var(--muted); font-size: .8rem; }
.product__price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0; }
.product__price b { font-size: 1.9rem; color: var(--ink); }
.product__price span { font-size: .8rem; color: var(--muted); }
.product__perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .92rem; }
.product__perks li { padding: 9px 12px; border-radius: 14px; background: #fff8e8; }
.stock { margin: 12px 0 0; font-size: .82rem; color: #d0503f; font-weight: 600; }

.steps { display: flex; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: step; }
.steps li { flex: 1; padding: 7px 4px; border-radius: 12px; text-align: center; font-size: .8rem; font-weight: 600; background: #fff; color: var(--muted); box-shadow: 0 2px 0 #f2e3cf; }
.steps li.is-done { background: #e3f5d3; color: var(--leaf-deep); }
.steps li.is-done::before { content: "✓ "; }
.steps li.is-current { background: #ffe3ea; color: var(--pink-deep); }
.card { margin-bottom: 14px; padding: 16px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.card__title { margin: 0 0 12px; font-size: 1.05rem; }
.field { position: relative; display: block; margin-bottom: 10px; }
.field span { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #f3dbe3; border-radius: 14px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); resize: none; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 143, 171, .2); }
.field input.is-invalid { border-color: #e05a5a; }
.field--locked input, .field--locked textarea { padding-right: 40px; background: #faf6f0; color: #6d5a66; border-style: dashed; cursor: not-allowed; }
.field__lock { position: absolute; right: 12px; bottom: 12px; font-style: normal; }
.hint { margin: -2px 0 12px; font-size: .8rem; color: var(--muted); }
.field__err { min-height: 1em; margin: 0; font-size: .82rem; color: #d0503f; }
.coupon { border: 2px dashed #ffcf3f; background: #fffbea; }
.coupon__ticket { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #ffe08a; }
.coupon__code { font-weight: 700; letter-spacing: .16em; color: #b07a00; }
.coupon__off { padding: 3px 10px; border-radius: 999px; background: var(--pink-deep); color: #fff; font-weight: 700; font-size: .8rem; }
.coupon__text { margin: 0 0 12px; font-size: .92rem; line-height: 1.45; }
.coupon__applied { margin: 0; padding: 10px 12px; border-radius: 14px; background: #e3f5d3; color: var(--leaf-deep); font-weight: 600; text-align: center; }
.coupon.is-applied { border-color: #7cc67a; background: #f3fbef; }
.coupon.just-applied { animation: pop-in .6s cubic-bezier(.2, 1.6, .4, 1); }
.coupon.is-nudged { animation: wiggle .6s ease; }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0dfe5; font-size: .93rem; }
.row--discount { color: var(--leaf-deep); font-weight: 600; }
.row--total { border: 0; font-size: 1.15rem; font-weight: 700; }
.row--total #totalAmount { color: var(--pink-deep); }
.free { color: var(--leaf-deep); font-weight: 700; }

/* ---------- Quiz ---------- */
.quiz {
  position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(75, 58, 70, .45); backdrop-filter: blur(4px); animation: fade-in .3s ease; overflow: hidden;
}
.quiz__card { position: relative; width: 100%; padding: 18px 18px 16px; border-radius: 28px; text-align: center; background: #fffaf2; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: pop-in .45s cubic-bezier(.2, 1.5, .4, 1); }
.quiz__top { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--muted); }
.quiz__dots { display: flex; gap: 5px; }
.quiz__dots i { width: 10px; height: 10px; border-radius: 50%; background: #f3dbe3; transition: background .3s, transform .3s; }
.quiz__dots i.is-done { background: #7cc67a; }
.quiz__dots i.is-current { background: var(--pink); transform: scale(1.3); }
.quiz__q { min-height: 3em; margin: 4px 0 0; font-size: 1.2rem; line-height: 1.4; }
.quiz__answers { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; height: 150px; margin-top: 6px; }
.btn--yes { position: relative; z-index: 2; color: #fff; background: #7cc67a; box-shadow: 0 6px 0 #4f9f4d; transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), padding .3s, font-size .3s; }
.btn--yes:active { box-shadow: 0 2px 0 #4f9f4d; }
.btn--yes.is-giant { padding: 34px 40px; font-size: 1.8rem; width: 100%; }
.btn--no { position: relative; z-index: 3; color: #fff; background: var(--pink); box-shadow: 0 6px 0 var(--pink-shadow); transition: left .22s ease, top .22s ease, transform .3s, opacity .3s; }
.btn--no:disabled { background: #d9cdd3; box-shadow: 0 6px 0 #bfb0b7; opacity: 1; }
.btn--no.is-free { position: absolute; margin: 0; }
.btn--no.is-ghost { position: absolute; right: 2px; bottom: 2px; padding: 4px 8px; font-size: .6rem; opacity: .12; transform: scale(.6); }
.btn--no.is-gone { opacity: 0; transform: scale(0); pointer-events: none; }
.quiz__msg { min-height: 1.4em; margin: 6px 0 0; font-size: .9rem; color: var(--pink-deep); }

/* ---------- 9 · Success ---------- */
.success-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 14px; position: relative; }
.check-badge {
  position: absolute; top: 4px; right: calc(50% - 90px); z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #7cc67a; color: #fff; font-size: 1.6rem; font-weight: 700;
  box-shadow: 0 0 0 6px #e3f5d3; animation: pop-in .6s .2s cubic-bezier(.2, 1.6, .4, 1) both;
}
.delivery { text-align: center; border: 2px dashed var(--yellow); background: #fffbea; }
.delivery__time { margin: 4px 0; font-size: 1.5rem; color: var(--ink); }
.delivery__by { margin: 0 0 14px; }
.timeline { margin: 0; padding: 0; list-style: none; text-align: left; }
.timeline li { position: relative; padding: 0 0 14px 30px; font-size: .92rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #eadfe3; }
.timeline li::after { content: ""; position: absolute; left: 12px; top: 19px; bottom: 0; width: 2px; background: #eadfe3; }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: #7cc67a; }
.timeline li.is-now { color: var(--pink-deep); font-weight: 600; }
.timeline li.is-now::before { background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 143, 171, .6); animation: ping 1.6s infinite; }

/* ---------- 10 · Finale ---------- */
.finale__ask { margin: 10px 0 0; font-weight: 600; font-size: 1.05rem; }

/* ---------- Overlays ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(47, 37, 48, .85); animation: fade-in .25s ease; }
.lightbox img { max-width: min(92vw, 520px); max-height: 80vh; border-radius: 20px; border: 6px solid #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); animation: pop-in .4s cubic-bezier(.2, 1.4, .4, 1); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 1.6rem; cursor: pointer; }
.fx { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.confetti { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; pointer-events: none; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; max-width: min(92vw, 400px);
  padding: 12px 18px; border-radius: 16px; background: #4b3a46; color: #fff; font-size: .95rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none;
  transform: translate(-50%, 20px); transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Keyframes ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes ear-l { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } }
@keyframes ear-r { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-4deg); } }
@keyframes wave { from { transform: rotate(-20deg); } to { transform: rotate(24deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.16); } 60% { transform: scale(.95); } }
@keyframes tilt { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes glow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(60px, 110vh) rotate(540deg); opacity: 0; } }
@keyframes tick { 0% { transform: translateY(-6px) scale(1.15); color: #ffb703; } 100% { transform: none; } }
@keyframes rise {
  0% { transform: translate(0, 0) rotate(-4deg); }
  25% { transform: translate(14px, -32vh) rotate(4deg); }
  50% { transform: translate(-10px, -64vh) rotate(-3deg); }
  75% { transform: translate(12px, -96vh) rotate(3deg); }
  100% { transform: translate(0, -130vh) rotate(-2deg); }
}
@keyframes balloon-pop { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.35); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes spark { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes pop-in { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes walk-bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes swing-a { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes swing-b { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes float-up {
  0% { transform: translate(-50%, 0) scale(.5); opacity: 0; }
  15% { transform: translate(-50%, -12px) scale(1.25); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), -150px) scale(1); opacity: 0; }
}
@keyframes flag { from { transform: skewY(-4deg) scaleX(.94); } to { transform: skewY(4deg) scaleX(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 143, 171, .6); } 100% { box-shadow: 0 0 0 12px rgba(255, 143, 171, 0); } }

@media (prefers-reduced-motion: reduce) {
  .bg-daisy, .petal, .meadow__cloud, .rays, .bloom, .bloom__head svg, .daisy-frame__petals { animation: none !important; }
}

/* ==========================================================================
   v2 scenes
   ========================================================================== */

/* ---------- Small shared bits ---------- */
.music-toggle {
  position: absolute; top: 10px; left: 10px; z-index: 50; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow);
  font-size: 1.05rem; cursor: pointer;
}
.music-toggle.is-waiting { animation: ping-pink 1.6s infinite; }
.link-btn { margin-top: 2px; padding: 6px 10px; border: 0; background: none; color: var(--muted); font-size: .9rem; text-decoration: underline; cursor: pointer; }
.link-btn--light { color: #e6cfd8; }

/* ---------- Indian Spitz ---------- */
.spitz { width: min(190px, 48vw); height: auto; overflow: visible; animation: bob 2.8s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(120, 80, 60, .18)); }
.spitz--md { width: 150px; }
.spitz__tail { transform-box: fill-box; transform-origin: 0% 100%; animation: wag .42s ease-in-out infinite alternate; }
.spitz__head { transform-box: fill-box; transform-origin: 50% 90%; animation: head-tilt 4.2s ease-in-out infinite; }
.spitz__ear--l, .spitz__ear--r { transform-box: fill-box; transform-origin: 50% 100%; }
.spitz__ear--l { animation: ear-l 2.6s ease-in-out infinite; }
.spitz__ear--r { animation: ear-r 2.6s ease-in-out infinite; }
.spitz__eye { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
.spitz__tongue { transform-box: fill-box; transform-origin: 50% 0; animation: pant .45s ease-in-out infinite alternate; }
.spitz__hat { transform-box: fill-box; transform-origin: 50% 100%; animation: tilt 2.6s ease-in-out infinite; }

/* ---------- Balloons: 10 pops, then the banner parade ---------- */
.parade { position: absolute; left: 100%; bottom: 15%; width: 290px; height: 190px; z-index: 3; pointer-events: none; }
.parade.is-going { animation: parade-walk 8s linear forwards; }
.parade__walker { position: absolute; left: 0; bottom: 0; width: 78px; }
.parade__pole { position: absolute; left: 30px; bottom: 62px; width: 5px; height: 122px; border-radius: 3px; background: #8a6a50; }
.parade__pole::before { content: ""; position: absolute; top: -9px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px #fff; }
.parade__banner {
  position: absolute; left: 34px; top: 6px; width: 246px; padding: 10px 12px 8px;
  border-radius: 4px 16px 16px 4px; background: linear-gradient(135deg, #ff9eb5, #ff7aa2);
  color: #fff; text-align: center; font-family: var(--script); font-size: 1.12rem; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(232, 98, 143, .35); transform-origin: 0 50%;
  animation: banner-wave 1.1s ease-in-out infinite alternate;
}
.parade__banner::after {
  content: ""; position: absolute; left: 4px; right: 12px; top: 100%; height: 10px;
  background: radial-gradient(circle at 10px 0, #ff7aa2 9px, transparent 10px) 0 0 / 20px 10px repeat-x;
}

/* ---------- Sound on ---------- */
.sound-notes { position: absolute; inset: 0; pointer-events: none; }
.sound-notes span { position: absolute; font-size: 1.8rem; color: var(--pink-deep); opacity: 0; animation: note-float 4s ease-in-out infinite; }
.sound-notes span:nth-child(1) { left: 14%; top: 30%; }
.sound-notes span:nth-child(2) { left: 78%; top: 24%; animation-delay: .8s; color: #b07a00; }
.sound-notes span:nth-child(3) { left: 24%; top: 58%; animation-delay: 1.6s; color: #7cc67a; }
.sound-notes span:nth-child(4) { left: 70%; top: 52%; animation-delay: 2.4s; }
.sound-notes span:nth-child(5) { left: 48%; top: 16%; animation-delay: 3.2s; color: #74b9ff; }

/* ---------- Wish: featured sunflower + bouquet ---------- */
.bloom-feature { display: grid; grid-template-columns: 46% 1fr; gap: 12px; align-items: center; margin: 4px 0 20px; }
.bloom--sunflower .bloom__head img { --ring: #5a3317; }
.note-card {
  position: relative; margin: 0; padding: 16px 14px 14px; border-radius: 20px;
  background: #fffbea; border: 2px dashed var(--yellow); box-shadow: var(--shadow);
  font-size: .93rem; line-height: 1.5; color: #7a5410;
}
.note-card::before { content: "🌻"; position: absolute; top: -15px; left: 14px; font-size: 1.4rem; }

/* ---------- Walk scenes (outing + museum) ---------- */
.walk__stop { position: absolute; left: var(--x); transform: translateX(-50%); }
.walk__finish { position: absolute; left: var(--x); transform: translateX(-50%); }
.walk__bubble {
  position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 4; width: max-content; max-width: 200px; margin: 0;
  padding: 8px 12px; border-radius: 14px; background: #fff; color: var(--ink);
  font-size: .82rem; line-height: 1.35; text-align: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  opacity: 0; transform: translate(-50%, 8px) scale(.8); transition: opacity .25s, transform .25s; pointer-events: none;
}
.walk__bubble.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.walk__bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }

/* Outing */
.walk--outing, .walk--outing .walk__controls { background: #3d6b4f; }
.outing__sky { position: absolute; inset: 0; background: linear-gradient(180deg, #8fd3ff 0%, #c9ecff 50%, #fff4d6 100%); }
.outing__sun { position: absolute; top: 7%; right: 12%; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #fff6b0, #ffd23f 62%); box-shadow: 0 0 40px 14px rgba(255, 214, 90, .5); animation: glow 5s ease-in-out infinite; }
.outing__city {
  top: 18%; height: 44%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='220'%3E%3Cg fill='%23b9d4ee'%3E%3Crect x='10' y='80' width='60' height='140' rx='5'/%3E%3Crect x='80' y='30' width='46' height='190' rx='5'/%3E%3Crect x='136' y='110' width='70' height='110' rx='5'/%3E%3Crect x='216' y='56' width='54' height='164' rx='5'/%3E%3Crect x='280' y='100' width='40' height='120' rx='5'/%3E%3Crect x='330' y='66' width='62' height='154' rx='5'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.6'%3E%3Crect x='22' y='96' width='10' height='12' rx='2'/%3E%3Crect x='46' y='96' width='10' height='12' rx='2'/%3E%3Crect x='22' y='124' width='10' height='12' rx='2'/%3E%3Crect x='92' y='48' width='9' height='11' rx='2'/%3E%3Crect x='108' y='48' width='9' height='11' rx='2'/%3E%3Crect x='92' y='76' width='9' height='11' rx='2'/%3E%3Crect x='108' y='104' width='9' height='11' rx='2'/%3E%3Crect x='150' y='126' width='12' height='12' rx='2'/%3E%3Crect x='178' y='126' width='12' height='12' rx='2'/%3E%3Crect x='228' y='74' width='10' height='12' rx='2'/%3E%3Crect x='248' y='102' width='10' height='12' rx='2'/%3E%3Crect x='344' y='84' width='12' height='12' rx='2'/%3E%3Crect x='368' y='112' width='12' height='12' rx='2'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 400px 220px repeat-x;
  opacity: .9;
}
.outing__trees {
  position: absolute; left: 0; right: 0; bottom: 34%; height: 110px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='110'%3E%3Crect x='56' y='60' width='10' height='50' rx='4' fill='%238a6a50'/%3E%3Ccircle cx='61' cy='48' r='30' fill='%237cc67a'/%3E%3Ccircle cx='44' cy='58' r='20' fill='%236cb46a'/%3E%3Ccircle cx='80' cy='58' r='20' fill='%2389d087'/%3E%3Crect x='186' y='70' width='8' height='40' rx='4' fill='%238a6a50'/%3E%3Ccircle cx='190' cy='60' r='24' fill='%2389d087'/%3E%3Ccircle cx='176' cy='68' r='14' fill='%237cc67a'/%3E%3Ccircle cx='204' cy='66' r='15' fill='%236cb46a'/%3E%3Ccircle cx='182' cy='52' r='4' fill='%23ff8fab'/%3E%3Ccircle cx='198' cy='58' r='4' fill='%23fff'/%3E%3Ccircle cx='52' cy='40' r='4' fill='%23fff'/%3E%3Ccircle cx='70' cy='52' r='4' fill='%23ff8fab'/%3E%3C/svg%3E") 0 100% / 260px 110px repeat-x;
}
.outing__ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 70px),
    linear-gradient(180deg, #9ed383 0 8%, #e6ddcf 8% 82%, #9ed383 82%);
}
.stall { bottom: 30%; width: 116px; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.stall__awning {
  position: relative; width: 116px; height: 32px; border-radius: 10px 10px 0 0;
  background: repeating-linear-gradient(90deg, var(--c) 0 19px, #fff 19px 38px);
}
.stall__awning::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 11px; background: radial-gradient(circle at 9.5px 0, var(--c) 9px, transparent 10px) 0 0 / 19px 11px repeat-x; }
.stall__body {
  display: grid; place-items: center; width: 104px; height: 86px; border: 3px solid #fff; border-top: 0;
  border-radius: 0 0 12px 12px; background: #fffaf0; box-shadow: 0 10px 18px rgba(60, 40, 30, .18); transition: transform .3s;
}
.stall__icon { font-size: 2.5rem; animation: bob 2.4s ease-in-out infinite; }
.stall__svg { display: block; width: 48px; height: 48px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .15)); }
.stall__name { margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 3px 6px rgba(0, 0, 0, .12); }
.stall.is-near .stall__body { transform: translateY(-5px) scale(1.05); }
.stall.is-visited .stall__name::after { content: " ✓"; color: var(--leaf-deep); }
.signpost { bottom: 10%; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.signpost span { padding: 8px 12px; border: 3px solid #c99a2e; border-radius: 8px; background: #fffaf0; font-size: .85rem; font-weight: 700; white-space: nowrap; transform: rotate(-4deg); box-shadow: 0 6px 12px rgba(0, 0, 0, .15); }
.signpost::after { content: ""; width: 8px; height: 110px; border-radius: 4px; background: #8a6a50; }
.walk--outing .walk__avatar { bottom: 8%; }
.walk--outing .walk__sign { top: 10%; }

/* ---------- Cinema ---------- */
.theater { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 50% 0%, #4a2433, #1b1018 70%); }
.theater__hud { padding: 18px 16px 8px 58px; color: #ffd9a8; font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.theater__stage { position: relative; margin: 6px 10px 0; padding: 28px 12px 16px; overflow: hidden; border-radius: 10px; }
.theater__valance { position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 3; border-bottom: 4px solid #e9c46a; border-radius: 0 0 14px 14px; background: repeating-linear-gradient(90deg, #b5172f 0 16px, #8f0f24 16px 32px); box-shadow: 0 6px 12px rgba(0, 0, 0, .4); }
.theater__screen { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; border: 3px solid #2b1a22; border-radius: 8px; background: #000; box-shadow: 0 0 40px rgba(255, 240, 200, .25); transition: width .4s, height .4s; }
.theater__screen:fullscreen { width: 100% !important; height: 100% !important; border: 0; border-radius: 0; }
.theater__screen:-webkit-full-screen { width: 100% !important; height: 100% !important; border: 0; border-radius: 0; }
.theater__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.theater__placeholder { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; background: radial-gradient(circle, #3a2a3f, #140c12); }
.theater__placeholder b { color: #ffd9a8; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; }
.theater__placeholder span { color: #ffb3c6; font-family: var(--script); font-size: 1.25rem; }
.theater__end { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(0, 0, 0, .65); color: #ffd9a8; font-family: var(--script); font-size: 1.8rem; animation: fade-in .6s; }
.theater__curtain { position: absolute; top: 0; bottom: 0; z-index: 2; width: 52%; background: repeating-linear-gradient(90deg, #c1121f 0 14px, #8f0f24 14px 22px, #c1121f 22px 30px); box-shadow: inset 0 -20px 30px rgba(0, 0, 0, .35); transition: transform 1.4s cubic-bezier(.6, .05, .3, 1); }
.theater__curtain--l { left: 0; border-radius: 0 0 40% 0; }
.theater__curtain--r { right: 0; border-radius: 0 0 0 40%; }
.theater.is-open .theater__curtain--l { transform: translateX(-90%); }
.theater.is-open .theater__curtain--r { transform: translateX(90%); }
.theater__hall { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transition: filter .8s; }
.theater.is-open .theater__hall { filter: brightness(.6); }
.seats { display: flex; justify-content: center; gap: 6px; margin-bottom: -6px; }
.seats i { width: 36px; height: 30px; border-radius: 12px 12px 6px 6px; background: linear-gradient(#a3162b, #6e0e1d); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .12); }
.seats--back i { width: 28px; height: 24px; opacity: .55; }
.seats--mid i { opacity: .8; }
.theater__her { position: relative; width: 150px; margin-top: 2px; }
.seat-girl { display: block; width: 100%; height: auto; }
.seat-girl__head { transform-box: fill-box; transform-origin: 50% 100%; animation: watch 5s ease-in-out infinite; }
.popcorn { position: absolute; right: -22px; bottom: 26px; font-size: 2rem; animation: bob 2.2s ease-in-out infinite; }
.theater__controls { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }

/* ---------- Street dogs ---------- */
.street { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #2d2a5a 0%, #6b4c8a 42%, #f2a17a 76%, #ffd1a1 100%); }
.street__stars {
  position: absolute; inset: 0 0 55% 0; animation: twinkle 3s ease-in-out infinite alternate;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 30% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 48% 22%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 62% 10%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 30%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 74% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 20% 44%, #fff 50%, transparent 51%), radial-gradient(1.8px 1.8px at 40% 36%, #fff 50%, transparent 51%);
}
.street__moon { position: absolute; top: 9%; right: 14%; width: 44px; height: 44px; border-radius: 50%; background: #fff4cc; box-shadow: 0 0 30px 8px rgba(255, 244, 204, .5); }
.street__count { position: absolute; top: 16px; left: 58px; z-index: 5; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--pink-deep); font-size: .8rem; font-weight: 600; }
.street__chat { position: absolute; top: 54px; left: 12px; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.chat__msg { align-self: flex-start; max-width: 88%; margin: 0; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: .86rem; line-height: 1.35; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); animation: pop-in .4s cubic-bezier(.2, 1.5, .4, 1); }
.chat__msg b { color: var(--pink-deep); }
.cinema { position: absolute; left: -6%; bottom: 32%; width: 56%; height: 38%; border-radius: 10px 10px 0 0; background: linear-gradient(#5b2a4a, #3f1d34); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .2); }
.cinema__marquee { position: absolute; top: -24px; left: 14%; right: 10%; padding: 5px 0; border: 3px dotted #ffd166; border-radius: 10px; background: #c1121f; color: #fff3c4; text-align: center; font-weight: 700; letter-spacing: .3em; animation: marquee 1s steps(2) infinite; }
.cinema__board { position: absolute; top: 24px; left: 16%; right: 8%; padding: 7px; border-radius: 8px; background: #fff8e1; color: var(--ink); font-size: .7rem; font-weight: 600; text-align: center; box-shadow: 0 0 18px rgba(255, 220, 150, .5); }
.cinema__door { position: absolute; bottom: 0; left: 56%; width: 40%; height: 46%; transform: translateX(-50%); border: 4px solid #2b1424; border-bottom: 0; border-radius: 8px 8px 0 0; background: linear-gradient(#ffcf7a, #f4a259); box-shadow: 0 0 30px rgba(255, 200, 120, .6); }
.cinema__door::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #2b1424; }
.street__lamp { position: absolute; right: 7%; bottom: 32%; width: 6px; height: 40%; border-radius: 3px; background: #3a3245; }
.street__lamp::before { content: ""; position: absolute; top: -8px; left: -12px; width: 30px; height: 14px; border-radius: 8px 8px 4px 4px; background: #3a3245; }
.street__lamp::after { content: ""; position: absolute; top: 4px; left: -40px; width: 86px; height: 130px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 226, 140, .7), transparent 70%); }
.street__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, #9b8f8a 0 14%, #7a6f6b 14% 18%, #4b4550 18%); }
.street__ground::after { content: ""; position: absolute; left: 0; right: 0; bottom: 30%; height: 5px; opacity: .8; background: repeating-linear-gradient(90deg, #ffe8a3 0 30px, transparent 30px 60px); }
.street__girl { position: absolute; left: 5%; bottom: 13%; z-index: 3; width: clamp(70px, 20vw, 88px); }
.street__girl .avatar { animation: bob 2.6s ease-in-out infinite; }
.street-dog {
  position: absolute; left: 115%; bottom: calc(12% + var(--row) * 11%); z-index: calc(4 - var(--row));
  width: clamp(92px, 25vw, 116px); padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateX(-50%) scale(calc(1 - var(--row) * .14)); transition: left 1.7s linear;
}
.street-dog.is-coming { left: var(--slot); }
.street-dog.is-here .dog { animation: hop .45s ease; }
.street-dog.is-talking::before { content: "💬"; position: absolute; top: -20px; left: 8%; font-size: 1.3rem; animation: pop-in .3s; }
.street__footer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); }
.dog { display: block; width: 100%; height: auto; overflow: visible; }
.dog__tail { transform-box: fill-box; transform-origin: 0% 100%; animation: wag .4s ease-in-out infinite alternate; }
.dog__leg { transform-box: fill-box; transform-origin: 50% 0; }
.dog__eye { transform-box: fill-box; transform-origin: center; animation: blink 3.8s infinite; }
.dog__head { transform-box: fill-box; transform-origin: 80% 80%; }
.dog__tongue { transform-box: fill-box; transform-origin: 50% 0; animation: pant .4s ease-in-out infinite alternate; }
.street-dog.is-coming:not(.is-here) .dog__leg--f1, .street-dog.is-coming:not(.is-here) .dog__leg--b2 { animation: swing-a .3s ease-in-out infinite alternate; }
.street-dog.is-coming:not(.is-here) .dog__leg--f2, .street-dog.is-coming:not(.is-here) .dog__leg--b1 { animation: swing-b .3s ease-in-out infinite alternate; }
.street-dog.is-coming:not(.is-here) .dog { animation: walk-bob .15s ease-in-out infinite alternate; }
.street-dog.is-talking .dog__head { animation: bark .3s ease-in-out 4 alternate; }
.street .float-emoji { z-index: 7; }

/* ---------- v2 keyframes ---------- */
@keyframes wag { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
@keyframes head-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 60% { transform: rotate(3deg); } }
@keyframes pant { from { transform: scaleY(.85); } to { transform: scaleY(1.12); } }
@keyframes parade-walk { from { left: 100%; } to { left: -112%; } }
@keyframes banner-wave { from { transform: skewY(-3deg); } to { transform: skewY(3deg); } }
@keyframes note-float { 0% { opacity: 0; transform: translateY(10px) rotate(-10deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60px) rotate(12deg); } }
@keyframes ping-pink { 0% { box-shadow: 0 0 0 0 rgba(255, 143, 171, .7); } 100% { box-shadow: 0 0 0 14px rgba(255, 143, 171, 0); } }
@keyframes watch { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2deg) translateY(-1px); } }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes marquee { 50% { border-color: #fff3c4; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
@keyframes bark { from { transform: rotate(0); } to { transform: rotate(-8deg); } }

@media (prefers-reduced-motion: reduce) {
  .parade.is-going { animation-duration: 3s; }
  .bloom, .bloom__head svg { animation: none !important; }
}

/* ---------- Daisy on Gopa's shoulder ---------- */
.avatar__daisy { display: none; }
.has-daisy .avatar--girl .avatar__daisy { display: inline; }
.has-daisy .avatar--girl .avatar__daisy > * { transform-box: fill-box; transform-origin: center; animation: daisy-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes daisy-pop { from { transform: scale(0) rotate(-90deg); } to { transform: scale(1) rotate(0); } }

/* ---------- Gopa's moods (girl partial) ---------- */
.face--happy, .face--shock { display: none; }
.is-happy .face--normal, .is-shock .face--normal { display: none; }
.is-happy .face--happy, .is-shock .face--shock { display: inline; }

/* ---------- Night ghosts ---------- */
.night { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #0f0c29 0%, #2b1f55 55%, #4b2c6b 100%); }
.night__moon {
  position: absolute; top: 11%; right: 9%; width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fffbe0, #ffe08a 70%);
  box-shadow: 0 0 50px 18px rgba(255, 236, 160, .3), inset -8px -6px 0 rgba(230, 190, 90, .35);
}
.night__moon::before { content: ""; position: absolute; top: 22px; left: 18px; width: 12px; height: 12px; border-radius: 50%; background: rgba(220, 180, 90, .45); box-shadow: 26px 14px 0 -2px rgba(220, 180, 90, .4), 10px 30px 0 -3px rgba(220, 180, 90, .35); }
.night__bats span { position: absolute; left: 0; font-size: 1.3rem; animation: bat-fly 10s linear infinite; }
.night__bats span:nth-child(1) { top: 22%; }
.night__bats span:nth-child(2) { top: 30%; font-size: 1rem; animation-delay: -4s; animation-duration: 13s; }
.night__bats span:nth-child(3) { top: 16%; animation-delay: -7s; animation-duration: 11s; }
.night__ground { position: absolute; left: -10%; right: -10%; bottom: 0; height: 24%; border-radius: 50% 50% 0 0 / 30% 30% 0 0; background: linear-gradient(180deg, #2d2150, #1a1233); }
.night__girl { position: absolute; left: 5%; bottom: 12%; z-index: 5; width: clamp(70px, 20vw, 88px); }
.night__girl.is-shock .avatar { animation: shake .4s 3; }
.night__girl.is-happy .avatar { animation: hop .7s ease-in-out infinite; }
.night-ghost {
  position: absolute; left: var(--gx); top: var(--gy); z-index: 3; width: clamp(74px, 21vw, 94px);
  padding: 0; border: 0; background: none; cursor: pointer; opacity: 0;
  transform: translate(-50%, 50px) scale(.3); transition: opacity .6s, transform .9s cubic-bezier(.2, 1.4, .4, 1);
}
.night-ghost.is-in { opacity: .96; transform: translate(-50%, 0) scale(1); }
.night-ghost.is-talking::before { content: "💬"; position: absolute; top: -18px; left: 6%; font-size: 1.2rem; animation: pop-in .3s; }
.ghost { display: block; width: 100%; height: auto; overflow: visible; }
.night-ghost .ghost { animation: ghost-float 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); filter: drop-shadow(0 0 14px rgba(220, 215, 255, .55)); }
.night.is-party .night-ghost.is-in .ghost { animation: ghost-dance .7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.15s); }
.ghost__eye { transform-box: fill-box; transform-origin: center; animation: blink 3.4s infinite; }
.ghost__arm--l, .ghost__arm--r { transform-box: fill-box; transform-origin: 80% 20%; }
.ghost__arm--l { animation: ghost-wave .8s ease-in-out infinite alternate; }
.ghost__arm--r { transform-origin: 20% 20%; animation: ghost-wave .9s ease-in-out infinite alternate-reverse; }
.ghost__mouth { transform-box: fill-box; transform-origin: center; }
.night-ghost.is-talking .ghost__mouth { animation: talk .22s ease-in-out 8 alternate; }
.ghost__flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame .3s ease-in-out infinite alternate; }
.night__pumpkins { position: absolute; left: 0; right: 0; bottom: 3%; z-index: 4; display: flex; justify-content: space-around; font-size: 2rem; pointer-events: none; }
.night__pumpkins span { animation: flicker 1.8s ease-in-out infinite alternate; }
.night__pumpkins span:nth-child(even) { animation-delay: -.9s; font-size: 1.6rem; }
.night__fog {
  position: absolute; left: -20%; right: -20%; bottom: 9%; z-index: 6; height: 90px; pointer-events: none; filter: blur(6px);
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, .2), transparent 60%), radial-gradient(ellipse at 72% 60%, rgba(255, 255, 255, .16), transparent 60%);
  animation: fog-drift 12s ease-in-out infinite alternate;
}
.night .street__footer { z-index: 7; }
.chat__msg--me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #ffe3ea; }

@keyframes bat-fly { 0% { transform: translate(-60px, 0) scaleX(-1); } 50% { transform: translate(260px, -24px) scaleX(-1); } 100% { transform: translate(560px, 8px) scaleX(-1); } }
@keyframes ghost-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes ghost-wave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes ghost-dance { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(12deg) translateY(-16px); } }
@keyframes talk { from { transform: scaleY(1); } to { transform: scaleY(.4); } }
@keyframes flame { from { transform: scale(1, 1); } to { transform: scale(.85, 1.2); } }
@keyframes flicker { from { filter: drop-shadow(0 0 5px rgba(255, 150, 40, .6)); } to { filter: drop-shadow(0 0 16px rgba(255, 170, 60, 1)); } }
@keyframes fog-drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }

/* ==========================================================================
   v3: video player, Chutki bubble, Kolkata (tram + Howrah Bridge), cake
   ========================================================================== */

/* ---------- Custom movie player ---------- */
.player { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; transition: opacity .35s; }
.player.is-idle { opacity: 0; cursor: none; }
.player.is-idle .player__bar { pointer-events: none; }
.player__big {
  display: grid; place-items: center; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 122, 162, .92); color: #fff; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .16); transition: transform .25s, opacity .25s;
}
.player__big svg { width: 28px; height: 28px; margin-left: 3px; }
.player__big:active { transform: scale(.92); }
.player.is-playing .player__big { opacity: 0; transform: scale(.6); pointer-events: none; }
.player__bar {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 999px; background: rgba(20, 12, 24, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.player__btn { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.player__btn:hover { background: rgba(255, 255, 255, .12); }
.player__btn svg { width: 18px; height: 18px; }
.player .i-pause, .player .i-mute { display: none; }
.player.is-playing .i-play, .player.is-muted .i-vol { display: none; }
.player.is-playing .i-pause, .player.is-muted .i-mute { display: block; }
.player__time { flex: 0 0 auto; color: #ffe6ee; font-size: .68rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__seek { position: relative; flex: 1; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.player__seek::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.player__buffer, .player__progress { position: absolute; left: 0; width: 0; height: 4px; border-radius: 2px; }
.player__buffer { background: rgba(255, 255, 255, .4); }
.player__progress { background: linear-gradient(90deg, #ffcf3f, #ff7aa2); }
.player__thumb { position: absolute; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 122, 162, .55); transition: transform .15s; }
.player__seek:active .player__thumb { transform: scale(1.3); }

/* ---------- Dog speech bubble (above the talking dog) ---------- */
.dog-bubble {
  position: absolute; z-index: 8; width: max-content; max-width: 220px; margin: 0; padding: 9px 13px;
  border-radius: 16px; background: #fff; color: var(--ink); font-size: .85rem; line-height: 1.38;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25); animation: pop-in .35s cubic-bezier(.2, 1.5, .4, 1);
}
.dog-bubble b { display: block; color: var(--pink-deep); font-size: .8rem; }
.dog-bubble::after { content: ""; position: absolute; top: 100%; left: var(--tail, 50%); margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; }
.dog__tag { transform-box: fill-box; transform-origin: 50% 0; animation: wave .6s ease-in-out infinite alternate; }

/* ---------- Howrah Bridge (ghost night) ---------- */
.night__river { position: absolute; left: 0; right: 0; bottom: 17%; height: 9%; background: linear-gradient(180deg, #2c2556, #1d1840); overflow: hidden; }
.night__river::after { content: ""; position: absolute; inset: 30% -20%; background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 217, 138, .35) 26px 40px, transparent 40px 70px); filter: blur(1px); animation: river 4s linear infinite; }
.night__bridge { position: absolute; left: 0; right: 0; bottom: 24%; width: 100%; height: auto; opacity: .95; }
.howrah__lights circle { animation: twinkle 1.6s ease-in-out infinite alternate; }
.night__label { position: absolute; left: 50%; bottom: 25%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ffe6b3; font-size: .7rem; letter-spacing: .08em; white-space: nowrap; }
.night__ground { height: 20%; }

/* ---------- Kolkata tram ride (transition) ---------- */
.tram-ride { position: absolute; inset: 0; z-index: 45; overflow: hidden; animation: fade-in .35s ease; }
.tram-ride.is-leaving { animation: fade-out .45s ease forwards; }
.tram-ride__sky { position: absolute; inset: 0; background: linear-gradient(180deg, #ffb88c 0%, #ffd6a5 45%, #fff1d0 70%); }
.tram-ride__city {
  position: absolute; left: 0; right: 0; bottom: 34%; height: 46%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='200'%3E%3Cg fill='%23e8a07c' opacity='.75'%3E%3Crect x='0' y='90' width='50' height='110'/%3E%3Crect x='56' y='60' width='40' height='140'/%3E%3Crect x='300' y='80' width='46' height='120'/%3E%3Crect x='352' y='50' width='38' height='150'/%3E%3Crect x='396' y='100' width='44' height='100'/%3E%3C/g%3E%3Cg fill='%23f4f0ea'%3E%3Cpath d='M130 200 V120 H270 V200 Z'/%3E%3Cpath d='M160 120 Q200 50 240 120 Z'/%3E%3Crect x='196' y='38' width='8' height='22'/%3E%3Ccircle cx='200' cy='34' r='6'/%3E%3Cpath d='M120 120 Q136 96 152 120 Z M248 120 Q264 96 280 120 Z'/%3E%3C/g%3E%3Cg fill='%23d9cdbd'%3E%3Crect x='146' y='140' width='12' height='40' rx='6'/%3E%3Crect x='172' y='140' width='12' height='40' rx='6'/%3E%3Crect x='216' y='140' width='12' height='40' rx='6'/%3E%3Crect x='242' y='140' width='12' height='40' rx='6'/%3E%3C/g%3E%3C/svg%3E") 50% 100% / 440px 200px repeat-x;
}
.tram-ride__wire { position: absolute; left: 0; right: 0; bottom: 47%; height: 2px; background: #4a4a55; opacity: .8; }
.tram-ride__road { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, #8d8a86 0 8%, #6f6c69 8%); }
.tram-ride__rails { position: absolute; left: 0; right: 0; top: 30%; height: 10px; border-top: 3px solid #b9b5ae; border-bottom: 3px solid #b9b5ae; }
.tram-ride__tram { position: absolute; left: -330px; bottom: 26%; width: 300px; }
.tram-ride.is-on .tram-ride__tram { animation: tram-go 3.4s cubic-bezier(.4, .05, .5, .95) forwards; }
.tram { display: block; width: 100%; height: auto; overflow: visible; animation: walk-bob .25s ease-in-out infinite alternate; }
.tram__wheel { transform-box: fill-box; transform-origin: center; animation: spin .6s linear infinite; }
.tram__wave { transform-box: fill-box; transform-origin: 0 100%; animation: wave .5s ease-in-out infinite alternate; }
.tram-ride__taxi { position: absolute; right: -150px; bottom: 6%; width: 130px; }
.tram-ride.is-on .tram-ride__taxi { animation: taxi-go 2.6s .5s linear forwards; }
.taxi { display: block; width: 100%; height: auto; }
.taxi__wheel { transform-box: fill-box; transform-origin: center; animation: spin .5s linear infinite reverse; }
.tram-ride__caption {
  position: absolute; left: 16px; right: 16px; top: 13%; margin: 0 auto; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 18px; background: #fff; color: var(--ink); font-weight: 600; line-height: 1.4; text-align: center;
  box-shadow: var(--shadow); animation: pop-in .5s .2s cubic-bezier(.2, 1.5, .4, 1) both;
}
.tram-ride__caption span { display: block; font-size: .92rem; }
.tram-ride__caption b { color: #2f6fb5; }

/* ---------- Cake + candles + wish lantern ---------- */
.party { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #120d2e 0%, #2b1f55 50%, #5b3a72 100%); }
.party__lights { position: absolute; top: 4%; left: -5%; right: -5%; height: 60px; display: flex; justify-content: space-between; padding: 0 6%; border-top: 2px solid rgba(255, 255, 255, .25); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.party__lights i { width: 10px; height: 14px; margin-top: calc(var(--y, 10px)); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c, #ffcf3f); box-shadow: 0 0 12px 3px var(--c, #ffcf3f); animation: twinkle 1.2s ease-in-out infinite alternate; }
.party__lights i:nth-child(3n) { --c: #ff8fab; animation-delay: -.4s; }
.party__lights i:nth-child(3n + 1) { --c: #8ee3ff; animation-delay: -.8s; }
.party__lights i:nth-child(2), .party__lights i:nth-child(10) { --y: 22px; }
.party__lights i:nth-child(3), .party__lights i:nth-child(9) { --y: 34px; }
.party__lights i:nth-child(4), .party__lights i:nth-child(8) { --y: 42px; }
.party__lights i:nth-child(5), .party__lights i:nth-child(6), .party__lights i:nth-child(7) { --y: 46px; }
.party__sky { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.party__text { position: absolute; top: 15%; left: 0; right: 0; z-index: 3; padding: 0 20px; text-align: center; }
.party__text .script-title { text-shadow: 3px 3px 0 rgba(0, 0, 0, .25); }
.party__hint { margin: 6px 0 0; color: #ffe6ee; font-size: .95rem; }
.party__table { position: absolute; left: 50%; bottom: 23%; z-index: 3; width: min(260px, 64vw); transform: translateX(-42%); }
.party__table::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: -18px; height: 24px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 210, 140, .35), transparent 70%); }
.party__girl { position: absolute; left: 4%; bottom: 18%; z-index: 4; width: clamp(66px, 19vw, 84px); }
.party__girl.is-cheering .avatar { animation: hop .6s ease-in-out infinite; }
.party__controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); }
.cake { position: relative; --wind: 0; }
.cake__body { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.cake__candles { position: absolute; left: 30%; right: 30%; top: 21%; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; transform: translateY(-100%); }
.candle {
  position: relative; width: 10px; height: var(--h, 38px); padding: 0; border: 0; border-radius: 3px; cursor: pointer;
  background: repeating-linear-gradient(-45deg, #ffffff 0 5px, #ff8fab 5px 10px);
}
.candle::before { content: ""; position: absolute; top: -6px; left: 50%; width: 2px; height: 7px; margin-left: -1px; background: #4b3a46; }
.candle__flame {
  position: absolute; bottom: calc(100% + 4px); left: 50%; width: 14px; height: 22px; margin-left: -7px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 70%, #fff7c2 0 25%, #ffcf3f 45%, #ff8a3d 80%);
  box-shadow: 0 0 18px 6px rgba(255, 190, 80, .55); transform-origin: 50% 100%;
  transform: skewX(calc(var(--wind) * -28deg)) scaleY(calc(1 - var(--wind) * .35));
  animation: candle-flicker .18s ease-in-out infinite alternate; transition: opacity .25s;
}
.candle.is-out .candle__flame { opacity: 0; animation: none; }
.candle__smoke { position: absolute; bottom: calc(100% + 6px); left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: rgba(230, 230, 240, .7); opacity: 0; pointer-events: none; }
.candle.is-out .candle__smoke { animation: smoke 1.6s ease-out forwards; }
.blow-meter { position: absolute; left: 50%; bottom: 13%; z-index: 5; width: 180px; height: 10px; margin-left: -90px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.blow-meter__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8ee3ff, #ff8fab); transition: width .08s; }
.blow-meter__mark { position: absolute; top: -2px; bottom: -2px; left: var(--mark, 60%); width: 2px; background: #fff; }
.lantern {
  position: absolute; left: var(--lx, 50%); bottom: var(--ly, 30%); width: var(--lw, 46px); height: calc(var(--lw, 46px) * 1.3); margin-left: calc(var(--lw, 46px) / -2);
  border-radius: 42% 42% 22% 22% / 50% 50% 18% 18%;
  background: radial-gradient(circle at 50% 75%, #fff6c2 0 18%, #ffbe5c 45%, #ff7b39 100%);
  box-shadow: 0 0 30px 10px rgba(255, 170, 70, .45); animation: lantern-rise var(--ld, 9s) ease-in forwards; animation-delay: var(--ldelay, 0s);
}
.lantern::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -5px; height: 5px; border-radius: 0 0 4px 4px; background: #8a4a1f; }
.lantern--small { opacity: .85; }

/* ---------- v3 keyframes ---------- */
@keyframes fade-out { to { opacity: 0; } }
@keyframes tram-go { from { left: -330px; } to { left: 110%; } }
@keyframes taxi-go { from { right: -150px; } to { right: 110%; } }
@keyframes river { from { transform: translateX(0); } to { transform: translateX(70px); } }
@keyframes candle-flicker { from { border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; filter: brightness(1); } to { border-radius: 46% 54% 50% 50% / 66% 58% 42% 38%; filter: brightness(1.15); } }
@keyframes smoke { 0% { opacity: .8; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(8px, -50px) scale(2.4); } }
@keyframes lantern-rise {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8% { opacity: 1; }
  30% { transform: translate(14px, -24vh) rotate(4deg); }
  60% { transform: translate(-12px, -48vh) rotate(-4deg); }
  100% { transform: translate(8px, -85vh) rotate(2deg) scale(.55); opacity: 0; }
}

/* ==========================================================================
   v4: Phuchka challenge · Rooftop kites · Victoria Memorial · Chai with Subhro
   ========================================================================== */

/* ---------- Phuchka challenge ---------- */
.puchka { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #ffe6b8 0%, #ffd08a 56%, #c98b5a 56.2%, #a9744a 100%); }
.puchka::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 64px); }
.puchka__hud { position: absolute; top: 14px; left: 58px; right: 92px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.puchka__count { padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--pink-deep); font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); }
.puchka__timer { flex: 1; height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .65); }
.puchka__timer span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5c5c, #ffcf3f, #7cc67a); }
.puchka__secs { min-width: 30px; color: #7a3b1d; font-weight: 700; }
.puchka__wala { position: absolute; right: 3%; top: 17%; z-index: 2; width: min(220px, 56vw); }
.wala { display: block; width: 100%; height: auto; overflow: visible; }
.wala__head { transform-box: fill-box; transform-origin: 50% 90%; animation: head-tilt 3.6s ease-in-out infinite; }
.wala__eye { transform-box: fill-box; transform-origin: center; animation: blink 3.4s infinite; }
.wala__arm { transform-box: fill-box; transform-origin: 50% 0; }
.puchka.is-serving .wala__arm { animation: serve .3s ease; }
.puchka__say {
  position: absolute; bottom: calc(100% + 4px); right: 6%; width: max-content; max-width: 190px; margin: 0; padding: 8px 12px;
  border-radius: 14px; background: #fff; font-size: .85rem; line-height: 1.35; box-shadow: var(--shadow); animation: pop-in .3s cubic-bezier(.2, 1.5, .4, 1);
}
.puchka__say::after { content: ""; position: absolute; top: 100%; right: 30%; border: 7px solid transparent; border-top-color: #fff; }
.puchka__girl { position: absolute; left: 4%; bottom: 17%; z-index: 3; width: clamp(80px, 24vw, 104px); }
.puchka__girl.is-munch .avatar { animation: munch .22s ease-in-out 2; }
.puchka__crown { position: absolute; left: 48%; top: -18px; z-index: 2; font-size: 1.8rem; opacity: 0; transform: translateY(-24px) scale(.4); transition: transform .6s cubic-bezier(.2, 1.6, .4, 1), opacity .4s; }
.puchka.is-won .puchka__crown { opacity: 1; transform: none; }
/* Shalpata leaf bowl (dried leaf, light brown with veins) */
.puchka__plate {
  position: absolute; left: 50%; bottom: 10%; z-index: 4; width: 150px; height: 56px; margin-left: -48px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #8a5a2c 0 34%, #b98550 52%, #d9b07a 70%, #c99a62 86%);
  border: 3px solid #a87443;
  box-shadow: inset 0 6px 10px rgba(60, 30, 10, .35), 0 6px 10px rgba(80, 50, 20, .25);
}
.puchka__museum { position: absolute; left: 4%; top: 15%; z-index: 1; width: 52%; height: auto; opacity: .95; }
.phuchka {
  position: absolute; left: 50%; bottom: 18px; width: 98px; height: 98px; margin-left: -49px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: scale(0); transition: transform .24s cubic-bezier(.2, 1.6, .4, 1); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25));
}
.phuchka svg { display: block; width: 100%; height: 100%; }
.phuchka.is-served { transform: scale(1); }
.phuchka.is-eaten { transform: scale(0) rotate(40deg); transition-duration: .14s; }
.phuchka:disabled { cursor: default; }
.phuchka__chilli { position: absolute; top: -6px; right: -6px; display: none; font-size: 1.5rem; }
.phuchka.is-spicy .phuchka__chilli { display: block; animation: wiggle .6s ease infinite; }
.puchka.is-spicy-hit { animation: shake .4s; }
.puchka__card {
  position: absolute; left: 16px; right: 16px; top: 22%; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 16px; border-radius: 24px; background: rgba(255, 250, 240, .97); text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .22);
  animation: pop-in .4s cubic-bezier(.2, 1.5, .4, 1);
}
.puchka__card small { color: var(--muted); }

/* ---------- Rooftop kite battle ---------- */
.roof { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.roof__sky { position: absolute; inset: 0; background: linear-gradient(180deg, #6fc0ff 0%, #bfe6ff 46%, #ffe4c2 82%); }
.roof__sun { position: absolute; top: 11%; left: 10%; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, #fff6b0, #ffd23f 62%); box-shadow: 0 0 40px 12px rgba(255, 214, 90, .45); }
.roof__city {
  position: absolute; left: 0; right: 0; bottom: 21%; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='120'%3E%3Cg fill='%23e3b79c'%3E%3Crect x='0' y='40' width='70' height='80'/%3E%3Crect x='150' y='20' width='60' height='100'/%3E%3C/g%3E%3Cg fill='%23d6c3ab'%3E%3Crect x='72' y='60' width='76' height='60'/%3E%3Crect x='212' y='50' width='70' height='70'/%3E%3C/g%3E%3Cg fill='%23c9d3dc'%3E%3Crect x='284' y='30' width='76' height='90'/%3E%3C/g%3E%3Cg fill='%23333340'%3E%3Crect x='20' y='26' width='16' height='16' rx='3'/%3E%3Crect x='170' y='6' width='16' height='16' rx='3'/%3E%3Crect x='300' y='16' width='16' height='16' rx='3'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.5'%3E%3Crect x='10' y='56' width='8' height='10'/%3E%3Crect x='30' y='56' width='8' height='10'/%3E%3Crect x='86' y='76' width='8' height='10'/%3E%3Crect x='160' y='40' width='8' height='10'/%3E%3Crect x='228' y='66' width='8' height='10'/%3E%3Crect x='300' y='50' width='8' height='10'/%3E%3Crect x='320' y='70' width='8' height='10'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 360px 120px repeat-x;
}
.roof__hint { position: absolute; top: 54px; left: 16px; right: 16px; z-index: 5; margin: 0; color: #2f3f5c; font-size: .9rem; font-weight: 600; text-align: center; text-shadow: 0 1px 0 #fff; pointer-events: none; }
.roof__strings { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.kite { position: absolute; left: 0; top: 0; z-index: 4; width: 58px; pointer-events: none; will-change: transform; }
.kite svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .22)); }
.kite--mine { z-index: 5; width: 66px; }
.kite__name { position: absolute; top: 30%; left: 0; right: 0; color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.kite__banner {
  position: absolute; top: 100%; left: 50%; margin-top: 26px; padding: 6px 12px; border-radius: 6px; transform: translateX(-50%);
  background: linear-gradient(135deg, #ff9eb5, #ff7aa2); color: #fff; font-family: var(--script); font-size: 1rem; white-space: nowrap;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .2); animation: pop-in .5s cubic-bezier(.2, 1.5, .4, 1);
}
.roof__top { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 22%; }
.roof__wall { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(180deg, #ece0cf 0 14%, #d9c7b1 14% 19%, #cdb89f 19%); }
.roof__tank { position: absolute; right: 10%; bottom: 58%; width: 54px; height: 58px; border-radius: 12px 12px 6px 6px; background: linear-gradient(90deg, #2b2b33, #4a4a55 40%, #2b2b33); }
.roof__tank::before { content: ""; position: absolute; top: -6px; left: 14px; right: 14px; height: 8px; border-radius: 4px; background: #3a3a44; }
.roof__antenna { position: absolute; left: 30%; bottom: 58%; width: 3px; height: 72px; background: #777; }
.roof__antenna::before { content: ""; position: absolute; top: 6px; left: -14px; width: 31px; height: 3px; background: #777; box-shadow: 0 10px 0 #777, 0 20px 0 #777; }
.roof__line { position: absolute; left: 40%; right: 24%; bottom: 92%; display: flex; justify-content: space-around; height: 2px; background: #8a7a6a; }
.roof__line i { width: 20px; height: 26px; margin-top: 1px; border-radius: 2px 2px 6px 6px; background: var(--c); transform-origin: 50% 0; animation: sway 2s ease-in-out infinite alternate; }
.roof__girl { position: absolute; left: 8%; bottom: 12%; z-index: 6; width: clamp(74px, 22vw, 96px); }
.roof__spool { position: absolute; left: 50%; top: 66%; z-index: 2; width: 18px; height: 14px; border-radius: 4px; background: repeating-linear-gradient(90deg, #c98b2e 0 3px, #ffd166 3px 6px); }
.roof__girl.is-happy .avatar { animation: hop .7s ease-in-out infinite; }
.roof .street__footer { z-index: 7; }
.bhokatta { position: absolute; z-index: 8; color: #fff; font-family: var(--script); font-size: 1.5rem; white-space: nowrap; text-shadow: 2px 2px 0 #e8628f, 0 0 12px rgba(0, 0, 0, .3); pointer-events: none; animation: bhokatta 1.2s ease-out forwards; }

/* ---------- Victoria Memorial sunset ---------- */
.vic { position: absolute; inset: 0; overflow: hidden; }
.vic__sky { position: absolute; inset: 0; background: linear-gradient(180deg, #4b3a8c 0%, #c9568a 34%, #ff9a5a 60%, #ffd18a 74%); }
.vic__sun { position: absolute; left: 50%; top: 40%; width: 92px; height: 92px; margin-left: -46px; border-radius: 50%; background: radial-gradient(circle, #fff3b0, #ffb347 65%); box-shadow: 0 0 60px 24px rgba(255, 170, 80, .5); }
.vic__birds span { position: absolute; left: 0; top: 22%; font-size: 1rem; animation: bat-fly 15s linear infinite; }
.vic__birds span:nth-child(2) { top: 29%; font-size: .8rem; animation-delay: -6s; }
.vic__memorial { position: absolute; left: 3%; right: 3%; bottom: 35%; z-index: 2; }
.victoria { display: block; width: 100%; height: auto; overflow: visible; transition: filter 1.2s; -webkit-box-reflect: below 0 linear-gradient(transparent 55%, rgba(255, 255, 255, .25)); }
.victoria__lights circle { fill: #ffe08a; opacity: 0; transition: opacity .6s; }
.vic.is-lit .victoria { filter: drop-shadow(0 0 16px rgba(255, 214, 120, .9)) brightness(1.05); }
.vic.is-lit .victoria__lights circle { opacity: 1; animation: twinkle 1.2s ease-in-out infinite alternate; }
.vic__lawn { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 35%; background: linear-gradient(180deg, #6aa860, #3f7a3d); }
.vic__pond { position: absolute; left: 16%; right: 16%; bottom: 24%; z-index: 1; height: 8%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 190, 140, .8), rgba(160, 110, 170, .8)); }
.vic__wish {
  position: absolute; top: 15%; left: 0; right: 0; z-index: 4; margin: 0; padding: 0 16px; color: #fff; text-align: center;
  font-family: var(--script); font-size: clamp(1.6rem, 8vw, 2.2rem); text-shadow: 0 0 18px rgba(255, 200, 120, .9), 2px 2px 0 #e8628f;
  opacity: 0; transform: scale(.6); transition: opacity .8s, transform .8s cubic-bezier(.2, 1.5, .4, 1);
}
.vic.is-lit .vic__wish { opacity: 1; transform: none; }
.vic__carriage { position: absolute; right: -200px; bottom: 9%; z-index: 3; width: 170px; }
.vic.is-lit .vic__carriage { animation: carriage-go 9s linear forwards; }
.carriage { display: block; width: 100%; height: auto; overflow: visible; }
.carriage__wheel { transform-box: fill-box; transform-origin: center; }
.carriage__leg { transform-box: fill-box; transform-origin: 50% 0; }
.vic.is-lit .carriage__wheel { animation: spin .8s linear infinite reverse; }
.vic.is-lit .carriage__leg--a { animation: swing-a .35s ease-in-out infinite alternate; }
.vic.is-lit .carriage__leg--b { animation: swing-b .35s ease-in-out infinite alternate; }
.vic__girl { position: absolute; left: 6%; bottom: 7%; z-index: 4; width: clamp(78px, 23vw, 100px); }
.vic__camera { position: absolute; left: 47%; top: 60%; z-index: 2; width: 30px; height: 20px; border-radius: 5px; background: #2b2b33; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .15); }
.vic__camera::before { content: ""; position: absolute; top: -4px; left: 4px; width: 9px; height: 5px; border-radius: 2px 2px 0 0; background: #2b2b33; }
.vic__camera i { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border: 2px solid #9a9aa8; border-radius: 50%; background: radial-gradient(circle, #6ab0ff, #1d3a5c 70%); }
.vic__frame { position: absolute; left: 7%; right: 7%; top: 25%; bottom: 40%; z-index: 4; pointer-events: none; }
.vic__frame i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, .9); }
.vic__frame i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.vic__frame i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.vic__frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.vic__frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.vic__frame span { position: absolute; top: -20px; left: 2px; color: #fff; font-size: .68rem; letter-spacing: .1em; }
.vic.is-lit .vic__frame { opacity: 0; transition: opacity .6s; }
.vic__polaroids { position: absolute; right: 4%; bottom: 17%; z-index: 5; width: 104px; height: 128px; }
.polaroid {
  position: absolute; inset: 0; margin: 0; padding: 6px 6px 22px; border: 0; border-radius: 3px; background: #fff; cursor: zoom-in;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3); transform: rotate(var(--r)); animation: polaroid-in .9s cubic-bezier(.2, 1.2, .4, 1);
}
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; animation: develop 2.2s ease forwards; }
.polaroid__cap { position: absolute; left: 4px; right: 4px; bottom: 4px; overflow: hidden; color: #4b3a46; font-family: var(--script); font-size: .58rem; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
.vic__flash { position: absolute; inset: 0; z-index: 9; background: #fff; opacity: 0; pointer-events: none; }
.vic__flash.is-on { animation: flash .5s ease-out; }
.vic__controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); }
.shutter { display: grid; place-items: center; width: 74px; height: 74px; padding: 0; border: 5px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .25); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.shutter span { display: block; width: 50px; height: 50px; border-radius: 50%; background: #ff5c8a; transition: transform .1s; }
.shutter:active span { transform: scale(.85); }

/* ---------- Rainy chai date ---------- */
.chai { position: absolute; inset: 0; overflow: hidden; background: #1e1b33; }
.chai__sky { position: absolute; inset: 0; background: linear-gradient(180deg, #232045 0%, #3a3460 60%, #4a3f63 100%); }
.chai__rain { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.drop { position: absolute; top: -30px; left: var(--x); width: 1.5px; height: var(--h); background: linear-gradient(transparent, rgba(200, 220, 255, .75)); animation: rain var(--d) linear infinite; animation-delay: var(--delay); }
.chai__lamp { position: absolute; right: 6%; bottom: 24%; width: 6px; height: 54%; border-radius: 3px; background: #2e2a40; }
.chai__lamp::before { content: ""; position: absolute; top: -8px; left: -12px; width: 30px; height: 14px; border-radius: 8px 8px 4px 4px; background: #2e2a40; }
.chai__lamp::after { content: ""; position: absolute; top: 4px; left: -48px; width: 100px; height: 150px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 220, 140, .55), transparent 70%); }
.chai__stall { position: absolute; left: 6%; right: 14%; bottom: 24%; z-index: 2; height: 34%; }
.chai__roof { position: absolute; left: -4%; right: -4%; top: 0; height: 26px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(90deg, #2f6fb5 0 22px, #f4efe3 22px 44px); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.chai__roof::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: radial-gradient(circle at 11px 0, #2f6fb5 10px, transparent 11px) 0 0 / 44px 10px repeat-x; }
.chai__sign { position: absolute; top: 40px; left: 50%; padding: 4px 12px; border-radius: 6px; background: #ffd166; color: #5a3a00; font-size: .8rem; font-weight: 700; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 0 16px rgba(255, 209, 102, .5); }
.chai__counter { position: absolute; left: 8%; right: 8%; bottom: 0; height: 44%; border-radius: 8px 8px 0 0; background: linear-gradient(#a0683c, #7a4a24); }
.chai__kettle { position: absolute; left: 10%; top: -30px; width: 40px; }
.chai__kettle svg { display: block; width: 100%; height: auto; }
.chai__kettle i, .bhar i { position: absolute; left: 40%; top: -16px; width: 8px; height: 18px; border-left: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; animation: steam 2s ease-out infinite; }
.chai__jars { position: absolute; right: 10%; top: -28px; display: flex; gap: 4px; }
.chai__jars i { width: 18px; height: 28px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 4px 4px 6px 6px; background: linear-gradient(transparent 30%, #e8b65a 30%); }
.chai__jars i:nth-child(2) { background: linear-gradient(transparent 40%, #f3e2c2 40%); }
.chai__ground { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 24%; background: radial-gradient(ellipse 30% 12% at 30% 60%, rgba(255, 220, 140, .18), transparent 70%), radial-gradient(ellipse 24% 10% at 76% 40%, rgba(160, 180, 255, .16), transparent 70%), linear-gradient(#3b3550, #2a2540); }
.chai__person { position: absolute; bottom: 11%; z-index: 4; width: clamp(80px, 24vw, 100px); }
.chai__person--g { left: 16%; }
.chai__person--s { right: 16%; }
.bhar { position: absolute; top: 64%; z-index: 3; width: 16px; height: 15px; }
.bhar::before { content: ""; position: absolute; inset: 0; background: #c1663b; clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); }
.chai__person--g .bhar { left: 50%; }
.chai__person--s .bhar { left: 34%; }
.chai__bubble {
  position: absolute; bottom: calc(100% + 8px); z-index: 7; width: max-content; max-width: min(220px, 58vw); margin: 0; padding: 9px 12px;
  border-radius: 16px; background: #fff; color: var(--ink); font-size: .84rem; line-height: 1.38; box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  animation: pop-in .35s cubic-bezier(.2, 1.5, .4, 1);
}
.chai__bubble b { display: block; color: var(--pink-deep); font-size: .76rem; }
.chai__person--g .chai__bubble { left: -14%; }
.chai__person--s .chai__bubble { right: -14%; background: #e6f0ff; }
.chai__person--s .chai__bubble b { color: #2f6fb5; }
.chai__bubble::after { content: ""; position: absolute; top: 100%; border: 8px solid transparent; border-top-color: inherit; }
.chai__person--g .chai__bubble::after { left: 34px; border-top-color: #fff; }
.chai__person--s .chai__bubble::after { right: 34px; border-top-color: #e6f0ff; }
.chai__cake { position: absolute; left: -32%; top: 42%; z-index: 3; font-size: 2.4rem; opacity: 0; transform: scale(.3) translateY(20px); transition: opacity .5s, transform .6s cubic-bezier(.2, 1.6, .4, 1); filter: drop-shadow(0 0 12px rgba(255, 220, 140, .8)); }
.chai__cake.is-shown { opacity: 1; transform: none; }
.chai__tap { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 5; margin: 0; color: #cfc6ee; font-size: .8rem; text-align: center; animation: twinkle 1s ease-in-out infinite alternate; }
.chai .street__footer { z-index: 8; }

/* ---------- v4 keyframes ---------- */
@keyframes munch { 50% { transform: scaleY(.93) translateY(4px); } }
@keyframes serve { 50% { transform: rotate(-40deg); } }
@keyframes bhokatta { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); } }
@keyframes carriage-go { to { right: 110%; } }
@keyframes develop { from { filter: brightness(2.4) sepia(.6) blur(2px); } to { filter: sepia(.18) saturate(1.1); } }
@keyframes polaroid-in { from { opacity: 0; transform: translate(-150px, 60px) rotate(-30deg) scale(.4); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
@keyframes rain { from { transform: translate(0, 0) rotate(12deg); } to { transform: translate(-40px, 110vh) rotate(12deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleX(1); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px) scaleX(-1); } }

/* ==========================================================================
   v5: drawn Victoria polaroids · ghost reveal photo
   ========================================================================== */
.polaroid__art { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 2px; container-type: inline-size; animation: develop 2.2s ease forwards; }
.polaroid__art.sky-gold { background: linear-gradient(180deg, #ffb35c 0%, #ffe0a0 62%, #6aa860 62%, #4f8f45 100%); }
.polaroid__art.sky-pink { background: linear-gradient(180deg, #c9568a 0%, #ff9a7a 62%, #6aa860 62%, #4f8f45 100%); }
.polaroid__art.sky-dusk { background: linear-gradient(180deg, #4b3a8c 0%, #c9568a 40%, #ff9a5a 62%, #5f9e58 62%, #3f7a3d 100%); }
.polaroid__art.sky-lit { background: linear-gradient(180deg, #1d1640 0%, #5b3a7a 62%, #3f7a3d 62%, #2f5f30 100%); }
.polaroid__sun { position: absolute; left: 60%; top: 30%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff3b0, rgba(255, 179, 71, .85) 60%, transparent 72%); }
.sky-lit .polaroid__sun { left: 72%; top: 8%; width: 14%; background: radial-gradient(circle, #fffbe0, #ffe08a 70%, transparent 72%); }
.polaroid__art .victoria { position: absolute; left: 4%; top: 25%; width: 92%; height: auto; -webkit-box-reflect: unset; filter: none; }
.sky-lit .victoria { filter: drop-shadow(0 0 4px rgba(255, 214, 120, .9)); }
.sky-lit .victoria__lights circle { opacity: 1; }
.polaroid__girl { position: absolute; bottom: 1%; left: 30%; width: 40%; height: auto; overflow: visible; }
.shot-wave .polaroid__girl { left: 22%; }
.shot-peace .polaroid__girl { left: 34%; }
.shot-heart .polaroid__girl { left: 40%; }
.shot-cheer .polaroid__girl { left: 30%; }
.polaroid__sticker { position: absolute; top: 6%; left: 50%; font-size: 11cqw; transform: translateX(-50%); animation: bob 2.4s ease-in-out infinite; }
.lightbox__art { position: relative; width: min(86vw, 420px); padding: 10px 10px 4px; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); animation: pop-in .4s cubic-bezier(.2, 1.4, .4, 1); }
.lightbox__cap { margin: 8px 0 6px; color: #4b3a46; font-family: var(--script); font-size: 1.2rem; text-align: center; }

.ghost-photo {
  position: absolute; left: 50%; top: 31%; z-index: 6; width: min(220px, 60vw); padding: 8px 8px 30px; border: 0; border-radius: 4px; cursor: zoom-in;
  background: #fff; box-shadow: 0 0 40px rgba(220, 215, 255, .65), 0 14px 30px rgba(0, 0, 0, .45);
  transform: translateX(-50%) rotate(-4deg); animation: pop-in .6s cubic-bezier(.2, 1.5, .4, 1);
  transition: width .6s, top .6s, left .6s, transform .6s;
}
.ghost-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ghost-photo__cap { position: absolute; left: 6px; right: 6px; bottom: 6px; overflow: hidden; color: #4b3a46; font-family: var(--script); font-size: .78rem; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.ghost-photo.is-pinned { top: 46%; left: 74%; width: 112px; padding-bottom: 22px; transform: translateX(-50%) rotate(7deg); }
.ghost-photo.is-pinned .ghost-photo__cap { font-size: .55rem; }
