* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #020617;
    color: #e5f6ff;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 72% 24%, rgba(14, 165, 233, .22), transparent 30%),
        radial-gradient(circle at 22% 78%, rgba(168, 85, 247, .18), transparent 28%),
        linear-gradient(135deg, #020617, #050816 52%, #020617);
}

.game-shell {
    width: min(1180px, 96vw);
    aspect-ratio: 16 / 9;
    position: relative;
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: 22px;
    overflow: hidden;
    background: #020617;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .04),
        0 28px 90px rgba(0, 0, 0, .65),
        0 0 80px rgba(14, 165, 233, .16);
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(2, 6, 23, .9), rgba(7, 12, 36, .72));
    transition: opacity .25s ease, visibility .25s ease;
}

.overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.menu-card {
    width: min(560px, 86%);
    padding: 34px;
    border: 1px solid rgba(56, 189, 248, .36);
    border-radius: 24px;
    background: rgba(2, 8, 23, .82);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: #38bdf8;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: .9;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #f8fafc;
    text-shadow:
        0 0 14px rgba(56, 189, 248, .75),
        0 0 34px rgba(249, 115, 22, .55);
}

.subtitle {
    margin: 18px 0 28px;
    color: #bae6fd;
    line-height: 1.55;
}

button {
    border: 0;
    border-radius: 999px;
    padding: 14px 26px;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #1f1300;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.hint {
    margin-top: 18px;
    color: rgba(226, 246, 255, .74);
    font-size: 14px;
}

.hud-note {
    position: absolute;
    left: 18px;
    bottom: 14px;
    color: rgba(226, 246, 255, .58);
    font-size: 13px;
    pointer-events: none;
}