:root {
  --bg: #07090c;
  --panel: #11161d;
  --panel-2: #171e27;
  --paper: #f4efe5;
  --muted: #aeb5bd;
  --red: #c7362f;
  --blue: #13a8ff;
  --gold: #c49a58;
  --line: rgba(244, 239, 229, 0.16);
  --shadow: rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(244, 239, 229, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 239, 229, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 80% 12%, rgba(19, 168, 255, 0.22), transparent 34%),
    radial-gradient(circle at 18% 26%, rgba(199, 54, 47, 0.17), transparent 30%),
    linear-gradient(135deg, #07090c 0%, #0c1219 50%, #06080a 100%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 12, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar a {
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero,
.broadcast,
.system,
.league-panel,
.design-grid {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  min-height: calc(100vh - 65px);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(5.4rem, 16vw, 14rem);
  line-height: 0.76;
}

h1 span {
  color: var(--red);
  display: block;
  text-shadow: 0 0 28px rgba(199, 54, 47, 0.34);
}

h2 {
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.86;
}

h3 {
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  line-height: 0.94;
}

.hero-copy p:not(.eyebrow),
.system-copy,
.feature-card p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions a {
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  text-transform: uppercase;
}

.actions a:first-child {
  background: var(--paper);
  border-color: var(--paper);
  color: #07090c;
}

.hero-object {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 239, 229, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(17, 22, 29, 0.96), rgba(8, 10, 13, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.44), 0 0 60px rgba(19, 168, 255, 0.14);
  display: grid;
  margin: 0;
  overflow: hidden;
  padding: clamp(22px, 5vw, 48px);
  position: relative;
}

.hero-object::before {
  border: 1px solid rgba(19, 168, 255, 0.32);
  content: "";
  inset: 18px;
  position: absolute;
}

.hero-object img {
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.4));
  position: relative;
  width: 100%;
}

.hero-object figcaption {
  background: rgba(7, 9, 12, 0.78);
  bottom: 16px;
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 900;
  left: 16px;
  letter-spacing: 0.1em;
  padding: 9px 11px;
  position: absolute;
  text-transform: uppercase;
}

.broadcast {
  border-top: 1px solid var(--line);
}

.broadcast-head {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 140px;
  margin-bottom: 24px;
}

.broadcast-head img {
  background: rgba(17, 22, 29, 0.74);
  border: 1px solid var(--line);
  display: block;
  padding: 12px;
}

.scoreboard,
.play-window,
.box-score {
  background: rgba(12, 16, 21, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px var(--shadow);
}

.scoreboard {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  min-height: 164px;
}

.team,
.game-state {
  align-items: center;
  display: grid;
  justify-items: center;
  padding: clamp(18px, 4vw, 32px);
  text-align: center;
}

.team strong {
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  line-height: 0.88;
}

.team small,
.game-state strong {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 900;
}

.mark {
  align-items: center;
  background: #232a33;
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 999px;
  color: var(--red);
  display: inline-grid;
  font-size: 0.8rem;
  font-weight: 900;
  height: 58px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  place-items: center;
  width: 58px;
}

.home .mark {
  color: var(--blue);
}

.game-state {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.game-state > span {
  color: var(--paper);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.bases {
  height: 54px;
  margin-bottom: 10px;
  position: relative;
  width: 78px;
}

.bases b {
  border: 4px solid var(--paper);
  height: 24px;
  position: absolute;
  transform: rotate(45deg);
  width: 24px;
}

.bases b:nth-child(1) {
  left: 27px;
  top: 0;
}

.bases b:nth-child(2) {
  left: 3px;
  top: 24px;
}

.bases b:nth-child(3) {
  right: 3px;
  top: 24px;
}

.play-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  margin-top: 14px;
  min-height: 360px;
  overflow: hidden;
}

.play-window img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.play-card {
  align-content: end;
  background: linear-gradient(180deg, rgba(17, 22, 29, 0.76), #10151c);
  border-left: 1px solid var(--line);
  display: grid;
  padding: 24px;
}

.play-card span,
.feature-card span {
  color: var(--gold);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.play-card strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.4rem, 10vw, 6rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.play-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 14px 0 0;
}

.box-score {
  margin-top: 14px;
  overflow-x: auto;
  padding: 22px;
}

.innings {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: 90px repeat(12, minmax(28px, 1fr));
  min-width: 760px;
}

.innings b,
.innings strong,
.innings span {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
}

.innings strong {
  color: var(--paper);
  text-align: left;
}

.innings b {
  color: var(--paper);
}

.system {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 0.96fr) minmax(0, 1.04fr);
}

.league-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  padding-top: 0;
}

.league-grid {
  display: grid;
  gap: 12px;
}

.league-grid article {
  background: rgba(17, 22, 29, 0.84);
  border: 1px solid var(--line);
  padding: 18px;
}

.league-grid span {
  color: var(--gold);
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.league-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.design-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.feature-card {
  background: rgba(17, 22, 29, 0.84);
  border: 1px solid var(--line);
  min-height: 400px;
  overflow: hidden;
  padding: 18px;
}

.feature-card.wide {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
}

.feature-card img {
  display: block;
  height: 220px;
  margin-bottom: 22px;
  object-fit: cover;
  width: 100%;
}

.feature-card.wide img {
  height: 100%;
  margin: 0;
}

.mini-field {
  aspect-ratio: 1;
  border: 2px solid var(--paper);
  margin: 16px 0 42px 18px;
  position: relative;
  transform: rotate(45deg);
  width: 128px;
}

.mini-field b {
  background: var(--paper);
  height: 13px;
  position: absolute;
  width: 13px;
}

.mini-field b:nth-child(1) { bottom: -6px; left: calc(50% - 6px); }
.mini-field b:nth-child(2) { left: -6px; top: calc(50% - 6px); }
.mini-field b:nth-child(3) { right: -6px; top: calc(50% - 6px); }
.mini-field b:nth-child(4) { left: calc(50% - 6px); top: -6px; }

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px);
}

footer a {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .broadcast-head,
  .system,
  .league-panel,
  .design-grid,
  .feature-card.wide {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .broadcast-head img {
    width: 140px;
  }

  .scoreboard {
    grid-template-columns: 1fr;
  }

  .game-state {
    border-bottom: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    order: -1;
  }

  .play-window {
    grid-template-columns: 1fr;
  }

  .play-window img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .play-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature-card.wide {
    grid-column: auto;
  }

  .feature-card.wide img {
    height: 260px;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 10px;
  }

  .hero,
  .broadcast,
  .system,
  .league-panel,
  .design-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-object {
    padding: 18px;
  }

  .hero-object::before {
    inset: 10px;
  }

  .team {
    padding: 20px;
  }

  .box-score {
    margin-left: -16px;
    margin-right: -16px;
  }
}
