.gs-section { background: var(--bg); padding-top: 84px; padding-bottom: 56px; min-height: 70vh; }

.gs-back      { margin-bottom: 8px; }
.gs-back-link { font-size: 14px; font-weight: 700; color: var(--teal); text-decoration: none; }
.gs-back-link:hover { text-decoration: underline; }

.gs-header { text-align: center; margin-bottom: 16px; }
.gs-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--navy);
}

.gs-status        { text-align: center; font-size: 16px; font-weight: 600; color: var(--muted); padding: 40px 0; }
.gs-status--error { color: #dc2626; }

/* ── Other word lengths ── */
.gs-length-nav { max-width: 460px; margin: 0 auto 20px; }
.gs-length-nav-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.gs-length-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-length-pill { display: inline-block; background: #fff; border: 1.5px solid #cfe8ec; color: var(--navy); font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 20px; text-decoration: none; }
a.gs-length-pill:hover { border-color: #0097a7; color: #0097a7; }
.gs-length-pill--active { background: #0097a7; border-color: #0097a7; color: #fff; }

/* ── Progress ── */
.gs-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto 24px;
}
.gs-progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 50px;
  overflow: hidden;
}
.gs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0097a7, #1565c0);
  border-radius: 50px;
  transition: width 0.35s ease;
}
.gs-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
}

.gs-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Circle ── */
.gs-circle {
  position: relative;
  width: clamp(230px, 66vw, 360px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 2px;
}
.gs-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24%;
  border-radius: 50%;
}
.gs-letter-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(32px, 10vw, 46px);
  height: clamp(32px, 10vw, 46px);
  border-radius: 50%;
  border: 2px solid #0097a7;
  background: #d5f5ec;
  color: var(--navy);
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(15px, 3.6vw, 19px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s, background 0.2s;
  box-shadow: 0 3px 10px rgba(0,80,140,0.12);
}
.gs-letter-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0,151,167,0.28);
}
.gs-letter-btn--used {
  opacity: 0.32;
  background: #e2e8f0;
  border-color: #cbd5e1;
  cursor: default;
  box-shadow: none;
}
.gs-letter-btn:disabled { cursor: default; }

/* ── Answer field ── */
.gs-answer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.gs-ipa {
  font-family: 'Gentium Plus', 'Noto Sans', 'Segoe UI', 'Arial Unicode MS', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  letter-spacing: 0.4px;
}
.gs-ipa-label {
  color: var(--muted);
  font-weight: 800;
}
.gs-answer-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.gs-answer {
  width: 100%;
  max-width: 360px;
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: var(--navy);
  letter-spacing: 3px;
  min-height: 52px;
}
.gs-answer--correct { border-color: #16a34a; background: #f0fdf4; color: #15803d; }
.gs-answer--wrong   { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }

.gs-feedback { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.gs-feedback--correct { color: #16a34a; }
.gs-feedback--wrong   { color: #dc2626; }

/* ── Actions ── */
.gs-actions { display: flex; justify-content: center; gap: 14px; min-height: 0; }
.gs-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.gs-btn--check {
  background: linear-gradient(135deg, #0097a7, #1565c0);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,151,167,0.32);
}
.gs-btn--check:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,151,167,0.44); }
.gs-btn--next {
  background: linear-gradient(135deg, #16a34a, #0d9488);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22,163,74,0.30);
}
.gs-btn--next:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,0.42); }
.gs-btn--reset {
  background: #fff;
  color: var(--muted);
  border: 2px solid #e2e8f0;
  padding: 11px 34px;
}
.gs-btn--reset:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; transform: translateY(-2px); }

/* ── TTS row ── */
.gs-tts {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  row-gap: 2px;
  max-width: 640px;
  margin: 0 auto 0;
  flex-wrap: wrap;
}
.gs-tts-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.gs-tts-btn:hover { background: #f0f9ff; border-color: #67e8f9; color: #0097a7; transform: translateY(-2px); }

/* ── Voice picker ── */
.gs-voice-wrap { position: relative; }
.gs-voice-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,80,140,0.14);
  z-index: 100;
  min-width: 280px;
  max-width: 360px;
  overflow: hidden;
}
.gs-voice-list { max-height: 280px; overflow-y: auto; padding: 6px 0; }
.gs-voice-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s;
}
.gs-voice-option:hover { background: #f0f9ff; }
.gs-voice-option--active { background: #e0f7fa; }
.gs-voice-option--active .gs-voice-name { color: #0097a7; }
.gs-voice-name {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gs-voice-lang {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* ── Done screen ── */
.gs-done {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gs-done-icon  { font-size: 72px; line-height: 1; }
.gs-done-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--navy);
}
.gs-done-sub { font-size: 16px; font-weight: 600; color: var(--muted); }
.gs-done-btn {
  margin-top: 8px;
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, #0097a7, #1565c0);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,151,167,0.32);
  transition: transform 0.18s, box-shadow 0.18s;
}
.gs-done-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,151,167,0.44); }

/* ── Full session word list (SEO + spoiler-gated reference) ────── */
.gs-wordlist {
  max-width: 460px;
  margin: 22px auto 0;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 4px 20px;
}
.gs-wordlist-summary {
  padding: 14px 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.gs-wordlist-summary::-webkit-details-marker { display: none; }
.gs-wordlist-summary:hover { color: #0097a7; }
.gs-wordlist-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}
.gs-wordlist-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 0;
}
.gs-wordlist-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.gs-wordlist-word {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
}
.gs-wordlist-pron {
  font-family: 'Gentium Plus', 'Noto Sans', 'Segoe UI', 'Arial Unicode MS', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: #0097a7;
}

/* ── TTS info section ─────────────────────────────────────────── */
.gs-tts-info {
  background: #f0f4f8;
  padding: 48px 5vw 56px;
}
.gs-tts-info-inner {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 4px 16px rgba(0,80,140,0.07);
  border-left: 5px solid #0097a7;
}
.gs-tts-info-heading {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 18px;
  color: #0d2545;
  margin-bottom: 14px;
}
.gs-tts-info-text {
  font-size: 14px;
  color: #5f7897;
  font-weight: 600;
  line-height: 1.85;
}
.gs-tts-info-text strong { color: #0d2545; }
.gs-tts-info-text em { color: #0097a7; font-style: normal; font-weight: 700; }

/* ── Hint popup ── */
.gs-hint-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.gs-hint-overlay[hidden] { display: none; }
.gs-hint-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
}
.gs-hint-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.gs-hint-close:hover { background: #fee2e2; color: #dc2626; }
.gs-hint-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 18px;
  color: #0d2545;
  margin-bottom: 20px;
}
.gs-hint-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.gs-hint-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 48px;
  border-radius: 10px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  background: #f1f5f9;
  color: transparent;
  border: 2px solid #e2e8f0;
}
.gs-hint-letter--shown {
  background: #fffbeb;
  border-color: #fbbf24;
  color: #b45309;
}

.gs-hint-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gs-hint-reveal-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}
.gs-hint-reveal-btn:hover { background: #f0f9ff; border-color: #67e8f9; color: #0097a7; transform: translateY(-2px); }

.gs-hint-fullword {
  margin-top: 22px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0d9488;
  background: #f0fdfa;
  border: 2px solid #99f6e4;
  border-radius: 12px;
  padding: 10px 20px;
}
