:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050b18;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% -20%, rgba(38, 130, 255, 0.28), transparent 45%),
        linear-gradient(180deg, #071126 0%, #030712 100%);
}

body {
    display: grid;
    place-items: center;
    touch-action: none;
    user-select: none;
}

.game-shell {
    position: relative;
    width: min(100vw, calc(100vh * 1.5));
    aspect-ratio: 3 / 2;
    max-width: 960px;
    max-height: 640px;
    overflow: hidden;
    border-radius: 18px;
    background: #08162f;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    cursor: crosshair;
    pointer-events: auto;
    touch-action: none;
}

.mute-button {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #eef6ff;
    background: rgba(6, 15, 35, 0.84);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    font: 800 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.mute-button:hover,
.mute-button:focus-visible {
    border-color: rgba(105, 190, 255, 0.72);
    background: rgba(13, 34, 72, 0.94);
    outline: none;
}

.mute-button[aria-pressed="true"] {
    color: #ffdbdc;
    border-color: rgba(255, 108, 116, 0.38);
}

.mute-icon {
    font-size: 15px;
}

.powered {
    position: absolute;
    right: 18px;
    bottom: 8px;
    z-index: 2;
    font-size: 9px;
    line-height: 1;
    opacity: 0.5;
}

.powered a {
    color: #b7c7df;
    text-decoration: none;
}

.powered a:hover,
.powered a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .game-shell {
        border-radius: 0;
    }

    .mute-button {
        top: 8px;
        right: 8px;
        min-height: 32px;
        padding: 6px 9px;
    }

    .mute-label {
        display: none;
    }
}
