/**
 * snacks.css - Snack Catcher game styles
 */

/* ======== KEYFRAMES ======== */
@keyframes dadBob {
    0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
    50% { transform: translate(-50%, -50%) translateY(-8px) rotate(2deg); }
}

@keyframes zzBob {
    0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.9; }
    50% { transform: translateY(-10px) rotate(5deg); opacity: 1; }
}

@keyframes snackPopIn {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    70% { transform: scale(1.2) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes snackFadeOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.5); opacity: 0; }
}

@keyframes riskyGlow {
    0%, 100% { filter: drop-shadow(0 0 10px gold) drop-shadow(0 0 20px gold); }
    50% { filter: drop-shadow(0 0 20px gold) drop-shadow(0 0 40px orange); }
}

@keyframes scorePopup {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-50px) scale(1.3); opacity: 0; }
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px) rotate(-1deg); }
    20% { transform: translateX(10px) rotate(1deg); }
    30% { transform: translateX(-10px) rotate(-1deg); }
    40% { transform: translateX(10px) rotate(1deg); }
    50% { transform: translateX(-8px) rotate(-0.5deg); }
    60% { transform: translateX(8px) rotate(0.5deg); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-2px); }
}

@keyframes giantZzz {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    80% { transform: translate(-50%, -100%) scale(2); opacity: 1; }
    100% { transform: translate(-50%, -150%) scale(2.5); opacity: 0; }
}

@keyframes crazyZzz {
    0%, 100% { transform: translateY(0) rotate(-15deg) scale(1.5); }
    25% { transform: translateY(-20px) rotate(15deg) scale(1.8); }
    50% { transform: translateY(-10px) rotate(-20deg) scale(1.6); }
    75% { transform: translateY(-25px) rotate(20deg) scale(1.9); }
}

@keyframes fartCloud {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(2); opacity: 0; }
}

@keyframes broccoliPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes warningFlash {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes levelUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); background: #ffeb3b; }
    100% { transform: scale(1); }
}

@keyframes speechPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes snacksAlertnessPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 25px rgba(255, 0, 0, 0.4); }
}

@keyframes snacksDangerPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes snacksEyeBlink {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    40% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    60% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.9); }
    80% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

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

@keyframes snacksComboBreak {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(0) rotate(-20deg); opacity: 0; }
}

@keyframes snacksGoldenPulse {
    0%, 100% { filter: drop-shadow(0 0 15px gold) drop-shadow(0 0 30px yellow); }
    50% { filter: drop-shadow(0 0 25px gold) drop-shadow(0 0 50px orange); }
}

@keyframes snacksPowerupPop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

@keyframes snacksEyePulse {
    0%, 100% { background: rgba(255, 0, 0, 0.15); }
    50% { background: rgba(255, 0, 0, 0.3); }
}

@keyframes snacksEyeBounce {
    0% { transform: translateX(-50%) scale(0); }
    50% { transform: translateX(-50%) scale(1.3); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes snacksEyeStare {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

@keyframes snacksTrapPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px #ff4444) drop-shadow(0 0 16px #ff0000);
        transform: scale(1) rotate(0deg);
    }
    50% {
        filter: drop-shadow(0 0 12px #ff6666) drop-shadow(0 0 24px #ff2222);
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes snacksAlarmFlash {
    0%, 20%, 40%, 60%, 80%, 100% { opacity: 0; }
    10%, 30%, 50%, 70%, 90% { opacity: 0.8; }
}

@keyframes snacksMusicFloat {
    0%, 100% {
        transform: translateY(0) rotate(-15deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-25px) rotate(15deg);
        opacity: 1;
    }
}

@keyframes snacksBonusPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(5deg); }
}

@keyframes snacksFloatUp {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150%) scale(1);
        opacity: 0;
    }
}

/* ======== BASE STYLES ======== */
body {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    overflow: hidden;
    touch-action: manipulation;
}

/* ======== HEADER ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 501;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.header h1 {
    font-size: 1.4rem;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #333;
}

.header-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ======== SCORE BOARD ======== */
.score-board {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.score-box {
    background: rgba(255,255,255,0.95);
    padding: 10px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.score-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.score-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f12711;
}

/* ======== LEVEL INDICATOR ======== */
.level-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 100;
    display: none;
}

.level-indicator.show {
    display: block;
}

.level-indicator.level-up {
    animation: levelUp 0.5s ease;
}

/* ======== ALERTNESS METER ======== */
.snacks-alertness-container {
    position: fixed;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
}

.snacks-alertness-container.show {
    display: flex;
}

.snacks-alertness-label {
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.snacks-alertness-bar {
    width: 150px;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
}

.snacks-alertness-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 6px;
}

.snacks-alertness-fill.green { background: linear-gradient(90deg, #4CAF50, #8BC34A); }
.snacks-alertness-fill.yellow { background: linear-gradient(90deg, #FFC107, #FFEB3B); }
.snacks-alertness-fill.orange { background: linear-gradient(90deg, #FF9800, #FF5722); }
.snacks-alertness-fill.red { background: linear-gradient(90deg, #f44336, #E91E63); }

.snacks-alertness-fill.pulsing {
    animation: snacksAlertnessPulse 0.5s ease-in-out infinite;
}

.snacks-alertness-value {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 35px;
}

/* ======== DANGER ZONE ======== */
.snacks-danger-zone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.25) 0%, rgba(255, 0, 0, 0.1) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}

.snacks-danger-zone.show {
    opacity: 1;
}

.snacks-danger-zone.alert {
    animation: snacksDangerPulse 1s ease-in-out infinite;
}

/* ======== EYE OVERLAY ======== */
.snacks-eye-overlay {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 12;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.snacks-eye-overlay.blink {
    animation: snacksEyeBlink 0.8s ease forwards;
}

/* ======== GAME AREA ======== */
.game-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.game-area.shake {
    animation: screenShake 0.5s ease;
}

/* ======== DAD CONTAINER ======== */
.dad-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: left 0.8s ease-in-out, top 0.8s ease-in-out;
}

.dad-container.playing {
    animation: dadBob 3s ease-in-out infinite;
}

.dad-face {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* ======== SLEEP INDICATOR ======== */
.sleep-indicator {
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: 2rem;
    cursor: pointer;
    animation: zzBob 2s ease-in-out infinite;
    z-index: 15;
}

.sleep-indicator.tap-scale {
    transform: scale(1.3);
    transition: transform 0.1s;
}

.sleep-indicator.crazy {
    animation: crazyZzz 0.3s ease-in-out infinite;
    font-size: 3rem;
}

/* ======== SPEECH BUBBLE ======== */
.dad-speech {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.dad-speech.show {
    animation: speechPop 0.3s ease forwards;
}

.dad-speech::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: white;
}

/* ======== DAD'S HAND ======== */
.dad-hand {
    position: absolute;
    font-size: 3rem;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    transition: left 0.4s ease-out, top 0.4s ease-out;
}

.dad-hand.show {
    opacity: 1;
}

/* ======== SNACKS ======== */
.snack {
    position: absolute;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 5;
    animation: snackPopIn 0.4s ease forwards;
    transition: transform 0.1s;
}

.snack:active {
    transform: scale(0.9);
}

.snack.fade-out {
    animation: snackFadeOut 0.3s ease forwards;
}

.snack.risky {
    z-index: 4;
    animation: snackPopIn 0.4s ease forwards, riskyGlow 1s ease-in-out infinite;
}

.snack.broccoli-pop {
    animation: broccoliPop 0.4s ease;
}

/* ======== SCORE POPUP ======== */
.score-popup {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    pointer-events: none;
    animation: scorePopup 0.6s ease forwards;
    z-index: 50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.score-popup.normal {
    color: #4CAF50;
}

.score-popup.bonus {
    color: gold;
    font-size: 2rem;
}

/* ======== WARNING OVERLAY ======== */
.warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,0,0,0.3);
    z-index: 200;
    pointer-events: none;
    animation: warningFlash 0.5s ease;
}

/* ======== GIANT ZZZ ======== */
.giant-zzz {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 5rem;
    font-weight: bold;
    color: #3f51b5;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.3);
    z-index: 300;
    animation: giantZzz 2s ease forwards;
}

/* ======== FART CLOUD ======== */
.fart-cloud {
    position: absolute;
    font-size: 3rem;
    pointer-events: none;
    animation: fartCloud 1.5s ease forwards;
    z-index: 50;
}

/* ======== WARNING MESSAGE ======== */
.warning-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    color: #4CAF50;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 1.3rem;
    text-align: center;
    z-index: 250;
    animation: speechPop 0.4s ease;
}

/* ======== OVERLAYS ======== */
.overlay {
    flex-direction: row;
    z-index: 500;
    padding: 0;
}

.overlay-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.overlay-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.overlay-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.overlay-content .emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.overlay-btn {
    background: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #764ba2;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 5px;
}

.overlay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.overlay-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ======== GAME OVER SPECIFIC ======== */
.game-over-face {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.final-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.rank-display {
    color: #ffd700;
    font-size: 1.3rem;
    margin: 10px 0;
}

/* ======== COMBO DISPLAY ======== */
.snacks-combo-display {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 2.5rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
    pointer-events: none;
}

.snacks-combo-display.active {
    opacity: 1;
    transform: scale(1);
}

.snacks-combo-text {
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35, 0 0 20px #ff4500, 0 0 30px #ff0000;
}

.snacks-combo-display.pulse {
    animation: snacksComboPulse 0.3s ease;
}

.snacks-combo-display.max {
    animation: snacksComboPulse 0.5s ease infinite;
}

.snacks-combo-display.break {
    animation: snacksComboBreak 0.3s ease forwards;
}

/* ======== POWER-UPS ======== */
.snack.snacks-powerup {
    filter: drop-shadow(0 0 10px white) drop-shadow(0 0 20px cyan);
    z-index: 6;
}

.snack.snacks-golden {
    filter: drop-shadow(0 0 15px gold) drop-shadow(0 0 30px yellow) drop-shadow(0 0 45px orange);
    animation: snackPopIn 0.4s ease forwards, snacksGoldenPulse 0.4s ease-in-out infinite;
}

.snacks-powerup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px currentColor;
    opacity: 0;
    pointer-events: none;
    z-index: 150;
}

.snacks-powerup-message.show {
    animation: snacksPowerupPop 1s ease forwards;
}

/* Slow-mo effect on body */
body.snacks-slow-mo {
    filter: saturate(0.7) hue-rotate(-15deg);
}

body.snacks-slow-mo .game-area {
    transition: filter 0.3s;
}

/* Lullaby mode effect */
body.snacks-lullaby {
    filter: hue-rotate(180deg) brightness(0.95) saturate(0.8);
    transition: filter 0.5s;
}

.snacks-music-note {
    position: absolute;
    font-size: 1.5rem;
    animation: snacksMusicFloat 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 25;
}

/* Night mode effect */
body.snacks-night-mode {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0d0d2b 100%) !important;
    transition: background 1s ease;
}

body.snacks-night-mode .header {
    background: linear-gradient(to bottom, rgba(0,0,30,0.6) 0%, transparent 100%);
}

body.snacks-night-mode .header h1 {
    color: #87CEEB;
}

body.snacks-night-mode .score-box {
    background: rgba(20,20,50,0.95);
    border: 1px solid rgba(100,149,237,0.3);
}

body.snacks-night-mode .score-value {
    color: #00BFFF;
}

body.snacks-night-mode .level-indicator {
    background: rgba(20,20,60,0.9);
    color: #87CEEB;
}

body.snacks-night-mode .snack:not(.snacks-trap):not(.snacks-powerup) {
    filter: drop-shadow(0 0 8px #00ffff) drop-shadow(0 0 16px #0066ff);
}

body.snacks-night-mode .dad-face {
    filter: brightness(0.8);
}

body.snacks-night-mode .dad-container {
    filter: drop-shadow(0 0 20px rgba(100,149,237,0.3));
}

/* Bonus pizza styling */
.snack.snacks-bonus-pizza {
    filter: drop-shadow(0 0 10px gold) drop-shadow(0 0 20px orange);
    animation: snackPopIn 0.4s ease forwards, snacksBonusPulse 0.6s ease-in-out infinite;
}

/* Float emoji (for pizza lover heart) */
.snacks-float-emoji {
    position: absolute;
    font-size: 2.5rem;
    animation: snacksFloatUp 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

/* ======== SCORE POPUP ENHANCEMENT ======== */
.score-popup.massive {
    color: #ff00ff;
    font-size: 2.5rem;
    text-shadow: 0 0 20px #ff00ff;
}

/* ======== EYE OPEN WARNING OVERLAY ======== */
.snacks-eye-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.15);
    pointer-events: none;
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
}

.snacks-eye-warning.warning {
    opacity: 0.5;
    background: rgba(255, 200, 0, 0.2);
}

.snacks-eye-warning.active {
    opacity: 1;
    animation: snacksEyePulse 0.5s ease-in-out infinite;
}

/* ======== EYE ICON (One Eye Open) ======== */
.snacks-eye-icon {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.3s, transform 0.3s;
}

.snacks-eye-icon.warning {
    opacity: 0.7;
    animation: snacksEyeBounce 0.3s ease-in-out;
}

.snacks-eye-icon.active {
    opacity: 1;
    animation: snacksEyeStare 0.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px red);
}

/* ======== TRAP SNACK (Alarm Clock) ======== */
.snack.snacks-trap {
    filter: drop-shadow(0 0 8px #ff4444) drop-shadow(0 0 16px #ff0000);
    animation: snackPopIn 0.4s ease forwards, snacksTrapPulse 0.8s ease-in-out infinite 0.4s;
}

.snacks-alarm-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    pointer-events: none;
    z-index: 300;
    animation: snacksAlarmFlash 0.5s ease;
}

/* ======== MOBILE RESPONSIVE ======== */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.1rem;
    }

    .header-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .score-board {
        gap: 10px;
    }

    .score-box {
        padding: 8px 15px;
    }

    .score-value {
        font-size: 1.4rem;
    }

    .dad-face {
        width: 120px;
        height: 120px;
    }

    .sleep-indicator {
        font-size: 1.5rem;
        top: -30px;
        right: -15px;
    }

    .snack {
        font-size: 2rem;
    }

    .overlay-content {
        padding: 30px 20px;
    }

    .overlay-content h2 {
        font-size: 1.6rem;
    }

    .snacks-alertness-bar {
        width: 100px;
    }

    .snacks-alertness-label {
        font-size: 0.7rem;
    }

    .snacks-eye-overlay {
        font-size: 2rem;
    }

    .snacks-eye-icon {
        font-size: 2rem;
        top: -50px;
    }
}
