/* Melody's Sound Safari — game styles.
   Layered SVG scenes, meerkat rig, parting bushes, film-strip polaroids. */

:root {
    --bush-dark: #3F7A28;
    --bush-base: #63A836;
    --bush-light: #8FCB4E;
    --sand: #E8C083;
    --strip: #FBEED6;
    /* fallbacks so foreground grass is never unstyled (black) */
    --grass-dark: #5C9A12; --grass: #7CB518; --grass-light: #A2D149;
}

/* theme the play SCREEN too, so the foreground grass fringe matches the level */
#screen-play[data-level="1"] { --grass-dark: #5C9A12; --grass: #7CB518; --grass-light: #A2D149; }
#screen-play[data-level="2"] { --grass-dark: #4E8F2C; --grass: #6FB53E; --grass-light: #9BD46A; }
#screen-play[data-level="3"] { --grass-dark: #4A6A2A; --grass: #5F8A32; --grass-light: #8AAE52; }

.screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.scene { position: absolute; inset: 0; z-index: 0; }
.scene .bg-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Per-level scene palettes ── */
.scene[data-level="1"] {
    --sky-top: #FFE9C7; --sky-mid: #FFF6E0; --sky-bot: #BDE8F7;
    --sun: #FCE38A; --mountain: #C9B6E8; --tree: #5C7A2E;
    --grass-dark: #5C9A12; --grass: #7CB518; --grass-light: #A2D149;
}
.scene[data-level="2"] {
    --sky-top: #C8F0FF; --sky-mid: #DBF6F0; --sky-bot: #EAF9E8;
    --sun: #FFF3B0; --mountain: #A6D8E8; --tree: #3E7A4E;
    --grass-dark: #4E8F2C; --grass: #6FB53E; --grass-light: #9BD46A;
}
.scene[data-level="3"] {
    --sky-top: #FFC26B; --sky-mid: #FF8FA0; --sky-bot: #B565D8;
    --sun: #FF9E5E; --mountain: #7A5AA0; --tree: #4A3A5C;
    --grass-dark: #4A6A2A; --grass: #5F8A32; --grass-light: #8AAE52;
}
.sky-top { stop-color: var(--sky-top); }
.sky-mid { stop-color: var(--sky-mid); }
.sky-bot { stop-color: var(--sky-bot); }

/* ── Backdrop animation ── */
.sun-rays { transform-box: fill-box; transform-origin: center; animation: ss-spin 60s linear infinite; }
.sun { transform-box: fill-box; transform-origin: center; animation: ss-sun-pulse 5s ease-in-out infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
@keyframes ss-sun-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.cloud { will-change: transform; }
/* negative delays so a cloud is already mid-sky the moment the scene loads */
.cloud-a { animation: ss-drift-a 95s linear infinite; animation-delay: -32s; }
.cloud-b { animation: ss-drift-b 135s linear infinite; opacity: 0.85; animation-delay: -88s; }
.cloud-c { animation: ss-drift-c 72s linear infinite; opacity: 0.7; animation-delay: -50s; }
@keyframes ss-drift-a { from { transform: translate(-170px, 88px); } to { transform: translate(1130px, 88px); } }
@keyframes ss-drift-b { from { transform: translate(-260px, 176px); } to { transform: translate(1200px, 176px); } }
@keyframes ss-drift-c { from { transform: translate(-210px, 52px); } to { transform: translate(1170px, 52px); } }

.bg-near { transform-box: fill-box; transform-origin: 0 0; animation: ss-branch-sway 7s ease-in-out infinite; }
@keyframes ss-branch-sway { 0%,100% { transform: rotate(0); } 50% { transform: rotate(2deg); } }

.fdot { transform-box: fill-box; transform-origin: center; animation: ss-fdot 3.4s ease-in-out infinite; }
@keyframes ss-fdot { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.25); opacity: 1; } }

.hill-hi { animation: ss-hill 12s ease-in-out infinite; }
@keyframes ss-hill { 0%,100% { opacity: 0.5; } 50% { opacity: 0.85; } }

/* foreground grass fringe */
.fg-grass {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%; height: 88px;
    z-index: 6;
    pointer-events: none;
    transform-box: fill-box; transform-origin: bottom center;
    animation: ss-grass-sway 5s ease-in-out infinite;
}
@keyframes ss-grass-sway { 0%,100% { transform: skewX(0); } 50% { transform: skewX(-1.4deg); } }

/* ══════════ START SCREEN ══════════ */
#screen-start { display: flex; }
.start-inner {
    position: relative;
    z-index: 3;
    margin: auto;
    width: min(92vw, 620px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
}
.game-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 4px 0 rgba(90,60,20,0.18));
}
.logo-top {
    font-size: clamp(1.3rem, 5vw, 2.1rem);
    color: #fff;
    background: var(--gk-orange);
    padding: 3px 18px;
    border-radius: 30px;
    transform: rotate(-4deg);
    box-shadow: 0 4px 0 #C85E00;
    letter-spacing: 1px;
}
.logo-main {
    font-size: clamp(2.4rem, 10vw, 4.2rem);
    color: #fff;
    -webkit-text-stroke: 3px #7A4A18;
    text-shadow: 0 5px 0 #7A4A18, 0 6px 10px rgba(0,0,0,0.25);
    margin-top: -4px;
}
.melody-start { width: clamp(150px, 34vw, 220px); margin: 2px 0 8px; }
.melody-svg { width: 100%; height: auto; display: block; overflow: visible; }

#btn-play { margin-top: 4px; font-size: clamp(1.4rem, 5vw, 1.9rem); min-height: 80px; padding: 14px 56px; }
#btn-album { margin-top: 14px; min-height: 64px; padding: 12px 28px; display: inline-flex; align-items: center; gap: 8px; }
.album-badge {
    background: #fff;
    color: var(--gk-orange);
    font-weight: 900;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 1rem;
}
.start-meta { display: flex; align-items: center; gap: 18px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.star-chip {
    background: rgba(255,255,255,0.92);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 1.3rem;
    color: var(--gk-orange);
    box-shadow: var(--gk-shadow);
}
.star-chip b { color: var(--gk-text); }
.level-meds { display: flex; gap: 12px; }
.level-med {
    width: 66px; height: 66px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--gk-shadow);
    cursor: pointer;
    position: relative;
    display: grid; place-items: center;
    transition: transform 0.15s;
}
.level-med:active { transform: scale(0.92); }
.level-med .med-sun { position: absolute; font-size: 2.6rem; color: var(--gk-yellow); opacity: 0.85; }
.level-med .med-num { position: relative; font-weight: 900; font-size: 1.3rem; color: #B5730B; }
.level-med.sel { background: var(--gk-yellow); box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(247,127,0,0.5); transform: scale(1.08); }
.level-med.sel .med-sun { opacity: 1; }
.level-med.locked { background: rgba(255,255,255,0.75); }
.level-med.locked .med-lock { font-size: 1.7rem; filter: grayscale(0.3); }
.level-med.shake { animation: ss-shake 0.4s; }

/* ══════════ MELODY RIG POSES ══════════ */
.mel-rig { transform-box: fill-box; transform-origin: 50% 100%; }
.mel-ear { transform-box: fill-box; transform-origin: 50% 80%; animation: ss-ear-twitch 4.5s ease-in-out infinite; }
.mel-ear-r { animation-delay: 0.6s; }
@keyframes ss-ear-twitch { 0%,92%,100% { transform: rotate(0); } 95% { transform: rotate(-7deg); } }
.mel-lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: ss-blink 4s ease-in-out infinite; }
@keyframes ss-blink { 0%,93%,100% { transform: scaleY(0); } 96% { transform: scaleY(1); } 98% { transform: scaleY(1); } }
.mel-arm-r { transform-box: fill-box; transform-origin: 84% 90%; transform: rotate(0); transition: transform 0.4s; opacity: 0; }
/* cup-ear pose */
.melody-start.cup .mel-arm-r, .melody-play.cup .mel-arm-r, .howto-mel.cup .mel-arm-r { opacity: 1; transform: rotate(-6deg); }
.melody-start.cup .mel-ear-r, .melody-play.cup .mel-ear-r, .howto-mel.cup .mel-ear-r {
    animation: none; transform: scale(1.18) rotate(-8deg); transform-origin: 50% 90%;
}
/* hop + raise camera on a correct find */
.melody-play.hop .mel-rig { animation: ss-hop 0.6s ease; }
@keyframes ss-hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-26px) scale(1.03); } }
.mel-camera { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.3s; }
.melody-play.raise .mel-camera { transform: translateY(-46px) scale(1.15); }
.melody-play.raise .mel-arm-r { opacity: 1; transform: rotate(-2deg); }

/* ══════════ PLAY SCREEN ══════════ */
.filmstrip {
    position: relative;
    z-index: 7;
    display: flex;
    justify-content: center;
    gap: clamp(6px, 1.4vw, 14px);
    padding: 10px 12px 6px;
}
.film-slot {
    width: clamp(52px, 11vw, 84px);
    height: clamp(58px, 12vw, 94px);
    background: rgba(255,255,255,0.55);
    border: 3px dashed rgba(255,255,255,0.85);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(90,60,30,0.15);
    display: grid; place-items: center;
    transform: rotate(-2deg);
}
.film-slot:nth-child(even) { transform: rotate(2deg); }
.film-slot.filled { border-style: solid; border-color: #fff; background: #fff; }
.film-slot.pulse { animation: ss-pulse 0.5s ease; }
.film-inner { width: 100%; height: 100%; display: grid; place-items: center; }
@keyframes ss-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.16); filter: brightness(1.2); } }

.stage {
    position: absolute;
    inset: 0;
    top: 0;
    z-index: 1;
}

.bushes {
    position: absolute;
    left: 0; right: 0;
    bottom: clamp(120px, 20vh, 190px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(16px, 3vw, 40px);
    padding: 0 clamp(70px, 8vw, 120px);
    z-index: 4;
}
.bush {
    width: clamp(120px, 17vw, 190px);
    transform: scale(var(--scale, 1));
    transform-origin: bottom center;
    flex: 0 0 auto;
}
.bush-hit {
    position: relative;
    width: 100%;
    background: none; border: none; padding: 0;
    cursor: pointer;
    display: block;
}
.bush-hit.disabled { cursor: default; }
.bush-svg { width: 100%; height: auto; display: block; overflow: visible; transform-box: fill-box; transform-origin: 50% 92%; animation: ss-sway 3.6s ease-in-out infinite; animation-delay: var(--sway-delay); }
@keyframes ss-sway { 0%,100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.bushes.shiver .bush-svg { animation: ss-shiver 0.16s linear infinite; }
@keyframes ss-shiver { 0% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } 100% { transform: rotate(-4deg); } }

.bush-leaf { transform-box: fill-box; transition: transform 0.55s cubic-bezier(0.3,1.2,0.4,1); }
.bush-leaf-l { transform-origin: 100% 90%; }
.bush-leaf-r { transform-origin: 0% 90%; }
.bush.open .bush-svg { animation: none; }
.bush.open .bush-leaf-l { transform: rotate(-54deg); }
.bush.open .bush-leaf-r { transform: rotate(54deg); }
.bush-animal-pop { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; }
.bush.open .bush-animal-pop { animation: ss-animal-pop 0.6s cubic-bezier(0.2,1.5,0.4,1) forwards; }
@keyframes ss-animal-pop {
    0% { opacity: 0; transform: translateY(34px) scale(1.12, 0.6); }
    55% { opacity: 1; transform: translateY(0) scale(0.9, 1.15); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── Peeking animal (the fair, skill-based cue: which bush hides which animal) ── */
.bush-peek {
    position: absolute;
    left: 50%;
    top: -4%;
    width: 62%;
    margin-left: -31%;            /* centre without using transform */
    z-index: 3;
    pointer-events: none;         /* taps go to the whole bush-hit */
    transition: opacity 0.25s ease;
}
.bush-peek .a-svg {
    display: block;
    width: 100%;
    height: auto;
    transform-box: fill-box;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 4px 4px rgba(40,55,20,0.3));
    animation: ss-peek-bob 3s ease-in-out infinite;
    animation-delay: var(--sway-delay);
}
@keyframes ss-peek-bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1deg); } }
/* gentle "that's not the one" head-shake, then it settles back */
.bush.nope .bush-peek .a-svg { animation: ss-peek-nope 0.55s ease; }
@keyframes ss-peek-nope {
    0%,100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-7px) rotate(-9deg); }
    75% { transform: translateX(7px) rotate(9deg); }
}
/* on a correct find the peeking head hands off to the full pop-up reveal */
.bush.open .bush-peek { opacity: 0; }
.bush.droop { filter: saturate(0.55) brightness(0.92); }
.bush.droop .bush-svg { transform: scaleY(0.9) rotate(0); animation: none; }
.bush.shake { animation: ss-shake 0.4s; }
@keyframes ss-shake { 0%,100% { transform: scale(var(--scale,1)) translateX(0); } 20% { transform: scale(var(--scale,1)) translateX(-8px) rotate(-2deg); } 60% { transform: scale(var(--scale,1)) translateX(8px) rotate(2deg); } }

/* animal blink shared */
.a-lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: ss-blink 4.2s ease-in-out infinite; }
.a-svg .a-lid, .bush-animal-pop .a-lid { animation-delay: 0.4s; }

.melody-play {
    position: absolute;
    left: clamp(-6px, 1vw, 20px);
    bottom: clamp(8px, 3vh, 30px);
    width: clamp(120px, 20vw, 190px);
    z-index: 5;
}

.ear-btn {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: clamp(14px, 4vh, 34px);
    width: 96px; height: 96px;
    border: none; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #FFF8EC, #F3D9A8);
    box-shadow: 0 8px 20px rgba(120,80,30,0.35), inset 0 2px 4px #fff;
    cursor: pointer;
    z-index: 8;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0;
    animation: ss-ear-bob 2.6s ease-in-out infinite;
}
.ear-btn:active { transform: translateX(-50%) scale(0.93); }
@keyframes ss-ear-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.ear-inner { width: 58px; height: 58px; }
.ear-svg { width: 100%; height: 100%; display: block; }
.ear-label { font-size: 0.72rem; font-weight: 900; color: #B5730B; margin-top: -2px; letter-spacing: 0.5px; }
.ear-rings { opacity: 0; }
.ear-btn.ring .ear-rings { animation: ss-rings 0.7s ease-out; }
@keyframes ss-rings { 0% { opacity: 0.8; transform: scale(0.5); transform-box: fill-box; transform-origin: center; } 100% { opacity: 0; transform: scale(1.5); transform-box: fill-box; transform-origin: center; } }

/* ══════════ POLAROID ══════════ */
.polaroid {
    position: relative;
    background: #fff;
    padding: 8%;
    padding-bottom: 14%;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(60,40,20,0.25);
}
.polaroid.mini { width: 100%; height: 100%; padding: 6px 6px 12px; border-radius: 4px; }
.pola-photo {
    background: linear-gradient(160deg, color-mix(in srgb, var(--tint, #cde) 70%, #fff), var(--tint, #cde));
    border-radius: 3px;
    aspect-ratio: 1 / 1;
    display: grid; place-items: center;
    overflow: hidden;
}
.pola-photo .a-svg { width: 92%; height: 92%; }
.pola-tape {
    position: absolute;
    top: -6px; left: 50%; transform: translateX(-50%) rotate(-3deg);
    width: 46%; height: 14px;
    background: rgba(252,191,73,0.7);
    border-radius: 2px;
}
.fly-polaroid { position: fixed; z-index: 60; width: 120px; pointer-events: none; }
.fly-polaroid .polaroid { width: 120px; }

/* ══════════ ALBUM SCREEN ══════════ */
#screen-album {
    background: linear-gradient(160deg, #B98A5B, #8C6239);
    overflow-y: auto;
    display: block;
}
.album-paper {
    position: absolute; inset: 14px;
    background:
        repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,0,0,0.03) 38px 40px),
        #D8B98A;
    border-radius: 18px;
    box-shadow: inset 0 0 60px rgba(90,50,20,0.35);
}
.album-wrap {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 20px 30px;
    display: flex; flex-direction: column;
    min-height: 100%;
}
.album-head { text-align: center; margin-bottom: 12px; }
.album-title { font-size: clamp(1.6rem, 5vw, 2.4rem); color: #FFF3DF; text-shadow: 0 3px 0 #6E4A22; }
.album-count { color: #FFF3DF; font-size: 1.1rem; margin-top: 2px; opacity: 0.95; }
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2vw, 20px);
    margin: 8px 0 20px;
}
.album-cell { display: block; }
.album-photo {
    display: block; width: 100%;
    background: none; border: none; padding: 0; cursor: pointer;
    transform: rotate(var(--tilt, -2deg));
}
.album-cell:nth-child(even) .album-photo { --tilt: 2.5deg; }
.album-cell:nth-child(3n) .album-photo { --tilt: -3deg; }
.album-photo.locked { cursor: default; }
.polaroid.album { padding: 9px 9px 30px; }
.polaroid.album .pola-photo.silhouette {
    background: #4A3B2C;
    display: grid; place-items: center;
}
.polaroid.album .silhouette .q { font-size: 2.4rem; color: #8A7358; font-weight: 900; }
.pola-star { position: absolute; top: 4px; right: 6px; font-size: 1.3rem; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
.pola-label {
    position: absolute; bottom: 6px; left: 0; right: 0;
    text-align: center; font-weight: 900; text-transform: capitalize;
    color: #5A4632; font-size: clamp(0.8rem, 2.4vw, 1.05rem);
}
.album-photo.stamp { animation: ss-stamp 0.5s cubic-bezier(0.2,1.5,0.4,1) backwards; }
@keyframes ss-stamp { 0% { transform: rotate(var(--tilt,-2deg)) scale(2.2); opacity: 0; } 60% { transform: rotate(var(--tilt,-2deg)) scale(0.9); opacity: 1; } 100% { transform: rotate(var(--tilt,-2deg)) scale(1); } }
.album-photo.wiggle { animation: ss-wiggle 0.5s ease; }
@keyframes ss-wiggle { 0%,100% { transform: rotate(var(--tilt,-2deg)); } 25% { transform: rotate(calc(var(--tilt,-2deg) - 6deg)); } 75% { transform: rotate(calc(var(--tilt,-2deg) + 6deg)); } }
.album-foot { margin-top: auto; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding-bottom: 8px; }
#album-back { min-height: 72px; }
#screen-album.complete .album-paper { background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,0.06) 38px 40px), linear-gradient(160deg, #F6D36B, #E0A32A); box-shadow: inset 0 0 70px rgba(255,220,120,0.6); }
#screen-album.complete .album-title::after { content: ' 🏆'; }

/* ══════════ OVERLAYS ══════════ */
.overlay {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    background: rgba(40,28,20,0.55);
    animation: gk-fade-in 0.25s ease;
    padding: 16px;
}
.gu-card { position: relative; max-width: min(92vw, 460px); text-align: left; }
.gu-card h2 { color: var(--gk-orange); margin-bottom: 10px; font-size: 1.5rem; }
.gu-card p { font-size: 1.02rem; line-height: 1.5; margin-bottom: 10px; }
.gu-close {
    position: absolute; top: -18px; right: -18px;
    width: 64px; height: 64px;
    border: none; border-radius: 50%;
    background: var(--gk-red); color: #fff;
    font-size: 1.6rem; font-weight: 900; cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.gu-close:active { transform: scale(0.9); }

/* how-to coach */
.howto-ov { background: rgba(30,22,14,0.62); flex-direction: column; }
.howto-card { text-align: center; max-width: min(92vw, 520px); }
.howto-mel { width: clamp(130px, 32vw, 190px); margin: 0 auto; }
.howto-text {
    color: #fff; font-size: clamp(1.1rem, 3.6vw, 1.5rem); font-weight: 800;
    margin: 8px 0 14px; text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    line-height: 1.35;
}
.howto-demo { position: relative; width: 150px; margin: 0 auto; }
.howto-demo .bush { width: 150px; }
.ghost-hand {
    position: absolute; right: 6px; bottom: -6px;
    font-size: 2.4rem; animation: ss-tap-hand 1.2s ease-in-out infinite;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4));
}
@keyframes ss-tap-hand { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* level unlock beat */
.unlock-ov { background: rgba(30,22,14,0.6); }
.unlock-card { text-align: center; max-width: min(90vw, 420px); }
.unlock-card h2 { color: var(--gk-orange); font-size: 1.7rem; }
.unlock-card p { font-size: 1.3rem; font-weight: 800; margin: 6px 0 16px; color: var(--gk-text); }
.unlock-sun { font-size: 4rem; color: var(--gk-yellow); animation: ss-rise 0.9s cubic-bezier(0.2,1.4,0.4,1); }
@keyframes ss-rise { 0% { transform: translateY(60px) scale(0.4); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }

/* camera flash / particles */
.cam-flash { position: fixed; inset: 0; z-index: 55; background: #fff; pointer-events: none; animation: ss-flash 0.2s ease-out; }
@keyframes ss-flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.leaf-bit { position: fixed; width: 14px; height: 10px; background: var(--bush-light); border-radius: 60% 60% 40% 40%; z-index: 55; pointer-events: none; }
.butterfly { position: fixed; z-index: 55; font-size: 1.5rem; pointer-events: none; }
.ambient-bfly {
    position: absolute; top: 30%; left: 24%;
    font-size: 1.7rem; z-index: 3; pointer-events: none;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.12));
    animation: ss-bfly-drift 20s ease-in-out infinite;
}
@keyframes ss-bfly-drift {
    0% { transform: translate(0,0) rotate(0); }
    20% { transform: translate(140px,-60px) rotate(12deg); }
    45% { transform: translate(300px,10px) rotate(-8deg); }
    60% { transform: translate(360px,-40px) rotate(10deg); }
    80% { transform: translate(180px,50px) rotate(-6deg); }
    100% { transform: translate(0,0) rotate(0); }
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 820px), (max-height: 780px) {
    .bushes { bottom: clamp(140px, 22vh, 200px); padding: 0 clamp(40px, 6vw, 80px); }
    .album-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (orientation: portrait) {
    .bushes {
        flex-wrap: wrap;
        bottom: clamp(150px, 20vh, 240px);
        gap: clamp(14px, 3vw, 30px) clamp(20px, 5vw, 40px);
    }
    .melody-play { width: clamp(110px, 22vw, 160px); }
    /* keep the film strip clear of the fixed top-right HUD */
    .filmstrip { padding-left: 14px; padding-right: 252px; justify-content: center; }
    .film-slot { width: 58px; height: 66px; }
}
@media (max-width: 560px) {
    .album-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
    .sun-rays, .sun, .cloud, .bg-near, .fdot, .hill-hi, .fg-grass,
    .mel-ear, .mel-lid, .a-lid, .bush-svg, .ear-btn, .ghost-hand,
    .ambient-bfly, .melody-start.gk-bob { animation: none !important; }
    .bushes.shiver .bush-svg { animation: none !important; }
}
