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

body {
    background: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    border: 4px solid #4a4a6a;
    border-radius: 8px;
    background: #2d2d44;
    cursor: crosshair;
}

#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

#start-screen, #game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 50, 0.95);
    padding: 40px 60px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    border: 3px solid #6a6a9a;
    box-shadow: 0 0 30px rgba(100, 100, 200, 0.3);
}

#start-screen h1, #game-over-screen h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffd700;
}

#start-screen p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #ccc;
}

#start-screen p strong {
    color: #fff;
}

button {
    margin-top: 25px;
    padding: 15px 40px;
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(180deg, #5a5a8a, #4a4a7a);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

button:hover {
    background: linear-gradient(180deg, #6a6a9a, #5a5a8a);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(100, 100, 200, 0.5);
}

button:active {
    transform: scale(0.98);
}

.hidden {
    display: none !important;
}
