/* ── Layout ──────────────────────────────────────────────────── */
.fcs-section { background: var(--bg); padding-top: 84px; padding-bottom: 32px; }

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

/* ── Header ──────────────────────────────────────────────────── */
.fcs-header { text-align: center; margin-bottom: 12px; }
.fcs-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--navy);
  margin-top: 2px;
}

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

/* ── Session user ────────────────────────────────────────────── */
.fcs-session-user {
  max-width: 680px;
  margin: 0 auto 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}

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

/* ── Flip card ───────────────────────────────────────────────── */
.fcs-card {
  perspective: 1200px;
  max-width: 680px;
  margin: 0 auto 14px;
  cursor: pointer;
  user-select: none;
}

.fcs-nav--tts { margin-top: 4px; gap: 10px; }

.fcs-pronounce-btn,
.fcs-voice-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;
}
.fcs-pronounce-btn:hover,
.fcs-voice-btn:hover {
  background: #f0f9ff;
  border-color: #67e8f9;
  color: #0097a7;
  transform: translateY(-2px);
}
.fcs-pronounce-btn:active,
.fcs-voice-btn:active { transform: scale(0.95); }

/* ── Voice picker dropdown ────────────────────────────────────── */
.fcs-voice-wrap {
  position: relative;
}
.fcs-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;
}
.fcs-voice-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
}
.fcs-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;
}
.fcs-voice-option:hover { background: #f0f9ff; }
.fcs-voice-option--active { background: #e0f7fa; }
.fcs-voice-option--active .fcs-voice-name { color: #0097a7; }
.fcs-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;
}
.fcs-voice-lang {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
}
.fcs-card-inner {
  position: relative;
  min-height: 240px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}
.fcs-card--flipped .fcs-card-inner {
  transform: rotateY(180deg);
}
.fcs-card-inner--instant {
  transition: none !important;
}

.fcs-card-front,
.fcs-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 36px;
  box-shadow: 0 8px 36px rgba(0,80,140,0.11);
}
.fcs-card-front {
  background: linear-gradient(145deg, #f0f9ff, #e8f4fd);
  border: 2px solid #bae6fd;
  justify-content: flex-start;
  padding-top: 22px;
  gap: 8px;
  overflow-y: auto;
}
.fcs-card-back {
  background: #fff;
  border: 2px solid #e2e8f0;
  transform: rotateY(180deg);
}

.fcs-word {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--navy);
  text-align: center;
  line-height: 1.15;
}
.fcs-tap-hint {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.fcs-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;
}
.fcs-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;
}
.fcs-meaning {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.65;
  text-align: center;
}
.fcs-example {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
  font-style: italic;
}
.fcs-origin {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

/* ── Navigation ──────────────────────────────────────────────── */
.fcs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}
.fcs-nav-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.fcs-nav-btn:hover:not(:disabled) {
  background: #f0f9ff;
  border-color: #67e8f9;
  transform: translateY(-2px);
}
.fcs-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.fcs-nav-btn--flip {
  background: linear-gradient(135deg, #0097a7, #1565c0);
  color: #fff;
  border-color: transparent;
  padding: 10px 32px;
  box-shadow: 0 4px 16px rgba(0,151,167,0.3);
}
.fcs-nav-btn--flip:hover {
  background: linear-gradient(135deg, #00838f, #0d47a1);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0,151,167,0.42);
}

/* ── Flip toast ──────────────────────────────────────────────── */
.fcs-toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #facc15;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  white-space: nowrap;
  z-index: 200;
  animation: fcs-toast-in 0.2s ease, fcs-blink 0.6s step-start infinite;
}
@keyframes fcs-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes fcs-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 640px) {
  .fcs-card-front,
  .fcs-card-back  { padding: 32px 24px; }
  .fcs-nav-btn    { padding: 10px 18px; font-size: 13px; }
  .fcs-nav-btn--flip { padding: 10px 26px; }
}

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

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