:root {
  --void: #05070c;
  --gold: #d9ad4f;
  --gold-lit: #ffe08f;
  --bone: #f7ebd0;
  --muted: #c5b99d;
  --line: rgba(217, 173, 79, 0.32);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--bone);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(180deg, #06080f, #15100d 46%, #090f17);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-lit);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 4vw, 56px);
  color: var(--bone);
  background: rgba(5, 7, 12, 0.82);
  border-bottom: 1px solid rgba(217, 173, 79, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(217, 173, 79, 0.24));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: var(--gold);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(247, 235, 208, 0.84);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gold-lit);
  background: rgba(217, 173, 79, 0.12);
}

.hero {
  position: relative;
  min-height: min(700px, 78vh);
  padding: 96px clamp(22px, 6vw, 88px) 64px;
  overflow: hidden;
  isolation: isolate;
  background: var(--void);
}

.hero-bg,
.play-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  object-position: center;
  filter: saturate(1.08) contrast(1.06);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.98) 0%, rgba(5, 7, 12, 0.9) 38%, rgba(5, 7, 12, 0.26) 68%, rgba(5, 7, 12, 0.76) 100%),
    linear-gradient(0deg, rgba(5, 7, 12, 0.98) 0%, rgba(5, 7, 12, 0.3) 44%, rgba(5, 7, 12, 0.66) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(230px, 320px);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  width: min(var(--max), 100%);
  min-height: calc(min(700px, 78vh) - 160px);
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
}

.hero-logo {
  width: min(330px, 78vw);
  margin: 0 0 10px -6px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.58));
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.55rem, 5.2vw, 3.85rem);
  line-height: 0.98;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
}

h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.24rem;
  line-height: 1.18;
}

.hero-copy p {
  max-width: 650px;
  margin: 16px 0 0;
  color: rgba(247, 235, 208, 0.9);
  font-size: 1.16rem;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  --button-left: url("assets/ui/button-left.png");
  --button-center: url("assets/ui/button-center.png");
  --button-right: url("assets/ui/button-right.png");
  --button-left-width: 34px;
  --button-right-width: 35px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 42px;
  border: 0;
  border-radius: 0;
  color: var(--bone);
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72);
  background-color: transparent;
  background-image: var(--button-left), var(--button-right), var(--button-center);
  background-position: left center, right center, center center;
  background-size: var(--button-left-width) 100%, var(--button-right-width) 100%, calc(100% - 66px) 100%;
  background-repeat: no-repeat;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  transition: transform 160ms ease, filter 160ms ease;
}

.button::before,
.button::after {
  content: none;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.button.secondary {
  --button-left: url("assets/ui/button-brown-left.png");
  --button-center: url("assets/ui/button-brown-center.png");
  --button-right: url("assets/ui/button-brown-right.png");
}

.hero-card {
  position: relative;
  justify-self: center;
  width: min(300px, 84vw);
  margin: 0;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.62));
}

.hero-card img {
  width: 100%;
  height: auto;
}

.hero-card figcaption {
  margin-top: 8px;
  color: rgba(247, 235, 208, 0.76);
  font-size: 0.92rem;
  text-align: center;
}

.proof-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(var(--max), calc(100% - 44px));
  margin: -42px auto 0;
}

.proof-strip div,
.stage-card,
.feature-grid article,
.media-frame,
.keyword-panel,
.keyword-grid article,
.store-art {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 16, 13, 0.94), rgba(7, 12, 19, 0.94));
  box-shadow: var(--shadow);
}

.proof-strip div {
  min-width: 0;
  padding: 16px;
}

.proof-strip dt {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-strip dd {
  margin: 6px 0 0;
  color: rgba(247, 235, 208, 0.82);
  font-size: 0.94rem;
}

.section {
  padding: 92px clamp(22px, 6vw, 88px);
}

.section-copy {
  width: min(var(--max), 100%);
  margin: 0 auto 32px;
}

.section-copy p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.gameplay-section {
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.98), rgba(11, 18, 28, 0.98));
}

.gameplay-grid,
.cards-showcase {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  gap: 18px;
}

.gameplay-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  align-items: stretch;
}

.media-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.stage-carousel {
  display: grid;
}

.carousel-slide {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.media-frame::before,
.keyword-panel::before,
.keyword-grid article::before,
.feature-grid article::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(217, 173, 79, 0.18);
  border-radius: 5px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.carousel-slide img {
  height: 100%;
}

.large-media img {
  min-height: 560px;
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 52px 22px 22px;
  color: rgba(247, 235, 208, 0.84);
  background: linear-gradient(0deg, rgba(5, 7, 12, 0.96), rgba(5, 7, 12, 0.08));
}

.media-frame strong {
  display: block;
  color: var(--gold-lit);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.turn-steps {
  display: grid;
  gap: 14px;
}

.stage-card,
.feature-grid article {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
}

.stage-card {
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stage-card.is-active {
  border-color: rgba(255, 224, 143, 0.72);
  background:
    linear-gradient(180deg, rgba(47, 32, 20, 0.98), rgba(13, 22, 28, 0.98));
  box-shadow: 0 18px 42px rgba(217, 173, 79, 0.16), var(--shadow);
}

.stage-card:hover {
  border-color: rgba(255, 224, 143, 0.56);
  filter: brightness(1.06);
}

.stage-card:focus-visible {
  outline: 3px solid var(--gold-lit);
  outline-offset: 4px;
}

.stage-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 1px solid rgba(217, 173, 79, 0.52);
  border-radius: 6px;
  color: var(--gold-lit);
  font-weight: 900;
  background: rgba(125, 40, 48, 0.42);
}

.stage-copy,
.feature-grid p,
.keyword-panel p,
.keyword-grid p {
  color: rgba(247, 235, 208, 0.74);
}

.stage-title,
.stage-copy {
  display: block;
}

.stage-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  line-height: 1.18;
}

.stage-copy {
  margin-top: 14px;
}

.cards-section {
  background:
    linear-gradient(90deg, rgba(43, 143, 143, 0.13), transparent 54%),
    linear-gradient(180deg, #0b121c, #160f0d);
}

.cards-showcase {
  grid-template-columns: minmax(0, 1fr);
}

.card-spread img {
  width: min(92%, 1120px);
  margin: 0 auto;
  min-height: 430px;
  object-position: center top;
}

.keyword-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  overflow: hidden;
}

.keyword-panel-copy {
  min-width: 0;
}

.keyword-panel-copy h3,
.feature-grid h3 {
  color: var(--gold-lit);
}

.keyword-panel-copy p:last-child {
  margin-bottom: 0;
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.keyword-grid article {
  position: relative;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  background: rgba(5, 7, 12, 0.42);
  box-shadow: none;
}

.keyword-grid img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
}

.keyword-grid h4 {
  margin: 0;
  color: var(--gold-lit);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.15;
}

.keyword-grid p {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.42;
}

.feature-section {
  background:
    linear-gradient(135deg, rgba(125, 40, 48, 0.18), transparent 44%),
    linear-gradient(180deg, #160f0d, #080d15);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), 100%);
  margin: 0 auto;
  gap: 16px;
}

.feature-grid article {
  min-height: 210px;
}

.feature-grid article:nth-child(2n) {
  border-color: rgba(43, 143, 143, 0.28);
}

.play-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: center;
  padding: 88px clamp(22px, 6vw, 88px);
  isolation: isolate;
  overflow: hidden;
  background: var(--void);
}

.play-bg {
  opacity: 0.42;
  filter: saturate(1.05) contrast(1.08);
}

.play-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.98), rgba(5, 7, 12, 0.78), rgba(5, 7, 12, 0.94));
}

.play-copy {
  width: min(680px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.play-copy p {
  color: rgba(247, 235, 208, 0.78);
  font-size: 1.08rem;
}

.store-art {
  margin: 0;
  overflow: hidden;
  justify-self: end;
  width: min(420px, 100%);
}

.store-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 4vw, 56px);
  color: rgba(247, 235, 208, 0.72);
  background: #03050a;
  border-top: 1px solid rgba(217, 173, 79, 0.22);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a:hover {
  color: var(--gold-lit);
}

@media (max-width: 1080px) {
  .hero-inner,
  .gameplay-grid,
  .play-band {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: start;
  }

  .hero-card {
    display: none;
  }

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

  .store-art {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 7px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 660px;
    padding-top: 146px;
    padding-bottom: 54px;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-logo {
    width: min(272px, 86vw);
  }

  .hero-bg {
    object-position: 54% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 7, 12, 0.98), rgba(5, 7, 12, 0.8)),
      linear-gradient(0deg, rgba(5, 7, 12, 0.98), rgba(5, 7, 12, 0.28) 48%, rgba(5, 7, 12, 0.72));
  }

  .hero-copy p {
    font-size: 1.03rem;
  }

  .button {
    width: 100%;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    margin-top: -54px;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .large-media img,
  .media-frame img,
  .card-spread img {
    min-height: 290px;
  }

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

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

  .keyword-grid article {
    padding: 14px;
  }

  .media-frame figcaption {
    padding: 46px 16px 16px;
  }

  .play-band {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  h2 {
    font-size: 1.9rem;
  }

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

  .keyword-grid article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
  }

  .keyword-grid img {
    grid-row: span 2;
    margin-bottom: 0;
  }
}
