.game-bubble {
  position: fixed;
  z-index: 2147483000;
  width: 0;
  height: 0;
  font-family: Arial, sans-serif;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.game-bubble[hidden] { display: none !important; }
body.auth-pending .game-bubble { display: none; }
.game-bubble-menu { position: absolute; inset: 0; pointer-events: none; }
.game-bubble-toggle,
.game-bubble-item { all: unset; box-sizing: border-box; position: absolute; display: grid; place-items: center; border-radius: 50%; cursor: pointer; pointer-events: auto; }
.game-bubble-toggle {
  width: 58px;
  height: 58px;
  left: -29px;
  top: -29px;
  background: radial-gradient(circle at 32% 27%, #65e8bd, #087650 60%, #004635);
  border: 2px solid #edcd72;
  box-shadow: 0 3px 16px #0009, inset 0 2px 4px #ffffff77;
  color: #fff7ce;
  grid-template-rows: 37px 12px;
  touch-action: none;
}
.game-bubble-toggle svg { width: 32px; height: 32px; margin-top: 5px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.game-bubble-main-image { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.game-bubble-main-image[hidden] { display: none; }
.game-bubble.has-main-image .game-bubble-toggle svg,
.game-bubble.has-main-image .game-bubble-caption { visibility: hidden; }
.game-bubble.has-glow .game-bubble-toggle { box-shadow: 0 0 10px 4px #f5dc9aab, 0 0 24px 9px #5ce8b585, inset 0 2px 4px #ffffff77; }
.game-bubble.has-pulse .game-bubble-toggle { animation: game-bubble-pulse var(--bubble-pulse-time, 3s) ease-in-out infinite; }
@keyframes game-bubble-pulse { 0%,100% { opacity: 1; } 50% { opacity: .28; } }
.game-bubble-caption { font-size: 9px; line-height: 1; font-weight: 900; letter-spacing: 1px; }
.game-bubble-item {
  width: 52px;
  height: 52px;
  left: -26px;
  top: -26px;
  overflow: hidden;
  border: 2px solid #f3d98a;
  background: #073a2d;
  box-shadow: 0 3px 13px #0009;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.35);
  transition: transform .22s ease, opacity .18s ease, visibility .22s;
}
.game-bubble.is-open .game-bubble-item {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(var(--bubble-dx), var(--bubble-dy)) scale(1);
}
.game-bubble-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-bubble-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 1px 4px; background: linear-gradient(transparent, #031e1be8 25%); color: white; text-align: center; font-size: 8px; line-height: 1.05; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.game-bubble-toggle:focus-visible,
.game-bubble-item:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.game-bubble-item:hover { border-color: #fff4be; filter: brightness(1.13); }
@media (prefers-reduced-motion: reduce) { .game-bubble-item { transition: none; } .game-bubble.has-pulse .game-bubble-toggle { animation: none; } }
