* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
    overflow-x: hidden;
}

.container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 700px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

h1 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd166 50%, #06d6a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.8em;
    margin-bottom: 30px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.scoreboard {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.score-box {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 25px 20px;
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.score-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.score-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.score-box h3 {
    font-size: 1em;
    margin-bottom: 10px;
    opacity: 0.8;
    font-weight: 500;
}

.score-box div {
    font-size: 3.2em;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.start-btn,
.reset-btn {
    background: linear-gradient(135deg, #118ab2 0%, #06d6a0 100%);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 20px 30px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(6, 214, 160, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.start-btn::before,
.reset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.start-btn:hover:not(:disabled),
.reset-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(6, 214, 160, 0.4);
}

.start-btn:hover:not(:disabled)::before,
.reset-btn:hover:not(:disabled)::before {
    left: 100%;
}

.start-btn:active:not(:disabled),
.reset-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(6, 214, 160, 0.4);
}

.start-btn:disabled,
.reset-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(255, 253, 253);
    cursor: not-allowed;
    box-shadow: none;
}

.status-message {
    font-size: 1.2em;
    font-weight: 600;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd166;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.status-message.success {
    color: #06d6a0;
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.status-message.info {
    color: #118ab2;
    background: rgba(17, 138, 178, 0.1);
    border: 1px solid rgba(17, 138, 178, 0.3);
}

.status-message.warning {
    color: #ffd166;
    background: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.3);
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    justify-items: center;
}

.hole {
    height: 170px;
    width: 190px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mole {
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-radius: 50%;
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.2s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.mole::before {
    content: '🐹';
    font-size: 3em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mole.up {
    bottom: 15%;
}

.mole.bonked {
    bottom: -100%;
    transition: bottom 0.1s ease-in;
}

@keyframes popUp {
    0% {
        bottom: -100%;
        transform: translateX(-50%) scale(0.8);
    }
    70% {
        bottom: 20%;
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        bottom: 15%;
        transform: translateX(-50%) scale(1);
    }
}

/* Tablet Devices */
@media (max-width: 1024px) {
    .container {
        padding: 30px;
        max-width: 600px;
    }
    
    h1 {
        font-size: 2.4em;
        margin-bottom: 25px;
    }
    
    .hole {
        height: 155px;
        width: 165px;
    }
    
    .mole::before {
        font-size: 2.5em;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .scoreboard {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .score-box {
        min-width: 100px;
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .score-box h3 {
        font-size: 0.9em;
    }
    
    .score-box div {
        font-size: 2.5em;
    }
    
    .game-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 15px;
    }
    
    .hole {
        height: 155px;
        width: 175px;
    }
    
    .mole::before {
        font-size: 2em;
    }
    
    .start-btn,
    .reset-btn {
        padding: 18px 25px;
        font-size: 1.1em;
        margin-bottom: 15px;
        border-radius: 15px;
    }
    
    .status-message {
        padding: 15px;
        font-size: 1.1em;
        min-height: 50px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
}

@media (max-width: 650px){
    .hole {
        height: 125px;
        width: 27vw;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .scoreboard {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .score-box {
        min-width: 80px;
        padding: 15px 10px;
        border-radius: 12px;
    }
    
    .score-box h3 {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    
    .score-box div {
        font-size: 2em;
    }
    
    .game-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 10px;
    }
    
    .hole {
        height: 105px;
        width: 28vw;
    }
    
    .mole::before {
        font-size: 1.6em;
    }
    
    .start-btn,
    .reset-btn {
        padding: 16px 20px;
        font-size: 1em;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .status-message {
        padding: 12px;
        font-size: 1em;
        min-height: 45px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .container {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    .score-box {
        min-width: 70px;
        padding: 12px 8px;
    }
    
    .score-box div {
        font-size: 1.8em;
    }
    
    .game-board {
        gap: 8px;
    }
    
    .hole {
        height: 95px;
        width: 98px;
    }
    
    .mole::before {
        font-size: 1.4em;
    }
    
    .start-btn,
    .reset-btn {
        padding: 14px 18px;
        font-size: 0.9em;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        max-width: 90%;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .scoreboard {
        margin-bottom: 15px;
    }
    
    .game-board {
        gap: 10px;
        margin-top: 10px;
    }
    
    .hole {
        height: 100px;
        width: 100px;
    }
    
    .status-message {
        min-height: 40px;
        margin-bottom: 15px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .container {
        border-width: 0.5px;
    }
    
    .hole {
        border-width: 0.5px;
    }
}