.ss-section { background: var(--bg); padding-top: 84px; padding-bottom: 48px; }

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

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

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

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

/* ── Spell-Off timer (SpellOffSession only) ── */
.ss-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 660px;
  margin: 0 auto 20px;
}
.ss-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0097a7, #1565c0);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,151,167,0.32);
}
.ss-timer-icon  { font-size: 18px; }
.ss-timer-value {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 22px;
  min-width: 30px;
  text-align: center;
}
.ss-timer-unit { font-size: 12px; font-weight: 700; opacity: 0.85; }
.ss-timer-badge--urgent {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 16px rgba(220,38,38,0.38);
  animation: ss-timer-pulse 1s ease-in-out infinite;
}
@keyframes ss-timer-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.ss-timer-live-stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.ss-timer-live-stat--correct { color: #16a34a; }

.ss-timer-scoreboard { display: flex; gap: 20px; }
.ss-timer-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 28px;
  min-width: 100px;
}
.ss-timer-score-num {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 36px;
  color: var(--navy);
}
.ss-timer-score-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

/* ── Card ── */
.ss-card {
  max-width: 660px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 36px rgba(0,80,140,0.10);
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ── Clues ── */
.ss-clues {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.ss-pronunciation {
  font-family: 'Gentium Plus', 'Noto Sans', 'Segoe UI', 'Arial Unicode MS', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  font-style: italic;
}
.ss-pos {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #0097a7;
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
}
.ss-meaning {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.65;
}
.ss-example {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.65;
  font-style: italic;
}
.ss-origin {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

/* ── Input ── */
.ss-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ss-input {
  width: 100%;
  max-width: 400px;
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 14px 20px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  letter-spacing: 1px;
}
.ss-input:focus { border-color: #0097a7; background: #f0f9ff; }
.ss-input--correct { border-color: #16a34a; background: #f0fdf4; color: #15803d; }
.ss-input--wrong   { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.ss-input:disabled { opacity: 1; cursor: default; }

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

/* ── Actions ── */
.ss-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.ss-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, opacity 0.18s;
}
.ss-btn:disabled { opacity: 0.38; cursor: default; }
.ss-btn--submit {
  background: linear-gradient(135deg, #0097a7, #1565c0);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,151,167,0.32);
}
.ss-btn--submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,151,167,0.44); }
.ss-btn--next {
  background: linear-gradient(135deg, #16a34a, #0d9488);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22,163,74,0.30);
}
.ss-btn--next:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,0.42); }
.ss-btn--hard {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220,38,38,0.30);
}
.ss-btn--hard:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,38,38,0.42); }
.ss-btn--easy {
  background: linear-gradient(135deg, #16a34a, #0d9488);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22,163,74,0.30);
}
.ss-btn--easy:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,0.42); }
.ss-btn--hint {
  background: #fff;
  color: #b45309;
  border: 2px solid #fbbf24;
  box-shadow: none;
}
.ss-btn--hint:hover { transform: translateY(-2px); background: #fffbeb; box-shadow: 0 8px 24px rgba(251,191,36,0.30); }

/* ── Hint popup ── */
.ss-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;
}
.ss-hint-overlay[hidden] { display: none; }
.ss-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;
}
.ss-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;
}
.ss-hint-close:hover { background: #fee2e2; color: #dc2626; }
.ss-hint-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 20px;
}
.ss-hint-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.ss-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;
}
.ss-hint-letter--shown {
  background: #fffbeb;
  border-color: #fbbf24;
  color: #b45309;
}

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

.ss-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;
}
.ss-hint-reveal-btn:hover { background: #f0f9ff; border-color: #67e8f9; color: #0097a7; transform: translateY(-2px); }

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

/* ── TTS row ── */
.ss-tts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 660px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.ss-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;
}
.ss-tts-btn:hover { background: #f0f9ff; border-color: #67e8f9; color: #0097a7; transform: translateY(-2px); }

/* ── Voice picker ── */
.ss-voice-wrap { position: relative; }
.ss-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;
}
.ss-voice-list { max-height: 280px; overflow-y: auto; padding: 6px 0; }
.ss-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;
}
.ss-voice-option:hover { background: #f0f9ff; }
.ss-voice-option--active { background: #e0f7fa; }
.ss-voice-option--active .ss-voice-name { color: #0097a7; }
.ss-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;
}
.ss-voice-lang {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* ── Done screen ── */
.ss-done {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ss-done-icon  { font-size: 72px; line-height: 1; }
.ss-done-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--navy);
}
.ss-done-sub { font-size: 16px; font-weight: 600; color: var(--muted); }
.ss-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;
}
.ss-done-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,151,167,0.44); }

@media (max-width: 640px) {
  .ss-card { padding: 28px 22px 24px; }
  .ss-input { font-size: 18px; }
  .ss-timer-wrap { flex-direction: column; gap: 10px; }
  .ss-timer-scoreboard { gap: 12px; }
  .ss-timer-score-card { padding: 14px 20px; min-width: 84px; }
}

/* ── Full session word list (SEO + spoiler-gated reference) ────── */
.ss-wordlist {
  max-width: 660px;
  margin: 22px auto 0;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 4px 20px;
}
.ss-wordlist-summary {
  padding: 14px 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.ss-wordlist-summary::-webkit-details-marker { display: none; }
.ss-wordlist-summary:hover { color: #0097a7; }
.ss-wordlist-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}
.ss-wordlist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0;
}
.ss-wordlist-item {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}
.ss-wordlist-item:first-child { border-top: none; padding-top: 0; }
.ss-wordlist-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ss-wordlist-word {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
}
.ss-wordlist-pron {
  font-family: 'Gentium Plus', 'Noto Sans', 'Segoe UI', 'Arial Unicode MS', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: #0097a7;
}
.ss-wordlist-pos {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #0097a7;
  color: #fff;
  padding: 2px 10px;
  border-radius: 50px;
}
.ss-wordlist-origin {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}
.ss-wordlist-meaning {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}
.ss-wordlist-example {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

/* ── TTS info section ─────────────────────────────────────────── */
.ss-tts-info {
  background: #f0f4f8;
  padding: 48px 5vw 56px;
}
.ss-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;
}
.ss-tts-info-heading {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 18px;
  color: #0d2545;
  margin-bottom: 14px;
}
.ss-tts-info-text {
  font-size: 14px;
  color: #5f7897;
  font-weight: 600;
  line-height: 1.85;
}
.ss-tts-info-text strong { color: #0d2545; }
.ss-tts-info-text em { color: #0097a7; font-style: normal; font-weight: 700; }
