.wts-page { background: #3d0579; }

.wts-section {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 40px),
    radial-gradient(ellipse at 50% -10%, #815da8 0%, transparent 55%),
    linear-gradient(180deg, #3d0579 0%, #643794 45%, #3d0579 100%);
  padding-top: 84px;
  padding-bottom: 56px;
  min-height: 100vh;
}

.wts-back      { margin-bottom: 8px; }
.wts-back-link { font-size: 14px; font-weight: 700; color: #c4b5fd; text-decoration: none; }
.wts-back-link:hover { text-decoration: underline; }

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

.wts-status        { text-align: center; font-size: 16px; font-weight: 600; color: #c4b5fd; padding: 40px 0; }
.wts-status--error { color: #f87171; }

/* ── Other word lengths ── */
.wts-length-nav { max-width: 460px; margin: 0 auto 20px; text-align: center; }
.wts-length-nav-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #c4b5fd; margin-bottom: 10px; }
.wts-length-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wts-length-pill { display: inline-block; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(196,181,253,0.35); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 20px; text-decoration: none; }
a.wts-length-pill:hover { border-color: #c4b5fd; background: rgba(255,255,255,0.16); }
.wts-length-pill--active { background: #fdf4e3; border-color: #fdf4e3; color: #3d0579; }

/* ── Progress ── */
.wts-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto 20px;
}
.wts-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
  overflow: hidden;
}
.wts-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 50px;
  transition: width 0.35s ease;
}
.wts-counter {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
}

.wts-score {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* ── Clue banner ── */
.wts-clue {
  max-width: 620px;
  margin: 0 auto 28px;
  background: linear-gradient(180deg, #fffdf7, #fdf4e3);
  border-radius: 50px;
  padding: 20px 36px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 3px rgba(196,181,253,0.35);
}
.wts-clue-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7c3aed;
  margin-bottom: 6px;
}
.wts-clue-text {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(17px, 2.4vw, 22px);
  color: #1a0836;
  line-height: 1.4;
}
.wts-ipa {
  margin-top: 8px;
  font-family: 'Gentium Plus', 'Noto Sans', 'Segoe UI', 'Arial Unicode MS', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

/* ── Answer options (Millionaire-style) ── */
.wts-options {
  max-width: 560px;
  margin: 0 auto 5.88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wts-option {
  position: relative;
  clip-path: polygon(2.5% 0%, 97.5% 0%, 100% 50%, 97.5% 100%, 2.5% 100%, 0% 50%);
  background: #fff;
  border: none;
  padding: 10.8px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, opacity 0.2s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
/* Fill sits on an inset pseudo-element with its own clip-path, so the 2px
   white gap around it (including the pointed left/right notches, which a
   plain `border` can't follow once clip-path is applied) reads as a border. */
.wts-option::before {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(2.5% 0%, 97.5% 0%, 100% 50%, 97.5% 100%, 2.5% 100%, 0% 50%);
  background: radial-gradient(ellipse at center, #7223aa 0%, #480882 100%);
  transition: background 0.16s;
}
.wts-option-label,
.wts-option-text {
  position: relative;
  z-index: 1;
}
.wts-option:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 26px rgba(168,85,247,0.45);
  background: #e9d5ff;
}
.wts-option:disabled { cursor: default; }
.wts-option-label {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 20px;
  color: #fcd34d;
  min-width: 20px;
}
.wts-option-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  letter-spacing: 0.3px;
}
.wts-option--correct { background: #86efac; }
.wts-option--correct::before {
  background: linear-gradient(90deg, #14532d, #16a34a 45%, #14532d);
}
.wts-option--wrong { background: #fca5a5; }
.wts-option--wrong::before {
  background: linear-gradient(90deg, #7f1d1d, #dc2626 45%, #7f1d1d);
}
.wts-option--dim { opacity: 0.4; }

.wts-feedback { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.wts-feedback--correct { color: #86efac; }
.wts-feedback--wrong   { color: #fca5a5; }
.wts-feedback strong    { color: #fff; }

/* ── Actions ── */
.wts-actions { display: flex; justify-content: center; gap: 14px; min-height: 44px; margin-bottom: 8px; }
.wts-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;
}
.wts-btn--next {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 4px 16px rgba(168,85,247,0.4);
}
.wts-btn--next:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(236,72,153,0.5); }

/* ── TTS row ── */
.wts-tts {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  row-gap: 2px;
  max-width: 460px;
  margin: 1.96px auto 0;
  flex-wrap: wrap;
}
.wts-tts-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 50px;
  border: 2px solid rgba(196,181,253,0.4);
  background: rgba(255,255,255,0.06);
  color: #e9d5ff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.wts-tts-btn:hover { background: rgba(255,255,255,0.14); border-color: #e9d5ff; color: #fff; transform: translateY(-2px); }

/* ── Voice picker ── */
.wts-voice-wrap { position: relative; }
.wts-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,0,0,0.35);
  z-index: 100;
  min-width: 280px;
  max-width: 360px;
  overflow: hidden;
}
.wts-voice-list { max-height: 280px; overflow-y: auto; padding: 6px 0; }
.wts-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;
}
.wts-voice-option:hover { background: #f5f3ff; }
.wts-voice-option--active { background: #ede9fe; }
.wts-voice-option--active .wts-voice-name { color: #7c3aed; }
.wts-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;
}
.wts-voice-lang {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* ── Done screen ── */
.wts-done {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.wts-done-icon  { font-size: 72px; line-height: 1; }
.wts-done-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 34px);
  color: #fff;
}
.wts-done-sub { font-size: 16px; font-weight: 600; color: #e9d5ff; }
.wts-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, #a855f7, #ec4899);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(168,85,247,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
}
.wts-done-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(236,72,153,0.5); }

@media (max-width: 600px) {
  .wts-option { padding: 14px 22px; clip-path: none; border-radius: 16px; }
  .wts-option::before { clip-path: none; border-radius: 14px; }
  .wts-clue { padding: 18px 22px; border-radius: 24px; }
}

/* ── Full session word list (SEO + spoiler-gated reference) ────── */
.wts-wordlist {
  max-width: 620px;
  margin: 22px auto 0;
  background: linear-gradient(180deg, #fffdf7, #fdf4e3);
  border-radius: 20px;
  padding: 4px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 3px rgba(196,181,253,0.35);
}
.wts-wordlist-summary {
  padding: 14px 4px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #1a0836;
  cursor: pointer;
  list-style: none;
}
.wts-wordlist-summary::-webkit-details-marker { display: none; }
.wts-wordlist-summary:hover { color: #7c3aed; }
.wts-wordlist-note {
  font-size: 12px;
  font-weight: 600;
  color: #6b5b7d;
  margin: 0 0 14px;
}
.wts-wordlist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0;
}
.wts-wordlist-item {
  border-top: 1px solid rgba(124,58,237,0.15);
  padding-top: 14px;
}
.wts-wordlist-item:first-child { border-top: none; padding-top: 0; }
.wts-wordlist-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.wts-wordlist-word {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 16px;
  color: #1a0836;
}
.wts-wordlist-pron {
  font-family: 'Gentium Plus', 'Noto Sans', 'Segoe UI', 'Arial Unicode MS', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: #7c3aed;
}
.wts-wordlist-meaning {
  font-size: 13.5px;
  font-weight: 500;
  color: #3d0579;
  line-height: 1.6;
}

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