:root {
    color-scheme: dark;
}

* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #000;
    color: #fff;
    font: 14px/1.4 -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

#game {
    display: block;
    width: 100vw;
    height: 100vh;
    background: #000;
    touch-action: none;
    /* prevent scroll/zoom during gameplay */
}

.hud {
    position: fixed;
    top: 12px;
    left: 12px;
    pointer-events: none;
    /* purely informational */
}

.panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    pointer-events: auto;
    /* allow taps/clicks on panel */
    cursor: pointer;
}

.hidden {
    display: none;
}

.help-button {
    position: fixed;
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 700;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.help-button:active {
    transform: scale(0.98);
}

.help-button.hidden {
    display: none;
}

@keyframes subtle-jiggle {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-1px, 0);
    }

    50% {
        transform: translate(1px, 0);
    }

    75% {
        transform: translate(0, -1px);
    }
}

.jiggle-hint {
    animation: subtle-jiggle 0.6s ease-in-out infinite;
}
