/* ==========================================
   MILO'S SNOWBALL FIGHT GAME
   ========================================== */

/* Play Game Button */
.play-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    font-family: inherit;
}

.play-game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.play-game-btn:active {
    transform: scale(0.98);
}

.game-btn-icon {
    font-size: 1.2em;
}

.game-btn-snowflake {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Game Overlay */
.game-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.game-overlay.active {
    display: flex;
}

/* Game Container */
.game-container {
    width: 95%;
    max-width: 800px;
    height: 90vh;
    max-height: 600px;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 50%, #FFFFFF 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Game Header */
.game-header {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.game-header h2 {
    color: white;
    margin: 0;
    font-size: 1.4em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.game-stats span {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

.game-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s;
}

.game-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Game Arena */
.game-arena {
    position: relative;
    height: calc(100% - 140px);
    background: linear-gradient(180deg,
        #87CEEB 0%,
        #B3E5FC 30%,
        #E1F5FE 50%,
        #FFFFFF 70%,
        #F5F5F5 100%);
    overflow: hidden;
    cursor: crosshair;
}

/* Snow ground */
.game-arena::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #E3F2FD 0%, #FFFFFF 100%);
    border-radius: 100% 100% 0 0;
}

/* Milo Character - Cocker Spaniel */
.milo-character {
    position: absolute;
    bottom: 30px;
    left: 50px;
    width: 100px;
    height: 90px;
    z-index: 10;
    transition: transform 0.1s;
}

.milo-body {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Milo's Torso */
.milo-torso {
    position: absolute;
    bottom: 20px;
    left: 15px;
    width: 60px;
    height: 35px;
    background: linear-gradient(135deg, #D4A574 0%, #C4956A 50%, #B8845A 100%);
    border-radius: 50% 50% 45% 45%;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.1);
}

/* Milo's Head */
.milo-head {
    position: absolute;
    bottom: 40px;
    left: 50px;
    width: 45px;
    height: 40px;
    background: linear-gradient(135deg, #D4A574 0%, #C08050 100%);
    border-radius: 50% 50% 45% 45%;
    z-index: 2;
}

.milo-face {
    position: relative;
    width: 100%;
    height: 100%;
}

.milo-eyes {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.milo-eye {
    width: 8px;
    height: 10px;
    background: #2D1B0E;
    border-radius: 50%;
    position: relative;
}

.milo-eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
}

.milo-nose {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 8px;
    background: #1A0F0A;
    border-radius: 50% 50% 40% 40%;
}

.milo-tongue {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 8px;
    background: #FF6B9D;
    border-radius: 0 0 50% 50%;
    animation: pant 0.5s ease-in-out infinite;
}

@keyframes pant {
    0%, 100% { height: 8px; }
    50% { height: 12px; }
}

/* Milo's Ears - Cocker Spaniel Style */
.milo-ear {
    position: absolute;
    width: 20px;
    height: 45px;
    background: linear-gradient(180deg, #8B6914 0%, #6B4E0A 100%);
    border-radius: 0 0 50% 50%;
    z-index: 1;
}

.milo-ear.left {
    bottom: 35px;
    left: 35px;
    transform: rotate(-15deg);
    animation: earFlop 2s ease-in-out infinite;
}

.milo-ear.right {
    bottom: 35px;
    left: 70px;
    transform: rotate(15deg);
    animation: earFlop 2s ease-in-out infinite 0.5s;
}

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

.milo-ear.right {
    animation-name: earFlopRight;
}

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

/* Milo's Legs */
.milo-legs {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 55px;
    height: 25px;
}

.milo-leg {
    position: absolute;
    width: 12px;
    height: 22px;
    background: linear-gradient(180deg, #C4956A 0%, #A67B5B 100%);
    border-radius: 5px 5px 8px 8px;
}

.milo-leg.front-left { left: 0; }
.milo-leg.front-right { left: 15px; }
.milo-leg.back-left { left: 30px; }
.milo-leg.back-right { left: 45px; }

/* Milo's Tail */
.milo-tail {
    position: absolute;
    bottom: 35px;
    left: 5px;
    width: 8px;
    height: 25px;
    background: linear-gradient(180deg, #D4A574 0%, #8B6914 100%);
    border-radius: 50%;
    transform-origin: bottom center;
    animation: wagTail 0.3s ease-in-out infinite;
}

@keyframes wagTail {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
}

/* Milo's Santa Hat */
.milo-santa-hat {
    position: absolute;
    bottom: 75px;
    left: 55px;
    z-index: 5;
}

.milo-hat-base {
    width: 30px;
    height: 20px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 50% 50% 0 0;
    position: relative;
    transform: rotate(-10deg);
}

.milo-hat-base::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -3px;
    width: 36px;
    height: 8px;
    background: #fff;
    border-radius: 4px;
}

.milo-hat-pom {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    animation: pomBounce 0.6s ease-in-out infinite;
}

/* Milo's Scarf */
.milo-scarf {
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 50px;
    height: 10px;
    background: linear-gradient(90deg, #4CAF50 0%, #2E7D32 50%, #4CAF50 100%);
    border-radius: 5px;
    z-index: 3;
}

.milo-scarf::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 5px;
    width: 15px;
    height: 20px;
    background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 0 0 5px 5px;
}

/* Milo Throw Animation */
.milo-character.throwing {
    animation: miloThrow 0.3s ease-out;
}

@keyframes miloThrow {
    0% { transform: translateX(0) rotate(0); }
    30% { transform: translateX(-10px) rotate(-10deg); }
    60% { transform: translateX(15px) rotate(5deg); }
    100% { transform: translateX(0) rotate(0); }
}

/* Snowman Target */
.snowman-target {
    position: absolute;
    width: 50px;
    height: 70px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 5;
}

.snowman-target:hover {
    transform: scale(1.05);
}

.snowman-body-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 35px;
    background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E8E8E8 100%);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.snowman-body-top {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E8E8E8 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.snowman-head {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 22px;
    background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E8E8E8 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.snowman-hat {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: #1A1A1A;
    border-radius: 3px 3px 0 0;
}

.snowman-hat::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -5px;
    width: 30px;
    height: 5px;
    background: #1A1A1A;
    border-radius: 2px;
}

.snowman-eyes {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.snowman-eye {
    width: 4px;
    height: 4px;
    background: #1A1A1A;
    border-radius: 50%;
}

.snowman-nose {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #FF6B00;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.snowman-buttons {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.snowman-button {
    width: 5px;
    height: 5px;
    background: #1A1A1A;
    border-radius: 50%;
}

/* Snowman Hit Animation */
.snowman-target.hit {
    animation: snowmanHit 0.5s ease-out forwards;
}

@keyframes snowmanHit {
    0% { transform: scale(1) rotate(0); opacity: 1; }
    30% { transform: scale(1.2) rotate(-10deg); }
    60% { transform: scale(0.8) rotate(10deg); opacity: 0.5; }
    100% { transform: scale(0) rotate(0); opacity: 0; }
}

/* Snowball Projectile */
.snowball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #E0E0E0 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 20;
    pointer-events: none;
}

.snowball.flying {
    animation: snowballFly 0.4s ease-out forwards;
}

@keyframes snowballFly {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(0.8); }
}

/* Snowball Splash */
.snowball-splash {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 25;
}

.splash-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: splashOut 0.4s ease-out forwards;
}

@keyframes splashOut {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Game Controls */
.game-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.9) 100%);
    text-align: center;
}

.game-instructions {
    margin: 0 0 10px 0;
    color: #1565C0;
    font-weight: 600;
    font-size: 0.95em;
}

.game-start-btn, .game-restart-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.game-start-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.game-restart-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.game-start-btn:hover, .game-restart-btn:hover {
    transform: scale(1.05);
}

/* Game Over Screen */
.game-over-screen {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 30;
}

.game-over-screen.active {
    display: block;
    animation: popIn 0.3s ease-out;
}

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

.game-over-screen h3 {
    color: #1565C0;
    margin: 0 0 15px 0;
    font-size: 2em;
}

.game-over-screen p {
    color: #333;
    margin: 10px 0;
    font-size: 1.2em;
}

.game-message {
    font-style: italic;
    color: #666 !important;
}

/* Score Popup */
.score-popup {
    position: absolute;
    font-size: 1.5em;
    font-weight: 700;
    color: #4CAF50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
    animation: scoreFloat 0.8s ease-out forwards;
    z-index: 30;
}

@keyframes scoreFloat {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-40px) scale(1.5); opacity: 0; }
}

/* Mobile adjustments for game */
@media (max-width: 600px) {
    .game-container {
        height: 95vh;
        max-height: none;
        border-radius: 10px;
    }

    .game-header {
        padding: 10px 15px;
    }

    .game-header h2 {
        font-size: 1.1em;
    }

    .game-stats {
        gap: 8px;
    }

    .game-stats span {
        padding: 4px 8px;
        font-size: 0.8em;
    }

    .milo-character {
        transform: scale(0.8);
        left: 20px;
        bottom: 20px;
    }

    .snowman-target {
        transform: scale(0.8);
    }

    .play-game-btn {
        padding: 8px 16px;
        font-size: 0.85em;
    }
}

/* Dancing Santa */
.dancing-santa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dancing-santa:hover {
    transform: scale(1.1);
}

.santa-character {
    position: relative;
    width: 80px;
    height: 120px;
    animation: santaBop 0.6s ease-in-out infinite;
}

/* Santa's Hat */
.santa-hat {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hat-base {
    width: 50px;
    height: 30px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 50% 50% 0 0;
    position: relative;
}

.hat-base::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -5px;
    width: 60px;
    height: 12px;
    background: #fff;
    border-radius: 6px;
}

.hat-pom {
    position: absolute;
    top: -8px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    animation: pomBounce 0.6s ease-in-out infinite;
}

/* Santa's Face */
.santa-face {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 50px;
    background: #ffccbc;
    border-radius: 50%;
    z-index: 2;
}

.santa-eyes {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
}

.eye {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    animation: blink 3s infinite;
}

.santa-nose {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 10px;
    background: #ef9a9a;
    border-radius: 50%;
}

.santa-cheeks {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.cheek {
    width: 10px;
    height: 8px;
    background: rgba(244, 143, 177, 0.6);
    border-radius: 50%;
}

.santa-beard {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 35px;
    background: #fff;
    border-radius: 0 0 50% 50%;
}

.santa-beard::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 5px;
    width: 40px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
}

.santa-mouth {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background: #c62828;
    border-radius: 0 0 10px 10px;
    z-index: 3;
}

/* Santa's Body */
.santa-body {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 45px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 30px 30px 20px 20px;
    z-index: 1;
}

.belt {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 10px;
    background: #333;
}

.belt::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 12px;
    background: #ffd700;
    border-radius: 2px;
}

/* Santa's Arms */
.santa-arms {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    display: flex;
    justify-content: space-between;
    z-index: 0;
}

.arm {
    width: 15px;
    height: 30px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 10px;
}

.arm.left {
    transform-origin: top center;
    animation: armWaveLeft 0.6s ease-in-out infinite;
}

.arm.right {
    transform-origin: top center;
    animation: armWaveRight 0.6s ease-in-out infinite;
}

.arm::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ffccbc;
    border-radius: 50%;
}

/* Santa's Legs */
.santa-legs {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    display: flex;
    justify-content: space-between;
    z-index: 0;
}

.leg {
    width: 14px;
    height: 25px;
    background: #333;
    border-radius: 0 0 8px 8px;
}

.leg.left {
    transform-origin: top center;
    animation: legKickLeft 0.6s ease-in-out infinite;
}

.leg.right {
    transform-origin: top center;
    animation: legKickRight 0.6s ease-in-out infinite;
}

/* Santa's Shadow */
.santa-shadow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    animation: shadowPulse 0.6s ease-in-out infinite;
}

/* Dance Text */
.dance-text {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.dancing-santa:hover .dance-text {
    opacity: 1;
}

/* Party Mode - More Energetic Dance */
.dancing-santa.party-mode .santa-character {
    animation: santaParty 0.3s ease-in-out infinite;
}

.dancing-santa.party-mode .arm.left {
    animation: armPartyLeft 0.3s ease-in-out infinite;
}

.dancing-santa.party-mode .arm.right {
    animation: armPartyRight 0.3s ease-in-out infinite;
}

.dancing-santa.party-mode .leg.left {
    animation: legPartyLeft 0.3s ease-in-out infinite;
}

.dancing-santa.party-mode .leg.right {
    animation: legPartyRight 0.3s ease-in-out infinite;
}

.dancing-santa.party-mode .hat-pom {
    animation: pomParty 0.15s ease-in-out infinite;
}

.dancing-santa.party-mode .dance-text::after {
    content: ' 🎉';
}

/* Animations */
@keyframes santaBop {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

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

@keyframes pomBounce {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, -3px); }
}

@keyframes pomParty {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5px, -5px) scale(1.2); }
}

@keyframes armWaveLeft {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(15deg); }
}

@keyframes armWaveRight {
    0%, 100% { transform: rotate(10deg); }
    50% { transform: rotate(-15deg); }
}

@keyframes armPartyLeft {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(40deg); }
}

@keyframes armPartyRight {
    0%, 100% { transform: rotate(30deg); }
    50% { transform: rotate(-40deg); }
}

@keyframes legKickLeft {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(8deg); }
}

@keyframes legKickRight {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(-8deg); }
}

@keyframes legPartyLeft {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(20deg); }
}

@keyframes legPartyRight {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(-20deg); }
}

@keyframes shadowPulse {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.2; }
    50% { transform: translateX(-50%) scaleX(0.8); opacity: 0.3; }
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .dancing-santa {
        display: none;
    }
}

/* Mobile positioning */
@media (max-width: 768px) {
    .dancing-santa {
        bottom: 80px;
        right: 10px;
        transform: scale(0.8);
    }

    .dancing-santa:hover {
        transform: scale(0.9);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dance-text {
        color: #aaa;
    }
}

/* Snow Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: fixed;
    top: -10%;
    color: #fff;
    font-size: 1.5em;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: snowfall linear infinite;
    opacity: 0.8;
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 1.8em; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 2s; font-size: 1.4em; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1.6em; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: 3s; font-size: 1.3em; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.7em; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 2.5s; font-size: 1.5em; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 4s; font-size: 1.2em; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 0.8s; font-size: 1.9em; }
.snowflake:nth-child(10) { left: 92%; animation-duration: 8s; animation-delay: 3.5s; font-size: 1.4em; }
.snowflake:nth-child(11) { left: 10%; animation-duration: 11s; animation-delay: 5s; font-size: 1.6em; }
.snowflake:nth-child(12) { left: 50%; animation-duration: 9s; animation-delay: 4.5s; font-size: 1.3em; }

@keyframes snowfall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateX(15px) rotate(90deg);
    }
    50% {
        transform: translateX(-15px) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: translateX(10px) rotate(270deg);
    }
    100% {
        top: 100%;
        transform: translateX(-10px) rotate(360deg);
        opacity: 0.6;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .snowflakes {
        display: none;
    }
}

/* Holiday Welcome Banner */
.christmas-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    padding: 18px 24px;
    text-align: center;
    margin: -20px -20px 20px -20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.christmas-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 25%,
        rgba(212, 175, 55, 0.15) 50%,
        rgba(212, 175, 55, 0.1) 75%,
        transparent 100%);
    pointer-events: none;
}

.christmas-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.christmas-stars {
    color: #d4af37;
    font-size: 1em;
    animation: twinkle 2s ease-in-out infinite;
    opacity: 0.9;
}

.christmas-icon {
    font-size: 1.5em;
    animation: gentleBounce 3s ease-in-out infinite;
}

.christmas-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.holiday-greeting {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #ffffff 0%, #d4af37 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.holiday-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.02em;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

@media (max-width: 768px) {
    .christmas-banner {
        padding: 14px 16px;
    }

    .holiday-greeting {
        font-size: 1em;
    }

    .holiday-subtext {
        font-size: 0.8em;
    }

    .christmas-icon {
        font-size: 1.3em;
    }

    .christmas-stars {
        display: none;
    }
}

@media (max-width: 480px) {
    .christmas-content {
        gap: 8px;
    }

    .holiday-greeting {
        font-size: 0.9em;
    }

    .holiday-subtext {
        font-size: 0.75em;
    }

    .christmas-icon {
        font-size: 1.1em;
    }
}
