:root {
    color-scheme: dark;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

body {
    min-height: 100vh;
}

.game-shell {
    position: fixed;
    inset: 0;
    background: #000;
}

.game-canvas {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: min(800px, 100vw, calc(100vh * 4 / 3));
    height: min(600px, 100vh, calc(100vw * 3 / 4));
    max-height: 100vh;
    border: 0;
    outline: none;
    background: #000;
    image-rendering: pixelated;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.browser-host-status {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 20;
    max-width: min(720px, calc(100vw - 24px));
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #d8dee9;
    font: 12px/1.35 Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    pointer-events: none;
}

.browser-host-status.started {
    background: rgba(0, 0, 0, 0.28);
}

.browser-host-status.failed {
    background: rgba(96, 12, 12, 0.88);
    color: #fff0f0;
}
