:root {
  color-scheme: dark;
  --bg: #071012;
  --surface: #0e1719;
  --surface-2: #132022;
  --stroke: #243338;
  --stroke-soft: rgb(36 51 56 / 70%);
  --text: #eef4f3;
  --muted: #8fa3a6;
  --faint: #5f7376;
  --accent: #3ecfb0;
  --accent-2: #1a8f7a;
  --warm: #e6b35a;
  --good: #3dba7a;
  --bad: #e26a5c;
  --panel: rgb(14 23 25 / 78%);
  --radius: 1rem;
  --radius-sm: 0.7rem;
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
  --shadow: 0 18px 50px rgb(0 0 0 / 28%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 34rem),
    radial-gradient(circle at 6% 8%, color-mix(in srgb, var(--warm) 12%, transparent), transparent 22rem),
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28rem),
    var(--bg);
  transition: background 0.25s ease, color 0.2s ease;
}

body[data-view="picker"] .board-view { display: none; }
body[data-view="board"] .picker-view,
body[data-view="board"] .gate { display: none; }
body[data-view="picker"] .top-combo { display: none !important; }
body[data-view="picker"] .brand-copy { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gate {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 4rem;
}

.gate-inner {
  width: min(28rem, 100%);
  text-align: center;
  position: relative;
}

.gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.gate-logo {
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 auto;
}

.gate-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.gate-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text);
}

.gate-sub {
  margin: 0.55rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gate-meta {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.gate-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.gate-chip {
  appearance: none;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  padding: 0.38rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.gate-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--stroke));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.team-combo {
  position: relative;
  display: block;
}

.team-combo input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--stroke);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 0.95rem 1.05rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.team-combo input::placeholder {
  color: var(--faint);
  font-weight: 450;
}

.team-combo input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke));
  background: var(--surface);
}

.team-combo.compact input {
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  min-width: 11rem;
  max-width: 16rem;
}

.team-combo-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--stroke);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: none;
}

.team-combo.compact .team-combo-list {
  min-width: 14rem;
  right: auto;
}

.team-combo-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.team-combo-option:hover,
.team-combo-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.team-combo-option .abbr {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  min-width: 2.4rem;
}

.team-combo-option .name {
  flex: 1;
  color: var(--muted);
  font-size: 0.88rem;
}

.team-combo-option .count {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
}

.team-combo-empty {
  padding: 0.7rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.top-combo {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.board-view {
  display: block;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--stroke-soft);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.brand-logo .logo-letters {
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 45%));
}

.brand-logo .logo-p-a,
.brand-logo .logo-p-b {
  transition: fill 0.28s ease;
}

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

.brand-kicker {
  margin: 0 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}

.sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 36rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  flex: 0 0 auto;
}

.ghost,
.login-card button[type="submit"] {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.login-card button[type="submit"] {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04110e;
  box-shadow: 0 8px 24px rgb(62 207 176 / 18%);
}

.login-card button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.login-card button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.ghost {
  border-color: var(--stroke);
  background: rgb(19 32 34 / 65%);
  color: var(--muted);
  padding: 0.48rem 0.95rem;
}

.ghost:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0.85rem clamp(1rem, 3vw, 1.75rem) 0;
  padding: 0.75rem 0.95rem;
  color: var(--muted);
  font-size: 0.84rem;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.meta .label {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.3rem;
}

.meta > div:not(.meta-group-label):not(.arb-list) {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 2.5%);
  border: 1px solid rgb(255 255 255 / 4%);
}

.meta-group-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.15rem;
}

.live-meta {
  margin-top: 0.55rem;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--stroke));
  background:
    linear-gradient(120deg, rgb(62 207 176 / 8%), transparent 42%),
    var(--panel);
}

.live-meta .meta-group-label {
  color: var(--accent);
}

.arb-meta {
  margin-top: 0.55rem;
  border-color: color-mix(in srgb, var(--warm) 28%, var(--stroke));
  background:
    linear-gradient(120deg, rgb(230 179 90 / 8%), transparent 42%),
    var(--panel);
  position: relative;
  z-index: 5;
}

.arb-meta .meta-group-label {
  color: var(--warm);
}

.arb-list {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.arb-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-soft);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 0.82rem;
}

.arb-edge {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--good);
}

.arb-matchup {
  color: var(--text);
  letter-spacing: -0.02em;
  min-width: 0;
}

.arb-books {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

.arb-empty {
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
}

th.col-live,
td.col-live {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.7rem 0.85rem;
  margin: 0.85rem clamp(1rem, 3vw, 1.75rem) 0;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 8.5rem;
}

.field span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.field input,
.field select {
  appearance: none;
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  background: rgb(7 16 18 / 72%);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.75rem;
  min-width: 9.5rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke));
  background: rgb(10 22 24 / 90%);
  box-shadow: 0 0 0 3px rgb(62 207 176 / 12%);
}

.filter-count {
  margin: 0 0 0.4rem auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.status {
  margin: 0.75rem clamp(1rem, 3vw, 1.75rem) 0;
  padding: 0.7rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
}

.status.error {
  color: #ffc4bd;
  border-color: color-mix(in srgb, var(--bad) 45%, var(--stroke));
  background: color-mix(in srgb, var(--bad) 10%, var(--panel));
}

.status.ok {
  color: #b8f0cf;
  border-color: color-mix(in srgb, var(--good) 45%, var(--stroke));
  background: color-mix(in srgb, var(--good) 10%, var(--panel));
}

.table-wrap {
  margin: 0.85rem clamp(1rem, 3vw, 1.75rem) 2.25rem;
  padding: 0.35rem 0.35rem 0.6rem;
  overflow-x: auto;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid rgb(36 51 56 / 55%);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

th {
  color: var(--faint);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: rgb(10 18 20 / 96%);
  backdrop-filter: blur(8px);
}

th.active {
  color: var(--accent);
}

th.num, td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

th.col-player {
  min-width: 18rem;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.15rem 0;
}

.shot img,
.shot .ph {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--stroke-soft);
}

.shot img {
  object-fit: cover;
  display: block;
}

.shot .ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.player-name {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-tags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgb(255 255 255 / 2.5%);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag.team {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--stroke));
}

.tag.pos {
  color: var(--warm);
  border-color: color-mix(in srgb, var(--warm) 28%, var(--stroke));
}

.tag.dk {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 35%, var(--stroke));
}

.pred-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pred-pill.over {
  color: #b9f0d1;
  border-color: color-mix(in srgb, var(--good) 45%, var(--stroke));
  background: color-mix(in srgb, var(--good) 14%, transparent);
}

.pred-pill.under {
  color: #ffc8c0;
  border-color: color-mix(in srgb, var(--bad) 45%, var(--stroke));
  background: color-mix(in srgb, var(--bad) 14%, transparent);
}

.pred-pill.na {
  color: var(--faint);
}

.line-val {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.deal-source {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.deal-cell.deal-best .deal-source,
.deal-source.deal-best {
  color: var(--good);
}

.deal-cell.deal-worst .deal-source,
.deal-source.deal-worst {
  color: var(--bad);
}

.deal-cell.deal-main .deal-source,
.deal-source.deal-main {
  color: var(--text);
  font-weight: 650;
}

.line-val.line-higher { color: var(--good); }
.line-val.line-lower { color: var(--bad); }

.ou-pair {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
  font-variant-numeric: tabular-nums;
}

.ou-pair.empty {
  color: var(--faint);
  font-family: var(--mono);
}

td.col-book {
  vertical-align: middle;
}

.book-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-height: 2.4rem;
  justify-content: center;
}

.book-cell.miss {
  min-height: 0;
  opacity: 0.28;
}

.book-cell.miss .line-val {
  color: var(--faint);
  font-weight: 400;
}

.book-cell .ou-pair {
  align-items: flex-end;
}

.book-cell .ou-pair.empty {
  display: none;
}

td.col-book.miss,
th.col-book.is-off {
  /* kept for JS toggle via hidden attribute */
}

.book-toggles .book-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  min-height: 2.35rem;
}

.book-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.book-toggle input {
  accent-color: var(--accent);
  margin: 0;
}

.book-toggle:has(input:not(:checked)) {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--faint) 70%, transparent);
}

.ou-side {
  display: grid;
  grid-template-columns: 0.85rem 3.75rem;
  align-items: baseline;
  column-gap: 0.3rem;
}

.ou-lab {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.odds-val {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  justify-self: stretch;
}

th.col-pair,
td.col-pair {
  white-space: nowrap;
}

.proba-val {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.proba-val.hot { color: var(--warm); }
.muted { color: var(--muted); }
.start-cell {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.game-status {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-status.live { color: var(--accent); }
.game-status.final { color: var(--text); }
.game-status.pre,
.game-status.fallback {
  color: var(--muted);
  font-weight: 500;
}

.live-progress {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 5.5rem;
}

.live-progress.empty {
  color: var(--faint);
  font-family: var(--mono);
}

.live-progress-text {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.live-progress.good .live-progress-text { color: var(--good); }
.live-progress.bad .live-progress-text { color: var(--bad); }
.live-progress.pending .live-progress-text { color: var(--warm); }

.live-progress-bar {
  width: 6rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #24383c;
  border: 1px solid #31484c;
  overflow: hidden;
}

.live-progress-fill {
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--muted);
  transition: width 0.25s ease;
}

.live-progress.good .live-progress-fill { background: var(--good); }
.live-progress.bad .live-progress-fill { background: var(--bad); }
.live-progress.pending .live-progress-fill {
  background: linear-gradient(90deg, var(--warm), var(--accent));
}

.empty-row td {
  padding: 2.4rem 0.75rem;
  text-align: center;
  color: var(--muted);
}

.mobile-sort { display: none; }

.mobile-board {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.35rem;
}

.mobile-card {
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  background: rgb(7 16 18 / 55%);
  overflow: hidden;
}

.mobile-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.85rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mobile-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -2px;
}

.mobile-toggle .player-meta { flex: 1; }
.mobile-toggle .player-name { white-space: normal; }

.mobile-peek {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.mobile-peek .proba-val { font-size: 0.86rem; }

.mobile-chevron {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.mobile-card.open .mobile-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.mobile-detail {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  padding: 0 0.85rem 0.95rem;
  border-top: 1px solid var(--stroke-soft);
}

.mobile-card.open .mobile-detail { display: grid; }

.mobile-detail .detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.mobile-detail .detail-item span:first-child {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.mobile-detail .ou-pair {
  align-items: stretch;
  width: max-content;
}

.mobile-detail .ou-side {
  grid-template-columns: 0.85rem 4rem;
}

.mobile-detail .line-val {
  font-variant-numeric: tabular-nums;
}

.mobile-empty {
  padding: 2rem 0.75rem;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  background: rgb(7 16 18 / 55%);
}

@media (max-width: 720px) {
  .top {
    flex-direction: column;
    align-items: stretch;
  }

  .gate-logo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .actions {
    justify-content: flex-start;
  }

  .meta {
    gap: 0.45rem;
  }

  .filter-count {
    margin-left: 0;
  }

  .field {
    min-width: calc(50% - 0.5rem);
  }

  .field input,
  .field select {
    min-width: 0;
    width: 100%;
  }

  .mobile-sort {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }

  .table-wrap {
    padding: 0;
    overflow-x: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .desktop-board { display: none; }
  .mobile-board { display: flex; }
  .mobile-board[hidden] { display: none; }

  .shot img,
  .shot .ph {
    width: 52px;
    height: 52px;
  }

  .player-name {
    font-size: 1rem;
  }
}

/* Login */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(24rem, 100%);
  padding: 1.85rem 1.55rem;
  background: var(--panel);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.login-logo {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
}

.login-card h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  background: linear-gradient(105deg, #f2fffb 10%, var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-card .sub {
  margin: 0.75rem 0 1.35rem;
}

.login-card .field {
  width: 100%;
  margin-bottom: 1rem;
}

.login-card .field input {
  width: 100%;
  min-width: 0;
}

.login-card button[type="submit"] {
  width: 100%;
}

.login-card .status {
  margin: 0.85rem 0 0;
}
