:root {
  --ink: #000000;
  --ink-soft: #000000;
  --black-1: #0a0a0a;
  --black-2: #000000;
  --black-3: #141414;
  --navy-1: var(--black-1);
  --navy-2: var(--black-2);
  --navy-3: var(--black-3);
  --lime: #c0f280;
  --lime-deep: #7bcf3a;
  --paper: #f4f5f7;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --muted: #718198;
  --row: #f7f8fa;
  --shell: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.hidden { display: none !important; }

.portal {
  min-height: 100vh;
}

.hunt-mast {
  background: linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 70%, var(--navy-3) 100%);
  color: #fff;
}

.hunt-mast::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--lime-deep) 0%, var(--lime) 56%, rgba(192, 242, 128, 0.12) 100%);
}

.mast-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.hunt-login-note {
  margin: 10px 0 0;
  color: var(--lime-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.hunt-password-panel {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 18px;
  max-width: 420px;
}

.hunt-password-panel h2 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hunt-sign-out {
  margin-left: auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #e2e8f0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.hunt-sign-out:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hunt-gate {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.hunt-gate-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 32px;
  align-items: start;
}

.hunt-gate-brief {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 72%, var(--navy-3) 100%);
  color: #e8edf4;
  border-radius: 22px;
  padding: 32px 30px 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
}

.hunt-gate-brief::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime-deep) 0%, var(--lime) 56%, rgba(192, 242, 128, 0.12) 100%);
}

.hunt-gate-brief .hunt-gate-kicker {
  color: var(--lime);
}

.hunt-gate-brief h1 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 48px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.95;
  color: #fff;
}

.hunt-gate-lead {
  margin: 0 0 22px;
  color: #c5d0de;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.hunt-brief-block {
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hunt-brief-block h2 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--lime);
}

.hunt-brief-block p,
.hunt-brief-block li {
  margin: 0;
  color: #c5d0de;
  font-size: 13.5px;
  line-height: 1.5;
}

.hunt-brief-block ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hunt-brief-block strong {
  color: #fff;
  font-weight: 700;
}

.hunt-gate-fine {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c5d0de;
  font-size: 12px;
  line-height: 1.5;
}

.hunt-gate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.hunt-gate-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  background: #eef1f4;
  border-radius: 999px;
}

.hunt-gate-tabs [role="tab"] {
  appearance: none;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5b70;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.hunt-gate-tabs [role="tab"][aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.hunt-gate-tabs [role="tab"]:hover {
  color: var(--ink);
}

.hunt-gate-kicker {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  color: var(--lime-deep);
}

.hunt-gate-card h2 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
}

.hunt-gate-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hunt-gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.hunt-gate-field input,
.hunt-gate-field select {
  min-height: 44px;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.hunt-gate-field input::placeholder {
  color: #94a3b8;
  font-weight: 550;
}

.hunt-gate-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000000' d='M1.4.3 6 4.9 10.6.3 12 1.7 6 7.7 0 1.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.hunt-gate-field input:focus,
.hunt-gate-field select:focus {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
  border-color: transparent;
}

.hunt-gate-hint {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  line-height: 1.4;
}

.hunt-gate-submit {
  width: 100%;
  margin-top: 6px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-2);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hunt-gate-submit:hover {
  background: #000000;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.hunt-gate-submit:active {
  transform: translateY(1px);
}

.hunt-gate-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.hunt-gate-submit:focus-visible,
.hunt-gate-tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.hunt-gate-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.hunt-gate-status.is-ok {
  color: #4A8A20;
}

.hunt-gate-status.is-err {
  color: #b45309;
}

.hunt-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  flex: 0 0 auto;
}

.hunt-kicker {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--lime);
  font-weight: 800;
}

.portal-body {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.title-plate {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 8px;
}

.title-copy {
  min-width: 0;
}

.title-plate h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 56px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.95;
  color: var(--ink);
}

.hunt-census {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.hunt-switchers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  padding: 0;
}

.sport-tabs {
  background: #eef1f4;
  border-radius: 999px;
  padding: 4px;
}

.hunt-switchers .filter-row {
  background: #eef1f4;
  border-radius: 999px;
  padding: 4px;
}

.hunt-state-select-wrap {
  display: block;
}

.hunt-state-select-wrap .screen-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#hunt-state-select {
  width: 100%;
  min-width: 220px;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.sport-tabs .filter-row {
  gap: 0;
  border: 0;
}

.sport-tabs .chip {
  min-width: 108px;
  min-height: 36px;
  padding: 8px 18px;
  justify-content: center;
  background: transparent;
  color: #4b5b70;
  border: 0;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.sport-tabs .chip:last-child { border-right: 0; }

.sport-tabs .chip.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.hunt-filters,
.hunt-board {
  background: var(--card);
  border: 1px solid var(--line);
}

.hunt-filters {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.filter-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
}

.filter-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-row,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.sport-row {
  padding: 0;
  margin: 0;
  border: 0;
}

.chip[hidden] {
  display: none !important;
}

.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: #f3f5f7;
  color: #334155;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 13px;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.chip:hover {
  background: #e8ecf0;
}

.chip-label {
  line-height: 1;
}

.chip-count {
  color: #7b8798;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
}

.chip-count:empty { display: none; }

.chip.on {
  background: #ecfccb;
  border-color: #86c96a;
  color: var(--ink);
}

.chip.on:hover {
  background: #d9f99d;
}

.chip.on .chip-count {
  color: #3f6212;
}

.floors {
  gap: 10px;
}

.floor-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.floor-field input {
  width: 64px;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.floor-field input:focus {
  outline: none;
}

.ghost {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  padding: 6px 10px;
  min-height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.ghost:hover {
  background: #f3f5f7;
  color: var(--ink);
}

.hunt-board {
  padding: 8px 0 0;
  border-radius: 14px;
}

.hunt-result, .hunt-status {
  margin: 0;
  padding: 20px 32px 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

.hunt-status { color: #b91c1c; }

.hunt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 20px 32px 32px;
}

.hunt-layout.split {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  min-height: 280px;
  contain: layout;
}

.hunt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hunt-table th {
  background: var(--ink);
  color: #fff;
  text-align: right;
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.hunt-table th.name,
.hunt-table th.school,
.hunt-table td.name,
.hunt-table td.school { text-align: left; }

.hunt-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  font-variant-numeric: tabular-nums;
}

.hunt-table tbody tr:nth-child(even) { background: var(--row); }
.hunt-table td.num { text-align: right; }
.hunt-table td.name { font-weight: 800; color: var(--ink); }
.hunt-table td.ops { font-weight: 800; }
.hunt-table tbody tr { cursor: pointer; }
.hunt-table tbody tr:hover { background: #f4ffe8; }
.hunt-table tbody tr.on {
  background: #f4ffe8;
  box-shadow: inset 4px 0 0 var(--lime);
}

.hunt-panel {
  background: var(--card);
  border: 1px solid var(--line);
}

.panel-plate {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 18px 20px;
  border-left: 6px solid var(--lime);
}

.panel-plate h2 {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 26px;
  line-height: 1;
}

.panel-plate span { color: var(--lime); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; }

.stat-band.hit {
  background: #e7f6c8;
}

.stat-band.pitch {
  background: #d5e0ee;
}

.stat-band.season {
  background: #fff4d6;
}

.stat-band-label {
  margin: 0;
  padding: 14px 20px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  padding: 12px 20px 20px;
}

.box-grid .stat {
  border: 1px solid transparent;
  padding: 10px 12px;
}

.stat-band.hit .stat {
  background: #f7ffe9;
  border-color: #b7d57a;
}

.stat-band.pitch .stat {
  background: #f3f7fc;
  border-color: #9eb1c8;
}

.stat-band.season .stat {
  background: #fffdf6;
  border-color: #e4c36a;
}

.box-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.box-grid strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.board { padding: 0 20px 20px; }

.tab {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 8px 0 10px;
  color: var(--muted);
}

.board table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.board th {
  background: var(--ink-soft);
  color: #fff;
  text-align: right;
  padding: 10px 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.board th.name, .board td.name { text-align: left; }
.board td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.board tr.mark { background: #f4ffe8; }
.twoway {
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  margin-left: 8px;
}

@media (max-width: 900px) {
  .hunt-gate {
    padding: 20px 16px 48px;
  }

  .hunt-gate-shell {
    grid-template-columns: 1fr;
  }

  .hunt-gate-card {
    order: -1;
  }

  .hunt-gate-brief h1 {
    font-size: 40px;
  }

  .hunt-gate-card h2 {
    font-size: 28px;
  }

  .mast-inner,
  .portal-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hunt-filters,
  .hunt-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .title-plate {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 28px;
  }

  .title-plate h1 { font-size: 40px; }
  .filter-line { grid-template-columns: 1fr; gap: 8px; }
  .hunt-layout.split { grid-template-columns: 1fr; }
}
