html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #000000;
    color: rgba(255, 255, 255, 0.87);
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

#app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    width: 100%;
    height: 100%;
}

/* Shown only on phones held upright */
#rotate-hint {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #2b1d3a;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 22px;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#rotate-hint .phone {
    font-size: 72px;
    animation: turn 1.6s ease-in-out infinite;
}

@keyframes turn {
    0%, 30% { transform: rotate(0deg); }
    60%, 100% { transform: rotate(-90deg); }
}

@media (orientation: portrait) and (pointer: coarse) {
    #rotate-hint { display: flex; }
}
