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

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(36, 112, 108, 0.22), transparent 42%),
        #071216;
}

#game-shell {
    position: relative;
    width: min(100vw, 800px, calc(100vh * 4 / 3));
    aspect-ratio: 4 / 3;
    max-width: 800px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 18px;
    background: #0b3637;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

#game {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

#game:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(255, 220, 95, 0.85);
}

.powered-by {
    position: absolute;
    right: 12px;
    bottom: 7px;
    z-index: 3;
    padding: 3px 7px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(3, 18, 22, 0.36);
    font-size: 9px;
    line-height: 1.2;
    text-decoration: none;
    backdrop-filter: blur(6px);
}

.powered-by:hover,
.powered-by:focus-visible {
    color: #ffffff;
    background: rgba(3, 18, 22, 0.72);
}
