:root {
  color-scheme: dark;
  --product-bg: #05080b;
  --product-surface: #0d1319;
  --product-surface-2: #121a22;
  --product-surface-3: #18212b;
  --product-line: #25303b;
  --product-line-bright: #394756;
  --product-text: #f7f9fc;
  --product-muted: #a6afbc;
  --product-faint: #707b89;
  --product-blue: #4ba6ff;
  --product-purple: #9d58f5;
  --product-green: #42d887;
  --product-red: #ff4c48;
  --product-accent: var(--product-purple);
  --product-accent-rgb: 157, 88, 245;
  --product-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --product-number: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --product-radius: 20px;
  --product-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: #030507;
  scroll-behavior: smooth;
}

body.nexus-app {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 4%, rgba(var(--product-accent-rgb), .07), transparent 23rem),
    radial-gradient(circle at 8% 58%, rgba(40, 137, 211, .05), transparent 28rem),
    linear-gradient(180deg, #05080b 0%, #071016 62%, #04070a 100%);
  color: var(--product-text);
  font-family: var(--product-font);
  line-height: 1.45;
}

body.nexus-app::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.011) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.011) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, transparent 84%);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--product-accent) 80%, white);
  outline-offset: 3px;
}

.nexus-skip {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}
.nexus-skip:focus { transform: translateY(0); }

.nexus-frame {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 34px) calc(104px + var(--product-safe-bottom));
}

.nexus-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nexus-brand {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.nexus-brand__mark {
  position: relative;
  display: grid;
  color: #fff;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -.14em;
  line-height: 1;
  text-shadow: 12px 0 20px rgba(var(--product-accent-rgb), .22);
}

.nexus-brand__mark::after {
  position: absolute;
  right: -10px;
  bottom: -5px;
  width: 50px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--product-purple), var(--product-blue));
  content: "";
  transform: skewX(-25deg);
}

.nexus-brand__copy { display: none; }
.nexus-brand__copy strong,
.nexus-brand__copy span { display: block; }
.nexus-brand__copy strong { font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.nexus-brand__copy span { color: var(--product-faint); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }

.nexus-actions { display: flex; align-items: center; gap: 10px; }
.nexus-icon-button {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 50%;
  background: linear-gradient(145deg, #19212b, #10161c);
  color: #f5f7fa;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  place-items: center;
}
.nexus-icon-button:hover { border-color: color-mix(in srgb, var(--product-accent) 50%, #27333e); background: #18212a; }
.nexus-icon-button .icon { width: 23px; height: 23px; }
.nexus-icon-button__dot {
  position: absolute;
  top: 3px;
  right: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid #10151b;
  border-radius: 50%;
  background: var(--product-red);
}

.nexus-main { padding-top: 16px; }

.nexus-greeting { margin: 20px 0 28px; }
.nexus-greeting h1 {
  margin: 0 0 3px;
  font-size: clamp(1.8rem, 6vw, 2.55rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.nexus-greeting p { margin: 0; color: var(--product-muted); font-size: clamp(.95rem, 3vw, 1.08rem); }

.nexus-section { margin: 28px 0; }
.nexus-section__head {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  gap: 12px;
}
.nexus-section__head h2,
.nexus-section__head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: .98rem;
  font-weight: 730;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.nexus-section__head h2 .icon,
.nexus-section__head h3 .icon { width: 19px; height: 19px; flex: 0 0 19px; color: var(--product-blue); }
.nexus-section__head h2 .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--product-red); box-shadow: 0 0 12px rgba(255,76,72,.5); }
.nexus-link-button {
  min-height: 44px;
  padding: 7px 0 7px 12px;
  border: 0;
  background: transparent;
  color: var(--product-blue);
  cursor: pointer;
  font-size: .78rem;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}

.nexus-card {
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background:
    linear-gradient(110deg, rgba(255,255,255,.018), transparent 28%),
    linear-gradient(145deg, rgba(17,24,31,.98), rgba(8,13,18,.98));
  box-shadow: 0 18px 50px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.018);
}

.nexus-score-stack { display: grid; gap: 9px; }
.nexus-score-card {
  display: grid;
  min-height: 154px;
  padding: 16px;
  gap: 13px;
  grid-template-columns: minmax(0, 1.1fr) minmax(135px, .9fr);
  color: inherit;
  text-decoration: none;
}
.nexus-score-card__game { min-width: 0; padding-right: 13px; border-right: 1px solid var(--product-line); }
.nexus-score-card__topline { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--product-muted); font-size: .72rem; text-transform: uppercase; }
.nexus-live-pill,
.nexus-replay-pill,
.nexus-status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  color: var(--product-muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nexus-live-pill { border-color: rgba(255,76,72,.5); background: linear-gradient(180deg, #f04440, #b52020); color: #fff; }
.nexus-replay-pill { border-color: rgba(75,166,255,.45); background: rgba(40,112,180,.15); color: #87c7ff; }
.nexus-status-pill.is-success { border-color: rgba(66,216,135,.4); color: #69e9a3; background: rgba(31,155,88,.1); }
.nexus-status-pill.is-accent { border-color: color-mix(in srgb, var(--product-accent) 45%, transparent); color: color-mix(in srgb, var(--product-accent) 75%, white); }
.nexus-score-card__sport { margin-bottom: 9px; color: var(--product-faint); font-size: .71rem; letter-spacing: .04em; text-transform: uppercase; }
.nexus-team-row { display: grid; align-items: center; gap: 8px; grid-template-columns: 28px minmax(0, 1fr) auto; margin-top: 8px; }
.nexus-team-row__badge,
.nexus-avatar {
  display: grid;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(145deg, rgba(var(--product-accent-rgb), .24), rgba(255,255,255,.035));
  color: #fff;
  font-weight: 850;
  place-items: center;
}
.nexus-team-row__badge { width: 28px; height: 28px; border-radius: 9px; font-size: .58rem; }
.nexus-team-row__name { min-width: 0; overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.nexus-team-row__score { font-family: var(--product-number); font-size: 1.24rem; font-weight: 800; }
.nexus-score-card__situation { margin: 10px 0 0; color: var(--product-muted); font-size: .7rem; }
.nexus-score-card__league { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.nexus-score-card__league small { color: var(--product-faint); font-size: .68rem; }
.nexus-score-card__league strong { margin: 2px 0 11px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.nexus-rank-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nexus-rank-line strong { margin: 0; font-family: var(--product-number); font-size: 1.45rem; }
.nexus-rank-line span { color: #fff; font-family: var(--product-number); font-size: 1.25rem; font-weight: 750; }
.nexus-rank-line small { display: block; color: var(--product-muted); }
.nexus-progress { height: 5px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #202a35; }
.nexus-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--product-purple), #8bbaff); }
.nexus-projection { margin-top: 7px; color: var(--product-muted); font-size: .68rem; }

.nexus-sport-strip {
  display: grid;
  overflow-x: auto;
  padding: 1px 1px 7px;
  gap: 9px;
  grid-auto-columns: minmax(98px, 1fr);
  grid-auto-flow: column;
  scrollbar-width: thin;
}
.nexus-sport-card {
  position: relative;
  display: grid;
  min-height: 118px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 17px;
  background: linear-gradient(145deg, #151d25, #0e141a);
  color: var(--product-muted);
  cursor: pointer;
  text-decoration: none;
}
.nexus-sport-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--card-accent, var(--product-blue)); content: ""; opacity: .9; }
.nexus-sport-card:hover,
.nexus-sport-card[aria-current="page"] { border-color: color-mix(in srgb, var(--card-accent, var(--product-blue)) 70%, #fff 10%); color: #fff; transform: translateY(-1px); }
.nexus-sport-card img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 7px 12px rgba(0,0,0,.3)); }
.nexus-sport-card .icon { width: 46px; height: 46px; color: var(--card-accent, var(--product-blue)); }
.nexus-sport-card strong { font-size: .74rem; text-transform: uppercase; }

.nexus-league-list { display: grid; gap: 9px; }
.nexus-league-card {
  position: relative;
  display: grid;
  min-height: 118px;
  align-items: center;
  padding: 14px 40px 14px 14px;
  overflow: hidden;
  gap: 13px;
  grid-template-columns: 62px minmax(0, 1fr) minmax(85px, auto);
  text-decoration: none;
}
.nexus-league-card::after { position: absolute; top: 50%; right: 14px; width: 8px; height: 8px; border-top: 2px solid var(--product-muted); border-right: 2px solid var(--product-muted); content: ""; transform: translateY(-50%) rotate(45deg); }
.nexus-league-card__crest { display: grid; width: 62px; height: 72px; border: 1px solid color-mix(in srgb, var(--product-accent) 35%, #26313b); border-radius: 19px 19px 24px 24px; background: linear-gradient(155deg, rgba(var(--product-accent-rgb), .24), #0a0e13); color: color-mix(in srgb, var(--product-accent) 72%, white); font-size: .65rem; font-weight: 900; letter-spacing: -.02em; text-align: center; place-items: center; clip-path: polygon(50% 0, 94% 14%, 88% 78%, 50% 100%, 12% 78%, 6% 14%); }
.nexus-league-card__identity { min-width: 0; }
.nexus-league-card__identity h3 { margin: 0 0 3px; overflow: hidden; font-size: 1rem; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.nexus-league-card__identity p { margin: 0 0 12px; color: var(--product-muted); font-size: .7rem; }
.nexus-league-card__standing { display: flex; align-items: baseline; gap: 24px; }
.nexus-league-card__standing strong { font-family: var(--product-number); font-size: 1.12rem; }
.nexus-league-card__standing span { display: block; color: var(--product-muted); font-size: .66rem; }
.nexus-league-card__result { padding-left: 16px; border-left: 1px solid var(--product-line); text-align: center; }
.nexus-league-card__result .nexus-status-pill { margin-bottom: 6px; }
.nexus-league-card__result strong { display: block; font-family: var(--product-number); font-size: 1.25rem; }
.nexus-league-card__result span { color: var(--product-muted); font-size: .65rem; }

.nexus-upcoming-card { display: grid; min-height: 94px; align-items: center; padding: 13px; gap: 12px; grid-template-columns: 83px minmax(0, 1fr) minmax(105px, .8fr); color: inherit; text-decoration: none; }
.nexus-upcoming-card__date { padding-right: 12px; border-right: 1px solid var(--product-line); color: var(--product-muted); font-size: .68rem; text-transform: uppercase; }
.nexus-upcoming-card__date strong { display: block; margin: 2px 0; color: #fff; font-size: .84rem; }
.nexus-upcoming-card__match { min-width: 0; }
.nexus-upcoming-card__match span { display: block; overflow: hidden; padding: 2px 0; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.nexus-upcoming-card__league { padding-left: 12px; border-left: 1px solid var(--product-line); color: var(--product-muted); font-size: .68rem; }
.nexus-upcoming-card__league strong { display: block; margin-top: 3px; color: #fff; font-size: .72rem; }

.nexus-story-grid { display: grid; overflow-x: auto; padding-bottom: 5px; gap: 10px; grid-auto-columns: minmax(190px, 32%); grid-auto-flow: column; }
.nexus-story {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 15px;
  background: #111821;
  text-decoration: none;
}
.nexus-story__art { position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(var(--product-accent-rgb),.5), transparent 33%), linear-gradient(140deg, #182a3a, #080c10 72%); }
.nexus-story__art::before { position: absolute; right: -18px; bottom: -34px; width: 120px; height: 120px; border: 18px solid rgba(255,255,255,.045); border-radius: 50%; content: ""; }
.nexus-story__content { position: absolute; right: 0; bottom: 0; left: 0; padding: 42px 11px 11px; background: linear-gradient(transparent, rgba(0,0,0,.92) 48%); }
.nexus-story__tag { display: inline-flex; margin-bottom: 5px; padding: 3px 6px; border-radius: 4px; background: var(--product-accent); color: #02080d; font-size: .56rem; font-weight: 850; text-transform: uppercase; }
.nexus-story strong { display: block; font-size: .78rem; line-height: 1.25; }

.nexus-bottom-nav {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: calc(70px + var(--product-safe-bottom));
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) var(--product-safe-bottom) max(8px, env(safe-area-inset-left, 0px));
  border-top: 1px solid #1b242d;
  background: rgba(8,13,18,.95);
  box-shadow: 0 -12px 40px rgba(0,0,0,.36);
  backdrop-filter: blur(18px);
  grid-template-columns: repeat(5, 1fr);
}
.nexus-tab {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #8e98a4;
  cursor: pointer;
  font-size: .64rem;
  text-decoration: none;
  text-transform: uppercase;
}
.nexus-tab .icon { width: 24px; height: 24px; }
.nexus-tab[aria-current="page"] { color: #fff; }
.nexus-tab[aria-current="page"] .icon { color: color-mix(in srgb, var(--product-accent) 70%, white); filter: drop-shadow(0 0 8px rgba(var(--product-accent-rgb),.38)); }
.nexus-tab[aria-current="page"]::before { position: absolute; top: -7px; width: 30px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--product-purple), var(--product-blue)); content: ""; }

.nexus-view[aria-hidden="true"] { display: none; }
.nexus-page-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 12px 0 22px; gap: 18px; }
.nexus-page-head p { margin: 0 0 6px; color: var(--product-accent); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nexus-page-head h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.05em; line-height: 1; }
.nexus-page-head__meta { color: var(--product-muted); font-size: .74rem; text-align: right; }

.nexus-subnav { display: flex; overflow-x: auto; margin: -5px 0 18px; padding-bottom: 2px; gap: 8px; }
.nexus-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: #0d141b;
  color: var(--product-muted);
  cursor: pointer;
  font-size: .7rem;
}
.nexus-chip[aria-pressed="true"], .nexus-chip.is-active { border-color: color-mix(in srgb, var(--product-accent) 60%, #fff 5%); background: rgba(var(--product-accent-rgb),.12); color: #fff; }

.nexus-toolbar { display: grid; margin-bottom: 12px; gap: 9px; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(120px, auto)); }
.nexus-field { position: relative; display: grid; gap: 5px; }
.nexus-field > span { color: var(--product-muted); font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.nexus-input, .nexus-select {
  min-height: 45px;
  width: 100%;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #0a1015;
  color: #fff;
}
.nexus-input:focus, .nexus-select:focus { border-color: var(--product-accent); outline: 3px solid color-mix(in srgb, var(--product-accent) 45%, transparent); outline-offset: 2px; }

.nexus-primary,
.nexus-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
}
.nexus-primary { border: 1px solid color-mix(in srgb, var(--product-accent) 75%, white); background: linear-gradient(135deg, var(--product-purple), var(--product-blue)); color: #fff; box-shadow: 0 8px 24px rgba(var(--product-accent-rgb),.2); }
.nexus-secondary { border: 1px solid var(--product-line-bright); background: #111820; color: #fff; }
.nexus-primary:hover, .nexus-secondary:hover { filter: brightness(1.1); }
.nexus-primary .icon, .nexus-secondary .icon { width: 19px; height: 19px; }

.nexus-player-list { display: grid; gap: 8px; }
.nexus-player-row {
  display: grid;
  width: 100%;
  min-height: 82px;
  align-items: center;
  padding: 11px 13px;
  gap: 11px;
  border: 1px solid var(--product-line);
  border-radius: 15px;
  background: linear-gradient(140deg, #111820, #0a1015);
  color: #fff;
  cursor: pointer;
  grid-template-columns: 47px minmax(0, 1fr) minmax(150px, auto) 12px;
  text-align: left;
}
.nexus-player-row:hover { border-color: color-mix(in srgb, var(--product-accent) 50%, var(--product-line)); background: #121b24; }
.nexus-avatar { width: 47px; height: 47px; border-radius: 14px; font-size: .76rem; }
.nexus-player-row__identity { min-width: 0; }
.nexus-player-row__identity strong { display: block; overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.nexus-player-row__identity span { display: block; margin-top: 2px; color: var(--product-muted); font-size: .67rem; }
.nexus-player-row__metrics { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(42px, 1fr)); text-align: right; }
.nexus-player-row__metrics strong { display: block; overflow: hidden; font-family: var(--product-number); font-size: .78rem; text-overflow: ellipsis; }
.nexus-player-row__metrics span { display: block; color: var(--product-faint); font-size: .55rem; text-transform: uppercase; }
.nexus-player-row__chevron { width: 8px; height: 8px; border-top: 1px solid var(--product-muted); border-right: 1px solid var(--product-muted); transform: rotate(45deg); }

.nexus-result-list { display: grid; gap: 8px; }
.nexus-result-card { width: 100%; padding: 14px; color: inherit; cursor: pointer; text-align: left; }
.nexus-result-card:hover { border-color: color-mix(in srgb, var(--product-accent) 48%, var(--product-line)); background: #121b24; }
.nexus-result-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; gap: 12px; }
.nexus-result-card__head strong { font-size: .8rem; }
.nexus-result-card__head span { color: var(--product-muted); font-size: .65rem; }
.nexus-result-card__rows { display: grid; gap: 6px; }
.nexus-result-row { display: grid; align-items: center; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; color: var(--product-muted); font-size: .75rem; }
.nexus-result-row.is-winner { color: #fff; font-weight: 700; }
.nexus-result-row strong { font-family: var(--product-number); }

.nexus-empty,
.nexus-error,
.nexus-loading { padding: 28px 18px; border: 1px dashed var(--product-line-bright); border-radius: 16px; color: var(--product-muted); text-align: center; }
.nexus-empty strong, .nexus-error strong { display: block; margin-bottom: 5px; color: #fff; }
.nexus-error { border-color: rgba(255,76,72,.4); background: rgba(255,76,72,.05); }
.nexus-skeleton { min-height: 80px; overflow: hidden; border: 1px solid var(--product-line); border-radius: 15px; background: linear-gradient(90deg, #0d141a 20%, #182129 45%, #0d141a 70%); background-size: 220% 100%; animation: nexus-shimmer 1.4s linear infinite; }
@keyframes nexus-shimmer { to { background-position: -220% 0; } }

.nexus-wizard { display: grid; gap: 14px; }
.nexus-wizard__steps { display: grid; gap: 6px; grid-template-columns: repeat(4, 1fr); }
.nexus-wizard__step { height: 4px; overflow: hidden; border-radius: 999px; background: #202933; }
.nexus-wizard__step.is-done { background: linear-gradient(90deg, var(--product-purple), var(--product-blue)); }
.nexus-wizard__panel { padding: clamp(18px, 4vw, 26px); }
.nexus-wizard__panel h2 { margin: 0 0 6px; font-size: 1.35rem; }
.nexus-wizard__panel > p { margin: 0 0 20px; color: var(--product-muted); font-size: .8rem; }
.nexus-choice-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, 1fr); }
.nexus-choice { position: relative; display: grid; min-height: 100px; align-content: center; padding: 14px; border: 1px solid var(--product-line); border-radius: 14px; background: #0d141a; cursor: pointer; }
.nexus-choice input { position: absolute; opacity: 0; }
.nexus-choice:has(input:checked) { border-color: var(--product-accent); background: rgba(var(--product-accent-rgb),.12); box-shadow: inset 0 0 0 1px rgba(var(--product-accent-rgb),.2); }
.nexus-choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--product-accent) 80%, white); outline-offset: 3px; }
.nexus-choice strong { font-size: .82rem; }
.nexus-choice span { margin-top: 3px; color: var(--product-muted); font-size: .67rem; }
.nexus-wizard__actions { display: flex; justify-content: space-between; gap: 9px; }

.nexus-lineup { display: grid; gap: 9px; }
.nexus-lineup-slot { display: grid; min-height: 74px; align-items: center; padding: 10px 12px; gap: 10px; grid-template-columns: 42px minmax(0,1fr) auto; }
.nexus-lineup-slot__pos { display: grid; width: 42px; height: 42px; border-radius: 12px; background: rgba(var(--product-accent-rgb),.12); color: color-mix(in srgb, var(--product-accent) 70%, white); font: 800 .65rem var(--product-number); place-items: center; }
.nexus-lineup-slot strong { display: block; font-size: .78rem; }
.nexus-lineup-slot span { display: block; color: var(--product-muted); font-size: .65rem; }
.nexus-lineup-slot__points { color: #fff !important; font: 800 .78rem var(--product-number) !important; }

.nexus-insight-grid { display: grid; gap: 9px; grid-template-columns: repeat(3, 1fr); }
.nexus-insight { min-height: 92px; padding: 14px; }
.nexus-insight strong { display: block; font: 800 1.15rem var(--product-number); }
.nexus-insight span { display: block; margin-top: 4px; color: var(--product-muted); font-size: .66rem; }

.nexus-more-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, 1fr); }
.nexus-more-card { display: grid; min-height: 118px; align-content: space-between; padding: 15px; text-decoration: none; }
.nexus-more-card .icon { width: 25px; height: 25px; color: var(--product-accent); }
.nexus-more-card strong { display: block; font-size: .83rem; }
.nexus-more-card span { color: var(--product-muted); font-size: .65rem; }

.nexus-dialog {
  width: min(680px, calc(100vw - 22px));
  max-height: min(820px, calc(100vh - 22px));
  overflow: auto;
  padding: 0;
  border: 1px solid var(--product-line-bright);
  border-radius: 23px;
  background: #0a1015;
  color: #fff;
  box-shadow: 0 30px 100px #000;
}
.nexus-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.nexus-dialog__body { padding: 22px; }
.nexus-dialog__close { float: right; min-height: 44px; padding: 7px 13px; border: 1px solid var(--product-line); border-radius: 999px; background: transparent; color: var(--product-muted); cursor: pointer; }
.nexus-dialog__eyebrow { margin: 0 0 4px; color: var(--product-accent); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nexus-dialog h2 { margin: 0 0 4px; font-size: 1.6rem; }
.nexus-dialog__meta { margin: 0; color: var(--product-muted); font-size: .75rem; }
.nexus-dialog__metrics { display: grid; margin: 20px 0; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.nexus-dialog__metric { padding: 11px; border-radius: 12px; background: #131b23; }
.nexus-dialog__metric span { display: block; color: var(--product-muted); font-size: .61rem; }
.nexus-dialog__metric strong { display: block; margin-top: 3px; font-family: var(--product-number); }
.nexus-dialog details { padding-top: 14px; border-top: 1px solid var(--product-line); color: var(--product-muted); font-size: .74rem; }
.nexus-dialog pre { max-height: 280px; overflow: auto; padding: 12px; border-radius: 10px; background: #05080b; font-size: .65rem; white-space: pre-wrap; }

.nexus-sheet {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  max-height: 78vh;
  overflow: auto;
  padding: 12px 18px calc(22px + var(--product-safe-bottom));
  border-top: 1px solid var(--product-line-bright);
  border-radius: 24px 24px 0 0;
  background: #0b1117;
  box-shadow: 0 -26px 80px #000;
}
.nexus-sheet.is-open { display: block; }
.nexus-sheet__handle { width: 44px; height: 4px; margin: 0 auto 18px; border-radius: 999px; background: #3b4651; }
.nexus-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nexus-sheet__head h2 { margin: 0; font-size: 1.15rem; }
.nexus-scrim { position: fixed; z-index: 90; inset: 0; display: none; border: 0; background: rgba(0,0,0,.66); }
.nexus-scrim.is-open { display: block; }

.nexus-toast { position: fixed; z-index: 140; right: 14px; bottom: calc(86px + var(--product-safe-bottom)); left: 14px; max-width: 440px; margin: auto; padding: 12px 14px; border: 1px solid var(--product-line-bright); border-radius: 13px; background: #18212a; color: #fff; box-shadow: 0 14px 42px #000; font-size: .76rem; opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .18s ease, transform .18s ease; }
.nexus-toast.is-visible { opacity: 1; transform: translateY(0); }

.nexus-data-banner { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; padding: 13px; gap: 12px; }
.nexus-data-banner__identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.nexus-data-banner .icon { width: 24px; height: 24px; color: var(--product-accent); }
.nexus-data-banner strong { display: block; font-size: .76rem; }
.nexus-data-banner span { display: block; color: var(--product-muted); font-size: .63rem; }

.nexus-count { margin: 0 0 10px; color: var(--product-muted); font-size: .7rem; }

@media (min-width: 700px) {
  .nexus-brand__copy { display: block; }
  .nexus-bottom-nav { right: 24px; bottom: 22px; left: 24px; width: min(640px, calc(100% - 48px)); min-height: 70px; margin: 0 auto; padding: 6px; border: 1px solid var(--product-line); border-radius: 24px; }
  .nexus-score-stack { grid-template-columns: repeat(2, 1fr); }
  .nexus-score-card { min-height: 175px; }
  .nexus-league-list { grid-template-columns: repeat(2, 1fr); }
  .nexus-upcoming-list { display: grid; gap: 9px; grid-template-columns: repeat(2, 1fr); }
  .nexus-player-list { grid-template-columns: repeat(2, 1fr); }
  .nexus-result-list { grid-template-columns: repeat(2, 1fr); }
  .nexus-more-grid { grid-template-columns: repeat(4, 1fr); }
  .nexus-sheet { right: 18px; bottom: 18px; left: auto; width: 420px; max-height: calc(100vh - 36px); border: 1px solid var(--product-line-bright); border-radius: 24px; }
}

@media (max-width: 540px) {
  .nexus-frame { padding-right: 14px; padding-left: 14px; }
  .nexus-score-card { grid-template-columns: minmax(0, 1.12fr) minmax(120px, .88fr); padding: 13px; }
  .nexus-score-card__game { padding-right: 10px; }
  .nexus-league-card { padding-right: 32px; grid-template-columns: 52px minmax(0,1fr); }
  .nexus-league-card__crest { width: 52px; height: 62px; }
  .nexus-league-card__result { grid-column: 2; padding: 9px 0 0; border-top: 1px solid var(--product-line); border-left: 0; text-align: left; }
  .nexus-league-card__result .nexus-status-pill,
  .nexus-league-card__result strong,
  .nexus-league-card__result span { display: inline-flex; margin: 0 8px 0 0; }
  .nexus-upcoming-card { grid-template-columns: 75px minmax(0,1fr); }
  .nexus-upcoming-card__league { grid-column: 2; padding: 8px 0 0; border-top: 1px solid var(--product-line); border-left: 0; }
  .nexus-story-grid { grid-auto-columns: 56%; }
  .nexus-toolbar { grid-template-columns: 1fr 1fr; }
  .nexus-toolbar .nexus-field:first-child { grid-column: 1 / -1; }
  .nexus-player-row { grid-template-columns: 43px minmax(0,1fr) 12px; }
  .nexus-player-row__metrics { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .nexus-player-row__chevron { grid-column: 3; grid-row: 1; }
  .nexus-choice-grid { grid-template-columns: 1fr; }
  .nexus-insight-grid { grid-template-columns: repeat(2, 1fr); }
  .nexus-dialog__metrics { grid-template-columns: repeat(2, 1fr); }
  .nexus-page-head { align-items: flex-start; flex-direction: column; }
  .nexus-page-head__meta { max-width: 100%; text-align: left; }
}

@media (max-width: 380px) {
  .nexus-score-card { grid-template-columns: 1fr; }
  .nexus-score-card__game { padding-right: 0; padding-bottom: 12px; border-right: 0; border-bottom: 1px solid var(--product-line); }
  .nexus-score-card__league { display: grid; grid-template-columns: 1fr auto; }
  .nexus-score-card__league .nexus-progress, .nexus-score-card__league .nexus-projection { grid-column: 1 / -1; }
  .nexus-tab span:last-child { font-size: .57rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Neutral local multi-sport lab layer — tokens follow apps/web/tokens.css. */
@font-face { font-family: Graduate; src: url('/fonts/graduate-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --product-bg: #050505;
  --product-surface: #0a0a0a;
  --product-surface-2: #111111;
  --product-surface-3: #1a1a1a;
  --product-line: #2a2a2a;
  --product-line-bright: #414141;
  --product-text: #f5f5f5;
  --product-muted: #c2c2c2;
  --product-faint: #9ca0a8;
  --product-red: #ff1a1a;
  --product-blue: #00b7ff;
  --product-font: Inter, system-ui, sans-serif;
  --product-display: Graduate, Oswald, Anton, sans-serif;
  --product-number: Graduate, Oswald, sans-serif;
  --product-mono: 'JetBrains Mono', ui-monospace, monospace;
  --product-radius: 12px;
}

body.nexus-app {
  background:
    radial-gradient(circle at 78% -4%, rgba(var(--product-accent-rgb), .08), transparent 29rem),
    radial-gradient(circle at 10% 42%, rgba(255, 26, 26, .055), transparent 30rem),
    #050505;
}

body.nexus-app::before {
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 36px 36px;
}

.nexus-brand__mark { display: none; }
.nexus-brand { min-width: 0; }
.nexus-brand__shield { width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255,26,26,.26)); }
.nexus-brand__copy { display: block; min-width: 0; }
.nexus-brand__copy strong { font-family: var(--product-display); font-size: .84rem; font-weight: 400; letter-spacing: .035em; line-height: 1.08; text-wrap: balance; }
.nexus-brand__copy span { margin-top: 2px; font-family: var(--product-mono); font-size: .55rem; letter-spacing: .1em; }

.nexus-page-head h1,
.nexus-greeting h1,
.nexus-section__head h2,
.nexus-dialog h2,
.nexus-wizard__panel h2,
.nexus-league-card__identity h3,
.product-card-head h2 { font-family: var(--product-display); font-weight: 400; }

.nexus-page-head p,
.nexus-dialog__eyebrow,
.nexus-status-pill,
.nexus-live-pill,
.nexus-replay-pill,
.nexus-field > span,
.product-product-hero__content > p,
.product-card-head span { font-family: var(--product-mono); }

.nexus-card { border-radius: 12px; background: linear-gradient(145deg, rgba(17,17,17,.98), rgba(7,7,7,.98)); }
.nexus-icon-button { border-radius: 10px; background: linear-gradient(145deg, #171717, #0b0b0b); }
.nexus-primary,
.nexus-secondary { min-height: 44px; border-radius: 10px; font-family: var(--product-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; transition: transform .08s ease, filter .15s ease, border-color .15s ease; }
.nexus-primary { border-color: #ff3b30; background: linear-gradient(180deg, #ff2d2d, #c40000); box-shadow: 0 0 16px rgba(255,26,26,.24), 0 4px 14px rgba(0,0,0,.45); }
.nexus-primary:active,
.nexus-secondary:active { transform: scale(.97); }
.nexus-link-button { color: color-mix(in srgb, var(--product-accent) 65%, white); font-family: var(--product-mono); }

.product-product-hero {
  position: relative;
  min-height: clamp(240px, 28vw, 320px);
  display: grid;
  align-items: center;
  overflow: hidden;
  margin: 6px 0 12px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--product-accent) 46%, #2a2a2a);
  border-radius: 16px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 0 24px rgba(255,26,26,.16), 0 26px 70px rgba(0,0,0,.52);
  isolation: isolate;
}

.product-product-hero::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.82) 37%, rgba(0,0,0,.12) 74%), linear-gradient(0deg, rgba(0,0,0,.8), transparent 58%); content: ''; }
.product-product-hero::after { position: absolute; z-index: -1; right: -12%; bottom: -45%; width: 56%; height: 70%; border-radius: 50%; background: rgba(var(--product-accent-rgb), .16); filter: blur(80px); content: ''; }
.product-product-hero__content { max-width: 520px; }
.product-product-hero__content > p { margin: 0 0 9px; color: color-mix(in srgb, var(--product-accent) 64%, white); font-size: clamp(.56rem, 1.3vw, .67rem); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.product-product-hero__content h1 { max-width: 520px; margin: 0; font-family: var(--product-display); font-size: clamp(2rem, 5.2vw, 4.2rem); font-weight: 400; letter-spacing: -.035em; line-height: .94; text-transform: uppercase; text-shadow: 0 4px 34px #000; text-wrap: balance; }
.product-product-hero__content > span { display: -webkit-box; max-width: 470px; overflow: hidden; margin-top: 9px; color: #d1d1d1; font-size: clamp(.7rem, 1.5vw, .82rem); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-product-hero__actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 16px; gap: 8px 16px; }
.product-product-hero__audit { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 2px; color: #f5f5f5; font: 700 .63rem var(--product-mono); letter-spacing: .09em; text-decoration-color: color-mix(in srgb, var(--product-accent) 68%, white); text-underline-offset: 4px; text-transform: uppercase; }

.product-status-strip { display: grid; min-height: 66px; align-items: center; margin: 0 0 18px; padding: 10px 13px; gap: 11px; grid-template-columns: auto minmax(0,1fr) auto; }
.product-status-strip__copy { min-width: 0; }
.product-status-strip__copy strong { display: block; font-size: .72rem; }
.product-status-strip__copy > span { display: block; margin-top: 2px; overflow: hidden; color: var(--product-faint); font: 500 .57rem var(--product-mono); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-status-strip > a { min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; color: color-mix(in srgb, var(--product-accent) 67%, white); font: 700 .6rem var(--product-mono); letter-spacing: .05em; text-align: right; text-decoration: none; text-transform: uppercase; }

.product-home-primary-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.product-home .nexus-section { min-width: 0; margin: 18px 0; }
.product-home-primary-grid > .nexus-section { margin: 0; }
.product-home-primary-grid .nexus-league-card,
.product-home-primary-grid .nexus-result-card { min-height: 148px; height: calc(100% - 45px); }
.product-home-primary-grid .nexus-result-list { height: calc(100% - 45px); grid-template-columns: 1fr; }

.product-leader-row { display: grid; overflow-x: auto; padding: 1px 1px 6px; gap: 8px; grid-auto-columns: minmax(146px,1fr); grid-auto-flow: column; scroll-snap-type: x proximity; }
.product-leader { min-width: 0; min-height: 102px; display: grid; align-content: space-between; align-items: stretch; padding: 11px; gap: 7px; grid-template-columns: 1fr; color: inherit; cursor: pointer; text-align: left; scroll-snap-align: start; }
.product-leader:hover { border-color: color-mix(in srgb, var(--product-accent) 50%, var(--product-line)); transform: translateY(-2px); }
.product-leader__rank { color: var(--product-accent); font: 700 .55rem var(--product-mono); }
.product-leader__identity { min-width: 0; }
.product-leader__identity strong { display: block; overflow: hidden; font: 400 .72rem var(--product-display); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-leader small { display: block; overflow: hidden; color: var(--product-faint); font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.product-leader__metric { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 6px; }
.product-leader__metric b { overflow: hidden; font: 400 .78rem var(--product-number); text-overflow: ellipsis; white-space: nowrap; }
.product-leader__metric small { text-align: right; }

.product-home .nexus-story-grid { overflow: visible; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-flow: initial; }
.product-home .nexus-story { width: 100%; }

.nexus-story__art { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.88)), var(--story-image); background-position: var(--story-position, center); background-size: cover; }
.nexus-story__art::before { display: none; }
.nexus-story__tag { max-width: 100%; overflow: hidden; background: var(--product-accent); color: #fff; text-overflow: ellipsis; white-space: nowrap; }

.nexus-sport-strip { grid-auto-columns: minmax(132px, 1fr); }
.nexus-sport-card { min-height: 136px; border-radius: 12px; background: linear-gradient(145deg, #151515, #080808); }
.nexus-sport-card > span { display: grid; justify-items: center; gap: 2px; }
.nexus-sport-card strong { color: #f5f5f5; font-family: var(--product-display); font-size: .72rem; font-weight: 400; letter-spacing: .04em; }
.nexus-sport-card small { max-width: 116px; overflow: hidden; color: #a9a9a9; font: 500 .5rem var(--product-mono); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

.paddock-pick-grid { display: grid; margin: 18px 0; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.paddock-pick { min-height: 98px; display: grid; padding: 13px; cursor: pointer; text-align: left; }
.paddock-pick[aria-pressed='true'] { border-color: var(--product-accent); background: rgba(var(--product-accent-rgb), .13); box-shadow: inset 0 0 0 1px rgba(var(--product-accent-rgb),.22); }
.paddock-pick > span { color: var(--product-accent); font: 700 .58rem var(--product-mono); }
.paddock-pick strong { margin-top: 8px; font-family: var(--product-display); font-weight: 400; }
.paddock-pick small { color: var(--product-faint); }

@media (max-width: 760px) {
  .product-product-hero { min-height: 280px; background-position: 62% center; }
  .product-product-hero::before { background: linear-gradient(90deg, rgba(0,0,0,.97), rgba(0,0,0,.62) 66%, rgba(0,0,0,.08)), linear-gradient(0deg, rgba(0,0,0,.9), transparent 70%); }
  .product-home-primary-grid { grid-template-columns: 1fr; }
  .product-home-primary-grid .nexus-league-card,
  .product-home-primary-grid .nexus-result-card,
  .product-home-primary-grid .nexus-result-list { height: auto; }
}

@media (max-width: 420px) {
  .nexus-header { gap: 8px; }
  .nexus-brand { flex: 1 1 auto; gap: 8px; }
  .nexus-brand__shield { width: 38px; height: 38px; }
  .nexus-brand__copy { max-width: min(45vw, 154px); }
  .nexus-brand__copy strong { max-width: none; overflow-wrap: normal; font-size: clamp(.61rem, 2.8vw, .7rem); line-height: 1.12; white-space: normal; }
  .nexus-brand__copy span { display: none; }
  .nexus-actions { flex: 0 0 auto; gap: 7px; }
  .nexus-icon-button { width: 44px; height: 44px; }
  .product-product-hero { min-height: 264px; margin-right: -2px; margin-left: -2px; padding: 20px 17px; }
  .product-product-hero__content h1 { max-width: 290px; font-size: clamp(1.9rem, 10.8vw, 2.75rem); line-height: .96; }
  .product-product-hero__content > span { max-width: 286px; font-size: .68rem; }
  .product-product-hero__actions { margin-top: 13px; }
  .product-product-hero__actions .nexus-primary { padding-right: 12px; padding-left: 12px; }
  .product-status-strip { align-items: start; grid-template-columns: auto minmax(0,1fr); }
  .product-status-strip > a { min-height: 34px; grid-column: 2; justify-content: flex-start; text-align: left; }
  .product-leader-row { margin-right: -14px; grid-auto-columns: 138px; }
  .product-home .nexus-story-grid { overflow-x: auto; margin-right: -14px; padding-right: 14px; grid-template-columns: none; grid-auto-columns: 72%; grid-auto-flow: column; }
  .paddock-pick-grid { grid-template-columns: 1fr; }
}
