.game-touch-layer {
    position: fixed;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.game-connection {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    max-width: calc(100% - 32px);
    padding: 9px 14px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(13, 8, 38, 0.86);
    box-shadow: 0 8px 28px rgba(15, 4, 36, 0.35);
    color: #fff;
    font: 700 13px/1.2 Arial, sans-serif;
    text-align: center;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.game-connection[hidden] {
    display: block;
    opacity: 0;
    transform: translate(-50%, 8px);
}

.game-connection.is-error {
    border-color: #ffd447;
    background: rgba(117, 20, 34, 0.94);
}

.game-blocker {
    position: fixed;
    inset: 0;
    display: none;
    background: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .game-connection {
        transition: none;
    }
}
