/* Reset & Base Toddler-friendly Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    /* Prevent iOS zoom and bounce */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(180deg, #66C7F2 0%, #FFF8E8 100%);
    color: #243B53;
    overflow: hidden;
}

/* Background Layar dengan Ilustrasi Alam */
.screen-bg-taman {
    background: url('../assets/backgrounds/garden-frame-v1.webp') no-repeat center / cover,
                linear-gradient(180deg, #70CFF8 0%, #C5EDFC 60%, #FFF8E8 100%);
}

/* Disable context menu, zoom, and refresh */
html {
    overscroll-behavior: none;
}

/* Palet Warna */
:root {
    --color-kuning-gala: #FFD84D;
    --color-biru-langit: #66C7F2;
    --color-mint-ceria: #72D6A0;
    --color-koral-hangat: #FF7D70;
    --color-ungu-mimpi: #9B8AE6;
    --color-jingga-mangga: #FFA64D;
    --color-krim-awan: #FFF8E8;
    --color-biru-malam: #243B53;
    --color-putih-susu: #FFFFFF;
}

/* Layout Screens */
.screen {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    right: env(safe-area-inset-right, 0px);
    bottom: env(safe-area-inset-bottom, 0px);
    left: env(safe-area-inset-left, 0px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Content Centering */
.content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

/* Layar Mulai Bergaya Storybook Ceria */
.screen-start-world {
    background: linear-gradient(180deg, #75D0F6 0%, #D7F3FC 62%, #F5F7D8 100%);
    overflow: hidden;
    position: fixed;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Dekorasi Latar Belakang Layar Mulai */
.start-bg-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.start-scenery-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.start-content-card {
    position: relative;
    z-index: 10;
    gap: clamp(1.2rem, 3vh, 2.2rem);
    width: min(94vw, 760px);
    height: 100%;
    padding: clamp(1rem, 2.5vh, 1.5rem);
}

/* Logo Cloud Badge Puffy */
.logo-cloud-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(0.7rem, 2vw, 1.2rem) clamp(1.6rem, 4vw, 3rem);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(36, 59, 83, 0.16),
                0 0 0 6px rgba(255, 255, 255, 0.6),
                0 0 0 12px rgba(102, 199, 242, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(8px);
}

.logo {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.02em;
    display: flex;
    gap: 0.4rem;
}

.logo-dunia {
    color: #26466D;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.06);
}

.logo-ceria {
    color: #FF5E57;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.06);
}

.logo-gala {
    color: #FFAE00;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.06);
}

.logo-sprinkles {
    font-size: 1.2rem;
    letter-spacing: 0.8rem;
    margin-top: 0.2rem;
    color: var(--color-jingga-mangga);
}

.logo-small {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-kuning-gala);
    text-shadow: 2px 2px 0 #E88C30;
}

.prompt-voice {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-biru-malam);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Maskot utama Toddler Gala */
.mascot {
    width: clamp(150px, 22vw, 210px);
    height: clamp(190px, 28vw, 270px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 14px 24px rgba(36, 59, 83, 0.2));
}

.mascot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.mascot-small {
    width: 90px;
    height: 90px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 12px rgba(36, 59, 83, 0.14));
}

.mascot-img-small {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Buttons - Jumbo untuk Anak */
.btn-jumbo {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 800;
    font-family: inherit;
    padding: 1.4rem 3.2rem;
    min-width: 280px;
    min-height: 96px;
    background: linear-gradient(180deg, #FFB326 0%, #FF6B4A 100%);
    color: white;
    border: 4px solid #FFFFFF;
    border-radius: 999px;
    box-shadow: 0 10px 0 #D44E32, 0 16px 28px rgba(36, 59, 83, 0.28);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
    touch-action: manipulation;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-start-play {
    animation: btnGentleBounce 2.5s ease-in-out infinite;
}

.btn-play-icon {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid white;
    filter: drop-shadow(0 2px 2px rgba(36, 59, 83, 0.2));
}

@keyframes btnGentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.btn-pulse-ring {
    position: absolute;
    inset: -8px;
    border: 4px solid rgba(255, 216, 77, 0.7);
    border-radius: 999px;
    animation: ringPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes ringPulse {
    0% { transform: scale(0.96); opacity: 0.9; }
    100% { transform: scale(1.12); opacity: 0; }
}

.btn-jumbo:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 0 #D44E32, 0 20px 32px rgba(36, 59, 83, 0.32);
}

.btn-jumbo:active {
    transform: translateY(6px) scale(0.97);
    box-shadow: 0 3px 0 #D44E32, 0 6px 12px rgba(36, 59, 83, 0.2);
}

/* Button Orang Tua - Kecil di Sudut */
.btn-parent, .btn-parent-game {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.btn-parent:hover, .btn-parent-game:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Button Back */
.btn-back {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top, 0px));
    left: max(1rem, env(safe-area-inset-left, 0px));
    padding: 0.75rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    color: var(--color-biru-malam);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.btn-back:active {
    transform: scale(0.95);
}

/* ==========================================================================
   Taman Permainan — Full Storybook World (Sesuai Style Frame v1)
   ========================================================================== */
.screen-taman-world {
    background: #66C7F2;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.taman-stage {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: calc(100dvh * (1448 / 1086));
    max-height: calc(100dvw * (1086 / 1448));
    aspect-ratio: 1448 / 1086;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 48px rgba(36, 59, 83, 0.3);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Hotspots overlay interaktif */
.hotspot {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

/* Taman modular — komponen dapat ditambah tanpa menggambar ulang background */
.screen-taman-world {
    background: #75D0F6;
}

.taman-stage {
    max-width: 1440px;
    max-height: none;
    aspect-ratio: auto;
    display: block;
    background: url('../assets/backgrounds/garden-frame-v1.webp') no-repeat center / cover,
                linear-gradient(180deg, #75D0F6 0%, #D7F3FC 62%, #F5F7D8 100%);
}

.taman-logo {
    position: absolute;
    z-index: 4;
    top: clamp(0.5rem, 1.5vh, 1rem);
    left: 50%;
    width: clamp(310px, 39vw, 440px);
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
    filter: drop-shadow(0 8px 16px rgba(36, 59, 83, 0.14));
}

.taman-art-button {
    position: absolute;
    padding: 0;
}

.taman-art-button img,
.taman-game-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.taman-sun {
    top: clamp(0.75rem, 2vh, 1.25rem);
    left: clamp(0.75rem, 2vw, 1.5rem);
    width: clamp(105px, 13vw, 150px);
    aspect-ratio: 240 / 220;
    border-radius: 50%;
}

.taman-sun:active {
    transform: scale(1.1) rotate(10deg);
}

.taman-parent-button {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    min-width: 148px;
    min-height: 54px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: rgba(255, 248, 232, 0.94);
    color: var(--color-biru-malam);
    box-shadow: 0 6px 16px rgba(36, 59, 83, 0.18);
    font: inherit;
    font-size: 1rem;
}

.taman-parent-button span {
    font-size: 1.35rem;
}

.taman-parent-button:active {
    transform: scale(0.95);
}

.taman-game-grid {
    position: absolute;
    z-index: 8;
    top: clamp(165px, 23vh, 185px);
    left: 50%;
    width: min(82%, 860px);
    padding: 0.6rem 0.75rem 1.1rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(190px, 23vw, 250px);
    gap: clamp(0.85rem, 2vw, 1.4rem);
    justify-content: start;
    overflow-x: auto;
    overflow-y: hidden;
    transform: translateX(-50%);
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
}

.taman-game-grid[data-count="1"],
.taman-game-grid[data-count="2"],
.taman-game-grid[data-count="3"] {
    justify-content: center;
}

@media (min-width: 960px) {
    .taman-game-grid[data-count="4"] {
        justify-content: center;
        width: min(94%, 980px);
        grid-auto-columns: clamp(175px, 20vw, 218px);
        gap: clamp(0.6rem, 1.4vw, 1.1rem);
    }
}

.taman-game-grid::-webkit-scrollbar {
    display: none;
}

.taman-game-card {
    position: relative;
    width: 100%;
    aspect-ratio: 372 / 436;
    padding: 0;
    border-radius: 2rem;
    scroll-snap-align: center;
    filter: drop-shadow(0 10px 14px rgba(36, 59, 83, 0.18));
    transform-origin: center;
}

.taman-game-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.taman-game-card:active {
    transform: translateY(4px) scale(0.97);
}

.taman-gala {
    z-index: 7;
    left: clamp(1rem, 4vw, 3.5rem);
    bottom: clamp(0.25rem, 1vh, 0.75rem);
    width: clamp(125px, 17vw, 180px);
    aspect-ratio: 8 / 9;
    border-radius: 40%;
}

.taman-gala:hover {
    transform: translateY(-6px) scale(1.04);
}

.taman-gala:active {
    transform: scale(0.95);
}

.taman-album {
    z-index: 7;
    right: clamp(1rem, 3vw, 2.5rem);
    bottom: clamp(0.4rem, 1vh, 0.8rem);
    width: clamp(205px, 27vw, 280px);
    aspect-ratio: 3 / 2;
    border-radius: 20%;
}

.taman-album:hover {
    transform: translateY(-5px) scale(1.03);
}

.taman-album:active {
    transform: scale(0.95);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-height: 680px) and (orientation: landscape) {
    .taman-logo {
        width: clamp(270px, 35vw, 360px);
    }

    .taman-game-grid {
        top: clamp(125px, 22vh, 150px);
        grid-auto-columns: clamp(165px, 21vw, 210px);
    }

    .taman-gala {
        width: clamp(125px, 18vw, 170px);
    }

    .taman-album {
        width: clamp(180px, 24vw, 230px);
    }
}

@media (orientation: portrait) {
    .taman-logo {
        top: 5rem;
        width: min(72vw, 430px);
    }

    .taman-sun {
        width: 105px;
    }

    .taman-parent-button strong {
        display: none;
    }

    .taman-parent-button {
        min-width: 56px;
        width: 56px;
        padding: 0;
    }

    .taman-game-grid {
        top: 27%;
        width: 94%;
        grid-auto-columns: min(58vw, 260px);
        justify-content: start !important;
    }

    .taman-gala {
        width: min(34vw, 190px);
    }

    .taman-album {
        width: min(44vw, 250px);
    }
}

/* Game Screens Background */
#screen-game-bubbles {
    background: url('../assets/backgrounds/balloon-sky-frame-v1.webp') no-repeat center / cover,
                linear-gradient(180deg, #55C2F5 0%, #DCF4FE 100%);
}

#screen-game-animals {
    background: url('../assets/backgrounds/zoo-frame-v1.webp') no-repeat center / cover,
                linear-gradient(180deg, #7CE0FE 0%, #EBF9E8 100%);
}

.game-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.placeholder-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Instruction Overlay */
.instruction {
    position: absolute;
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(36, 59, 83, 0.16);
    backdrop-filter: blur(8px);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 60;
}

.instruction.hidden {
    opacity: 0;
}

.instruction-hand {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    animation: tap-hint 1.5s ease-in-out infinite;
}

.instruction p {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: var(--color-biru-malam);
    text-shadow: none;
    white-space: nowrap;
}

.screen-game > .btn-back {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 248, 232, 0.94);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 14px rgba(36, 59, 83, 0.18);
}

/* ==========================================================================
   Game Kebun Binatang Cilik
   ========================================================================== */
.screen-zoo {
    background: radial-gradient(circle at 50% 20%, #B3E5FC 0%, #81D4FA 40%, #A5D6A7 75%, #66BB6A 100%);
    overflow: hidden;
}

/* Prompt Bar di atas */
.zoo-prompt-bar {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.94);
    border: 3px solid var(--color-kuning-gala);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    z-index: 50;
    max-width: 90vw;
}

.zoo-prompt-icon {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.zoo-prompt-text {
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: var(--color-biru-malam);
    white-space: nowrap;
}

.btn-zoo-repeat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-kuning-gala);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease;
}

.btn-zoo-repeat:active {
    transform: scale(0.9);
}

/* Progress Stars (3 bintang per ronde) */
.zoo-progress {
    position: absolute;
    top: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 40;
}

.zoo-star {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zoo-star.star-achieved {
    transform: scale(1.25);
    animation: celebrate 0.5s ease-in-out;
}

/* Zoo Container & Grid */
.zoo-container {
    padding: 7.5rem 2rem 2rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3vw, 2.5rem);
    width: 100%;
    max-width: 1100px;
    flex-wrap: nowrap;
}

/* Animal Card - Jumbo & Tactile untuk Balita */
.animal-card {
    position: relative;
    flex: 1 1 0;
    min-width: clamp(170px, 24vw, 280px);
    max-width: 320px;
    height: clamp(230px, 48vh, 340px);
    background: var(--animal-bg, #FFFFFF);
    border: 5px solid var(--animal-border, var(--color-kuning-gala));
    border-radius: 2.2rem;
    box-shadow: 0 10px 0 var(--animal-border, var(--color-kuning-gala)), 0 16px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem 1.25rem;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: scale-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.animal-card:active {
    transform: translateY(6px);
    box-shadow: 0 4px 0 var(--animal-border, var(--color-kuning-gala)), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.animal-avatar-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.animal-vector-img {
    width: clamp(120px, 18vw, 175px);
    height: clamp(120px, 18vw, 175px);
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(36, 59, 83, 0.14));
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prompt-animal-icon {
    width: clamp(32px, 5vw, 42px);
    height: clamp(32px, 5vw, 42px);
    object-fit: contain;
    vertical-align: middle;
}

.animal-emoji {
    font-size: clamp(5rem, 11vw, 7.8rem);
    line-height: 1;
    filter: drop-shadow(0 6px 10px rgba(36, 59, 83, 0.12));
    user-select: none;
    pointer-events: none;
}

/* Speech bubble kartun saat hewan disentuh */
.animal-speech-bubble {
    position: absolute;
    top: -10px;
    right: 5px;
    background: #FFFFFF;
    color: var(--color-biru-malam);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
    padding: 0.4rem 0.85rem;
    border-radius: 1rem;
    border: 2px solid var(--animal-border, #FFA000);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
    transition: all 0.2s ease;
    z-index: 10;
}

.animal-speech-bubble.visible {
    opacity: 1;
    animation: bubble-pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animal-name-badge {
    background: #FFFFFF;
    color: var(--color-biru-malam);
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 800;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    border: 2px solid rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
    .zoo-grid {
        flex-direction: column;
        gap: 1rem;
    }
    .animal-card {
        width: 85%;
        max-width: none;
        height: 120px;
        flex-direction: row;
        padding: 0.75rem 1.5rem;
    }
    .animal-emoji {
        font-size: 4rem;
    }
}

/* ==========================================================================
   Game 3: Cocokkan Bayangan (Shadow Matching Sesuai Style Frame v1)
   ========================================================================== */
.screen-matching {
    background: url('../assets/backgrounds/matching-frame-v1.webp') no-repeat center / cover,
                linear-gradient(180deg, #FFF9D6 0%, #DDF4F5 58%, #FFF1CE 100%);
    overflow: hidden;
}

.matching-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 6rem 1.5rem 2rem 1.5rem;
}

.matching-stage-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3.5vw, 2.5rem);
    max-width: 960px;
    width: 100%;
}

.matching-card {
    background: #FFFFFF;
    border-radius: 2rem;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.08), 0 16px 28px rgba(36, 59, 83, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
    user-select: none;
    touch-action: manipulation;
}

/* Kartu Target (Benda Asli Berwarna di Kiri) */
.matching-target-card {
    width: clamp(150px, 22vw, 210px);
    height: clamp(170px, 25vw, 240px);
    border: 5px solid #FFD54F;
    background: #FFFDF0;
    cursor: pointer;
    box-shadow: 0 10px 0 #FFB300, 0 16px 30px rgba(255, 179, 0, 0.25);
}

.matching-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.matching-img {
    width: clamp(90px, 14vw, 130px);
    height: clamp(90px, 14vw, 130px);
    object-fit: contain;
    pointer-events: none;
}

.target-bounce {
    animation: bounce-gentle 2.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(36, 59, 83, 0.16));
}

.shadow-img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.matching-card-label {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 800;
    color: var(--color-biru-malam);
}

.matching-divider {
    font-size: clamp(2rem, 4vw, 3rem);
    animation: tap-hint 1.8s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

.matching-options-area {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: center;
    justify-content: center;
}

/* Kartu Pilihan Bayangan (Kanan) */
.matching-shadow-card {
    width: clamp(140px, 20vw, 190px);
    height: clamp(160px, 23vw, 220px);
    border: 5px solid #D1C4E9;
    background: #F3E5F5;
    box-shadow: 0 8px 0 #B39DDB, 0 12px 24px rgba(36, 59, 83, 0.14);
    cursor: pointer;
}

.matching-shadow-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #B39DDB;
}

.matching-shadow-card:active {
    transform: translateY(4px) scale(0.97);
    box-shadow: 0 3px 0 #B39DDB;
}

/* Saat Cocok (Berhasil) */
.matching-matched {
    border-color: #66BB6A !important;
    background: #E8F5E9 !important;
    box-shadow: 0 12px 0 #43A047, 0 18px 32px rgba(76, 175, 80, 0.35) !important;
    transform: scale(1.08) !important;
}

/* Getar Lembut saat memilih yang berbeda (Zero-Fail) */
.matching-gentle-wobble {
    animation: gentleWobble 0.5s ease-in-out !important;
}

@keyframes gentleWobble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px) rotate(-3deg); }
    75% { transform: translateX(8px) rotate(3deg); }
}

/* Hint Lembut */
.matching-gentle-hint {
    border-color: #FFD54F !important;
    box-shadow: 0 0 24px 6px rgba(255, 213, 79, 0.8) !important;
    animation: pulseHint 1s ease-in-out infinite !important;
}

@keyframes pulseHint {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 650px) {
    .matching-stage-layout {
        flex-direction: column;
        gap: 1rem;
    }
    .matching-divider {
        transform: rotate(90deg);
        animation: none;
    }
    .matching-target-card {
        width: 170px;
        height: 150px;
    }
    .matching-shadow-card {
        width: 130px;
        height: 140px;
    }
}

/* Drag-and-drop revision: 4 objects × 4 shadows, 5 pages */
.matching-topbar {
    position: absolute;
    z-index: 55;
    top: max(1rem, env(safe-area-inset-top, 0px));
    left: 50%;
    width: min(620px, calc(100% - 12rem));
    min-height: 58px;
    padding: 0.6rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 2vw, 1.4rem);
    transform: translateX(-50%);
    border: 3px solid var(--color-kuning-gala);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(36, 59, 83, 0.15);
    color: var(--color-biru-malam);
    white-space: nowrap;
}

.matching-topbar strong {
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.matching-page-progress,
.matching-match-count {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 700;
}

.matching-page-progress {
    background: #E9DDFB;
}

.matching-match-count {
    background: #DDF5E7;
}

.matching-container {
    padding: 6rem 1rem 4.8rem;
    overflow: hidden;
}

.matching-drag-board {
    width: min(940px, 96vw);
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(0.7rem, 1.8vh, 1rem);
}

.matching-panel {
    min-height: 0;
    padding: 0.65rem 1rem 0.85rem;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 1.7rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(36, 59, 83, 0.12);
    backdrop-filter: blur(7px);
}

.matching-panel h3 {
    margin-bottom: 0.35rem;
    color: var(--color-biru-malam);
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    text-align: center;
}

.matching-item-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(105px, 155px));
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 2vw, 1.25rem);
}

.matching-drag-item,
.matching-shadow-slot {
    position: relative;
    width: 100%;
    height: clamp(135px, 18vh, 158px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1.45rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.matching-drag-item {
    padding: 0.45rem 0.55rem 0.55rem;
    border: 4px solid #FFD45C;
    background: #FFFDF3;
    box-shadow: 0 7px 0 #EFB93D, 0 11px 18px rgba(36, 59, 83, 0.13);
    color: var(--color-biru-malam);
    font: inherit;
    font-weight: 800;
    cursor: grab;
    touch-action: none;
}

.matching-drag-item:active {
    cursor: grabbing;
}

.matching-drag-item img,
.matching-shadow-slot img {
    width: min(86%, 112px);
    height: min(72%, 108px);
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.matching-drag-item img {
    filter: drop-shadow(0 5px 8px rgba(36, 59, 83, 0.16));
}

.matching-drag-item span {
    margin-top: 0.15rem;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    pointer-events: none;
}

.matching-shadow-slot {
    border: 4px dashed #AF9AD4;
    background: rgba(235, 225, 249, 0.9);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.matching-shadow-slot img {
    width: min(88%, 118px);
    height: min(82%, 118px);
    filter: brightness(0) saturate(100%) invert(20%) sepia(16%) saturate(1600%) hue-rotate(221deg) brightness(82%);
    opacity: 0.74;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.matching-drag-item.drag-source-active {
    opacity: 0.25;
}

.matching-drag-item.matched {
    opacity: 0;
    pointer-events: none;
}

.matching-shadow-slot.matched {
    border-style: solid;
    border-color: #63C98B;
    background: #E8F8EE;
    box-shadow: 0 7px 0 #49A96F, 0 11px 20px rgba(55, 145, 89, 0.2);
    animation: scale-in 0.35s ease both;
}

.matching-shadow-slot img.revealed {
    filter: drop-shadow(0 5px 8px rgba(36, 59, 83, 0.15));
    opacity: 1;
    transform: scale(1.05);
}

.matching-check {
    position: absolute;
    top: -9px;
    right: -7px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 3px solid white;
    border-radius: 50%;
    background: #48BC73;
    color: white;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 4px 9px rgba(36, 59, 83, 0.2);
}

.matching-drag-ghost {
    position: fixed;
    z-index: 30000;
    margin: 0;
    padding: 0.45rem 0.55rem 0.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    border-radius: 1.45rem;
    background: rgba(255, 248, 232, 0.96);
    box-shadow: 0 18px 36px rgba(36, 59, 83, 0.3);
    color: var(--color-biru-malam);
    font: inherit;
    font-weight: 800;
    pointer-events: none;
    transform: scale(1.06) rotate(-2deg);
}

.matching-drag-ghost img {
    width: min(86%, 112px);
    height: min(72%, 108px);
    object-fit: contain;
}

.matching-drag-ghost span {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
}

@media (max-height: 650px) and (orientation: landscape) {
    .matching-container {
        padding-top: 5.2rem;
        padding-bottom: 4rem;
    }

    .matching-drag-item,
    .matching-shadow-slot {
        height: clamp(108px, 18vh, 125px);
    }

    .matching-panel {
        padding-block: 0.4rem 0.55rem;
    }
}

@media (orientation: portrait) {
    .matching-topbar {
        top: 5rem;
        width: calc(100% - 2rem);
        flex-wrap: wrap;
        border-radius: 1.4rem;
    }

    .matching-container {
        padding-top: 10.5rem;
        overflow-y: auto;
    }

    .matching-item-row {
        grid-template-columns: repeat(2, minmax(115px, 160px));
    }
}

/* Reward Screen */
.reward-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-kuning-gala);
    text-shadow: 2px 2px 0 var(--color-jingga-mangga);
}

.reward-celebration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 3rem);
    width: min(92vw, 620px);
}

.reward-gala {
    width: clamp(145px, 24vw, 210px);
    max-height: 245px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(36, 59, 83, 0.18));
    animation: bounce-gentle 2.2s ease-in-out infinite;
}

.sticker-large {
    width: 200px;
    height: 200px;
    background: white;
    border: 4px solid var(--color-kuning-gala);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.reward-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem 2rem;
    min-width: 150px;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.btn-primary {
    background: var(--color-kuning-gala);
    color: var(--color-biru-malam);
    box-shadow: 0 4px 0 var(--color-jingga-mangga);
}

.btn-secondary {
    background: var(--color-putih-susu);
    color: var(--color-biru-malam);
    box-shadow: 0 4px 0 #ddd;
}

.btn-primary:active, .btn-secondary:active {
    transform: translateY(3px);
}

/* Album */
.album-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.album-header .btn-back,
.parent-header .btn-back {
    position: static;
    flex: 0 0 auto;
}

.album-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-biru-malam);
}

.album-container {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    padding: 2rem;
}

.album-page {
    max-width: 1200px;
    margin: 0 auto;
}

.album-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-biru-malam);
    margin-bottom: 1rem;
}

.album-canvas {
    width: 100%;
    min-height: 500px;
    background: url('../assets/backgrounds/garden-frame-v1.webp') no-repeat center / cover,
                linear-gradient(180deg, #BDEBFB 0%, #FFF8E8 100%);
    border: 5px solid var(--color-kuning-gala);
    border-radius: 2rem;
    box-shadow: 0 8px 24px rgba(36, 59, 83, 0.15);
    position: relative;
    touch-action: none;
    overflow: hidden;
}

.sticker-tray {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    border-top: 3px solid rgba(255, 255, 255, 0.9);
}

.sticker-item {
    width: 88px;
    height: 88px;
    background: white;
    border: 3px solid var(--color-kuning-gala);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.12s ease;
    padding: 8px;
}

.sticker-item:active {
    transform: scale(0.92);
}

.sticker-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.placed-sticker {
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    position: absolute;
    cursor: grab;
    touch-action: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.placed-sticker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.placed-sticker.dragging {
    cursor: grabbing;
    transform: scale(1.1);
    z-index: 100;
}

.reward-sticker-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    pointer-events: none;
}

/* Parent Area */
.screen-parent {
    background: var(--color-krim-awan);
}

.parent-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.parent-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-biru-malam);
}

.parent-content {
    flex: 1;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    overflow-y: auto;
}

.parent-section {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.parent-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-biru-malam);
    margin-bottom: 1rem;
}

.parent-section label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.parent-section input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

.parent-section input:disabled,
.parent-section select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.parent-section small,
.setting-note {
    color: #526779;
}

.setting-note {
    margin-top: 0.75rem;
    line-height: 1.45;
}

/* Parental gate */
.parent-gate {
    position: fixed;
    inset: 0;
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(36, 59, 83, 0.72);
    backdrop-filter: blur(8px);
}

.parent-gate.active {
    display: flex;
}

.parent-gate-card {
    width: min(560px, 100%);
    padding: 2rem;
    border-radius: 2rem;
    background: var(--color-krim-awan);
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.parent-gate-card h2 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.gate-stars {
    display: flex;
    justify-content: center;
    gap: clamp(3rem, 14vw, 8rem);
    margin: 2rem 0 1.25rem;
}

.gate-star {
    width: 100px;
    height: 100px;
    border: 4px solid var(--color-jingga-mangga);
    border-radius: 50%;
    background: var(--color-kuning-gala);
    color: var(--color-jingga-mangga);
    font-size: 3.5rem;
    touch-action: none;
    box-shadow: 0 6px 0 #d98327;
}

.gate-star.held {
    transform: translateY(5px) scale(0.96);
    box-shadow: 0 1px 0 #d98327;
}

.gate-progress {
    width: min(320px, 100%);
    height: 14px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e1e6e9;
}

.gate-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--color-mint-ceria);
}

.gate-progress.filling span {
    animation: gate-fill 2.5s linear forwards;
}

@keyframes gate-fill {
    to { width: 100%; }
}

.parent-section select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 0.5rem;
    background: white;
}

.btn-danger {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--color-koral-hangat);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Game 4: Cocokkan Bentuk (Toddler Gala & Cloud Chat)
   ========================================================================== */
.screen-shapes {
    background: radial-gradient(circle at 50% 12%, #FFFDE8 0%, #BAE7FE 40%, #B8EED5 80%, #90DFB7 100%);
    overflow: hidden;
    position: fixed;
    inset: 0;
}

.shapes-progress-bar {
    top: clamp(1rem, 2.5vh, 1.6rem);
}

.shapes-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.shapes-game-stage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(4.2rem, 9vh, 6.2rem) clamp(1rem, 3vw, 2.5rem) clamp(0.5rem, 2vh, 1.5rem);
    box-sizing: border-box;
}

/* Kolam Bentuk Mengapung di Atas / Tengah */
.shapes-pool-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.shapes-pool-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3.5vw, 2.8rem);
    width: 100%;
    padding: 0.75rem;
}

.shape-pool-item {
    width: clamp(105px, 16vw, 155px);
    height: clamp(105px, 16vw, 155px);
    background: rgba(255, 255, 255, 0.96);
    border: 6px solid #FFFFFF;
    border-radius: 2.4rem;
    box-shadow: 0 10px 0 rgba(36, 59, 83, 0.12), 0 18px 28px rgba(36, 59, 83, 0.18);
    cursor: pointer;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
}

.shape-pool-item:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 14px 0 rgba(36, 59, 83, 0.14), 0 22px 34px rgba(36, 59, 83, 0.22);
}

.shape-pool-item:active {
    transform: scale(0.96) translateY(4px);
    box-shadow: 0 4px 0 rgba(36, 59, 83, 0.12);
}

.shape-item-inner {
    width: 82%;
    height: 82%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shape-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(36, 59, 83, 0.14));
}

/* Floating animation delays */
@keyframes shapeFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(-1.5deg); }
}

.shape-float-delay-1 {
    animation: shapeFloat 3.2s ease-in-out infinite alternate;
}

.shape-float-delay-2 {
    animation: shapeFloat 3.8s ease-in-out 0.6s infinite alternate-reverse;
}

.shape-float-delay-3 {
    animation: shapeFloat 3.5s ease-in-out 1.2s infinite alternate;
}

/* Sukses Pencocokan */
.shape-matched {
    border-color: #72D6A0 !important;
    background: #E8F8F0 !important;
    box-shadow: 0 12px 0 #48BB78, 0 20px 36px rgba(72, 187, 120, 0.4) !important;
    transform: scale(1.18) rotate(6deg) !important;
    animation: shapeMatchCelebrate 0.8s ease-in-out forwards !important;
}

@keyframes shapeMatchCelebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.24) rotate(8deg); }
    100% { transform: scale(1.15) rotate(0deg); }
}

/* Getar Lembut saat memilih yang berbeda (Zero-Fail state) */
.shape-gentle-wobble {
    animation: shapeWobble 0.5s ease-in-out !important;
}

@keyframes shapeWobble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px) rotate(-4deg); }
    75% { transform: translateX(8px) rotate(4deg); }
}

/* Hint Lembut */
.shape-gentle-hint {
    border-color: #FFD84D !important;
    box-shadow: 0 0 28px 8px rgba(255, 216, 77, 0.85) !important;
    animation: shapeHintGlow 1s ease-in-out infinite !important;
}

@keyframes shapeHintGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* Bagian Bawah: Toddler Gala & Cloud Chat Box di Kiri Bawah */
.shapes-bottom-bar {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    z-index: 20;
    padding-bottom: 0.5rem;
}

.shapes-gala-presenter {
    display: flex;
    align-items: flex-end;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    position: relative;
}

.shapes-gala-mascot-wrapper {
    position: relative;
    width: clamp(95px, 13vw, 135px);
    height: clamp(125px, 17vw, 175px);
    filter: drop-shadow(0 10px 18px rgba(36, 59, 83, 0.22));
    flex-shrink: 0;
}

.shapes-gala-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    animation: bounce-gentle 2.4s ease-in-out infinite;
}

.shapes-gala-shadow {
    position: absolute;
    bottom: -6px;
    left: 15%;
    width: 70%;
    height: 12px;
    background: radial-gradient(ellipse at center, rgba(36, 59, 83, 0.28) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Instruction di layar Shapes ditempatkan di atas agar tidak menumpuk dengan Toddler Gala */
.screen-shapes .instruction {
    top: clamp(4.2rem, 8.5vh, 5.5rem);
    bottom: auto;
    z-index: 30;
}

/* Cloud Chat Box (Balon Ucapan Berbentuk Awan) */
.shapes-cloud-chat {
    background: #FFFFFF;
    border: 5px solid #FFD84D;
    border-radius: 2.2rem;
    padding: clamp(0.7rem, 1.8vw, 1.1rem) clamp(1.1rem, 2.5vw, 2rem);
    box-shadow: 0 10px 0 #E8BA20, 0 16px 32px rgba(36, 59, 83, 0.16);
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: clamp(1.4rem, 3.5vh, 3rem);
    animation: cloudChatBob 3s ease-in-out infinite;
    backdrop-filter: blur(8px);
    z-index: 25;
}

@keyframes cloudChatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cloud-pop-in {
    animation: cloudPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cloudPopIn {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Ekor awan mengarah ke Gala */
.cloud-tail-puffs {
    position: absolute;
    bottom: -18px;
    left: -8px;
    pointer-events: none;
}

.cloud-puff-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border: 4px solid #FFD84D;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(36, 59, 83, 0.1);
}

.cloud-puff-2 {
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border: 3px solid #FFD84D;
    border-radius: 50%;
}

.cloud-chat-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cloud-target-preview {
    background: #FFF8E8;
    border: 3px solid #FFE082;
    border-radius: 1.4rem;
    width: clamp(58px, 9vw, 72px);
    height: clamp(58px, 9vw, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    animation: targetPulse 2.2s ease-in-out infinite;
}

@keyframes targetPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.cloud-target-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.cloud-chat-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cloud-chat-label {
    font-size: clamp(0.82rem, 1.5vw, 1rem);
    font-weight: 700;
    color: #7B8A99;
}

.cloud-chat-name {
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: var(--color-biru-malam);
}

.btn-cloud-sound {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background: var(--color-kuning-gala);
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.15s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.btn-cloud-sound:active {
    transform: scale(0.9);
}

/* Animasi Toddler Gala saat Benar */
.gala-celebration-jump {
    animation: galaCelebrationJump 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes galaCelebrationJump {
    0%, 100% { transform: translateY(0); }
    35% { transform: translateY(-28px) scale(1.08); }
    70% { transform: translateY(-10px) scale(1.04); }
}

.gala-gentle-wiggle {
    animation: galaGentleWiggle 0.5s ease-in-out !important;
}

@keyframes galaGentleWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@media (max-width: 600px) {
    .shapes-bottom-bar {
        justify-content: center;
    }
    .shapes-gala-presenter {
        gap: 0.5rem;
    }
    .shapes-gala-mascot-wrapper {
        width: 76px;
        height: 100px;
    }
    .shapes-cloud-chat {
        padding: 0.5rem 0.85rem;
    }
}

@media (max-width: 600px) {
    .reward-celebration {
        gap: 0.75rem;
    }

    .reward-gala {
        width: 120px;
        max-height: 165px;
    }

    .sticker-large {
        width: 160px;
        height: 160px;
    }
}
