/**
 * GAMES-RETURN-TO-AKTUALNOE-C — feed tab game tiles + isolated game popup surface.
 */

#feed-games-mount {
  flex-shrink: 0;
  padding: 8px 0 12px;
}

.f7-feed-games-title {
  padding: 4px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.f7-feed-games-list .f7-game-tile-media {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f7-game-tile--dino .f7-game-tile-media {
  background: linear-gradient(135deg, #cc4400, #ff6a00);
}

.f7-game-tile--pacman .f7-game-tile-media {
  background: linear-gradient(135deg, #ff6a00, #ff2800);
}

.f7-game-tile--pizza .f7-game-tile-media {
  background: linear-gradient(135deg, #6e3ce6, #3a60e0);
}

#f7-app-root .f7-game-popup {
  width: 100%;
  height: 100%;
}

#f7-app-root .f7-game-popup-content {
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.f7-game-panels-stash {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

/* Game surfaces inside F7 popup or legacy overlay — scoped fullscreen */
#f7-game-popup-mount > #tab-dino,
#f7-game-popup-mount > #tab-game,
#f7-game-popup-mount > #tab-pacman,
#tab-dino.f7-game-surface-open,
#tab-game.f7-game-surface-open,
#tab-pacman.f7-game-surface-open {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: flex !important;
  isolation: isolate;
  contain: layout style paint;
  pointer-events: auto;
}

#tab-game.f7-game-surface-open,
#tab-game.active.f7-game-surface-open {
  z-index: 525 !important;
  background: #080810;
}

#tab-pacman.f7-game-surface-open,
#tab-pacman.active.f7-game-surface-open {
  z-index: 525 !important;
  background: #000;
}

#tab-dino.f7-game-surface-open {
  z-index: 525 !important;
  background: #0d0d14;
}

#tab-game.is-paused #g-pause-fab {
  display: none !important;
}

#tab-pacman.pm-paused-local #pm-hud,
#tab-pacman.pm-paused-local #pm-controls {
  display: none !important;
}
