:root {
    /* Premium Kids Game Palette - Enhanced */

    /* Brand Colors */
    --color-primary: #FF2E93;
    --color-secondary: #8338EC;
    --color-accent: #FFBE0B;
    --color-success: #06D6A0;
    --color-info: #667EEA;

    /* Background - Enhanced */
    --color-bg-wood: #5D4037;
    --color-bg-table: radial-gradient(circle at center, #8D6E63 0%, #4E342E 100%);
    --color-bg-overlay: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(255, 46, 147, 0.03));

    /* Panels - Premium Glass Effect */
    --color-panel-bg: rgba(255, 255, 255, 0.98);
    --color-panel-border: linear-gradient(135deg, #FF2E93, #8338EC, #FFBE0B);
    --panel-border-width: 6px;
    --panel-radius: 32px;
    --shadow-panel: 0 20px 60px rgba(0, 0, 0, 0.25);
    --shadow-panel-glow: 0 0 40px rgba(255, 46, 147, 0.2);

    /* Enhanced Glossy Tile Colors */
    --tile-red: linear-gradient(135deg, #FF6B9D 0%, #FF2E93 50%, #D32F2F 100%);
    --tile-red-shadow: #B71C1C;
    --tile-red-glow: rgba(255, 46, 147, 0.4);

    --tile-green: linear-gradient(135deg, #B9F6CA 0%, #06D6A0 50%, #00C853 100%);
    --tile-green-shadow: #1B5E20;
    --tile-green-glow: rgba(6, 214, 160, 0.4);

    --tile-blue: linear-gradient(135deg, #80D8FF 0%, #667EEA 50%, #0091EA 100%);
    --tile-blue-shadow: #01579B;
    --tile-blue-glow: rgba(102, 126, 234, 0.4);

    --tile-orange: linear-gradient(135deg, #FFD180 0%, #FFBE0B 50%, #FF6D00 100%);
    --tile-orange-shadow: #E65100;
    --tile-orange-glow: rgba(255, 190, 11, 0.4);

    --tile-purple: linear-gradient(135deg, #CE93D8 0%, #8338EC 50%, #6A1B9A 100%);
    --tile-purple-shadow: #4A148C;
    --tile-purple-glow: rgba(131, 56, 236, 0.4);

    /* Text */
    --color-text-main: #1A1D23;
    --color-text-light: #64748B;
    --font-main: 'Outfit', 'Segoe UI', 'San Francisco', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    --font-hand: 'Bubblegum Sans', cursive;

    /* Background */
    --color-bg-page: #FFF8E1;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: url('../wallpaper_space.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--color-text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Enhanced Background Overlay with Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 190, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(6, 214, 160, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(131, 56, 236, 0.05) 0%, transparent 40%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

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

/* Base Classes */
.full-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.column {
    flex-direction: column;
}

/* Confetti */
.confetti {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f00;
    top: -50px;
    animation: rain 3s linear forwards;
    z-index: 101;
}

.confetti-particle {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    z-index: 999;
    pointer-events: none;
}

@keyframes rain {
    to {
        transform: translateY(110vh) rotate(720deg);
    }
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 1. Game Panel (The White Card) - Enhanced Premium */
.game-panel {
    background: var(--color-panel-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--panel-border-width) solid transparent;
    border-radius: var(--panel-radius);
    box-shadow: var(--shadow-panel), var(--shadow-panel-glow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Gradient Border Effect */
.game-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--panel-radius);
    padding: var(--panel-border-width);
    background: var(--color-panel-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderShine 3s ease-in-out infinite;
}

@keyframes borderShine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 2. Glossy Button/Tile - Enhanced with Glow */
.btn-tile {
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 900;
    font-size: 2rem;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
    overflow: hidden;

    /* Default Blue with Glow */
    background: var(--tile-blue);
    box-shadow: 0 8px 0 var(--tile-blue-shadow), 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--tile-blue-glow);
}

/* Shimmer Effect on Buttons */
.btn-tile::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.btn-tile:hover::before {
    transform: translateX(50%) translateY(50%) rotate(45deg);
}

.btn-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 var(--tile-blue-shadow), 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px var(--tile-blue-glow);
}

.btn-tile:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 var(--tile-blue-shadow), inset 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Variant Colors - Enhanced with Glows */
.btn-tile.red {
    background: var(--tile-red);
    box-shadow: 0 8px 0 var(--tile-red-shadow), 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--tile-red-glow);
}

.btn-tile.red:hover {
    box-shadow: 0 11px 0 var(--tile-red-shadow), 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px var(--tile-red-glow);
}

.btn-tile.red:active {
    box-shadow: 0 2px 0 var(--tile-red-shadow), inset 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-tile.green {
    background: var(--tile-green);
    box-shadow: 0 8px 0 var(--tile-green-shadow), 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--tile-green-glow);
}

.btn-tile.green:hover {
    box-shadow: 0 11px 0 var(--tile-green-shadow), 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px var(--tile-green-glow);
}

.btn-tile.green:active {
    box-shadow: 0 2px 0 var(--tile-green-shadow), inset 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-tile.orange {
    background: var(--tile-orange);
    box-shadow: 0 8px 0 var(--tile-orange-shadow), 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--tile-orange-glow);
}

.btn-tile.orange:hover {
    box-shadow: 0 11px 0 var(--tile-orange-shadow), 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px var(--tile-orange-glow);
}

.btn-tile.orange:active {
    box-shadow: 0 2px 0 var(--tile-orange-shadow), inset 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-tile.purple {
    background: var(--tile-purple);
    box-shadow: 0 8px 0 var(--tile-purple-shadow), 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--tile-purple-glow);
}

.btn-tile.purple:hover {
    box-shadow: 0 11px 0 var(--tile-purple-shadow), 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px var(--tile-purple-glow);
}

.btn-tile.purple:active {
    box-shadow: 0 2px 0 var(--tile-purple-shadow), inset 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: #FF9800;
    border: 3px solid #fff;
    color: white;
    font-size: 1.5rem;
    padding: 10px 30px;
    border-radius: 30px;
    box-shadow: 0 5px 0 #E65100, 0 10px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.1s;
    font-family: var(--font-main);
}

.btn-secondary:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #E65100;
}

/* 3. Beads (Shiny Spheres) */
.bead {
    border-radius: 50%;
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.bead::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: radial-gradient(white, transparent);
    border-radius: 50%;
    opacity: 0.8;
}

.bead.green {
    background: radial-gradient(circle at 30% 30%, #66BB6A, #1B5E20);
}

.bead.red {
    background: radial-gradient(circle at 30% 30%, #EF5350, #B71C1C);
}

.bead.yellow {
    background: radial-gradient(circle at 30% 30%, #FFEE58, #F57F17);
}

/* Common UI */
/* Mapping btn-core to match btn-tile style manually since CSS doesn't support @extend */
.btn-core {
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* Explicit size */

    /* Default Blue */
    background: var(--tile-blue);
    box-shadow: 0 6px 0 var(--tile-blue-shadow), 0 10px 10px rgba(0, 0, 0, 0.2);

    cursor: pointer;
    position: relative;
    transition: transform 0.1s;
    font-family: var(--font-main);
}

.btn-core:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 var(--tile-blue-shadow), inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- NEW V2 STYLES (COMMERCIAL GRADE) --- */

/* Top Navigation Bar */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    gap: 1rem;
}

.btn-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 4px solid transparent;
    border-radius: 60px;
    padding: 14px 28px;
    font-size: 1.9rem;
    font-weight: bold;
    color: var(--color-text-main);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-hand);
    min-width: 60px;
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

/* Gradient Border Effect */
.btn-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-nav:hover::after {
    opacity: 1;
}

/* Shimmer Effect */
.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s;
}

.btn-nav:hover::before {
    left: 100%;
}

.btn-nav:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 46, 147, 0.2);
}

.btn-nav:active {
    transform: scale(0.96) translateY(-2px);
}

.icon-lock {
    font-size: 1.2rem;
    opacity: 0.6;
}

/* Main Title Area */
.title-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: -60px;
    /* Offset for carousel */
    z-index: 10;
}

.game-title {
    font-size: 5rem;
    color: #fff;
    text-shadow:
        0 5px 0 var(--color-text-main),
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 190, 11, 0.3);
    line-height: 1.1;
    text-align: center;
    margin-bottom: 30px;
    transform: rotate(-3deg);
    font-family: var(--font-hand);
    animation: titleBounce 3s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

@keyframes titleBounce {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-10px); }
}

.daily-adventure-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 100%);
    border-radius: 36px;
    padding: 25px 45px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(255, 190, 11, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    cursor: pointer;
    animation: gentle-float 4s infinite ease-in-out;
    border: 6px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Border for Adventure Card */
.daily-adventure-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 36px;
    padding: 6px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary), var(--color-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.daily-adventure-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 190, 11, 0.6);
}

.daily-adventure-card:active {
    transform: translateY(-4px) scale(1.02);
}

.rocket-icon {
    font-size: 7rem;
    display: block;
    margin-bottom: 15px;
    animation: rocketBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
}

@keyframes rocketBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.cta-text {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--font-main);
    animation: textShine 2s ease-in-out infinite;
    position: relative;
}

@keyframes textShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Bottom Carousel Strip */
.carousel-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 6px solid #4DB6AC;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 90;
}

.carousel-track {
    flex: 1;
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.game-tile {
    min-width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.12), 0 12px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    cursor: pointer;
    border: 4px solid #eee;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.game-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-tile:hover::before {
    opacity: 1;
}

.game-tile:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 14px 0 rgba(0, 0, 0, 0.12), 0 18px 24px rgba(0, 0, 0, 0.2);
    border-color: #00BCD4;
}

.game-tile:active {
    transform: translateY(6px) scale(1.02);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 6px 10px rgba(0, 0, 0, 0.15);
}

.game-tile.selected {
    border-color: #FF9800;
    transform: scale(1.08);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.12), 0 12px 16px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(255, 152, 0, 0.3);
}

.tile-icon {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: tileIconFloat 3s ease-in-out infinite;
}

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

.game-tile:hover .tile-icon {
    animation: tileIconBounce 0.6s ease-in-out;
}

@keyframes tileIconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.15); }
}

.tile-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #5D4037;
    text-align: center;
    line-height: 1.2;
    font-family: var(--font-hand);
}

/* Color Variants for Tiles */
.tile-blue {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-color: #2196F3;
}

.tile-green {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-color: #4CAF50;
}

.tile-orange {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-color: #FF9800;
}

.tile-purple {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    border-color: #9C27B0;
}

.tile-red {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border-color: #F44336;
}

.carousel-arrow {
    border-radius: 50%;
    border: 3px solid #fff;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 0 #AF6C00;
    z-index: 95;
    flex-shrink: 0;
    transition: transform 0.1s;
    /* Toddler Target Size */
    width: 80px;
    height: 80px;
}

.carousel-arrow:hover {
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #AF6C00;
}

/* Parents Gate Overlay */
.parents-gate {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.gate-msg {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--font-main);
}

.gate-actions {
    display: flex;
    gap: 20px;
}

.gate-btn {
    padding: 15px 40px;
    border-radius: 15px;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-cancel {
    background: #555;
    color: #fff;
}

.btn-confirm {
    background: #4CAF50;
    color: #fff;
}

/* Hold Gate Specifics */
.gate-actions.column {
    flex-direction: column;
    align-items: center;
}

.btn-giant {
    font-size: 2.5rem;
    padding: 30px 60px;
    border-radius: 25px;
    background: #2196F3;
    color: white;
    border: 6px solid #fff;
    box-shadow: 0 10px 0 #0D47A1;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
    -webkit-user-select: none;
    font-family: var(--font-main);
}

.btn-giant:active,
.btn-giant.holding {
    transform: scale(0.95);
    background: #1976D2;
    box-shadow: 0 4px 0 #0D47A1;
}

.progress-bar-container {
    width: 300px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
    border: 2px solid #555;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #4CAF50;
    width: 0%;
}

/* Sticker Preview */
.stickers-preview {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 3rem;
}

.floating-sticker {
    display: inline-block;
    animation: float 3s infinite ease-in-out;

    margin: 0 10px;
}

/* Sticker Book */
.sticker-book {
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23FFE0B2" opacity="0.5"/></svg>'), #FFF8E1;
    overflow: hidden;
    /* Fix: Prevent whole page scroll */
}

.sticker-header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFECB3;
    border-bottom: 4px solid #FFCA28;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.sticker-grid {
    flex: 1;
    width: 100%;
    max-width: 900px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-content: flex-start;
    overflow-y: auto;
    /* Fix: Scroll content only */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    padding-bottom: 100px;
    /* Add padding for bottom scroll */
}

.sticker-item {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(calc(var(--r, 0deg)));
    transition: transform 0.2s;
}

.sticker-item:hover {
    transform: scale(1.2) rotate(10deg);
}

.sticker-item:nth-child(2n) {
    --r: 5deg;
}

.sticker-item:nth-child(3n) {
    --r: -5deg;
}

.empty-msg {
    font-size: 2rem;
    color: #8D6E63;
    opacity: 0.6;
    margin-top: 50px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Game Interface */
.game-viewport {
    width: 95vw;
    height: 85vh;
    max-height: 850px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 90px 25px 25px 25px;
    margin: 15px auto;
    border: 6px solid #FFF;
    transition: all 0.3s ease;
}

.game-header {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    gap: 1rem;
}

.game-header button {
    pointer-events: auto;
}

.btn-icon {
    background: #fff;
    border: 5px solid #eee;
    font-size: 2.4rem;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-icon:hover::before {
    opacity: 1;
}

.btn-icon:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    border-color: #00BCD4;
}

.btn-icon:active {
    transform: scale(0.92);
    background-color: #f5f5f5;
}

.level-indicator {
    background: #FF9800;
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.8rem;
    font-family: var(--font-hand);
    /* Use playful font */
    box-shadow: 0 4px 0 #E65100;
    border: 3px solid #fff;
}

/* Game Modes */
.count-container {
    flex-direction: column;
    gap: 30px;
    /* Increased gap */
    width: 100%;
    max-width: 900px;
    align-items: center;
}

.items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 100%;
    padding: 15px;
    align-items: center;
}

.game-item {
    font-size: 5.5rem;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24%;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 24%;
    opacity: 0.6;
}

.game-item:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.game-item:active,
.game-item.pulse {
    transform: scale(1.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.options-row {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
    padding: 10px;
}

.option {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: 0 6px 0 var(--tile-blue-shadow), 0 10px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 var(--tile-blue-shadow), 0 12px 20px rgba(0, 0, 0, 0.25);
}

.option:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--tile-blue-shadow), 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes point-click {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hand Pointer */
.hand-pointer {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    font-size: 5rem !important;
    /* Force large size */
}

/* Feedback Overlay */
.feedback-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 12rem;
    /* Larger */
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feedback-overlay.active {
    transform: translate(-50%, -50%) scale(1);
    animation: wobble 0.6s ease-in-out;
}

@keyframes wobble {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
    }

    15% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(1.1);
    }

    30% {
        transform: translate(-50%, -50%) rotate(8deg) scale(1.1);
    }

    45% {
        transform: translate(-50%, -50%) rotate(-6deg) scale(1.1);
    }

    60% {
        transform: translate(-50%, -50%) rotate(4deg) scale(1.1);
    }

    75% {
        transform: translate(-50%, -50%) rotate(-2deg) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

/* Celebration Overlay */
.celebration-overlay {
    background: rgba(0, 0, 0, 0.85);
    z-index: 500;
    transition: opacity 0.5s;
}

.celebration-emoji {
    font-size: 12rem;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
}

.sticker-reward {
    font-size: 8rem;
    background: white;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 0 50px white;
    margin-top: 20px;
    animation: spinPop 1s ease-out;
}

@keyframes spinPop {
    from {
        transform: scale(0) rotate(-180deg);
    }

    to {
        transform: scale(1) rotate(0deg);
    }
}

.fade-out {
    opacity: 0;
}

/* Instruction Toast */
.instruction-toast {
    position: absolute;
    bottom: 20%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 2rem;
    animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.animate-pop {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-drop {
    animation: dropIn 0.5s ease-out backwards;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes point-click {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.2);
    }
}

/* --- Game Mode Specifics --- */

/* Compare Game */
.compare-container {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.compare-side {
    flex: 1;
    height: 80%;
    background: #fff;
    border: 4px solid #eee;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.compare-side:active {
    transform: scale(0.95);
    border-color: #00BCD4;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mini-item {
    font-size: 3rem;
}

/* Pattern Game */
.pattern-container {
    width: 100%;
    gap: 40px;
}

.sequence-row {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 20px;
}

.seq-item {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.seq-item.question {
    background: #eee;
    color: #bbb;
    border: 2px dashed #ccc;
    box-shadow: none;
}

/* Find Odd Game */
.odd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-item {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.grid-item:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

/* Sort Game */
.sort-game {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.items-pool {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-item {
    font-size: 4rem;
    cursor: pointer;
    transition: transform 0.2s;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.sort-item:hover {
    transform: scale(1.1);
}

.baskets-row {
    display: flex;
    justify-content: space-around;
    padding-bottom: 20px;
}

.basket {
    width: 200px;
    /* Increased from 150px */
    height: 150px;
    /* Increased from 100px */
    border: 6px dashed #8D6E63;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px 20px 50px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #5D4037;
    font-size: 2rem;
    /* Bigger text */
    text-align: center;
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

.draggable {
    touch-action: none;
    cursor: grab;
}

.dragging {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Toddler Enhancements */
.game-item,
.sort-item,
.grid-item,
.btn-tile,
.option,
.basket,
.btn-icon,
.btn-giant,
.btn-secondary {
    min-width: 100px;
    /* Increased from 80px */
    min-height: 100px;
    /* Increased from 80px */
    touch-action: none;
    /* Prevent zoom */
}

.game-item {
    font-size: 8rem;
    /* Increased from 6rem */
}

.instruction-sub {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
    }

    50% {
        box-shadow: 0 5px 25px rgba(33, 150, 243, 0.5);
    }
}

.hand-pointer {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

/* --- MISSING GAME STYLES (Restored) --- */

/* 1. Compare Game ({..} vs {..}) */
.compare-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    height: 100%;
}

.compare-side {
    background: rgba(255, 255, 255, 0.5);
    border: 4px dashed #BCAAA4;
    border-radius: 20px;
    padding: 20px;
    min-width: 300px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Interaction hint */
    transition: transform 0.2s, background 0.2s;
}

.compare-side:active {
    transform: scale(0.95);
    background: #FFECB3;
    border-color: #FFCA28;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mini-item {
    font-size: 3rem;
}

/* 2. Pattern Game (A B A ?) */
.pattern-container {
    width: 100%;
    gap: 40px;
}

.sequence-row {
    display: flex;
    gap: 20px;
    background: #FFF3E0;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.1);
}

.seq-item {
    width: 100px;
    height: 100px;
    font-size: 4rem;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #ddd;
}

.drop-zone {
    border: 4px dashed #FF9800;
    background: rgba(255, 255, 255, 0.5);
    color: #FF9800;
    font-weight: bold;
}

/* 3. Find Odd (Grid) */
.odd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.grid-item {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 25px;
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.1s;
    border: 4px solid transparent;
}

.grid-item:active {
    transform: scale(0.9);
}

/* 4. Sort Game (Baskets) */
.sort-game {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding-bottom: 20px;
}

.items-pool {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    min-height: 150px;
}

.sort-item {
    font-size: 5rem;
    cursor: grab;
    transition: opacity 0.3s;
    user-select: none;
    /* Optional: circle bg */
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.sort-item.dragging {
    opacity: 0.8;
    transform: scale(1.2);
    pointer-events: none;
    /* Let clicks pass through to drop zones if needed */
}

.baskets-row {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
}

.basket {
    width: 180px;
    height: 180px;
    background: #FFF8E1;
    border: 6px solid #FFB74D;
    border-radius: 0 0 40px 40px;
    /* Bucket shape */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    /* Label Emoji Size */
    font-weight: bold;
    color: #E65100;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 10px 0 #F57C00;
}

/* 5. Add Game (Equation) */
.add-game {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.group-box {
    background: white;
    padding: 15px 25px;
    border-radius: 20px;
    border: 3px solid #eee;
    margin: 0 15px;
    letter-spacing: -10px;
    /* Overlap emojis slightly */
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.05);
}

/* Ensure hidden works */
.hidden {
    display: none !important;
}

/* COMPREHENSIVE MOBILE RESPONSIVE - MOBILE FIRST FOR KIDS */
@media (max-width: 768px) {
    /* Top Bar - Proportional Buttons */
    .top-bar {
        padding: clamp(12px, 3vw, 18px) clamp(15px, 4vw, 25px);
        gap: clamp(0.5rem, 2vw, 1rem);
    }

    .btn-nav {
        padding: clamp(10px, 2.5vw, 14px) clamp(18px, 4.5vw, 28px);
        font-size: clamp(1.4rem, 4.5vw, 1.9rem);
        border-radius: clamp(45px, 10vw, 60px);
        border-width: clamp(3px, 0.8vw, 4px);
        min-width: clamp(50px, 14vw, 60px);
        min-height: clamp(50px, 14vw, 60px);
        gap: clamp(8px, 2.5vw, 12px);
    }

    /* Game Title */
    .game-title {
        font-size: clamp(3rem, 10vw, 5rem);
        margin-bottom: clamp(20px, 5vw, 30px);
        margin-top: clamp(-40px, -10vw, -60px);
    }

    /* Daily Adventure Card */
    .daily-adventure-card {
        padding: clamp(15px, 4vw, 20px) clamp(25px, 6vw, 40px);
        border-radius: clamp(22px, 5.5vw, 30px);
        border-width: clamp(4px, 1vw, 6px);
    }

    .rocket-icon {
        font-size: clamp(4rem, 12vw, 6rem);
        margin-bottom: clamp(8px, 2vw, 10px);
    }

    .cta-text {
        font-size: clamp(1.4rem, 4.5vw, 2rem);
        letter-spacing: clamp(1px, 0.3vw, 2px);
    }

    /* Carousel Strip */
    .carousel-strip {
        height: clamp(180px, 45vw, 220px);
        padding: 0 clamp(8px, 2vw, 10px);
        border-width: clamp(4px, 1vw, 6px);
    }

    .carousel-track {
        gap: clamp(12px, 3vw, 20px);
        padding: clamp(12px, 3vw, 20px);
    }

    .game-tile {
        min-width: clamp(120px, 32vw, 150px);
        height: clamp(120px, 32vw, 150px);
        border-radius: clamp(20px, 5vw, 28px);
        border-width: clamp(3px, 0.8vw, 4px);
        padding: clamp(8px, 2vw, 12px);
    }

    .tile-icon {
        font-size: clamp(2.8rem, 9vw, 4rem);
        margin-bottom: clamp(5px, 1.5vw, 8px);
    }

    .tile-label {
        font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    }

    .carousel-arrow {
        width: clamp(60px, 16vw, 80px);
        height: clamp(60px, 16vw, 80px);
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* Game Viewport - FULL SCREEN ON MOBILE */
    .game-viewport {
        width: 100vw !important;
        height: 100vh !important;
        max-height: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: clamp(70px, 18vw, 90px) clamp(15px, 4vw, 25px) clamp(15px, 4vw, 25px) !important;
    }

    /* Game Header - Scaled Buttons */
    .game-header {
        top: clamp(12px, 3vw, 18px);
        left: clamp(12px, 3vw, 20px);
        right: clamp(12px, 3vw, 20px);
        gap: clamp(0.5rem, 2vw, 1rem);
    }

    .btn-icon {
        width: clamp(60px, 16vw, 75px);
        height: clamp(60px, 16vw, 75px);
        font-size: clamp(1.8rem, 5.5vw, 2.4rem);
        border-width: clamp(3px, 1vw, 5px);
    }

    .level-indicator {
        padding: clamp(6px, 1.5vw, 8px) clamp(18px, 4.5vw, 25px);
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        border-width: clamp(2px, 0.6vw, 3px);
    }

    /* Game Items - Larger for Kids */
    .items-grid {
        gap: clamp(20px, 5vw, 30px);
        padding: clamp(10px, 2.5vw, 15px);
    }

    .game-item {
        width: clamp(100px, 26vw, 130px);
        height: clamp(100px, 26vw, 130px);
        font-size: clamp(4rem, 11vw, 5.5rem);
        border-radius: clamp(18px, 4.5vw, 24%);
    }

    /* Options Row - Easy to Tap */
    .options-row {
        gap: clamp(25px, 6vw, 35px);
        margin-top: clamp(15px, 4vw, 25px);
        padding: clamp(8px, 2vw, 10px);
    }

    .option {
        width: clamp(80px, 22vw, 100px);
        height: clamp(80px, 22vw, 100px);
        font-size: clamp(2.2rem, 6vw, 2.8rem);
        border-radius: clamp(14px, 3.5vw, 16px);
    }

    /* Instruction Text */
    .instruction-sub {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        padding: clamp(10px, 2.5vw, 15px) clamp(20px, 5vw, 30px);
        border-radius: clamp(35px, 8vw, 50px);
        margin-bottom: clamp(15px, 4vw, 20px);
    }

    /* Compare Game */
    .compare-container {
        flex-direction: column;
        gap: clamp(15px, 4vw, 20px);
        padding: clamp(10px, 2.5vw, 15px);
    }

    .compare-side {
        min-width: clamp(200px, 55vw, 280px);
        min-height: clamp(180px, 48vw, 250px);
        border-width: clamp(3px, 0.8vw, 4px);
        border-radius: clamp(16px, 4vw, 20px);
        padding: clamp(12px, 3vw, 20px);
    }

    .mini-grid {
        gap: clamp(8px, 2vw, 10px);
    }

    .mini-item {
        font-size: clamp(2.5rem, 7vw, 3rem);
    }

    /* Pattern Game */
    .pattern-container {
        gap: clamp(25px, 6vw, 40px);
        padding: clamp(10px, 2.5vw, 15px);
    }

    .sequence-row {
        gap: clamp(12px, 3vw, 20px);
        padding: clamp(15px, 4vw, 20px) clamp(25px, 6vw, 40px);
        border-radius: clamp(35px, 8vw, 50px);
    }

    .seq-item {
        width: clamp(70px, 18vw, 100px);
        height: clamp(70px, 18vw, 100px);
        font-size: clamp(2.5rem, 7vw, 4rem);
        border-radius: clamp(14px, 3.5vw, 20px);
    }

    /* Find Odd Game */
    .odd-grid {
        gap: clamp(12px, 3vw, 20px);
        padding: clamp(12px, 3vw, 20px);
    }

    .grid-item {
        width: clamp(110px, 28vw, 140px);
        height: clamp(110px, 28vw, 140px);
        font-size: clamp(3.5rem, 10vw, 5rem);
        border-radius: clamp(18px, 4.5vw, 25px);
        border-width: clamp(3px, 0.8vw, 4px);
    }

    /* Sort Game - Baskets */
    .items-pool {
        gap: clamp(15px, 4vw, 20px);
        padding: clamp(12px, 3vw, 20px);
        min-height: clamp(120px, 30vw, 150px);
    }

    .sort-item {
        font-size: clamp(3.5rem, 10vw, 5rem);
        width: clamp(80px, 22vw, 100px);
        height: clamp(80px, 22vw, 100px);
    }

    .baskets-row {
        gap: clamp(30px, 8vw, 50px);
        margin-bottom: clamp(15px, 4vw, 20px);
    }

    .basket {
        width: clamp(140px, 38vw, 180px);
        height: clamp(140px, 38vw, 180px);
        font-size: clamp(2.2rem, 6vw, 3rem);
        border-width: clamp(4px, 1vw, 6px);
        border-radius: clamp(0, 0, 30px) clamp(0, 0, 30px) clamp(30px, 8vw, 40px) clamp(30px, 8vw, 40px);
    }

    /* Secondary Buttons */
    .btn-secondary {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
        padding: clamp(8px, 2vw, 10px) clamp(22px, 5.5vw, 30px);
        border-radius: clamp(22px, 5.5vw, 30px);
        border-width: clamp(2px, 0.6vw, 3px);
    }

    /* Giant Button (Parents Gate) */
    .btn-giant {
        font-size: clamp(2rem, 5.5vw, 2.5rem);
        padding: clamp(22px, 5.5vw, 30px) clamp(40px, 10vw, 60px);
        border-radius: clamp(18px, 4.5vw, 25px);
        border-width: clamp(4px, 1vw, 6px);
        min-height: clamp(70px, 18vw, 80px);
    }

    /* Progress Bar */
    .progress-bar-container {
        width: clamp(200px, 60vw, 300px);
        height: clamp(16px, 4vw, 20px);
        border-radius: clamp(8px, 2vw, 10px);
        margin-top: clamp(15px, 4vw, 20px);
    }

    /* Sticker Book */
    .sticker-header {
        padding: clamp(15px, 4vw, 20px);
        border-width: clamp(3px, 0.8vw, 4px);
    }

    .sticker-grid {
        padding: clamp(25px, 6vw, 40px);
        gap: clamp(20px, 5vw, 30px);
        padding-bottom: clamp(80px, 20vw, 100px);
    }

    .sticker-item {
        width: clamp(90px, 24vw, 120px);
        height: clamp(90px, 24vw, 120px);
        font-size: clamp(3.5rem, 10vw, 5rem);
    }

    /* Feedback Overlay */
    .feedback-overlay {
        font-size: clamp(8rem, 24vw, 12rem);
    }

    /* Celebration */
    .celebration-emoji {
        font-size: clamp(8rem, 24vw, 12rem);
    }

    .sticker-reward {
        font-size: clamp(5rem, 15vw, 8rem);
        padding: clamp(15px, 4vw, 20px);
    }

    /* Gate Message */
    .gate-msg {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        margin-bottom: clamp(20px, 5vw, 30px);
        padding: 0 clamp(15px, 4vw, 20px);
    }

    .gate-btn {
        padding: clamp(12px, 3vw, 15px) clamp(28px, 7vw, 40px);
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
        border-radius: clamp(12px, 3vw, 15px);
    }
}

/* Extra Small Phones - Further Optimization */
@media (max-width: 380px) {
    .top-bar {
        padding: 10px 12px;
    }

    .btn-nav {
        padding: 8px 16px;
        font-size: 1.3rem;
        min-width: 46px;
        min-height: 46px;
    }

    .game-viewport {
        padding: 65px 12px 12px !important;
    }

    .game-item {
        width: 90px;
        height: 90px;
        font-size: 3.5rem;
    }

    .option {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .basket {
        width: 120px;
        height: 120px;
        font-size: 1.8rem;
    }
}

/* --- IMMERSIVE MOBILE VIEWPORT ENFORCEMENT --- */
@media (max-width: 768px), (max-height: 500px) {
    .game-viewport {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    .btn-giant {
        padding: 1.5rem 3rem !important;
        font-size: 2rem !important;
        min-height: 80px !important;
    }

    .btn-nav, .btn-icon {
        min-width: 48px !important;
        min-height: 48px !important;
        font-size: 1.2rem !important;
    }
}
