body {
    margin: 0;
    background: radial-gradient(circle at top, #111 0, #000 60%);
    font-family: system-ui, sans-serif;
    color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-root {
    position: relative;
}

#game-canvas {
    background: #05070a;
    box-shadow: 0 0 30px rgba(0, 255, 180, 0.4);
    border-radius: 8px;
}

#hud {
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    text-shadow: 0 0 6px rgba(0, 255, 180, 0.8);
}

#ui-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.ui-panel {
    background: rgba(5, 10, 20, 0.95);
    border: 1px solid rgba(0, 255, 180, 0.6);
    padding: 20px 28px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 255, 180, 0.4);
}

.ui-button {
    display: block;
    margin: 8px 0;
    padding: 8px 14px;
    background: linear-gradient(90deg, #00ffb4, #00b4ff);
    border: none;
    border-radius: 4px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}
.ui-button:hover {
    filter: brightness(1.1);
}

#uiVersion {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-family: Verdana, sans-serif;
    font-size: 20px;
    color: white;
    pointer-events: none;
}

#uiWebsite {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-family: Verdana, sans-serif;
    font-size: 24px;
    color: white;
    pointer-events: none;
}

.ui-menu-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.ui-panel-left {
    width: 280px;
}

.ui-panel-right {
    width: 360px;
    max-height: 520px;
    overflow: hidden;
    padding: 20px;
}

.codex-scroll {
    max-height: 460px;
    overflow-y: auto;
    padding-right: 10px;
}

.ui-panel-right h3 {
    color: #00ffff;
    font-family: Orbitron;
    margin-bottom: 10px;
}

.codex-scroll p {
    color: #ffffff;
    font-family: Orbitron;
    font-size: 14px;
    line-height: 1.4em;
}

.select-mode-header {
    color: #00ffff;
    font-family: Orbitron;
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;

    /* Neon glow */
    text-shadow:
        0 0 6px #00ffff,
        0 0 12px #00ffff,
        0 0 18px #00ffff;

    /* Pulse animation */
    animation: neonPulse 1.8s ease-in-out infinite;
}

@keyframes neonPulse {
    0% {
        opacity: 0.7;
        text-shadow:
            0 0 4px #00ffff,
            0 0 8px #00ffff,
            0 0 12px #00ffff;
    }
    50% {
        opacity: 1;
        text-shadow:
            0 0 8px #00ffff,
            0 0 16px #00ffff,
            0 0 24px #00ffff;
    }
    100% {
        opacity: 0.7;
        text-shadow:
            0 0 4px #00ffff,
            0 0 8px #00ffff,
            0 0 12px #00ffff;
    }
}
