/* Flappy Bird - pastel, soft, girly styling (no gradients) */

:root {
  --bg: #ffe6f3; /* light pink */
  --canvas-bg: #fff5fb; /* cream/pink */
  --ink: #5a2b45;
  --pill: #ffd1e8;
  --pill-hover: #ffc1e2;
  --accent: #b79cff; /* lavender */
  --accent-2: #93ddff; /* baby blue */
  --ground: #ffccd9;
  --ground-stroke: #d8a2bb;
  --pipe-1: #cfe8ff; /* baby blue */
  --pipe-2: #d8b4ff; /* lavender */
  --pipe-stroke: #b98bd3;
  --danger: #ff86b5;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 12px;
}

.hud {
  width: min(92vw, 520px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.score-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(91, 40, 74, 0.08);
}

.score-wrap .label {
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.85;
  font-size: 12px;
}

.score-wrap .score {
  font-size: 24px;
  font-weight: 900;
  color: var(--danger);
  line-height: 1;
}

.hud-actions {
  display: flex;
  gap: 10px;
}

.pill-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--pill);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 120ms ease, background-color 120ms ease;
}

.pill-btn:hover {
  transform: scale(1.04);
  background: var(--pill-hover);
}

.pill-btn:active {
  transform: scale(0.99);
}

.pill-btn:focus {
  outline: 3px solid rgba(183, 156, 255, 0.55);
  outline-offset: 2px;
}

.game-wrap {
  position: relative;
  width: min(92vw, 520px);
  /* Keep the game nicely "phone-shaped". Canvas gets the real sizing in JS. */
  aspect-ratio: 9 / 16;
  max-height: 78vh;
}

canvas#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 26px;
  background: var(--canvas-bg);
  box-shadow: 0 12px 35px rgba(91, 40, 74, 0.12);
  touch-action: none; /* enable smooth touch jumping */
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 230, 243, 0.55);
  backdrop-filter: blur(2px);
}

.screen.hidden {
  display: none;
}

.screen-card {
  width: min(320px, 92%);
  border-radius: 22px;
  background: #ffffff;
  border: 2px solid rgba(183, 156, 255, 0.35);
  padding: 18px 16px;
  box-shadow: 0 12px 35px rgba(91, 40, 74, 0.12);
  text-align: center;
}

.title {
  margin: 0 0 10px 0;
  font-size: 30px;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.subtext {
  margin: 0 0 14px 0;
  font-weight: 700;
  color: rgba(90, 43, 69, 0.8);
}

.subtext.small {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 12px;
}

.cta-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent-2);
  color: #08364a;
  font-weight: 900;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}

.cta-btn:hover {
  transform: scale(1.05);
  background: #7ed6ff;
}

.cta-btn:active {
  transform: scale(0.99);
}

.mobile-hint {
  margin: 0;
  font-weight: 800;
  opacity: 0.75;
  font-size: 13px;
}

@media (min-width: 720px) {
  .mobile-hint {
    display: none;
  }
}

