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

body {
    background: #0a0a0f;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    color: #e0e0ff;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

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

#score-display {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: rgba(0, 255, 200, 0.6);
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

#score-display.visible {
    opacity: 1;
}

#start-screen, #death-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: auto;
}

#start-screen h1 {
    font-size: 5rem;
    letter-spacing: 0.3em;
    background: linear-gradient(180deg, #00ffc8, #7b2fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: none;
}

.subtitle {
    color: rgba(200, 200, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
}

#death-screen h2 {
    font-size: 3rem;
    letter-spacing: 0.4em;
    color: #ff3366;
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
    margin-bottom: 1rem;
}

#final-score {
    font-size: 2rem;
    color: #00ffc8;
    margin-bottom: 0.5rem;
}

#death-high-score, #high-score {
    font-size: 0.9rem;
    color: rgba(200, 200, 255, 0.4);
    margin-bottom: 1.5rem;
}

button {
    background: transparent;
    border: 1px solid rgba(0, 255, 200, 0.5);
    color: #00ffc8;
    padding: 12px 40px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.2s;
    pointer-events: auto;
}

button:hover {
    background: rgba(0, 255, 200, 0.1);
    border-color: #00ffc8;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
}

.hidden {
    display: none !important;
}
