:root {
  --ink: #0a0a0a;
  --ink-soft: #111110;
  --paper: #f0ede7;
  --muted: #9c9a95;
  --line: #2a2926;
  --copper: #bd6f35;
  --copper-bright: #e18b49;
  --crystal: #54c8ec;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --gutter: clamp(24px, 4vw, 72px);
  --content: 1500px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #080808;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 100;
  width: min(100%, var(--content));
  height: 96px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.94);
}

.brand { width: 180px; }
.brand img { width: 100%; filter: saturate(.88); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.site-nav a,
.header-play,
.language-option,
.mobile-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  color: #aaa7a1;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--paper); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.language-switch {
  display: flex;
  border: 1px solid var(--line);
}

.language-option {
  min-width: 38px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #74716d;
  cursor: pointer;
}

.language-option.active { color: var(--paper); background: #20201e; }

.header-play {
  padding: 13px 19px;
  border: 1px solid #8c512d;
  color: var(--copper-bright);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-play:hover,
.header-play:focus-visible {
  color: #0a0a0a;
  border-color: var(--copper-bright);
  background: var(--copper-bright);
}

.menu-button,
.mobile-nav { display: none; }

main { position: relative; }

.hero {
  width: min(100%, var(--content));
  min-height: 760px;
  margin: 0 auto;
  padding: 70px var(--gutter) 96px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 5vw, 90px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  transition: opacity 360ms ease, transform 460ms cubic-bezier(.2, .8, .2, 1);
}

.hero-copy.is-switching { opacity: 0; transform: translateY(18px); }

.kicker {
  margin: 0 0 22px;
  color: var(--copper-bright);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  margin: 0 12px 3px 0;
  display: inline-block;
  background: var(--copper);
}

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

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  font-size: clamp(64px, 5.25vw, 82px);
  line-height: .98;
}

.hero-lead {
  max-width: 590px;
  margin: 30px 0 0;
  color: #b7b4ae;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.store-badges {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.play-badge {
  width: 190px;
  aspect-ratio: 646 / 250;
  display: block;
  transition: transform 180ms ease, filter 180ms ease;
}

.play-badge img { width: 100%; height: 100%; display: block; object-fit: contain; }

.play-badge:hover,
.play-badge:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.play-badge .play-badge-en { display: none; }
html[lang="en"] .play-badge .play-badge-tr { display: none; }
html[lang="en"] .play-badge .play-badge-en { display: block; }

.app-store-soon {
  width: 190px;
  min-height: 0;
  aspect-ratio: 646 / 250;
  padding: 7px 13px 7px 7px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  border: 1px solid #a6a6a6;
  border-radius: 7px;
  color: #fff;
  background: #000;
}

.app-store-soon img { width: 60px; height: 60px; flex: 0 0 60px; object-fit: contain; }
.app-store-soon span { min-width: 0; display: grid; gap: 0; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.app-store-soon small { font-size: 8px; font-weight: 500; line-height: 1.05; letter-spacing: 0; }
.app-store-soon strong { font-size: 20px; font-weight: 500; line-height: 1.05; letter-spacing: 0; white-space: nowrap; }

.quiet-link {
  position: relative;
  padding-bottom: 6px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.quiet-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--copper);
  transform-origin: left;
  transition: transform 180ms ease;
}

.quiet-link:hover::after { transform: scaleX(.45); }

.hero-media {
  position: relative;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #423429;
  border-radius: 7px;
  background: #132231;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5), 0 0 52px rgba(181, 101, 48, .11);
}

.hero-showreel { isolation: isolate; }

.hero-scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.045);
  transition: opacity 1100ms ease, transform 5800ms cubic-bezier(.18, .7, .2, 1);
}

.hero-scene.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.hero-scene-bg {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  filter: saturate(1.06) brightness(.84) contrast(1.03);
  transform: translate3d(-1.5%, 0, 0) scale(1.03);
  transition: transform 6400ms linear, filter 900ms ease;
}

.hero-scene.is-active .hero-scene-bg { transform: translate3d(1.5%, -1%, 0) scale(1.075); }
.hero-scene-roster .hero-scene-bg { object-position: 62% center; filter: saturate(1.1) brightness(.88) contrast(1.04); }
.hero-scene-keep .hero-scene-bg { object-position: center; filter: saturate(.92) brightness(.48) contrast(1.08); }
.hero-scene-battle .hero-scene-bg { object-position: center; filter: saturate(1.05) brightness(.54) contrast(1.08); }

.hero-media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  opacity: .92;
  filter: saturate(1.08) brightness(.9) contrast(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 124px;
  background: rgba(7, 10, 14, .68);
  z-index: 3;
  pointer-events: none;
}

.hero-cast { position: absolute; inset: 42px 10px 82px; }

.hero-cast img {
  position: absolute;
  bottom: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.12) brightness(1.07) drop-shadow(0 20px 18px rgba(0, 0, 0, .66));
}

.cast-paladin { z-index: 3; left: 26%; width: 48%; height: 100%; }
.cast-ranger { z-index: 2; left: 0; width: 40%; height: 78%; }
.cast-mage { z-index: 2; right: 0; width: 39%; height: 79%; }

.hero-scene .hero-cast img {
  opacity: 0;
  transform-origin: center bottom;
  transition: opacity 720ms ease, transform 1100ms cubic-bezier(.2, .82, .2, 1);
}

.hero-scene .cast-ranger { transform: translate3d(-52px, 38px, 0) rotate(-7deg) scale(.88); }
.hero-scene .cast-paladin { transform: translate3d(0, 58px, 0) scale(.86); }
.hero-scene .cast-mage { transform: translate3d(52px, 38px, 0) rotate(7deg) scale(.88); }
.hero-scene.is-active .hero-cast img { opacity: 1; }
.hero-scene.is-active .cast-ranger { transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); animation: showreel-float-left 4.8s ease-in-out 1.2s infinite; }
.hero-scene.is-active .cast-paladin { transform: translate3d(0, 0, 0) scale(1); animation: showreel-float-center 4.4s ease-in-out 1s infinite; }
.hero-scene.is-active .cast-mage { transform: translate3d(0, 0, 0) rotate(2deg) scale(1); animation: showreel-float-right 5.1s ease-in-out 1.4s infinite; }

.showreel-buildings,
.showreel-units {
  position: absolute;
  z-index: 2;
  inset: 28px 18px 96px;
}

.showreel-buildings img,
.showreel-units img {
  position: absolute;
  object-fit: contain;
  opacity: 0;
  filter: saturate(1.12) brightness(1.06) drop-shadow(0 22px 22px rgba(0, 0, 0, .62));
  transform: translateY(64px) scale(.72);
  transform-origin: center bottom;
  transition: opacity 700ms ease, transform 1050ms cubic-bezier(.18, .84, .22, 1);
}

.showreel-townhall { z-index: 4; left: 24%; bottom: -1%; width: 52%; height: 78%; transition-delay: 140ms !important; }
.showreel-sanctum { z-index: 3; left: -1%; bottom: 8%; width: 39%; height: 57%; transition-delay: 300ms !important; }
.showreel-barracks { z-index: 3; right: 0; bottom: 10%; width: 38%; height: 52%; transition-delay: 380ms !important; }
.showreel-tower { z-index: 2; right: 5%; top: 0; width: 24%; height: 40%; transition-delay: 480ms !important; }
.hero-scene.is-active .showreel-buildings img { opacity: 1; transform: translateY(0) scale(1); }
.hero-scene.is-active .showreel-townhall { animation: showreel-building 5.2s ease-in-out 1.1s infinite; }
.hero-scene.is-active .showreel-sanctum { animation: showreel-building 5.6s ease-in-out 1.4s infinite reverse; }
.hero-scene.is-active .showreel-barracks { animation: showreel-building 4.9s ease-in-out 1.6s infinite; }
.hero-scene.is-active .showreel-tower { animation: showreel-building 5.4s ease-in-out 1.8s infinite reverse; }

.showreel-units { inset: 72px 30px 94px; }
.showreel-guard { z-index: 4; left: 31%; bottom: -1%; width: 38%; height: 72%; transition-delay: 120ms !important; }
.showreel-archer { z-index: 3; left: 2%; bottom: 6%; width: 35%; height: 58%; transition-delay: 300ms !important; }
.showreel-wisp { z-index: 3; right: 2%; bottom: 7%; width: 34%; height: 57%; transition-delay: 460ms !important; }
.hero-scene.is-active .showreel-units img { opacity: 1; transform: translateY(0) scale(1); }
.hero-scene.is-active .showreel-guard { animation: showreel-unit-center 4.2s ease-in-out 1.2s infinite; }
.hero-scene.is-active .showreel-archer { animation: showreel-unit-left 4.8s ease-in-out 1.5s infinite; }
.hero-scene.is-active .showreel-wisp { animation: showreel-unit-right 4.5s ease-in-out 1.7s infinite; }

@keyframes showreel-float-left { 50% { transform: translate3d(-5px, -12px, 0) rotate(-1deg) scale(1.015); } }
@keyframes showreel-float-center { 50% { transform: translate3d(0, -15px, 0) scale(1.02); } }
@keyframes showreel-float-right { 50% { transform: translate3d(6px, -10px, 0) rotate(1deg) scale(1.012); } }
@keyframes showreel-building { 50% { transform: translateY(-11px) scale(1.018); } }
@keyframes showreel-unit-center { 50% { transform: translateY(-13px) scale(1.025); } }
@keyframes showreel-unit-left { 50% { transform: translate3d(-5px, -9px, 0) rotate(-2deg) scale(1.018); } }
@keyframes showreel-unit-right { 50% { transform: translate3d(5px, -11px, 0) rotate(2deg) scale(1.018); } }

.hero-media-caption,
.chapter-media figcaption {
  position: absolute;
  z-index: 5;
  left: 26px;
  right: 26px;
  bottom: 23px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.hero-media-caption { z-index: 5; }

.showreel-controls {
  position: absolute;
  z-index: 7;
  left: 26px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.showreel-dot,
.showreel-toggle {
  position: relative;
  height: 28px;
  border: 1px solid rgba(240, 237, 231, .35);
  color: rgba(240, 237, 231, .68);
  background: rgba(7, 9, 12, .62);
  cursor: pointer;
}

.showreel-dot { width: 42px; overflow: hidden; font-size: 8px; }
.showreel-dot span { position: relative; z-index: 2; }
.showreel-dot::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--copper);
}

.showreel-dot.active { color: #fff; border-color: var(--copper-bright); }
.showreel-dot.active::after { animation: showreel-progress 6.4s linear forwards; }
.showreel-toggle { width: 30px; font-size: 11px; }
.showreel-toggle:hover,
.showreel-dot:hover { border-color: var(--paper); color: var(--paper); }
.showreel-toggle[aria-pressed="true"] { color: var(--copper-bright); border-color: var(--copper); }

@keyframes showreel-progress { to { width: 100%; } }

.hero-showreel.is-paused .showreel-dot.active::after,
.hero-showreel.is-paused .hero-scene.is-active img { animation-play-state: paused; }

.hero-media-caption span,
.chapter-media figcaption span {
  color: var(--copper-bright);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-media-caption strong,
.chapter-media figcaption strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  text-align: right;
}

.editorial-flow {
  position: relative;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 40px var(--gutter) 170px;
}

.editorial-flow::before {
  content: "";
  position: absolute;
  top: 80px;
  bottom: 80px;
  left: calc(var(--gutter) + 12px);
  width: 1px;
  background: #302d29;
}

.chapter {
  position: relative;
  min-height: 660px;
  padding: 100px 0;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(54px, 7vw, 116px);
}

.chapter + .chapter,
.heroes-section + .chapter { border-top: 1px solid var(--line); }

.chapter-copy { padding-left: 54px; }

.chapter-number {
  position: relative;
  margin: 0 0 34px;
  color: var(--copper-bright);
  font-size: 12px;
  font-weight: 600;
}

.chapter-number::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -48px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--copper-bright);
  background: var(--ink);
  transform: rotate(45deg);
}

.chapter h2,
.heroes-heading h2,
.download-copy h2 {
  font-size: clamp(52px, 5.3vw, 82px);
  line-height: 1;
}

.chapter-copy > p:not(.chapter-number):not(.kicker) {
  max-width: 470px;
  margin: 26px 0 28px;
  color: #aaa7a1;
  font-size: 16px;
  line-height: 1.75;
}

.chapter-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #37332e;
  border-radius: 7px;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}

.chapter-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 104px;
  background: rgba(8, 8, 8, .82);
}

.chapter-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.keep-build-media {
  min-height: 560px;
  background: #101923;
}

.keep-build-stage {
  position: absolute;
  inset: 0 0 104px;
  overflow: hidden;
  border-bottom: 1px solid #31363a;
  background: #10202a;
}

.keep-build-stage::before,
.keep-build-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 72%;
  height: 1px;
  left: 14%;
  background: #31434c;
}

.keep-build-stage::before { top: 34%; transform: rotate(-12deg); }
.keep-build-stage::after { top: 68%; transform: rotate(12deg); }

.keep-building {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  filter: saturate(1.08) brightness(1.04) drop-shadow(0 22px 22px rgba(0, 0, 0, .5));
}

.keep-townhall { width: 48%; height: 74%; left: 26%; bottom: 5%; z-index: 4; }
.keep-sanctum { width: 36%; height: 56%; left: 2%; top: 5%; z-index: 3; }
.keep-barracks { width: 35%; height: 48%; right: 3%; top: 8%; z-index: 3; }
.keep-tower { width: 25%; height: 39%; right: 8%; bottom: 2%; }

.chapter-media:hover > img { transform: scale(1.025); }
.media-wide { height: 530px; }
.media-wide > img { object-position: center; }

.building-gallery {
  margin: 36px 0 120px 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.building-tile {
  position: relative;
  min-height: 350px;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #121211;
  transition: border-color 180ms ease, transform 220ms ease;
}

.building-tile:hover {
  border-color: #6b4a34;
  transform: translateY(-6px);
}

.building-tile img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55));
  transition: transform 360ms cubic-bezier(.2, .8, .2, 1);
}

.building-tile:hover img { transform: translateY(-8px) scale(1.04); }

.building-tile figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.building-tile figcaption span { color: var(--copper-bright); font-size: 10px; }
.building-tile figcaption strong { font-family: var(--serif); font-size: 23px; font-weight: 400; }

.chapter-battle {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
}

.media-battle { width: calc(100% - 24px); height: 600px; margin-left: 24px; }
.media-battle > img { object-position: center; }

.unit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unit-list button {
  padding: 9px 12px;
  border: 1px solid #33312e;
  color: #c5c1ba;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.unit-list button:hover,
.unit-list button:focus-visible { border-color: #8c512d; color: var(--paper); }
.unit-list button.active { border-color: var(--copper-bright); color: #0a0a0a; background: var(--copper-bright); }

.unit-preview {
  min-height: 128px;
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #2f2d2a;
  background: #111315;
  overflow: hidden;
}

.unit-preview img {
  width: 92px;
  height: 104px;
  object-fit: contain;
  filter: saturate(1.08) drop-shadow(0 10px 12px rgba(0, 0, 0, .45));
  transform-origin: center;
  transition: transform 220ms ease;
}

.unit-preview img[data-unit="skeleton"] { transform: scale(1.55); }

.unit-preview div { min-width: 0; }
.unit-preview span { display: block; margin-bottom: 4px; color: var(--copper-bright); font-size: 8px; font-weight: 600; }
.unit-preview strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.unit-preview p { margin: 7px 0 0; color: #92908a; font-size: 11px; line-height: 1.5; }

.heroes-section {
  position: relative;
  padding: 130px 0 150px 54px;
  border-top: 1px solid var(--line);
}

.heroes-heading {
  display: grid;
  grid-template-columns: .38fr 1fr .75fr;
  align-items: end;
  gap: 52px;
}

.heroes-heading .chapter-number { margin-bottom: 18px; }
.heroes-heading .kicker { margin-bottom: 0; }
.heroes-heading > p {
  margin: 0 0 7px;
  color: #aaa7a1;
  font-size: 16px;
  line-height: 1.7;
}

.roster-shell { position: relative; margin-top: 60px; }

.hero-roster {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 23vw, 342px);
  gap: 16px;
  padding: 0 0 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.hero-roster::-webkit-scrollbar { display: none; }
.hero-roster.is-auto { scroll-snap-type: none; }
.hero-roster.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.hero-card {
  position: relative;
  height: 570px;
  padding: 20px 24px 24px;
  display: grid;
  grid-template-rows: 454px auto auto;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #2f3337;
  border-radius: 6px;
  background: #121a22;
}

.hero-card:nth-child(4n + 2) { background: #132220; border-color: #2c4843; }
.hero-card:nth-child(4n + 3) { background: #211b2c; border-color: #4c3d61; }
.hero-card:nth-child(4n + 4) { background: #251c17; border-color: #5d3c2c; }

.hero-card:nth-child(1) { --hero-fit: 1.1; --hero-y: 4px; }
.hero-card:nth-child(2) { --hero-fit: 1.13; --hero-y: 10px; }
.hero-card:nth-child(3) { --hero-fit: 1.04; --hero-y: -9px; }
.hero-card:nth-child(4) { --hero-fit: 1.26; --hero-y: 37px; }
.hero-card:nth-child(5) { --hero-fit: 1.06; --hero-y: -5px; }
.hero-card:nth-child(6) { --hero-fit: .66; --hero-y: -53px; }
.hero-card:nth-child(7) { --hero-fit: 1.11; --hero-y: 5px; }
.hero-card:nth-child(8) { --hero-fit: 1.2; --hero-y: 25px; }
.hero-card:nth-child(9) { --hero-fit: .88; --hero-y: -42px; }
.hero-card:nth-child(10) { --hero-fit: .81; --hero-y: -58px; }
.hero-card:nth-child(11) { --hero-fit: .82; --hero-y: -56px; }
.hero-card:nth-child(12) { --hero-fit: .82; --hero-y: -55px; }
.hero-card:nth-child(13) { --hero-fit: .79; --hero-y: -61px; }
.hero-card:nth-child(14) { --hero-fit: .85; --hero-y: -50px; }
.hero-card:nth-child(15) { --hero-fit: .87; --hero-y: -41px; }
.hero-card:nth-child(16) { --hero-fit: .82; --hero-y: -55px; }

.hero-card img {
  width: 100%;
  height: 454px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .52));
  transform: translateY(var(--hero-y, 0px)) scale(var(--hero-fit, 1));
  transform-origin: center bottom;
  transition: transform 360ms cubic-bezier(.2, .8, .2, 1);
}

.hero-card:hover img { transform: translateY(calc(var(--hero-y, 0px) - 8px)) scale(calc(var(--hero-fit, 1) * 1.025)); }
.hero-card span {
  display: block;
  color: var(--copper-bright);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-card h3 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  white-space: nowrap;
}

.roster-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #5c5148;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(10, 10, 10, .9);
  font-family: var(--serif);
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 180ms ease, background 180ms ease;
}

.roster-arrow:hover { border-color: var(--copper-bright); background: #22170f; }
.roster-prev { left: -23px; }
.roster-next { right: -23px; }

.drag-hint {
  margin: 10px 0 0;
  color: #686661;
  font-size: 10px;
  text-transform: uppercase;
}

.media-boss { height: 520px; }
.media-boss > img { object-position: center; }
.media-boss.is-loading > img { opacity: .25; }
.media-boss.is-unavailable > img { visibility: hidden; }

.boss-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boss-tabs button {
  padding: 9px 12px;
  border: 1px solid #35312d;
  color: #97938c;
  background: transparent;
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
}

.boss-tabs button.active {
  border-color: var(--copper);
  color: var(--paper);
  background: #221710;
}

.download-section {
  position: relative;
  min-height: 850px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #0d0d0d;
}

.download-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  opacity: .35;
  filter: saturate(.72) brightness(.58);
}

.download-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .38);
}

.download-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 80px 24px;
  text-align: center;
}

.download-copy .kicker::before { display: none; }
.download-copy > p:not(.kicker) {
  max-width: 570px;
  margin: 24px auto 30px;
  color: #c1bdb6;
  font-size: 17px;
  line-height: 1.7;
}

.store-badges-large { justify-content: center; }
.play-badge-large { width: 220px; margin: 0; }
.app-store-soon-large { width: 220px; }

.site-footer {
  width: min(100%, var(--content));
  min-height: 142px;
  margin: 0 auto;
  padding: 30px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #716f6a;
  background: var(--ink);
}

.site-footer > img { width: 150px; }
.site-footer p { margin: 0; font-size: 11px; text-align: center; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 20px; }
.site-footer a { font-size: 10px; text-transform: uppercase; }
.site-footer a:hover { color: var(--paper); }

.trailer-section {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 110px var(--gutter) 130px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trailer-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  align-items: end;
  gap: clamp(42px, 7vw, 110px);
}

.trailer-heading h2 {
  max-width: 760px;
  font-size: clamp(54px, 5.5vw, 82px);
  line-height: .98;
}

.trailer-heading > p {
  max-width: 520px;
  margin: 0 0 6px;
  color: #aaa7a1;
  font-size: 16px;
  line-height: 1.7;
}

.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid #37332f;
  border-radius: 6px;
  background: #111315;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .32);
}

.trailer-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111315;
}

.trailer-stamp {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  color: rgba(255, 255, 255, .82);
  background: rgba(9, 9, 9, .6);
  backdrop-filter: blur(12px);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  pointer-events: none;
}

.trailer-stamp strong { color: var(--copper-bright); font-size: 10px; }

.reveal {
  opacity: 0;
  transition: opacity 800ms ease, transform 900ms cubic-bezier(.2, .78, .2, 1);
}

.reveal[data-reveal="left"] { transform: translate3d(0, 42px, 0); }
.reveal[data-reveal="right"] { transform: translate3d(0, 42px, 0); }
.reveal[data-reveal="up"] { transform: translate3d(0, 46px, 0); }
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

:focus-visible { outline: 2px solid var(--copper-bright); outline-offset: 4px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: .82fr 1.18fr; gap: 36px; }
  h1 { font-size: clamp(62px, 7.3vw, 82px); }
  .hero-media { min-height: 540px; }
  .chapter { grid-template-columns: .8fr 1.2fr; gap: 50px; }
  .chapter-battle { grid-template-columns: 1.2fr .8fr; }
  .heroes-heading { grid-template-columns: .3fr 1fr; }
  .heroes-heading > p { grid-column: 2; }
}

@media (max-width: 820px) {
  :root { --gutter: 20px; }

  .site-header {
    position: sticky;
    top: 0;
    height: 76px;
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: rgba(10, 10, 10, .97);
  }

  .brand { width: 130px; }
  .header-play { display: none; }
  .language-switch { border-color: #272624; }
  .language-option { min-width: 34px; height: 32px; }

  .menu-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }

  .menu-button span { width: 17px; height: 1px; display: block; background: var(--paper); transition: transform 180ms ease, opacity 180ms ease; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-nav {
    position: fixed;
    z-index: 90;
    inset: 76px 0 auto;
    padding: 24px;
    display: grid;
    border-top: 1px solid var(--line);
    background: #0a0a0a;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }

  .hero {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 90px;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(48px, 13vw, 56px);
    overflow-wrap: break-word;
  }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .store-badges { flex-direction: column; }
  .store-badges-large { align-items: center; }
  .hero-copy,
  .hero-media { width: 100%; }
  .hero-media { min-height: 530px; }
  .hero-cast { inset: 40px 0 83px; }
  .cast-ranger { left: -8%; width: 48%; }
  .cast-paladin { left: 19%; width: 62%; }
  .cast-mage { right: -8%; width: 47%; }
  .hero-media-caption { left: 18px; right: 18px; }
  .hero-media-caption strong { max-width: 180px; font-size: 18px; }

  .editorial-flow { padding-top: 0; padding-bottom: 90px; }
  .editorial-flow::before { left: calc(var(--gutter) + 5px); }
  .chapter,
  .chapter-battle {
    min-height: 0;
    padding: 90px 0;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .chapter-copy { padding-left: 34px; }
  .chapter-number::before { left: -34px; }
  .chapter h2,
  .heroes-heading h2,
  .download-copy h2 { font-size: clamp(48px, 13vw, 64px); }
  .chapter-media { margin-left: 34px; }
  .media-wide,
  .media-battle,
  .media-boss { height: min(72vw, 480px); }
  .media-battle { width: calc(100% - 34px); margin-left: 34px; }
  .chapter-battle .chapter-media { order: 2; }
  .chapter-battle .chapter-copy { order: 1; }
  .chapter-media figcaption { left: 16px; right: 16px; bottom: 17px; }
  .chapter-media figcaption strong { max-width: 210px; font-size: 17px; }

  .building-gallery {
    margin: 0 0 80px 34px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .building-tile { min-height: 250px; padding: 15px; }
  .building-tile img { height: 190px; }
  .building-tile figcaption strong { font-size: 18px; }

  .heroes-section { padding: 90px 0 110px 34px; }
  .heroes-heading { grid-template-columns: 1fr; gap: 24px; }
  .heroes-heading > p { grid-column: auto; }
  .hero-roster { grid-auto-columns: min(76vw, 300px); }
  .hero-card { height: 500px; grid-template-rows: 390px auto auto; }
  .hero-card img { height: 390px; }
  .roster-prev { left: -18px; }
  .roster-next { right: -18px; }
  .roster-arrow { display: none; }

  .download-section { min-height: 680px; }
  .download-art { object-position: 52% center; }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 44px;
    padding-bottom: 44px;
    text-align: center;
  }

  .site-footer nav { justify-content: center; }

  .trailer-section { padding: 82px var(--gutter) 90px; }
  .trailer-heading { grid-template-columns: 1fr; gap: 24px; }
  .trailer-heading h2 { font-size: clamp(48px, 13vw, 64px); }
  .trailer-heading > p { font-size: 14px; }
  .trailer-frame { margin-top: 36px; border-radius: 4px; }
  .trailer-stamp { top: 10px; right: 10px; }
}

@media (max-width: 480px) {
  .hero-media { min-height: 450px; }
  .hero-cast { top: 28px; }
  .building-gallery { grid-template-columns: 1fr; }
  .building-tile { min-height: 290px; }
  .building-tile img { height: 225px; }
  .roster-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Support, privacy, and terms */
.legal-shell {
  min-height: 100vh;
  color: var(--paper);
  background: #0a0a0a;
}

.legal-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: min(100%, var(--content));
  height: 88px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, .96);
  backdrop-filter: blur(18px);
}

.legal-header .brand { width: 174px; display: block; }
.legal-header .brand-wordmark { width: 100%; filter: saturate(.9); }
.legal-header .language-switch { justify-self: end; }

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.legal-nav a {
  position: relative;
  padding: 35px 0 33px;
  color: #8d8a84;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.legal-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--copper-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-nav a[aria-current="page"] { color: var(--paper); }
.legal-nav a[aria-current="page"]::after { transform: scaleX(1); }

.legal-main {
  width: min(100%, var(--content));
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.legal-hero {
  position: relative;
  min-height: 430px;
  padding: 70px max(var(--gutter), calc((100% - 1180px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #111315 url("./assets/images/backgrounds/hero_roster_scene_v2.png") center 43% / cover no-repeat;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 10, .74);
}

.legal-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(var(--gutter), calc((100% - 1180px) / 2));
  width: 1px;
  background: rgba(225, 139, 73, .55);
}

.legal-hero > * {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-left: 34px;
}

.legal-hero .eyebrow {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--copper-bright);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.legal-hero .eyebrow::before {
  content: "";
  width: 25px;
  height: 1px;
  margin: 0 12px 3px 0;
  display: inline-block;
  background: var(--copper);
}

.legal-hero h1 {
  max-width: 920px;
  font-size: clamp(58px, 6vw, 90px);
  line-height: .98;
}

.legal-hero [data-page-intro] {
  max-width: 720px;
  margin-top: 26px;
  margin-bottom: 0;
  color: #c1bdb6;
  font-size: 16px;
  line-height: 1.7;
}

.legal-card {
  width: min(calc(100% - (var(--gutter) * 2)), 1080px);
  margin: 0 auto;
  padding: 42px 0 120px;
}

.legal-content { counter-reset: legal-section; }

.legal-section {
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  column-gap: clamp(42px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  counter-increment: legal-section;
}

.legal-section > * {
  grid-column: 2;
  margin-top: 0;
  margin-bottom: 0;
}
.legal-section > * + * { margin-top: 18px; }

.legal-section h2 {
  grid-column: 1;
  grid-row: 1 / span 20;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

.legal-section h2::before {
  content: counter(legal-section, decimal-leading-zero);
  margin-bottom: 12px;
  display: block;
  color: var(--copper-bright);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
}

.legal-section p,
.legal-section li {
  color: #aaa7a1;
  font-size: 15px;
  line-height: 1.8;
}

.legal-section ul { padding-left: 20px; color: #aaa7a1; }
.legal-section li + li { margin-top: 10px; }
.legal-section li::marker { color: var(--copper-bright); }

.legal-section a:not(.button) {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: #735038;
  text-underline-offset: 4px;
}
.legal-section a:not(.button):hover { text-decoration-color: var(--copper-bright); }

.legal-date {
  color: var(--copper-bright) !important;
  font-size: 10px !important;
  font-weight: 600;
  text-transform: uppercase;
}

.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.legal-shell .button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #45413c;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.legal-shell .button-primary {
  border-color: var(--copper);
  color: #0a0a0a;
  background: var(--copper-bright);
}
.legal-shell .button-primary:hover { background: #f09b58; }
.legal-shell .button-secondary:hover { border-color: var(--paper); }

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

.support-panel {
  min-height: 170px;
  padding: 24px;
  border: 1px solid #31302d;
  border-radius: 6px;
  background: #111315;
}

.support-panel strong {
  display: block;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}
.support-panel p { margin-top: 12px; font-size: 13px; line-height: 1.7; }

.legal-shell .site-footer {
  min-height: 128px;
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}

.legal-shell .footer-inner {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.legal-shell .footer-inner > img { width: 150px; }
.legal-shell .footer-links { display: flex; gap: 22px; }

.legal-shell .footer-links a {
  color: #716f6a;
  font-size: 10px;
  text-transform: uppercase;
}

.legal-shell .footer-links a:hover,
.legal-shell .footer-links a[aria-current="page"] { color: var(--paper); }

@media (max-width: 820px) {
  .legal-header {
    height: auto;
    padding: 13px var(--gutter) 0;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }

  .legal-header .brand { width: 130px; }
  .legal-nav {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 26px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .legal-nav a { padding: 14px 0 13px; white-space: nowrap; }
  .legal-main { border-right: 0; border-left: 0; }
  .legal-hero { min-height: 370px; padding: 54px var(--gutter); }
  .legal-hero::after { left: var(--gutter); }
  .legal-hero > * { margin-left: 22px; }
  .legal-hero h1 { font-size: clamp(48px, 14vw, 64px); }
  .legal-hero [data-page-intro] { font-size: 14px; }
  .legal-card { width: calc(100% - (var(--gutter) * 2)); padding: 16px 0 80px; }
  .legal-section { padding: 34px 0; grid-template-columns: 1fr; }
  .legal-section > *,
  .legal-section h2 { grid-column: 1; grid-row: auto; }
  .legal-section h2 { margin-bottom: 20px; font-size: 24px; }
  .legal-section > * + * { margin-top: 16px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-panel { min-height: 0; }
  .legal-actions { flex-direction: column; align-items: stretch; }
  .legal-shell .footer-inner { padding: 30px 0; flex-direction: column; justify-content: center; }
  .legal-shell .footer-links { justify-content: center; }
}
