/* War Room: companion to the 2012ofky draft board. Same token family, cockpit density. */
:root {
  --bg: #0a0d13;
  --bg-raised: #11151d;
  --bg-panel: #141924;
  --bg-hover: #1d2432;
  --line: #242d3d;
  --line-soft: #1a212e;
  --text: #edeff3;
  --text-dim: #96a1b3;
  --text-faint: #5a6678;
  --accent: #f0a03c;
  --accent-2: #e0882a;
  --accent-soft: rgba(240, 160, 60, 0.13);
  --danger: #e05c5c;
  --ok: #3ecf8e;
  --qb: #e3c94f;
  --rb: #43c188;
  --wr: #62a0f5;
  --te: #ee7f7f;
  --k: #ab8df0;
  --dst: #9aa7b5;
  --t1: #3ecf8e;
  --t2: #9fd06a;
  --t3: #e3c94f;
  --t4: #e8a05a;
  --t5: #e05c5c;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(240, 160, 60, 0.08), transparent 60%),
    radial-gradient(1000px 520px at 95% 115%, rgba(85, 140, 235, 0.05), transparent 60%);
}
#app { position: relative; z-index: 1; margin: 0 auto; padding: 0 clamp(18px, 3.5vw, 64px) 40px; }
@media (min-width: 1500px) { body { font-size: 17px; } }

.mono { font-family: var(--font-mono); font-size: 0.92em; }
.dim { color: var(--text-dim); }
button { font-family: inherit; color: inherit; cursor: pointer; }

/* ---------- header ---------- */
header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f5b14a, #e0882a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .sub { color: var(--text-faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; }
.status {
  display: flex;
  align-items: stretch;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.status .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 13px 24px 12px;
  border-left: 1px solid var(--line-soft);
  min-width: 92px;
}
.status .cell:first-child { border-left: none; }
.status .lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  white-space: nowrap;
}
.status .val {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .status { flex-wrap: wrap; width: 100%; }
  .status .cell { flex: 1 1 auto; min-width: 70px; padding: 9px 12px 8px; }
  .status .val { font-size: 20px; max-width: 170px; }
}
.status .cell.clock.live { background: var(--accent-soft); }
.status .cell.clock.live .val { color: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.linkbtn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 11px;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.linkbtn:hover { border-color: var(--accent); color: var(--accent); }
.linkbtn:active { transform: translateY(1px); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab {
  background: none;
  border: none;
  padding: 12px 18px 9px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}
.tab:hover { color: var(--text-dim); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 560px) { .tab { padding: 10px 11px 8px; font-size: 17px; } }

/* ---------- layout ---------- */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 420px);
  gap: clamp(26px, 3.5vw, 60px);
  padding-top: 18px;
}
@media (max-width: 880px) { main { grid-template-columns: 1fr; } }

.sechead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sechead h2, aside h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0;
}
.sechead h2 { font-size: 24px; }

/* ---------- recommendations ---------- */
.top {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, var(--accent-soft), rgba(240, 160, 60, 0.04));
  border: 1px solid rgba(240, 160, 60, 0.35);
  border-radius: 8px;
}
.toprank {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
}
.topline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.topname { font-family: var(--font-display); font-size: clamp(31px, 2.3vw, 42px); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.topmeta { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.why { margin: 10px 0 0; padding-left: 16px; }
.why li { margin: 3px 0; max-width: 62ch; }
.offnote { font-size: 14px; margin-top: 8px; }

.alts { list-style: none; margin: 6px 0 0; padding: 0; }
.alts li { display: flex; gap: 14px; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); }
.altrank { color: var(--text-faint); font-size: 20px; width: 26px; text-align: right; padding-top: 1px; }
.altline { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.pname { font-weight: 600; }
.altline .pname { font-family: var(--font-display); font-size: clamp(21px, 1.6vw, 27px); text-transform: uppercase; letter-spacing: 0.02em; }
.altwhy { font-size: 14px; margin-top: 3px; max-width: 70ch; }
.team { color: var(--text-dim); font-size: 13.5px; }

/* position chips: same hues as the main board */
.pos {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  color: #0a0d13;
}
.pos-qb { background: var(--qb); }
.pos-rb { background: var(--rb); }
.pos-wr { background: var(--wr); }
.pos-te { background: var(--te); }
.pos-k { background: var(--k); }
.pos-dst { background: var(--dst); }

/* offense tier badge */
.off {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid;
  cursor: help;
}
.off-t1 { color: var(--t1); border-color: var(--t1); }
.off-t2 { color: var(--t2); border-color: var(--t2); }
.off-t3 { color: var(--t3); border-color: var(--t3); }
.off-t4 { color: var(--t4); border-color: var(--t4); }
.off-t5 { color: var(--t5); border-color: var(--t5); }

/* ---------- sidebar ---------- */
aside { display: flex; flex-direction: column; gap: 20px; }
.panel { border-top: 2px solid var(--line); padding-top: 10px; }
.panel h3 { font-size: 16px; color: var(--text-dim); margin-bottom: 8px; }
.rosterhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan { margin: 0; font-size: 15px; max-width: 40ch; }
.roster, .gone { list-style: none; margin: 0; padding: 0; }
.roster li, .gone li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.roster .slot { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); width: 40px; }
.roster li.open .dim { color: var(--text-faint); font-style: italic; }
.roster .mono, .gone .mono { margin-left: auto; font-size: 12.5px; color: var(--text-faint); }
.runs { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ---------- depth charts ---------- */
.depth { padding-top: 18px; }
.dcsearch { margin-bottom: 14px; }
#teamSearch {
  width: min(380px, 100%);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
#teamSearch:focus { border-color: var(--accent); }
#teamSearch::placeholder { color: var(--text-faint); }
.dcsearch.nomatch #teamSearch { border-color: var(--danger); }
.nflgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 6px;
  margin-bottom: 22px;
}
.nflbtn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s;
}
.nflbtn .rk { color: var(--text-faint); font-size: 11px; font-weight: 400; }
.nflbtn:hover { border-color: var(--accent); background: var(--bg-hover); }
.nflbtn:active { transform: scale(0.97); }
.nflbtn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.nflbtn.active .rk { color: var(--accent); }
.dchead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dchead h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.dcnote { margin: 7px 0 0; max-width: 80ch; font-size: 14.5px; }
.dccols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 clamp(28px, 4vw, 72px);
  margin-top: 16px;
}
@media (max-width: 760px) { .dccols { grid-template-columns: minmax(0, 1fr); } }
.dcgroup { margin-bottom: 20px; }
.dcgroup h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin: 0 0 2px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 6px;
}
.dclist { list-style: none; margin: 0; padding: 0; }
.dclist li { display: flex; align-items: baseline; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.dclist .slot { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); width: 38px; flex: none; }
.dclist .pname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.dclist li.gone .pname {
  color: var(--text-faint);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: var(--text-faint);
}
.dclist .mono { margin-left: auto; font-size: 12.5px; color: var(--text-faint); flex: none; }
.dclist .drafted { flex: 0 1 auto; min-width: 0; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dclist .drafted.mine { color: var(--accent); }
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid;
  cursor: help;
  flex: none;
}
.tag-up { color: var(--ok); border-color: var(--ok); }
.tag-down { color: var(--danger); border-color: var(--danger); }
.tag-inj { color: var(--t4); border-color: var(--t4); }
.dcfoot { font-size: 13px; margin: 4px 0 0; }

/* ---------- league rosters ---------- */
.lrosters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 16px 22px;
  padding-top: 18px;
}
.rcard {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 15px 11px;
  min-width: 0;
}
.rcard.mine {
  border-color: rgba(240, 160, 60, 0.55);
  background: linear-gradient(180deg, rgba(240, 160, 60, 0.07), var(--bg-panel) 45%);
}
.rchead { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; min-width: 0; }
.rchead h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcslot { color: var(--text-faint); font-size: 12px; flex: none; }
.rchead .dim { margin-left: auto; font-size: 12px; flex: none; }
.you {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.08em;
  flex: none;
}
.rcard .roster li { font-size: 14px; padding: 3px 0; }
.rcard .roster .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.needs { font-size: 12.5px; margin-top: 9px; }

/* ---------- picker, states ---------- */
.picker { max-width: 560px; margin: 8vh auto 0; }
.picker h1 {
  font-family: var(--font-display);
  font-size: 44px;
  text-transform: uppercase;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #f5b14a, #e0882a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
@media (max-width: 560px) { .teams { grid-template-columns: 1fr; } }
.teambtn {
  display: flex;
  gap: 10px;
  align-items: baseline;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.teambtn:hover { border-color: var(--accent); background: var(--bg-hover); }
.teambtn:active { transform: scale(0.98); }
.teambtn .mono { color: var(--text-faint); }

.err {
  background: rgba(224, 92, 92, 0.12);
  border: 1px solid rgba(224, 92, 92, 0.45);
  color: #f0b3b3;
  border-radius: 6px;
  padding: 9px 12px;
  margin-top: 12px;
  font-size: 14.5px;
}
.empty { color: var(--text-dim); padding: 24px 0; }

/* skeletons */
.sk {
  height: 52px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: linear-gradient(100deg, var(--bg-raised) 40%, var(--bg-hover) 50%, var(--bg-raised) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.sk-lg { height: 130px; }
.sk-panel { height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }
