/* ============================================
   ZABERZ GAMES — SHARED STYLES
   (used alongside style.css on all /games/*.html pages)
   ============================================ */

.game-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.game-scorebar {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.game-score-item {
  text-align: center;
}

.game-score-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.game-score-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  display: block;
}

.game-canvas-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #05070d;
  line-height: 0;
}

canvas.game-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
}

.game-overlay h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.game-overlay p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  max-width: 260px;
}

.game-overlay .btn {
  margin-top: 4px;
}

.game-controls-hint {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-template-rows: repeat(3, 50px);
  gap: 6px;
}

.dpad button {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.dpad button:active,
.dpad button.pressed {
  background: var(--accent-2);
  color: #05070d;
  border-color: var(--accent-2);
}

.dpad-up { grid-column: 2; grid-row: 1; }
.dpad-left { grid-column: 1; grid-row: 2; }
.dpad-right { grid-column: 3; grid-row: 2; }
.dpad-down { grid-column: 2; grid-row: 3; }

.tap-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: #05070d;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(79, 107, 255, 0.35);
  touch-action: manipulation;
  transition: transform 0.15s var(--ease);
}

.tap-button:active {
  transform: scale(0.94);
}

.game-card-list .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}