html,
body,
#root,
#app {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#game-container canvas {
    display: block;
}

/* Landscape-only gate: hidden by default, swapped in for #root via the
   portrait media query below so the game can't be interacted with until
   the device is rotated. */
#orientation-lock {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    background:
        radial-gradient(ellipse 900px 500px at 92% 8%, rgba(255, 255, 255, 0.07), transparent 60%),
        radial-gradient(ellipse 700px 420px at 100% 55%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(ellipse 900px 520px at 4% 102%, rgba(255, 255, 255, 0.06), transparent 60%),
        linear-gradient(160deg, #1a58d6 0%, #1450c9 100%);
    color: #ffffff;
    overflow: hidden;
}

.orientation-lock__logo {
    position: absolute;
    top: 28px;
    left: 32px;
    height: 46px;
    width: auto;
}

.orientation-lock__art {
    margin-bottom: 20px;
    animation: orientation-lock-tilt 2.4s ease-in-out infinite;
}

.orientation-lock__title {
    font-size: 34px;
    font-weight: 900;
    margin: 0 0 14px;
}

.orientation-lock__body {
    font-size: 16px;
    line-height: 1.6;
    max-width: 520px;
    opacity: 0.92;
    margin: 0;
}

@keyframes orientation-lock-tilt {
    0%,
    100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(8deg);
    }
}

@media (orientation: portrait) {
    #orientation-lock {
        display: flex;
    }

    #root {
        display: none;
    }
}
