/* ==========================================================================
   cfb-fantasy-styles.css
   GRIDIRON MANAGER — college football fantasy

   Design language: Saturday night under the lights.
   Charcoal-green stadium dark, mowed-turf field, chalk-white type,
   goalpost-gold accents and pennant-red highlights. Headings use a condensed
   "varsity scoreboard" stack; numbers are always tabular so readouts line up.
   ========================================================================== */

:root {
  /* Stadium surfaces */
  --bg: #0A0F0C;
  --bg-grad-top: #0E1611;
  --surface: #121A15;
  --surface-2: #19241D;
  --surface-3: #223026;
  --line: #2C3C33;
  --line-soft: #202D25;

  /* Chalk + ink */
  --chalk: #F2F6F1;
  --chalk-dim: #A3B2A7;
  --chalk-faint: #6E7F74;

  /* Accents */
  --gold: #F2B705;          /* goalposts, scoreboard digits, primary action */
  --gold-soft: #FFD34E;
  --pennant: #D7263D;       /* pennant red, warnings, price drops */
  --pennant-soft: #FF6B72;
  --grass: #3E9E52;         /* positive movement */
  --sky: #4FA3D9;           /* links, secondary accent */
  --pylon: #FF7A1A;         /* orange pylon, captain armband */
  --slate: #7C8F84;

  /* Turf */
  --turf-a: #1C4A2C;
  --turf-b: #174026;
  --turf-line: rgba(255, 255, 255, .17);
  --endzone: #123521;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .55);

  /* Fixture difficulty ramp */
  --fdr-1: #2E9E5B;
  --fdr-2: #7CB342;
  --fdr-3: #8A968E;
  --fdr-4: #E07B18;
  --fdr-5: #C42B36;

  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-varsity: 'Oswald', 'Bebas Neue', 'Haettenschweiler', 'Arial Narrow Bold',
    'Arial Narrow', 'Franklin Gothic Medium', Impact, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1100px 480px at 50% -160px, rgba(242, 183, 5, .07), transparent 70%),
    var(--bg);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sky); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-varsity);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.stat-value, .kv-value, td.num, th.num, .tabular { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1260px; margin: 0 auto; padding: 0 20px 40px; }

/* ------------------------------------------------------------- header */
/* Header + tabs stick together as one block so a wrapping header can never
   overlap the nav. */
.stickytop { position: sticky; top: 0; z-index: 40; }

.topbar {
  background: linear-gradient(180deg, var(--bg-grad-top) 0%, rgba(10, 15, 12, .96) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { min-width: 0; }
.brand-title {
  font-family: var(--font-varsity);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-title span { color: var(--gold); }
.brand-sub {
  font-size: 10px;
  color: var(--chalk-faint);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-top: 3px;
}

/* Scoreboard readouts in the header */
.topstats { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }

.stat {
  background: linear-gradient(180deg, #101A13 0%, #0C130F 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  min-width: 88px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--chalk-faint);
}
.stat-value {
  font-family: var(--font-varsity);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: .03em;
  color: var(--gold);
}
.stat-value.plain { color: var(--chalk); }
.stat-value.pos { color: var(--grass); }
.stat-value.neg { color: var(--pennant-soft); }
.stat.accent { border-color: rgba(242, 183, 5, .5); }

/* ---------------------------------------------------------------- nav */
.tabs {
  background: rgba(10, 15, 12, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(242, 183, 5, .16);
  backdrop-filter: blur(8px);
}
.tabs-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}
.tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 11px 15px;
  color: var(--chalk-dim);
  font-family: var(--font-varsity);
  font-size: 15px;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tab:hover { color: var(--chalk); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* -------------------------------------------------------------- cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 18px;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 17px; letter-spacing: .06em; }
.card-head h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 15px;
  background: var(--gold);
  margin-right: 9px;
  vertical-align: -2px;
  border-radius: 1px;
}
.card-head .spacer { margin-left: auto; }
.muted { color: var(--chalk-dim); font-size: 13px; }
.faint { color: var(--chalk-faint); font-size: 12px; }

.btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--chalk);
  border-radius: 7px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover:not(:disabled) { background: var(--surface-3); border-color: var(--slate); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #17110A;
  font-family: var(--font-varsity);
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 18px;
}
.btn.primary:hover:not(:disabled) { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn.danger { background: rgba(215, 38, 61, .16); border-color: rgba(215, 38, 61, .5); color: var(--pennant-soft); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.pill.gold { background: rgba(242, 183, 5, .16); border-color: rgba(242, 183, 5, .45); color: var(--gold-soft); }
.pill.grass { background: rgba(62, 158, 82, .16); border-color: rgba(62, 158, 82, .45); color: #79D18C; }
.pill.pennant { background: rgba(215, 38, 61, .16); border-color: rgba(215, 38, 61, .45); color: var(--pennant-soft); }
.pill.sky { background: rgba(79, 163, 217, .16); border-color: rgba(79, 163, 217, .45); color: #8FCBEE; }

.banner {
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  border-left: 3px solid;
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.banner.warn { background: rgba(215, 38, 61, .1); border-left-color: var(--pennant); color: #FFB3B8; }
.banner.info { background: rgba(79, 163, 217, .09); border-left-color: var(--sky); color: #A8D6F0; }
.banner.ok { background: rgba(62, 158, 82, .1); border-left-color: var(--grass); color: #9FDCAE; }
.banner.gold { background: rgba(242, 183, 5, .09); border-left-color: var(--gold); color: #F5D77A; }
.banner ul { margin: 6px 0 0; padding-left: 18px; }

/* -------------------------------------------------------------- field */
.field {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 26px 46px 20px;
  border: 1px solid #27543A;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--turf-a) 0 7.5%, var(--turf-b) 7.5% 15%);
}

/* Chalked yard lines every 15% of the field width. */
.field-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 calc(15% - 2px),
    var(--turf-line) calc(15% - 2px) 15%);
  pointer-events: none;
}

/* End zones + goal lines */
.field-endzones { position: absolute; inset: 0; pointer-events: none; }
.field-endzones::before,
.field-endzones::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  background: var(--endzone);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.field-endzones::before { left: 0; }
.field-endzones::after { right: 0; }

.field-mark {
  position: absolute;
  top: 50%;
  font-family: var(--font-varsity);
  font-size: 13px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .32);
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.field-mark.left { left: 10px; transform: translateY(-50%) rotate(180deg); }
.field-mark.right { right: 10px; }

.field-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
}
.field-row:last-child { margin-bottom: 0; }

.slot-label {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-varsity);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .48);
  margin-bottom: 5px;
}

/* --------------------------------------------------------- player pod */
.pod {
  width: 110px;
  background: linear-gradient(180deg, rgba(8, 13, 10, .8) 0%, rgba(8, 13, 10, .93) 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 6px 4px 0;
  text-align: center;
  cursor: pointer;
  transition: transform .12s, border-color .12s, box-shadow .12s;
  position: relative;
}
.pod:hover { transform: translateY(-3px); border-color: var(--gold); }
.pod.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 183, 5, .45); }
.pod.dnp { opacity: .5; }

/* Empty roster slot */
.pod.empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(8, 13, 10, .5);
}
.pod.empty:hover { border-color: var(--gold); background: rgba(242, 183, 5, .1); }
.pod-plus {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-varsity);
  font-size: 30px;
  line-height: 1;
  color: rgba(255, 255, 255, .45);
}
.pod.empty:hover .pod-plus { color: var(--gold); }

/* Sell-back / swap controls on a squad card */
.pod-tools {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  gap: 3px;
  z-index: 3;
}
.pod-tool {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16201A;
  border: 1px solid var(--line);
  color: var(--chalk-dim);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pod-tool.remove { font-size: 15px; }
.pod-tool.swap:hover { background: var(--gold); border-color: var(--gold); color: #17110A; }
.pod-tool.remove:hover { background: var(--pennant); border-color: var(--pennant); color: #fff; }

/* Swap picker states */
.pod.swap-source {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(242, 183, 5, .5);
}
.pod.swap-target {
  border: 2px dashed var(--gold);
  animation: swap-pulse 1.4s ease-in-out infinite;
}
.pod.swap-target:hover { background: rgba(242, 183, 5, .16); }
.pod.swap-target .pod-plus { color: var(--gold); }

@keyframes swap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 183, 5, .35); }
  50% { box-shadow: 0 0 0 5px rgba(242, 183, 5, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pod.swap-target { animation: none; }
}

.trow-empty {
  width: 36px;
  height: 31px;
  flex: none;
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-varsity);
  font-size: 19px;
  color: var(--chalk-faint);
}

.pod .kit { width: 56px; height: 47px; display: block; margin: 0 auto; }
.pod-name {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 3px;
}
.pod-meta { font-size: 10px; color: rgba(255, 255, 255, .58); padding-bottom: 3px; }
.pod-fix {
  font-family: var(--font-varsity);
  font-size: 11px;
  letter-spacing: .04em;
  border-radius: 0 0 8px 8px;
  padding: 2px 3px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .55);
}
.pod-badge {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--pylon);
  color: #16100A;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.pod-badge.vice { background: var(--slate); color: #0D1410; }
.pod-pts {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 26px;
  height: 21px;
  padding: 0 5px;
  border-radius: 4px;
  background: #0B100D;
  color: var(--gold);
  font-family: var(--font-varsity);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 183, 5, .6);
}

.fdr-1 { background: var(--fdr-1); }
.fdr-2 { background: var(--fdr-2); }
.fdr-3 { background: var(--fdr-3); }
.fdr-4 { background: var(--fdr-4); }
.fdr-5 { background: var(--fdr-5); }
.fdr-bye { background: #47544C; }

/* -------------------------------------------------------------- bench */
.bench {
  margin-top: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.bench-head {
  font-family: var(--font-varsity);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--chalk-faint);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bench .field-row { margin-bottom: 0; }
.bench .pod { background: rgba(255, 255, 255, .045); }

/* -------------------------------------------------------------- chips */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 10px; }
.chip-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  text-align: left;
  transition: border-color .12s, background .12s;
}
.chip-card:hover:not(:disabled) { border-color: var(--gold); }
.chip-card.active { border-color: var(--gold); background: rgba(242, 183, 5, .13); }
.chip-card:disabled { opacity: .38; }
.chip-card h4 { font-size: 14px; letter-spacing: .06em; margin-bottom: 4px; }
.chip-card p { margin: 0; font-size: 11.5px; color: var(--chalk-dim); line-height: 1.35; }

/* ------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: var(--surface-2);
  text-align: left;
  padding: 9px 10px;
  font-family: var(--font-varsity);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  white-space: nowrap;
  position: sticky;
  top: 0;
  cursor: pointer;
  user-select: none;
}
thead th.no-sort { cursor: default; }
thead th:hover:not(.no-sort) { color: var(--gold); }
tbody td { padding: 8px 10px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:hover { background: rgba(255, 255, 255, .035); }
tbody tr.mine { background: rgba(242, 183, 5, .07); }
td.num, th.num { text-align: right; }
.row-link { color: var(--chalk); font-weight: 600; background: none; border: none; padding: 0; text-align: left; }
.row-link:hover { color: var(--gold); }

.team-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.team-dot { width: 11px; height: 11px; border-radius: 2px; flex: none; border: 1px solid rgba(255, 255, 255, .28); }

.pos-tag {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  border-radius: 4px;
  padding: 2px 5px;
  font-family: var(--font-varsity);
  font-size: 12px;
  letter-spacing: .06em;
}
.pos-QB { background: rgba(79, 163, 217, .22); color: #8FCBEE; }
.pos-RB { background: rgba(62, 158, 82, .22); color: #79D18C; }
.pos-WR { background: rgba(255, 122, 26, .22); color: #FFA96B; }
.pos-TE { background: rgba(242, 183, 5, .2); color: var(--gold-soft); }
.pos-DST { background: rgba(124, 143, 132, .28); color: #B8C8BE; }

.delta-up { color: var(--grass); font-weight: 700; }
.delta-down { color: var(--pennant-soft); font-weight: 700; }
.delta-flat { color: var(--chalk-faint); }

/* ----------------------------------------------------------- filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters input[type="search"], .filters input[type="text"], .filters select {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 13px;
  min-width: 132px;
}
.filters input:focus, .filters select:focus { outline: 2px solid rgba(242, 183, 5, .45); outline-offset: 1px; }

/* --------------------------------------------------------- transfers */
.transfer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .transfer-grid { grid-template-columns: 1fr; } }

.tlist { display: flex; flex-direction: column; gap: 6px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.trow {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  text-align: left;
  width: 100%;
}
.trow:hover { border-color: var(--slate); }
.trow.picked { border-color: var(--gold); background: rgba(242, 183, 5, .12); }
.trow.blocked { opacity: .35; }
.trow .kit { width: 36px; height: 31px; flex: none; }
.trow-main { min-width: 0; flex: 1; }
.trow-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-sub { font-size: 11px; color: var(--chalk-dim); }
.trow-right { text-align: right; flex: none; }
.trow-price { font-family: var(--font-varsity); font-size: 15px; color: var(--gold); }

/* ---------------------------------------------------------- fixtures */
.fixgrid { font-size: 12px; }
.fixgrid td.fx { padding: 3px; }
.fixgrid td:first-child { min-width: 158px; }
.fx-cell {
  border-radius: 4px;
  padding: 5px 4px;
  text-align: center;
  color: #fff;
  font-family: var(--font-varsity);
  font-size: 11.5px;
  letter-spacing: .03em;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}

/* ------------------------------------------------------------- modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 5, .8);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: min(820px, 100%);
}
.modal-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head .kit { width: 54px; height: 46px; flex: none; }
.modal-head h3 { font-size: 21px; letter-spacing: .04em; }
.modal-body { padding: 16px 18px 20px; }
.modal-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--chalk-dim);
  font-size: 26px;
  line-height: 1;
  padding: 0 4px;
}
.modal-close:hover { color: var(--gold); }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.kv { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.kv-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--chalk-faint); }
.kv-value { font-family: var(--font-varsity); font-size: 19px; letter-spacing: .03em; }

.section-title {
  font-family: var(--font-varsity);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--chalk-faint);
  margin: 18px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-soft);
}

/* -------------------------------------------------------------- misc */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spark i { flex: 1; background: var(--gold); border-radius: 2px 2px 0 0; min-height: 2px; display: block; opacity: .85; }
.spark i.neg { background: var(--pennant); }

.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.rules-grid h3 { font-size: 14px; letter-spacing: .1em; color: var(--gold); }
.rules-grid ul { padding-left: 18px; margin: 8px 0 0; }
.rules-grid li { margin-bottom: 6px; font-size: 13px; color: var(--chalk-dim); }
.rules-grid li b { color: var(--chalk); }

.empty-state { text-align: center; padding: 44px 20px; color: var(--chalk-faint); }

.legend { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--chalk-dim); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 15px; height: 10px; border-radius: 2px; display: inline-block; }

.footer {
  text-align: center;
  padding: 26px 20px;
  color: var(--chalk-faint);
  font-size: 12px;
  border-top: 1px solid var(--line-soft);
  margin-top: 30px;
}

/* ================================================================== auth */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: min(430px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 24px 22px;
}

.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.auth-brand .brand-mark { width: 38px; height: 38px; flex: none; }

.auth-title { font-size: 22px; letter-spacing: .04em; margin-bottom: 6px; }
.auth-sub { margin: 0 0 16px; color: var(--chalk-dim); font-size: 13px; line-height: 1.45; }

.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .auth-row { grid-template-columns: 1fr; } }

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Grid/flex items default to min-width:auto, which here is the input's
     intrinsic `size=20` width (~224px) — wider than the 185px column. */
  min-width: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--chalk-faint);
}
.auth-form input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  font-size: 15px;
  color: var(--chalk);
  text-transform: none;
  letter-spacing: 0;
}
.auth-form input:focus { outline: 2px solid rgba(242, 183, 5, .5); outline-offset: 1px; }
.auth-form .hint { font-size: 10.5px; text-transform: none; letter-spacing: .02em; color: var(--chalk-faint); }
.auth-form .btn.primary { margin-top: 4px; padding: 11px 18px; justify-content: center; }

.auth-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--sky);
  font-size: 13px;
  font-weight: 600;
}
.linkish:hover { color: var(--gold); text-decoration: underline; }

.auth-card code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
}

/* Signed-in identity strip under the header */
.accountbar {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.accountbar:empty { display: none; }
.accountbar .who {
  font-family: var(--font-varsity);
  font-size: 15px;
  letter-spacing: .05em;
  color: var(--gold);
  text-transform: uppercase;
}
.accountbar .btn { margin-left: auto; }

@media (max-width: 860px) {
  .stat { min-width: 0; padding: 4px 9px; }
  .stat-value { font-size: 16px; }
  .stat-label { font-size: 8.5px; letter-spacing: .1em; }
  .topstats { width: 100%; margin-left: 0; gap: 5px; }
}

@media (max-width: 660px) {
  .field { padding: 22px 14px 16px; }
  .field-endzones::before, .field-endzones::after { width: 12px; }
  .field-mark { display: none; }
  .pod { width: 94px; }
  .pod .kit { width: 48px; height: 41px; }
}
