*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #050505;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: "Inter", Inter, sans-serif;
  font-weight: 400;
  color: #ece8e1;
  min-height: 100svh;
  background-color: #050505;
  line-height: 1.65;
}

a {
  color: #d4af5a;
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: #fff;
}

::selection {
  background: #b8860b;
  color: #fff;
}

h1, h2, h3 {
  font-family: "Cinzel", "Syne", serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

strong {
  color: #fff;
  font-weight: 600;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0) 100%);
  transition: background 200ms ease, box-shadow 200ms ease, padding 200ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 175, 90, 0.08);
}

.site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  color: #fff;
}

.site-logo:hover {
  color: #fff;
}

.site-logo-img img,
.brand-logo img,
.landing-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.site-logo-img img {
  width: 9.5rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, 0.75);
}

.site-nav a.is-active {
  color: #d4af5a;
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(212, 175, 90, 0.25);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.site-nav-toggle-bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  margin: 0 auto;
  background: #ece8e1;
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav a:hover {
  color: #fff;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 10;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(212, 175, 90, 0.12);
  background: #030303;
}

.site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 1.5rem 2rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, 0.45);
}

.site-footer-nav a:hover {
  color: #d4af5a;
}

.site-footer-title {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.35rem;
}

.site-footer-tag {
  display: block;
  font-size: 0.8125rem;
  color: rgba(236, 232, 225, 0.45);
}

.site-footer-publisher {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(236, 232, 225, 0.35);
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(236, 232, 225, 0.45);
}

.site-footer-links a {
  color: rgba(212, 175, 90, 0.85);
}

/* Landing layout */

.landing-body-wrapper {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.landing-main {
  flex: 1;
}

.landing-section {
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.landing-section + .landing-section {
  border-top: 1px solid rgba(212, 175, 90, 0.06);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.landing-section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.landing-section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4af5a;
}

.landing-section-header h2,
.landing-split-copy h2,
.landing-objective-copy h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  color: #fff;
}

.landing-section-header p,
.landing-split-copy p,
.landing-objective-copy p {
  margin: 0 0 1rem;
  color: rgba(236, 232, 225, 0.72);
}

.landing-section-header p:last-child,
.landing-split-copy p:last-child,
.landing-objective-copy p:last-child {
  margin-bottom: 0;
}

/* Hero */

.landing-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
}

.landing-hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.58) 26%, rgba(5, 5, 5, 0.1) 50%, rgba(5, 5, 5, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.32) 0%, transparent 26%, rgba(5, 5, 5, 0.12) 62%, rgba(5, 5, 5, 0.7) 88%, #050505 100%);
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.landing-hero-inner {
  max-width: 32rem;
}

.landing-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d4af5a;
}

.landing-title {
  margin: 0 0 1.25rem;
  line-height: 0;
}

.landing-logo {
  display: block;
  width: fit-content;
  max-width: min(100%, 26rem);
}

.landing-logo img {
  width: auto;
  height: auto;
  max-width: min(100%, 26rem);
  aspect-ratio: 1024 / 297;
  object-fit: contain;
}

.landing-lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: rgba(236, 232, 225, 0.88);
}

.landing-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(212, 175, 90, 0.75);
}

.landing-stats {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.landing-stats li {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, 0.55);
}

.landing-stats strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #d4af5a;
  letter-spacing: 0.02em;
}

.landing-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, 0.45);
}

.landing-scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(212, 175, 90, 0.5), transparent);
  animation: scroll-cue-pulse 2s ease-in-out infinite;
}

@keyframes scroll-cue-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-scroll-cue::after {
    animation: none;
  }
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #050505;
  background: linear-gradient(180deg, #e8c872 0%, #c9a227 100%);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.25);
}

.btn-primary:hover {
  color: #050505;
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 90, 0.35);
}

.btn-secondary:hover {
  color: #fff;
  border-color: rgba(212, 175, 90, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

/* Objective */

.landing-objective {
  padding-top: 0;
  padding-bottom: 4rem;
}

.landing-objective-inner {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(212, 175, 90, 0.22);
  background:
    linear-gradient(135deg, rgba(20, 16, 10, 0.95), rgba(8, 8, 8, 0.98)),
    radial-gradient(ellipse at top left, rgba(201, 162, 39, 0.08), transparent 55%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.landing-objective-copy h2 {
  max-width: 20ch;
}

/* Split sections */

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 1rem 1.5rem;
  align-items: center;
}

.landing-split-reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
}

.landing-split-reverse .landing-split-copy {
  order: 2;
}

.landing-split-reverse .landing-split-media {
  order: 1;
}

.landing-split-copy {
  position: relative;
  z-index: 2;
}

.landing-split-copy h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
  color: #d4af5a;
}

.landing-split-media {
  position: relative;
  z-index: 1;
}

.landing-split-media img {
  width: 100%;
  height: auto;
  display: block;
}

.landing-split-media-art {
  position: relative;
  margin: -1.5rem 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-split-reverse .landing-split-media-art {
  margin: -1.5rem 0;
}

.landing-split-media-art picture {
  display: block;
  width: 100%;
}

.landing-split-media-art img {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  display: block;
  object-fit: unset;
  object-position: unset;
  border-radius: 0;
  box-shadow: none;
}

.landing-split:not(.landing-split-reverse) .landing-split-media-art img {
  margin-left: 0;
}

.landing-split-reverse .landing-split-media-art img {
  margin-left: 0;
}

/* Pre-cropped behemoth — full image, no extra crop */
.landing-split-reverse .landing-split-media-art--behemoth img {
  width: 100%;
  margin-left: 0;
  height: auto;
  object-fit: unset;
}

/* Dissolve hard edges into black — single vignette + content-side fade */
.landing-split-media-art::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  pointer-events: none;
}

.landing-split:not(.landing-split-reverse) .landing-split-media-art::after {
  background:
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.95) 10%, rgba(5, 5, 5, 0.55) 24%, rgba(5, 5, 5, 0.15) 40%, transparent 55%),
    linear-gradient(270deg, #050505 0%, rgba(5, 5, 5, 0.7) 10%, rgba(5, 5, 5, 0.2) 28%, transparent 42%),
    linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.65) 8%, transparent 22%),
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.7) 10%, transparent 26%),
    radial-gradient(ellipse 110% 100% at 65% 45%, transparent 32%, rgba(5, 5, 5, 0.35) 58%, #050505 92%);
}

.landing-split-reverse .landing-split-media-art::after {
  background:
    linear-gradient(270deg, #050505 0%, rgba(5, 5, 5, 0.95) 10%, rgba(5, 5, 5, 0.55) 24%, rgba(5, 5, 5, 0.15) 40%, transparent 55%),
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.7) 10%, rgba(5, 5, 5, 0.2) 28%, transparent 42%),
    linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.65) 8%, transparent 22%),
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.7) 10%, transparent 26%),
    radial-gradient(ellipse 110% 100% at 35% 45%, transparent 32%, rgba(5, 5, 5, 0.35) 58%, #050505 92%);
}

/* Must come after the generic reverse fade — compound class wins specificity */
.landing-split-reverse .landing-split-media-art.landing-split-media-art--behemoth::after {
  background:
    linear-gradient(270deg, #050505 0%, rgba(5, 5, 5, 0.7) 8%, rgba(5, 5, 5, 0.2) 22%, transparent 38%),
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.45) 10%, transparent 26%),
    linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.25) 4%, transparent 10%),
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.55) 10%, transparent 24%),
    radial-gradient(ellipse 115% 100% at 48% 52%, transparent 42%, rgba(5, 5, 5, 0.22) 72%, #050505 96%);
}

.landing-card-media img {
  max-width: 28rem;
  margin-left: auto;
}

/* Decks */

.landing-decks {
  background: linear-gradient(180deg, #050505 0%, #080706 100%);
}

.landing-section-header-center {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.deck-card {
  --deck-accent: #d4af5a;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(212, 175, 90, 0.12);
  background: rgba(10, 8, 6, 0.75);
  overflow: hidden;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.deck-card:hover,
.deck-card:focus-within,
.deck-card.is-flipped {
  border-color: color-mix(in srgb, var(--deck-accent) 35%, transparent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--deck-accent) 15%, transparent);
}

.deck-card--masters-of-the-first-forge {
  --deck-accent: #c97a2b;
}

.deck-card--creators-of-false-eden {
  --deck-accent: #d4af5a;
}

.deck-card--watchers-of-the-sky {
  --deck-accent: #5eb3e8;
}

.deck-card--rulers-of-chaos {
  --deck-accent: #4a7c9b;
}

.deck-card-art {
  position: relative;
  aspect-ratio: 1544 / 2118;
  overflow: hidden;
  background: #000;
}

.deck-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.deck-card-art-front {
  position: relative;
  z-index: 1;
  transition: opacity 250ms ease;
}

.deck-card-art-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 250ms ease;
}

.deck-card.is-flipped .deck-card-art-front {
  opacity: 0;
  pointer-events: none;
}

.deck-card.is-flipped .deck-card-art-back {
  opacity: 1;
}

@media (hover: hover) {
  .deck-card-art:hover .deck-card-art-front {
    opacity: 0;
    pointer-events: none;
  }

  .deck-card-art:hover .deck-card-art-back {
    opacity: 1;
  }
}

.deck-card-flip-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

@media (hover: none) {
  .deck-card-flip-hint {
    opacity: 1;
  }
}

.deck-card-elements {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
}

.deck-card-element {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deck-accent);
}

.deck-card-element img {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
  display: block;
}

.deck-card-element-sep {
  font-size: 0.75rem;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--deck-accent) 70%, transparent);
}

.deck-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 2px solid var(--deck-accent);
}

.deck-card-buy {
  width: 100%;
  text-align: center;
}

.deck-card-buy.is-coming-soon {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.deck-card-buy.is-coming-soon em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Pillars */

.landing-pillars {
  background: linear-gradient(180deg, #050505 0%, #0a0908 100%);
}

.landing-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.landing-pillar {
  padding: 1.75rem;
  border: 1px solid rgba(212, 175, 90, 0.12);
  background: rgba(12, 10, 8, 0.65);
}

.landing-pillar-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-family: "Cinzel", serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #050505;
  background: linear-gradient(180deg, #e8c872 0%, #c9a227 100%);
  border-radius: 2px;
}

.landing-pillar h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  color: #fff;
}

.landing-pillar p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(236, 232, 225, 0.68);
}

/* Battlefield rows */

.battlefield-diagram {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(212, 175, 90, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.battlefield-diagram-label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 175, 90, 0.65);
}

.battlefield-diagram-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.battlefield-diagram-row:last-child {
  margin-bottom: 0;
}

.battlefield-diagram-row--armor {
  grid-template-columns: repeat(3, 1fr);
}

.battlefield-diagram-row--weapons {
  grid-template-columns: 2fr 1fr;
}

.battlefield-diagram-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(236, 232, 225, 0.75);
  border: 1px dashed rgba(212, 175, 90, 0.25);
  background: rgba(0, 0, 0, 0.25);
}

.battlefield-diagram-row--armor span {
  border-color: rgba(201, 162, 39, 0.35);
}

.battlefield-diagram-row--weapons span {
  border-color: rgba(94, 179, 232, 0.25);
}

.landing-battlefield-rows {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.landing-battlefield-row {
  padding: 1.25rem;
  border-left: 2px solid #c9a227;
  background: rgba(255, 255, 255, 0.02);
}

.landing-battlefield-row p {
  margin: 0 0 1rem;
}

.card-type-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.card-type-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.5rem;
}

.card-type-icon-item img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  display: block;
}

.card-type-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  opacity: 0.65;
}

.card-type-icon-label {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(236, 232, 225, 0.55);
  max-width: 5.5rem;
  line-height: 1.3;
}

.landing-battlefield-row p:last-child {
  margin-bottom: 0;
}

/* Turn phases */

.landing-phase-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  color: rgba(236, 232, 225, 0.78);
}

.landing-phase-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.landing-phase-list li:last-child {
  margin-bottom: 0;
}

.landing-deck-note {
  font-size: 0.875rem;
  color: rgba(212, 175, 90, 0.75);
}

/* Elements */

.landing-elements {
  overflow: hidden;
  background: #030303;
}

.landing-element-grid {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.landing-element-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  border: 1px solid rgba(212, 175, 90, 0.12);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.landing-element-item:hover {
  transform: translateY(-2px);
}

.landing-element-item--fire:hover { border-color: rgba(201, 122, 43, 0.45); box-shadow: 0 8px 24px rgba(201, 122, 43, 0.12); }
.landing-element-item--water:hover { border-color: rgba(74, 124, 155, 0.45); box-shadow: 0 8px 24px rgba(74, 124, 155, 0.12); }
.landing-element-item--earth:hover { border-color: rgba(139, 90, 43, 0.45); box-shadow: 0 8px 24px rgba(139, 90, 43, 0.12); }
.landing-element-item--wind:hover { border-color: rgba(120, 140, 160, 0.45); box-shadow: 0 8px 24px rgba(120, 140, 160, 0.12); }
.landing-element-item--lightning:hover { border-color: rgba(212, 175, 55, 0.45); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12); }
.landing-element-item--nature:hover { border-color: rgba(76, 140, 74, 0.45); box-shadow: 0 8px 24px rgba(76, 140, 74, 0.12); }
.landing-element-item--light:hover { border-color: rgba(232, 200, 114, 0.45); box-shadow: 0 8px 24px rgba(232, 200, 114, 0.12); }
.landing-element-item--void:hover { border-color: rgba(120, 80, 160, 0.45); box-shadow: 0 8px 24px rgba(120, 80, 160, 0.12); }

.landing-element-grid img,
.landing-element-universal img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
  display: block;
}

.landing-element-grid span {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, 0.85);
}

.landing-element-universal {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 28rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(212, 175, 90, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.landing-element-universal-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4af5a;
}

.landing-element-note {
  max-width: 36rem;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(236, 232, 225, 0.55);
}

.landing-elements-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(38vw, 22rem);
  opacity: 0.22;
  pointer-events: none;
}

.landing-elements-art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(180deg, transparent, #000 25%);
}

/* Card showcase — horizontal scroller */

.landing-cards {
  overflow: hidden;
  background: linear-gradient(180deg, #050505 0%, #080808 100%);
  padding-bottom: 4rem;
}

.landing-cards-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
  margin-bottom: 2rem;
}

.landing-cards-header-copy {
  max-width: 40rem;
}

.landing-cards-header-copy h2 {
  margin-bottom: 0.75rem;
}

.landing-cards-header-copy p {
  margin-bottom: 0;
}

.card-scroller-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.card-scroller-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(212, 175, 90, 0.35);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease, color 150ms ease;
}

.card-scroller-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 90, 0.65);
  color: #e8c872;
}

.card-scroller-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.card-scroller {
  position: relative;
}

.card-scroller-track {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 90, 0.35) transparent;
  padding: 1rem max(1.5rem, calc((100vw - 72rem) / 2 + 1.5rem)) 1.5rem;
  outline: none;
  cursor: grab;
}

.card-scroller-track.is-dragging,
.card-scroller-track.is-jumping {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.card-scroller-track.is-jumping {
  cursor: grab;
}

.card-scroller-track::-webkit-scrollbar {
  height: 6px;
}

.card-scroller-track::-webkit-scrollbar-track {
  background: transparent;
}

.card-scroller-track::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 90, 0.3);
  border-radius: 3px;
}

.card-scroller-track:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 90, 0.4);
}

.card-showcase-item {
  flex: 0 0 min(16rem, 72vw);
  width: min(16rem, 72vw);
  margin: 0;
  scroll-snap-align: start;
}

.card-showcase-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  background: #0a0a0a;
  aspect-ratio: 735 / 1024;
}

.card-showcase-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110%;
  height: auto;
  max-width: none;
  margin: 0;
  transform: translate(-50%, -50%);
}

.card-showcase-caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.15rem 0;
}

.card-showcase-type {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 90, 0.7);
}

.card-showcase-name {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: rgba(236, 232, 225, 0.9);
}

/* Status effects */

.landing-statuses {
  background: #030303;
}

.status-effect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.status-effect-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(212, 175, 90, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 200ms ease, background 200ms ease;
}

.status-effect-item:hover {
  border-color: rgba(212, 175, 90, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.status-effect-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
}

.status-effect-copy h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.35rem;
  color: #d4af5a;
}

.status-effect-copy p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(236, 232, 225, 0.65);
}

/* Rulebook CTA — image already fades top/bottom; keep side blend only */

.landing-rulebook-cover picture {
  display: block;
  width: 100%;
}

@media (min-width: 901px) {
  .landing-rulebook .landing-section-inner.landing-split {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
    gap: 0.5rem 1rem;
  }

  .landing-rulebook-cover {
    margin: -3rem calc(-1 * max(1.5rem, (100vw - 72rem) / 2 + 1.5rem)) -3rem 0;
  }

  .landing-rulebook-cover img {
    width: 128%;
    max-width: none;
    margin-left: auto;
    display: block;
    transform: translateX(10%);
  }

  .landing-split .landing-split-media-art.landing-rulebook-cover::after {
    background:
      linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 1) 14%, rgba(5, 5, 5, 0.45) 30%, transparent 52%);
  }
}

/* 404 */

.error-body-wrapper {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-content-error {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.page-content-error h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-content-error p {
  margin: 0;
  color: rgba(236, 232, 225, 0.75);
}

/* Responsive */

@media (max-width: 900px) {
  .site-nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.5rem;
    left: 1.5rem;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0;
    border: 1px solid rgba(212, 175, 90, 0.15);
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-header-inner {
    position: relative;
  }

  .landing-hero-bg img {
    object-position: 62% 55%;
  }

  .landing-hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.22) 0%, rgba(5, 5, 5, 0.28) 30%, rgba(5, 5, 5, 0.52) 64%, rgba(5, 5, 5, 0.88) 88%, #050505 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.28) 48%, transparent 100%);
  }

  .landing-hero-content {
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }

  .landing-scroll-cue {
    display: none;
  }

  .landing-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-rulebook .landing-section-inner.landing-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-split-media-art {
    margin: 0;
    overflow: hidden;
  }

  .landing-split-reverse .landing-split-media-art {
    margin: 0;
  }

  .landing-split-media-art img,
  .landing-split:not(.landing-split-reverse) .landing-split-media-art img,
  .landing-split-reverse .landing-split-media-art img,
  .landing-split-reverse .landing-split-media-art--behemoth img {
    width: 100%;
    height: auto;
    margin-left: 0;
  }

  .landing-split .landing-split-media-art::after,
  .landing-split-reverse .landing-split-media-art::after {
    background:
      linear-gradient(90deg, #050505 0%, transparent 16%, transparent 84%, #050505 100%),
      linear-gradient(180deg, #050505 0%, transparent 18%),
      linear-gradient(0deg, #050505 0%, transparent 22%),
      radial-gradient(ellipse 90% 85% at 50% 50%, transparent 45%, rgba(5, 5, 5, 0.45) 75%, #050505 100%);
  }

  .landing-split-reverse .landing-split-media-art.landing-split-media-art--behemoth::after {
    background:
      linear-gradient(270deg, #050505 0%, rgba(5, 5, 5, 0.7) 8%, rgba(5, 5, 5, 0.2) 22%, transparent 38%),
      linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.45) 10%, transparent 26%),
      linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.25) 4%, transparent 10%),
      linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.55) 10%, transparent 24%),
      radial-gradient(ellipse 115% 100% at 48% 52%, transparent 42%, rgba(5, 5, 5, 0.22) 72%, #050505 96%);
  }

  .landing-split .landing-split-media-art.landing-rulebook-cover::after {
    background:
      linear-gradient(90deg, #050505 0%, transparent 20%);
  }

  .landing-rulebook-cover {
    margin: 0;
  }

  .landing-rulebook-cover img {
    width: 100%;
    transform: none;
  }

  .landing-cards-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .landing-split-reverse .landing-split-copy,
  .landing-split-reverse .landing-split-media {
    order: unset;
  }

  .landing-pillar-grid {
    grid-template-columns: 1fr;
  }

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

  .status-effect-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-element-universal {
    flex-direction: column;
    text-align: center;
    max-width: none;
  }

  .landing-card-media img {
    margin: 0 auto;
  }

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

  .landing-elements-art {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 0.5rem 0.875rem;
  }

  .site-nav a {
    font-size: 0.75rem;
  }

  .site-logo-img img {
    width: 7.25rem;
  }

  .landing-logo {
    max-width: min(100%, 19rem);
  }

  .landing-logo img {
    max-width: min(100%, 19rem);
  }

  .card-showcase-item {
    flex-basis: min(14.5rem, 78vw);
    width: min(14.5rem, 78vw);
  }

  .card-scroller-track {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .landing-section {
    padding: 3.5rem 1.25rem;
  }

  .landing-hero-content {
    padding-top: 5.5rem;
  }

  .landing-objective-inner {
    padding: 1.5rem;
  }
}
