* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #ff9500;
    --bg-dark: #0a0a0a;
    --bg-gradient: linear-gradient(135deg, #1a0a2e 0%, #0f0a1e 100%);
    --glow-orange: #ff6b35;
    --glow-red: #ff3333;
    --glow-green: #00ff88;
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.8),
                   0 0 40px rgba(255, 107, 53, 0.6),
                   0 0 60px rgba(255, 107, 53, 0.4),
                   0 0 80px rgba(255, 107, 53, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Smoke Background Effect */
.smoke-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.smoke {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: floatSmoke 20s infinite ease-in-out;
    opacity: 0.3;
}

@keyframes floatSmoke {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.2);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.8);
    }
}

/* Game Container */
.game-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    padding: 30px;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: var(--shadow-glow);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(10, 10, 20, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.lives-container, .score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lives-label, .score-label {
    font-family: 'Jersey 15', sans-serif;
    font-size: 1.2rem;
    color: var(--glow-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
    letter-spacing: 2px;
}

.lives {
    display: flex;
    gap: 10px;
}

.life-icon {
    width: 30px;
    height: 30px;
    fill: var(--glow-red);
    filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.8));
    animation: heartbeat 1.5s infinite ease-in-out;
}

.life-icon.lost {
    fill: #333;
    filter: none;
    opacity: 0.3;
}

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

.score {
    font-family: 'Jersey 15', sans-serif;
    font-size: 2.5rem;
    color: var(--glow-green);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8),
                 0 0 30px rgba(0, 255, 136, 0.5);
    animation: scoreGlow 2s infinite ease-in-out;
}

@keyframes scoreGlow {
    0%, 100% {
        text-shadow: 0 0 15px rgba(0, 255, 136, 0.8),
                     0 0 30px rgba(0, 255, 136, 0.5);
    }
    50% {
        text-shadow: 0 0 25px rgba(0, 255, 136, 1),
                     0 0 50px rgba(0, 255, 136, 0.8);
    }
}

.settings-btn {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--glow-orange);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--glow-orange);
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.8));
}

.settings-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
}

.hole {
    position: relative;
    height: 150px;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.8) 0%, rgba(20, 10, 30, 0.9) 100%);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 107, 53, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(255, 107, 53, 0.2);
    cursor: pointer;
}

.mole, .bomb {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    transition: bottom 0.3s ease;
    filter: drop-shadow(0 0 15px var(--glow-orange));
}

.mole.up, .bomb.up {
    bottom: 10%;
}

.mole svg, .bomb svg {
    width: 100%;
    height: 100%;
}

/* Particle Effects */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--glow-orange);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px var(--glow-orange);
}

.dust-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #666;
    pointer-events: none;
}

/* Start Button */
.start-btn {
    width: 100%;
    padding: 20px;
    font-family: 'Jersey 15', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--glow-orange) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.start-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 107, 53, 1),
                0 0 60px rgba(255, 107, 53, 0.8),
                0 0 90px rgba(255, 107, 53, 0.6);
}

.start-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.start-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.btn-icon {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.start-btn.playing {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.overlay.active {
    display: flex;
}

/* Modal */
.modal {
    background: rgba(20, 20, 30, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--glow-orange);
    box-shadow: var(--shadow-glow);
    text-align: center;
    min-width: 400px;
    animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal h2 {
    font-family: 'Jersey 15', sans-serif;
    font-size: 2.5rem;
    color: var(--glow-orange);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(10, 10, 20, 0.6);
    border-radius: 10px;
}

.setting-item label {
    font-size: 1.2rem;
    color: #fff;
}

.setting-item input[type="checkbox"] {
    width: 50px;
    height: 25px;
    appearance: none;
    background: #333;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2.5px;
    left: 2.5px;
    transition: all 0.3s ease;
}

.setting-item input[type="checkbox"]:checked {
    background: var(--glow-orange);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

.setting-item input[type="checkbox"]:checked::before {
    left: 27.5px;
}

.final-score-container, .high-score-container {
    margin: 20px 0;
}

.final-score-container p, .high-score-container p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 10px;
}

.final-score, .high-score {
    font-family: 'Jersey 15', sans-serif;
    font-size: 3rem;
    color: var(--glow-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.high-score {
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(255, 149, 0, 0.8);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-btn {
    flex: 1;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--glow-orange) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.8);
}

.modal-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.modal-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        width: 95%;
        padding: 20px;
    }

    .game-board {
        gap: 15px;
        padding: 15px;
    }

    .hole {
        height: 120px;
    }

    .modal {
        min-width: 90%;
        padding: 30px 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

/* Liquid Glow Effect */
@keyframes liquidGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px var(--glow-orange))
                drop-shadow(0 0 30px var(--glow-orange));
    }
    50% {
        filter: drop-shadow(0 0 25px var(--glow-orange))
                drop-shadow(0 0 50px var(--glow-orange))
                drop-shadow(0 0 75px var(--glow-orange));
    }
}

.hole:hover {
    animation: liquidGlow 1.5s infinite ease-in-out;
}
