/* Fantasy draft board (src/fantasy_view.js) — the club's dark, pixel-edged, built for a phone held sideways (844x390) */
.fd { --fd-bg: var(--win, #0f1e38); --fd-2: var(--win-2, #172a4b); --fd-3: var(--win-3, #1f3761);
  color: #eef2f9; font: 500 12px/1.25 'Rubik', system-ui, sans-serif; display: flex; flex-direction: column; gap: 3px;
  height: calc(100dvh - var(--fd-off, 62px)); min-height: 280px; padding: 2px; box-sizing: border-box; }
.fd * { box-sizing: border-box; }
.fd-wait { margin: 30px auto; text-align: center; display: grid; gap: 6px; background: var(--fd-bg); padding: 14px 18px; }

/* ---- the banner: the club on the clock -------------------------------- */
.fd-banner { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 8px; min-height: 52px; overflow: hidden;
  background: linear-gradient(100deg, var(--c, #1e63d6) 0%, color-mix(in srgb, var(--c, #1e63d6) 55%, #000) 55%, #070b14 100%);
  border-bottom: 3px solid var(--c2, #ffd23f); box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); flex: none; }
.fd-banner::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 6px); }
.fd-banner.me { animation: fd-glow 1.4s ease-in-out infinite alternate; }
@keyframes fd-glow { from { box-shadow: inset 0 0 0 2px #ffd23f; } to { box-shadow: inset 0 0 0 2px rgba(255,210,63,.2); } }
.fd-bl { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; z-index: 1; }
.fd-bl i { display: block; font: 800 9px/1 'Rubik', system-ui; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #ffd23f; }
.fd-bl b { display: block; font-family: var(--disp, 'Rubik'); font-weight: 400; font-size: 20px; line-height: 1.05; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 2px 2px 0 rgba(0,0,0,.55); }
.fd-bl b small { font: 700 9px 'Rubik'; background: #ffd23f; color: #0d1b2a; padding: 1px 4px; vertical-align: middle; }
.fd-bl span { display: block; font-size: 10.5px; opacity: .85; }
.fd-bl span u { text-decoration: none; font-weight: 800; color: #ffd23f; letter-spacing: .08em; }
.fd-bc { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; z-index: 1; }
.fd-clock { font: 800 22px/1 'Rubik', system-ui; font-style: normal; color: #fff; text-shadow: 2px 2px 0 #000; }
.fd-clock:empty { display: none; }
.fd-clock.low { color: #ff5a6e; animation: fd-blink .5s steps(2) infinite; }
@keyframes fd-blink { 50% { opacity: .35; } }
.fd-you { font: 800 10px/1 'Rubik'; font-style: normal; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); padding: 3px 6px; white-space: nowrap; }
.fd-you b { color: #ffd23f; font-size: 13px; }
.fd-you.now { background: #ffd23f; color: #0d1b2a; border-color: #ffd23f; }
.fd-ctl { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: flex-end; z-index: 1; max-width: 340px; }
.fd-note { font-size: 11px; opacity: .85; }
.fd-lg { width: 22px; height: 22px; object-fit: contain; display: inline-block; flex: none; image-rendering: pixelated; }
.fd-lg.sm { width: 14px; height: 14px; }
.fd-lg.big { width: 42px; height: 42px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.6)); }

/* ---- buttons, chips ---------------------------------------------------- */
.fd-b { background: var(--fd-3); color: #fff; border: 2px solid rgba(255,255,255,.22); padding: 4px 7px; font: 800 10.5px/1 'Rubik', system-ui;
  cursor: pointer; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.fd-b.gold { background: #ffd23f; color: #0d1b2a; border-color: #fff3b0; }
.fd-b:disabled { opacity: .4; cursor: default; }
.fd-b.xs { padding: 3px 6px; font-size: 9.5px; }
.fd-b:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.fd-seg { display: inline-flex; border: 2px solid rgba(255,255,255,.22); box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.fd-seg button { background: var(--fd-2); color: #cdd6e6; border: 0; padding: 4px 6px; font: 800 10px/1 'Rubik', system-ui; }
.fd-seg button.on { background: #ffd23f; color: #0d1b2a; }
.fd-chip { background: var(--fd-2); color: #cdd6e6; border: 1px solid rgba(255,255,255,.12); padding: 3px 7px; font: 700 10px/1 'Rubik', system-ui; flex: none; cursor: pointer; }
.fd-chip.on { background: var(--tm, #3ea6ff); color: var(--on-tm, #fff); border-color: #fff; }
.fd-chip.add { border-style: dashed; }
.fd-chip i { font-style: normal; color: #ff8a9a; margin-left: 3px; }
.fd-msg { margin: 0; background: #5a1420; color: #fff; padding: 3px 8px; font-size: 11px; }

/* ---- tabs --------------------------------------------------------------- */
.fd-tabs { display: flex; align-items: stretch; gap: 2px; flex: none; border-bottom: 2px solid var(--tm, #3ea6ff); }
.fd-tabs button { background: var(--fd-bg); color: #9fb0c8; border: 0; padding: 5px 12px; font-family: var(--disp, 'Rubik'); font-size: 14px; text-transform: uppercase; cursor: pointer; }
.fd-tabs button.on { background: var(--tm, #3ea6ff); color: var(--on-tm, #fff); }
.fd-tabx { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 10.5px; opacity: .9; padding-right: 4px; }
.fd-tabx b { color: #6fe39a; }
.fd-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---- BOARD -------------------------------------------------------------- */
.fd-board { flex: 1; min-height: 0; display: grid; grid-template-rows: auto auto 1fr; gap: 3px; }
.fd-strip { display: flex; gap: 4px; overflow-x: auto; padding: 3px 2px; scrollbar-width: none; background: var(--fd-bg); }
.fd-pc { flex: none; width: 104px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, #0a1020) 0%, #0a1020 70%);
  border: 2px solid color-mix(in srgb, var(--c) 70%, #fff 10%); box-shadow: 2px 2px 0 rgba(0,0,0,.6); padding: 3px 4px; position: relative; }
.fd-pc.me { border-color: #ffd23f; }
.fd-pc.in { animation: fd-in .55s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes fd-in { from { transform: translateX(-40px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.fd-pch { display: flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; }
.fd-pch i { font-style: normal; opacity: .7; }
.fd-pcf { display: flex; align-items: flex-end; justify-content: space-between; margin: 2px 0; }
.fd-pcf .fd-fc { width: 40px; height: 40px; image-rendering: pixelated; background: rgba(0,0,0,.25); }
.fd-pcn { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-pcn b { color: #7fd3ff; }
.fd-pcs { font-size: 9px; opacity: .75; }
.fd-pcs em { font-style: normal; color: #ffd23f; font-weight: 800; }
.fd-empty { padding: 18px; opacity: .7; }
.fd-ovr { display: inline-block; min-width: 24px; text-align: center; font: 800 12px/1 'Rubik', system-ui; padding: 3px 3px; color: #0d1b2a; box-shadow: 1px 1px 0 rgba(0,0,0,.6); }
.fd-ovr.t4 { background: linear-gradient(135deg, #ffe680, #d9a400); }
.fd-ovr.t3 { background: #9ae6b4; }
.fd-ovr.t2 { background: #b8c7dd; }
.fd-ovr.t1 { background: #6b7a90; color: #fff; }
.fd-upn { display: flex; align-items: center; gap: 3px; overflow-x: auto; scrollbar-width: none; background: var(--fd-bg); padding: 2px 4px; }
.fd-upn > i { font: 800 9px 'Rubik'; font-style: normal; text-transform: uppercase; letter-spacing: .1em; opacity: .75; margin-right: 3px; }
.fd-upn span { flex: none; display: flex; align-items: center; gap: 2px; padding: 2px 4px; border-left: 3px solid var(--c); background: var(--fd-2); font-size: 10px; }
.fd-upn span small { opacity: .6; font-size: 8.5px; }
.fd-upn span.me { background: #ffd23f; color: #0d1b2a; }
.fd-best { background: var(--fd-bg); min-height: 0; display: flex; flex-direction: column; }
.fd-best h3, .fd-dp h4 { margin: 0; padding: 3px 6px; font-family: var(--disp, 'Rubik'); font-weight: 400; font-size: 13px; text-transform: uppercase; }
.fd-best h3 small { font: 500 9.5px 'Rubik'; opacity: .7; text-transform: none; margin-left: 4px; }
.fd-bestl { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 0 3px 3px; align-content: start; }
.fd-bp { display: flex; align-items: center; gap: 5px; background: var(--fd-2); padding: 2px 4px; border-left: 3px solid var(--tm, #3ea6ff); }
.fd-bp .fd-fc { width: 32px; height: 32px; image-rendering: pixelated; }
.fd-bp > div { flex: 1; min-width: 0; }
.fd-bp b:not(.fd-ovr) { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-bp span { font-size: 9.5px; opacity: .75; }

/* ---- POOL --------------------------------------------------------------- */
.fd-poolw { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.fd-filt { display: flex; gap: 3px; align-items: center; flex: none; }
.fd .fd-q { height: 24px; width: 130px; flex: none; background: var(--fd-2); color: #fff; border: 2px solid rgba(255,255,255,.15); border-radius: 0; padding: 2px 6px; font: 500 11px 'Rubik', system-ui; }
.fd-fbtn b { display: inline-block; min-width: 12px; color: #ffd23f; }
.fd-fbtn.gold b { color: #0d1b2a; }
.fd-chips { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.fd-listw { flex: 1; min-height: 0; position: relative; display: flex; }
.fd-list { flex: 1; overflow: auto; background: var(--fd-bg); }
.fd-t { width: 100%; border-collapse: collapse; font-size: 11px; }
.fd-t th { position: sticky; top: 0; z-index: 1; background: var(--fd-3); text-align: left; font: 800 9.5px 'Rubik'; padding: 4px 4px; text-transform: uppercase; cursor: pointer; white-space: nowrap; user-select: none; }
.fd-t th.on { color: #ffd23f; }
.fd-t td { padding: 2px 4px; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.fd-t tbody tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.fd-t td.nm { max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.fd-t td.pos { font-weight: 800; color: #7fd3ff; }
.fd-t td.dev { font-weight: 800; }
.fd-t td.dev.d3 { color: #ff5a6e; } .fd-t td.dev.d2 { color: #ffd23f; } .fd-t td.dev.d1 { color: #7fd3ff; }
.fd-t td.key small, .fd-t td.fit { opacity: .6; font-size: 9px; }
.fd-t td.arch { max-width: 96px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; opacity: .85; }
.fd-t td.from { opacity: .75; }
.fd-t tr.no td { opacity: .45; }
.fd-t tr.no td:last-child { opacity: 1; }
.fd-bdg { font-style: normal; color: #ffd23f; font-size: 9px; }
.fd-more { margin: 4px; opacity: .6; font-size: 10.5px; }
.fd-drawer { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 330px; max-width: 92%; overflow-y: auto; background: color-mix(in srgb, var(--fd-bg) 92%, #000);
  border-right: 3px solid var(--tm, #3ea6ff); box-shadow: 6px 0 14px rgba(0,0,0,.6); padding: 0 6px 8px; animation: fd-dr .18s ease-out; }
@keyframes fd-dr { from { transform: translateX(-30px); opacity: 0; } }
.fd-drh { position: sticky; top: 0; z-index: 1; display: flex; gap: 4px; align-items: center; padding: 4px 0; background: inherit; }
.fd-drh b { flex: 1; font-family: var(--disp, 'Rubik'); font-weight: 400; font-size: 15px; text-transform: uppercase; }
.fd-drs { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: grid; gap: 4px; }
.fd-drs h4 { margin: 0; font: 800 9px 'Rubik'; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.fd-pre { display: flex; flex-wrap: wrap; gap: 3px; }
.fd-tg { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.fd-tg input { accent-color: #ffd23f; width: 16px; height: 16px; }
.fd-rg { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.fd-rg span, .fd-at span { font-size: 10.5px; display: flex; justify-content: space-between; }
.fd-rg b, .fd-at b { color: #ffd23f; }
.fd-drawer input[type=range] { width: 100%; height: 16px; margin: 0; accent-color: #ffd23f; }
.fd-2c { grid-template-columns: 1fr 1fr; }
.fd-2c label { display: grid; gap: 2px; font-size: 10px; opacity: .95; }
.fd-drawer select { background: var(--fd-2); color: #fff; border: 1px solid rgba(255,255,255,.2); font: 600 11px 'Rubik'; height: 24px; }
.fd-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }

/* ---- MY ROSTER ---------------------------------------------------------- */
.fd-ros { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px 1fr; gap: 3px; }
.fd-rside { background: var(--fd-bg); padding: 4px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.fd-capbar { position: relative; display: flex; flex-direction: column; gap: 1px; font-size: 10.5px; padding-bottom: 7px; }
.fd-capbar b { color: #6fe39a; }
.fd-capbar b.low { color: #ff5a6e; }
.fd-capbar i { position: absolute; left: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #6fe39a, #ffd23f); }
.fd-capbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.1); z-index: -1; }
.fd-rsub { display: grid; gap: 2px; }
.fd-rsub button { background: var(--fd-2); color: #cdd6e6; border: 0; border-left: 3px solid transparent; text-align: left; padding: 4px 6px; font: 700 11px 'Rubik'; cursor: pointer; }
.fd-rsub button.on { border-color: #ffd23f; background: var(--fd-3); color: #fff; }
.fd-needs { display: flex; flex-wrap: wrap; gap: 2px; }
.fd-needs span { font: 700 9.5px 'Rubik'; padding: 2px 4px; background: var(--fd-2); border-left: 3px solid #6fe39a; }
.fd-needs span.hole { border-color: #ff5a6e; background: #3a1220; }
.fd-needs span.short { border-color: #ffb347; }
.fd-rmain { min-height: 0; overflow: auto; background: var(--fd-bg); }
.fd-field { position: relative; height: 100%; min-height: 200px;
  background: repeating-linear-gradient(0deg, #1d5a2c 0 24px, #1a5228 24px 48px); border: 2px solid rgba(255,255,255,.25); }
.fd-field.off::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(255,255,255,.4); }
.fd-field.def::before { content: ''; position: absolute; left: 0; right: 0; top: 66%; border-top: 2px dashed rgba(255,255,255,.4); }
.fd-slot { position: absolute; transform: translate(-50%, -50%); width: 76px; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 3px;
  background: rgba(7,11,20,.88); border: 2px solid var(--tm, #3ea6ff); padding: 2px; box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.fd-slot .fd-fc { grid-row: span 2; width: 28px; height: 28px; image-rendering: pixelated; }
.fd-slot b { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-slot span { display: flex; align-items: center; gap: 2px; }
.fd-slot span .fd-ovr { font-size: 9.5px; min-width: 18px; padding: 1px 2px; }
.fd-slot small { font-size: 8px; opacity: .75; white-space: nowrap; }
.fd-slot.need { display: block; text-align: center; border: 2px dashed #ff5a6e; background: rgba(58,18,32,.9); animation: fd-blink 1.6s steps(2) infinite; width: 64px; }
.fd-slot.need i { display: block; font-style: normal; font-size: 8.5px; opacity: .8; }
.fd-slot.need b { color: #ff8a9a; }
.fd-depth { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px; padding: 3px; }
.fd-dp { background: var(--fd-2); border-top: 3px solid #6fe39a; }
.fd-dp.hole { border-color: #ff5a6e; } .fd-dp.short { border-color: #ffb347; } .fd-dp.ok { border-color: #7fd3ff; }
.fd-dp h4 { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.fd-dp h4 span { font: 600 9px 'Rubik'; opacity: .7; text-transform: none; }
.fd-dp > div { display: flex; align-items: center; gap: 4px; padding: 1px 5px; font-size: 10.5px; }
.fd-dp > div b:not(.fd-ovr) { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-dp > div .fd-ovr { font-size: 9.5px; min-width: 20px; padding: 1px 2px; }
.fd-dp > div small { opacity: .6; }
.fd-dp .none { opacity: .55; font-style: italic; padding: 3px 5px; }
.fd-done { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; }

@media (max-width: 700px) {
  .fd-ros { grid-template-columns: 1fr; }
  .fd-bestl { grid-template-columns: 1fr; }
}
/* while the draft holds the league the week cannot be moved on */
body.fd-on #hdr .hd-next, body.fd-on #hdr .hd-sim, body.fd-on #hdr .lg-force { display: none !important; }
