:root {
  --bg: #e8f5fb;
  --ink: #111827;
  --muted: #52606b;
  --line: rgba(17, 24, 39, 0.14);
  --paper: #ffffff;
  --red: #e83d3d;
  --blue: #0874d8;
  --cyan: #08b7d9;
  --yellow: #f2b832;
  --deep: #101622;
  --track: #2e3741;
  --radius: 8px;
  --shadow: 0 26px 72px rgba(16, 22, 34, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 116, 216, 0.08) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(180deg, #f7fcff 0%, var(--bg) 48%, #fff9e8 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(calc(100% - 32px), 1040px);
  margin-inline: auto;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand,
.links,
.actions,
.meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
}

.brand img {
  inline-size: 40px;
  block-size: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(8, 116, 216, 0.22);
}

.links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.hero {
  padding: 46px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(504px, 1.18fr);
  gap: 40px;
  align-items: start;
}

.hero-grid > *,
.section-head > *,
.card,
.preview {
  min-width: 0;
}

.eyebrow {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: 4.1rem;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.lede {
  max-width: 64ch;
  color: #334450;
  font-size: 1.02rem;
  line-height: 1.66;
  overflow-wrap: break-word;
}

.actions {
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.game-stats span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding-inline: 11px;
  border: 1px solid rgba(8, 116, 216, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  color: #243241;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  padding-inline: 16px;
  font-weight: 850;
}

.button.primary {
  color: #ffffff;
  background: var(--deep);
  box-shadow: 0 12px 28px rgba(16, 22, 34, 0.18);
}

.button.secondary {
  background: transparent;
}

.button:focus-visible,
.links a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--yellow) 82%, white);
  outline-offset: 4px;
}

.preview {
  position: relative;
  justify-self: end;
  width: min(100%, 648px);
  border: 1px solid rgba(8, 116, 216, 0.28);
  border-radius: var(--radius);
  padding: 12px;
  background: linear-gradient(180deg, #111827 0%, #17233a 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview img {
  width: 100%;
  height: min(72vh, 760px);
  border-radius: var(--radius);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.hero-roster-preview {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: min(65vh, 684px);
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(5, 10, 24, 0.08), rgba(5, 10, 24, 0.92)),
    radial-gradient(circle at 50% 58%, rgba(8, 183, 217, 0.28), transparent 34%),
    linear-gradient(180deg, #08101f 0%, #101a30 46%, #060b17 100%);
}

.hero-roster-preview h2 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 2.12rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.62);
}

.hero-card {
  display: grid;
  grid-template-columns: 171px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 158px;
  border: 3px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 7px 14px 7px 7px;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.hero-card img {
  width: 171px;
  height: 171px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.42));
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.72);
}

.hero-card span {
  margin-top: 8px;
  color: #dfeaff;
  font-weight: 800;
  line-height: 1.28;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.commander-card {
  background: linear-gradient(90deg, #224f9a, #1d427f);
  border-color: #79aaff;
}

.archer-card {
  background: linear-gradient(90deg, #1f7f3a, #1b6733);
  border-color: #62e184;
}

.rocketeer-card {
  background: linear-gradient(90deg, #9b5516, #7d4311);
  border-color: #ffac55;
}

.hero-roster-stage {
  min-height: 189px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 11, 23, 0.94) 86%),
    radial-gradient(ellipse at 50% 22%, rgba(89, 205, 236, 0.28), transparent 42%),
    linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.08) 23%, transparent 24%),
    linear-gradient(180deg, #172943 0%, #08101f 100%);
}

.preview-note {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 25px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(16, 22, 34, 0.86);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 22, 34, 0.28);
  backdrop-filter: blur(10px);
}

.preview-note strong,
.preview-note span {
  display: block;
}

.preview-note span {
  margin-top: 4px;
  color: #d8e5ef;
  line-height: 1.45;
}

.section {
  padding: 50px 0;
}

.section.alt {
  background: linear-gradient(180deg, #e4f2fb 0%, #d8ecf6 100%);
}

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

.section-head h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: 2.88rem;
  line-height: 1;
}

.section-head p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.proof-section {
  padding-top: 24px;
}

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

.proof-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 22, 34, 0.16);
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: 0 18px 44px rgba(16, 22, 34, 0.14);
}

.proof-shot-wide {
  grid-column: 1 / -1;
}

.proof-shot img {
  width: 100%;
  height: min(684px, 65vw);
  object-fit: contain;
  object-position: center center;
}

.gameplay-grid .proof-shot img {
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.proof-shot figcaption {
  min-height: 92px;
  padding: 16px;
  color: #eaf5ff;
  line-height: 1.52;
}

.proof-shot figcaption strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(16, 22, 34, 0.13);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(16, 22, 34, 0.07);
}

.card:nth-child(2) {
  border-top-color: var(--red);
}

.card:nth-child(3) {
  border-top-color: var(--yellow);
}

.card p,
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.68;
}

.meta {
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: #fff2dd;
  background: var(--deep);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.legal {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 56px 0;
}

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

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

  .proof-shot img {
    height: 558px;
  }
}

.legal h1 {
  max-width: none;
  font-size: 3.6rem;
}

.legal section {
  margin-top: 30px;
}

@media (max-width: 760px) {
  .shell {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .nav,
  .section-head,
  .footer-grid {
    align-items: start;
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .hero-grid > * {
    width: 100%;
  }

  .preview {
    justify-self: stretch;
  }

  .preview img {
    height: auto;
  }

  .hero-roster-preview {
    min-height: auto;
  }

  h1 {
    max-width: 13ch;
    font-size: 2.48rem;
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
  }

  .lede {
    width: min(36ch, calc(100vw - 32px));
    max-width: min(36ch, calc(100vw - 32px));
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .game-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .preview-note {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .hero-roster-preview h2 {
    font-size: 1.53rem;
  }

  .hero-card {
    grid-template-columns: 106px minmax(0, 1fr);
    min-height: 112px;
    padding: 6px 11px 6px 5px;
  }

  .hero-card img {
    width: 106px;
    height: 106px;
  }

  .hero-card strong {
    font-size: 1.04rem;
  }

  .hero-card span {
    font-size: 0.73rem;
  }

  .hero-roster-stage {
    min-height: 153px;
  }

  .proof-shot img {
    height: 468px;
  }
}

/* Current in-game proof, kept separate from the archived roster composition. */
.current-preview { margin: 0 auto; width: min(100%, 350px); }
.current-preview img { display: block; width: 100%; height: auto; border: 1px solid #254667; border-radius: 16px; }
.current-preview figcaption { margin-top: 12px; color: #52606f; font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) { .nav { flex-wrap: wrap; gap: 16px; } .brand { font-size: 22px; } }
