/* Flappy Bandit — game-specific styles on top of the shared theme. */

.page {
  display: grid;
  place-items: center;
}

.stage {
  width: min(480px, 100%);
  padding: 26px 24px 22px;
  text-align: center;
}

.game-title {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #ffe9a3 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(245, 197, 66, 0.2);
}

.tagline {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(18, 20, 25, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.25s;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #ffe9a3, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.overlay-sub {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 75%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

#score { color: var(--accent); }
#best { color: var(--gold); }
