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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    max-width: 800px;
    width: 100%;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.score, .timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid #FFD700;
}

.canvas-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

#gameCanvas {
    border: 3px solid #FFD700;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.controls {
    margin-top: 20px;
    font-size: 1.1em;
}

.replay-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.replay-btn:active {
    transform: translateY(0);
}

.message {
    position: absolute;
    top: 35%;
    left: 15%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: bold;
    padding: 20px;
    border-radius: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 1s infinite alternate;
    z-index: 10;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.win-message {
    background: linear-gradient(45deg, #00C851, #007E33);
    border: 3px solid #FFD700;
}

.lose-message {
    background: linear-gradient(45deg, #ff4444, #CC0000);
    border: 3px solid #FFD700;
}

.timeout-message {
    background: linear-gradient(45deg, #ffbb33, #FF8800);
    border: 3px solid #FFD700;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hidden {
    display: none;
}

.instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.5;
}