*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #1a1a1e;
    color: #f0f0f2;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

#app {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
        env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#game-root {
    width: min(100vw, 100vh);
    height: min(100vw, 100vh);
    max-width: 100%;
    max-height: 100%;
    background: #2a2a30;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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