.game-intro-section {
  text-align: center;
}

.game-main-title {
  font-family: var(--font-primary);
  font-size: clamp(26px, 7vw, 44px);
  color: #2C3E50;
  margin-bottom: 12px;
}

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.game-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.badge-category { background: var(--gradient-sky); }
.badge-difficulty { background: var(--gradient-fire); }
.badge-age { background: var(--gradient-candy); }

.game-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid var(--orange-vivid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-orange);
  overflow: hidden;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gradient-fire);
}

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-secondary);
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

.hud-item { white-space: nowrap; }

.btn-fullscreen {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--smooth);
}

.btn-fullscreen:hover { background: rgba(255, 255, 255, 0.5); }

.canvas-wrap {
  position: relative;
  width: 100%;
  background: #BEE3FF;
}

#gameCanvas {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 40, 70, 0.45);
  backdrop-filter: blur(2px);
}

.overlay.is-hidden { display: none; }

.overlay-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 4px solid var(--orange-vivid);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-orange);
}

.overlay-title {
  font-family: var(--font-primary);
  font-size: clamp(22px, 6vw, 30px);
  color: #2C3E50;
  margin-bottom: 12px;
}

.overlay-text {
  font-family: var(--font-secondary);
  color: var(--gray-text);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.overlay-text strong { color: var(--pink-hot); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-fire);
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: transform 0.15s var(--bounce);
  touch-action: manipulation;
}

.btn-primary:hover { transform: translateY(-3px); }

@media (min-width: 768px) {
  .game-container { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-fullscreen {
    transition: none;
  }
  .btn-primary:hover { transform: none; }
}
