/* ── 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: 6px; }
.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; }

.fcs-complete       { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 16px 20px; }
.fcs-complete-msg   { font-size: 19px; font-weight: 800; color: var(--navy); max-width: 420px; }

/* ── 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-card-inner {
  position: relative;
  min-height: 288px;
  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;
  gap: 10px;
}
.fcs-card-back {
  background: #fff;
  border: 2px solid #e2e8f0;
  transform: rotateY(180deg);
}

.fcs-question,
.fcs-answer {
  text-align: center;
  line-height: 1.5;
}

.fcs-tap-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.4px;
}

/* ── 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; }
}
.fcs-toast--error {
  background: #dc2626;
  color: #fff;
  animation: fcs-toast-in 0.2s ease;
}

@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; }
}

