:root {
  --ink: #f7f0df;
  --muted: #c9c0aa;
  --soft: rgba(247, 240, 223, 0.12);
  --line: rgba(247, 240, 223, 0.2);
  --dark: #0b1110;
  --forest: #14231b;
  --moss: #263b2a;
  --gold: #d5aa4c;
  --amber: #f0c66b;
  --danger: #9b3c31;
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: url("assets/game-cursor.png") 5 2, auto;
}

@keyframes heroDrift {
  0%,
  100% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes logoRise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.8rem, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes playPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 198, 107, 0.34);
  }

  50% {
    box-shadow: 0 0 0 1rem rgba(240, 198, 107, 0);
  }
}

@keyframes shimmerLine {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 170, 76, 0.18), transparent 34rem),
    linear-gradient(135deg, #08100d 0%, #14231b 45%, #07100f 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  cursor: url("assets/game-cursor.png") 5 2, pointer;
  text-decoration: none;
}

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

.reveal {
  opacity: 0;
  transform: translate3d(0, 1.8rem, 0);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(7, 13, 12, 0.88), rgba(7, 13, 12, 0.2));
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  width: clamp(8.5rem, 17vw, 13rem);
  height: auto;
  filter: drop-shadow(0 0.6rem 1rem rgba(0, 0, 0, 0.62));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.02);
  filter:
    drop-shadow(0 0.7rem 1rem rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 0.8rem rgba(240, 198, 107, 0.25));
}

.brand-title,
.game-title {
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", "Lucida Handwriting", "Segoe Script", cursive;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-logo {
  width: min(42rem, 100%);
  height: auto;
  margin: 0 0 0.8rem -0.9rem;
  filter:
    drop-shadow(0 1.2rem 1.8rem rgba(0, 0, 0, 0.74))
    drop-shadow(0 0 1.4rem rgba(240, 198, 107, 0.22));
  opacity: 0;
  animation: logoRise 0.9s ease 0.15s forwards;
}

.game-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  color: var(--amber);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav-legal:hover {
  color: var(--ink);
}

.nav-legal {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: url("assets/game-cursor.png") 5 2, pointer;
  font: inherit;
}

.lang-toggle {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  min-width: 2.75rem;
  height: 2.25rem;
  border-radius: 6px;
  cursor: url("assets/game-cursor.png") 5 2, pointer;
}

.floating-cta {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 7px;
  color: #16100a;
  background: linear-gradient(180deg, var(--amber), var(--gold));
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.42);
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.5);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  animation: heroDrift 22s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 8, 0.86), rgba(5, 9, 8, 0.36) 46%, rgba(5, 9, 8, 0.62)),
    linear-gradient(0deg, #08100d 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 9rem clamp(1rem, 6vw, 5rem) 6rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.9;
  max-width: 8ch;
}

.hero-tagline {
  max-width: 42rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.72);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.hero-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 38rem;
  margin: 2rem 0 0;
}

.hero-facts div {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  padding: 0.85rem;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hero-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 900;
}

.button,
.signup button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 7px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover,
.signup button:hover,
.store-actions a:hover {
  transform: translateY(-2px);
}

.button.primary,
.signup button {
  color: #16100a;
  background: linear-gradient(180deg, var(--amber), var(--gold));
  box-shadow: 0 1rem 2.5rem rgba(213, 170, 76, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 13, 0.86);
  overflow: hidden;
}

.ticker span {
  position: relative;
  min-height: 5rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.ticker span::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 198, 107, 0.8), transparent);
  transform: translateX(-120%);
  animation: shimmerLine 4s ease-in-out infinite;
}

.ticker span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 6vw, 5rem);
}

.trailer-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(155, 60, 49, 0.22), transparent 28rem),
    linear-gradient(180deg, rgba(10, 18, 16, 0.75), rgba(10, 18, 16, 0.3));
}

.trailer-copy p:not(.section-kicker) {
  color: var(--muted);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.platforms span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
}

.trailer-card {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  min-height: 24rem;
  border: 1px solid var(--line);
  padding: 0;
  color: inherit;
  cursor: url("assets/game-cursor.png") 5 2, pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 1.5rem 4rem var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.trailer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trailer-card:hover img {
  transform: scale(1.025);
}

.trailer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 198, 107, 0.42);
  box-shadow: 0 1.9rem 4.5rem rgba(0, 0, 0, 0.62);
}

.trailer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}

.play-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  animation: playPulse 2.2s ease-in-out infinite;
}

.play-mark::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 1.35rem;
  width: 0;
  height: 0;
  border-top: 0.9rem solid transparent;
  border-bottom: 0.9rem solid transparent;
  border-left: 1.3rem solid var(--amber);
}

.trailer-card strong {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.video-modal[hidden] {
  display: none;
}

.video-modal,
.legal-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  animation: logoRise 0.22s ease;
}

.video-backdrop,
.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 4, 0.82);
  backdrop-filter: blur(9px);
}

.video-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  border: 1px solid var(--line);
  background: #050807;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.72);
}

.intro-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-close {
  position: absolute;
  z-index: 2;
  top: -0.9rem;
  right: -0.9rem;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(7, 13, 12, 0.94);
  cursor: url("assets/game-cursor.png") 5 2, pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.legal-close {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  width: 2.35rem;
  height: 2.35rem;
  transform: translate(45%, -45%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 198, 107, 0.45);
  border-radius: 999px;
  padding: 0;
  color: var(--amber);
  background: rgba(7, 13, 12, 0.92);
  box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.34);
  cursor: url("assets/game-cursor.png") 5 2, pointer;
  font: 900 1.45rem/1 "Segoe UI", Arial, sans-serif;
}

.legal-close span:first-child {
  line-height: 1;
}

.legal-close:hover {
  transform: translate(45%, -45%) scale(1.04);
}

.legal-modal[hidden] {
  display: none;
}

.legal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  overflow: visible;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 35, 27, 0.98), rgba(7, 13, 12, 0.98)),
    radial-gradient(circle at top right, rgba(213, 170, 76, 0.15), transparent 22rem);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.72);
  padding: clamp(4.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.legal-dialog section {
  max-height: calc(min(82vh, 760px) - 6rem);
  overflow: auto;
}

.legal-dialog h2 {
  margin-bottom: 1.25rem;
}

.legal-dialog h3 {
  margin-top: 1.35rem;
  color: var(--amber);
}

.legal-dialog p {
  max-width: 72ch;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.split > div:first-child p:not(.section-kicker),
.media-section > div:first-child p:not(.section-kicker),
.release-panel p {
  color: var(--muted);
  max-width: 42rem;
}

.loop-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
}

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

.loop-grid article,
.feature-grid article,
.release-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 1rem 3rem var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.loop-grid article:hover,
.feature-grid article:hover,
.unit-track article:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 198, 107, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
}

.loop-grid article {
  min-height: 9rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.loop-grid span {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: auto;
}

.loop-grid p,
.feature-grid p,
figcaption {
  color: var(--muted);
}

.feature-band {
  background:
    linear-gradient(180deg, rgba(8, 16, 13, 0.1), rgba(8, 16, 13, 0.9)),
    radial-gradient(circle at right, rgba(155, 60, 49, 0.22), transparent 30rem);
}

.section-heading {
  max-width: 58rem;
}

.inline-art {
  margin-top: 2rem;
}

.wide-art {
  margin: 2rem 0 0;
  box-shadow: 0 1.5rem 4rem var(--shadow);
}

.wide-art + .feature-grid,
.wide-art + .unit-track {
  margin-top: 1rem;
}

.wide-art img {
  aspect-ratio: 21 / 9;
}

.units-art img {
  aspect-ratio: 16 / 7;
}

.feature-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid article {
  min-height: 14rem;
  padding: 1.25rem;
}

.units-section {
  background:
    linear-gradient(90deg, rgba(7, 13, 12, 0.95), rgba(20, 35, 27, 0.74)),
    radial-gradient(circle at left, rgba(213, 170, 76, 0.14), transparent 26rem);
}

.unit-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.unit-track article {
  min-height: 15rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.unit-track span {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 6px;
  background: rgba(213, 170, 76, 0.16);
  color: var(--amber);
  font-weight: 950;
}

.unit-track p {
  color: var(--muted);
}

.media-section {
  display: grid;
  gap: 2rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.media-grid figure {
  grid-column: span 2;
}

.media-grid figure:nth-child(-n + 2) {
  grid-column: span 3;
}

figure {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

figure:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

figcaption {
  min-height: 4rem;
  padding: 0.8rem 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

figcaption a {
  color: var(--amber);
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .unit-track {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .media-grid figure,
  .media-grid figure:nth-child(-n + 2) {
    grid-column: auto;
  }
}

.release {
  background:
    linear-gradient(rgba(8, 16, 13, 0.86), rgba(8, 16, 13, 0.86)),
    url("assets/the-new-era-gameplay.png") center / cover;
}

.release-panel {
  width: min(760px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.signup {
  margin-top: 2rem;
}

.signup label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--amber);
  font-weight: 800;
}

.signup div {
  display: flex;
  gap: 0.75rem;
}

.signup input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  cursor: text;
  padding: 0 1rem;
  font: inherit;
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.store-actions,
.legal-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.store-actions a,
.legal-actions button,
.footer-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: url("assets/game-cursor.png") 5 2, pointer;
  font: inherit;
}

.legal-actions {
  margin-top: 0.85rem;
}

.legal-actions button,
.footer-links button {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}

.legal-actions button:hover,
.footer-links button:hover {
  color: var(--ink);
  border-color: rgba(240, 198, 107, 0.38);
  transform: translateY(-2px);
}

.footer {
  padding: 2rem clamp(1rem, 6vw, 5rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #070d0c;
}

.footer p {
  margin: 0;
}

.footer-links {
  margin-top: 1rem;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .ticker,
  .split,
  .trailer-section,
  .feature-grid,
  .unit-track,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .wide-art img,
  .units-art img {
    aspect-ratio: 16 / 9;
  }

  .ticker span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticker span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-actions,
  .signup div,
  .legal-actions,
  .footer-links {
    flex-direction: column;
  }

  .button,
  .signup button,
  .legal-actions button,
  .footer-links button {
    width: 100%;
  }

  .floating-cta {
    left: 1rem;
    right: 1rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  figcaption {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-art,
  .hero-logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
