/* Flashcards Hub — premium study deck + arcade modes */

.fc-page {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.fc-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(167, 139, 250, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 60%, rgba(245, 158, 11, 0.06), transparent 50%);
}

.fc-page > *:not(.fc-ambient) { position: relative; z-index: 1; }

/* Hero */
.fc-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 26px 30px;
  margin: 0 0 22px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 75% 65% at 15% 0%, rgba(245, 158, 11, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 35%, rgba(167, 139, 250, 0.12), transparent 50%),
    linear-gradient(155deg, #100a04 0%, var(--bg2, #111) 48%, #060a12 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
}

.fc-hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fc-hero-floats span {
  position: absolute;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  animation: fcFloat 14s ease-in-out infinite;
}

.fc-hero-floats span:nth-child(1) { left: 6%; top: 18%; font-size: 2.8rem; }
.fc-hero-floats span:nth-child(2) { left: 78%; top: 10%; font-size: 2.2rem; animation-delay: -3s; }
.fc-hero-floats span:nth-child(3) { left: 90%; top: 58%; font-size: 3.4rem; animation-delay: -6s; }
.fc-hero-floats span:nth-child(4) { left: 22%; top: 65%; font-size: 1.8rem; animation-delay: -9s; }
.fc-hero-floats span:nth-child(5) { left: 52%; top: 75%; font-size: 2.6rem; animation-delay: -2s; }

@keyframes fcFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); opacity: 0.45; }
  50% { transform: translateY(-12px) rotate(5deg); opacity: 0.85; }
}

.fc-hero-content { position: relative; z-index: 1; max-width: 680px; }

.fc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 12px;
}

.fc-hero-title {
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.1;
}

.fc-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #fbbf24, #fff 42%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fc-hero-sub {
  font-size: 0.9rem;
  color: #9a9ab0;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 540px;
}

.fc-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fc-stat-chip {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  min-width: 88px;
}

.fc-stat-val {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}

.fc-stat-lbl {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  margin-top: 2px;
}

.fc-stat-chip--mint .fc-stat-val { color: var(--mint, #00f5d4); }
.fc-stat-chip--gold .fc-stat-val { color: #fbbf24; }

/* Dashboard */
.fc-dash {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.fc-dash-rings {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fc-ring-card {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.fc-ring-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 6px;
}

.fc-ring-svg {
  width: 68px;
  height: 68px;
  transform: rotate(-90deg);
}

.fc-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5;
}

.fc-ring-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.fc-ring-fill--vocab { stroke: url(#fcGradVocab); }
.fc-ring-fill--hira { stroke: url(#fcGradHira); }
.fc-ring-fill--kata { stroke: url(#fcGradKata); }

.fc-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.fc-ring-pct {
  font-family: 'Nunito', sans-serif;
  font-size: 0.5rem;
  font-weight: 800;
  color: #888;
  margin-top: 2px;
}

.fc-ring-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #777;
}

.fc-ring-label span { color: #aaa; }

.fc-dash-quest {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fc-quest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fc-quest-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ccc;
}

.fc-quest-reward {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--mint, #00f5d4);
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
}

.fc-quest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.fc-quest-chip {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #ddd;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.fc-quest-chip small {
  font-family: 'Nunito', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: #666;
  margin-left: 4px;
}

.fc-quest-chip.done {
  border-color: rgba(0, 245, 212, 0.45);
  background: rgba(0, 245, 212, 0.08);
  color: var(--mint, #00f5d4);
}

.fc-quest-chip:hover:not(.done) { border-color: rgba(245, 158, 11, 0.4); transform: translateY(-1px); }

.fc-quest-status {
  font-size: 0.68rem;
  color: #666;
  margin: 0;
  line-height: 1.45;
}

/* Session bar */
.fc-session-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fc-session-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  white-space: nowrap;
}

.fc-session-track {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.fc-session-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #fbbf24, var(--mint, #00f5d4));
  transition: width 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.35);
}

.fc-session-msg {
  font-size: 0.68rem;
  font-weight: 700;
  color: #888;
  max-width: 200px;
  text-align: right;
}

/* Workspace shell */
.fc-shell {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 10, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  margin-bottom: 40px;
}

.fc-dock-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fc-dock {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
}

.fc-dock--deck { grid-template-columns: repeat(3, 1fr); }
.fc-dock--mode { grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.04); }

.fc-dock-glider {
  position: absolute;
  top: 10px;
  left: 12px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(167, 139, 250, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
  transition: transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1), width 0.38s cubic-bezier(0.34, 1.35, 0.64, 1);
  pointer-events: none;
  z-index: 0;
}

.fc-dock--mode .fc-dock-glider {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.28), rgba(255, 101, 132, 0.15));
  border-color: rgba(255, 101, 132, 0.32);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.18);
}

.fc-dock-tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  border: none;
  border-radius: 14px;
  background: transparent !important;
  color: #888 !important;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: color 0.25s;
}

.fc-dock-tab:hover { color: #ccc !important; }
.fc-dock-tab.active { color: #fff !important; }

.fc-dock-icon { font-size: 1.1rem; line-height: 1; }
.fc-dock-icon--jp { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; }
.fc-dock-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fc-dock-badge {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 0.48rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 100px;
  background: rgba(0, 245, 212, 0.15);
  color: var(--mint, #00f5d4);
  border: 1px solid rgba(0, 245, 212, 0.25);
}

.fc-panel {
  display: none;
  padding: 28px 24px 32px;
  animation: fcPanelIn 0.35s ease;
}

.fc-panel.active { display: block; }

@keyframes fcPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards mode toolbar */
.fc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.fc-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #777;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.fc-pill strong { color: #fbbf24; font-weight: 800; }
.fc-pill--streak {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}
.fc-pill--streak[hidden] { display: none !important; }

.fc-tool-btn {
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #aaa;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}

.fc-tool-btn:hover {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fff;
}

.fc-tool-btn--ghost { margin-left: auto; }

.fc-hint-keys {
  width: 100%;
  font-size: 0.62rem;
  color: #555;
  text-align: center;
  margin-top: -8px;
  margin-bottom: 8px;
}

.fc-hint-keys kbd {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.58rem;
}

/* Flashcard arena */
.fc-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fc-card-wrap {
  width: min(380px, 100%);
  height: 260px;
  perspective: 1200px;
  cursor: pointer;
  margin-bottom: 18px;
  position: relative;
}

.fc-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s;
  border-radius: 22px;
}

.fc-card.flipped { transform: rotateY(180deg); }
.fc-card.deck-vocab .fc-front { border-color: rgba(245, 158, 11, 0.35); }
.fc-card.deck-hira .fc-front { border-color: rgba(255, 101, 132, 0.35); }
.fc-card.deck-kata .fc-front { border-color: rgba(0, 245, 212, 0.35); }

.fc-front, .fc-back {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 28px;
  box-sizing: border-box;
}

.fc-front {
  background: linear-gradient(160deg, rgba(20, 22, 40, 0.95), rgba(10, 12, 24, 0.98));
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fc-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(30, 18, 28, 0.95), rgba(14, 12, 22, 0.98));
  border: 2px solid rgba(230, 57, 70, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(230, 57, 70, 0.12);
}

.fc-card-wrap:hover .fc-card:not(.flipped) {
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.fc-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.fc-rom { font-size: 0.82rem; color: #888; margin-top: 8px; font-weight: 700; }
.fc-en {
  font-family: 'Nunito', sans-serif;
  font-size: 1.45rem;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.fc-audio-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s, background 0.2s;
  pointer-events: auto;
}

.fc-audio-btn:hover {
  transform: scale(1.08);
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

.fc-tap-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  pointer-events: none;
}

.fc-answer-row {
  display: none;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 400px;
}

.fc-answer-row.show { display: flex; }

.fc-btn {
  flex: 1;
  min-width: 140px;
  border: 2px solid;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.fc-btn-wrong { border-color: #ff6584; color: #ff6584; }
.fc-btn-wrong:hover { background: #ff6584; color: #fff; transform: translateY(-2px); }
.fc-btn-right { border-color: var(--mint, #00f5d4); color: var(--mint, #00f5d4); }
.fc-btn-right:hover { background: var(--mint, #00f5d4); color: #060714; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 245, 212, 0.35); }

.fc-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(400px, 100%);
  margin-top: 18px;
}

.fc-prog-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.fc-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbbf24, var(--red, #e63946));
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.fc-prog-pct { font-size: 0.72rem; font-weight: 800; color: #888; min-width: 36px; }

/* Done panel */
.fc-done {
  display: none;
  text-align: center;
  padding: 20px 10px 10px;
}

.fc-done.show { display: block; }

.fc-done-emoji { font-size: 3rem; margin-bottom: 10px; animation: fcDonePop 0.6s ease; }

@keyframes fcDonePop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.fc-done-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
}

.fc-done-msg { font-size: 0.85rem; color: #888; margin: 0 0 18px; line-height: 1.5; }

.fc-done-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto 20px;
}

.fc-done-stat {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fc-done-stat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--mint, #00f5d4);
}

.fc-done-stat-lbl {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

.fc-done-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Match mode */
.fc-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.fc-match-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.fc-match-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.fc-match-col { display: flex; flex-direction: column; gap: 8px; }

.fc-match-item {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text, #ddd);
  transition: all 0.22s;
  text-align: center;
  user-select: none;
}

.fc-match-item:hover:not(.matched) {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.fc-match-item.selected {
  border-color: var(--red, #e63946);
  background: rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
}

.fc-match-item.matched {
  border-color: rgba(0, 245, 212, 0.55);
  background: rgba(0, 245, 212, 0.08);
  color: var(--mint, #00f5d4);
  cursor: default;
  transform: scale(0.98);
}

.fc-match-item.wrong-match {
  border-color: #ff6584;
  background: rgba(255, 101, 132, 0.1);
  animation: fcShake 0.4s ease;
}

@keyframes fcShake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.fc-match-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.fc-match-result {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 28px;
  margin-top: 16px;
}

.fc-match-actions { text-align: center; margin-top: 14px; }

/* Writing test */
.fc-test-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.fc-quiz-arena {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.fc-quiz-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 12px;
}

.fc-quiz-prompt {
  font-family: 'Nunito', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}

.fc-quiz-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.fc-quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s, transform 0.25s;
}

.fc-quiz-dot.done { background: var(--mint, #00f5d4); }
.fc-quiz-dot.current { background: #fbbf24; transform: scale(1.25); }
.fc-quiz-dot.miss { background: #ff6584; }

.fc-quiz-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.05rem;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.fc-quiz-input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
}

.fc-quiz-input.correct { border-color: var(--mint, #00f5d4); }
.fc-quiz-input.wrong { border-color: #ff6584; }

.fc-quiz-result {
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 24px;
  margin-top: 10px;
}

.fc-test-done {
  display: none;
  text-align: center;
  padding: 24px 10px;
}

.fc-test-done.show { display: block; }

.fc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(14, 16, 32, 0.95);
  border: 1px solid rgba(0, 245, 212, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.fc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .fc-dash { grid-template-columns: 1fr; }
  .fc-dash-rings { flex-wrap: wrap; justify-content: center; }
  .fc-session-msg { display: none; }
  .fc-panel { padding: 20px 14px 24px; }
  .fc-done-stats { grid-template-columns: 1fr; }
  .fc-match-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-hero-floats span, .fc-done-emoji, .fc-match-item.wrong-match, .fc-panel { animation: none; }
  .fc-dock-glider { transition: none; }
}