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

body {
    background: #0a1520;
    font-family: 'JetBrains Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #c9d1d9;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    max-width: 100%;
    width: 660px;
}

#hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 640px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #1a2a2a 0%, #0f1f1f 100%);
    border: 2px solid #3498db;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
}

#hud-left, #hud-right {
    display: flex;
    gap: 20px;
}

#lives-display {
    color: #e74c3c;
}

#gold-display {
    color: #f1c40f;
}

#wave-display {
    color: #c9a0dc;
}

#score-display {
    color: #2ecc40;
}

#canvas {
    display: block;
    border: 3px solid #3498db;
    border-top: none;
    border-bottom: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#controls {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(180deg, #0f1f1f 0%, #1a2a2a 100%);
    border: 2px solid #3498db;
    border-top: none;
    width: 100%;
    max-width: 646px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 8px 16px;
    background: #1a2a2a;
    color: #c9d1d9;
    border: 2px solid #3498db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 120px;
}

button:hover:not(:disabled) {
    background: #2a3a3a;
    border-color: #5dade2;
    transform: translateY(-1px);
}

button:active:not(:disabled) {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.active {
    background: #6b4a6b;
    border-color: #c9a0dc;
    color: #fff;
}

#info-bar {
    width: 100%;
    max-width: 646px;
    padding: 8px 12px;
    background: #0f1f1f;
    border: 2px solid #3498db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
}

#game-status {
    color: #95a5a6;
}

#title-easter {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #6b4a6b;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: color 0.3s ease;
}

#title-easter:hover {
    color: #c9a0dc;
}

#title-easter .easter-text {
    display: none;
    font-size: 12px;
    color: #2ecc40;
    margin-top: 5px;
}

#title-easter.revealed .easter-text {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 11px;
    color: #4a5568;
    text-align: center;
}

footer a {
    color: #6b4a6b;
    text-decoration: none;
}

footer a:hover {
    color: #c9a0dc;
    text-decoration: underline;
}

@media (max-width: 680px) {
    #hud {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    #hud-left, #hud-right {
        gap: 10px;
    }
    
    button {
        font-size: 11px;
        padding: 6px 12px;
        min-width: 100px;
    }
    
    #controls {
        gap: 6px;
        padding: 8px;
    }
    
    #title-easter {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    #hud {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
    
    button {
        min-width: 90px;
        font-size: 10px;
    }
}