@font-face {
  font-family: "Rajdhani";
  src: url("assets/fonts/Rajdhani_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("assets/fonts/Rajdhani_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #07152f;
  --deep: #050d1d;
  --panel: #10264a;
  --panel-2: #182f57;
  --line: #334a74;
  --gold: #f6b900;
  --gold-soft: #ffe07a;
  --ember: #ff7a1a;
  --red: #e84040;
  --green: #32d27a;
  --text: #fff8e8;
  --muted: #cfc8b4;
  --shadow: 0 22px 44px rgb(0 0 0 / 34%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 18%, rgb(255 122 26 / 14%), transparent 27rem),
    radial-gradient(circle at 12% 72%, rgb(50 210 122 / 10%), transparent 24rem),
    linear-gradient(180deg, #0a1b38 0%, var(--page) 48%, var(--deep) 100%);
  color: var(--text);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

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

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

.site-header,
.hero,
.challenge-strip,
.feature-grid,
.download,
.site-footer {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
}

.brand,
.site-header nav,
.site-footer nav,
.challenge-strip {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  justify-self: start;
  font-family: "Rajdhani", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}

.site-header nav {
  gap: 30px;
  color: var(--muted);
  font-size: 18px;
}

.site-header a:hover,
.site-header a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold-soft);
}

.store-link {
  display: inline-flex;
  width: 148px;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-link:hover,
.store-link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 20px rgb(246 185 0 / 20%));
}

.header-store {
  justify-self: end;
  width: 135px;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding-block: clamp(50px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 7ch;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: clamp(74px, 11vw, 146px);
  line-height: 0.84;
  text-shadow: 0 14px 28px rgb(246 185 0 / 18%);
}

.lead {
  max-width: 550px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.18;
}

.hero-store {
  width: 162px;
}

.challenge-sigil {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.challenge-sigil::before,
.challenge-sigil::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.challenge-sigil::before {
  inset: 12% 10%;
  z-index: -2;
  border: 1px solid rgb(246 185 0 / 28%);
  background:
    linear-gradient(90deg, transparent 0 46%, rgb(246 185 0 / 72%) 46% 54%, transparent 54%),
    radial-gradient(circle, rgb(246 185 0 / 18%), transparent 58%);
  clip-path: polygon(50% 0, 100% 24%, 86% 100%, 14% 100%, 0 24%);
}

.challenge-sigil::after {
  inset: 28% 16% 9%;
  z-index: -3;
  background: linear-gradient(180deg, rgb(5 13 29 / 24%), rgb(5 13 29 / 92%)), url("assets/game/training-grounds-map.png") center / cover;
  border: 1px solid rgb(51 74 116 / 70%);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.sigil-core {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 18px;
}

.sigil-core img {
  width: 146px;
  height: 146px;
  border-radius: 34px;
  box-shadow: 0 24px 46px rgb(0 0 0 / 34%);
}

.sigil-core span {
  padding: 5px 14px;
  border: 1px solid rgb(246 185 0 / 52%);
  border-radius: 999px;
  background: rgb(7 21 47 / 82%);
  color: var(--gold-soft);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.sigil-hero,
.sigil-boss {
  position: absolute;
  bottom: 2%;
  max-height: 450px;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgb(0 0 0 / 52%));
}

.sigil-hero {
  left: 0;
  width: 42%;
}

.sigil-boss {
  right: 0;
  width: 38%;
}

.challenge-strip {
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  padding: 16px 20px;
  border-block: 1px solid rgb(51 74 116 / 70%);
}

.challenge-strip p {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
}

.challenge-strip p:nth-of-type(1) {
  color: var(--green);
}

.challenge-strip p:nth-of-type(2) {
  color: var(--ember);
}

.challenge-strip p:nth-of-type(3) {
  color: var(--gold);
}

.challenge-strip span {
  width: clamp(24px, 5vw, 70px);
  height: 3px;
  background: var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 0.9fr;
  gap: 22px;
  padding-block: clamp(72px, 9vw, 120px);
}

.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-card {
  transform: translateY(28px);
}

.feature-art {
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 80%, rgb(246 185 0 / 16%), transparent 42%),
    #0b1a37;
}

.feature-art img {
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / 40%));
}

.boss-card .boss {
  height: 158px;
}

.medal {
  width: 86px;
  height: 86px;
}

.map-card .feature-art {
  min-height: 260px;
}

.map-card .map {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border: 2px solid rgb(246 185 0 / 46%);
  border-radius: 12px;
  object-fit: cover;
}

.map-card .medal {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  padding: 10px;
  border-radius: 50%;
  background: rgb(7 21 47 / 76%);
}

.rank-card .feature-art img {
  width: 82px;
  height: 82px;
}

.rank-card .feature-art .large-medal {
  width: 124px;
  height: 124px;
}

.feature-copy {
  padding: 25px 28px 30px;
  background: var(--panel-2);
}

.feature-copy h2 {
  margin-bottom: 9px;
  font-size: clamp(31px, 3vw, 42px);
  line-height: 0.94;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.download {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(54px, 8vw, 86px) 20px clamp(82px, 10vw, 130px);
  text-align: center;
}

.download::before {
  position: absolute;
  top: 0;
  width: min(100%, 620px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(246 185 0 / 60%), transparent);
}

.download-mark {
  width: 76px;
  margin-bottom: 22px;
}

.download-mark img {
  border-radius: 18px;
}

.download h2 {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.94;
}

.download p {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 40px 0 34px;
  border-top: 1px solid rgb(51 74 116 / 55%);
}

.site-footer strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 22px;
  text-transform: uppercase;
}

.site-footer nav {
  gap: 30px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer small {
  grid-column: 1 / -1;
  justify-self: center;
  color: color-mix(in oklab, var(--muted) 72%, transparent);
  font-size: 15px;
}

.legal-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.legal-content {
  width: min(100% - 40px, 820px);
  margin-inline: auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(52px, 7vw, 88px);
}

.legal-content h2 {
  margin: 38px 0 10px;
  color: var(--gold-soft);
  font-size: 30px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 22px;
}

.legal-content a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .challenge-sigil {
    min-height: 430px;
  }

  .sigil-hero {
    left: 4%;
  }

  .sigil-boss {
    right: 4%;
  }

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

  .map-card {
    transform: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 18px 24px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .challenge-strip,
  .feature-grid,
  .download,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .header-store {
    display: none;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: clamp(66px, 22vw, 98px);
  }

  .lead {
    font-size: 25px;
  }

  .challenge-sigil {
    min-height: 360px;
  }

  .sigil-core img {
    width: 112px;
    height: 112px;
    border-radius: 26px;
  }

  .sigil-hero {
    width: 45%;
  }

  .sigil-boss {
    width: 42%;
  }

  .challenge-strip {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .feature-copy {
    padding: 22px;
  }
}
