#landing-screen h1 {
    font-family: "Rubik Bubbles", system-ui;
}

#landing-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.cloud {
    position: absolute;
    pointer-events: none;
}

/* DESKTOP STYLES (1920x1080) - Base */

.cloud-topleft {
    top: -15%;
    left: -20%;
    width: 100%;
}

.cloud-topright {
    top: -11%;
    right: -35%;
    width: 100%;
}

.cloud-midleft {
    top: 20%;
    left: -13%;
    width: 105%;
}

.cloud-midright {
    top: 20%;
    right: -25%;
    width: 105%;
}

.cloud-btmleft {
    bottom: -32%;
    left: -20%;
    width: 100%;
}

.cloud-btmright {
    bottom: -19%;
    right: -14%;
    width: 80%;
}

.cloud-topcenter {
    top: -12%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.cloud-midbtm {
    bottom: -9%;
    left: 70%;
    transform: translateX(-50%);
    width: 70%;
}

.cloud-moon {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78%;
}

.wishing-well-btn {
    position: absolute;
    bottom: 35%;
    left: 60%;
    transform: translateX(-50%);
    width: 30%;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.wishing-well-btn:hover {
    cursor: pointer;
    transform: translateX(-50%) scale(1.1);
    filter: drop-shadow(0 0 30px rgba(0, 191, 255, 1)) drop-shadow(0 0 60px rgba(0, 191, 255, 0.8));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.forest-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: -1;
}

#permission-screen {
    display: none;
}

.title-welcome {
    font-family: "Rubik Bubbles", system-ui;
    position: absolute;
    top: -24%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 19rem;
    z-index: 10;
}

.title-tothe {
    font-family: "Rubik Bubbles", system-ui;
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 3rem;
    z-index: 10;
    -webkit-text-stroke: 1px black;
}

@keyframes exit-left {
    to {
        transform: translateX(-150%);
    }
}

@keyframes exit-right {
    to {
        transform: translateX(150%);
    }
}

@keyframes exit-up {
    to {
        transform: translateX(-50%) translateY(-150%);
    }
}

@keyframes exit-down {
    to {
        transform: translateX(-50%) translateY(150%);
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes sign-enter {
    from {
        bottom: -100%;
    }
    to {
        bottom: 10%;
    }
}

@keyframes bubble-pop {
    0% {
        transform: translate(-50%, -50%) rotate(-3.5deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(-3.5deg) scale(1.3);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-3.5deg) scale(0);
        opacity: 0;
    }
}

@keyframes tree-exit-left {
    to {
        transform: translateX(-150%);
    }
}

@keyframes tree-exit-right {
    to {
        transform: translateX(150%);
    }
}

@keyframes tree-exit-down {
    to {
        transform: translateY(150%);
    }
}

@keyframes wish-well-enter {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes wish-rock-enter {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes wish-coin-drop {
    from {
        transform: translateY(-300%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes wish-mushroom-enter {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes wish-mushroom-middle-enter {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes wish-fairy-sign-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wish-coin-exit {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(200%);
        opacity: 0;
    }
}

.animate-left {
    animation: exit-left 2s ease forwards;
}

.animate-right {
    animation: exit-right 2s ease forwards;
}

.animate-up {
    animation: exit-up 2s ease forwards;
}

.animate-down {
    animation: exit-down 2s ease forwards;
}

.animate-fade {
    animation: fade-out 2s ease forwards;
}

.sign-animate-in {
    animation: sign-enter 1.5s ease-out forwards;
}

.bubble-pop {
    animation: bubble-pop 0.4s ease-out forwards;
}

.tree-animate-left {
    animation: tree-exit-left 1.5s ease-in forwards;
}

.tree-animate-right {
    animation: tree-exit-right 1.5s ease-in forwards;
}

.tree-animate-down {
    animation: tree-exit-down 1.5s ease-in forwards;
}

.trees-exit .tree-topleft {
    animation: tree-exit-left 1.5s ease-in forwards;
    animation-delay: 0s;
}

.trees-exit .tree-topright {
    animation: tree-exit-right 1.5s ease-in forwards;
    animation-delay: 0.2s;
}

.trees-exit .tree-midcenter {
    animation: fade-out 1.5s ease-in forwards;
    animation-delay: 0.4s;
}

.trees-exit .tree-btmleft {
    animation: tree-exit-left 1.5s ease-in forwards;
    animation-delay: 0.6s;
}

.trees-exit .tree-btmright {
    animation: tree-exit-right 1.5s ease-in forwards;
    animation-delay: 0.8s;
}

.trees-exit .sign-container {
    animation: tree-exit-down 1.5s ease-in forwards;
    animation-delay: 1s;
}

.trees-exit .tree-btmcenter {
    animation: tree-exit-down 1.5s ease-in forwards;
    animation-delay: 1.2s;
}

/* Wish assets entrance animations triggered by .wish-assets-enter */

.wish-assets-enter .wish-well {
    animation: wish-well-enter 1s ease-out forwards;
    animation-delay: 0s;
}

.wish-assets-enter .wish-rock {
    animation: wish-rock-enter 1s ease-out forwards;
    animation-delay: 0.5s;
}

.wish-assets-enter .mushroom-left {
    animation: wish-mushroom-enter 1s ease-out forwards;
    animation-delay: 1s;
}

.wish-assets-enter .mushroom-middle {
    animation: wish-mushroom-middle-enter 1s ease-out forwards;
    animation-delay: 1.2s;
}

.wish-assets-enter .mushroom-right {
    animation: wish-mushroom-enter 1s ease-out forwards;
    animation-delay: 1.4s;
}

.wish-assets-enter .fairy-sign-container {
    animation: wish-fairy-sign-enter 1s ease-out forwards;
    animation-delay: 1.6s;
}

.wish-assets-enter .wish-coin {
    animation: wish-coin-drop 0.8s ease-in forwards;
    animation-delay: 2s;
}

.wish-assets .coin-exit {
    animation: wish-coin-exit 1s ease-in forwards;
}

.wish-assets .coin-return {
    animation: wish-coin-drop 0.8s ease-out forwards;
}

/* ===== PERMISSION SCREEN ===== */

#permission-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: none;
}

.permission-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.tree {
    position: absolute;
    pointer-events: none;
}

.tree-topleft {
    top: 0;
    left: 0;
    width: 37%;
    z-index: 2;
}

.tree-topright {
    top: 0;
    right: -40%; 
    width: 100%;
    z-index: 2;
}

.tree-midcenter {
    top: 9%;
    left: 50%;
    transform: translateX(-50%); /* centers element when using left: 50% */
    width: 110%;
    z-index: 2;
}

.tree-btmleft {
    bottom: 0; 
    left: auto;
    width: 100%;
    z-index: 2;
}

.tree-btmright {
    bottom: auto%;
    right: -90%;
    width: 150%;
    z-index: 2;
}

.tree-btmcenter {
    bottom: -33%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 5; /* IMPORTANT: higher than sign (z-index: 4) so it overlaps signs base */
}

.sign-container {
    position: absolute;
    bottom: -100%; /* starts off-screen below viewport */
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.bubble-btn {
    position: absolute;
    top: 45%;
    left: 53%;
    transform: translate(-50%, -50%) rotate(-3.5deg); /* negative = tilts left, positive = tilts right */
    font-family: "Rubik Bubbles", system-ui;
    font-size: 2rem;
    padding: 5px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease; /* smooth hover */
}

.bubble-btn:hover {
    transform: translate(-50%, -50%) rotate(-3.5deg) scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.permission-sign {
    width: 650px; /* adjust with developer tools */
}

/* ===== WISH ASSETS (inside permission screen) ===== */

.wish-assets {
    display: none; /* hidden until trees exit */
}

.wish-assets img {
    position: absolute;
}

/* All wish assets start invisible except coin always visible */
.wish-assets .wish-well,
.wish-assets .wish-rock,
.wish-assets .wish-coin,
.wish-assets .fairy-sign-container,
.wish-assets .mushroom {
    opacity: 0;
}

.wish-well {
    bottom: 16%;
    left: 45%;
    transform: translateX(-50%);
    width: 68%; /* adjust with DevTools */
    z-index: 2;
}

.wish-rock {
    bottom: -3%;
    left: 5%;
    width: 50%;
    z-index: 3;
}

.wish-coin {
    bottom: 22%;
    left: 15%;
    width: 17%;
    z-index: 4; /* above rock */
    cursor: pointer;
}

.fairy-sign-container {
    position: absolute;
    right: -11%;
    bottom: 84%;
    width: 65%;
    z-index: 3;
}

.fairy-sign {
    width: 100%;
}

.mushroom {
    position: absolute;
    bottom: -2%;
    z-index: 5; /* foreground, in front of everything */
}

.mushroom-left {
    left: -4%;
    width: 25%;
}

.mushroom-middle {
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
}

.mushroom-right {
    right: -9%;
    width: 24%;
}

.wish-coin {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.wish-coin:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

/* ===== LISTENING SCREEN ===== */

#listening-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: none; /* hidden until audio plays */
    background-color: #1a1a2e; /* dark blue fallback */
}

.well-bottom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ripple-container {
    position: absolute;
    top: 79%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 1;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
}

@keyframes ripple-grow {
    0% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
    }
}

.ripple-1 {
    animation: ripple-grow 3s ease-out infinite;
    animation-delay: 0s;
}

.ripple-2 {
    animation: ripple-grow 3s ease-out infinite;
    animation-delay: 1s;
}

.ripple-3 {
    animation: ripple-grow 3s ease-out infinite;
    animation-delay: 2s;
}

/* ===== TABLET STYLES (768px - 1024px) ===== */

@media (max-width: 1024px) {
    /* LANDING SCREEN - TABLET */
    .title-welcome {
        top: -5%;
        font-size: 10rem;
    }

    .cloud-topleft {
        top: -12%;
        left: -30%;
        width: 100%;
    }

    .cloud-midleft {
        top: 15%;
        left: -29%;
        width: 125%;
    }

    .cloud-btmleft {
        bottom: -20%;
        left: -40%;
        width: 150%;
    }

    .cloud-btmright {
        bottom: -5%;
        right: -15%;
        width: 95%;
    }

    .cloud-midbtm {
        bottom: 5%;
        width: 150%;
    }

    .cloud-moon {
        width: 105%;
    }

    .wishing-well-btn {
        bottom: 38%;
        left: 65%;
        width: 45%;
    }

    /* PERMISSION SCREEN - TABLET */
    .tree-topleft {
        width: 87%;
    }

    .tree-midcenter {
        top: 40%;
        width: 120%;
    }

    .tree-btmleft {
        width: 200%;
    }

    .tree-btmright {
        bottom: -2%;
        right: -43%;
        width: 120%;
    }

    .tree-btmcenter {
        bottom: -11%;
        width: 106%;
    }

    /* WISH SCREEN - TABLET */
    .wish-well {
        left: 50%;
        width: 120%;
    }

    .wish-rock {
        bottom: 12%;
        left: 13%;
    }

    .fairy-sign-container {
        right: -30%;
        bottom: 70%;
        width: 90%;
    }

    /* LISTENING SCREEN - TABLET */
    .ripple-container {
        top: 72%;
        left: 54%;
    }
}

/* ===== MOBILE STYLES (under 768px) ===== */

@media (max-width: 768px) {
    /* LANDING SCREEN - MOBILE */
    .title-welcome {
        top: -2%;
        font-size: 5rem;
    }

    .cloud-topleft {
        top: -8%;
        left: -20%;
        width: 130%;
    }

    .cloud-topright {
        top: -7%;
        right: -25%;
        width: 70%;
    }

    .cloud-topcenter {
        top: -11%;
        width: 120%;
    }

    .cloud-midbtm {
        bottom: -10%;
        width: 180%;
    }

    .cloud-moon {
        width: 109%;
    }

    .wishing-well-btn {
        bottom: 40%;
        left: 65%;
        width: 50%;
    }

    .cloud-btmright {
        bottom: 2%;
        width: 190%;
    }

    .cloud-btmleft {
        bottom: -24%;
        left: -90%;
        width: 520%;
    }

    /* PERMISSION SCREEN - MOBILE */
    .permission-sign {
        width: 550px;
    }

    .tree-btmcenter {
        bottom: -8%;
        width: 150%;
    }

    .tree-btmleft {
        width: 350%;
    }

    .tree-topleft {
        width: 110%;
    }

    .tree-topright {
        right: -80%;
        width: 200%;
    }

    .tree-midcenter {
        top: 30%;
        width: 260%;
    }

    /* WISH SCREEN - MOBILE */
    .fairy-sign-container {
        right: -9%;
        bottom: 109%;
        width: 120%;
    }

    .wish-well {
        width: 140%;
    }

    .wish-rock {
        bottom: 8%;
        left: 4%;
        width: 74%;
    }

    .wish-coin {
        bottom: 21%;
        left: 25%;
        width: 22%;
    }

    .mushroom {
        bottom: -1%;
    }

    /* LISTENING SCREEN - MOBILE */
    .ripple-container {
        top: 72%;
        left: 52%;
    }
}