.fc-panel { }
.fc-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

/* Deck picker list */
.fc-pick-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.fc-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 0;
}
.fc-pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.1rem;
  background: var(--card-2);
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .12s, background .12s;
  gap: 1rem;
}
.fc-pick-item:hover { border-color: var(--accent, #6c8bff); }
.fc-pick-name { font-weight: 700; font-size: .95rem; }
.fc-pick-meta { font-size: .8rem; color: var(--muted); }
.fc-pick-start {
  padding: .4rem 1rem;
  border-radius: 8px;
  background: var(--accent-grad, #6c8bff);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Session header */
.fc-session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.fc-deck-name {
  font-weight: 700;
  font-size: 1rem;
  margin-right: .75rem;
}
.fc-progress-txt {
  font-size: .82rem;
  color: var(--muted);
}
.fc-session-btns {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.fc-session-btns .btn { padding: .3rem .7rem; font-size: .82rem; min-height: 32px; }

/* Flip card */
.fc-card-wrap {
  perspective: 900px;
  margin: 1.5rem 0 1.25rem;
}
.fc-card {
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  min-height: 220px;
}
.fc-card:focus { outline: 2px solid var(--accent, #6c8bff); outline-offset: 4px; }
.fc-card-inner {
  width: 100%;
  min-height: 220px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
}
.fc-card-inner.flipped { transform: rotateY(180deg); }
.fc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  min-height: 220px;
}
.fc-front { background: var(--card, #161a30); border: 2px solid var(--border, #2a3157); }
.fc-back  { background: var(--card-2, #1a1f38); border: 2px solid var(--accent, #6c8bff); transform: rotateY(180deg); }

.fc-face-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.fc-face-text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.fc-flip-hint {
  position: absolute;
  bottom: .9rem;
  right: 1.1rem;
  font-size: .72rem;
  color: var(--muted);
  pointer-events: none;
}

/* Action buttons */
.fc-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: .5rem;
}
.fc-btn-know {
  min-width: 160px;
  background: #27ae60;
  border-color: #27ae60;
}
.fc-btn-know:hover { background: #2ecc71; border-color: #2ecc71; }
.fc-btn-again {
  min-width: 160px;
  border-color: var(--border, #2a3157);
}

/* Summary */
.fc-summary {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.fc-summary-icon { font-size: 3rem; margin-bottom: .75rem; }
.fc-summary h3 { font-size: 1.4rem; margin: 0 0 .75rem; }
.fc-summary-stats { font-size: 1rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.fc-summary-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Create tab */
.fc-create-header {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.fc-deck-switch {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 200px;
}
.fc-card-form {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.fc-arrow {
  font-size: 1.4rem;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 1.5rem;
}
.fc-card-count {
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--muted);
}
.fc-import-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

/* Manage tab */
.fc-deck-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.fc-deck-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--card-2);
  border-radius: 12px;
  flex-wrap: wrap;
}
.fc-deck-row-name { font-weight: 700; flex: 1; min-width: 140px; }
.fc-deck-row-meta { font-size: .8rem; color: var(--muted); }
.fc-deck-row-btns { display: flex; gap: .5rem; flex-shrink: 0; }
.fc-deck-row-btns .btn { padding: .3rem .7rem; font-size: .8rem; min-height: 32px; }
.fc-deck-del { color: #ff6b8a !important; border-color: #ff6b8a !important; }
.fc-deck-cards { width: 100%; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .4rem; }
.fc-card-row { display: flex; align-items: center; gap: .6rem; font-size: .84rem; padding: .4rem .6rem;
  background: var(--card); border-radius: 8px; }
.fc-card-row-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.fc-card-row-text b { color: inherit; font-weight: 600; }
.fc-card-del { flex-shrink: 0; background: none; border: 1px solid var(--line); color: var(--muted-2);
  border-radius: 6px; width: 24px; height: 24px; cursor: pointer; font-size: .78rem; line-height: 1; }
.fc-card-del:hover { color: #ff6b8a; border-color: #ff6b8a; }
.fc-cards-empty { font-size: .82rem; color: var(--muted-2); padding: .3rem .6rem; }

@media (max-width: 600px) {
  .fc-card-form { flex-direction: column; }
  .fc-arrow { display: none; }
  .fc-face-text { font-size: 1.2rem; }
  .fc-create-header { flex-direction: column; align-items: stretch; }
  .fc-deck-switch { min-width: 0; }
}

/* Full-screen mode (native Fullscreen API on #fcSession) — big card text for a projector/TV.
   .fc-session-header is marked fs-controls (base.css + assets/site.js): it auto-hides
   after a couple of seconds idle and reappears on mouse/touch activity. The extra top
   padding reserves its space so the centered card never overlaps it when it reappears. */
#fcSession:fullscreen { background: var(--bg); display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 90px 40px 40px; overflow: auto; }
#fcSession:fullscreen .fc-session-header { position: absolute; top: 20px; left: 20px; right: 20px; }
#fcSession:fullscreen .progress { max-width: 900px; width: 100%; margin: 0 auto; }
#fcSession:fullscreen .fc-card-wrap { width: 100%; max-width: 900px; }
#fcSession:fullscreen .fc-card, #fcSession:fullscreen .fc-card-inner, #fcSession:fullscreen .fc-face { min-height: 56vh; }
#fcSession:fullscreen .fc-face { padding: 3rem; }
#fcSession:fullscreen .fc-face-label { font-size: 1rem; top: 2rem; }
#fcSession:fullscreen .fc-face-text { font-size: clamp(2.2rem, 6vw, 4.5rem); }
#fcSession:fullscreen .fc-actions { margin-top: 34px; }
#fcSession:fullscreen .fc-btn-know, #fcSession:fullscreen .fc-btn-again { font-size: 1.15rem; padding: 16px 28px; min-width: 220px; }
