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

.game-main-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 6.5vw, 42px);
  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-ocean); }
.badge-difficulty { background: var(--gradient-fire); }
.badge-age { background: var(--gradient-sky); }

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

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

.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;
}

.game-area { padding: 20px 14px 26px; text-align: center; }
.game-area h2 { font-family: var(--font-primary); font-size: clamp(18px, 4.5vw, 24px); color: #2C3E50; margin-bottom: 12px; }
.game-area p { font-family: var(--font-secondary); color: var(--gray-text); margin-bottom: 16px; }

.sign-box { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; min-height: 140px; }

#signImg {
  max-height: 200px;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.prompt { font-family: var(--font-secondary); color: var(--gray-text); margin-bottom: 12px; }

.options {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 600px;
  margin: 0 auto 12px;
}

.opt-btn {
  min-height: 48px; min-width: 44px;
  border: 3px solid var(--blue-cyan); border-radius: var(--radius-sm);
  background: #F0F8FF; color: #2C3E50;
  font-family: var(--font-primary); font-size: clamp(16px, 4.5vw, 22px); font-weight: 700;
  cursor: pointer; transition: transform 0.12s var(--bounce), background 0.15s, color 0.15s;
  touch-action: manipulation;
}

.opt-btn:hover { background: var(--blue-cyan); color: #fff; }
.opt-btn:active { transform: scale(0.92); }
.opt-btn.is-ok { background: var(--green-bright); border-color: #388E3C; color: #fff; }
.opt-btn.is-err { background: #E57373; border-color: #C62828; color: #fff; }
.opt-btn.is-used {
  background: #ECEFF1;
  border-color: #CFD8DC;
  color: #B0BEC5;
  text-decoration: line-through;
  cursor: default;
}
.opt-btn.is-answered {
  background: #E8F5E9;
  border-color: var(--green-bright);
  color: #2E7D32;
  cursor: default;
  opacity: 0.9;
}
.opt-btn.is-answered::after {
  content: " ✓";
  font-weight: 800;
}
.opt-btn.is-hint {
  border-color: var(--pink-hot);
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.4);
  animation: hintPulse 0.9s infinite;
}

@keyframes hintPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.feedback { min-height: 26px; font-family: var(--font-secondary); font-size: 16px; font-weight: 600; }
.feedback.is-ok { color: #2E7D32; }
.feedback.is-err { color: #C62828; }
.feedback.is-hint { color: var(--orange-vivid); }

.progress-wrap { height: 12px; background: #ECEFF1; border-radius: 999px; overflow: hidden; margin: 14px auto 0; max-width: 600px; }
.progress-bar { height: 100%; width: 0; background: var(--gradient-sky); border-radius: 999px; transition: width 0.3s var(--smooth); }

.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-sky); color: #fff;
  font-family: var(--font-secondary); font-size: 18px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-cyan); transition: transform 0.15s var(--bounce); touch-action: manipulation;
}

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

.victory-emoji { font-size: clamp(56px, 18vw, 90px); }
.victory-score { font-family: var(--font-primary); font-size: clamp(22px, 6vw, 30px); color: #2C3E50; margin: 12px 0 20px; }
.victory-score strong { color: var(--blue-cyan); }

.start-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 18px;
  padding: 28px 16px;
  text-align: center;
}

.start-hero {
  font-size: clamp(60px, 20vw, 104px);
  line-height: 1;
  animation: floatY 2.4s ease-in-out infinite;
}

.start-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 6vw, 34px);
  color: #2C3E50;
  margin: 0;
  text-align: center;
}

.start-sub {
  font-family: var(--font-secondary);
  color: var(--gray-text);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  font-size: 17px;
}

.start-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
}

.start-steps span {
  background: #F0F8FF;
  border: 2px solid var(--blue-light);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  color: #2C3E50;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  margin-top: 6px;
  padding: 14px 42px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-candy);
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s var(--bounce);
  animation: pulseBtn 1.8s infinite;
  touch-action: manipulation;
}

.btn-play:hover { transform: translateY(-3px) scale(1.03); }
.btn-play:active { transform: scale(0.96); }

.start-note { font-family: var(--font-secondary); font-size: 13px; color: var(--gray-text); margin: 0; text-align: center; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 105, 180, 0.35); }
  50% { box-shadow: 0 10px 34px rgba(255, 105, 180, 0.75); }
}

@media (min-width: 768px) {
  .options { grid-template-columns: repeat(11, 1fr); }
  #signImg { max-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .opt-btn, .btn-play { transition: none; }
  .opt-btn.is-hint, .start-hero, .btn-play { animation: none; }
}
