:root {
  --bg: #040813;
  --bg-soft: #081122;
  --panel: rgba(8, 19, 42, 0.84);
  --panel-strong: rgba(5, 12, 26, 0.92);
  --line: rgba(117, 210, 255, 0.2);
  --line-strong: rgba(255, 215, 108, 0.34);
  --text: #eef3ff;
  --muted: #afbdd8;
  --gold: #f0c25d;
  --gold-strong: #ffc94d;
  --blue: #6fd4ff;
  --blue-strong: #2ab3ff;
  --red: #ff7676;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  --radius: 26px;
  --radius-lg: 34px;
  --header-h: 82px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(42, 179, 255, 0.14), transparent 26%),
    radial-gradient(circle at 15% 10%, rgba(240, 194, 93, 0.09), transparent 20%),
    linear-gradient(180deg, #071124 0%, #050913 44%, #04070f 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video,
model-viewer {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

main {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 110px 0;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 20%, white 0.5px, transparent 0.7px),
    radial-gradient(circle at 70% 40%, white 0.4px, transparent 0.7px),
    radial-gradient(circle at 50% 80%, white 0.35px, transparent 0.7px);
  background-size: 180px 180px, 230px 230px, 200px 200px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  backdrop-filter: blur(18px);
  background: rgba(4, 10, 23, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.scrolled .site-header {
  background: rgba(3, 8, 18, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Cinzel, serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(69, 191, 255, 0.55));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: rgba(234, 242, 255, 0.82);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transition: transform 0.28s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.nav-cta,
.button-gold {
  color: #0c1423;
  background: linear-gradient(180deg, #ffd97e 0%, #f1bf4d 100%);
  box-shadow: 0 14px 30px rgba(255, 193, 77, 0.18);
}

.button-ghost {
  color: #eff6ff;
  background: linear-gradient(180deg, rgba(8, 24, 54, 0.94) 0%, rgba(5, 15, 35, 0.94) 100%);
  border-color: rgba(111, 212, 255, 0.28);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button-ghost:hover {
  border-color: rgba(111, 212, 255, 0.5);
  box-shadow: 0 14px 30px rgba(23, 104, 171, 0.22);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(111, 212, 255, 0.22);
  background: rgba(10, 22, 45, 0.9);
  color: white;
  font-size: 21px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 60px 0 150px;
}

.hero-bg,
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-home .hero-bg {
  background-image:
    linear-gradient(90deg, rgba(4, 11, 28, 0.88) 0%, rgba(4, 11, 28, 0.76) 38%, rgba(4, 11, 28, 0.42) 72%),
    linear-gradient(180deg, rgba(6, 15, 35, 0.34) 0%, rgba(4, 9, 19, 0.82) 100%),
    url('assets/conquest_clash_v2.png');
  filter: saturate(1.02) brightness(0.96);
}

.hero-rays {
  position: absolute;
  inset: auto -12% -22% auto;
  width: 54vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(77, 174, 255, 0.18), transparent 64%);
  filter: blur(26px);
}

.hero-shell,
.page-hero-grid,
.section-split,
.home-conquest-grid,
.split-story,
.split-economy {
  display: grid;
  gap: 42px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: center;
}

.hero-content h1,
.page-hero-copy h1,
.center-heading h2,
.section-copy h2,
.download h2 {
  margin: 0;
  font-family: Cinzel, serif;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.hero-content h1 {
  font-size: clamp(54px, 8vw, 106px);
}

.page-hero-copy h1,
.download h2 {
  font-size: clamp(42px, 6.4vw, 82px);
}

.hero-content h1 span,
.page-hero-copy h1 span,
.center-heading h2 span,
.section-copy h2 span,
.download h2 span {
  background: linear-gradient(180deg, #ffe195 0%, #f0b33d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow.red {
  color: #ff9a87;
}

.hero-mark {
  width: 86px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px rgba(111, 212, 255, 0.5));
}

.hero-copy,
.page-hero-copy p,
.section-copy p,
.center-heading p,
.download p,
.feature-card p,
.info-card p,
.timeline-card p,
.chapter-card p,
.companion-card span,
.table-wrap,
blockquote,
li,
td,
th {
  color: var(--muted);
}

.hero-copy,
.page-hero-copy > p {
  max-width: 620px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-badges,
.micro-pills,
.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-badges span,
.micro-pills span,
.stat-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 20, 45, 0.62);
  color: #d8e8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-badges i {
  align-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 201, 77, 0.8);
}

.hero-media {
  justify-self: end;
}

.hero-media-card,
.promo-card,
.story-video-card,
.story-emblem,
.story-teaser-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.ornate-frame {
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 211, 108, 0.75), rgba(116, 214, 255, 0.52));
}

.ornate-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(255, 225, 149, 0.38);
  pointer-events: none;
}

.hero-media-card {
  width: min(100%, 580px);
  background:
    radial-gradient(circle at 75% 20%, rgba(111, 212, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(7, 14, 28, 0.98), rgba(7, 14, 28, 0.72));
}

.hero-media-card video,
.promo-card img,
.story-emblem img,
.story-teaser-media img,
.story-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 14px);
}

.hero-media-card video {
  aspect-ratio: 1 / 1;
  object-position: center top;
}

.hero-media-glow {
  position: absolute;
  inset: auto -10% -18% auto;
  width: 58%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 203, 91, 0.26), transparent 70%);
  filter: blur(20px);
}

.hero-media-caption {
  margin-top: 14px;
  padding-left: 8px;
}

.hero-media-caption span,
.story-video-card + div small,
.story-video small {
  display: block;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-media-caption strong,
.story-video-card + div strong,
.story-video strong {
  display: block;
  margin-top: 4px;
  font-family: Cinzel, serif;
  font-size: 24px;
}

.hero-media-caption small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue b {
  font-size: 18px;
  animation: bob 1.7s ease-in-out infinite;
}

.overlap-strip {
  margin-top: -72px;
  position: relative;
  z-index: 3;
}

.feature-strip,
.info-card-grid,
.timeline-grid,
.chapter-grid,
.hero-roster,
.banner-grid,
.loot-row,
.mini-stat-grid,
.companion-grid {
  display: grid;
}

.feature-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(111, 212, 255, 0.16);
  background: linear-gradient(180deg, rgba(4, 16, 39, 0.9), rgba(5, 12, 26, 0.92));
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 176px;
  padding: 28px 24px;
  border-right: 1px solid rgba(111, 212, 255, 0.12);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-index {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.feature-card h3,
.info-card h3,
.timeline-card h3,
.chapter-card h3,
.companion-card strong,
.roster-card strong,
.banner-tag,
th {
  font-family: Cinzel, serif;
}

.feature-card h3,
.info-card h3,
.timeline-card h3,
.chapter-card h3 {
  margin: 16px 0 10px;
  font-size: 30px;
}

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

.section-split.align-center,
.home-conquest-grid,
.split-story,
.split-economy,
.page-hero-grid {
  align-items: center;
}

.home-conquest-grid,
.page-hero-grid,
.split-story,
.split-economy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.center-heading {
  max-width: 840px;
  margin: 0 auto 44px;
  text-align: center;
}

.center-heading h2,
.section-copy h2 {
  font-size: clamp(34px, 5vw, 68px);
  margin-bottom: 18px;
}

.section-copy h2 {
  margin-top: 0;
}

.section-copy p,
.center-heading p,
.info-card p,
.timeline-card p,
.chapter-card p {
  font-size: 17px;
}

.dice-section {
  padding-top: 120px;
}

.dice-showcase {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dice-aura {
  position: absolute;
  width: min(80vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 179, 255, 0.23), transparent 62%);
  filter: blur(10px);
}

.d20-model {
  width: min(76vw, 420px);
  height: min(76vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(14, 45, 92, 0.5), transparent 74%);
}

.double-dice {
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 180px;
  transform: rotate(-7deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
}

.dice-badge {
  position: absolute;
  right: 8px;
  top: -8px;
  width: 210px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.evolution {
  background: linear-gradient(180deg, rgba(6, 11, 25, 0.55) 0%, rgba(9, 19, 40, 0.65) 55%, rgba(5, 8, 16, 0.2) 100%);
}

.framed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.evo-frame-card {
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(8, 18, 38, 0.88), rgba(4, 8, 18, 0.96));
  border: 1px solid rgba(111, 212, 255, 0.18);
  box-shadow: var(--shadow);
}

.evo-frame-card.featured {
  transform: translateY(-8px);
}

.evo-frame-card img {
  width: 100%;
  border-radius: 22px;
}

.home-conquest {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 199, 77, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(5, 9, 19, 0.05), rgba(8, 14, 29, 0.7));
}

.large-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stat-chips b,
.hero-badges b {
  color: white;
}

.section-copy .left-actions,
.page-hero-copy .left-actions {
  justify-content: flex-start;
}

.hero-roster {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.roster-card,
.banner-card,
.companion-card,
.info-card,
.timeline-card,
.chapter-card,
.story-video,
.enemy-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 21, 43, 0.95), rgba(4, 9, 19, 0.95));
  border: 1px solid rgba(111, 212, 255, 0.14);
  box-shadow: var(--shadow);
}

.roster-card {
  min-height: 390px;
}

.roster-card img,
.companion-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}

.roster-card::after,
.companion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(3, 7, 16, 0.95));
}

.roster-card:hover img,
.companion-card:hover img,
.banner-card:hover img {
  transform: scale(1.04);
}

.roster-card div,
.companion-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.roster-card strong,
.companion-card strong {
  display: block;
  font-size: 20px;
}

.roster-card span,
.companion-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9edcff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summon {
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.25), rgba(10, 19, 39, 0.82), rgba(5, 8, 16, 0.2));
}

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

.banner-card {
  aspect-ratio: 0.82;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-tag {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 27, 61, 0.92);
  border: 1px solid rgba(111, 212, 255, 0.26);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.banner-tag.event {
  background: rgba(62, 12, 26, 0.92);
  border-color: rgba(255, 131, 131, 0.26);
}

.loot-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.loot-row div,
.mini-stat-grid div,
.bullet-panel div,
.hierarchy-list div {
  border-radius: 22px;
  border: 1px solid rgba(111, 212, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 21, 43, 0.8), rgba(5, 11, 24, 0.92));
}

.loot-row div {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
}

.loot-row img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.3));
}

.loot-row span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #d8e8ff;
  text-align: center;
}

.story-teaser {
  background: linear-gradient(180deg, rgba(9, 17, 33, 0.58), rgba(5, 8, 16, 0.18));
}

.chapter-points {
  margin: 18px 0 0;
  padding-left: 20px;
}

.chapter-points li {
  margin: 10px 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 25, 0.48), rgba(4, 8, 16, 0.9));
}

.page-hero-grid {
  position: relative;
  z-index: 1;
}

.page-hero-side {
  justify-self: end;
}

.mini-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 420px);
}

.mini-stat-grid div {
  min-height: 128px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-stat-grid strong {
  color: white;
  font-family: Cinzel, serif;
  font-size: 36px;
}

.mini-stat-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.info-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.info-card,
.timeline-card,
.chapter-card {
  padding: 28px;
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.timeline-time,
.chapter-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-time {
  color: #d8e8ff;
  background: rgba(8, 20, 45, 0.8);
  border: 1px solid rgba(111, 212, 255, 0.18);
}

.hierarchy-list,
.bullet-panel {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.hierarchy-list div,
.bullet-panel div {
  padding: 18px 20px;
}

.hierarchy-list strong,
.bullet-panel strong {
  display: block;
  margin-bottom: 6px;
  font-family: Cinzel, serif;
  color: white;
  font-size: 20px;
}

.hierarchy-list span,
.bullet-panel span {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 26px;
  border: 1px solid rgba(111, 212, 255, 0.14);
  background: linear-gradient(180deg, rgba(9, 20, 40, 0.84), rgba(4, 9, 19, 0.92));
  box-shadow: var(--shadow);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
}

td {
  font-size: 15px;
}

tr:last-child td {
  border-bottom: 0;
}

.chapter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chapter-tag {
  background: rgba(11, 31, 66, 0.92);
  border: 1px solid rgba(111, 212, 255, 0.22);
  color: #d7ecff;
}

.chapter-tag.fight {
  background: rgba(58, 23, 14, 0.92);
  border-color: rgba(255, 174, 110, 0.22);
}

.chapter-tag.story {
  background: rgba(9, 30, 45, 0.92);
}

.companion-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.companion-card {
  min-height: 450px;
}

.story-video-card video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.quote-block {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 3px solid rgba(255, 201, 77, 0.75);
  border-radius: 0 18px 18px 0;
  background: rgba(8, 18, 36, 0.7);
  font-style: italic;
  font-size: 18px;
}

.story-emblem {
  width: min(100%, 460px);
}

.story-emblem img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.download {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-glow {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: min(80vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 179, 255, 0.22), transparent 70%);
  filter: blur(16px);
}

.download-box {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.download-logo {
  width: 130px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 18px rgba(111, 212, 255, 0.45));
}

.center-actions {
  justify-content: center;
}

footer {
  padding: 34px max(20px, calc((100vw - var(--max)) / 2)) 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 30px;
  align-items: center;
  background: rgba(2, 6, 13, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 13px;
}

footer small {
  grid-column: 1 / -1;
  color: #77849b;
  text-align: center;
}

.reveal,
.reveal-right {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.tilt {
  transition: transform 0.18s ease, box-shadow 0.24s ease;
  transform-style: preserve-3d;
}

@keyframes bob {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@media (max-width: 1180px) {
  .hero-shell,
  .page-hero-grid,
  .section-split,
  .home-conquest-grid,
  .split-story,
  .split-economy {
    gap: 30px;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  }

  .hero-roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .loot-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-card-grid,
  .timeline-grid,
  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 72px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .site-header.open .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(111, 212, 255, 0.18);
    background: rgba(4, 11, 24, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  }

  .site-header.open .nav-links a::after {
    bottom: -4px;
  }

  .hero-home {
    min-height: unset;
    padding: 48px 0 124px;
  }

  .hero-shell,
  .page-hero-grid,
  .section-split,
  .home-conquest-grid,
  .split-story,
  .split-economy,
  .companion-grid {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .page-hero-copy,
  .section-copy,
  .center-heading,
  .download-box {
    text-align: center;
  }

  .hero-content .hero-actions,
  .page-hero-copy .hero-actions,
  .section-copy .hero-actions,
  .left-actions,
  .micro-pills,
  .stat-chips,
  .hero-badges {
    justify-content: center;
  }

  .hero-media,
  .page-hero-side {
    justify-self: center;
  }

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

  .feature-card:nth-child(2) {
    border-right: 0;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2) {
    border-bottom: 1px solid rgba(111, 212, 255, 0.12);
  }

  .dice-section {
    padding-top: 100px;
  }

  .dice-showcase {
    min-height: 430px;
  }

  .evolution .center-heading {
    margin-bottom: 26px;
  }

  .framed-grid,
  .banner-grid,
  .mini-stat-grid,
  .timeline-grid,
  .chapter-grid,
  .info-card-grid,
  .companion-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card,
  .chapter-card,
  .info-card,
  .companion-card,
  .story-video-card,
  .promo-card,
  .hero-media-card {
    max-width: 100%;
  }

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

  .banner-grid {
    max-width: 460px;
    margin: 0 auto;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer nav {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .section-pad {
    padding: 84px 0;
  }

  .hero-home {
    padding-top: 36px;
  }

  .hero-content h1 {
    font-size: clamp(40px, 13vw, 66px);
  }

  .page-hero-copy h1,
  .download h2,
  .center-heading h2,
  .section-copy h2 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero-copy,
  .page-hero-copy > p,
  .section-copy p,
  .center-heading p {
    font-size: 15px;
  }

  .hero-mark {
    width: 72px;
  }

  .hero-media-card video {
    aspect-ratio: 4 / 5;
  }

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

  .feature-card {
    border-right: 0;
    border-bottom: 1px solid rgba(111, 212, 255, 0.12);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .double-dice {
    width: 120px;
    left: 4px;
    bottom: 0;
  }

  .dice-badge {
    width: 126px;
    right: 2px;
    top: 4px;
  }

  .hero-roster,
  .loot-row {
    grid-template-columns: 1fr 1fr;
  }

  .roster-card {
    min-height: 320px;
  }

  .companion-card {
    min-height: 380px;
  }

  .loot-row div {
    min-height: 150px;
  }

  .loot-row img {
    width: 76px;
    height: 76px;
  }

  .quote-block {
    font-size: 16px;
  }

  th,
  td {
    padding: 14px 12px;
    font-size: 14px;
  }
}

@media (max-width: 460px) {
  .button,
  .nav-cta {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-roster,
  .loot-row {
    grid-template-columns: 1fr;
  }

  .roster-card {
    min-height: 390px;
  }

  .mini-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.v2-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 77, 0.34);
  background: rgba(255, 201, 77, 0.12);
  color: #ffe29b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-shell-v2 {
  align-items: center;
}

.hero-side-panel {
  display: grid;
  gap: 18px;
  justify-self: end;
  width: min(100%, 560px);
}

.hero-info-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.hero-mini-grid article,
.showcase-note {
  padding: 18px 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(111, 212, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 21, 43, 0.9), rgba(4, 9, 19, 0.95));
  box-shadow: var(--shadow);
}

.hero-mini-grid strong,
.showcase-note h3 {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-family: Cinzel, serif;
  font-size: 20px;
}

.hero-mini-grid span,
.showcase-note li {
  color: var(--muted);
  font-size: 14px;
}

.showcase-grid,
.gallery-split {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 26px;
  align-items: start;
}

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

.showcase-stack {
  display: grid;
  gap: 22px;
}

.showcase-large,
.showcase-small {
  box-shadow: var(--shadow);
}

.showcase-large img,
.showcase-small img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 14px);
}

.showcase-large img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.showcase-small img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.showcase-note ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.showcase-note li {
  margin: 10px 0;
}

.compact-actions {
  margin-top: 20px;
}

@media (max-width: 1180px) {
  .showcase-grid,
  .gallery-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .v2-tag {
    margin-inline: auto;
  }

  .showcase-note h3,
  .hero-mini-grid strong {
    font-size: 18px;
  }
}


/* Home hero refinement */
.hero-home {
  min-height: auto;
  display: block;
  padding: clamp(54px, 7vw, 92px) 0 clamp(82px, 9vw, 132px);
}

.hero-home .hero-bg {
  background-position: center 34%;
}

.hero-shell-main {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.hero-shell-main .hero-content {
  max-width: 700px;
}

.hero-shell-main .hero-content h1 {
  font-size: clamp(52px, 6.5vw, 94px);
  line-height: 0.94;
}

.hero-shell-main .hero-copy {
  max-width: 650px;
  margin-top: 24px;
  line-height: 1.72;
}

.hero-visual {
  position: relative;
  width: min(100%, 650px);
  justify-self: end;
  padding-bottom: 34px;
}

.hero-art-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(135deg, rgba(255, 214, 111, 0.92), rgba(78, 178, 255, 0.52));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46);
}

.hero-art-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}

.hero-d20-float {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: clamp(118px, 12vw, 178px);
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.hero-visual-caption {
  position: absolute;
  left: 22px;
  bottom: 0;
  max-width: min(72%, 360px);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(111, 212, 255, 0.18);
  background: rgba(4, 12, 28, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.hero-visual-caption span {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-visual-caption strong {
  display: block;
  margin-top: 4px;
  font-family: Cinzel, serif;
  font-size: 18px;
  line-height: 1.25;
}

.hero-feature-strip {
  position: relative;
  z-index: 4;
  margin-top: -38px;
}

@media (max-width: 1120px) {
  .site-header {
    padding-inline: 16px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .site-header.open .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(111, 212, 255, 0.18);
    background: rgba(4, 11, 24, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  }

  .hero-shell-main {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 34px;
  }

  .hero-shell-main .hero-content h1 {
    font-size: clamp(48px, 7vw, 76px);
  }
}

@media (max-width: 860px) {
  .hero-home {
    padding: 42px 0 72px;
  }

  .hero-home .hero-bg {
    background-position: 58% center;
  }

  .hero-shell-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-shell-main .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-shell-main .hero-content h1 {
    font-size: clamp(46px, 10.5vw, 70px);
  }

  .hero-shell-main .hero-copy {
    max-width: 680px;
    margin-inline: auto;
  }

  .hero-shell-main .hero-actions,
  .hero-shell-main .hero-badges {
    justify-content: center;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 650px);
  }

  .hero-feature-strip {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .hero-home {
    padding: 28px 0 54px;
  }

  .hero-home .hero-bg {
    background-position: 60% center;
  }

  .hero-home::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 8, 20, 0.18), rgba(3, 8, 20, 0.58) 52%, rgba(3, 8, 20, 0.9));
    pointer-events: none;
  }

  .hero-shell-main {
    gap: 30px;
  }

  .hero-shell-main .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-shell-main .eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
  }

  .hero-shell-main .hero-content h1 {
    font-size: clamp(40px, 13vw, 58px);
    line-height: 0.98;
  }

  .hero-shell-main .hero-copy {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.62;
  }

  .hero-shell-main .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-shell-main .button {
    width: 100%;
    min-height: 52px;
  }

  .hero-shell-main .hero-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 18px;
  }

  .hero-shell-main .hero-badges i {
    display: none;
  }

  .hero-shell-main .hero-badges span {
    min-height: 42px;
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
    font-size: 9px;
  }

  .hero-visual {
    padding-bottom: 46px;
  }

  .hero-art-frame {
    padding: 6px;
    border-radius: 22px;
  }

  .hero-art-frame img {
    border-radius: 16px;
    aspect-ratio: 16 / 11;
  }

  .hero-d20-float {
    right: -8px;
    bottom: -8px;
    width: 104px;
  }

  .hero-visual-caption {
    left: 10px;
    bottom: 0;
    max-width: calc(100% - 92px);
    padding: 10px 12px;
    border-radius: 14px;
  }

  .hero-visual-caption strong {
    font-size: 14px;
  }

  .hero-feature-strip {
    width: calc(100% - 24px);
  }
}

@media (max-width: 420px) {
  .hero-shell-main .hero-content h1 {
    font-size: 38px;
  }

  .hero-shell-main .hero-badges {
    grid-template-columns: 1fr;
  }

  .hero-d20-float {
    width: 90px;
  }

  .hero-visual-caption {
    max-width: calc(100% - 78px);
  }
}


/* Interactive evolution showcase */
.evolution {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 46%, rgba(58, 165, 255, 0.16), transparent 28%),
    radial-gradient(circle at 78% 48%, rgba(255, 202, 80, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(5, 10, 23, 0.5), rgba(8, 18, 39, 0.82) 52%, rgba(5, 9, 19, 0.42));
}

.evolution-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.evolution-copy h2 {
  margin: 0 0 22px;
  font-family: Cinzel, serif;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.98;
}

.evolution-copy h2 span {
  background: linear-gradient(180deg, #ffe195 0%, #f0b33d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.evolution-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.evolution-stage-nav {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.evolution-stage-button {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid rgba(111, 212, 255, 0.12);
  border-radius: 16px;
  background: rgba(6, 16, 35, 0.58);
  color: white;
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.evolution-stage-button:hover {
  transform: translateX(4px);
  border-color: rgba(111, 212, 255, 0.34);
}

.evolution-stage-button.active {
  border-color: rgba(255, 205, 92, 0.54);
  background: linear-gradient(90deg, rgba(92, 62, 14, 0.42), rgba(8, 22, 50, 0.82));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.evolution-stage-button > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.evolution-stage-button strong {
  font-family: Cinzel, serif;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.evolution-stage-button small {
  color: #9edcff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evolution-info {
  min-height: 126px;
  margin-top: 22px;
  padding: 20px 22px;
  border-left: 2px solid rgba(255, 204, 89, 0.7);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(12, 25, 49, 0.82), rgba(6, 14, 31, 0.48));
}

.evolution-info-stage {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.evolution-info-name {
  margin: 5px 0 6px;
  font-family: Cinzel, serif;
  font-size: 27px;
  line-height: 1.15;
}

.evolution-info-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.evolution-trigger {
  margin-top: 20px;
  min-width: 210px;
  cursor: pointer;
}

.evolution-showcase {
  position: relative;
  min-height: 650px;
  display: grid;
  justify-items: center;
  align-content: center;
}

.evolution-aura {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(78vw, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(95, 195, 255, 0.18), rgba(45, 89, 168, 0.08) 34%, transparent 67%);
  filter: blur(8px);
  pointer-events: none;
}

.evolution-stack {
  position: relative;
  width: min(100%, 440px);
  height: 590px;
  isolation: isolate;
  perspective: 1300px;
}

.evolution-card-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  opacity: 0;
  transform-origin: 50% 80%;
  transition:
    transform 0.68s cubic-bezier(0.18, 0.75, 0.2, 1),
    opacity 0.5s ease,
    filter 0.5s ease;
  pointer-events: none;
}

.evolution-card-layer img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 590px;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.46));
}

.evolution-card-layer.active {
  z-index: 5;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
  filter: none;
}

.evolution-card-layer.past {
  z-index: 3;
  opacity: 0.28;
  transform: translate3d(-52px, 24px, -90px) rotateY(8deg) scale(0.92);
  filter: brightness(0.62) saturate(0.72);
}

.evolution-card-layer.future {
  z-index: 2;
  opacity: 0.18;
  transform: translate3d(52px, 20px, -120px) rotateY(-8deg) scale(0.9);
  filter: brightness(0.52) saturate(0.64);
}

.evolution-card-layer.stage-3.active img {
  filter:
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 24px rgba(255, 203, 76, 0.22));
}

.evolution-progress {
  display: flex;
  gap: 9px;
  margin-top: 6px;
}

.evolution-progress span {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.evolution-progress span.active {
  background: linear-gradient(90deg, var(--blue), var(--gold));
  box-shadow: 0 0 12px rgba(111, 212, 255, 0.26);
}

.evolution-hint {
  margin: 13px 0 0;
  color: #8798b7;
  font-size: 12px;
  text-align: center;
}

.evolution-hint strong {
  color: #dbe8ff;
}

@media (max-width: 980px) {
  .evolution-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .evolution-copy {
    text-align: center;
  }

  .evolution-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .evolution-stage-nav {
    max-width: 660px;
    margin-inline: auto;
  }

  .evolution-info {
    max-width: 660px;
    margin-inline: auto;
    text-align: left;
  }

  .evolution-trigger {
    display: inline-flex;
  }

  .evolution-showcase {
    min-height: 570px;
  }

  .evolution-stack {
    width: min(100%, 390px);
    height: 520px;
  }

  .evolution-card-layer img {
    max-height: 520px;
  }
}

@media (max-width: 640px) {
  .evolution {
    padding-block: 78px;
  }

  .evolution-layout {
    gap: 28px;
  }

  .evolution-copy h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .evolution-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .evolution-stage-button {
    grid-template-columns: 34px 1fr auto;
    min-height: 58px;
    padding: 9px 12px;
  }

  .evolution-stage-button strong {
    font-size: 14px;
  }

  .evolution-stage-button small {
    font-size: 9px;
  }

  .evolution-info {
    min-height: 118px;
    padding: 17px 18px;
  }

  .evolution-info-name {
    font-size: 22px;
  }

  .evolution-trigger {
    width: 100%;
  }

  .evolution-showcase {
    min-height: 480px;
  }

  .evolution-stack {
    width: min(100%, 330px);
    height: 430px;
  }

  .evolution-card-layer {
    padding: 2px;
  }

  .evolution-card-layer img {
    max-height: 430px;
  }

  .evolution-card-layer.past {
    transform: translate3d(-26px, 16px, -70px) rotateY(6deg) scale(0.94);
  }

  .evolution-card-layer.future {
    transform: translate3d(26px, 16px, -80px) rotateY(-6deg) scale(0.93);
  }
}

@media (max-width: 420px) {
  .evolution-stage-button {
    grid-template-columns: 30px 1fr;
  }

  .evolution-stage-button small {
    grid-column: 2;
    margin-top: -6px;
  }

  .evolution-showcase {
    min-height: 430px;
  }

  .evolution-stack {
    width: min(100%, 290px);
    height: 385px;
  }

  .evolution-card-layer img {
    max-height: 385px;
  }
}


/* Desktop alignment fixes */
.page-home .conquest-showcase .showcase-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
}

.page-home .conquest-showcase .showcase-large {
  height: 100%;
  min-height: 100%;
}

.page-home .conquest-showcase .showcase-large img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.page-home .conquest-showcase .showcase-stack {
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}

.page-home .conquest-showcase .showcase-small {
  height: 100%;
}

.page-home .conquest-showcase .showcase-small img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.page-home .conquest-showcase .showcase-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-video-card {
  background: #02050b;
}

.story-video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #000;
}

/* Dedicated mobile presentation */
@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(37, 105, 174, 0.14), transparent 28%),
      linear-gradient(180deg, #061020 0%, #040812 46%, #03060d 100%);
  }

  .site-header {
    height: var(--header-h);
    padding: 0 12px;
    background: rgba(3, 8, 18, 0.92);
    border-bottom-color: rgba(111, 212, 255, 0.12);
  }

  .brand {
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.15em;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .site-header.open .nav-links {
    top: calc(100% + 8px);
    left: 10px;
    right: 10px;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
  }

  .site-header.open .nav-links a {
    width: 100%;
    padding: 13px 12px;
    border-radius: 12px;
  }

  .site-header.open .nav-links a:active {
    background: rgba(111, 212, 255, 0.08);
  }

  .container {
    width: calc(100% - 28px);
  }

  .section-pad {
    padding: 68px 0;
  }

  /* Home mobile hero: intentionally different from desktop */
  .hero-home {
    padding: 20px 0 42px;
    min-height: auto;
  }

  .hero-home .hero-bg {
    background-position: 63% center;
    filter: saturate(1.03) brightness(0.72);
  }

  .hero-home::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(3, 8, 20, 0.14) 0%, rgba(3, 8, 20, 0.42) 42%, rgba(3, 8, 20, 0.94) 100%),
      linear-gradient(90deg, rgba(3, 8, 20, 0.38), transparent 70%);
    pointer-events: none;
  }

  .hero-shell-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .hero-shell-main .hero-content {
    order: 1;
    text-align: left;
  }

  .hero-shell-main .eyebrow {
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero-shell-main .hero-content h1 {
    max-width: 360px;
    font-size: clamp(38px, 11.7vw, 52px);
    line-height: 0.96;
  }

  .hero-shell-main .hero-copy {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.58;
    text-align: left;
  }

  .hero-shell-main .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 20px;
  }

  .hero-shell-main .button {
    width: 100%;
    min-height: 50px;
    padding-inline: 16px;
    border-radius: 14px;
    font-size: 10px;
  }

  .hero-shell-main .hero-badges {
    display: none;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    padding-bottom: 30px;
  }

  .hero-art-frame {
    padding: 5px;
    border-radius: 18px;
  }

  .hero-art-frame img {
    aspect-ratio: 16 / 10;
    border-radius: 13px;
  }

  .hero-d20-float {
    right: -4px;
    bottom: -6px;
    width: 88px;
  }

  .hero-visual-caption {
    left: 8px;
    bottom: 0;
    max-width: calc(100% - 80px);
    padding: 9px 11px;
    border-radius: 12px;
  }

  .hero-visual-caption span {
    font-size: 8px;
  }

  .hero-visual-caption strong {
    font-size: 13px;
  }

  /* Swipeable gameplay cards instead of desktop strip */
  .hero-feature-strip {
    width: 100%;
    margin-top: 0;
    padding: 0 14px 6px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
  }

  .hero-feature-strip::-webkit-scrollbar {
    display: none;
  }

  .hero-feature-strip .feature-card {
    flex: 0 0 82vw;
    min-height: 150px;
    padding: 22px 20px;
    border: 1px solid rgba(111, 212, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(9, 23, 48, 0.95), rgba(4, 10, 22, 0.96));
    scroll-snap-align: center;
  }

  .hero-feature-strip .feature-card h3 {
    margin: 10px 0 6px;
    font-size: 25px;
  }

  .hero-feature-strip .feature-card p {
    margin: 0;
    font-size: 14px;
  }

  /* Dice mobile */
  .dice-section {
    display: flex;
    flex-direction: column;
    padding-top: 72px;
    gap: 12px;
  }

  .dice-section .section-copy {
    text-align: left;
  }

  .dice-section .section-copy h2 {
    font-size: 44px;
  }

  .dice-section .micro-pills {
    justify-content: flex-start;
    gap: 7px;
  }

  .dice-section .micro-pills span {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .dice-showcase {
    min-height: 360px;
  }

  .d20-model {
    width: min(88vw, 340px);
    height: min(88vw, 340px);
  }

  .double-dice {
    width: 100px;
  }

  .dice-badge {
    width: 104px;
  }

  /* Evolution mobile: card first, controls second */
  .evolution-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .evolution-showcase {
    order: 1;
    min-height: 395px;
  }

  .evolution-copy {
    order: 2;
    text-align: left;
  }

  .evolution-copy h2 {
    font-size: 40px;
  }

  .evolution-copy > p:not(.eyebrow) {
    margin-inline: 0;
  }

  .evolution-stage-nav {
    margin-top: 22px;
  }

  .evolution-info {
    margin-inline: 0;
  }

  .evolution-stack {
    width: min(100%, 285px);
    height: 370px;
  }

  .evolution-card-layer img {
    max-height: 370px;
  }

  /* Conquest mobile: clean stacked cards */
  .page-home .conquest-showcase .center-heading {
    text-align: left;
    margin-bottom: 28px;
  }

  .page-home .conquest-showcase .showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .page-home .conquest-showcase .showcase-large,
  .page-home .conquest-showcase .showcase-small {
    height: auto;
  }

  .page-home .conquest-showcase .showcase-large img,
  .page-home .conquest-showcase .showcase-small img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .page-home .conquest-showcase .showcase-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .page-home .conquest-showcase .showcase-small {
    order: 2;
  }

  .page-home .conquest-showcase .showcase-note {
    order: 1;
    padding: 20px;
  }

  .page-home .conquest-showcase .showcase-note li {
    font-size: 13px;
  }

  .page-home .conquest-showcase .showcase-note .button {
    width: 100%;
  }

  /* Hero roster becomes swipe gallery */
  .hero-roster {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 14px 14px;
    margin-inline: -14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hero-roster::-webkit-scrollbar {
    display: none;
  }

  .roster-card {
    flex: 0 0 72vw;
    min-height: 390px;
    scroll-snap-align: center;
  }

  /* Summon becomes swipeable on phone */
  .banner-grid {
    display: flex;
    max-width: none;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 14px 14px;
    margin-inline: -14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .banner-grid::-webkit-scrollbar {
    display: none;
  }

  .banner-card {
    flex: 0 0 78vw;
    scroll-snap-align: center;
  }

  .loot-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .loot-row div {
    min-height: 138px;
    padding: 14px;
  }

  /* Story teaser mobile */
  .split-story {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .story-teaser .section-copy {
    text-align: left;
  }

  .story-teaser .left-actions {
    justify-content: stretch;
  }

  .story-teaser .button {
    width: 100%;
  }

  /* Sub-page hero mobile */
  .page-hero {
    padding: 46px 0 62px;
  }

  .page-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .page-hero-copy {
    text-align: left;
  }

  .page-hero-copy h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .page-hero-copy > p {
    font-size: 14px;
    line-height: 1.6;
  }

  .page-hero-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-hero-copy .button {
    width: 100%;
  }

  .page-hero-side {
    width: 100%;
  }

  .mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .mini-stat-grid div {
    min-height: 96px;
    padding: 15px;
  }

  .mini-stat-grid strong {
    font-size: 28px;
  }

  /* Story opening video first on mobile */
  .story-opening .section-split {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }

  .story-opening .section-copy {
    text-align: left;
  }

  .story-video-card {
    width: 100%;
    padding: 5px;
    border-radius: 20px;
  }

  .story-video-card video {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 14px;
  }

  .quote-block {
    margin-top: 18px;
    padding: 15px 16px;
    font-size: 14px;
  }

  .chapter-grid,
  .info-card-grid,
  .timeline-grid,
  .companion-grid {
    gap: 12px;
  }

  .chapter-card,
  .info-card,
  .timeline-card {
    padding: 20px;
  }

  .chapter-card h3,
  .info-card h3,
  .timeline-card h3 {
    font-size: 22px;
  }

  .companion-card {
    min-height: 380px;
  }

  .gallery-split {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .territory-section .section-copy,
  .economy-section .reveal,
  .economy-section .reveal-right,
  .page-conquest .section-copy {
    text-align: left;
  }

  .table-wrap {
    border-radius: 18px;
  }

  footer {
    padding: 28px 14px 34px;
  }

  footer nav {
    gap: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .hero-shell-main .hero-content h1 {
    font-size: 36px;
  }

  .hero-feature-strip .feature-card {
    flex-basis: 86vw;
  }

  .roster-card {
    flex-basis: 78vw;
  }

  .banner-card {
    flex-basis: 84vw;
  }

  .evolution-stack {
    width: 270px;
    height: 350px;
  }

  .evolution-card-layer img {
    max-height: 350px;
  }
}


/* Prevent page-level horizontal drag / white overscroll on mobile */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: #03060d;
  overscroll-behavior-x: none;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  position: relative;
}

main,
.site-header,
footer {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.page-noise {
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 767px) {
  html,
  body {
    min-width: 0;
    overscroll-behavior-x: none;
  }

  main,
  .site-header,
  footer,
  .hero,
  .page-hero,
  section {
    max-width: 100vw;
  }

  .container {
    max-width: calc(100vw - 28px);
  }

  /* These remain intentionally horizontally scrollable inside the locked page. */
  .hero-feature-strip,
  .hero-roster,
  .banner-grid,
  .table-wrap {
    overscroll-behavior-x: contain;
  }
}


/* Clean bottom-right mobile navigation */
@media (max-width: 767px) {
  .site-header {
    position: sticky;
    top: 0;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #050b16;
    box-shadow: none;
  }

  body.scrolled .site-header {
    background: #050b16;
    box-shadow: none;
  }

  .menu-button {
    position: fixed;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 210, 97, 0.42);
    background: #0a1426;
    color: #f6d477;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: none;
  }

  .site-header .nav-links,
  .site-header.open .nav-links {
    position: fixed;
    top: auto;
    left: auto;
    right: 16px;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px);
    z-index: 115;
    display: flex;
    width: min(82vw, 310px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(111, 212, 255, 0.18);
    border-radius: 18px;
    background: #07101f;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(14px, 14px, 0);
    transition:
      opacity 0.16s ease,
      transform 0.16s ease,
      visibility 0.16s step-end;
  }

  .site-header.open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 0.16s ease,
      transform 0.16s ease,
      visibility 0s;
  }

  .site-header .nav-links a,
  .site-header.open .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    color: #eaf2ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: transparent;
  }

  .site-header .nav-links a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-header .nav-links a::after {
    display: none;
  }

  .site-header .nav-links a.active {
    color: #f6d477;
    background: rgba(255, 210, 97, 0.06);
  }

  .site-header .nav-links a:active {
    background: rgba(255, 255, 255, 0.055);
  }

  body.menu-open {
    overflow: hidden;
  }
}
