* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: 'Segoe UI', 'Comic Neue', 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
    background: linear-gradient(145deg, #1a2a6c, #b21f1f, #fdbb4d);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background-color: rgba(255, 248, 205, 0.9);
    border-radius: 60px 60px 40px 40px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3), inset 0 1px 4px rgba(255, 255, 255, 0.8);
    padding: 20px 25px 30px;
    width: 100%;
    max-width: 900px;
    backdrop-filter: blur(2px);
    transition: all 0.2s;
}

.game-header {
    display: flex;
    justify-content: space-between;
    background-color: #2e1b3c;
    padding: 12px 25px;
    border-radius: 50px;
    margin-bottom: 25px;
    color: #ffefb9;
    font-weight: bold;
    font-size: 1.6rem;
    box-shadow: inset 0 2px 5px #1f112a, 0 7px 12px rgba(0, 0, 0, 0.2);
}

.score-box, .timer-box {
    background: #00000055;
    padding: 6px 18px;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
}

.score-box span:first-child, .timer-box span:first-child {
    margin-right: 10px;
}

#score, #timer {
    font-size: 2rem;
    font-weight: bold;
    background: #f9e45b;
    color: #3b2a1f;
    padding: 0 12px;
    border-radius: 40px;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    box-shadow: inset 0 1px 3px #00000044, 0 2px 3px white;
}

.game-area {
    background: radial-gradient(circle at 30% 20%, #ffe6b0, #ffcd94);
    border-radius: 55px;
    min-height: 450px;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    box-shadow: inset 0 0 0 4px #fffaec, inset 0 0 0 8px #e4a022, 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    transition: background 0.2s;
}

.message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffd966dd;
    backdrop-filter: blur(12px);
    padding: 20px 35px;
    border-radius: 60px;
    font-size: 1.7rem;
    font-weight: bold;
    color: #442200;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    border: 2px solid gold;
    font-family: monospace;
}

.star {
    position: absolute;
    font-size: 3.6rem;
    cursor: pointer;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.05s linear;
    animation: starFloat 0.3s ease-out;
    z-index: 20;
}

.star:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px gold);
}

@keyframes starFloat {
    0% {
        transform: scale(0.2) rotate(0deg);
        opacity: 0;
    }
    80% {
        transform: scale(1.1) rotate(15deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.reset-btn {
    background: #ffb347;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: inherit;
    padding: 12px 35px;
    border: none;
    border-radius: 80px;
    color: #2c1a0a;
    cursor: pointer;
    box-shadow: 0 8px 0 #8b5a2b;
    transition: 0.07s linear;
    width: fit-content;
    margin: 0 auto 15px;
    display: block;
}

.reset-btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #8b5a2b;
}

.instructions {
    text-align: center;
    font-size: 1rem;
    background: #ffe2a4;
    padding: 8px 16px;
    border-radius: 80px;
    color: #3b2a1f;
    font-weight: bold;
    width: fit-content;
    margin: 0 auto;
}

@media (max-width: 550px) {
    .game-container {
        padding: 15px;
    }
    .game-header {
        font-size: 1rem;
        padding: 6px 12px;
    }
    #score, #timer {
        font-size: 1.4rem;
        min-width: 50px;
    }
    .star {
        font-size: 2.8rem;
    }
    .message {
        font-size: 1.2rem;
        white-space: normal;
        width: 80%;
        text-align: center;
    }
    .reset-btn {
        font-size: 1.3rem;
    }
}