/* Pop Swap — board + HUD styling. The card shell (.gb-frame/.gb-frame-top/
   .gb-play-wrap/.gb-overlay etc.) comes from the shared
   ../../css/game-board.css template — this file only supplies what's
   specific to Pop Swap: the level-hue color rotation, the HUD stats, level
   pips, and the match-3 tile grid. */

/* The whole game card shares one --level-hue custom property (set from JS
   each level) so the colored header rotates as a "this is what level
   you're on" signal. */
.pm-game-frame { --level-hue: 260; }

.pm-frame-top {
  background: hsl(var(--level-hue) 70% 55%);
  transition: background-color 500ms ease;
}

.pm-level-num { font-size: 0.9em; opacity: 0.85; }

.pm-hud-stats { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; margin-bottom: 14px; }
.pm-hud-stats span { font-weight: 400; opacity: 0.8; margin-right: 4px; }

.pm-level-pips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.pm-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: background-color 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.pm-pip.lit { border-color: rgba(255, 255, 255, 0.9); }
.pm-pip.current { transform: scale(1.35); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }

.pm-guest-banner {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pm-google-btn-slot { margin-top: 4px; }

.pm-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  touch-action: none;
}

.pm-tile {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-size: 78%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--card);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform var(--pm-anim, 320ms) ease;
}

.pm-tile:hover { transform: scale(1.04); }
.pm-tile.pm-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pm-tile.pm-clearing { transition: opacity 240ms ease, transform 240ms ease; opacity: 0; transform: scale(0.4); }
.pm-tile.pm-empty { background-image: none !important; cursor: default; pointer-events: none; }

.gb-overlay .pm-google-btn-slot { display: flex; justify-content: center; margin-top: 14px; }
