:root {
  --bg: #080b10;
  --bg-2: #11151d;
  --panel: rgba(17, 22, 31, 0.86);
  --panel-strong: #141a23;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #a6b1c2;
  --soft: #d6deea;
  --green: #31e891;
  --amber: #ffc04d;
  --red: #ff6678;
  --blue: #58a6ff;
  --violet: #b18cff;
  --radius: 8px;
  --page-pad: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(112deg, rgba(49, 232, 145, 0.1), transparent 34%),
    linear-gradient(248deg, rgba(255, 192, 77, 0.09), transparent 32%),
    linear-gradient(180deg, #080b10 0%, #0e1118 48%, #080b10 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0 var(--page-pad) 42px;
}

.hero {
  position: relative;
  min-height: 72vh;
  margin: 0 calc(var(--page-pad) * -1) 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  z-index: -3;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.98) 0%, rgba(8, 11, 16, 0.74) 43%, rgba(8, 11, 16, 0.3) 100%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.48) 0%, rgba(8, 11, 16, 0.18) 52%, #080b10 100%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 18px;
  opacity: 0.2;
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - (var(--page-pad) * 2));
  margin: 0 auto;
  padding: 22px 0;
}

.brand-lockup,
.event-meta,
.topbar__actions,
.auction-ticker,
.metric-card,
.team-card,
.game-card,
.control-deck,
.table-wrap {
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 12px 7px 8px;
  border-radius: var(--radius);
  background: rgba(7, 12, 18, 0.72);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #05100b;
  background: var(--green);
}

.topbar__actions {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius);
  background: rgba(7, 12, 18, 0.56);
}

.nav-pill {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--soft);
  background: transparent;
  text-decoration: none;
}

.nav-pill.is-active,
.nav-pill:hover {
  color: #06110c;
  background: var(--green);
}

.hero__content {
  width: calc(100% - (var(--page-pad) * 2));
  margin: 0 auto;
  padding: 11vh 0 160px;
}

.hero--compact {
  min-height: 58vh;
}

.hero--compact .hero__content {
  padding-top: 8vh;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(7, 12, 18, 0.68);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-meta span {
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 880px;
  margin-top: 18px;
  font-size: 7.75rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__content p {
  max-width: 620px;
  margin-top: 20px;
  color: var(--soft);
  font-size: 1.18rem;
  line-height: 1.58;
}

.auction-ticker {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  width: calc(100% - (var(--page-pad) * 2));
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(7, 12, 18, 0.84);
}

.ticker-label {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 0 16px;
  color: #06110c;
  background: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-strip {
  display: flex;
  flex: 0 0 max-content;
  align-items: center;
  gap: 16px;
  min-width: max-content;
  padding: 0 8px;
  animation: ticker-scroll 120s linear infinite;
}

.auction-ticker:hover .ticker-strip {
  animation-play-state: paused;
}

.ticker-item {
  color: var(--soft);
  font-size: 0.92rem;
}

.ticker-item strong {
  color: var(--text);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.control-deck {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(180px, 240px));
  gap: 12px;
  margin: -58px 0 28px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(9, 13, 19, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.search-box,
.select-box {
  display: grid;
  gap: 7px;
}

.search-box span,
.select-box span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 232, 145, 0.14);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 38px;
}

.metric-card {
  min-height: 126px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 2.35rem;
  line-height: 0.95;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--soft);
}

.section-block {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-top: 4px;
  font-size: 2.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--team) 28%, transparent), transparent 42%),
    var(--panel);
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--team);
}

.team-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.team-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid color-mix(in srgb, var(--team) 72%, white);
  border-radius: 8px;
  color: #071014;
  background: var(--team);
  font-size: 1.05rem;
  font-weight: 900;
}

.team-name {
  min-width: 0;
}

.team-name h3 {
  overflow-wrap: anywhere;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.team-name span,
.team-count span,
.mini-stat span,
.player-row span,
.team-note {
  color: var(--muted);
}

.team-count {
  text-align: right;
}

.team-count strong {
  display: block;
  font-size: 1.5rem;
}

.depth-bar {
  height: 10px;
  margin: 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.depth-bar__fill {
  height: 100%;
  width: var(--depth-width);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--team), var(--amber));
}

.team-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 18px;
}

.mini-stat {
  min-height: 78px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.mini-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.24rem;
}

.team-roster {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.player-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.player-row strong {
  overflow-wrap: anywhere;
}

.slot-pill {
  display: inline-grid;
  place-items: center;
  min-width: 62px;
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--team, var(--green)) 42%, white);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--team, var(--green)) 18%, transparent);
  font-weight: 900;
}

.team-pill {
  min-width: 0;
  min-height: 32px;
  padding: 0 14px;
  line-height: 1;
}

.team-card__button {
  width: calc(100% - 36px);
  min-height: 40px;
  margin: 0 18px 18px;
  border: 1px solid color-mix(in srgb, var(--team) 56%, white);
  border-radius: 6px;
  color: var(--text);
  background: color-mix(in srgb, var(--team) 16%, transparent);
  font-weight: 800;
}

.team-card__button:hover {
  background: color-mix(in srgb, var(--team) 34%, transparent);
}

.table-wrap {
  border-radius: var(--radius);
  background: var(--panel);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  min-height: 430px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.game-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.game-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #06110c;
  background: var(--green);
  font-weight: 900;
}

.game-card__head h3 {
  margin-top: 4px;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.game-card__head strong {
  font-size: 2.2rem;
  line-height: 1;
}

.game-team-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.game-team-row {
  display: grid;
  gap: 8px;
  min-height: 70px;
  padding: 10px;
  border-left: 3px solid var(--team);
  border-radius: 6px;
  background: color-mix(in srgb, var(--team) 8%, rgba(255, 255, 255, 0.055));
}

.game-team-row__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.game-team-row__title strong {
  display: block;
  overflow-wrap: anywhere;
}

.team-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--team);
}

.game-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-player-list span,
.pending-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.82rem;
  font-weight: 800;
}

.pending-pill {
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: transparent;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: var(--soft);
}

td strong {
  color: var(--text);
}

.tier {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-marquee {
  color: #151002;
  background: var(--amber);
}

.tier-prime {
  color: #041017;
  background: var(--blue);
}

.tier-value {
  color: #06110c;
  background: var(--green);
}

.team-dialog {
  width: min(760px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  color: var(--text);
  background: #101620;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.team-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.dialog-close::before,
.dialog-close::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 9px;
  width: 16px;
  height: 2px;
  background: var(--text);
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

.dialog-body {
  padding: 26px;
}

.dialog-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.wide-empty {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 5.7rem;
  }

  .metric-card strong {
    font-size: 2.05rem;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .stat-grid,
  .team-grid,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1680px) {
  :root {
    --page-pad: 32px;
  }

  .hero {
    min-height: 66vh;
  }

  h1 {
    max-width: 1180px;
    font-size: 8.5rem;
  }

  .hero__content p {
    max-width: 760px;
    font-size: 1.24rem;
  }

  .control-deck {
    grid-template-columns: minmax(360px, 1fr) repeat(2, minmax(220px, 280px));
  }

  .stat-grid {
    gap: 16px;
  }

  .team-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .team-card {
    min-height: 430px;
  }

  .team-card__head {
    grid-template-columns: auto 1fr;
  }

  .team-count {
    grid-column: 1 / -1;
    text-align: left;
  }

  .team-mini-grid {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 12px;
  }

  .page-shell {
    padding-bottom: 32px;
  }

  .hero {
    min-height: 720px;
  }

  .topbar,
  .hero__content,
  .auction-ticker {
    width: calc(100% - (var(--page-pad) * 2));
  }

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar__actions {
    overflow-x: auto;
  }

  .hero__content {
    padding-top: 56px;
  }

  h1 {
    font-size: 3.75rem;
  }

  .hero__content p {
    font-size: 1rem;
  }

  .metric-card strong {
    font-size: 1.9rem;
  }

  .section-heading h2 {
    font-size: 1.95rem;
  }

  .auction-ticker {
    grid-template-columns: 1fr;
  }

  .ticker-label {
    min-height: 38px;
  }

  .ticker-track {
    min-height: 54px;
  }

  .control-deck {
    position: static;
    grid-template-columns: 1fr;
    margin-top: -38px;
  }

  .stat-grid,
  .team-grid,
  .game-grid,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .team-card__head {
    grid-template-columns: auto 1fr;
  }

  .team-count {
    grid-column: 1 / -1;
    text-align: left;
  }
}
