.screen { padding: 18px 0 28px; }
.hero-block { text-align: center; margin-bottom: 16px; }
.hero-block h1 { font-size: 2.2rem; margin: 0 0 8px; }
.hero-block p { color: var(--text-muted); }
.title-block { padding-top: 18px; }
.title-icon { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.title-credit { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 18px; }

.game-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.score-badge {
  font-weight: 800;
  font-size: 1.1rem;
}
.score-badge span { color: var(--accent); }

.best-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.canvas-wrap {
  position: relative;
  width: min(92vw, 480px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(6px);
}

.game-overlay h2 { margin: 0; font-size: 1.6rem; }
.game-overlay p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.final-score {
  font-size: 1.3rem !important;
  font-weight: 800;
  color: var(--text) !important;
}

.best-scores-go {
  font-size: 0.85rem !important;
}

@media (max-width: 480px) {
  .hero-block h1 { font-size: 1.7rem; }
  .game-topbar { font-size: 0.9rem; }
}
