html, body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #080f17;
    /* Touch: no page scroll, pinch zoom, text selection or long-press menu while playing */
    overscroll-behavior: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

canvas { display: block; outline: none; }

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

/* Phones held upright: cover the game and ask for landscape (the Raid pauses underneath) */
#rotate {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    background: #080f17;
    color: #c6ffe4;
    font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    text-align: center;
}
#rotate p { margin: 0; font-size: 22px; }
#rotate small { color: #8caaa9; font-size: 14px; padding: 0 24px; }
#rotate .phone {
    width: 46px;
    height: 80px;
    border: 3px solid #77fbe3;
    border-radius: 9px;
    animation: rotate-phone 1.8s ease-in-out infinite;
}
@keyframes rotate-phone {
    0%, 25% { transform: rotate(0deg); }
    60%, 100% { transform: rotate(-90deg); }
}
@media (orientation: portrait) and (pointer: coarse) {
    #rotate { display: flex; }
}
