/* FreeCell — navy felt. game.js places every card; --cw and --ch are the card size. */
.fc-table {
  position: absolute;
  top: 2px; right: 5px; bottom: 2px; left: 5px;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 25%, rgba(111, 183, 233, 0.16), transparent 55%),
    radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(5, 10, 22, 0.55)),
    radial-gradient(rgba(255, 241, 214, 0.05) 1px, transparent 1.4px) 0 0 / 5px 5px,
    #1A3D73;
  box-shadow: inset 0 0 0 1px rgba(255, 196, 61, 0.34), inset 0 0 0 4px rgba(11, 22, 43, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
  direction: ltr;
}
.fc-board, .fc-fx { position: absolute; top: 9px; right: 6px; bottom: 7px; left: 6px; }
.fc-board { z-index: 0; --cw: 36px; --ch: 50px; }
.fc-fx { z-index: 1; width: calc(100% - 12px); height: calc(100% - 16px); pointer-events: none; }

.fc-slot, .fc-card {
  position: absolute;
  top: 0; left: 0;
  width: var(--cw);
  height: var(--ch);
  padding: 0;
  border-radius: calc(var(--cw) * 0.11);
}
.fc-slot {
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 241, 214, 0.13);
  background: rgba(11, 22, 43, 0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--cw) * 0.6);
  line-height: 1;
  color: rgba(255, 241, 214, 0.3);
}
.fc-slot.is-cell { border: 1.5px dashed rgba(255, 196, 61, 0.5); background: rgba(11, 22, 43, 0.34); }
.fc-slot.is-found { border-color: rgba(255, 241, 214, 0.34); background: rgba(11, 22, 43, 0.4); }
.fc-slot.is-found.is-red { color: rgba(229, 56, 59, 0.6); }

.fc-card {
  border: 0;
  background: linear-gradient(160deg, #FFFDF6, #FFF1D6 70%, #F4E2BF);
  box-shadow: 0 0 0 1px rgba(11, 22, 43, 0.5), 0 2px 3px rgba(5, 10, 22, 0.35);
  color: #13233F;
  font-family: var(--font-text);
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  transition: transform 0.26s var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.fc-card.is-red { color: #D62F32; }
.fc-still .fc-card, .fc-card.is-drag { transition: none; }
.fc-card.is-drag { box-shadow: 0 0 0 1px rgba(11, 22, 43, 0.5), 0 10px 18px rgba(5, 10, 22, 0.5); }
.fc-card.is-gone { visibility: hidden; }
.fc-card.is-home { pointer-events: none; }
.fc-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* the big corner index: rank and suit side by side, readable when only a sliver shows */
.fc-ix {
  position: absolute;
  top: calc(var(--cw) * 0.05); left: calc(var(--cw) * 0.07);
  display: flex; align-items: center;
  line-height: 1;
  pointer-events: none;
}
.fc-ix b { font-size: calc(var(--cw) * 0.44); font-weight: 800; letter-spacing: -0.07em; }
.fc-ix i { font-style: normal; font-size: calc(var(--cw) * 0.36); margin-left: calc(var(--cw) * 0.06); }
.fc-pip {
  position: absolute;
  left: 0; right: 0; bottom: calc(var(--ch) * 0.05);
  text-align: center;
  font-size: calc(var(--cw) * 0.66);
  line-height: 1.1;
  pointer-events: none;
}
.fc-card.is-face .fc-pip {
  left: 16%; right: 16%; bottom: 8%;
  border: 1.5px solid currentColor;
  border-radius: calc(var(--cw) * 0.1);
  background: rgba(255, 196, 61, 0.42);
  font-family: var(--font-display);
  font-size: calc(var(--cw) * 0.44);
  line-height: 1.5;
}

@keyframes fc-no { 0%, 100% { margin-left: 0; } 25% { margin-left: -3px; } 75% { margin-left: 3px; } }
.fc-card.is-no { animation: fc-no 0.22s linear; }

@media (prefers-reduced-motion: reduce) {
  .fc-card { transition: none; }
  .fc-card.is-no { animation: none; }
}
