/* ==========================================================================
   FSN — the binder panel on a GM page.

   The card faces are 514x706 pieces of art and they live in the rip. What
   belongs on a GM page is the RECORD: what the club was dealt, what is still
   sealed, and how much of Series One that adds up to. So this is a ledger in
   the site's own voice, not a shrunken shop window.
   ========================================================================== */

/* -------------------------------- the sixth cell in the This-season bar */
.nowbar.has-binder { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nowcell.is-binder { position: relative; }
.nowcell.is-binder .value small {
  font-size: 15px; color: var(--gray-text); font-family: var(--mono);
  font-weight: 500; margin-left: 2px;
}
.nowcell.is-binder .stack {
  position: absolute; right: 13px; top: 13px; width: 30px; height: 40px;
}
.nowcell.is-binder .stack i {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(160deg, #3a4658 0%, #1c2430 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.nowcell.is-binder .stack i:nth-child(1) { transform: rotate(-8deg) translateX(-4px); }
.nowcell.is-binder .stack i:nth-child(2) { transform: rotate(4deg) translateX(3px); }
@media (max-width: 1100px) { .nowbar.has-binder { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .nowbar.has-binder { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nowcell.is-binder .stack { display: none; }
}

/* ========================================================== the panel, v2
   The cards are the point. Real faces, scaled from their authored 514x706
   into whatever box they land in — the same trick the rip uses, because
   re-authoring a card at a second size is how two versions of a card start
   disagreeing. */
.bd { display: flex; flex-direction: column; gap: 22px; }

/* ---------------------------------------------------------- a card face */
.bcard {
  position: relative; width: 100%; aspect-ratio: 514 / 706;
  perspective: 1200px; cursor: pointer; overflow: visible;
  transition: transform .18s ease;
}
.bcard:hover { transform: translateY(-4px); }
.bcard-flip {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.18,.86,.22,1);
}
.bcard.flip .bcard-flip { transform: rotateY(180deg); }
.bcard-s {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden;
  background: #0B0F14; border-radius: 13px;
  box-shadow: 0 10px 26px -12px rgba(10,14,20,.6);
}
.bcard-s.b { transform: rotateY(180deg); }
.bcard-in { position: absolute; left: 0; top: 0; width: 514px; height: 706px; transform-origin: 0 0; }
.bcard-wait {
  position: absolute; inset: 0; border-radius: 13px; display: grid;
  place-content: center; text-align: center; gap: 5px; padding: 12px;
  background: linear-gradient(160deg, #1a2130, #0d1219);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.bcard-wait span { font: 700 13px/1.2 var(--cond); letter-spacing: .06em;
  text-transform: uppercase; color: #cfd6df; }
.bcard-wait i { font-style: normal; font-size: 10px; color: #6E7E90; }

.bcard-fav {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  width: 27px; height: 27px; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255,255,255,.25); background: rgba(8,12,18,.6);
  color: rgba(255,255,255,.55); font-size: 13px; line-height: 1;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}
.bcard-fav:hover { transform: scale(1.12); color: #fff; }
.bcard-fav.on { background: #C8A24B; border-color: #C8A24B; color: #12161d; }
.bcard-fav.is-full { animation: bd-nope .4s ease; border-color: var(--fsn-red); }
@keyframes bd-nope { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.bcard-tag {
  position: absolute; left: 0; right: 0; bottom: -17px; text-align: center;
  font: 500 9.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--gray-text); pointer-events: none;
}
.bcard-tag b { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) {
  .bcard, .bcard-flip { transition: none; }
  .bcard:hover { transform: none; }
}

/* ---------------------------------------------------------- the showcase */
.bd-show {
  padding: 18px 20px 26px; border-radius: var(--radius);
  background: radial-gradient(120% 180% at 12% -40%, #1D2836 0%, #0C121B 60%, #07090E 100%);
  border: 1px solid #23262d;
}
.bd-show-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.bd-show-h h3 {
  margin: 0; font: 700 12px/1 var(--cond); letter-spacing: .16em;
  text-transform: uppercase; color: #FFF3CC;
}
.bd-show-h span { font: 400 11px/1 var(--mono); color: #7E8EA0; }
.bd-show.is-empty { padding-bottom: 18px; }
.bd-show.is-empty p { margin: 0; font-size: 13px; line-height: 1.55; color: #93A3B5; max-width: 60ch; }
.bd-showrow {
  display: grid; gap: 26px 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 900px) { .bd-showrow { grid-template-columns: repeat(5, 1fr); } }

/* ------------------------------------------------------------ the fifteen */
.bd-grid-h { display: flex; align-items: baseline; gap: 12px; }
.bd-grid-h h3 {
  margin: 0; font: 700 12px/1 var(--cond); letter-spacing: .14em;
  text-transform: uppercase;
}
.bd-grid-h span { font: 400 11.5px/1 var(--mono); color: var(--gray-text); }
.bd-grid {
  display: grid; gap: 28px 14px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

/* ------------------------------------------------------------ still sealed */
.bd-seal {
  display: grid; gap: 8px 18px; align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--gray-rule);
  border-left: 3px solid #C8A24B; box-shadow: var(--sh-1);
}
.bd-seal b { font-size: 14px; }
.bd-seal p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--gray-text); }
.bd-seal-packs { display: flex; gap: 5px; }
.bd-foil {
  width: 26px; height: 36px; border-radius: 3px; display: block;
  background: linear-gradient(150deg, #2b3442 0%, #46536a 38%, #cfd8e6 50%, #46536a 62%, #1c2430 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
@media (max-width: 720px) { .bd-seal { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- the ledger */
.bd-ledger {
  background: var(--paper); border: 1px solid var(--gray-rule);
  border-radius: var(--radius); box-shadow: var(--sh-1);
}
.bd-ledger > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font: 700 11px/1 var(--cond); letter-spacing: .13em;
  text-transform: uppercase;
}
.bd-ledger > summary::-webkit-details-marker { display: none; }
.bd-ledger > summary::after { content: "▸"; margin-left: auto; color: var(--fsn-red); transition: transform .15s; }
.bd-ledger[open] > summary::after { transform: rotate(90deg); }
.bd-ledger[open] > summary { border-bottom: 1px solid var(--gray-rule); }
.bd-ledger > summary .count {
  background: var(--paper-3); color: var(--ink-2); border-radius: 999px;
  padding: 2px 9px; font: 600 10px/1.6 var(--sans); letter-spacing: .04em;
}
.bd-ledger-in { padding: 14px 18px 16px; }
.bd-meter { display: flex; height: 9px; border-radius: 99px; overflow: hidden;
  background: var(--track); margin-bottom: 10px; }
.bd-meter i { display: block; height: 100%; }
.bd-pips { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px;
  font: 500 11px/1.6 var(--mono); color: var(--gray-text); }
.bd-pips span { display: inline-flex; align-items: center; gap: 6px; }
.bd-pips i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.bd-pips em { font-style: normal; opacity: .6; }
.bd-setrow {
  display: grid; gap: 12px; align-items: center;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 56px;
  padding: 4px 0; font-size: 12.5px;
}
.bd-setrow .n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bd-setrow .n em { font-style: normal; opacity: .8; }
.bd-setrow .bar { height: 7px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bd-setrow .bar i { display: block; height: 100%; background: var(--seq-5); }
.bd-setrow .bar i.done { background: #1a7f4b; }
.bd-setrow .c { justify-self: end; font: 500 11.5px/1 var(--mono); color: var(--gray-text); }
.bd-setrow .c b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- the foot */
.bd-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bd-cta {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 11px 17px; border-radius: var(--radius-sm);
  background: radial-gradient(120% 180% at 12% -40%, #1D2836 0%, #0C121B 100%);
  border: 1px solid #C8A24B; color: #FFF3CC; white-space: nowrap;
  font: 700 11px/1 var(--cond); letter-spacing: .15em; text-transform: uppercase;
}
.bd-cta:hover { background: #16202c; }
.bd-cta .pk {
  width: 13px; height: 18px; border-radius: 2px; flex: 0 0 auto;
  background: linear-gradient(160deg, #C8A24B 0%, #8a6c25 100%);
}
.bd-more {
  font: 700 10.5px/1 var(--cond); letter-spacing: .11em; text-transform: uppercase;
  color: var(--fsn-red-ink); text-decoration: none;
}
.bd-more:hover { text-decoration: underline; }

/* ------------------------------------- the shelf on the Overview board */
.glance-card--binder { order: 99; }
.glance-card--binder .bshelf {
  display: grid; gap: 20px 26px; padding: 16px 18px;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) auto;
  align-items: start;
}
.glance-card--binder .bshelf .k {
  font: 700 10px/1 var(--cond); letter-spacing: .13em; text-transform: uppercase;
  color: var(--gray-text); margin-bottom: 8px;
}
.glance-card--binder .bshelf .big { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; }
.glance-card--binder .bshelf .big b { font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: .96; }
.glance-card--binder .bshelf .big span { font-size: 12px; color: var(--gray-text); }
.bshelf-fan {
  position: relative; display: grid; gap: 22px 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0;
}
.bshelf-fan .bcard { cursor: default; }
.bshelf-fan .bcard:hover { transform: none; }
.bshelf-cap {
  grid-column: 1 / -1; text-align: center; margin-top: -14px;
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-text);
}
.bshelf-sealed {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); color: var(--gray-text);
}
.glance-card--binder .bshelf .cta { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
@media (max-width: 1060px) {
  .glance-card--binder .bshelf { grid-template-columns: minmax(0, 1fr); }
  .bshelf-fan { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* the nowbar cell became a link in v2 */
a.nowcell.is-binder { text-decoration: none; color: inherit; transition: background .12s ease; }
a.nowcell.is-binder:hover { background: var(--paper-2); }

.bd-elsewhere {
  margin: 0; padding: 11px 15px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--gray-rule);
  font-size: 12.5px; line-height: 1.5; color: var(--gray-text);
}
.bd-elsewhere a { color: var(--fsn-red-ink); }

/* share-as-a-picture, on the showcase and on the fifteen */
.bd-shot {
  margin-left: auto; cursor: pointer; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(200,162,75,.5); background: rgba(200,162,75,.12);
  color: #E8C878; font: 700 9.5px/1 var(--cond); letter-spacing: .14em;
  text-transform: uppercase;
}
.bd-shot:hover { background: rgba(200,162,75,.26); color: #FFF3CC; }
.bd-shot[disabled] { opacity: .6; cursor: default; }
.bd-grid-h .bd-shot {
  border-color: var(--gray-rule-2); background: var(--paper-2); color: var(--fsn-red-ink);
}
.bd-grid-h .bd-shot:hover { background: var(--paper-3); color: var(--fsn-red-ink); }

/* ---------------------------------------------------- v3: the account line
   Who is looking at this binder and what they can do about it. */
.bd-account {
  margin: 0; padding: 10px 15px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--gray-rule);
  font-size: 12.5px; line-height: 1.55; color: var(--gray-text);
}
.bd-account b { color: var(--ink); font-weight: 600; }
.bd-account a { color: var(--fsn-red-ink); }
.bd-account.is-mine { border-left: 3px solid #C8A24B; }
.bd-account.is-offline { border-left: 3px solid var(--gray-rule-2); font-style: italic; }
.bd-note { opacity: .75; }

/* ======================================================== the league binder
   /cards/ — fourteen binders on one page, from the ledger. */
.lg-totals {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--gray-rule); border: 1px solid var(--gray-rule);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-1); margin-bottom: 26px;
}
.lg-cell { background: var(--paper); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lg-cell .label { font: 700 10px/1 var(--cond); letter-spacing: .13em; text-transform: uppercase; color: var(--gray-text); }
.lg-cell .value { font: 700 30px/1 var(--cond); }
.lg-cell .context { font: 400 11.5px/1.3 var(--mono); color: var(--gray-text); }
@media (max-width: 720px) { .lg-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lg-grid {
  display: grid; gap: 16px; margin-bottom: 34px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.lg-club {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border: 1px solid var(--gray-rule);
  border-radius: var(--radius); box-shadow: var(--sh-1); overflow: hidden;
}
.lg-club.is-mine { border-color: #C8A24B; }
.lg-id {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--gray-rule);
  background: linear-gradient(90deg, var(--club-wash, var(--paper-2)) 0%, var(--paper) 70%);
}
.lg-id:hover .lg-name b { text-decoration: underline; }
.lg-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lg-name b { font: 700 15px/1.1 var(--cond); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-name span { font: 400 11px/1 var(--mono); color: var(--gray-text); }
.lg-n { margin-left: auto; display: flex; align-items: baseline; gap: 5px; flex: 0 0 auto; }
.lg-n i { font: 700 30px/1 var(--cond); font-style: normal; }
.lg-n span { font: 400 10.5px/1 var(--mono); color: var(--gray-text); }
.lg-body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 12px; }
.lg-body .bd-pips { margin-bottom: 0; }
.lg-fan { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 8px; }
.lg-sealed { margin: 0; font: 400 11.5px/1.4 var(--mono); color: var(--gray-text); }
.lg-more {
  display: block; padding: 10px 16px 13px; margin-top: auto;
  font: 700 10.5px/1 var(--cond); letter-spacing: .11em; text-transform: uppercase;
  color: var(--fsn-red-ink); text-decoration: none;
}
.lg-more:hover { text-decoration: underline; }

.lg-set { margin-bottom: 30px; }
.lg-set h3 {
  margin: 0 0 14px; font: 700 12px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 8px;
}
.lg-set h3 em { font: 400 11px/1 var(--mono); color: var(--gray-text); font-style: normal; }
.lg-cards {
  display: grid; gap: 30px 14px;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
}
.lg-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lg-holder {
  display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--gray-text);
  font: 500 10.5px/1.2 var(--mono); min-width: 0;
}
.lg-holder .crest { --size: 18px; margin: 0; }
.lg-holder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-holder:hover span { color: var(--ink); text-decoration: underline; }
.lg-fan .bshelf-cap { margin-top: 6px; }
