.hero { text-align: center; padding: 16px 0; }
.hero h1 {
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 900;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--gold), 6px 6px 0 var(--ink);
  letter-spacing: 2px;
  transform: rotate(-1deg);
  line-height: 1;
}
.tagline { color: var(--ink-2); font-weight: 700; margin-top: 6px; font-size: 14px; }

.game-wrap {
  max-width: 760px;
  margin: 16px auto 0;
  position: relative;
}

.hud {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pill {
  background: rgba(0,0,0,0.8);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  font-weight: 700;
  min-width: 70px;
  text-align: center;
}
.pill--lives { border-color: var(--red); letter-spacing: 2px; }

#game {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  background: linear-gradient(to bottom, #87ceeb 0%, #ffcc99 100%);
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  touch-action: none;
  cursor: grab;
}
#game:active { cursor: grabbing; }

.hint {
  text-align: center;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  opacity: 0.75;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.overlay[hidden] { display: none; }
.panel {
  background: var(--paper);
  border: 5px solid var(--red);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  padding: 28px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.panel h2 {
  font-size: 30px;
  color: var(--red);
  text-shadow: 2px 2px 0 var(--gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.panel p { color: var(--ink-2); margin: 6px 0; line-height: 1.5; }
.panel .zx-btn { display: block; width: 100%; margin-top: 10px; }
.big-score {
  font-size: 60px;
  font-weight: 900;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
  margin: 12px 0;
  line-height: 1;
}
