/* Card table for the self-hosted solitaire games. */
#board { position: relative; flex: 1; min-height: 0; background: var(--felt); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.slot {
  position: absolute; width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: calc(var(--cw) * .08);
  border: 2px solid var(--felt-line); display: grid; place-items: center; color: var(--felt-line);
  font: 600 calc(var(--cw) * .36) / 1 system-ui, sans-serif; cursor: pointer;
}
.card {
  position: absolute; width: var(--cw); height: calc(var(--cw) * 1.4); border-radius: calc(var(--cw) * .08);
  background: #FFFFFF; border: 1px solid rgb(0 0 0 / .28); box-shadow: 0 1px 2px rgb(0 0 0 / .25);
  cursor: pointer; transition: left .14s ease, top .14s ease; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.card.dragging { transition: none; box-shadow: 0 8px 18px rgb(0 0 0 / .35); cursor: grabbing; }
.card.red { color: #B3261E; }
.card.black { color: #1B1D1A; }
.card .tl { position: absolute; top: 5%; left: 8%; font-weight: 700; font-size: calc(var(--cw) * .25); line-height: .95; text-align: center; }
.card .mid { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; font-size: calc(var(--cw) * .6); line-height: 1; }
.card.down { background: repeating-linear-gradient(45deg, #2F5F8F 0 6px, #3A6FA3 6px 12px); border-color: #fff; border-width: 2px; }
.card.down > * { visibility: hidden; }
.card.sel { box-shadow: 0 0 0 3px #F2C94C, 0 2px 6px rgb(0 0 0 / .3); }
#toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgb(20 20 20 / .88); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 3000; max-width: 90%; text-align: center; }
#toast.show { opacity: 1; }
