:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0, rgba(37, 99, 235, .25), transparent 38rem),
        #0f172a;
}

.game-shell {
    width: min(1060px, 100%);
    margin: 0 auto;
    padding: 22px;
}

.game-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 4px 4px 16px;
}

.eyebrow {
    margin: 0 0 4px;
    color: #fde047;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.instructions {
    max-width: 360px;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
    text-align: right;
}

#game-container {
    overflow: hidden;
    border: 5px solid #e2e8f0;
    border-radius: 16px;
    background: #1e293b;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    touch-action: none;
}

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

.game-note {
    margin: 12px 4px 0;
    color: #94a3b8;
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 640px) {
    .game-shell {
        padding: 12px;
    }

    .game-header {
        display: block;
    }

    .instructions {
        margin-top: 8px;
        text-align: left;
    }
}
