/* Why I Win DFS: stadium-at-night look, same palette as the live landing page. Look only: no behavior here. */
:root {
  --night: #0a0a0c; --panel: #141318; --panel-2: #1a181f; --edge: #2a272e; --edge-hi: #3a3640;
  --text: #f4f2ee; --muted: #bdb7af;
  --red: #e3262f; --red-deep: #8f1219; --red-glow: rgba(227, 38, 47, 0.42);
  --gold: #f2c14e; --gold-soft: rgba(242, 193, 78, 0.16);
  --silver-hi: #ffffff; --silver-mid: #c9ced6; --silver-lo: #7e848d;
  --good: #57d68d; --bad: #ff7a7a;
  --row-lock: rgba(87, 214, 141, 0.10); --row-out: rgba(255, 122, 122, 0.08);
  /* Saira is the landing page's font; Bahnschrift (built into Windows) is the closest sporty condensed fallback */
  --font: "Saira", "Bahnschrift", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Bahnschrift", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  background-color: var(--night);
  background-image:
    radial-gradient(60rem 36rem at 82% -6%, rgba(227, 38, 47, 0.20), transparent 70%),
    radial-gradient(40rem 26rem at 6% -4%, rgba(242, 193, 78, 0.07), transparent 70%);
  background-repeat: no-repeat; overflow-x: clip;
}
body.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- top bar */
.top { border-bottom: 1px solid var(--edge); background: rgba(10, 10, 12, 0.72); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; letter-spacing: .01em;
  text-transform: uppercase; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--red), 0 0 14px var(--red-glow); flex: 0 0 auto; }
.brand > span:first-of-type { white-space: nowrap; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--gold); border: 1px solid rgba(242,193,78,.55);
  background: var(--gold-soft); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.who { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; min-width: 0; }
.who #user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- hero: slate + artwork (artwork shown whole) */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding: 24px 0 6px; }
.hero-text { min-width: 0; }
.hero-art img { width: 220px; height: 220px; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 3px rgba(227,38,47,.55), 0 18px 46px rgba(227,38,47,.28); }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 0;
  font-style: italic; font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.steps li { color: var(--silver-lo); padding-bottom: 3px; border-bottom: 3px solid var(--edge-hi); }
.steps li.on { color: var(--text); border-bottom-color: var(--red); }
.steps li:last-child.on { border-bottom-color: var(--gold); }
.steps small { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-left: 4px;
  vertical-align: middle; }
.eyebrow { margin: 0 0 4px; color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 6px; font-weight: 900; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -.005em;
  text-wrap: balance; color: var(--silver-mid);
  background: linear-gradient(180deg, var(--silver-hi) 0%, #e9ecef 38%, var(--silver-lo) 54%, #dfe3e8 66%, var(--silver-hi) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 16px rgba(227, 38, 47, 0.30)); }
h2 { margin: 0 0 14px; font-size: 19px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; display: flex;
  align-items: center; gap: 10px; }
h2::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--red), var(--red-deep));
  box-shadow: 0 0 10px var(--red-glow); }
.note { color: var(--gold); margin: 4px 0; }
details { margin-top: 6px; color: var(--muted); }
details summary { cursor: pointer; }

/* ---------------------------------------------------------------- panels */
.panel { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel) 120px); border: 1px solid var(--edge);
  border-radius: 14px; padding: 18px; margin: 18px 0; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.panel::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 25%, var(--gold) 75%, transparent); opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); align-content: start; }
.hint { font-size: 12px; font-weight: 500; color: var(--gold); line-height: 1.35; }
select, input { font: inherit; font-size: 14px; color: var(--text); background: #0f0e12; border: 1px solid var(--edge-hi);
  border-radius: 9px; padding: 7px 9px; min-width: 0; }
select:hover, input:hover { border-color: #55505c; }
select:focus, input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(242,193,78,.18); }
input.cell { width: 64px; text-align: right; padding: 3px 6px; font-family: var(--font-num); }
input.cell.edited { border-color: var(--gold); color: var(--gold); }
select.cell { padding: 3px 4px; }

/* ---------------------------------------------------------------- buttons */
.btn { font: inherit; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; border: 0; border-radius: 10px;
  padding: 11px 20px; cursor: pointer; color: #fff; text-decoration: none; display: inline-block;
  background: linear-gradient(180deg, #f0343d, var(--red) 55%, #b9151d);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 24px var(--red-glow); }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-ghost { font: inherit; font-weight: 700; border: 1px solid var(--edge-hi); background: rgba(255,255,255,.02); color: var(--text);
  border-radius: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn-ghost:hover { border-color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.build-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--edge); }
.build-row .btn { font-size: 17px; padding: 13px 28px; }

/* ---------------------------------------------------------------- players */
.row-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.row-head h2 { margin-bottom: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.panel > .muted.small { margin: 8px 0 10px; }
.pos-tabs { display: flex; gap: 6px; margin: 4px 0 12px; overflow-x: auto; padding-bottom: 2px; }
.pos-tabs button { font: inherit; font-weight: 900; font-size: 14px; letter-spacing: .03em; min-width: 58px; padding: 8px 14px;
  border-radius: 10px; border: 1px solid var(--edge-hi); background: #0f0e12; color: var(--text); cursor: pointer; flex: 0 0 auto; }
.pos-tabs button:hover { border-color: var(--muted); }
.pos-tabs button.on { background: linear-gradient(180deg, #f0343d, var(--red) 55%, #b9151d); border-color: var(--red); color: #fff;
  box-shadow: 0 6px 16px var(--red-glow); }
.confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; padding: 10px 12px;
  border: 1px solid rgba(255,122,122,.6); background: rgba(255,122,122,.1); border-radius: 10px; }
.table-wrap { overflow-x: auto; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--edge); white-space: nowrap; }
th { color: var(--muted); font-weight: 800; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  position: sticky; top: 0; background: var(--panel); }
tbody tr:hover { background: rgba(255,255,255,.025); }
td:first-child { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
tr.locked { background: var(--row-lock); }
tr.out { background: var(--row-out); color: var(--muted); }
.lo { display: inline-flex; gap: 4px; }
.lo button { font: inherit; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--edge-hi); background: transparent; color: var(--muted); }
.lo button:hover { border-color: var(--muted); color: var(--text); }
.lo button.on-lock { background: rgba(87,214,141,.18); border-color: var(--good); color: var(--good); }
.lo button.on-out { background: rgba(255,122,122,.15); border-color: var(--bad); color: var(--bad); }

/* ---------------------------------------------------------------- build progress, messages, lineups */
.progress { height: 8px; background: #0f0e12; border-radius: 999px; overflow: hidden; margin: 14px 0; border: 1px solid var(--edge); }
.bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .3s;
  box-shadow: 0 0 12px var(--red-glow); }
.msg { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(87,214,141,.5); background: rgba(87,214,141,.1); }
.msg.is-error { border-color: rgba(255,122,122,.6); background: rgba(255,122,122,.1); }
.msg.is-info { border-color: var(--edge); background: transparent; }
.lineup-names { white-space: normal; min-width: 420px; }
.lineup-names span { display: inline-block; margin-right: 10px; }
.lineup-names b { color: var(--gold); font-weight: 800; margin-right: 3px; font-size: 12px; }
#lineups td:first-child { color: var(--muted); font-family: var(--font-num); }

/* ---------------------------------------------------------------- sign-in */
.login { width: 100%; max-width: 400px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--edge);
  border-radius: 16px; padding: 24px; box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(227,38,47,.18); }
.login-art img { width: 132px; height: 132px; margin: 0 auto 12px; border-radius: 16px;
  box-shadow: 0 0 0 3px rgba(227,38,47,.55), 0 12px 30px rgba(227,38,47,.28); }
.login .wordmark { text-align: center; font-size: 30px; text-transform: uppercase; margin-bottom: 4px; }
.tagline { text-align: center; margin: 0 0 10px; font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.tagline span { padding-bottom: 2px; border-bottom: 3px solid var(--red); margin: 0 4px; }
.tagline span:last-child { border-bottom-color: var(--gold); }
.login > .muted { text-align: center; }
.login form { display: grid; gap: 8px; margin-top: 14px; }
.login label { font-size: 13px; font-weight: 700; color: var(--muted); }
.login .btn { margin-top: 10px; }

footer.foot { padding: 20px 16px 40px; border-top: 1px solid var(--edge); margin-top: 8px; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
  .hero-art { order: -1; }
  .hero-art img { width: 120px; height: 120px; border-radius: 14px; }
  .steps { font-size: 17px; }
  .brand > span:first-of-type { font-size: 15px; }
  .who #user { display: none; }
  .panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* ---------------------------------------------------------------- Sim It */
.pay { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
textarea { font: inherit; font-size: 14px; color: var(--text); background: #0f0e12; border: 1px solid var(--edge-hi);
  border-radius: 9px; padding: 8px 10px; width: 100%; resize: vertical; min-height: 110px; font-family: var(--font-num); }
textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(242,193,78,.18); }
#sim-src { max-width: 60%; text-align: right; }
@media (max-width: 700px) { #sim-src { max-width: 100%; text-align: left; } }

/* ---------------------------------------------------------------- tabs + admin */
nav.steps a, nav.steps .soon-tab { color: var(--silver-lo); text-decoration: none; padding-bottom: 3px;
  border-bottom: 3px solid var(--edge-hi); }
nav.steps a:hover { color: var(--text); }
nav.steps a.on { color: var(--text); border-bottom-color: var(--red); }
nav.steps .soon-tab { cursor: default; }
.sim-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.contest-pick select { width: 100%; }
#next-sim { font-size: 16px; }
.admin-head { padding: 22px 0 4px; }
@media (max-width: 700px) { .sim-grid { grid-template-columns: 1fr; } }
