
.mini-game {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 40px;
  background: var(--navy);
  border-radius: 30px;
  color: #fff;
  text-align: center;
}

.mini-game .choices button {
  width: min(360px, 100%);
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  background: var(--yellow);
  font-weight: 700;
  cursor: pointer;
}

.mini-game h3 {
  margin: 0 0 10px;
}

.mini-game p {
  margin: 0;
}

.mini-game .choices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.mini-game .bottom-zone {
  margin-top: 18px;
}

.feedback {
  margin-top: 25px;
  font-weight: 700;
}

.success {
  color: #69d889;
}

.error {
  color: #ff8d8d;
}



@media (max-width: 768px) {

  .mini-game .choices {
    flex-direction: column;
  }

}

/* =========================
KEY NAME GAME — ADULT QUIZ
========================= */

.key-name-game {
  max-width: 780px;
  padding: clamp(18px, 2.6vw, 30px);
  text-align: left;
}

.key-name-game h3 {
  margin: 0 0 14px;

  font-size: clamp(24px, 3vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.04em;

  color: #fff;
}

.key-name-game #keyQuestionText {
  max-width: 680px;

  margin: 0 0 34px;

  font-size: 18px;
  line-height: 1.7;

  color: rgba(255,255,255,0.72);
}

.key-name-game #fingerQuestionText {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}

/* =========================
   PRACTICE TEXT RHYTHM
   Shared text styling for practice prompts
========================= */

.key-name-game .exercise-note,
.key-name-game .instruction {
  max-width: 720px;

  margin:
    0
    0
    18px;

  color:
    rgba(255, 255, 255, 0.72);

  font-size:
    17px;

  line-height:
    1.65;

  font-weight:
    500;
}

.key-name-game .instruction {
  margin-top:
    4px;
}

.key-name-game .instruction strong,
.key-name-game #fingerQuestionText strong,
.key-name-game #keyQuestionText strong {
  color:
    rgba(255, 225, 68, 0.98);

  font-weight:
    800;
}

.key-name-game .exercise-note strong {
  color:
    rgba(255, 255, 255, 0.92);

  font-weight:
    800;
}

@media (max-width: 640px) {
  .key-name-game .exercise-note,
  .key-name-game .instruction {
    font-size:
      16px;

    line-height:
      1.55;
  }
}

.key-name-game .choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;

  margin-top: 0;
}

.key-name-game .choices button {
  width: 100%;

  padding: 22px 24px;

  border-radius: 22px;

  text-align: left;

  background:
    rgba(255,255,255,0.08);

 border:
  1px solid rgba(255,225,68,0.38);

  color:
    rgba(255,255,255,0.86);

  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;

  cursor: pointer;

  box-shadow:
    0 14px 34px rgba(0,0,0,0.18);

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.key-name-game .choices button:hover {
  transform: translateY(-2px);

  background:
    rgba(255,225,68,0.92);

  border-color:
    rgba(255,225,68,0.92);

  color:
    #111;

  box-shadow:
    0 20px 44px rgba(255,225,68,0.20);
}

.key-name-game .feedback {
  min-height: 28px;

  margin-top: 24px;

  font-size: 16px;
  line-height: 1.6;

  text-align: left;
}

.key-name-game .bottom-zone {
  align-items: flex-start;

  margin-top: 28px;
}

/* =========================
   KEY PRACTICE — VIEWPORT FIT
========================= */

#keyPractice {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 28px 0;
}

#keyPractice .section-heading {
  margin-bottom: 18px;
}

.key-name-game {
  max-width: 760px;
  padding: 24px 34px;
  text-align: left;
}

.key-name-game h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.key-name-game #keyQuestionText,
.key-name-game #fingerQuestionText {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.5;
}

.key-name-game .quiz-image img {
  max-height: 120px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.key-name-game .choices {
  gap: 10px;
  margin-top: 14px;
}

.key-name-game .choices button {
  padding: 14px 20px;
  border-radius: 18px;
}

.key-name-game .feedback {
  margin-top: 14px;
  min-height: 24px;
}

.key-name-game .bottom-zone {
  margin-top: 16px;
}

/* =========================
   PRACTICE PROGRESS
   Shared progress bar for practice/game checkpoints
========================= */

.practice-progress {
  width: 100%;
  max-width: 560px;
  margin: 18px 0 24px;
}

.practice-progress-text {
  margin-bottom: 10px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.62);
}

.practice-progress-track {
  width: 100%;
  height: 10px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.14);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.practice-progress-fill {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ffe45e,
      #ffd43b
    );

  box-shadow:
    0 4px 18px rgba(255, 212, 59, 0.35);

  transition: width 0.35s ease;
}

@media (max-width: 640px) {
  .practice-progress {
    max-width: 100%;
    margin: 16px 0 22px;
  }
}

/* =========================
   PRACTICE RESULT
   Shared result card for small practice/game checkpoints
========================= */

.practice-result {
  display: none;

  width: 100%;
  max-width: 560px;

  margin: 18px 0 0;
  padding: 18px 22px;

  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 225, 68, 0.16),
      rgba(255, 255, 255, 0.07)
    );

  border:
    1px solid rgba(255, 225, 68, 0.34);

  color: rgba(255, 255, 255, 0.88);

  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;

  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.practice-result:not(:empty),
.practice-result.is-visible {
  display: block;
}

.practice-result strong {
  color: rgba(255, 225, 68, 0.98);
  font-size: 1.2em;
  font-weight: 800;
}

/* =========================
   PRACTICE END ZONE
   Shared layout for small practice/game endings
========================= */

.practice-end-zone {
  width: 100%;
  max-width: 560px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin-top: 18px;
}

.practice-end-zone .practice-result {
  width: 100%;
  margin-top: 0;
  margin-bottom: 26px;
}

.practice-end-zone .feedback {
  margin-top: 0;
  margin-bottom: 24px;
}

.practice-actions {
  width: 100%;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.practice-actions .bottom-zone {
  margin: 0;
  align-items: stretch;
}

.practice-actions .action-btn,
.practice-actions .bottom-zone,
.practice-actions .bottom-zone .action-btn {
  width: 100%;
}

.practice-actions > .action-btn,
.practice-actions > .bottom-zone {
  flex: 1 1 0;
  min-width: 260px;
}

.practice-actions .action-btn {
  justify-content: center;
}

.practice-secondary-action {
  background:
    rgba(255, 255, 255, 0.10);

  color:
    rgba(255, 255, 255, 0.88);

  border:
    1px solid rgba(255, 225, 68, 0.34);

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16);
}

.practice-secondary-action:hover {
  background:
    rgba(255, 225, 68, 0.18);

  color:
    rgba(255, 255, 255, 0.96);
}

/* =========================
   KEY PRACTICE — COMPACT DESKTOP HEIGHT
   keeps practice section inside one viewport on shorter laptops
========================= */

@media (min-width: 901px) and (max-height: 820px) {
  #keyPractice {
    padding: 18px 0;
  }

  #keyPractice .section-heading {
    margin-bottom: 10px;
  }

  .key-name-game {
    max-width: 760px;
    padding: 18px 30px;
  }

  .key-name-game h3 {
    margin-bottom: 6px;
    font-size: clamp(24px, 2.6vw, 34px);
  }

  .key-name-game #keyQuestionText,
  .key-name-game #fingerQuestionText {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
  }

  .practice-progress {
    margin: 12px 0 16px;
  }

  .practice-progress-text {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .practice-progress-track {
    height: 8px;
  }

  .key-name-game .choices {
    gap: 8px;
    margin-top: 10px;
  }

  .key-name-game .choices button {
    padding: 11px 18px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.35;
  }

  .practice-end-zone {
    margin-top: 12px;
  }

  .practice-end-zone .practice-result {
    margin-bottom: 16px;
    padding: 14px 18px;
  }

  .practice-end-zone .feedback {
    margin-bottom: 16px;
  }

  .practice-actions {
    gap: 12px;
  }

  .practice-actions > .action-btn,
  .practice-actions > .bottom-zone {
    min-width: 220px;
  }

  .practice-actions .action-btn {
    min-height: 46px;
    padding: 0 20px;
  }
}

@media (max-width: 640px) {
  .practice-end-zone {
    max-width: 100%;
  }

  .practice-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .practice-actions > .action-btn,
  .practice-actions > .bottom-zone {
    flex: none;
    min-width: 0;
    width: 100%;
  }

  .practice-actions .action-btn,
  .practice-actions .bottom-zone .action-btn {
    width: 100%;
  }
}
