/* =========================================================
   SOLDERIA: FALL OF KINGS — styles.css
   Royal blue and gold medieval 4X landing page.
   Mobile-first (portrait only), scales to ultrawide.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --gold:        #cbaa6e;
  --gold-2:      #cbaa6e;
  --gold-bright: #f3e1b0;
  --bg-0:        #061B33;
  --bg-1:        #0A2A4D;
  --bg-2:        #123F6F;
  --ink:         #F6EFD9;
  --ink-soft:    #D8E7F6;
  --text:        var(--ink);
  --text-soft:   #C7D8EA;
  --text-dim:    #9DB5CC;

  --gold-grad:   linear-gradient(180deg, var(--gold-bright), var(--gold-2));
  --line-gold:   linear-gradient(90deg, transparent, var(--gold), transparent);

  --shadow-soft: 0 14px 34px rgba(1,8,18,.32);
  --shadow-gold: 0 10px 24px rgba(203,170,110,.28);
  --radius:      8px;
  --maxw:        1280px;

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, #08203D 0%, #0D3560 520px),
    var(--bg-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  overflow: hidden;
}

main::before {
  content: "";
  position: absolute;
  inset: 100svh 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,27,51,.74) 0%, rgba(8,35,64,.9) 24%, rgba(9,42,77,.88) 62%, rgba(4,17,32,.95) 100%),
    url("assets/Golden Fields.png") center top / cover no-repeat;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: .02em; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 1000;
  background: var(--gold); color: #071321; padding: 10px 16px;
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Ember canvas ---------- */
#ember-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; opacity: .16;
}

/* ---------- Gold text + decorative rule ---------- */
.gold-text, .hero__title-main, .section__title, .countdown__title {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: .82rem;
  padding: 12px 26px; border-radius: 8px; cursor: pointer; border: 0;
  position: relative; overflow: hidden; transition: transform .2s, box-shadow .25s, filter .2s;
  white-space: nowrap;
}
.btn--lg { padding: 15px 38px; font-size: .92rem; }
.btn--gold {
  background: linear-gradient(180deg, #f3e1b0 0%, #e2c995 48%, #cbaa6e 100%); color: #071321;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.35);
  border: 1px solid rgba(243,225,176,.6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(243,225,176,.48); filter: brightness(1.06); }
.btn--ghost {
  background: rgba(8,31,58,.72); color: var(--ink);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 1px solid rgba(243,225,176,.42);
}
.btn--ghost:hover { background: rgba(15,55,96,.88); border-color: var(--gold); transform: translateY(-2px); }
/* shine sweep */
.btn--gold::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
}
.btn--gold:hover::after { animation: shine .9s ease; }
@keyframes shine { to { left: 130%; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(5,19,36,.92) 0%, rgba(8,31,58,.78) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
          backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid rgba(203,170,110,.28);
  box-shadow: 0 8px 24px rgba(1,8,18,.3), inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
/* gold gradient accent line under the bar */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243,225,176,.56) 18%, var(--gold-bright) 50%, rgba(243,225,176,.56) 82%, transparent);
  opacity: .8; pointer-events: none;
}
.nav--scrolled {
  background: linear-gradient(180deg, rgba(4,16,31,.96) 0%, rgba(8,31,58,.9) 100%);
  border-bottom-color: rgba(243,225,176,.34);
  box-shadow: 0 8px 26px rgba(1,8,18,.38), inset 0 1px 0 rgba(255,255,255,.1);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(13px + env(safe-area-inset-top)) calc(22px + env(safe-area-inset-right)) 13px calc(22px + env(safe-area-inset-left));
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 7px rgba(0,0,0,.42)); }
.footer__logo { height: 70px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.38)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; color: var(--gold-bright); }
.brand__name--lg { font-size: 1.6rem; }
.brand__sub { font-family: var(--font-display); font-size: .58rem; letter-spacing: .34em; color: var(--gold-2); text-transform: uppercase; margin-top: 3px; }

.nav__menu { display: none; margin-left: auto; gap: 26px; }
.nav__link {
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold-grad); transition: width .25s;
}
.nav__link:hover, .nav__link.active { color: var(--gold-bright); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__burger {
  margin-left: auto; width: 44px; height: 44px; background: transparent; border: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav__burger span { display: block; height: 2px; background: var(--gold-2); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 99; width: min(82vw, 340px); height: 100dvh;
  background: linear-gradient(160deg, rgba(5,19,36,.97), rgba(10,42,77,.94));
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  border-left: 1px solid rgba(243,225,176,.32);
  padding: calc(88px + env(safe-area-inset-top)) calc(26px + env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) 26px;
  transform: translateX(100%); transition: transform .32s ease;
  display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: flex; }   /* keep transitionable */
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__link {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-soft); padding: 14px 6px; border-bottom: 1px solid rgba(243,225,176,.15);
}
.mobile-menu__link:hover { color: var(--gold-bright); }
.mobile-scrim { position: fixed; inset: 0; z-index: 98; background: rgba(1,8,18,.56); backdrop-filter: blur(2px); }
.mobile-scrim[hidden] { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: stretch; justify-content: center; text-align: left;
  padding: calc(120px + env(safe-area-inset-top)) 18px calc(60px + env(safe-area-inset-bottom)); overflow: hidden; z-index: 2;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-0); }
.hero__sky {
  position: absolute; inset: 0;
  background: url("assets/main-image.png") center top / cover no-repeat;
}
/* unused legacy layers — image already contains castle + both figures */
.hero__castle, .hero__king { display: none; }
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(8,31,58,.18) 0%, rgba(6,27,51,.34) 52%, rgba(5,19,36,.58) 100%),
    linear-gradient(180deg, rgba(5,19,36,.2) 0%, transparent 18%),
    linear-gradient(0deg, var(--bg-0) 0%, rgba(6,27,51,.42) 14%, transparent 42%);
}

.hero__content {
  position: relative; width: min(860px, 94vw); max-width: none;
  margin: 0 auto;
  text-align: center;
}
.hero__crown { display: none; }
.hero__title { display: flex; flex-direction: column; align-items: center; margin: 0; }
.hero__logo { width: min(620px, 88vw); height: auto; display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); }
.hero__title-main {
  font-size: clamp(3rem, 13vw, 8.5rem); font-weight: 900; letter-spacing: .04em;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero__title-sub {
  font-size: clamp(1rem, 4.6vw, 2.4rem); letter-spacing: .42em; color: var(--gold);
  margin-top: -2px; text-transform: uppercase; font-weight: 600;
}
.hero__tagline {
  margin: 0 0 6px; font-family: var(--font-display); letter-spacing: .16em;
  color: var(--gold-bright); font-size: clamp(.85rem, 2.6vw, 1.1rem); text-transform: uppercase;
  text-shadow: 0 2px 2px rgba(0,0,0,.78), 0 0 16px rgba(0,0,0,.72);
}
.hero__desc {
  margin-top: 8px; color: var(--ink); font-weight: 600; font-size: clamp(1rem, 3vw, 1.18rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.48);
}
.hero__actions { margin-top: 24px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__stores {
  margin-top: 22px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.hero__note {
  margin-top: 14px; font-size: .9rem; color: var(--gold-bright); font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.8); line-height: 1.5;
}
.hero__note span { display: inline-block; color: var(--text-soft); font-weight: 400; font-size: .82rem; }
/* countdown moved into the hero — compact */
.hero__countdown { width: min(820px, 100%); margin: 20px auto 0; max-width: none; }
.hero__countdown .frame { padding: 22px 34px; }
.hero__countdown .countdown__clock { margin-top: 14px; }
.hero__countdown .cd-num { font-size: clamp(1.5rem, 5vw, 2.5rem); }
.hero__countdown .cd-unit { min-width: clamp(54px, 11vw, 96px); }
.hero__countdown .cd-sep { font-size: clamp(1.1rem, 4vw, 1.9rem); }
.store { position: relative; display: inline-flex; border-radius: 11px; transition: transform .2s, filter .2s; }
.store img {
  height: 52px; width: auto; display: block; border-radius: 8px;
  border: 1px solid rgba(243,225,176,.38);
  box-shadow: 0 8px 18px rgba(1,8,18,.36);
}
a.store:hover { transform: translateY(-3px); filter: brightness(1.08); }
a.store:hover img { border-color: var(--gold); box-shadow: 0 8px 22px rgba(243,225,176,.3); }

.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(203,170,110,.6); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--gold-bright); border-radius: 2px; animation: scrolldot 1.6s ease infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(14px)} 100%{opacity:0} }

/* ---------- Section shell ---------- */
.section { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 72px 18px; }
.section__head { text-align: center; margin-bottom: 42px; }
.section__title { font-size: clamp(1.6rem, 5.5vw, 2.8rem); position: relative; display: inline-block; }
.section__title::after { content: ""; display: block; height: 1px; width: 48%; margin: 14px auto 0; background: var(--line-gold); }
.section__subtitle { color: var(--text-dim); font-size: clamp(.92rem, 2.6vw, 1.05rem); margin-top: 4px; }

/* ---------- Countdown ---------- */
.countdown { position: relative; z-index: 2; padding: 40px 18px 10px; max-width: 900px; margin: 0 auto; }
.frame {
  position: relative; text-align: center; padding: 34px 22px;
  background: linear-gradient(180deg, rgba(10,42,77,.9), rgba(4,17,32,.92));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(243,225,176,.5); border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(1,8,18,.36), inset 0 1px 0 rgba(255,255,255,.12);
}
.frame::before, .frame::after {
  display: none;
}
.countdown__kicker { font-family: var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-size: clamp(.7rem, 2.4vw, .9rem); margin-top: 4px; }
.countdown__title { font-size: clamp(1.4rem, 5.5vw, 2.4rem); margin-top: 6px; }
.countdown__title:first-child { margin-top: 0; }
.countdown__clock { display: flex; align-items: flex-start; justify-content: center; gap: clamp(6px, 2vw, 18px); margin-top: 22px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(54px, 18vw, 92px); }
.cd-num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 9vw, 3.6rem);
  color: var(--gold-bright); line-height: 1; text-shadow: 0 3px 12px rgba(0,0,0,.28);
  font-variant-numeric: tabular-nums;
}
.cd-label { font-size: clamp(.58rem, 2vw, .72rem); letter-spacing: .2em; text-transform: uppercase; color: #C7D8EA; margin-top: 8px; }
.cd-sep { font-family: var(--font-display); font-size: clamp(1.4rem, 6vw, 2.6rem); color: var(--gold-2); line-height: 1.2; }

/* ---------- Key features strip ---------- */
.keyfeatures { position: relative; z-index: 2; max-width: var(--maxw); margin: 30px auto 0; padding: 0 18px; }
.keyfeatures__grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  background: linear-gradient(180deg, rgba(10,42,77,.9), rgba(4,17,32,.94));
  border: 1px solid rgba(243,225,176,.36); border-radius: var(--radius); padding: 14px;
  box-shadow: 0 18px 42px rgba(1,8,18,.34);
}
.keyfeat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: var(--radius); transition: background .2s; }
.keyfeat:hover { background: rgba(243,225,176,.1); }
.keyfeat__row { display: flex; align-items: center; gap: 12px; }
.keyfeat__icon {
  flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--radius);
  color: var(--gold); background: radial-gradient(circle at 35% 30%, rgba(243,225,176,.24), rgba(3,16,31,.86));
  border: 1px solid rgba(243,225,176,.3);
}
.keyfeat__img { width: 40px; height: 40px; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
/* tall/narrow icon (castle) — scale up so it has the same visual weight */
.keyfeat__icon { overflow: visible; }
.keyfeat__img--lg { width: auto; height: 62px; max-width: 62px; transform: translateY(-5px); }
.keyfeat h3 { font-size: 1rem; color: var(--gold-bright); letter-spacing: .04em; }
.keyfeat p { font-size: .85rem; color: #C7D8EA; line-height: 1.45; }

/* ---------- Core gameplay grid ---------- */
.gameplay-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(13,53,96,.96), rgba(5,21,39,.96));
  border: 1px solid rgba(243,225,176,.24);
  box-shadow: 0 18px 42px rgba(1,8,18,.32); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.game-card:hover, .game-card:focus-within {
  transform: translateY(-4px); border-color: rgba(243,225,176,.42);
  box-shadow: 0 22px 48px rgba(1,8,18,.42);
}
.game-card__art { aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative; }
.game-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(5,19,36,.76)); }
.game-card__body { padding: 16px 18px 20px; position: relative; }
.game-card__body h3 { font-size: 1.15rem; color: var(--gold); }
.game-card__body p { margin-top: 6px; color: var(--text-dim); font-size: .9rem; }

/* gameplay scene art (cropped from concept) */
.game-card__art[data-art="city"]      { background-image: url("assets/city building.png"); }
.game-card__art[data-art="army"]      { background-image: url("assets/command armies.png"); }
.game-card__art[data-art="trade"]     { background-image: url("assets/gather and trade.png"); }
.game-card__art[data-art="research"]  { background-image: url("assets/research and tech.png"); }
.game-card__art[data-art="diplomacy"] { background-image: url("assets/aliances.png"); }
.game-card__art[data-art="conquest"]  { background-image: url("assets/world-siege.png"); }
/* faint top sheen so real photos read as premium cards */
.game-card__art::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 35%);
}

/* ---------- Rewards ---------- */
.section--rewards {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(25,92,148,.34), transparent 72%);
}
.launch-card-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px;
}
.launch-info-card {
  display: grid; justify-items: center; align-content: start;
  min-height: 100%; padding: 22px 18px 24px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13,53,96,.96), rgba(5,21,39,.96));
  border: 1px solid rgba(243,225,176,.26);
  box-shadow: 0 18px 42px rgba(1,8,18,.3);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.launch-info-card:hover {
  transform: translateY(-4px); border-color: rgba(243,225,176,.44);
  box-shadow: 0 22px 48px rgba(1,8,18,.4);
}
.launch-info-card img {
  width: 96px; height: 72px; object-fit: contain; margin-bottom: 12px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.34));
}
.launch-info-card--wide {
  background:
    linear-gradient(180deg, rgba(203,170,110,.13), rgba(13,53,96,.96) 48%, rgba(5,21,39,.96));
  border-color: rgba(243,225,176,.34);
}
.launch-info-card h3 { color: var(--gold-bright); font-size: 1.08rem; letter-spacing: .04em; text-shadow: none; }
.launch-info-card p { margin-top: 8px; color: var(--text-soft); font-size: .9rem; text-shadow: none; }
.launch-info-card small {
  display: block; margin-top: 12px; padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(243,225,176,.24);
  color: var(--gold-bright); font-size: .78rem;
}
.launch-disclaimer {
  display: flex; justify-content: center;
  margin-top: 16px; color: var(--text-dim); text-align: center;
  font-size: .86rem;
}

/* ---------- World slider ---------- */
.slider { position: relative; }
.slider__stage { position: relative; padding: 0 42px; }
.slider__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 26px 6px 30px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 6px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 88%; scroll-snap-align: center; position: relative;
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(243,225,176,.34);
  box-shadow: 0 20px 50px rgba(1,8,18,.38);
  background: rgba(6,27,51,.82);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.slide:hover,
.slide:focus-within {
  transform: scale(1.035);
  z-index: 2;
  border-color: rgba(243,225,176,.64);
  box-shadow: 0 26px 64px rgba(1,8,18,.52), 0 0 28px rgba(203,170,110,.18);
}
.slide__button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  color: inherit; background: transparent; overflow: hidden;
}
.slide__img {
  width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover;
  transition: transform .55s ease, filter .28s ease;
}
.slide__button::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, transparent 62%, rgba(5,19,36,.64));
}
.slide:hover .slide__img,
.slide:focus-within .slide__img { transform: scale(1.06); filter: saturate(1.08) contrast(1.04); }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-bright); font-size: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,.7);
  pointer-events: none;
}

.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(7,28,52,.88); color: var(--gold-bright);
  border: 1px solid rgba(243,225,176,.48);
  display: block; padding: 0;
  transition: background .2s, transform .2s;
}
.slider__btn span { display: none; }
.slider__btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform-origin: center;
}
.slider__btn--prev::before { transform: translate(-50%, -50%) rotate(-135deg); }
.slider__btn--next::before { transform: translate(-50%, -50%) rotate(45deg); }
.slider__btn:hover { background: rgba(14,58,102,.96); transform: translateY(-50%) scale(1.06); }
.slider__btn--prev { left: 0; }
.slider__btn--next { right: 0; }
.slider__dots { display: flex; gap: 9px; justify-content: center; margin-top: 6px; }
.slider__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(243,225,176,.34); transition: transform .2s, background .2s; padding: 0;
}
.slider__dots button[aria-selected="true"] { background: var(--gold); transform: scale(1.3); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; z-index: 2; text-align: center; padding: 80px 18px; margin-top: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-0));
  border-top: 1px solid rgba(243,225,176,.25); border-bottom: 1px solid rgba(243,225,176,.25);
}
.cta-banner::before,
.cta-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.cta-banner::before {
  z-index: -2;
  background: url("assets/the throne awaits.png") center / cover no-repeat;
  transform: scale(1.03);
  animation: throneCamera 18s ease-in-out infinite;
  will-change: transform;
}
.cta-banner::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(3,16,31,.44), rgba(3,16,31,.62));
}
@keyframes throneCamera {
  0%, 100% { transform: scale(1.03); }
  50% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner::before { animation: none; }
}
.cta-banner__crest { display: inline-flex; filter: drop-shadow(0 0 18px rgba(243,225,176,.4)); }
.cta-banner__title { font-size: clamp(1.6rem, 6vw, 3rem); margin-top: 10px; text-shadow: 0 3px 14px rgba(0,0,0,.34); }
.cta-hero__tagline {
  margin: 12px 0 0; font-family: var(--font-display); letter-spacing: .16em;
  color: var(--gold-bright); font-size: clamp(.85rem, 2.6vw, 1.1rem); text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.cta-banner__text { color: #F6EFD9; margin: 12px 0 26px; font-size: clamp(.95rem, 3vw, 1.15rem); text-shadow: 0 2px 10px rgba(0,0,0,.32); }
.cta-banner__cross {
  margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-bright); font-size: .8rem;
}
.cta-banner__plat { display: inline-flex; align-items: center; gap: 16px; color: var(--gold-bright); }
.cta-banner__plat svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: linear-gradient(180deg, #08203D, #041120); border-top: 1px solid rgba(243,225,176,.28); padding: 54px calc(18px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left)); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 28px;
  justify-items: start; text-align: left;
}
.footer__brand {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: 14px 18px; width: 100%;
}
.footer__right { display: grid; gap: 22px; width: 100%; justify-items: start; }
.footer__social h4 {
  color: var(--gold); font-family: var(--font-display); font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.footer__partner-logos {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: 10px;
}
.footer__partner {
  min-height: 58px; display: grid; place-items: center;
  padding: 10px 12px; border-radius: var(--radius);
  background: rgba(13,53,96,.22);
  border: 1px solid rgba(243,225,176,.12);
}
.footer__partner-logos img {
  max-height: 38px; width: auto; max-width: min(170px, 72vw);
  object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.32));
}
.footer__social { display: grid; gap: 16px; justify-items: start; }
.footer__socials {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: 12px; max-width: 560px;
}
.footer__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); width: 54px; height: 54px; border-radius: 50%;
  transition: color .2s, transform .2s, background .2s;
}
.footer__socials a > span:last-child {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.footer__social .fs-icon {
  flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  color: var(--gold-bright); background: rgba(13,53,96,.72); border: 1px solid rgba(243,225,176,.26);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.footer__social .fs-icon svg { width: 24px; height: 24px; }
.footer__socials a:hover { color: var(--gold-bright); transform: translateY(-2px); background: rgba(19,72,124,.28); }
.footer__socials a:hover .fs-icon {
  background: rgba(19,72,124,.95); border-color: var(--gold); box-shadow: 0 4px 14px rgba(243,225,176,.2);
}
.footer__bottom {
  max-width: var(--maxw); margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(243,225,176,.16);
  display: flex; justify-content: center; text-align: center;
  color: var(--text-dim); font-size: .8rem;
}
.footer__legal {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: 10px 18px; color: var(--text-dim); font-size: .84rem;
}
.footer__policy {
  color: inherit; text-decoration: none; position: relative; display: inline-block;
  cursor: pointer; transition: color .25s, text-shadow .25s, transform .25s;
}
.footer__policy::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold-grad); transition: width .3s ease;
}
.footer__policy:hover {
  color: var(--gold-bright); text-shadow: 0 0 12px rgba(243,225,176,.45); transform: translateY(-1px);
}
.footer__policy:hover::after { width: 100%; }
.footer__policy:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- Trailer modal ---------- */
.trailer-modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
}
.trailer-modal[hidden] { display: none; }
.trailer-modal__scrim {
  position: absolute; inset: 0; background: rgba(3,8,15,.86); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
.trailer-modal.open .trailer-modal__scrim { opacity: 1; }
.trailer-modal__dialog {
  position: relative; width: min(92vw, 1040px); border-radius: 14px;
  border: 1px solid rgba(203,170,110,.5);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 40px rgba(203,170,110,.2);
  background: #05080f; overflow: visible;          /* let the close button sit outside */
  transform: scale(.94); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.trailer-modal.open .trailer-modal__dialog { transform: scale(1); opacity: 1; }
.trailer-modal__frame {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: 13px; overflow: hidden;           /* clip the iframe, not the X */
}
.trailer-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-modal__close {
  position: absolute; top: -14px; right: -14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; line-height: 1;
  font-size: 1.2rem; color: rgba(255,255,255,.9);
  background: rgba(10,18,30,.45);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border: 1px solid rgba(203,170,110,.45); box-shadow: 0 2px 10px rgba(0,0,0,.4);
  display: grid; place-items: center; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.trailer-modal__close:hover {
  background: rgba(203,170,110,.9); color: var(--bg-0);
  border-color: rgba(255,255,255,.5); transform: rotate(90deg) scale(1.05);
}
@media (max-width: 560px) { .trailer-modal__close { top: -14px; right: -6px; } }
@media (prefers-reduced-motion: reduce) {
  .trailer-modal__scrim, .trailer-modal__dialog { transition: none; }
}

/* ---------- Screenshot preview modal ---------- */
.media-modal {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: center;
  padding: calc(18px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
}
.media-modal[hidden] { display: none; }
.media-modal__scrim {
  position: absolute; inset: 0; background: rgba(2,8,16,.9); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .25s ease;
}
.media-modal.open .media-modal__scrim { opacity: 1; }
.media-modal__dialog {
  position: relative; width: min(94vw, 1280px); margin: 0;
  border-radius: var(--radius); border: 1px solid rgba(243,225,176,.46);
  background: rgba(4,17,32,.96);
  box-shadow: 0 30px 90px rgba(0,0,0,.75), 0 0 42px rgba(203,170,110,.2);
  transform: scale(.96); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.media-modal.open .media-modal__dialog { transform: scale(1); opacity: 1; }
.media-modal__img {
  width: 100%; max-height: min(78vh, 820px); object-fit: contain;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: #020810;
}
.media-modal__caption {
  padding: 14px 18px 16px;
  font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-bright); font-size: .92rem; text-align: center;
}
.media-modal__close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; line-height: 1;
  font-size: 1.25rem; color: rgba(255,255,255,.94);
  background: rgba(10,18,30,.62);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border: 1px solid rgba(243,225,176,.5); box-shadow: 0 2px 10px rgba(0,0,0,.42);
  display: grid; place-items: center; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.media-modal__close:hover {
  background: rgba(203,170,110,.95); color: var(--bg-0);
  border-color: rgba(255,255,255,.5); transform: rotate(90deg) scale(1.05);
}
.media-modal__nav {
  position: absolute; top: 50%; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(7,28,52,.78); color: var(--gold-bright);
  border: 1px solid rgba(243,225,176,.48);
  display: grid; place-items: center; padding: 0;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow: 0 8px 22px rgba(0,0,0,.38);
  transition: background .2s, transform .2s, border-color .2s;
}
.media-modal__nav span {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.15rem;
  line-height: .7;
}
.media-modal__nav--prev { left: 14px; transform: translateY(-50%); }
.media-modal__nav--next { right: 14px; transform: translateY(-50%); }
.media-modal__nav--prev span { transform: translate(-1px, -1px); }
.media-modal__nav--next span { transform: translate(1px, -1px); }
.media-modal__nav:hover {
  background: rgba(14,58,102,.96);
  border-color: rgba(243,225,176,.68);
}
.media-modal__nav--prev:hover { transform: translateY(-50%) scale(1.06); }
.media-modal__nav--next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 560px) {
  .media-modal__close { top: -14px; right: -6px; }
  .media-modal__nav { width: 42px; height: 42px; }
  .media-modal__nav span { font-size: 1.75rem; }
  .media-modal__nav--prev { left: 8px; }
  .media-modal__nav--next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .media-modal__scrim, .media-modal__dialog, .slide, .slide__img { transition: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================
   RESPONSIVE — scale up from mobile-first base
   ========================================================= */

/* Small tablets */
@media (min-width: 600px) {
  .keyfeatures__grid { grid-template-columns: 1fr 1fr; }
  .gameplay-grid { grid-template-columns: 1fr 1fr; }
  .launch-card-grid { grid-template-columns: 1fr 1fr; }
  .slide { flex-basis: 78%; }
}

/* wide desktop: fixed-width columns centered as a group on the page */
@media (min-width: 950px) {
  .footer__inner { grid-template-columns: minmax(520px, 1fr) minmax(320px, auto); align-items: start; column-gap: 52px; }
  .footer__right { justify-items: end; text-align: right; }
  .footer__partner-logos { justify-content: flex-start; }
  .footer__socials { justify-content: flex-end; }
  .footer__social { justify-items: end; }
  .footer__legal { justify-content: flex-end; }
}

/* Tablet / small laptop */
@media (min-width: 900px) {
  .nav__menu { display: flex; }
  .nav__burger { display: none; }
  .keyfeatures__grid { grid-template-columns: repeat(4, 1fr); }
  .gameplay-grid { grid-template-columns: repeat(3, 1fr); }
  .launch-card-grid { grid-template-columns: repeat(4, 1fr); }
  .launch-info-card--wide { grid-column: span 2; }
  .slider__btn { display: flex; }
  .slide { flex-basis: 66%; }
  .section { padding: 96px 24px; }
}

/* Desktop */
@media (min-width: 1200px) {
  .slide { flex-basis: 58%; }
  .hero__king { width: 34%; }
}

/* Ultrawide — keep content centered, expand breathing room */
@media (min-width: 1800px) {
  :root { --maxw: 1440px; }
  .hero__title-main { font-size: 9rem; }
}

@media (max-width: 768px) {
  .hero {
    justify-content: flex-start; text-align: center;
    padding-top: calc(92px + env(safe-area-inset-top));
  }
  .hero__sky { background-image: url("assets/main-image.png"); background-position: center top; }
  .hero__vignette {
    background:
      linear-gradient(180deg, rgba(5,19,36,.5) 0%, rgba(6,27,51,.36) 47%, rgba(8,31,58,.16) 74%, rgba(6,27,51,.54) 100%),
      linear-gradient(0deg, var(--bg-0) 0%, transparent 28%);
  }
  .hero__content { margin: 0 auto; }
  .hero__title { align-items: center; }
  .hero__actions, .hero__stores { justify-content: center; }
}

/* Tall portrait phones: keep hero from feeling cramped */
@media (max-width: 480px) {
  .hero { padding-top: calc(100px + env(safe-area-inset-top)); }
  .hero__platforms { gap: 14px; }
  .slider__stage { padding: 0 34px; }
  .slider__btn { width: 42px; height: 42px; font-size: 1.5rem; }
  .slide { flex-basis: 92%; }
  .cd-sep { display: none; }
  .countdown__clock { gap: 4px; }
}
