body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #002244;
    /* Deep sea blue base */
    font-family: 'Press Start 2P', 'Courier New', monospace;
    /* Arcade like font */
    color: #fff;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#stats-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-around;
    font-size: 20px;
    text-shadow: 2px 2px 0 #000;
}

#health {
    color: #0f0;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: auto;
    z-index: 10;
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 40px;
    color: #ff3333;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 #000;
}

h2 {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 30px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.warning {
    color: #ffcc00;
    font-size: 12px;
}

.danger {
    color: #ff0000;
}

button {
    padding: 15px 30px;
    font-size: 20px;
    background: #cc0000;
    color: #fff;
    border: 4px solid #fff;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
}

button:hover {
    background: #ff0000;
}

/* Language Selection */
.lang-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 400px;
}

.lang-btn {
    padding: 12px 25px;
    font-size: 16px;
    background: #336699;
    min-width: 150px;
}

.lang-btn:hover {
    background: #4488bb;
}