/* Game wrapper */
.game-wrapper {
  position: relative;
  padding: 16px 16px 8px;
  max-width: 520px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.game-header {
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.game-title {
  font-size: 1.2rem;
  margin: 0;
  white-space: nowrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.stat-icon {
  font-size: 1.3rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

/* Canvas */
#gameCanvas {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, #e8f0fe 0%, #f0e6f6 40%, #fce4ec 100%);
  cursor: pointer;
  touch-action: none;
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 253, 250, 0.92);
  border-radius: var(--radius);
  z-index: 10;

}

.overlay.hidden {
  display: none;
}

.overlay-content {
  text-align: center;
  padding: 24px;
}

.overlay-content h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.overlay-content .btn {
  margin-top: 16px;
  font-size: 1.1rem;
  padding: 12px 32px;
}

.final-score {
  font-size: 1.2rem;
  margin: 8px 0;
}

/* Responsive */
@media (max-width: 480px) {
  .game-title {
    font-size: 1rem;
  }
  .stat {
    min-width: 44px;
  }
  .stat-value {
    font-size: 1.1rem;
  }
}
