:root {
    color-scheme: dark;
    font-family: "Courier New", Courier, monospace;
    background: #020704;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #020704;
}

body {
    display: grid;
    place-items: center;
}

.game-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(32, 255, 109, 0.08), transparent 46%),
        #020704;
}

#gameCanvas {
    display: block;
    width: min(100%, calc(100vh * 16 / 9));
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    outline: 0;
    background: #020704;
    touch-action: none;
    user-select: none;
}

.mute-button {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 5;
    min-width: 92px;
    padding: 9px 13px 8px;
    border: 1px solid rgba(106, 255, 151, 0.75);
    border-radius: 5px;
    background: rgba(2, 11, 6, 0.88);
    color: #76ff9f;
    font: 700 13px/1 "Courier New", Courier, monospace;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(79, 255, 132, 0.08);
}

.mute-button:hover,
.mute-button:focus-visible {
    border-color: #b2ffc7;
    color: #c8ffd7;
    box-shadow: 0 0 18px rgba(79, 255, 132, 0.2);
}

.mute-button[aria-pressed="true"] {
    color: #91a998;
    border-color: rgba(145, 169, 152, 0.55);
}

.brand-link {
    position: absolute;
    left: max(14px, env(safe-area-inset-left));
    bottom: max(9px, env(safe-area-inset-bottom));
    z-index: 4;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.04em;
    opacity: 0.52;
}

.brand-link a {
    color: #5fd580;
    text-decoration: none;
}

.brand-link a:hover,
.brand-link a:focus-visible {
    color: #a7ffbd;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .mute-button {
        top: 8px;
        right: 8px;
        min-width: 78px;
        padding: 8px 10px 7px;
        font-size: 11px;
    }

    .brand-link {
        left: 8px;
        bottom: 6px;
        font-size: 8px;
    }
}
