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

body {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    display: block;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #FFF8DC 100%);
    max-width: 100%;
    max-height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#score-display {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 10px;
    border: 3px solid #fff;
    pointer-events: auto;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-item .label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
}

.score-item .value {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}

.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 4px solid #fff;
    pointer-events: auto;
    min-width: 300px;
}

.screen.hidden {
    display: none;
}

.screen h1 {
    color: #FFD700;
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 #000;
}

.screen h2 {
    color: #FF6B6B;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #000;
}

.screen p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.instructions {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.instructions p {
    margin: 8px 0;
    font-size: 16px;
    color: #87CEEB;
}

button {
    background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: 3px solid #fff;
    padding: 15px 40px;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
    text-shadow: 2px 2px 0 #000;
    box-shadow: 0 4px 0 #2d6a2f;
}

button:hover {
    background: linear-gradient(180deg, #5CBF60 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2d6a2f;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d6a2f;
}

#final-score {
    color: #FFD700;
    font-size: 32px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .screen {
        padding: 30px 20px;
        min-width: 280px;
    }
    
    .screen h1 {
        font-size: 28px;
    }
    
    .screen h2 {
        font-size: 24px;
    }
    
    #score-display {
        gap: 20px;
        padding: 10px 20px;
    }
    
    .score-item .value {
        font-size: 24px;
    }
    
    button {
        padding: 12px 30px;
        font-size: 18px;
    }
}
