/* Fantasy Quiz League — layered on top of league-shared.css, which supplies the
   brand tokens, header, hero, tables and footer. Everything here is specific to
   the draft pool, the squad builder and the fantasy leaderboard. */

/* league-shared.css only hides specific components, but these pages toggle
   whole sections that are not among them. */
.hidden{ display:none; }

.lede-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.btn{
  display:inline-flex; align-items:center; gap:.5em; font-family:var(--font-display); font-weight:700;
  font-size:.95rem; padding:13px 22px; border-radius:999px; border:2px solid var(--ink);
  background:var(--yellow); color:var(--ink); cursor:pointer; box-shadow:4px 4px 0 var(--ink);
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--ink); }
.btn:active{ transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }
.btn.ghost{ background:var(--white); }
.btn.pink{ background:var(--pink); color:var(--white); }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:4px 4px 0 var(--ink); }
.btn.on-ink{ box-shadow:4px 4px 0 var(--pink); }
.btn.on-ink:hover{ box-shadow:6px 6px 0 var(--pink); }

/* --- Status strip: where the competition currently stands --- */
.status-strip{ background:var(--paper-dim); border-bottom:2px solid var(--ink); padding:18px 0; }
.status-strip .wrap{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.status-pill{
  font-family:var(--font-display); font-weight:700; font-size:.82rem; padding:8px 15px;
  border-radius:999px; border:2px solid var(--ink); background:var(--white);
}
.status-pill.open{ background:var(--teal); }
.status-pill.closed{ background:var(--pink); color:var(--white); }
.status-note{ font-size:.85rem; color:#5B5490; font-weight:600; }

/* --- Step cards explaining the format --- */
.steps{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; }
.step{
  background:var(--white); border:2px solid var(--ink); border-radius:var(--radius-sm);
  padding:20px; box-shadow:4px 4px 0 var(--ink); position:relative;
}
.step b.num{
  display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border-radius:50%; background:var(--ink); color:var(--yellow);
  font-family:var(--font-display); font-size:1rem; margin-bottom:12px;
}
.step h3{ font-size:1rem; margin-bottom:6px; }
.step p{ font-size:.88rem; color:#5B5490; margin:0; }

/* --- Draft pool table extras --- */
table.league th.sortable{ cursor:pointer; user-select:none; }
table.league th.sortable:hover{ color:var(--yellow); }
table.league th.sortable[aria-sort]::after{ content:" \25BE"; }
table.league th.sortable[aria-sort="ascending"]::after{ content:" \25B4"; }
table.league td.price{ font-family:var(--font-display); font-weight:700; }
.price-tag{
  display:inline-block; padding:2px 9px; border-radius:999px; border:2px solid var(--ink);
  background:var(--yellow); font-family:var(--font-display); font-weight:700; font-size:.8rem;
}
.price-tag.mid{ background:var(--paper-dim); }
.price-tag.bargain{ background:var(--teal); }

/* --- Squad builder --- */
.builder{ display:grid; grid-template-columns:1fr 340px; gap:26px; align-items:start; }
@media (max-width:900px){ .builder{ grid-template-columns:1fr; } }

.pool-search{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.pool-search .search-input{ flex:1; min-width:200px; }
.pool-list{
  max-height:520px; overflow-y:auto; background:var(--white); border:2px solid var(--ink);
  border-radius:var(--radius-sm); box-shadow:4px 4px 0 var(--ink);
}
.pool-row{
  display:grid; grid-template-columns:1fr 74px 54px 46px 88px; gap:10px; align-items:center;
  padding:10px 14px; border-bottom:1px solid rgba(21,17,61,.1); font-size:.9rem;
}
.pool-row:last-child{ border-bottom:none; }
.pool-row .nm{ font-weight:600; }
.pool-row .avg{ font-size:.8rem; color:#5B5490; text-align:right; }
.pool-row .wk{ font-size:.72rem; color:#8A85AD; text-align:right; }
.pool-row.picked{ background:rgba(47,230,176,.18); }
.pool-row.unaffordable .nm{ color:#8A85AD; }
.pool-add{
  font-family:var(--font-display); font-weight:700; font-size:.78rem; padding:7px 10px;
  border-radius:999px; border:2px solid var(--ink); background:var(--yellow); color:var(--ink); cursor:pointer;
}
.pool-add[data-state="picked"]{ background:var(--ink); color:var(--yellow); }
.pool-add:disabled{ opacity:.45; cursor:not-allowed; }
@media (max-width:560px){
  .pool-row{ grid-template-columns:1fr 68px 82px; }
  .pool-row .avg, .pool-row .wk{ display:none; }
}

.squad-panel{
  background:var(--ink); color:var(--paper); border:2px solid var(--ink);
  border-radius:var(--radius-sm); box-shadow:4px 4px 0 var(--pink); padding:20px; position:sticky; top:80px;
}
@media (max-width:900px){ .squad-panel{ position:static; } }
.squad-panel h2{ font-size:1.15rem; color:var(--paper); margin-bottom:4px; }
.squad-panel .sub{ font-size:.8rem; color:#C7C1F2; margin-bottom:16px; }
.budget-meter{ height:12px; border-radius:999px; background:var(--ink-soft); border:2px solid var(--ink-line); overflow:hidden; margin:6px 0 4px; }
.budget-meter i{ display:block; height:100%; width:0; background:var(--teal); transition:width .2s ease; }
.budget-meter.over i{ background:var(--pink); }
.budget-figures{ display:flex; justify-content:space-between; font-family:var(--font-display); font-weight:700; font-size:.85rem; }
.budget-figures .left{ color:var(--yellow); }
.budget-figures .left.over{ color:var(--pink); }
.squad-slots{ list-style:none; margin:18px 0 0; padding:0; }
.squad-slots li{
  display:flex; align-items:center; gap:10px; padding:9px 11px; margin-bottom:7px;
  border:2px dashed var(--ink-line); border-radius:8px; font-size:.86rem; color:#9C96C9;
}
.squad-slots li.filled{ border-style:solid; background:var(--ink-soft); color:var(--paper); }
.squad-slots li .slot-no{ font-family:var(--font-display); font-weight:700; color:var(--yellow); width:16px; flex:none; }
.squad-slots li .slot-name{ flex:1; font-weight:600; overflow-wrap:anywhere; }
.squad-slots li .slot-price{ font-family:var(--font-display); font-size:.8rem; color:#C7C1F2; flex:none; }
.slot-drop{
  flex:none; width:24px; height:24px; border-radius:50%; border:2px solid var(--pink);
  background:transparent; color:var(--pink); font-weight:700; line-height:1; cursor:pointer;
}
.slot-drop:hover{ background:var(--pink); color:var(--white); }

/* --- Entry form fields --- */
.entry-form{ margin-top:8px; }
.field-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-bottom:18px; }
.field label{ display:block; font-family:var(--font-display); font-weight:700; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:6px; }
.field input{
  width:100%; padding:12px 14px; border-radius:var(--radius-sm); border:2px solid var(--ink);
  font-family:var(--font-body); font-size:1rem; background:var(--white); color:var(--ink);
}
.field .hint{ font-size:.76rem; color:#5B5490; margin:6px 0 0; }
.notice{
  border:2px solid var(--ink); border-radius:var(--radius-sm); padding:14px 16px;
  font-size:.9rem; font-weight:600; margin:0 0 18px; box-shadow:4px 4px 0 var(--ink);
}
.notice.hidden{ display:none; }
.notice.error{ background:var(--pink); color:var(--white); }
.notice.ok{ background:var(--teal); color:var(--ink); }
.notice.info{ background:var(--paper-dim); color:var(--ink-soft); }

/* --- Leaderboard --- */
.lb-empty{ text-align:center; padding:34px 20px; color:#5B5490; }

/* Standout stories from the latest gameweek, above the table itself. */
.highlight-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(215px,1fr)); gap:14px; margin-bottom:24px; }
.highlight-card{
  background:var(--ink); color:var(--paper); border:2px solid var(--ink);
  border-radius:var(--radius-sm); padding:14px 16px; box-shadow:4px 4px 0 var(--pink);
}
.highlight-card .label{
  display:block; font-family:var(--font-display); font-weight:700; font-size:.68rem;
  letter-spacing:.09em; text-transform:uppercase; color:var(--yellow); margin-bottom:7px;
}
.highlight-card b{ display:block; font-size:1rem; line-height:1.3; overflow-wrap:anywhere; }
.highlight-card .sub{ display:block; font-size:.78rem; color:#C7C1F2; margin-top:5px; }

table.league td.move{ width:54px; }
table.league td.picks .pick{ white-space:nowrap; }
table.league td.picks .pick.best{ font-weight:700; color:var(--ink); }
table.league td.picks .pick-pts{
  font-family:var(--font-display); font-style:normal; font-weight:700; font-size:.72rem;
  color:var(--ink); background:var(--paper-dim); border:1px solid rgba(21,17,61,.14);
  border-radius:999px; padding:1px 6px; margin-left:4px;
}
table.league td.picks .pick.best .pick-pts{ background:var(--yellow); border-color:var(--ink); }
table.league td.squad b{ display:block; }
table.league td.squad span{ font-size:.78rem; color:#5B5490; }
table.league td.total{ font-family:var(--font-display); font-weight:700; font-size:1.05rem; }
table.league td.picks{ white-space:normal; font-size:.78rem; color:#5B5490; text-align:left; min-width:240px; }
.medal{ font-family:var(--font-display); font-weight:700; }
table.league tbody tr.top1{ background:rgba(255,227,71,.3); }
table.league tbody tr.top2, table.league tbody tr.top3{ background:rgba(255,227,71,.14); }

.own-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.own-card{
  background:var(--white); border:2px solid var(--ink); border-radius:var(--radius-sm);
  padding:12px 14px; box-shadow:4px 4px 0 var(--ink); display:flex; justify-content:space-between; gap:10px; align-items:center;
}
.own-card b{ font-size:.9rem; overflow-wrap:anywhere; }
.own-card span{ font-family:var(--font-display); font-weight:700; color:var(--pink); flex:none; }

/* --- Rules --- */
.rules-body{ max-width:760px; }
.rules-body h3{ font-size:1.05rem; margin:26px 0 8px; }
.rules-body ul{ padding-left:20px; color:#3A3470; }
.rules-body li{ margin-bottom:7px; line-height:1.6; }
.rules-body .callout{
  background:var(--yellow); border:2px solid var(--ink); border-radius:var(--radius-sm);
  padding:16px 18px; box-shadow:4px 4px 0 var(--ink); margin:20px 0;
}
.rules-body .callout p{ margin:0; font-weight:600; }
.merge-list{ font-size:.85rem; color:#5B5490; }
.merge-list li{ margin-bottom:4px; }
