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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    max-width: 900px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: white;
    font-size: 3em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.tagline {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
}

.game-info {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.95);
    padding: 15px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-item {
    text-align: center;
}

.label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #1e3c72;
}

#gameCanvas {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #87ceeb 0%, #e0f6ff 100%);
    border: 4px solid white;
    border-top: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    cursor: crosshair;
}

.controls {
    text-align: center;
    margin-top: 20px;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

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

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

.btn-large {
    font-size: 1.5em;
    padding: 15px 40px;
}

.controls-hint {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-size: 1.1em;
    opacity: 0.9;
}

.start-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    z-index: 100;
}

.start-screen h2 {
    color: #1e3c72;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.instructions {
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
}

.instructions p {
    margin-bottom: 15px;
}

.instructions strong {
    color: #1e3c72;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .tagline {
        font-size: 1em;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .value {
        font-size: 1.5em;
    }
    
    .start-screen {
        padding: 30px 20px;
    }
    
    .start-screen h2 {
        font-size: 2em;
    }
}
