/* ===== Folded cards on the felt + pre-action checkboxes (Design Bot, 2026-10-17, PREVIEW) =====
   Drop-in: <link rel="stylesheet" href="static/folded/folded.css"> after the main <style>.
   All classes are prefixed fc- ; nothing here changes the live look until folded.js runs. */

/* --- layer that holds the mucked cards: sits on the felt, under seats/bets/board --- */
#fcLayer{position:absolute;inset:0;pointer-events:none;z-index:2}
.fc-muck{position:absolute;left:0;top:0;width:0;height:0;
  transform:translate(var(--x),var(--y)) rotate(var(--r))}
.fc-muck .fc-c{position:absolute;left:-9px;top:-13px;width:18px;height:26px;margin:0;border-radius:3px;
  border:1px solid #E8B33A;box-shadow:0 1px 3px #000c,inset 0 0 0 1px #000;
  /* same black/gold back as .back (hole cards) */
  background:radial-gradient(circle at 50% 50%,#E8B33A 0 1.6px,transparent 2.2px),repeating-linear-gradient(45deg,#0b0b0d 0 3px,#22201a 3px 4px)}
.fc-muck .fc-c+.fc-c{transform:translate(5px,-1px) rotate(13deg)}
.fc-muck{opacity:.82}                                 /* subtle: reads as "dead", never competes with the board */
/* toss: card flies from the seat to its spot with a little spin (~360 ms) */
@keyframes fc-toss{
  0%  {transform:translate(var(--x0),var(--y0)) rotate(calc(var(--r) - 200deg)) scale(.85);opacity:0}
  15% {opacity:.9}
  100%{transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(1);opacity:.82}}
.fc-muck.fc-anim{animation:fc-toss 360ms cubic-bezier(.2,.75,.3,1) both}

/* --- FOLD tag on the nameplate (same slot as the red ALL IN tag, black/gold) --- */
.seat .plate .fc-tag{position:absolute;right:-4px;bottom:-8px;z-index:4;background:#0d0d0f;color:#E8B33A;
  font-size:9px;font-weight:900;letter-spacing:.8px;text-transform:uppercase;padding:1px 7px;border-radius:7px;
  border:1px solid #E8B33Aaa;box-shadow:0 1px 4px #000a;white-space:nowrap;line-height:12px}
/* folded seat: keep name + stack readable, dim only the face (replaces the old 45% fade of the whole plate) */
#tableWrap.fc-on .seat.folded .plate{opacity:1;filter:none}
#tableWrap.fc-on .seat.folded .plate .nm{color:#b9b9b9}
#tableWrap.fc-on .seat.folded .plate .st{color:#c9ad55}
#tableWrap.fc-on .seat.folded .avatar{opacity:.55;filter:grayscale(.6) brightness(.85)}

/* --- pre-action box (human tables only): bottom-left, directly above the hand log --- */
#fcPre{position:fixed;left:8px;bottom:var(--fcPreB,170px);z-index:49;width:max-content;max-width:min(300px,calc(50vw - 16px));
  display:none;gap:6px;flex-direction:column;padding:6px 8px;border-radius:10px;
  background:#0f0d0aee;border:1px solid #c9a24a99;box-shadow:0 4px 14px #0008;font-size:12px;color:#f3ead7}
#fcPre.on{display:flex}
#fcPre label{display:flex;align-items:center;gap:8px;cursor:pointer;user-select:none;-webkit-user-select:none;line-height:18px}
#fcPre input{position:absolute;opacity:0;width:0;height:0}
#fcPre .fc-box{flex:none;width:16px;height:16px;border-radius:4px;border:1.5px solid #c9a24a;background:#1a1610;
  box-shadow:inset 0 1px 2px #000;display:flex;align-items:center;justify-content:center;transition:background .12s}
#fcPre .fc-box::after{content:'';width:4px;height:8px;border:solid #111;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px);opacity:0}
#fcPre input:checked+.fc-box{background:linear-gradient(#ffd76a,#E8B33A);border-color:#ffd76a;box-shadow:0 0 6px #E8B33A88}
#fcPre input:checked+.fc-box::after{opacity:1}
#fcPre input:checked~.fc-t{color:#ffd76a;text-shadow:0 0 6px #E8B33A55}
#fcPre input:focus-visible+.fc-box{outline:2px solid #ffd76a;outline-offset:2px}
#fcPre label.fc-dis{opacity:.4;cursor:default}
@media (max-width:480px){#fcPre{font-size:11px;padding:5px 7px;gap:4px}}
/* narrow screens: same box, laid out as one row directly under the action buttons (folded.js adds .fc-row) */
#fcPre.fc-row{position:relative;left:auto;bottom:auto;z-index:5;flex-direction:row;justify-content:center;flex-wrap:wrap;gap:6px 14px;
  width:min(440px,100%);max-width:none;margin:6px auto 0;padding:5px 8px}
