/* ============================================
   ECO-KUZYA GAME - MODERN STYLES
   ============================================ */

/* ============================================
   PRELOADER
   ============================================ */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 50%, #1B5E20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preloader-text {
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

:root {
    --color-primary: #4CAF50;
    --color-primary-dark: #388E3C;
    --color-secondary: #2196F3;
    --color-accent: #FF9800;
    --color-danger: #f44336;
    --color-success: #8BC34A;
    
    --color-bg-light: #E8F5E9;
    --color-bg-dark: #1a1a2e;
    
    --color-warm: #FF6B35;
    --color-cold: #64B5F6;
    --color-gold: #FFD700;
    
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-strong: 0 12px 40px rgba(0,0,0,0.25);
    
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-round: 50%;
    
    --font-main: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Prevent pull-to-refresh and overscroll */
html, body {
    overscroll-behavior: none;
    touch-action: manipulation;
}

/* Prevent text selection on draggable elements */
.draggable,
.draggable * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    user-drag: none;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 50%, #1B5E20 100%);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    overflow: hidden;
    color: #333;
    /* Safe area for notched devices */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* ============================================
   SCREENS
   ============================================ */

.screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh; /* Dynamic viewport height */
    z-index: 10;
    overflow: hidden;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-content {
    text-align: center;
    padding: 20px;
    max-width: 500px;
    width: 100%;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
}

.progress-label {
    font-weight: 700;
    color: #666;
    font-size: 0.9rem;
}

.lightbulbs-container {
    display: flex;
    gap: 8px;
}

.lightbulb {
    font-size: 1.5rem;
    filter: grayscale(100%) opacity(0.3);
    transition: all 0.5s ease;
}

.lightbulb.collected {
    filter: grayscale(0%) opacity(1);
    animation: bulbCollect 0.6s ease;
}

@keyframes bulbCollect {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* ============================================
   START SCREEN
   ============================================ */

/* ============================================
   START SCREEN - New Design
   ============================================ */

#start-screen {
    background-image: url('assets/start_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-content: flex-start;
    align-items: center;
}

/* Dark overlay on background */
#start-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/* Floating Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: floatParticle linear infinite;
    pointer-events: none;
}

.particle-icon {
    position: absolute;
    opacity: 0;
    animation: floatParticle linear infinite;
    pointer-events: none;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Global Controls */
.global-control {
    position: fixed;
    z-index: 1000;
}

/* Language Switcher */
.language-switcher {
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-main);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn .flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

.lang-btn:hover {
    background: #f5f5f5;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Sound Controls */
.sound-controls {
    top: 20px;
    left: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mute-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.mute-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mute-btn.muted .mute-icon {
    color: #999;
}

.mute-icon {
    font-size: 1.2rem;
    color: #333;
}

.volume-sliders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.volume-label {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    color: #666;
}

.volume-slider {
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    margin-top: -5px;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
}

.sound-controls.muted .volume-slider {
    opacity: 0.5;
    pointer-events: none;
}

.start-content-wrapper {
    width: 50%;
    max-width: 550px;
    min-width: 320px;
    padding: 30px;
    padding-left: 60px;
    margin-left: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.start-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.3));
}

.start-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    width: 100%;
}

.start-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    text-align: center;
    margin: 0;
}

.start-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.btn-start {
    width: 100%;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.btn-start:active {
    transform: translateY(0);
}

.btn-continue {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    #start-screen {
        justify-content: center;
    }
    
    .start-content-wrapper {
        width: 90%;
        max-width: none;
        padding: 15px;
        padding-left: 15px;
        margin-left: 0;
        gap: 15px;
    }
    
    .start-content {
        padding: 25px 20px;
    }
    
    .start-logo {
        max-width: 320px;
    }
    
    .start-description {
        font-size: 1rem;
    }
    
    .btn-start {
        padding: 16px 30px;
        font-size: 1.2rem;
    }
}

/* ============================================
   KUZYA CHARACTER (for overlays)
   ============================================ */

.kuzya-character {
    position: relative;
    display: inline-block;
}

.kuzya-image {
    width: 150px;
    height: auto;
    animation: kuzyaBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.kuzya-character.large .kuzya-image {
    width: 200px;
}

.kuzya-character.celebrating .kuzya-image {
    animation: celebrateBounce 0.5s ease-in-out infinite;
}

@keyframes kuzyaBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-main);
    border: none;
    border-radius: var(--radius-large);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
}

.btn-icon {
    font-size: 1.3em;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* ============================================
   GAME SCREEN
   ============================================ */

#game-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    position: fixed;
    overflow: hidden;
}

#game-screen.active {
    display: block;
}

.mini-game {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.mini-game.active {
    display: block;
}

.game-scene {
    width: 100%;
    height: 100%;
    background: #333;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

/* All scenes should fill the screen */
.kitchen-scene,
.fridge-scene,
.faucet-scene,
.livingroom-scene {
    width: 100%;
    height: 100%;
}

.room-container {
    width: 100%;
    height: 100%;
    position: relative;
    padding-bottom: 70px;
    box-sizing: border-box;
}

/* ============================================
   MINI-GAME 1: HALLWAY LIGHT
   ============================================ */

/* Full screen scene */
.scene-16-9 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.scene-16-9 .scene-backgrounds,
.scene-16-9 .switch-container-3d,
.scene-16-9 .time-notification {
    position: absolute;
}

.hallway-scene {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Background layers for smooth crossfade */
.scene-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Smooth transition for intro animation (day to night) */
.hallway-scene.intro-animation .scene-bg {
    transition: opacity 1.2s ease-in-out;
}

/* State-based background visibility */
.hallway-scene[data-state="night-off"] .bg-night-off { opacity: 1; }
.hallway-scene[data-state="night-on"] .bg-night-on { opacity: 1; }
.hallway-scene[data-state="day-on"] .bg-day-on { opacity: 1; }
.hallway-scene[data-state="day-off"] .bg-day-off { opacity: 1; }

/* Sunset overlay for smooth day-to-night transition */
.sunset-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(255, 140, 0, 0.3) 0%,
        rgba(255, 69, 0, 0.2) 50%,
        rgba(25, 25, 80, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

/* Sunrise overlay for smooth night-to-day transition */
.sunrise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(255, 200, 100, 0.4) 0%,
        rgba(255, 150, 50, 0.3) 40%,
        rgba(255, 220, 180, 0.2) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

/* Time notification */
.time-notification {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.time-notification.show { opacity: 1; }

.notification-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: notificationPulse 2s ease-in-out infinite;
}

.notification-icon { font-size: 2rem; }
.notification-text { font-size: 1rem; font-weight: 700; color: #333; }

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   3D LIGHT SWITCH
   ============================================ */

.switch-container-3d {
    right: 2%;
    top: 70%;
    transform: translateY(-50%);
    z-index: 10;
}

.light-switch-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Switch plate - wall mount */
.switch-plate-3d {
    width: 50px;
    height: 80px;
    background: linear-gradient(145deg, #f5f5f5, #d0d0d0);
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.light-switch-3d:hover .switch-plate-3d {
    transform: scale(1.05);
}

.light-switch-3d:active .switch-plate-3d {
    transform: scale(0.98);
}

/* Screws */
.switch-screw {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(145deg, #888, #666);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.switch-screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 1px;
    background: #444;
}

.switch-screw.top { top: 6px; }
.switch-screw.bottom { bottom: 6px; }

/* Switch frame */
.switch-frame-3d {
    width: 30px;
    height: 50px;
    background: linear-gradient(180deg, #e0e0e0, #c0c0c0);
    border-radius: 4px;
    border: 2px solid #999;
    position: relative;
    overflow: hidden;
}

/* Toggle switch */
.switch-toggle-3d {
    position: absolute;
    width: 100%;
    height: 50%;
    bottom: 0;
    background: linear-gradient(180deg, #f0f0f0, #d0d0d0);
    border-radius: 2px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ON state - toggle at top */
.light-switch-3d[data-state="on"] .switch-toggle-3d {
    bottom: auto;
    top: 0;
    background: linear-gradient(180deg, #4CAF50, #388E3C);
}

.toggle-knob {
    width: 20px;
    height: 6px;
    background: linear-gradient(180deg, #fff, #ccc);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.light-switch-3d[data-state="on"] .toggle-knob {
    background: linear-gradient(180deg, #fff, #a5d6a7);
}

/* Switch label */
.switch-label-3d {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.4);
    padding: 3px 8px;
    border-radius: 10px;
}

.hallway-scene[data-state="day-on"] .switch-label-3d,
.hallway-scene[data-state="day-off"] .switch-label-3d {
    color: #333;
    text-shadow: none;
    background: rgba(255,255,255,0.7);
}

/* Hint animation */
.switch-hint-3d {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
}

.hint-hand {
    font-size: 1.8rem;
    display: block;
    transform: rotate(180deg);
    animation: hintBounce 1s ease-in-out infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: rotate(180deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(10px); }
}

.light-switch-3d.clicked .switch-hint-3d {
    display: none;
}

/* Disabled state - before day comes */
.light-switch-3d.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.light-switch-3d.disabled .switch-hint-3d {
    display: none;
}

.light-switch-3d.disabled .switch-plate-3d {
    transform: none !important;
}

/* ============================================
   MINI-GAME 2: SOCKET CHARGER (New Design)
   ============================================ */

.socket-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Wall background */
.wall-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Socket container - positioned on wall (larger) */
.socket-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.socket-image {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

/* Charger plug - positioned in socket */
.charger-plug {
    position: absolute;
    top: 24%;
    left: 50%;
    transform: translate(-29px, 22px);
    cursor: grab;
    z-index: 10;
    touch-action: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.charger-plug.dragging {
    cursor: grabbing;
    z-index: 100;
}

.charger-plug * {
    user-select: none;
    pointer-events: none;
}

/* Plug prongs (go into socket) */
.plug-prongs {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: -5px;
}

.plug-prong {
    width: 6px;
    height: 20px;
    background: linear-gradient(180deg, #c0c0c0, #909090);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Plug body */
.plug-body {
    width: 60px;
    height: 45px;
    background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.plug-icon {
    font-size: 1.5rem;
}

/* Charging wire (SVG) - thin wire from plug to phone */
.charging-wire {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.wire-path {
    stroke: #222;
    stroke-width: 1.2;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Phone device - image positioned on right */
.phone-device {
    position: absolute;
    bottom: 120px;
    right: 10%;
    z-index: 8;
}

.phone-image {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.4));
}

/* Energy waste indicator */
.energy-waste-new {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(244, 67, 54, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 15;
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.4);
    animation: pulseNew 1.5s ease-in-out infinite;
}

@keyframes pulseNew {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* Drop zone on table */
.dropzone-new {
    position: absolute;
    bottom: 48px;
    left: 20%;
    transform: translateX(-50%);
    width: 160px;
    height: 110px;
    border: 3px dashed rgba(255,255,255,0.8);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.15);
}

.dropzone-new.drag-over {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.3);
    transform: translateX(-50%) scale(1.05);
}

.dropzone-new.drop-success {
    border-color: #4CAF50;
    border-style: solid;
    background: rgba(76, 175, 80, 0.4);
}

.dropzone-content-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dropzone-text-new {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Hide phone and wire when unplugged */
.socket-scene[data-state="unplugged"] .phone-device,
.socket-scene[data-state="unplugged"] .charging-wire {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Mobile responsive for level 2 */
@media (max-width: 600px) {
    .socket-image {
        width: 140px;
    }
    
    .socket-container {
        top: 15%;
    }
    
    .charger-plug {
        top: 18%;
    }
    
    .plug-body {
        width: 50px;
        height: 38px;
    }
    
    .plug-prong {
        width: 5px;
        height: 16px;
    }
    
    .plug-prongs {
        gap: 16px;
    }
    
    .phone-image {
        width: 120px;
    }
    
    .phone-device {
        right: 5%;
        bottom: 100px;
    }
    
    .dropzone-new {
        left: 25%;
        width: 120px;
        height: 55px;
        bottom: 70px;
    }
}





/* ============================================
   MINI-GAME 3: REFRIGERATOR (Image-based)
   ============================================ */

.fridge-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background images for open/closed states */
.fridge-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
}

.fridge-bg-open {
    z-index: 1;
    opacity: 1;
}

.fridge-bg-closed {
    z-index: 2;
    opacity: 0;
}

/* When closed, show closed background */
.fridge-scene[data-state="closed"] .fridge-bg-open {
    opacity: 0;
}

.fridge-scene[data-state="closed"] .fridge-bg-closed {
    opacity: 1;
}

/* Cold air escaping animation */
.cold-air-escape {
    position: absolute;
    top: 30%;
    left: 35%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.snowflake-float {
    width: 28px;
    height: 28px;
    animation: coldEscape 2s ease-out infinite;
    opacity: 0.9;
}

.snowflake-float:nth-child(1) { animation-delay: 0s; }
.snowflake-float:nth-child(2) { animation-delay: 0.4s; }
.snowflake-float:nth-child(3) { animation-delay: 0.8s; }
.snowflake-float:nth-child(4) { animation-delay: 1.2s; }

@keyframes coldEscape {
    0% { 
        transform: translateX(0) translateY(0); 
        opacity: 0.9; 
    }
    100% { 
        transform: translateX(80px) translateY(-30px); 
        opacity: 0; 
    }
}

/* Hide cold air when door is closed */
.fridge-scene[data-state="closed"] .cold-air-escape {
    display: none;
}

/* Invisible drag zone over the door area */
.fridge-door-zone {
    position: absolute;
    top: 20%;
    left: 27%;
    width: 18%;
    height: 77%;
    cursor: grab;
    z-index: 10;
    touch-action: none;
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    background: rgb(255 255 255 / 31%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fridge-door-zone.dragging {
    cursor: grabbing;
    border-color: rgba(76, 175, 80, 0.7);
    background: rgba(76, 175, 80, 0.1);
}

/* Hide drag zone when closed */
.fridge-scene[data-state="closed"] .fridge-door-zone {
    display: none;
}

/* Drag hint inside the zone */
.drag-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: hintPulse 1.5s ease-in-out infinite;
}

.drag-arrow {
    font-size: 3rem;
    animation: arrowMove 1s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-15px); }
}

.drag-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 20px;
}

@keyframes hintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Progress bar for door closing */
.door-progress {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    z-index: 15;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.door-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.1s ease;
}

/* Hide progress when closed */
.fridge-scene[data-state="closed"] .door-progress {
    display: none;
}

/* ============================================
   MINI-GAME 4: FAUCET (Image-based with rotation)
   ============================================ */

.faucet-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background images */
.faucet-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
}

.faucet-bg-open {
    z-index: 1;
    opacity: 1;
}

.faucet-bg-closed {
    z-index: 2;
    opacity: 0;
}

.faucet-scene[data-state="fixed"] .faucet-bg-open {
    opacity: 0;
}

.faucet-scene[data-state="fixed"] .faucet-bg-closed {
    opacity: 1;
}

/* Valve rotation zone */
.valve-zone {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    cursor: grab;
    z-index: 10;
    touch-action: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.valve-zone.dragging {
    cursor: grabbing;
}

.valve-visual {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    border: 4px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
}

.valve-zone.dragging .valve-visual {
    border-color: rgba(76, 175, 80, 0.8);
    background: rgba(76, 175, 80, 0.2);
}

.valve-arrows {
    position: relative;
    width: 100%;
    height: 100%;
}

.valve-arrow {
    position: absolute;
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    animation: rotateHint 2s linear infinite;
}

.arrow-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotateHint {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.valve-hint-text {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 15px;
}

/* Hide valve zone when fixed */
.faucet-scene[data-state="fixed"] .valve-zone {
    display: none;
}

/* Water drops animation */
.water-drops-anim {
    position: absolute;
    top: 55%;
    left: 48%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.water-drop-icon {
    width: 12px;
    height: 18px;
    animation: waterDrip 1.2s ease-in infinite;
    filter: drop-shadow(0 2px 6px rgba(33, 150, 243, 0.4));
}

.water-drop-icon:nth-child(1) { animation-delay: 0s; }
.water-drop-icon:nth-child(2) { animation-delay: 0.4s; }
.water-drop-icon:nth-child(3) { animation-delay: 0.8s; }

@keyframes waterDrip {
    0% { 
        transform: translateY(0) scale(1); 
        opacity: 0;
    }
    10% { opacity: 1; }
    100% { 
        transform: translateY(120px) scale(0.8); 
        opacity: 0; 
    }
}

/* Hide water when fixed */
.faucet-scene[data-state="fixed"] .water-drops-anim {
    display: none;
}

/* Circular progress indicator */
.valve-progress-container {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    z-index: 15;
}

.valve-progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.1s ease;
}

.valve-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Hide progress when fixed */
.faucet-scene[data-state="fixed"] .valve-progress-container {
    display: none;
}

/* ============================================
   MINI-GAME 5: LIVING ROOM (Image-based)
   ============================================ */

.livingroom-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background images */
.window-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
}

.window-bg-open {
    z-index: 1;
    opacity: 1;
}

.window-bg-closed {
    z-index: 2;
    opacity: 0;
}

.livingroom-scene[data-state="warm"] .window-bg-open {
    opacity: 0;
}

.livingroom-scene[data-state="warm"] .window-bg-closed {
    opacity: 1;
}

/* Cold wind animation */
.cold-wind-anim {
    position: absolute;
    top: 30%;
    left: 40%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wind-snowflake {
    width: 30px;
    height: 30px;
    animation: windBlowIn 2s ease-out infinite;
    opacity: 0.9;
}

.wind-snowflake:nth-child(1) { animation-delay: 0s; }
.wind-snowflake:nth-child(2) { animation-delay: 0.5s; }
.wind-snowflake:nth-child(3) { animation-delay: 1s; }
.wind-snowflake:nth-child(4) { animation-delay: 1.5s; }

@keyframes windBlowIn {
    0% { 
        transform: translateX(50px) rotate(0deg); 
        opacity: 0;
    }
    20% { opacity: 0.9; }
    100% { 
        transform: translateX(-100px) rotate(-180deg); 
        opacity: 0; 
    }
}

/* Hide wind when warm */
.livingroom-scene[data-state="warm"] .cold-wind-anim {
    display: none;
}

/* Single drag zone for window */
.window-drag-zone {
    position: absolute;
    top: 20%;
    left: 45%;
    width: 35%;
    height: 54%;
    cursor: grab;
    z-index: 10;
    touch-action: none;
    border: 4px dashed rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.window-drag-zone.dragging {
    cursor: grabbing;
    border-color: rgba(76, 175, 80, 0.8);
    background: rgba(76, 175, 80, 0.15);
}

/* Hide drag zone when warm */
.livingroom-scene[data-state="warm"] .window-drag-zone {
    display: none;
}

/* Drag hint */
.window-drag-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.window-drag-arrow {
    font-size: 4rem;
    animation: arrowMoveLeft 1s ease-in-out infinite;
}

@keyframes arrowMoveLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

.window-drag-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    background: rgba(0,0,0,0.4);
    padding: 8px 20px;
    border-radius: 25px;
}

/* Progress bar */
.window-progress {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    z-index: 15;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.window-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF9800, #FF5722);
    border-radius: 10px;
    transition: width 0.1s ease;
}

.window-progress-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

/* Hide progress when warm */
.livingroom-scene[data-state="warm"] .window-progress {
    display: none;
}

/* ============================================
   FINAL SCREEN
   ============================================ */

#final-screen {
    background-image: url('assets/start_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark overlay on final screen background */
#final-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.final-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.final-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px 40px;
    padding-bottom: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.2);
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}
.confetti-icon { pointer-events: none; }

.trophy-container {
    position: relative;
    margin-bottom: 10px;
}

.trophy {
    font-size: 4rem;
    animation: trophyBounce 1s ease-in-out infinite;
}

.trophy-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.congrats-title {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.collected-bulbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bulb-collected {
    font-size: 2rem;
    animation: bulbDance 0.5s ease-in-out infinite alternate;
}

.bulb-collected:nth-child(2) { animation-delay: 0.1s; }
.bulb-collected:nth-child(3) { animation-delay: 0.2s; }
.bulb-collected:nth-child(4) { animation-delay: 0.3s; }
.bulb-collected:nth-child(5) { animation-delay: 0.4s; }

@keyframes bulbDance {
    0% { transform: translateY(0) rotate(-5deg); }
    100% { transform: translateY(-8px) rotate(5deg); }
}

.congrats-message {
    font-size: 1rem;
    color: white;
    margin-bottom: 10px;
}

.final-kuzya {
    margin: 10px 0;
    position: relative;
}

/* Dancing Kuzya */
.kuzya-dancing {
    position: relative;
    display: inline-block;
}

.kuzya-dance-image {
    width: 140px;
    height: auto;
    animation: kuzyaDance 0.8s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

@keyframes kuzyaDance {
    0% { 
        transform: translateY(0); 
    }
    25% { 
        transform: translateY(-15px); 
    }
    50% { 
        transform: translateY(0); 
    }
    75% { 
        transform: translateY(-15px); 
    }
    100% { 
        transform: translateY(0); 
    }
}

/* Dance effects (notes and stars) */
.dance-effects {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 150px;
    pointer-events: none;
}

.dance-note, .dance-star {
    position: absolute;
    font-size: 1.8rem;
    animation: floatAway 2s ease-out infinite;
}

.dance-note:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.dance-note:nth-child(2) {
    right: 10%;
    animation-delay: 0.5s;
}

.dance-star {
    left: 50%;
    animation-delay: 1s;
    animation-name: starFloat;
}

.dance-note:nth-child(4) {
    left: 30%;
    animation-delay: 1.5s;
}

@keyframes floatAway {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-80px) rotate(20deg); 
        opacity: 0; 
    }
}

@keyframes starFloat {
    0% { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
    50% {
        transform: translateY(-40px) scale(1.3);
        opacity: 1;
    }
    100% { 
        transform: translateY(-80px) scale(0.8); 
        opacity: 0; 
    }
}

.eco-message {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

/* Play again button on final screen */
#play-again-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 50px auto;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-main);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    opacity: 1;
}

#play-again-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */

.game-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 25px;
    z-index: 500;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.policy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   POLICY MODAL
   ============================================ */

.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.policy-modal.active {
    display: flex;
}

.policy-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.policy-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.policy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.policy-modal-header {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.policy-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.policy-modal-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.policy-modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.policy-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.policy-section p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.policy-section ul {
    margin-left: 20px;
    margin-bottom: 8px;
}

.policy-section li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
}

.policy-modal-footer {
    background: #f5f5f5;
    padding: 15px 30px;
    border-radius: 0 0 20px 20px;
    text-align: center;
    flex-shrink: 0;
}

.policy-modal-footer p {
    font-size: 0.8rem;
    color: #888;
}

/* Mobile styles for policy modal */
@media (max-width: 600px) {
    .policy-modal {
        padding: 10px;
    }
    
    .policy-modal-content {
        border-radius: 15px;
        max-height: 95vh;
    }
    
    .policy-modal-header {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .policy-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .policy-modal-header p {
        font-size: 0.8rem;
    }
    
    .policy-modal-body {
        padding: 20px;
    }
    
    .policy-section h3 {
        font-size: 0.95rem;
    }
    
    .policy-section p,
    .policy-section li {
        font-size: 0.85rem;
    }
    
    .policy-modal-footer {
        padding: 12px 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .policy-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 500px) {
    .game-title { font-size: 1.6rem; }
    .game-subtitle { font-size: 1.1rem; }
    .kuzya-body { font-size: 4rem; }
    .kuzya-character.large .kuzya-body { font-size: 5rem; }
    
    .speech-bubble {
        position: relative;
        left: 0;
        top: 20px;
        min-width: auto;
    }
    
    .speech-bubble::before {
        left: 50%;
        top: -15px;
        transform: translateX(-50%) rotate(90deg);
    }
    
    .game-scene {
        height: 450px;
        border-radius: 0px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .progress-bar {
        padding: 10px 15px;
    }
    
    .lightbulb {
        font-size: 1.2rem;
    }
}

/* ============================================
   REWARD NOTIFICATION (Quick popup)
   ============================================ */

.reward-notification {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    pointer-events: none;
}

.reward-notification.active {
    display: block;
}

.reward-notification-content {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 25px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.5), 0 0 100px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: rewardPulse 0.5s ease-in-out infinite alternate;
}

@keyframes rewardPulse {
    0% { transform: scale(1); box-shadow: 0 10px 50px rgba(255, 215, 0, 0.5); }
    100% { transform: scale(1.05); box-shadow: 0 15px 60px rgba(255, 215, 0, 0.7); }
}

.reward-notification-icon {
    font-size: 3rem;
    animation: bulbBounce 0.3s ease-in-out infinite alternate;
}

@keyframes bulbBounce {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

.reward-notification-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ============================================
   GAME OVERLAYS (Task & Success)
   ============================================ */

.game-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 100;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
}

.game-overlay.active {
    display: flex;
}

/* Bottom panel with Kuzya and bubble */
.overlay-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding: 20px;
    padding-bottom: 30px;
    background: transparent;
    overflow: hidden;
}

/* Kuzya on the left */
.overlay-kuzya {
    flex-shrink: 0;
    z-index: 2;
}

.overlay-kuzya .kuzya-image {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

/* Speech bubble on the right */
.overlay-bubble {
    background: white;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    max-width: 350px;
    margin-left: -20px;
    margin-bottom: 30px;
}

.overlay-bubble::before {
    content: '';
    position: absolute;
    left: -15px;
    bottom: 30px;
    border: 12px solid transparent;
    border-right-color: white;
}

.overlay-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 15px 0;
    text-align: left;
}

/* Green START button */
.overlay-bubble .btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.overlay-bubble .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.5);
}

/* Success overlay specific */
.success-content {
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.success-content .overlay-inner {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

.success-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.success-stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-stars .star {
    font-size: 2.5rem;
    animation: starSpin 2s ease-in-out infinite;
}

.success-stars .star.big {
    font-size: 4rem;
    animation: starPulse 1s ease-in-out infinite;
}

@keyframes starSpin {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.success-title {
    font-size: 2rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin: 0;
}

.success-bubble {
    background: white;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    max-width: 350px;
    margin-left: -20px;
    margin-bottom: 30px;
}

.success-bubble::before {
    content: '';
    position: absolute;
    left: -15px;
    bottom: 30px;
    border: 12px solid transparent;
    border-right-color: white;
}

.success-reward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 215, 0, 0.2);
    padding: 15px 30px;
    border-radius: 20px;
    margin-bottom: 15px;
    animation: rewardGlow 1.5s ease-in-out infinite;
}

@keyframes rewardGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
        transform: scale(1.05);
    }
}

.reward-icon {
    font-size: 3rem;
    animation: bulbGlow 1s ease-in-out infinite;
}

@keyframes bulbGlow {
    0%, 100% { filter: drop-shadow(0 0 10px #FFD700); }
    50% { filter: drop-shadow(0 0 25px #FFD700); }
}

.reward-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Mobile adjustments for overlays */
@media (max-width: 600px) {
    .overlay-kuzya .kuzya-image {
        width: 100px;
    }
    
    .overlay-bubble {
        max-width: 250px;
        padding: 15px 20px;
        margin-bottom: 20px;
    }
    
    .overlay-text {
        font-size: 1rem;
    }
    
    .overlay-bubble .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-stars .star {
        font-size: 2rem;
    }
    
    .success-stars .star.big {
        font-size: 3rem;
    }
    
    .reward-icon {
        font-size: 2rem;
    }
    
    .reward-text {
        font-size: 1.2rem;
    }
}


/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and smaller */
@media (max-width: 900px) {
    .progress-bar {
        top: 10px;
        padding: 8px 15px;
        gap: 10px;
    }
    
    .progress-label {
        font-size: 0.8rem;
    }
    
    .lightbulb {
        font-size: 1.3rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .sound-controls {
        top: 10px;
        left: 10px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .lang-btn .flag-icon { width: 20px; height: 14px; }
    
    .mute-btn {
        width: 38px;
        height: 38px;
    }
    
    .volume-control {
        padding: 4px 8px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    /* Prevent controls overlap with progress bar */
    .progress-bar {
        max-width: calc(100% - 200px);
    }
}

/* Mobile phones */
@media (max-width: 600px) {
    /* Progress bar - keep at top near edge like flags */
    .progress-bar {
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 12px;
        gap: 8px;
        border-radius: 20px;
        z-index: 150;
        max-width: none;
    }
    
    .progress-label {
        font-size: 0.7rem;
        display: none;
    }
    
    .lightbulbs-container {
        gap: 5px;
    }
    
    .lightbulb {
        font-size: 1.1rem;
    }
    
    /* Language switcher - compact */
    .language-switcher {
        top: 8px;
        right: 8px;
        gap: 4px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
        border-radius: 15px;
    }
    
    .lang-btn span {
        display: none;
    }
    
    .lang-btn .flag-icon { width: 22px; height: 15px; }
    
    /* Sound controls - compact */
    .sound-controls {
        top: 8px;
        left: 8px;
        flex-direction: column;
        gap: 5px;
    }
    
    .mute-btn {
        width: 34px;
        height: 34px;
    }
    
    .mute-icon {
        font-size: 1rem;
    }
    
    .volume-sliders {
        display: none;
    }
    
    .sound-controls:hover .volume-sliders,
    .sound-controls:focus-within .volume-sliders {
        display: flex;
    }
    
    /* Start screen */
    #start-screen {
        background-position: center center;
    }
    
    .start-content-wrapper {
        width: 95%;
        padding: 10px;
        margin-left: 0;
        gap: 10px;
        justify-content: center;
    }
    
    .start-logo {
        max-width: 320px;
    }
    
    .start-content {
        padding: 15px;
        border-radius: 20px;
    }
    
    .start-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn-start {
        padding: 14px 25px;
        font-size: 1.1rem;
        border-radius: 12px;
    }
    
    .btn-continue {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Game scenes - ensure full screen */
    .game-scene {
        width: 100%;
        height: 100%;
        height: 100dvh;
    }
    
    .mini-game {
        width: 100%;
        height: 100%;
        height: 100dvh;
    }
    
    /* Level 1 - Light switch */
    .scene-bg {
        background-position: left -340px center;
    }
    
    .switch-container-3d {
        right: 3%;
        top: 65%;
    }
    
    .switch-plate-3d {
        width: 40px;
        height: 65px;
    }
    
    .switch-frame-3d {
        width: 24px;
        height: 40px;
    }
    
    .switch-label-3d {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .hint-hand {
        font-size: 1.4rem;
    }
    
    .switch-hint-3d {
        top: -35px;
    }
    
    .notification-content {
        padding: 10px 15px;
        gap: 8px;
    }
    
    .notification-icon {
        font-size: 1.5rem;
    }
    
    .notification-text {
        font-size: 0.85rem;
    }
    
    /* Level 2 - Charger */
    .socket-container {
        top: 18%;
    }
    
    .socket-image {
        width: 100px;
    }
    
    .charger-plug {
        top: 21%;
        transform: translate(-20px, 15px);
    }
    
    .plug-body {
        width: 42px;
        height: 32px;
    }
    
    .plug-icon {
        font-size: 1.2rem;
    }
    
    .plug-prong {
        width: 4px;
        height: 14px;
    }
    
    .plug-prongs {
        gap: 14px;
    }
    
    .phone-device {
        right: 5%;
        bottom: 80px;
    }
    
    .phone-image {
        width: 90px;
    }
    
    .energy-waste-new {
        top: 12%;
        padding: 8px 15px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .dropzone-new {
        left: 30%;
        width: 140px;
        height: 100px;
        bottom: 120px;
    }
    
    .dropzone-text-new {
        font-size: 1rem;
    }
    
    /* Level 3 - Fridge */
    .fridge-bg {
        background-position: left -210px center;
    }
    
    .fridge-door-zone {
        top: 25%;
        left: 44%;
        width: 55%;
        height: 65%;
    }
    
    .drag-arrow {
        font-size: 2.5rem;
    }
    
    .drag-text {
        font-size: 1rem;
        padding: 4px 12px;
    }
    
    .door-progress {
        bottom: 70px;
        width: 150px;
        height: 12px;
    }
    
    .cold-air-escape {
        top: 25%;
        left: 30%;
    }
    
    .snowflake-float { width: 22px; height: 22px; }
    
    /* Level 4 - Faucet */
    .valve-zone {
        top: 38%;
        width: 100px;
        height: 100px;
    }
    
    .valve-visual {
        width: 85px;
        height: 85px;
        min-width: 85px;
        min-height: 85px;
        border-width: 3px;
    }
    
    .valve-arrow {
        font-size: 2rem;
    }
    
    .valve-hint-text {
        font-size: 0.85rem;
        padding: 3px 10px;
    }
    
    .valve-progress-container {
        bottom: 70px;
        width: 60px;
        height: 60px;
    }
    
    .valve-progress-text {
        font-size: 0.85rem;
    }
    
    .water-drops-anim {
        top: 50%;
        left: 46%;
    }
    
    .water-drop-icon {
        width: 10px;
        height: 14px;
    }
    
    /* Level 5 - Window */
    .window-drag-zone {
        top: 25%;
        left: 23%;
        width: 45%;
        height: 40%;
        border-width: 3px;
    }
    
    .window-drag-arrow {
        font-size: 3rem;
    }
    
    .window-drag-text {
        font-size: 1rem;
        padding: 6px 15px;
    }
    
    .window-progress {
        bottom: 70px;
        width: 150px;
        height: 12px;
    }
    
    .cold-wind-anim {
        top: 25%;
        left: 35%;
    }
    
    .wind-snowflake { width: 24px; height: 24px; }
    
    /* Overlays */
    .game-overlay {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .overlay-content {
        padding: 10px;
        padding-bottom: 20px;
        flex-direction: column;
        align-items: center;
        max-height: 100%;
        overflow: hidden;
    }
    
    .overlay-kuzya {
        order: 1;
        flex-shrink: 0;
    }
    
    .overlay-kuzya .kuzya-image {
        width: 150px;
    }
    
    .overlay-bubble {
        order: 2;
        max-width: 90%;
        margin-left: 0;
        margin-bottom: 10px;
        padding: 12px 15px;
    }
    
    .overlay-bubble::before {
        display: none;
    }
    
    .overlay-text {
        font-size: 0.9rem;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .overlay-bubble .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* Success overlay */
    .success-content {
        padding-bottom: 20px;
        max-height: 100%;
        overflow: hidden;
    }
    
    .success-content .overlay-inner {
        flex-direction: column;
        align-items: center;
    }
    
    .success-header {
        gap: 5px;
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    
    .success-stars .star {
        font-size: 1.5rem;
    }
    
    .success-stars .star.big {
        font-size: 2rem;
    }
    
    .success-title {
        font-size: 1.2rem;
    }
    
    .success-reward {
        padding: 8px 15px;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .reward-icon {
        font-size: 1.8rem;
    }
    
    .reward-text {
        font-size: 1rem;
    }
    
    .success-bubble {
        max-width: 90%;
        margin-left: 0;
        margin-bottom: 10px;
        padding: 12px 15px;
    }
    
    .success-bubble::before {
        display: none;
    }
    
    /* Final screen */
    .final-content {
        padding: 10px;
        overflow: visible;
        height: auto;
    }
    
    .final-card {
        padding: 15px;
        padding-bottom: 10px;
        border-radius: 20px;
        max-width: 95%;
        max-height: none;
        height: auto;
        overflow: visible;
    }
    
    .trophy-container {
        margin-bottom: 5px;
    }
    
    .trophy {
        font-size: 2.5rem;
    }
    
    .trophy-glow {
        width: 80px;
        height: 80px;
    }
    
    .congrats-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .collected-bulbs {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .bulb-collected {
        font-size: 1.3rem;
    }
    
    .congrats-message {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .final-kuzya {
        margin: 8px 0;
    }
    
    .kuzya-dance-image {
        width: 90px;
    }
    
    .dance-effects {
        width: 150px;
        height: 80px;
    }
    
    .dance-note, .dance-star {
        font-size: 1.2rem;
    }
    
    .eco-message {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    #play-again-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
        margin-top: 10px;
        margin-bottom: 40px;
    }
    
    /* Footer */
    .game-footer {
        padding: 8px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .copyright, .policy-link {
        font-size: 0.7rem;
    }
    
    /* Reward notification */
    .reward-notification-content {
        padding: 15px 25px;
        gap: 10px;
    }
    
    .reward-notification-icon {
        font-size: 2rem;
    }
    
    .reward-notification-text {
        font-size: 1.3rem;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .progress-bar {
        top: 8px;
        padding: 4px 10px;
    }
    
    .lightbulb {
        font-size: 1rem;
    }
    
    .start-logo {
        max-width: 280px;
    }
    
    .start-content {
        padding: 12px;
    }
    
    .start-description {
        font-size: 0.8rem;
    }
    
    .btn-start {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .overlay-kuzya .kuzya-image {
        width: 150px;
    }
    
    .overlay-text {
        font-size: 0.8rem;
    }
    
    .overlay-bubble {
        padding: 10px 12px;
    }
    
    .overlay-bubble .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .success-stars .star {
        font-size: 1.3rem;
    }
    
    .success-stars .star.big {
        font-size: 1.8rem;
    }
    
    .success-title {
        font-size: 1rem;
    }
    
    .success-reward {
        padding: 6px 12px;
    }
    
    .reward-icon {
        font-size: 1.5rem;
    }
    
    .reward-text {
        font-size: 0.9rem;
    }
    
    .final-card {
        padding: 12px;
    }
    
    .trophy {
        font-size: 2rem;
    }
    
    .congrats-title {
        font-size: 1rem;
    }
    
    .bulb-collected {
        font-size: 1.1rem;
    }
    
    .kuzya-dance-image {
        width: 70px;
    }
    
    .eco-message {
        font-size: 0.85rem;
    }
    
    #play-again-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Level specific */
    .socket-image {
        width: 80px;
    }
    
    .phone-image {
        width: 70px;
    }
    
    .valve-visual {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }
    
    .valve-zone {
        width: 85px;
        height: 85px;
    }
    
    .drag-arrow {
        font-size: 2rem;
    }
    
    .window-drag-arrow {
        font-size: 2.5rem;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .progress-bar {
        top: 5px;
        bottom: auto;
        padding: 5px 10px;
    }
    
    .lightbulb {
        font-size: 1rem;
    }
    
    .language-switcher {
        top: 5px;
        right: 5px;
    }
    
    .sound-controls {
        top: 5px;
        left: 5px;
    }
    
    .mute-btn {
        width: 30px;
        height: 30px;
    }
    
    .lang-btn {
        padding: 4px 6px;
    }
    
    .overlay-content {
        flex-direction: row;
        padding: 10px;
        padding-bottom: 10px;
    }
    
    .overlay-kuzya .kuzya-image {
        width: 70px;
    }
    
    .overlay-bubble {
        max-width: 60%;
        margin-left: -10px;
        padding: 10px 15px;
    }
    
    .overlay-bubble::before {
        display: block;
    }
    
    .overlay-text {
        font-size: 0.85rem;
        text-align: left;
    }
    
    .success-content {
        padding-bottom: 10px;
    }
    
    .success-header {
        flex-direction: row;
        gap: 15px;
    }
    
    .success-stars .star {
        font-size: 1.5rem;
    }
    
    .success-stars .star.big {
        font-size: 2rem;
    }
    
    .success-title {
        font-size: 1.1rem;
    }
    
    .success-reward {
        padding: 8px 15px;
    }
    
    .reward-icon {
        font-size: 1.5rem;
    }
    
    .reward-text {
        font-size: 1rem;
    }
    
    .final-card {
        padding: 15px 25px;
        max-width: 80%;
    }
    
    .trophy {
        font-size: 2.5rem;
    }
    
    .congrats-title {
        font-size: 1.2rem;
    }
    
    .kuzya-dance-image {
        width: 80px;
    }
    
    .game-footer {
        display: none;
    }
    
    /* Level specific landscape adjustments */
    .switch-container-3d {
        top: 50%;
    }
    
    .door-progress,
    .valve-progress-container,
    .window-progress {
        bottom: 50px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .light-switch-3d {
        padding: 10px;
    }
    
    .switch-plate-3d {
        transform: scale(1.1);
    }
    
    .valve-zone {
        width: 120px;
        height: 120px;
    }
    
    .valve-visual {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
    }
    
    .fridge-door-zone,
    .window-drag-zone {
        border-width: 4px;
    }
    
    .charger-plug {
        transform: translate(-25px, 18px);
    }
    
    .plug-body {
        width: 50px;
        height: 38px;
    }
    
    /* Disable hover effects that don't work on touch */
    .btn:hover,
    .lang-btn:hover,
    .mute-btn:hover,
    .light-switch-3d:hover .switch-plate-3d {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .lang-btn:active,
    .mute-btn:active {
        transform: scale(0.95);
    }
}
/* ============================================
   Icon replacements for emojis
   ============================================ */
.notification-icon-img { width: 28px; height: 28px; display: inline-block; }
.hint-hand-icon { width: 28px; height: 28px; display: block; }
.plug-icon-img { width: 28px; height: 28px; display: inline-block; }
.success-stars .star-icon { width: 28px; height: 28px; animation: starSpin 2s ease-in-out infinite; }
.success-stars .star-icon.big { width: 40px; height: 40px; animation: starPulse 1s ease-in-out infinite; }
.reward-notification-icon img { width: 36px; height: 36px; display: inline-block; animation: bulbBounce 0.3s ease-in-out infinite alternate; }
.success-reward .reward-icon-img { width: 28px; height: 28px; animation: bulbGlow 1s ease-in-out infinite; }
.drag-arrow-icon { width: 28px; height: 28px; animation: arrowMove 1s ease-in-out infinite; }
.window-drag-arrow-icon { width: 28px; height: 28px; animation: arrowMoveLeft 1s ease-in-out infinite; }
.trophy-icon { width: 84px; height: 84px; animation: trophyBounce 1s ease-in-out infinite; }
.bulb-collected-icon { width: 28px; height: 28px; animation: bulbDance 0.5s ease-in-out infinite alternate; }
.dance-note-icon, .dance-star-icon { position: absolute; width: 24px; height: 24px; animation: floatAway 2s ease-out infinite; }
.dance-note-icon:nth-child(1) { left: 10%; animation-delay: 0s; }
.dance-note-icon:nth-child(2) { right: 10%; animation-delay: 0.5s; }
.dance-star-icon { left: 50%; animation-delay: 1s; animation-name: starFloat; }
.dance-note-icon:nth-child(4) { left: 30%; animation-delay: 1.5s; }
.lightbulb-icon { width: 22px; height: 22px; display: block; }
.waste-icon-img { width: 26px; height: 26px; display: inline-block; }
.btn-icon-img { width: 22px; height: 22px; display: inline-block; }
/* Final title with confetti icons */
.congrats-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.congrats-icon {
    width: 32px;
    height: 32px;
    animation: trophyBounce 1s ease-in-out infinite;
}
