/* «Ведущий» (0.36, game-host.js): the host's speech bubble above the open game card (or its pill) — over the phone's
   game sheet (z 1900), under the dialogs (2000+); taps pass through it but for its ✕. */
.gh-bubble { position: fixed; top: 0; left: 0; z-index: 1950; box-sizing: border-box; max-width: min(520px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 3px;
  padding: 8px 38px 10px 14px; border-radius: 14px; background: rgba(16, 18, 24, .97); border: 1px solid var(--accent); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); color: var(--text); pointer-events: none; }
.gh-bubble.hidden { display: none; }
.gh-chip { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.gh-text { font-size: 15.5px; font-weight: 600; line-height: 1.32; overflow-wrap: anywhere; }
.gh-x { position: absolute; top: 3px; right: 3px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; pointer-events: auto; }
.gh-x:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
/* The tail points at the card's middle (--gh-tail from game-host.js); none over the card's edge. */
.gh-bubble::after { content: ''; position: absolute; left: var(--gh-tail, 50%); width: 12px; height: 12px; box-sizing: border-box; background: rgb(16, 18, 24); border: 1px solid var(--accent); transform: translateX(-50%) rotate(45deg); }
.gh-bubble[data-side="above"]::after { bottom: -7px; border-top: 0; border-left: 0; }
.gh-bubble[data-side="below"]::after { top: -7px; border-bottom: 0; border-right: 0; }
.gh-bubble[data-side="over"]::after { display: none; }
@keyframes gh-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.gh-bubble.gh-in { animation: gh-in .18s ease-out; }
.gh-bubble.gh-out { opacity: 0; transition: opacity .25s ease; }
.gh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .gh-bubble { padding: 8px 46px 10px 13px; }
  .gh-text { font-size: 15px; }
  .gh-x { top: 0; right: 0; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .gh-bubble.gh-in { animation: none; } .gh-bubble.gh-out { transition: none; } }
