:root {
  --ink: #070608;
  --ink-soft: #0d0b0f;
  --panel: #121016;
  --paper: #eee7dc;
  --muted: #aaa19a;
  --gold: #c89b4c;
  --gold-light: #f1d18d;
  --bronze: #8b522d;
  --burgundy: #521621;
  --faction: #df3c2f;
  --line: rgba(213, 178, 111, .22);
  --display: 'Cinzel', Georgia, serif;
  --body: 'Manrope', Arial, sans-serif;
  --shell: min(88vw, 1580px);
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  content: '';
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

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

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

::selection {
  color: #120b04;
  background: var(--gold-light);
}

.portal-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #171227 0, #08070a 42%, #030304 100%);
  transition: opacity .45s ease, visibility .45s ease;
}

.portal-intro.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.portal-intro p {
  position: absolute;
  top: calc(50% + 150px);
  margin: 0;
  color: rgba(241, 209, 141, .72);
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  animation: portal-copy 1.4s ease both;
}

.portal-aura {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 45, 144, .35), rgba(33, 112, 154, .12) 45%, transparent 72%);
  filter: blur(10px);
  animation: portal-aura 1.5s ease both;
}

.portal-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(226, 188, 111, .55);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(102, 61, 185, .3), inset 0 0 30px rgba(213, 178, 111, .12);
}

.portal-ring::before, .portal-ring::after {
  position: absolute;
  inset: 17px;
  content: '';
  border: 1px dashed rgba(213, 178, 111, .35);
  border-radius: inherit;
}

.portal-ring::after {
  inset: 36px;
  border-style: solid;
  border-color: rgba(79, 154, 211, .25);
}

.portal-ring-outer {
  animation: portal-open 1.45s cubic-bezier(.2, .8, .2, 1) both, slow-spin 24s linear infinite;
}

.portal-ring-inner {
  width: 220px;
  height: 220px;
  border-color: rgba(81, 167, 209, .45);
  animation: portal-open .95s .16s cubic-bezier(.2, .8, .2, 1) both, slow-spin-reverse 17s linear infinite;
}

.portal-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--gold-light);
  font-size: 1.3rem;
  text-shadow: 0 0 12px currentColor;
  transform-origin: 0 0;
  opacity: 0;
  animation: rune-light .35s ease forwards;
}

.portal-ring span:nth-child(1) { transform: rotate(0deg) translate(0, -148px); animation-delay: .16s; }
.portal-ring span:nth-child(2) { transform: rotate(60deg) translate(0, -148px); animation-delay: .31s; }
.portal-ring span:nth-child(3) { transform: rotate(120deg) translate(0, -148px); animation-delay: .46s; }
.portal-ring span:nth-child(4) { transform: rotate(180deg) translate(0, -148px); animation-delay: .61s; }
.portal-ring span:nth-child(5) { transform: rotate(240deg) translate(0, -148px); animation-delay: .76s; }
.portal-ring span:nth-child(6) { transform: rotate(300deg) translate(0, -148px); animation-delay: .91s; }

.portal-core {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 188, 111, .18), transparent 65%);
  animation: core-awake 1.3s ease both;
}

.portal-core img {
  width: 104px;
  filter: drop-shadow(0 0 22px rgba(226, 188, 111, .45));
}

.portal-seen .portal-intro {
  display: none;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  width: 480px;
  height: 480px;
  pointer-events: none;
  opacity: .3;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 73, 187, .13), transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.mana-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.mana-particles i {
  position: absolute;
  bottom: -20px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  opacity: 0;
  background: var(--particle-color, #d7bd7a);
  box-shadow: 0 0 10px var(--particle-color, #d7bd7a);
  animation: mana-rise var(--particle-duration, 13s) linear var(--particle-delay, 0s) infinite;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
  height: 2px;
  background: rgba(255, 255, 255, .035);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #67212f, var(--gold-light));
  box-shadow: 0 0 12px rgba(226, 188, 111, .7);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

.site-header.is-scrolled, .site-header.menu-open {
  border-color: rgba(213, 178, 111, .14);
  background: rgba(7, 6, 8, .78);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
  backdrop-filter: blur(20px);
}

.site-nav {
  width: min(94vw, 1700px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  position: relative;
  z-index: 2;
  width: 58px;
  flex: 0 0 58px;
  filter: drop-shadow(0 0 12px rgba(211, 175, 104, .3));
}

.brand img {
  width: 100%;
  height: auto;
}

.desktop-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 1.6vw, 2rem);
}

.desktop-links a {
  position: relative;
  color: rgba(238, 231, 220, .72);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  white-space: nowrap;
  transition: color .25s ease;
}

.desktop-links a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.65rem;
  height: 1px;
  content: '';
  background: var(--gold-light);
  transition: right .25s ease;
}

.desktop-links a:hover, .desktop-links a.active {
  color: var(--gold-light);
}

.desktop-links a:hover::after, .desktop-links a.active::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .8rem;
}

.sound-toggle, .menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 0;
  color: rgba(238, 231, 220, .72);
  background: transparent;
  cursor: pointer;
}

.sound-toggle {
  height: 42px;
  padding: 0 .65rem;
  font-size: .72rem;
  letter-spacing: .06em;
}

.sound-toggle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.sound-toggle[aria-pressed='true'] {
  color: var(--gold-light);
  text-shadow: 0 0 14px rgba(226, 188, 111, .5);
}

.nav-buy {
  padding: .7rem 1rem;
  color: #130d06;
  background: linear-gradient(120deg, #aa7531, #e0ba6d 55%, #96612d);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  font-family: var(--display);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: filter .25s ease, transform .25s ease;
}

.nav-buy:hover {
  filter: brightness(1.13);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  justify-content: center;
  flex-direction: column;
}

.menu-toggle span {
  width: 21px;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease;
}

.site-header.menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, .83fr) minmax(480px, 1.17fr);
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: calc(var(--header-height) + 3rem) max(6vw, calc((100vw - 1680px) / 2)) 5rem;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(90deg, rgba(5, 4, 6, .98) 0, rgba(5, 4, 6, .86) 34%, rgba(5, 4, 6, .23) 68%, rgba(5, 4, 6, .62) 100%), linear-gradient(0deg, var(--ink), transparent 24%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('./assets/world-background.webp') center / cover no-repeat;
  filter: saturate(.72) contrast(1.12) brightness(.57);
  transform: scale(1.04);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: '';
  background: radial-gradient(circle at 68% 42%, rgba(183, 122, 61, .11), transparent 34%), radial-gradient(circle at 78% 34%, rgba(78, 90, 173, .15), transparent 27%);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 690px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.25rem;
  color: var(--gold-light);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  box-shadow: 0 0 9px currentColor;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.85rem, 5.1vw, 6.1rem);
  letter-spacing: -.035em;
  text-wrap: balance;
  text-transform: uppercase;
  text-shadow: 0 10px 45px rgba(0, 0, 0, .75);
}

h1 em, h2 em {
  color: var(--gold-light);
  font-style: normal;
  background: linear-gradient(110deg, #9a682f 2%, #f1d18d 42%, #b17b36 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 590px;
  margin: 1.65rem 0 1.1rem;
  color: rgba(238, 231, 220, .8);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.72;
}

.hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 2rem;
  color: var(--gold);
  font-family: var(--display);
  font-size: .76rem;
  letter-spacing: .06em;
}

.hero-proof i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.hero-actions, .buy-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem;
}

.button {
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: .85rem 1.4rem;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .035em;
  transition: transform .28s ease, filter .28s ease, background .28s ease;
}

.button::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, .24) 46%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}

.button:hover::before { transform: translateX(120%); }
.button:hover { transform: translateY(-3px); }
.button > span { position: relative; z-index: 1; }

.button-primary {
  color: #160e05;
  background: linear-gradient(115deg, #936126, #e2bd70 52%, #a56e2d);
  box-shadow: 0 16px 35px rgba(123, 70, 25, .28), 0 0 0 1px rgba(240, 206, 138, .2) inset;
}

.button-primary:hover { filter: brightness(1.12); }

.button-ghost {
  color: var(--paper);
  background: rgba(11, 9, 13, .52);
  box-shadow: inset 0 0 0 1px rgba(213, 178, 111, .38);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  color: var(--gold-light);
  background: rgba(213, 178, 111, .08);
}

.hero-stats {
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 3.2rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats div {
  position: relative;
  padding: .95rem .8rem .9rem 0;
}

.hero-stats div:not(:last-child)::after {
  position: absolute;
  right: .85rem;
  top: 24%;
  bottom: 24%;
  width: 1px;
  content: '';
  background: var(--line);
}

.hero-stats dt {
  color: rgba(238, 231, 220, .45);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: .14rem 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: .83rem;
}

.hero-artifact {
  position: relative;
  z-index: 3;
  width: min(62vw, 1060px);
  justify-self: end;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease-out;
}

.artifact-box {
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 2752 / 1536;
  object-fit: contain;
  filter: drop-shadow(0 55px 42px rgba(0, 0, 0, .78)) saturate(1.08) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

.artifact-halo {
  position: absolute;
  z-index: 0;
  inset: 2% 5%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(200, 155, 76, .17), rgba(109, 43, 37, .08) 43%, transparent 69%);
  filter: blur(24px);
  animation: artifact-breathe 5s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  z-index: 4;
  width: clamp(82px, 9vw, 158px);
  filter: drop-shadow(0 25px 18px rgba(0, 0, 0, .75));
  pointer-events: none;
}

.floating-card-left {
  left: 2%;
  top: 8%;
  transform: translateZ(45px) rotate(-10deg);
  animation: card-float-left 6s ease-in-out infinite;
}

.floating-card-right {
  right: 0;
  bottom: 2%;
  transform: translateZ(68px) rotate(9deg);
  animation: card-float-right 7s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(213, 178, 111, .22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  box-shadow: 0 0 18px rgba(213, 178, 111, .08), inset 0 0 18px rgba(213, 178, 111, .08);
}

.orbit::before, .orbit::after {
  position: absolute;
  width: 7px;
  height: 7px;
  content: '';
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 18px currentColor;
}

.orbit::before { left: 12%; top: 16%; }
.orbit::after { right: 8%; bottom: 22%; color: #5e80e2; }
.orbit-one { animation: orbit-spin 15s linear infinite; }
.orbit-two { width: 54%; opacity: .55; animation: orbit-spin-reverse 11s linear infinite; }

.hero-rune {
  position: absolute;
  z-index: 0;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(213, 178, 111, .09);
  border-radius: 50%;
  opacity: .7;
}

.hero-rune::before, .hero-rune::after {
  position: absolute;
  inset: 19px;
  content: '';
  border: 1px dashed rgba(213, 178, 111, .08);
  border-radius: inherit;
}

.hero-rune::after { inset: 42px; border-style: solid; }
.rune-one { left: -90px; top: 22%; animation: slow-spin 32s linear infinite; }
.rune-two { right: 16%; bottom: -120px; width: 380px; height: 380px; animation: slow-spin-reverse 42s linear infinite; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: rgba(238, 231, 220, .5);
  font-size: .62rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--gold), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.section-shell {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: hidden;
  padding: clamp(5.5rem, 9vw, 10rem) max(6vw, calc((100vw - 1680px) / 2));
}

.section-heading {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin-bottom: clamp(2.8rem, 5vw, 5rem);
}

.section-heading h2, .premium-copy h2, .creation-copy h2, .buy-copy h2 {
  font-size: clamp(2.25rem, 4.3vw, 5.25rem);
  letter-spacing: -.035em;
  text-wrap: balance;
  text-transform: uppercase;
}

.section-heading > p:last-child, .split-heading > p, .premium-copy > p, .creation-copy > p, .buy-copy > p {
  color: var(--muted);
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
}

.split-heading > p {
  max-width: 520px;
  margin: 0 0 .55rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .75, .2, 1);
}

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

.world-section {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--ink), rgba(5, 5, 7, .66) 24%, rgba(5, 5, 7, .86) 86%, var(--ink)), url('./assets/lore-background.webp') center / cover fixed;
  isolation: isolate;
}

.world-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: radial-gradient(circle at 50% 56%, transparent 0, rgba(5, 5, 7, .18) 36%, rgba(5, 5, 7, .92) 86%);
}

.world-light {
  position: absolute;
  left: 38%;
  top: 20%;
  width: 40%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(80, 115, 176, .12), transparent 68%);
  filter: blur(35px);
}

.world-narrative {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  padding-left: clamp(1.5rem, 5vw, 6rem);
  border-left: 1px solid var(--line);
}

.story-line {
  margin: 0 0 1rem;
  color: rgba(238, 231, 220, .82);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.25vw, 2.35rem);
  line-height: 1.45;
  text-wrap: balance;
}

.story-line:nth-child(2) { transition-delay: .12s; }
.story-line:nth-child(3) { color: var(--gold-light); transition-delay: .24s; }

.world-heroes {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  margin: clamp(3rem, 6vw, 6rem) auto -3rem;
}

.world-heroes::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 3;
  content: '';
  background: linear-gradient(transparent, var(--ink));
  pointer-events: none;
}

.world-heroes figure {
  position: relative;
  min-width: 0;
  margin: 0 -11%;
  overflow: hidden;
  filter: saturate(.18) brightness(.55);
  transition: filter .45s ease, transform .45s ease;
}

.world-heroes figure:nth-child(2) { transition-delay: .06s; }
.world-heroes figure:nth-child(3) { transition-delay: .12s; }
.world-heroes figure:nth-child(4) { transition-delay: .18s; }
.world-heroes figure:nth-child(5) { transition-delay: .24s; }
.world-heroes figure:nth-child(6) { transition-delay: .3s; }

.world-heroes figure:hover {
  z-index: 5;
  filter: saturate(.9) brightness(.85);
  transform: translateY(-14px) scale(1.03);
}

.world-heroes img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 100%);
  mask-image: linear-gradient(#000 60%, transparent 100%);
}

.world-heroes figcaption {
  position: absolute;
  left: 50%;
  bottom: 18%;
  z-index: 4;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: clamp(.65rem, 1vw, .85rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.factions-section {
  --faction: #df3c2f;
  min-height: 100vh;
  background: linear-gradient(135deg, #08070a 0, #100d12 55%, #070608 100%);
  isolation: isolate;
}

.factions-section::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: '';
  opacity: .2;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 50% 60%, #000, transparent 65%);
  mask-image: radial-gradient(circle at 50% 60%, #000, transparent 65%);
}

.faction-glow {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 2%;
  height: 62%;
  opacity: .26;
  background: radial-gradient(ellipse at 50% 60%, var(--faction), transparent 62%);
  filter: blur(45px);
  transition: background .7s ease;
}

.faction-tabs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faction-tabs button {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border: 0;
  border-right: 1px solid var(--line);
  color: rgba(238, 231, 220, .5);
  background: rgba(255, 255, 255, .015);
  font-family: var(--display);
  font-size: clamp(.64rem, .8vw, .78rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s ease, background .3s ease;
}

.faction-tabs button:last-child { border-right: 0; }

.faction-tabs button::after {
  position: absolute;
  inset: auto 50% -1px;
  height: 2px;
  content: '';
  background: var(--faction);
  box-shadow: 0 0 15px var(--faction);
  transition: inset .3s ease, background .3s ease;
}

.faction-tabs button i {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: background .3s ease, box-shadow .3s ease;
}

.faction-tabs button:hover, .faction-tabs button[aria-selected='true'] {
  color: var(--paper);
  background: rgba(255, 255, 255, .045);
}

.faction-tabs button[aria-selected='true']::after { inset: auto 12% -1px; }
.faction-tabs button[aria-selected='true'] i { background: var(--faction); box-shadow: 0 0 12px var(--faction); }

.faction-stage {
  position: relative;
  z-index: 3;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, .85fr) minmax(220px, .55fr);
  align-items: center;
  gap: clamp(1rem, 3.5vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(4, 4, 5, .22), rgba(11, 9, 13, .86) 48%, rgba(6, 5, 7, .94));
  clip-path: polygon(0 0, 96% 0, 100% 9%, 100% 100%, 4% 100%, 0 91%);
}

.faction-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(90deg, transparent 42%, rgba(6, 5, 7, .72) 59%, rgba(6, 5, 7, .96) 100%);
}

.faction-portrait-wrap {
  align-self: stretch;
  overflow: hidden;
}

.faction-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.08);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 62%, transparent 100%), linear-gradient(#000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 62%, transparent 100%), linear-gradient(#000 80%, transparent 100%);
  transition: opacity .28s ease, transform .7s ease;
}

.faction-stage.is-changing .faction-portrait-wrap img, .faction-stage.is-changing .faction-card img, .faction-stage.is-changing .faction-copy {
  opacity: .1;
  transform: translateY(10px) scale(.98);
}

.faction-copy {
  position: relative;
  z-index: 3;
  padding: 3rem 0;
  transition: opacity .28s ease, transform .35s ease;
}

.faction-index {
  margin: 0 0 1rem;
  color: var(--faction);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.faction-copy h3 {
  color: var(--paper);
  font-size: clamp(3rem, 6vw, 6.7rem);
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-shadow: 0 0 55px color-mix(in srgb, var(--faction) 38%, transparent);
}

.faction-title {
  margin: .5rem 0 1.4rem;
  color: var(--faction);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faction-description {
  max-width: 520px;
  margin: 0;
  color: rgba(238, 231, 220, .73);
  font-size: 1.03rem;
}

.faction-traits {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.5rem;
}

.faction-traits span {
  padding: .42rem .65rem;
  border-left: 1px solid var(--faction);
  color: rgba(238, 231, 220, .68);
  background: rgba(255, 255, 255, .025);
  font-size: .7rem;
  letter-spacing: .04em;
}

.music-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.7rem;
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.music-link span { transition: transform .25s ease; }
.music-link:hover span { transform: translate(3px, -3px); }

.faction-card {
  position: relative;
  z-index: 4;
  width: min(95%, 315px);
  justify-self: center;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}

.faction-card::before {
  position: absolute;
  inset: 8% 12%;
  z-index: -1;
  content: '';
  border-radius: 40%;
  background: var(--faction);
  opacity: .34;
  filter: blur(36px);
}

.faction-card img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 35px 25px rgba(0, 0, 0, .66));
  transition: opacity .28s ease, transform .35s ease;
}

.battle-section {
  position: relative;
  z-index: 3;
  height: 190vh;
  background: radial-gradient(circle at 35% 48%, rgba(74, 48, 31, .24), transparent 34%), linear-gradient(180deg, #070608, #0d0a0a 54%, #070608);
}

.battle-section::before {
  position: absolute;
  inset: 0;
  content: '';
  opacity: .18;
  background-image: radial-gradient(circle, rgba(213, 178, 111, .35) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.battle-sticky {
  position: sticky;
  top: 0;
  width: var(--shell);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  padding: calc(var(--header-height) + 2rem) 0 2rem;
}

.battle-heading {
  position: relative;
  z-index: 3;
  margin-bottom: 1.4rem;
}

.battle-heading .eyebrow { margin-bottom: .55rem; }
.battle-heading h2 { font-size: clamp(2rem, 3.6vw, 4.2rem); text-transform: uppercase; }

.battle-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}

.battle-board-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
  perspective: 1100px;
}

.battle-board-wrap::before {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -9%;
  height: 20%;
  content: '';
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  filter: blur(24px);
}

.battle-board {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr 42px auto 1fr;
  gap: .55rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid rgba(213, 178, 111, .32);
  background: linear-gradient(135deg, rgba(64, 38, 21, .77), rgba(23, 15, 15, .96)), repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .015) 23px 24px);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .68), 0 45px 60px rgba(0, 0, 0, .42);
  clip-path: polygon(2.5% 0, 97.5% 0, 100% 5%, 100% 95%, 97.5% 100%, 2.5% 100%, 0 95%, 0 5%);
  transform: rotateX(5deg);
  transform-style: preserve-3d;
}

.board-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: var(--gold);
  opacity: .7;
}

.board-corner-one { left: 10px; top: 10px; border-left: 1px solid; border-top: 1px solid; }
.board-corner-two { right: 10px; bottom: 10px; border-right: 1px solid; border-bottom: 1px solid; }

.lane-label {
  color: rgba(238, 231, 220, .42);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-align: right;
  text-transform: uppercase;
}

.battle-lane {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
}

.battle-cell {
  position: relative;
  min-width: 0;
  min-height: 142px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 178, 111, .16);
  background: radial-gradient(circle, rgba(213, 178, 111, .07), rgba(0, 0, 0, .18));
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.battle-cell::before {
  width: 14px;
  height: 14px;
  content: '';
  border: 1px solid rgba(213, 178, 111, .12);
  transform: rotate(45deg);
}

.board-card {
  position: absolute;
  z-index: 4;
  width: min(68%, 78px);
  max-height: 120px;
  object-fit: contain;
  opacity: .28;
  filter: saturate(.25) brightness(.65) drop-shadow(0 15px 10px rgba(0, 0, 0, .65));
  transform: translateY(8px) scale(.9);
  transition: opacity .5s ease, filter .5s ease, transform .5s ease;
}

.battle-board[data-step='0'] .player-card, .battle-board[data-step='1'] .player-card {
  opacity: 1;
  filter: saturate(.8) brightness(.92) drop-shadow(0 15px 10px rgba(0, 0, 0, .65));
  transform: translateY(0) scale(1);
}

.battle-board[data-step='2'] .player-card, .battle-board[data-step='3'] .player-card {
  opacity: .92;
  filter: saturate(.25) brightness(.28) drop-shadow(0 15px 10px rgba(0, 0, 0, .65));
  transform: rotateY(180deg) scale(.96);
}

.battle-board[data-step='4'] .player-card, .battle-board[data-step='5'] .player-card, .battle-board[data-step='6'] .player-card,
.battle-board[data-step='4'] .enemy-card, .battle-board[data-step='5'] .enemy-card, .battle-board[data-step='6'] .enemy-card {
  opacity: 1;
  filter: saturate(1) brightness(.95) drop-shadow(0 15px 10px rgba(0, 0, 0, .65));
  transform: translateY(0) scale(1);
}

.battle-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 188, 111, .45);
  font-family: var(--display);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.battle-divider::before, .battle-divider::after {
  height: 1px;
  flex: 1;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(213, 178, 111, .36));
}

.battle-divider::after { background: linear-gradient(90deg, rgba(213, 178, 111, .36), transparent); }
.battle-divider span { padding: 0 1rem; }

.mana-orb, .damage-token {
  position: absolute;
  z-index: 7;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  opacity: 0;
  transform: scale(.3);
  transition: opacity .4s ease, transform .4s ease;
}

.mana-orb {
  left: 35%;
  bottom: 24%;
  width: 45px;
  height: 45px;
  border: 1px solid #71b9ff;
  color: #d5ecff;
  background: radial-gradient(circle at 35% 30%, #6dcaff, #244bad 58%, #0a153b);
  box-shadow: 0 0 24px rgba(74, 151, 255, .65);
}

.battle-board[data-step='1'] .mana-orb, .battle-board[data-step='2'] .mana-orb, .battle-board[data-step='3'] .mana-orb, .battle-board[data-step='4'] .mana-orb, .battle-board[data-step='5'] .mana-orb, .battle-board[data-step='6'] .mana-orb {
  opacity: 1;
  transform: scale(1);
}

.attack-line {
  position: absolute;
  z-index: 6;
  left: 39%;
  top: 50%;
  width: 29%;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #f5b04f, #d84635, transparent);
  box-shadow: 0 0 12px #d84635;
  transform: rotate(-31deg) scaleX(.1);
  transform-origin: left;
  transition: opacity .3s ease, transform .55s ease;
}

.battle-board[data-step='4'] .attack-line, .battle-board[data-step='5'] .attack-line, .battle-board[data-step='6'] .attack-line {
  opacity: 1;
  transform: rotate(-31deg) scaleX(1);
}

.damage-token {
  right: 28%;
  top: 23%;
  width: 43px;
  height: 43px;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #e35757, #7d1721 67%, #280509);
  box-shadow: 0 0 20px rgba(189, 43, 49, .5);
}

.battle-board[data-step='5'] .damage-token, .battle-board[data-step='6'] .damage-token {
  opacity: 1;
  transform: scale(1);
}

.hero-life {
  position: absolute;
  z-index: 8;
  min-width: 92px;
  padding: .4rem .7rem;
  border: 1px solid rgba(213, 178, 111, .25);
  background: rgba(5, 4, 6, .84);
  text-align: center;
}

.hero-life small { display: block; color: rgba(238, 231, 220, .44); font-size: .55rem; text-transform: uppercase; }
.hero-life strong { display: block; color: var(--gold-light); font-family: var(--display); font-size: 1.15rem; }
.hero-life-player { left: 2%; bottom: 2%; }
.hero-life-enemy { right: 2%; top: 2%; }

.battle-board[data-step='6'] .hero-life-enemy {
  animation: target-pulse .7s ease-in-out infinite alternate;
}

.battle-story {
  position: relative;
  min-width: 0;
  width: 100%;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--line);
}

.battle-number {
  margin: 0 0 .8rem;
  color: var(--gold);
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .15em;
}

.battle-story h3 {
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  text-transform: uppercase;
}

.battle-story > p:not(.battle-number) {
  min-height: 78px;
  color: var(--muted);
}

.battle-steps {
  display: grid;
  gap: .35rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.battle-steps li {
  position: relative;
  padding-left: 1.4rem;
}

.battle-steps li::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  content: '';
  border: 1px solid rgba(213, 178, 111, .32);
  transform: translateY(-50%) rotate(45deg);
  transition: background .25s ease, box-shadow .25s ease;
}

.battle-steps li.active::before {
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light);
}

.battle-steps button {
  width: 100%;
  padding: .28rem 0;
  border: 0;
  color: rgba(238, 231, 220, .42);
  background: none;
  font-size: .74rem;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, transform .25s ease;
}

.battle-steps li.active button { color: var(--paper); transform: translateX(4px); }

.spell-section {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(53, 45, 110, .27), transparent 30%), linear-gradient(180deg, #070608, #0c0910 56%, #070608);
  isolation: isolate;
}

.spell-section .section-heading { margin-bottom: 2rem; }
.spell-section .section-heading .eyebrow { justify-content: center; }
.spell-section .section-heading > p:last-child { max-width: 580px; margin: 1rem auto 0; }

.spell-arena {
  position: relative;
  z-index: 4;
  width: min(86vw, 640px);
  min-height: 380px;
  display: grid;
  place-items: center;
}

.spell-runes {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(111, 121, 213, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 42px rgba(95, 79, 181, .08);
  animation: slow-spin 24s linear infinite;
}

.spell-runes::before, .spell-runes::after {
  position: absolute;
  content: '';
  border-radius: inherit;
}

.spell-runes::before { inset: 28px; border: 1px dashed rgba(213, 178, 111, .24); }
.spell-runes::after { inset: 72px; border: 1px solid rgba(101, 161, 212, .16); }

.crystal-trigger {
  position: relative;
  z-index: 4;
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.crystal-trigger::before {
  position: absolute;
  inset: 18px;
  content: '';
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 89, 206, .28), transparent 68%);
  filter: blur(15px);
  transition: transform .9s ease, opacity .9s ease;
}

.crystal-trigger img {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.1) brightness(.78) drop-shadow(0 0 18px rgba(92, 129, 229, .38));
  transition: filter .45s ease, transform .45s ease;
}

.crystal-trigger > span {
  position: absolute;
  left: 50%;
  bottom: -25px;
  color: rgba(238, 231, 220, .55);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.charge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.charge-ring circle {
  fill: none;
  stroke: rgba(213, 178, 111, .13);
  stroke-width: 1;
}

.charge-ring .charge-progress {
  stroke: url('#spell-gradient');
  stroke: #a7d7ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  filter: drop-shadow(0 0 5px #7b91ff);
}

.spell-arena.is-charging .crystal-trigger img {
  filter: saturate(1.3) brightness(1.06) drop-shadow(0 0 32px rgba(117, 144, 255, .8));
  transform: scale(1.04);
}

.spell-arena.is-charging .spell-runes { border-color: rgba(153, 180, 255, .55); }
.spell-arena.is-cast { animation: spell-shake .38s ease; }
.spell-arena.is-cast .crystal-trigger img { filter: saturate(1.4) brightness(1.4) drop-shadow(0 0 45px #9fafff); }

.spell-status {
  position: absolute;
  bottom: 0;
  margin: 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: .73rem;
  letter-spacing: .09em;
}

.spell-wave {
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: 8;
  width: 60px;
  height: 60px;
  border: 2px solid #b9caff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.2);
}

.spell-wave.is-active { animation: spell-wave .9s ease-out both; }

.spell-card-reveal {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 7;
  width: 180px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 30px rgba(130, 149, 255, .75));
  transform: translate(-50%, -40%) scale(.65);
}

.spell-card-reveal.is-active { animation: spell-card .95s ease both; }

.modes-section {
  background: linear-gradient(180deg, #070608, #0d0b0e 50%, #070608);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  perspective: 1200px;
}

.mode-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid rgba(213, 178, 111, .19);
  background: radial-gradient(circle at 50% 25%, rgba(111, 66, 38, .2), transparent 38%), linear-gradient(145deg, #151116, #0b090b);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  transform-style: preserve-3d;
  transition: border-color .35s ease, transform .25s ease-out, filter .35s ease;
}

.mode-card::before {
  position: absolute;
  inset: 0;
  content: '';
  opacity: 0;
  background: radial-gradient(circle at 50% 32%, rgba(220, 152, 72, .26), transparent 45%);
  transition: opacity .4s ease;
}

.mode-card:hover { border-color: rgba(226, 188, 111, .6); filter: brightness(1.08); }
.mode-card:hover::before { opacity: 1; }
.mode-card-featured { transform: translateY(-18px); border-color: rgba(213, 178, 111, .38); }

.mode-index {
  position: absolute;
  right: 1.7rem;
  top: 1.2rem;
  color: rgba(213, 178, 111, .22);
  font-family: var(--display);
  font-size: 4.5rem;
}

.mode-sigil {
  position: absolute;
  left: 50%;
  top: 23%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(213, 178, 111, .26);
  border-radius: 50%;
  transform: translateX(-50%) rotate(45deg);
  transition: transform .7s ease, box-shadow .35s ease;
}

.mode-sigil::before, .mode-sigil::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(213, 178, 111, .18);
}

.mode-sigil::before { inset: 21px; }
.mode-sigil::after { left: 50%; top: -28px; bottom: -28px; width: 1px; border-width: 0 0 0 1px; }
.mode-card:hover .mode-sigil { transform: translateX(-50%) rotate(135deg) scale(1.08); box-shadow: 0 0 30px rgba(213, 178, 111, .13); }

.mode-card p {
  position: relative;
  margin: 0 0 .25rem;
  color: var(--gold);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.mode-card h3 {
  position: relative;
  font-size: clamp(1.7rem, 3vw, 3.25rem);
  text-transform: uppercase;
}

.mode-card strong {
  position: relative;
  margin-top: .45rem;
  color: var(--gold-light);
  font-size: .84rem;
}

.mode-note {
  position: relative;
  display: block;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: .86rem;
}

.premium-section {
  display: grid;
  grid-template-columns: minmax(420px, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 7rem);
  background: radial-gradient(circle at 20% 27%, rgba(118, 61, 27, .24), transparent 30%), linear-gradient(135deg, #0b0807, #070608 56%, #0d0b0f);
}

.premium-visual {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}

.premium-visual::before {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -2%;
  height: 25%;
  content: '';
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  filter: blur(25px);
}

.premium-box {
  position: relative;
  width: 100%;
  filter: saturate(1.08) contrast(1.04) drop-shadow(0 35px 28px rgba(0, 0, 0, .55));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 85%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 85%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

.premium-seal {
  position: absolute;
  right: 4%;
  bottom: 7%;
  width: 132px;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 188, 111, .6);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(22, 12, 8, .85);
  box-shadow: 0 0 0 7px rgba(213, 178, 111, .06), 0 18px 35px rgba(0, 0, 0, .45);
  font-family: var(--display);
  line-height: 1.2;
  text-align: center;
  transform: translateZ(40px) rotate(-8deg);
}

.premium-seal span, .premium-seal small { font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }
.premium-seal strong { font-size: .95rem; text-transform: uppercase; }

.premium-copy h2 { font-size: clamp(2rem, 3.45vw, 4.2rem); }
.premium-copy > p { max-width: 650px; }
.premium-copy .premium-lead { color: var(--gold-light); font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.8rem); }

.premium-detail {
  display: grid;
  gap: .55rem;
  margin-top: 2rem;
}

.premium-detail span {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(238, 231, 220, .72);
  font-size: .85rem;
}

.premium-detail span::before {
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  content: '';
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.contents-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(250px, .4fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid rgba(213, 178, 111, .28);
  border-bottom: 1px solid rgba(213, 178, 111, .18);
  background: linear-gradient(90deg, rgba(213, 178, 111, .06), transparent 25%, rgba(255, 255, 255, .02));
}

.contents-intro h3 { font-size: clamp(1.5rem, 2.5vw, 2.6rem); text-transform: uppercase; }
.contents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(213, 178, 111, .15); }

.contents-grid > div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
  background: #0c090a;
}

.contents-grid strong {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.contents-grid span { margin-top: .35rem; color: rgba(238, 231, 220, .72); font-size: .74rem; }
.contents-grid small { color: rgba(238, 231, 220, .38); font-size: .61rem; }

.contents-more {
  grid-column: 2;
  border-bottom: 1px solid rgba(213, 178, 111, .16);
}

.contents-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.contents-more summary::-webkit-details-marker { display: none; }
.contents-more summary span { font-family: var(--body); font-size: 1.25rem; transition: transform .25s ease; }
.contents-more[open] summary span { transform: rotate(45deg); }

.contents-more > div {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: 0 0 1.2rem;
}

.contents-more > div span {
  padding: .38rem .6rem;
  border: 1px solid rgba(213, 178, 111, .14);
  color: rgba(238, 231, 220, .63);
  font-size: .68rem;
}

.creation-section {
  display: grid;
  grid-template-columns: minmax(230px, .42fr) minmax(0, 1.08fr) minmax(300px, .5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  background: radial-gradient(circle at 15% 50%, rgba(78, 42, 93, .2), transparent 28%), linear-gradient(180deg, #070608, #0b090d, #070608);
}

.creation-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 260px;
}

.creation-mark::before, .creation-mark::after {
  position: absolute;
  inset: 8%;
  content: '';
  border: 1px solid rgba(213, 178, 111, .2);
  border-radius: 50%;
}

.creation-mark::after { inset: 20%; border-style: dashed; animation: slow-spin 22s linear infinite; }
.creation-mark strong { position: relative; z-index: 2; color: var(--gold-light); font-family: var(--display); font-size: clamp(5rem, 9vw, 9rem); font-weight: 500; line-height: 1; }
.creation-mark span { position: relative; z-index: 2; color: rgba(238, 231, 220, .62); font-family: var(--display); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.creation-copy h2 { font-size: clamp(2.1rem, 3.5vw, 4.2rem); }
.creation-copy > p { max-width: 780px; }

.creation-process {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(213, 178, 111, .15);
}

.creation-process div {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.3rem;
  background: linear-gradient(145deg, #121014, #0a090b);
}

.creation-process span { margin-bottom: auto; color: var(--gold); font-family: var(--display); font-size: .65rem; }
.creation-process strong { color: var(--paper); font-family: var(--display); font-size: .82rem; text-transform: uppercase; }
.creation-process small { color: var(--muted); font-size: .68rem; }

.creation-proof {
  position: relative;
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(213, 178, 111, .18);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 0 100%);
}

.creation-proof::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(transparent 35%, rgba(6, 5, 7, .95));
}

.creation-proof img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) contrast(1.08); }
.creation-proof p { position: absolute; z-index: 2; left: 1.7rem; right: 1.7rem; bottom: 1.5rem; margin: 0; }
.creation-proof strong { display: block; color: var(--gold-light); font-family: var(--display); font-size: 1.1rem; text-transform: uppercase; }
.creation-proof span { display: block; color: var(--muted); font-size: .72rem; }

.gallery-section {
  background: linear-gradient(180deg, #070608, #0c0a0d 50%, #070608);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(190px, 18vw, 320px);
  gap: .75rem;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #121015;
  cursor: zoom-in;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

.gallery-item::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: '';
  border: 1px solid rgba(213, 178, 111, .17);
  background: linear-gradient(180deg, transparent 48%, rgba(5, 4, 6, .88));
  transition: border-color .3s ease, background .3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.74) brightness(.82);
  transition: transform .65s ease, filter .4s ease;
}

.gallery-item span {
  position: absolute;
  left: 1.1rem;
  bottom: .9rem;
  z-index: 3;
  color: rgba(238, 231, 220, .78);
  font-family: var(--display);
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-item:hover::before { border-color: rgba(226, 188, 111, .45); background: linear-gradient(180deg, transparent 38%, rgba(5, 4, 6, .82)); }
.gallery-item:hover img { filter: saturate(1) brightness(.95); transform: scale(1.045); }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

.buy-section {
  position: relative;
  z-index: 3;
  min-height: 96vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(390px, .95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  overflow: hidden;
  padding: clamp(6rem, 10vw, 11rem) max(6vw, calc((100vw - 1680px) / 2));
  background: #080608;
  isolation: isolate;
}

.buy-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .38;
  background: linear-gradient(90deg, rgba(5, 4, 6, .92), rgba(5, 4, 6, .5), rgba(5, 4, 6, .92)), url('./assets/world-background.webp') center / cover no-repeat;
  filter: saturate(.6) brightness(.55);
}

.buy-section::before {
  position: absolute;
  z-index: -1;
  left: 8%;
  top: 18%;
  width: 52%;
  aspect-ratio: 1;
  content: '';
  border: 1px solid rgba(213, 178, 111, .14);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(110, 61, 154, .13), inset 0 0 80px rgba(213, 178, 111, .05);
  animation: slow-spin 30s linear infinite;
}

.buy-artifact {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}

.buy-artifact img {
  filter: saturate(1.08) drop-shadow(0 50px 38px rgba(0, 0, 0, .7));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 85%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 85%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

.buy-copy { position: relative; z-index: 5; }
.buy-copy h2 { max-width: 760px; font-size: clamp(2.5rem, 4.5vw, 5.4rem); }
.buy-copy > p { max-width: 610px; font-size: 1.05rem; }

.buy-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 2rem 0 1.25rem;
  color: rgba(238, 231, 220, .66);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.buy-status strong {
  margin-left: 1rem;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.05rem;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62b382;
  box-shadow: 0 0 10px rgba(98, 179, 130, .7);
}

.button-buy { min-width: 330px; }
.phone-link { display: inline-block; margin-top: 1.25rem; color: rgba(238, 231, 220, .58); font-family: var(--display); font-size: .85rem; letter-spacing: .08em; }
.phone-link:hover { color: var(--gold-light); }

.buy-cards img {
  position: absolute;
  z-index: 2;
  width: clamp(80px, 8vw, 145px);
  opacity: .45;
  filter: saturate(.55) drop-shadow(0 25px 18px rgba(0, 0, 0, .65));
}

.buy-cards img:first-child { left: 3%; bottom: 5%; transform: rotate(-12deg); }
.buy-cards img:last-child { right: 2%; top: 13%; transform: rotate(10deg); }

.site-footer {
  position: relative;
  z-index: 3;
  min-height: 190px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.6rem;
  padding: 2.5rem max(6vw, calc((100vw - 1680px) / 2));
  border-top: 1px solid rgba(213, 178, 111, .13);
  background: #050405;
}

.site-footer img { width: 72px; }
.site-footer p { margin: 0; color: rgba(238, 231, 220, .48); font-size: .75rem; }
.site-footer div { display: flex; flex-direction: column; align-items: flex-end; color: rgba(238, 231, 220, .4); font-size: .67rem; }
.site-footer a { color: var(--gold); }

.mobile-buy-bar {
  display: none;
}

.gallery-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--paper);
  background: rgba(5, 4, 6, .96);
}

.gallery-dialog[open] { display: grid; grid-template-columns: 90px 1fr 90px; place-items: center; }
.gallery-dialog::backdrop { background: rgba(0, 0, 0, .92); backdrop-filter: blur(8px); }

.gallery-dialog figure {
  width: min(82vw, 1400px);
  height: min(82vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.gallery-dialog figure img {
  max-width: 100%;
  max-height: calc(100% - 50px);
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7));
}

.gallery-dialog figcaption { margin-top: 1rem; color: var(--gold-light); font-family: var(--display); font-size: .75rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

.gallery-close, .gallery-arrow {
  position: fixed;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 178, 111, .24);
  color: rgba(238, 231, 220, .72);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.gallery-close:hover, .gallery-arrow:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(213, 178, 111, .06); }
.gallery-close { right: 2rem; top: 2rem; width: 46px; height: 46px; font-size: 1.8rem; font-weight: 300; }
.gallery-arrow { position: relative; width: 56px; height: 78px; font-family: var(--display); font-size: 2.2rem; }
.gallery-prev { grid-column: 1; }
.gallery-next { grid-column: 3; }
.gallery-counter { position: fixed; left: 2rem; bottom: 1.5rem; color: rgba(238, 231, 220, .42); font-family: var(--display); font-size: .68rem; letter-spacing: .12em; }
.soundcloud-player { position: fixed; left: -9999px; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

@keyframes portal-open { 0% { opacity: 0; transform: scale(.35) rotate(-28deg); filter: blur(8px); } 65% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes portal-aura { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; } 100% { opacity: .55; transform: scale(1.25); } }
@keyframes portal-copy { 0%, 25% { opacity: 0; transform: translateY(8px); } 55%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes rune-light { to { opacity: 1; } }
@keyframes core-awake { 0%, 22% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes slow-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes artifact-breathe { 0%, 100% { opacity: .65; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes card-float-left { 0%, 100% { transform: translate3d(0, 0, 45px) rotate(-10deg); } 50% { transform: translate3d(8px, -13px, 56px) rotate(-7deg); } }
@keyframes card-float-right { 0%, 100% { transform: translate3d(0, 0, 68px) rotate(9deg); } 50% { transform: translate3d(-8px, -16px, 76px) rotate(6deg); } }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); } }
@keyframes orbit-spin-reverse { to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-360deg); } }
@keyframes scroll-cue { 0%, 100% { opacity: .28; transform: scaleY(.65); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes mana-rise { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.5); } 12% { opacity: .65; } 78% { opacity: .3; } 100% { opacity: 0; transform: translate3d(var(--particle-drift, 40px), -110vh, 0) scale(1.6); } }
@keyframes target-pulse { from { box-shadow: 0 0 0 rgba(204, 48, 48, 0); } to { border-color: rgba(223, 72, 72, .8); box-shadow: 0 0 24px rgba(204, 48, 48, .48); } }
@keyframes spell-shake { 0%, 100% { transform: translate(0); } 25% { transform: translate(-4px, 2px); } 50% { transform: translate(4px, -2px); } 75% { transform: translate(-2px, -1px); } }
@keyframes spell-wave { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(28); } }
@keyframes spell-card { 0% { opacity: 0; transform: translate(-50%, -35%) scale(.55) rotateY(90deg); } 35% { opacity: 1; } 62% { opacity: .9; transform: translate(-50%, -55%) scale(1) rotateY(0); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1.08) rotateY(0); } }

@media (max-width: 1180px) {
  .desktop-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { position: fixed; inset: var(--header-height) 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 1px; background: rgba(213, 178, 111, .12); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
  .mobile-menu a { padding: 1rem 6vw; color: rgba(238, 231, 220, .75); background: rgba(8, 7, 9, .96); font-family: var(--display); font-size: .72rem; text-transform: uppercase; }
  .site-header.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .hero { grid-template-columns: minmax(330px, .92fr) minmax(430px, 1.08fr); padding-left: 4vw; padding-right: 2vw; }
  .hero-artifact { width: min(65vw, 930px); }
  .faction-stage { grid-template-columns: minmax(280px, .8fr) minmax(260px, .8fr) minmax(190px, .46fr); }
  .premium-section { grid-template-columns: minmax(360px, 1fr) minmax(330px, 1fr); }
  .creation-section { grid-template-columns: minmax(190px, .35fr) 1fr; }
  .creation-proof { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .creation-process { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-height: 68px; --shell: min(90vw, 760px); }
  .sound-toggle span { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: calc(var(--header-height) + 4.5rem) 6vw 5rem; text-align: center; }
  .hero::before { background: linear-gradient(0deg, var(--ink), rgba(5, 4, 6, .42) 38%, rgba(5, 4, 6, .9)); }
  .hero-copy { max-width: 760px; justify-self: center; }
  .eyebrow { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-proof, .hero-actions { justify-content: center; }
  .hero-stats { margin-left: auto; margin-right: auto; }
  .hero-artifact { width: min(100%, 820px); justify-self: center; margin-top: 1rem; }
  .floating-card { width: clamp(70px, 15vw, 122px); }
  .scroll-cue { display: none; }
  .split-heading { grid-template-columns: 1fr; gap: 1rem; }
  .split-heading > p { max-width: 680px; }
  .world-heroes { grid-template-columns: repeat(3, 1fr); min-height: 520px; }
  .world-heroes figure { margin: -12% -8%; }
  .world-heroes img { min-height: 300px; }
  .faction-tabs { grid-template-columns: repeat(3, 1fr); }
  .faction-tabs button:nth-child(3) { border-right: 0; }
  .faction-tabs button:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .faction-stage { grid-template-columns: .85fr 1fr; min-height: 620px; }
  .faction-card { position: absolute; right: 1.5rem; bottom: 1rem; width: 180px; opacity: .68; }
  .battle-section { height: auto; padding: 7rem 0; }
  .battle-sticky { position: relative; min-height: auto; padding: 0; }
  .battle-layout { grid-template-columns: 1fr; }
  .battle-board { min-height: 470px; transform: none; }
  .battle-story { padding: 0; border-left: 0; }
  .battle-story > p:not(.battle-number) { min-height: 0; }
  .battle-steps { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
  .battle-steps li { min-width: 0; padding: 0; }
  .battle-steps li::before { display: none; }
  .battle-steps button { min-width: 0; height: 7px; overflow: hidden; padding: 0; color: transparent; background: rgba(213, 178, 111, .15); }
  .battle-steps li.active button { background: var(--gold-light); box-shadow: 0 0 10px rgba(226, 188, 111, .5); transform: none; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 330px; }
  .mode-card-featured { transform: none; }
  .premium-section { grid-template-columns: 1fr; }
  .premium-visual { max-width: 760px; margin: auto; }
  .contents-panel { grid-template-columns: 1fr; }
  .contents-more { grid-column: 1; }
  .creation-section { grid-template-columns: 1fr; }
  .creation-mark { min-height: 230px; }
  .creation-process { grid-template-columns: repeat(2, 1fr); }
  .creation-proof { min-height: 430px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(190px, 38vw, 320px); }
  .buy-section { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .buy-artifact { max-width: 800px; margin: auto; }
  .buy-copy { max-width: 760px; margin: auto; }
  .buy-copy .eyebrow, .buy-actions, .buy-status { justify-content: center; }
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer div { grid-column: 1 / -1; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --shell: 90vw; }
  body { padding-bottom: 72px; }
  body::before { opacity: .12; }
  .cursor-glow, .mana-particles { display: none; }
  .site-nav { width: 92vw; }
  .brand { width: 49px; flex-basis: 49px; }
  .nav-buy { display: none; }
  .sound-toggle { padding: 0 .35rem; }
  .mobile-menu { grid-template-columns: 1fr; max-height: calc(100dvh - var(--header-height) - 72px); overflow-y: auto; }
  .mobile-menu a { padding: .82rem 6vw; }
  .hero { padding-top: calc(var(--header-height) + 2.5rem); padding-bottom: 3.5rem; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-copy::after { width: 104%; aspect-ratio: 2752 / 1536; display: block; order: 2; margin: -.35rem -2% -1rem; content: ''; background: url('./assets/product-01.webp') center / contain no-repeat; filter: saturate(1.08) contrast(1.04) drop-shadow(0 24px 18px rgba(0, 0, 0, .65)); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 85%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 85%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-composite: intersect; }
  .hero-copy > .eyebrow { order: 0; }
  .hero-copy > h1 { order: 1; }
  .hero-copy > .hero-lead { order: 3; }
  .hero-copy > .hero-proof { order: 4; }
  .hero-copy > .hero-actions { order: 5; }
  .hero-copy > .hero-stats { order: 6; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .hero-lead { font-size: .98rem; }
  .hero-proof { gap: .4rem; font-size: .63rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(2)::after { display: none; }
  .hero-artifact { display: none; }
  .section-shell { padding-left: 5vw; padding-right: 5vw; }
  .section-heading h2, .premium-copy h2, .creation-copy h2, .buy-copy h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .world-section { background-attachment: scroll; }
  .world-narrative { padding-left: 1rem; }
  .story-line { font-size: 1.08rem; }
  .world-heroes { grid-template-columns: repeat(2, 1fr); min-height: 800px; margin-bottom: -6rem; }
  .world-heroes figure { margin: -15% -6%; }
  .world-heroes img { min-height: 290px; }
  .faction-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .faction-tabs::-webkit-scrollbar { display: none; }
  .faction-tabs button { min-width: 118px; min-height: 60px; border-bottom: 0 !important; }
  .faction-stage { min-height: 670px; display: block; padding: 0 1.25rem 2rem; clip-path: polygon(0 0, 96% 0, 100% 4%, 100% 100%, 4% 100%, 0 96%); }
  .faction-portrait-wrap { height: 280px; margin: 0 -1.25rem; }
  .faction-portrait-wrap img { -webkit-mask-image: linear-gradient(#000 48%, transparent 100%); mask-image: linear-gradient(#000 48%, transparent 100%); }
  .faction-copy { margin-top: -70px; padding: 0; }
  .faction-copy h3 { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .faction-description { font-size: .92rem; }
  .faction-card { right: .35rem; bottom: .4rem; width: 130px; opacity: .38; }
  .battle-section { padding: 5rem 0; }
  .battle-heading .eyebrow { justify-content: flex-start; }
  .battle-board { min-height: 400px; padding: 1.2rem; }
  .battle-cell { min-height: 104px; }
  .board-card { max-height: 92px; }
  .hero-life { min-width: 72px; padding: .25rem .4rem; }
  .hero-life small { font-size: .45rem; }
  .battle-story h3 { font-size: 1.65rem; }
  .spell-section { min-height: 780px; }
  .spell-arena { min-height: 330px; }
  .spell-runes { width: 285px; height: 285px; }
  .crystal-trigger { width: 205px; height: 205px; }
  .crystal-trigger img { width: 165px; height: 165px; }
  .mode-card { min-height: 310px; }
  .contents-grid { grid-template-columns: repeat(2, 1fr); }
  .contents-grid > div { min-height: 105px; }
  .creation-process { grid-template-columns: 1fr; }
  .creation-process div { min-height: 115px; }
  .creation-proof { min-height: 360px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 245px; }
  .gallery-wide { grid-column: span 1; }
  .gallery-tall { grid-row: span 1; }
  .buy-section { padding: 5.5rem 5vw; }
  .buy-artifact { width: 115%; margin-left: -7.5%; }
  .buy-status strong { width: 100%; margin-left: 0; }
  .button-buy { min-width: 0; }
  .buy-cards { display: none; }
  .site-footer { padding: 2.2rem 5vw; }
  .site-footer p { font-size: .7rem; }
  .mobile-buy-bar { position: fixed; inset: auto 0 0; z-index: 120; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem max(4vw, env(safe-area-inset-left)) calc(.65rem + env(safe-area-inset-bottom)) max(4vw, env(safe-area-inset-right)); border-top: 1px solid rgba(213, 178, 111, .24); background: rgba(7, 6, 8, .9); backdrop-filter: blur(18px); }
  .mobile-buy-bar div { display: flex; flex-direction: column; }
  .mobile-buy-bar small { color: #77c796; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-buy-bar strong { color: var(--gold-light); font-family: var(--display); font-size: 1rem; }
  .mobile-buy-bar a { min-width: 150px; padding: .72rem .95rem; color: #150d05; background: linear-gradient(115deg, #9c682c, #e1bd71); clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); font-family: var(--display); font-size: .7rem; font-weight: 700; text-align: center; text-transform: uppercase; }
  .gallery-dialog[open] { grid-template-columns: 1fr; }
  .gallery-dialog figure { grid-column: 1; grid-row: 1; width: 94vw; height: 82vh; }
  .gallery-arrow { position: fixed; bottom: calc(1.2rem + env(safe-area-inset-bottom)); width: 54px; height: 48px; }
  .gallery-prev { left: calc(50% - 65px); }
  .gallery-next { right: calc(50% - 65px); }
  .gallery-close { right: 1rem; top: 1rem; }
  .gallery-counter { left: 1rem; top: 1.5rem; bottom: auto; }
}

@media (min-width: 1800px) {
  body { font-size: 18px; }
  .site-nav { width: min(92vw, 1840px); }
  .hero { grid-template-columns: .8fr 1.2fr; }
  .hero-artifact { width: min(60vw, 1220px); }
  .battle-board { min-height: 620px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
  .world-heroes figure { filter: saturate(.55) brightness(.68); }
}

.button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

body.dialog-open { overflow: hidden; }

.battle-section {
  height: 152vh;
  background: radial-gradient(circle at 50% 48%, rgba(73, 49, 132, .2), transparent 38%), linear-gradient(180deg, #060609, #0b080d 54%, #070608);
}

.battle-sticky {
  padding-top: calc(var(--header-height) + 1.2rem);
  padding-bottom: 1.2rem;
}

.battle-heading {
  margin-bottom: .8rem;
}

.battle-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .45fr);
  gap: clamp(1.5rem, 3.5vw, 4rem);
}

.battle-board-wrap {
  perspective: none;
}

.battle-board-wrap::before {
  left: 4%;
  right: 4%;
  bottom: -3%;
  height: 14%;
  filter: blur(30px);
}

.battle-board {
  min-height: 0;
  aspect-ratio: 1672 / 941;
  display: block;
  padding: 0;
  border: 0;
  background: linear-gradient(rgba(3, 3, 7, .05), rgba(3, 3, 7, .12)), url('./assets/battle-world-3d.webp') center / cover no-repeat;
  box-shadow: 0 45px 80px rgba(0, 0, 0, .58), 0 0 0 1px rgba(218, 179, 104, .16);
  clip-path: polygon(1.2% 0, 98.8% 0, 100% 4%, 100% 96%, 98.8% 100%, 1.2% 100%, 0 96%, 0 4%);
  transform: none;
}

.battle-board::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: '';
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 38%, rgba(2, 2, 5, .26) 100%);
}

.board-corner {
  z-index: 9;
  width: 34px;
  height: 34px;
}

.battle-lane {
  position: absolute;
  z-index: 5;
  left: 19.2%;
  right: 19.2%;
  height: 11.8%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4.2%;
}

.lane-enemy-far { top: 14.8%; }
.lane-enemy-near { top: 27.3%; }
.lane-player-near { top: 50.1%; }
.lane-player-far { top: 64%; }

.battle-cell {
  min-height: 0;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(238, 204, 137, .08), transparent 68%);
  clip-path: none;
  transition: border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.battle-cell::before {
  position: absolute;
  inset: 6%;
  width: auto;
  height: auto;
  border: 1px solid rgba(228, 194, 128, .09);
  border-radius: 5px;
  opacity: .4;
  transform: none;
}

.battle-cell:hover {
  border-color: rgba(237, 204, 136, .45);
  background: radial-gradient(circle, rgba(237, 204, 136, .2), transparent 72%);
  box-shadow: inset 0 0 24px rgba(229, 184, 96, .12), 0 0 20px rgba(88, 125, 225, .13);
}

.lane-guide {
  position: absolute;
  left: 2.8%;
  z-index: 7;
  width: 15%;
  display: flex;
  flex-direction: column;
  padding: .4rem .55rem;
  border-left: 1px solid rgba(224, 184, 108, .42);
  color: rgba(239, 231, 219, .68);
  background: linear-gradient(90deg, rgba(5, 5, 9, .72), transparent);
  backdrop-filter: blur(5px);
  text-transform: uppercase;
}

.lane-guide strong {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: clamp(.48rem, .55vw, .66rem);
  letter-spacing: .08em;
}

.lane-guide span {
  font-size: clamp(.42rem, .48vw, .58rem);
  font-weight: 700;
  letter-spacing: .1em;
}

.lane-guide small {
  color: rgba(238, 231, 220, .43);
  font-size: clamp(.36rem, .4vw, .48rem);
  letter-spacing: .08em;
}

.lane-guide-enemy-far { top: 15%; }
.lane-guide-enemy-near { top: 28.5%; }
.lane-guide-player-near { top: 50.5%; }
.lane-guide-player-far { top: 65%; }

.battle-divider {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 42.8%;
  z-index: 8;
  height: 7%;
  text-shadow: 0 0 16px #9177ff;
}

.battle-divider::before, .battle-divider::after {
  background: linear-gradient(90deg, transparent, rgba(172, 151, 255, .74));
  box-shadow: 0 0 12px rgba(115, 91, 232, .48);
}

.battle-divider::after { background: linear-gradient(90deg, rgba(172, 151, 255, .74), transparent); }
.battle-divider span { padding: .2rem .75rem; color: #d5c9ff; background: rgba(13, 8, 27, .65); border-radius: 20px; }

.board-card {
  width: auto;
  height: 118%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  opacity: .32;
  filter: saturate(.35) brightness(.62) drop-shadow(0 10px 8px rgba(0, 0, 0, .72));
  transform: translateY(2px) rotate(0deg) scale(.9);
}

.board-card-ambient {
  opacity: .7;
  filter: saturate(.75) brightness(.8) drop-shadow(0 10px 8px rgba(0, 0, 0, .72));
  transform: translateY(0) rotate(0deg) scale(.92);
}

.mana-orb {
  left: 39.5%;
  top: 52.5%;
  bottom: auto;
  width: clamp(28px, 3vw, 44px);
  height: clamp(28px, 3vw, 44px);
}

.attack-line {
  left: 51%;
  top: 34%;
  width: 3px;
  height: 27%;
  background: linear-gradient(180deg, transparent, #f5b04f, #d84635, transparent);
  transform: rotate(8deg) scaleY(.1);
  transform-origin: bottom;
}

.battle-board[data-step='4'] .attack-line, .battle-board[data-step='5'] .attack-line, .battle-board[data-step='6'] .attack-line {
  transform: rotate(8deg) scaleY(1);
}

.damage-token {
  right: 35%;
  top: 28%;
  width: clamp(28px, 3vw, 43px);
  height: clamp(28px, 3vw, 43px);
}

.hero-life-player { left: 3%; bottom: 3.5%; }
.hero-life-enemy { right: 3%; top: 3.5%; }

.modes-section {
  padding-top: clamp(5rem, 7vw, 7rem);
  padding-bottom: clamp(4.5rem, 6vw, 6rem);
  background: radial-gradient(circle at 52% 40%, rgba(98, 57, 38, .16), transparent 36%), linear-gradient(180deg, #070608, #0d0b0e 50%, #070608);
}

.modes-section .section-heading {
  margin-bottom: clamp(2.4rem, 3.5vw, 3.5rem);
}

.mode-card {
  min-height: 500px;
  isolation: isolate;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  background: linear-gradient(145deg, #171117, #09080b);
}

.mode-card::before {
  z-index: 1;
  opacity: .35;
}

.mode-card::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 6, 9, .03) 12%, rgba(8, 7, 10, .42) 48%, rgba(8, 7, 10, .98) 78%);
}

.mode-art {
  position: absolute;
  inset: 0 0 28%;
  z-index: 0;
  overflow: hidden;
}

.mode-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.75) brightness(.62) contrast(1.08);
  -webkit-mask-image: linear-gradient(#000 58%, transparent 100%);
  mask-image: linear-gradient(#000 58%, transparent 100%);
  transition: filter .45s ease, transform .7s ease;
}

.mode-card:hover .mode-art img {
  filter: saturate(1) brightness(.78) contrast(1.06);
  transform: scale(1.045);
}

.mode-art-duo img {
  position: absolute;
  top: 0;
  width: 66%;
}

.mode-art-duo img:first-child { left: -5%; object-position: 55% 15%; }
.mode-art-duo img:last-child { right: -5%; object-position: 45% 15%; }

.mode-content {
  position: relative;
  z-index: 4;
  width: 100%;
}

.mode-index {
  z-index: 5;
  color: rgba(237, 202, 131, .34);
}

.mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.1rem;
}

.mode-meta span {
  padding: .42rem .62rem;
  border: 1px solid rgba(213, 178, 111, .2);
  color: rgba(238, 231, 220, .58);
  background: rgba(213, 178, 111, .045);
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.premium-section {
  padding-top: clamp(6rem, 8vw, 8rem);
}

.premium-seal {
  right: 3%;
  bottom: 5%;
  z-index: 5;
  width: 148px;
  height: 148px;
  border: 0;
  color: #2a1608;
  background: radial-gradient(circle at 34% 28%, #fff0ae 0, #e4b954 24%, #a96d1c 62%, #5b300c 100%);
  box-shadow: 0 0 0 4px #3b200a, 0 0 0 7px #c88e31, 0 18px 38px rgba(0, 0, 0, .62), inset 0 0 22px rgba(255, 237, 166, .6);
  text-shadow: 0 1px rgba(255, 240, 186, .7);
  isolation: isolate;
}

.premium-seal::before {
  position: absolute;
  inset: -15px;
  z-index: -2;
  content: '';
  background: conic-gradient(#8d5515, #f3cf72, #9d611a, #e2b14d, #7e460f, #f3cf72, #8d5515);
  clip-path: polygon(50% 0, 58% 9%, 68% 4%, 73% 16%, 85% 15%, 86% 28%, 98% 34%, 91% 45%, 100% 54%, 90% 63%, 95% 75%, 82% 78%, 80% 91%, 68% 89%, 59% 100%, 50% 92%, 40% 100%, 32% 89%, 19% 92%, 17% 79%, 4% 75%, 10% 63%, 0 54%, 9% 45%, 2% 34%, 14% 28%, 15% 15%, 27% 16%, 32% 4%, 42% 9%);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .42));
}

.premium-seal::after {
  position: absolute;
  inset: 9px;
  z-index: -1;
  content: '';
  border: 1px dashed rgba(73, 36, 7, .58);
  border-radius: 50%;
}

.premium-seal i {
  margin-bottom: .12rem;
  font-size: .95rem;
  font-style: normal;
}

.premium-seal span, .premium-seal small { font-size: .58rem; font-weight: 700; }
.premium-seal strong { font-size: 1.02rem; }

.buy-edition, .order-edition {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  margin: 0 0 1.2rem;
  padding: .48rem .72rem;
  border: 1px solid rgba(232, 196, 120, .52);
  color: #f1d48f;
  background: linear-gradient(115deg, rgba(124, 75, 22, .32), rgba(221, 176, 79, .08));
  box-shadow: 0 0 24px rgba(197, 133, 36, .12), inset 0 0 18px rgba(241, 206, 135, .06);
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.buy-edition span, .order-edition span { color: #f7d77e; text-shadow: 0 0 10px #d79d37; }
.buy-direct { margin: .8rem 0 0; color: rgba(238, 231, 220, .5) !important; font-size: .76rem !important; }

.mobile-buy-bar button {
  min-width: 150px;
  padding: .72rem .95rem;
  border: 0;
  color: #150d05;
  background: linear-gradient(115deg, #9c682c, #e1bd71);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.order-dialog {
  width: min(1180px, 94vw);
  max-width: none;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(226, 188, 111, .32);
  color: var(--paper);
  background: #09080b;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .84), 0 0 70px rgba(101, 73, 168, .13);
}

.order-dialog[open] { display: block; }
.order-dialog::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(9px); }

.order-close {
  position: fixed;
  z-index: 20;
  right: max(4vw, calc((100vw - 1100px) / 2));
  top: max(5vh, 1.5rem);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(226, 188, 111, .28);
  color: var(--paper);
  background: rgba(8, 7, 10, .82);
  font-size: 1.7rem;
  cursor: pointer;
}

.order-layout {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(460px, 1.22fr);
}

.order-product {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
  background: radial-gradient(circle at 45% 28%, rgba(157, 83, 31, .26), transparent 32%), linear-gradient(145deg, #130d0c, #08070a 68%);
}

.order-product::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 5, 7, .76));
}

.order-product > * { position: relative; z-index: 2; }
.order-product-visual { margin: -2rem -2rem 0; }
.order-product-visual img { width: 120%; max-width: none; margin-left: -10%; filter: saturate(1.08) drop-shadow(0 30px 25px rgba(0, 0, 0, .58)); -webkit-mask-image: linear-gradient(#000 65%, transparent 100%); mask-image: linear-gradient(#000 65%, transparent 100%); }
.order-product h2 { font-size: clamp(2.1rem, 3.4vw, 3.8rem); text-transform: uppercase; }
.order-product > p:not(.order-edition) { color: var(--muted); }

.order-product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.5rem;
}

.order-product-facts span {
  padding: .45rem .62rem;
  border: 1px solid rgba(213, 178, 111, .2);
  color: rgba(238, 231, 220, .62);
  font-size: .66rem;
  text-transform: uppercase;
}

.order-form {
  display: grid;
  align-content: start;
  gap: 1.35rem;
  padding: clamp(2rem, 4vw, 4rem);
}

.form-honey { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

.order-form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(213, 178, 111, .17);
}

.order-form-heading p { margin: 0; color: var(--gold); font-family: var(--display); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.order-form-heading strong { color: var(--gold-light); font-family: var(--display); font-size: 1.45rem; }

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(238, 231, 220, .76);
  font-size: .84rem;
}

.quantity-field div { display: grid; grid-template-columns: 38px 46px 38px; align-items: center; border: 1px solid rgba(213, 178, 111, .22); }
.quantity-field button { height: 38px; border: 0; color: var(--gold-light); background: rgba(213, 178, 111, .06); font-size: 1.1rem; cursor: pointer; }
.quantity-field output { text-align: center; font-family: var(--display); }

.order-fields, .order-address { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.order-fields label:first-child, .order-address label:first-child { grid-column: 1 / -1; }
.order-form label { display: grid; gap: .4rem; color: rgba(238, 231, 220, .66); font-size: .76rem; }
.order-form label > span { display: flex; justify-content: space-between; gap: .5rem; }
.order-form label small { color: rgba(238, 231, 220, .35); }

.order-form input:not([type='radio']):not([type='checkbox']), .order-form textarea {
  width: 100%;
  border: 1px solid rgba(213, 178, 111, .2);
  border-radius: 0;
  outline: 0;
  color: var(--paper);
  background: rgba(255, 255, 255, .025);
  font: inherit;
  transition: border-color .2s ease, background .2s ease;
}

.order-form input:not([type='radio']):not([type='checkbox']) { min-height: 46px; padding: .72rem .8rem; }
.order-form textarea { resize: vertical; padding: .72rem .8rem; }
.order-form input:focus, .order-form textarea:focus { border-color: rgba(232, 197, 124, .68); background: rgba(213, 178, 111, .045); }

.delivery-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.delivery-options legend { grid-column: 1 / -1; margin-bottom: .45rem; color: rgba(238, 231, 220, .66); font-size: .76rem; }
.delivery-options label { position: relative; min-height: 72px; display: flex; align-items: center; gap: .7rem; padding: .8rem; border: 1px solid rgba(213, 178, 111, .18); cursor: pointer; }
.delivery-options label:has(input:checked) { border-color: rgba(232, 197, 124, .65); background: rgba(213, 178, 111, .055); }
.delivery-options input { accent-color: #d5b26f; }
.delivery-options span { display: grid !important; gap: .18rem !important; }
.delivery-options strong { color: var(--paper); font-size: .78rem; }
.delivery-options small { font-size: .64rem; line-height: 1.35; }
.order-address[hidden] { display: none; }
.order-consent { grid-template-columns: auto 1fr; align-items: start; }
.order-consent input { margin-top: .2rem; accent-color: #d5b26f; }
.order-consent span { display: block !important; line-height: 1.45; }
.order-payment-note { margin: -.3rem 0 0; color: rgba(238, 231, 220, .45); font-size: .72rem; }
.order-status { min-height: 1.2rem; margin: -.5rem 0 0; color: #e7bf6b; font-size: .75rem; }
.order-submit { width: 100%; }

.order-success {
  grid-column: 1 / -1;
  min-height: 680px;
  place-content: center;
  justify-items: center;
  padding: 3rem;
  text-align: center;
  background: radial-gradient(circle, rgba(112, 80, 180, .2), transparent 34%), #09080b;
}

.order-success:not([hidden]) { display: grid; }
.order-success > span { color: var(--gold-light); font-size: 2rem; text-shadow: 0 0 20px var(--gold); }
.order-success h2 { margin-top: 1rem; font-size: clamp(2.2rem, 5vw, 4.8rem); text-transform: uppercase; }
.order-success p { max-width: 570px; color: var(--muted); }
.order-success .button { margin-top: 1.4rem; }

@media (max-width: 900px) {
  .battle-section { height: auto; padding: 5.5rem 0; }
  .battle-board { min-height: 0; }
  .battle-story { margin-top: 1.5rem; }
  .mode-card { min-height: 440px; }
  .order-layout { grid-template-columns: 1fr; }
  .order-product { min-height: 480px; }
  .order-product-visual { max-width: 620px; margin: -2rem auto -5rem; }
  .order-close { right: 5vw; top: 5vh; }
  .buy-edition { margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  .battle-board-wrap { width: 100vw; margin-left: calc(50% - 50vw); overflow-x: auto; padding-bottom: .6rem; scrollbar-width: thin; scrollbar-color: rgba(213, 178, 111, .4) transparent; }
  .battle-board { width: 720px; margin: 0 4vw; }
  .battle-story { width: 90vw; margin-left: auto; margin-right: auto; }
  .lane-guide { padding: .25rem .35rem; }
  .lane-guide strong { font-size: .5rem; }
  .lane-guide span { font-size: .44rem; }
  .lane-guide small { font-size: .38rem; }
  .mode-card { min-height: 420px; }
  .premium-seal { right: 7%; bottom: 4%; width: 112px; height: 112px; }
  .premium-seal::before { inset: -11px; }
  .premium-seal span, .premium-seal small { font-size: .48rem; }
  .premium-seal strong { font-size: .82rem; }
  .order-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; }
  .order-layout { min-height: 100dvh; }
  .order-product { min-height: 430px; padding: 2rem 1.2rem; }
  .order-product-visual { margin-top: -1rem; }
  .order-form { padding: 2rem 1.2rem calc(2rem + env(safe-area-inset-bottom)); }
  .order-fields, .order-address, .delivery-options { grid-template-columns: 1fr; }
  .order-fields label:first-child, .order-address label:first-child { grid-column: 1; }
  .order-close { position: fixed; right: 1rem; top: 1rem; }
  .mobile-buy-bar button { min-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .portal-intro, .mana-particles, .cursor-glow { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  .world-section { background-attachment: scroll; }
}

.demon-deck {
  --deck-accent: #d64b3f;
  --deck-glow-soft: rgba(170, 38, 30, .17);
  --deck-glow-muted: rgba(138, 35, 29, .14);
  --deck-glow: rgba(204, 45, 34, .58);
  --deck-ring: rgba(215, 61, 45, .08);
  --deck-ring-soft: rgba(215, 61, 45, .045);
  --deck-ring-line: rgba(191, 48, 40, .1);
  position: relative;
  z-index: 4;
  margin-top: clamp(3rem, 6vw, 6rem);
  padding: clamp(2rem, 4.5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(212, 172, 99, .16);
  background: radial-gradient(circle at 82% 20%, var(--deck-glow-soft), transparent 28%), linear-gradient(135deg, rgba(24, 12, 14, .9), rgba(7, 6, 8, .96) 48%, rgba(15, 9, 11, .94));
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}

.demon-deck[data-active-deck='gorgona'] {
  --deck-accent: #55c491;
  --deck-glow-soft: rgba(31, 135, 92, .19);
  --deck-glow-muted: rgba(33, 122, 87, .16);
  --deck-glow: rgba(55, 170, 120, .52);
  --deck-ring: rgba(75, 181, 128, .1);
  --deck-ring-soft: rgba(75, 181, 128, .05);
  --deck-ring-line: rgba(75, 181, 128, .12);
}

.demon-deck[data-active-deck='krasnolud'] {
  --deck-accent: #d69a51;
  --deck-glow-soft: rgba(155, 89, 31, .22);
  --deck-glow-muted: rgba(129, 75, 31, .18);
  --deck-glow: rgba(213, 138, 58, .54);
  --deck-ring: rgba(210, 146, 75, .11);
  --deck-ring-soft: rgba(210, 146, 75, .055);
  --deck-ring-line: rgba(210, 146, 75, .14);
}

.demon-deck[hidden] { display: none; }

.demon-deck::before {
  position: absolute;
  top: -22%;
  right: -8%;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  content: '';
  border: 1px solid var(--deck-ring);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 42px, var(--deck-ring-soft) 43px 44px), repeating-conic-gradient(from 12deg, var(--deck-ring-soft) 0 1deg, transparent 1deg 30deg);
  opacity: .8;
  transform: rotate(-9deg);
}

.demon-deck::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .018) 42.1%, transparent 42.3%), radial-gradient(circle at 50% 100%, var(--deck-glow-muted), transparent 46%);
}

.demon-deck-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .6fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4.5rem);
}

.demon-deck-heading h3 {
  max-width: 830px;
  font-size: clamp(2.1rem, 4.2vw, 5rem);
  letter-spacing: -.045em;
  line-height: .96;
  text-transform: uppercase;
}

.demon-deck-heading h3 em {
  display: block;
  color: var(--deck-accent);
  font-weight: inherit;
}

.card-deck-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
}

.card-deck-tabs button {
  min-width: 126px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .72rem .9rem;
  border: 1px solid rgba(212, 172, 99, .2);
  color: rgba(238, 231, 220, .55);
  background: rgba(7, 6, 8, .58);
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease, transform .25s ease;
}

.card-deck-tabs button span {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}

.card-deck-tabs button small {
  color: rgba(238, 231, 220, .34);
  font-size: .56rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-deck-tabs button:hover, .card-deck-tabs button:focus-visible {
  border-color: rgba(212, 172, 99, .55);
  color: var(--paper);
  outline: 0;
  transform: translateY(-2px);
}

.card-deck-tabs button[aria-selected='true'] {
  border-color: var(--deck-accent);
  color: var(--paper);
  background: var(--deck-glow-muted);
  box-shadow: inset 0 -2px 0 var(--deck-accent);
}

.card-deck-tabs button[aria-selected='true'] small { color: var(--deck-accent); }

.demon-deck-heading > p {
  max-width: 480px;
  margin: 0 0 .35rem;
  color: rgba(238, 231, 220, .6);
  font-size: .9rem;
}

.demon-deck-count {
  min-width: 116px;
  display: grid;
  justify-items: end;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(212, 172, 99, .2);
}

.demon-deck-count strong {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400;
  line-height: .8;
}

.demon-deck-count span {
  margin-top: .8rem;
  color: rgba(238, 231, 220, .42);
  font-size: .58rem;
  letter-spacing: .13em;
  text-align: right;
  text-transform: uppercase;
}

.demon-card-table {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem) clamp(2.8rem, 5vw, 5rem);
  border-top: 1px solid rgba(212, 172, 99, .13);
  border-bottom: 1px solid rgba(212, 172, 99, .1);
  background: radial-gradient(ellipse at 50% 52%, var(--deck-glow-muted), transparent 50%), linear-gradient(120deg, rgba(255, 255, 255, .018), transparent 34%, rgba(255, 255, 255, .01));
  perspective: 1600px;
}

.demon-card-table::before {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 5%;
  height: 18%;
  content: '';
  border-radius: 50%;
  background: rgba(0, 0, 0, .82);
  filter: blur(34px);
  transform: perspective(600px) rotateX(68deg);
}

.demon-card-hand {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.3rem) clamp(.65rem, 1.4vw, 1.4rem);
}

.demon-card-hand[hidden] { display: none; }

.demon-card-item {
  position: relative;
  min-width: 0;
  padding: 0 0 2rem;
  border: 0;
  color: rgba(238, 231, 220, .6);
  background: transparent;
  cursor: zoom-in;
  transform: translateY(var(--card-shift)) rotate(var(--card-rotate));
  transform-origin: 50% 88%;
  transition: color .3s ease, filter .45s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}

.demon-card-item::before {
  position: absolute;
  inset: 12% 14% 20%;
  z-index: -1;
  content: '';
  border-radius: 42%;
  background: var(--deck-glow);
  opacity: 0;
  filter: blur(28px);
  transition: opacity .35s ease;
}

.demon-card-item img {
  width: 100%;
  aspect-ratio: 965 / 1350;
  display: block;
  object-fit: contain;
  filter: saturate(.82) brightness(.82) drop-shadow(0 22px 18px rgba(0, 0, 0, .72));
  transition: filter .4s ease;
}

.demon-card-item span {
  position: absolute;
  left: 50%;
  bottom: .15rem;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(.53rem, .75vw, .7rem);
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.demon-card-item:hover, .demon-card-item:focus-visible {
  z-index: 20;
  color: var(--gold-light);
  outline: 0;
  transform: translateY(-16px) rotate(0) scale(1.075);
}

.demon-card-item:hover::before, .demon-card-item:focus-visible::before { opacity: .55; }
.demon-card-item:hover img, .demon-card-item:focus-visible img { filter: saturate(1.04) brightness(1.04) drop-shadow(0 28px 25px rgba(0, 0, 0, .82)); }

.demon-card-item:focus-visible img { outline: 1px solid var(--gold-light); outline-offset: 5px; }

.demon-deck-hint {
  position: relative;
  z-index: 2;
  margin: 1.8rem 0 0;
  color: rgba(238, 231, 220, .38);
  font-size: .62rem;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.demon-deck-hint span { color: var(--deck-accent); }

.card-dialog {
  --dialog-accent: #d64b3f;
  --dialog-glow: rgba(130, 22, 20, .2);
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--paper);
  background: radial-gradient(circle at 42% 50%, var(--dialog-glow), transparent 34%), rgba(5, 4, 6, .975);
}

.card-dialog[data-active-deck='gorgona'] {
  --dialog-accent: #55c491;
  --dialog-glow: rgba(28, 112, 78, .22);
}

.card-dialog[data-active-deck='krasnolud'] {
  --dialog-accent: #d69a51;
  --dialog-glow: rgba(137, 77, 27, .24);
}

.card-dialog[open] {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  place-items: center;
}

.card-dialog::backdrop { background: rgba(0, 0, 0, .94); backdrop-filter: blur(10px); }

.card-dialog figure {
  width: min(82vw, 1180px);
  height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .36fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin: 0;
}

.card-dialog-image {
  height: 88vh;
  display: grid;
  place-items: center;
}

.card-dialog-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 38px 34px rgba(0, 0, 0, .8));
  transition: opacity .14s ease, transform .3s ease;
}

.card-dialog figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: clamp(1.2rem, 2.5vw, 2.5rem);
  border-left: 1px solid rgba(212, 172, 99, .18);
}

.card-dialog figcaption span {
  color: var(--dialog-accent);
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .15em;
}

.card-dialog figcaption strong {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 400;
  line-height: .92;
  text-transform: uppercase;
}

.card-dialog figcaption small {
  margin-top: 1.3rem;
  color: rgba(238, 231, 220, .42);
  font-size: .61rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-dialog-close, .card-dialog-arrow {
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 172, 99, .22);
  color: rgba(238, 231, 220, .7);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.card-dialog-close:hover, .card-dialog-arrow:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(212, 172, 99, .07); }
.card-dialog-close { position: fixed; right: 2rem; top: 2rem; width: 46px; height: 46px; font-size: 1.8rem; font-weight: 300; }
.card-dialog-arrow { position: relative; width: 56px; height: 78px; font-family: var(--display); font-size: 2.2rem; }
.card-dialog-prev { grid-column: 1; }
.card-dialog-next { grid-column: 3; }

@media (max-width: 900px) {
  .demon-deck-heading { grid-template-columns: 1fr auto; align-items: start; }
  .demon-deck-heading > p { grid-column: 1; }
  .demon-deck-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .demon-card-table { margin-left: calc(clamp(2rem, 4.5vw, 4.5rem) * -1); margin-right: calc(clamp(2rem, 4.5vw, 4.5rem) * -1); padding-left: 0; padding-right: 0; }
  .demon-card-hand { display: flex; justify-content: flex-start; gap: 1rem; overflow-x: auto; padding: 2.5rem max(2rem, calc(50vw - 135px)) 4rem; scroll-padding-inline: max(2rem, calc(50vw - 135px)); scroll-snap-type: x mandatory; scrollbar-color: rgba(212, 172, 99, .34) transparent; }
  .demon-card-item { flex: 0 0 min(31vw, 230px); scroll-snap-align: center; }
  .card-dialog[open] { grid-template-columns: 70px minmax(0, 1fr) 70px; }
  .card-dialog figure { width: 78vw; height: 92vh; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; }
  .card-dialog-image { height: auto; min-height: 0; }
  .card-dialog-image img { max-height: 74vh; }
  .card-dialog figcaption { align-items: center; padding: 1rem 0 0; border-top: 1px solid rgba(212, 172, 99, .18); border-left: 0; text-align: center; }
  .card-dialog figcaption strong { margin-top: .55rem; font-size: clamp(1.8rem, 6vw, 3.4rem); }
  .card-dialog figcaption small { margin-top: .75rem; }
}

@media (max-width: 640px) {
  .demon-deck { margin-left: -1vw; margin-right: -1vw; padding: 2rem 1.1rem; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
  .demon-deck-heading { display: block; }
  .demon-deck-heading h3 { font-size: clamp(2rem, 10vw, 3.1rem); }
  .demon-deck-heading > p { margin-top: 1.2rem; font-size: .82rem; }
  .demon-deck-count { width: max-content; min-width: 0; display: flex; align-items: baseline; gap: .7rem; margin-top: 1.3rem; padding: 0; border: 0; }
  .demon-deck-count strong { font-size: 2.5rem; }
  .demon-deck-count span { margin: 0; }
  .demon-card-table { margin: 2rem -1.1rem 0; padding-bottom: 3rem; }
  .demon-card-hand { padding-left: calc(50vw - 126px); padding-right: calc(50vw - 126px); scroll-padding-inline: calc(50vw - 126px); }
  .demon-card-item { flex-basis: 228px; }
  .demon-deck-hint { line-height: 1.5; }
  .card-dialog[open] { grid-template-columns: 1fr; }
  .card-dialog figure { grid-column: 1; grid-row: 1; width: 94vw; height: 90vh; }
  .card-dialog-image img { max-height: calc(100dvh - 170px); }
  .card-dialog-arrow { position: fixed; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 54px; height: 48px; }
  .card-dialog-prev { left: calc(50% - 65px); }
  .card-dialog-next { right: calc(50% - 65px); }
  .card-dialog-close { right: 1rem; top: 1rem; }
  .card-dialog figcaption { padding-bottom: calc(3.8rem + env(safe-area-inset-bottom)); }
  .card-dialog figcaption strong { font-size: 1.8rem; }
}

.battle-board-wrap {
  padding-bottom: .25rem;
}

.battle-lane {
  left: 24%;
  right: 24%;
  height: 12.2%;
  gap: 5%;
}

.lane-enemy-far { top: 13.9%; }
.lane-enemy-near { top: 28.6%; }
.lane-player-near { top: 52%; }
.lane-player-far { top: 66%; }

.lane-guide-enemy-far { top: 14%; }
.lane-guide-enemy-near { top: 29%; }
.lane-guide-player-near { top: 52.3%; }
.lane-guide-player-far { top: 66.3%; }

.board-card {
  --board-card-turn: 0deg;
  width: 67%;
  height: auto;
  max-height: none;
  aspect-ratio: 965 / 1350;
  opacity: .4;
  filter: saturate(.45) brightness(.7) drop-shadow(0 12px 7px rgba(0, 0, 0, .78));
  transform: perspective(300px) rotateX(54deg) rotateZ(var(--board-card-turn)) translateY(4px) scale(.92);
  transform-origin: 50% 56%;
  transition: opacity .45s ease, filter .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}

.enemy-card { --board-card-turn: 180deg; }

.battle-board[data-step='0'] .player-card, .battle-board[data-step='1'] .player-card {
  opacity: 1;
  filter: saturate(1) brightness(.96) drop-shadow(0 13px 8px rgba(0, 0, 0, .82));
  transform: perspective(300px) rotateX(54deg) rotateZ(var(--board-card-turn)) translateY(0) scale(1);
}

.battle-board[data-step='2'] .player-card, .battle-board[data-step='3'] .player-card {
  opacity: .9;
  filter: saturate(.2) brightness(.25) drop-shadow(0 13px 8px rgba(0, 0, 0, .82));
  transform: perspective(300px) rotateX(54deg) rotateZ(var(--board-card-turn)) translateY(0) scale(.98);
}

.battle-board[data-step='4'] .player-card, .battle-board[data-step='5'] .player-card, .battle-board[data-step='6'] .player-card,
.battle-board[data-step='4'] .enemy-card, .battle-board[data-step='5'] .enemy-card {
  opacity: 1;
  filter: saturate(1.04) brightness(1) drop-shadow(0 14px 8px rgba(0, 0, 0, .85));
  transform: perspective(300px) rotateX(54deg) rotateZ(var(--board-card-turn)) translateY(0) scale(1.04);
}

.battle-board[data-step='6'] .enemy-card {
  opacity: 0;
  filter: saturate(.2) brightness(.3) blur(1px);
  transform: perspective(300px) rotateX(54deg) rotateZ(var(--board-card-turn)) translateY(-8px) scale(.64);
}

.mana-orb {
  left: 40.7%;
  top: 56.7%;
}

.damage-token {
  left: 41.2%;
  right: auto;
  top: 32%;
}

.battle-board[data-step='6'] .damage-token {
  opacity: 0;
  transform: scale(.3);
}

.attack-paths {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.attack-path {
  fill: none;
  stroke: url('#battle-strike');
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  opacity: 0;
  filter: url('#battle-strike-glow');
  vector-effect: non-scaling-stroke;
  transition: opacity .2s ease, stroke-dashoffset .7s cubic-bezier(.2, .72, .2, 1);
}

.battle-board[data-step='4'] .attack-path-unit, .battle-board[data-step='5'] .attack-path-unit,
.battle-board[data-step='6'] .attack-path-hero {
  stroke-dashoffset: 0;
  opacity: 1;
}

.battle-target-rule {
  position: absolute;
  right: 2.4%;
  top: 43.5%;
  z-index: 9;
  width: 19%;
  min-height: 7%;
  display: grid;
  place-items: center;
  padding: .4rem .55rem;
  border: 1px solid rgba(230, 190, 113, .2);
  color: rgba(238, 231, 220, .7);
  background: rgba(5, 4, 8, .76);
  font-size: clamp(.4rem, .48vw, .58rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}

.battle-target-rule span { display: none; }
.battle-board[data-step='4'] .battle-target-rule, .battle-board[data-step='5'] .battle-target-rule, .battle-board[data-step='6'] .battle-target-rule { opacity: 1; transform: translateY(0); }
.battle-board[data-step='4'] .target-card-rule, .battle-board[data-step='5'] .target-card-rule, .battle-board[data-step='6'] .target-hero-rule { display: block; }
.battle-board[data-step='6'] .battle-target-rule { border-color: rgba(216, 65, 54, .42); color: #ffd8ad; box-shadow: 0 0 18px rgba(171, 35, 31, .22); }

.battle-hero {
  position: absolute;
  left: 50%;
  z-index: 10;
  width: clamp(140px, 18%, 210px);
  height: 10.5%;
  display: grid;
  grid-template-columns: clamp(34px, 3.5vw, 48px) minmax(0, 1fr) clamp(32px, 3.1vw, 44px);
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .3rem .45rem;
  border: 1px solid rgba(218, 180, 108, .32);
  background: linear-gradient(100deg, rgba(8, 7, 10, .94), rgba(23, 16, 20, .9));
  box-shadow: 0 10px 22px rgba(0, 0, 0, .55);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transform: translateX(-50%);
}

.battle-hero-enemy { top: 1.2%; }
.battle-hero-player { bottom: 1.2%; }

.battle-hero img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(218, 180, 108, .32);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(.82) contrast(1.08);
}

.battle-hero figcaption {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.battle-hero figcaption small {
  overflow: hidden;
  color: rgba(238, 231, 220, .42);
  font-size: clamp(.35rem, .38vw, .46rem);
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.battle-hero figcaption strong {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(.56rem, .72vw, .82rem);
  font-weight: 400;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.battle-hero > span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 188, 111, .42);
  border-radius: 50%;
  color: var(--gold-light);
  background: radial-gradient(circle at 34% 28%, #543b31, #120c10 70%);
  font-family: var(--display);
  font-size: clamp(.68rem, .9vw, 1.05rem);
  box-shadow: inset 0 0 12px rgba(219, 179, 104, .12);
}

.battle-board[data-step='6'] .battle-hero-enemy {
  animation: target-pulse .7s ease-in-out infinite alternate;
}

.battle-components {
  position: relative;
  z-index: 11;
  width: min(92%, 780px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, 1vw, .9rem);
  margin: -.45rem auto 0;
  padding: .65rem;
  border: 1px solid rgba(213, 178, 111, .15);
  background: linear-gradient(105deg, rgba(16, 11, 12, .96), rgba(7, 6, 8, .94));
  box-shadow: 0 16px 35px rgba(0, 0, 0, .5);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
}

.battle-components figure {
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(34px, 3.5vw, 52px) minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  margin: 0;
  transform: rotate(var(--component-rotate));
}

.battle-components img {
  width: 100%;
  aspect-ratio: 1.2;
  border: 1px solid rgba(213, 178, 111, .16);
  object-fit: cover;
  filter: saturate(.82) brightness(.78) contrast(1.06);
}

.battle-components figcaption {
  color: rgba(238, 231, 220, .58);
  font-size: clamp(.42rem, .52vw, .62rem);
  letter-spacing: .05em;
  line-height: 1.25;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .battle-components { width: min(90%, 680px); }
  .battle-hero { width: 20%; }
}

@media (max-width: 640px) {
  .battle-board-wrap { padding-bottom: .8rem; }
  .battle-board { width: 720px; }
  .battle-components { width: 680px; margin-left: 6vw; }
  .battle-components figure { grid-template-columns: 42px minmax(0, 1fr); }
  .battle-hero { width: 150px; }
  .battle-target-rule { font-size: .42rem; }
}

@media (max-height: 820px) and (min-width: 901px) {
  .battle-sticky { padding-top: calc(var(--header-height) + .5rem); padding-bottom: .5rem; }
  .battle-heading h2 { font-size: clamp(2rem, 3.1vw, 3.5rem); }
  .battle-board { width: min(100%, calc((100vh - 250px) * 1.777)); margin-left: auto; margin-right: auto; }
  .battle-components { max-width: min(76%, 720px); }
}

.demon-card-table {
  min-height: clamp(510px, 43vw, 660px);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
  outline: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, .68), 0 28px 60px rgba(0, 0, 0, .32);
}

.demon-card-table:focus-visible { outline: 1px solid rgba(226, 188, 111, .7); outline-offset: 5px; }
.demon-card-table.is-dragging { cursor: grabbing; user-select: none; }

.demon-card-table::before {
  left: 12%;
  right: 12%;
  bottom: -8%;
  z-index: 1;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--deck-glow-muted), rgba(0, 0, 0, .88) 58%, transparent 72%);
  filter: blur(34px);
  transform: none;
}

.demon-card-table::after {
  position: absolute;
  inset: -2px;
  z-index: 80;
  content: '';
  pointer-events: none;
  background: linear-gradient(90deg, #060507 0, rgba(6, 5, 7, .99) 5%, rgba(6, 5, 7, .91) 12%, rgba(6, 5, 7, .54) 20%, transparent 34%, transparent 66%, rgba(6, 5, 7, .54) 80%, rgba(6, 5, 7, .91) 88%, rgba(6, 5, 7, .99) 95%, #060507 100%), linear-gradient(0deg, #060507 0, rgba(6, 5, 7, .92) 7%, rgba(6, 5, 7, .52) 17%, transparent 38%), radial-gradient(ellipse at 50% 112%, rgba(0, 0, 0, .96) 0 21%, transparent 57%);
  filter: blur(.2px);
}

.demon-card-hand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: visible;
  padding: 0;
  perspective: 1600px;
}

.demon-card-hand::before {
  position: absolute;
  left: 50%;
  bottom: -48%;
  width: min(96%, 1180px);
  aspect-ratio: 2;
  content: '';
  border: 1px solid var(--deck-ring-line);
  border-radius: 50%;
  box-shadow: 0 0 80px var(--deck-ring-line), inset 0 0 70px var(--deck-ring);
  transform: translateX(-50%);
}

.demon-card-item {
  --deck-position-x: var(--deck-x, 0%);
  position: absolute;
  left: 50%;
  bottom: clamp(76px, 7vw, 104px);
  z-index: var(--deck-z, 1);
  width: clamp(190px, 18vw, 275px);
  min-width: 0;
  padding: 0;
  color: var(--paper);
  opacity: var(--deck-opacity, 1);
  transform: translateX(calc(-50% + var(--deck-position-x))) translateY(var(--deck-y, -24px)) rotate(var(--deck-angle, 0deg)) scale(var(--deck-scale, 1));
  transform-origin: 50% 112%;
  transition: opacity .48s ease, transform .65s cubic-bezier(.16, 1, .3, 1);
  will-change: transform, opacity;
}

.demon-card-item::before {
  inset: 9% 8% 5%;
  background: var(--deck-glow);
  filter: blur(32px);
}

.demon-card-item img {
  width: 100%;
  aspect-ratio: 965 / 1350;
  filter: saturate(var(--deck-saturation, 1)) brightness(var(--deck-brightness, 1)) drop-shadow(0 28px 20px rgba(0, 0, 0, .82));
  user-select: none;
  transition: filter .45s ease;
}

.demon-card-item span { display: none; }

.demon-card-item:hover, .demon-card-item:focus-visible {
  color: var(--paper);
  outline: 0;
  transform: translateX(calc(-50% + var(--deck-position-x))) translateY(calc(var(--deck-y, -24px) - 8px)) rotate(var(--deck-angle, 0deg)) scale(calc(var(--deck-scale, 1) + .025));
}

.demon-card-item:hover::before, .demon-card-item:focus-visible::before { opacity: .32; }
.demon-card-item.is-active::before { opacity: .62; }
.demon-card-item.is-active img { filter: saturate(1.04) brightness(1.03) drop-shadow(0 34px 28px rgba(0, 0, 0, .9)); }
.demon-card-item:focus-visible img { outline: 1px solid var(--gold-light); outline-offset: 5px; }

.demon-slider-controls {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 90;
  min-width: min(86%, 410px);
  display: grid;
  grid-template-columns: 48px minmax(170px, 1fr) 48px;
  align-items: center;
  gap: .8rem;
  transform: translateX(-50%);
}

.demon-slider-controls button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 178, 111, .28);
  color: var(--gold-light);
  background: rgba(9, 7, 10, .78);
  font-family: var(--display);
  font-size: 1.8rem;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.demon-slider-controls button:hover, .demon-slider-controls button:focus-visible { border-color: var(--gold-light); background: rgba(213, 178, 111, .09); outline: 0; transform: translateY(-2px); }

.demon-slider-controls div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .55rem 1rem;
  border-top: 1px solid rgba(213, 178, 111, .18);
  border-bottom: 1px solid rgba(213, 178, 111, .1);
  background: rgba(6, 5, 7, .78);
  backdrop-filter: blur(10px);
}

.demon-slider-controls span {
  color: var(--deck-accent);
  font-size: .62rem;
  letter-spacing: .15em;
}

.demon-slider-controls strong {
  max-width: 100%;
  overflow: hidden;
  margin-top: .25rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .demon-card-table { min-height: 520px; }
  .demon-card-hand { display: block; overflow: visible; padding: 0; }
  .demon-card-item { --deck-position-x: var(--deck-x-mobile, 0%); width: min(30vw, 230px); flex: none; }
  .demon-card-table::after { background: linear-gradient(90deg, #060507 0, rgba(6, 5, 7, .98) 8%, rgba(6, 5, 7, .68) 20%, transparent 38%, transparent 62%, rgba(6, 5, 7, .68) 80%, rgba(6, 5, 7, .98) 92%, #060507 100%), linear-gradient(0deg, #060507 0, rgba(6, 5, 7, .9) 8%, transparent 38%); }
}

@media (max-width: 640px) {
  .demon-card-table { min-height: 450px; padding: 0; }
  .demon-card-item { bottom: 76px; width: 214px; }
  .demon-slider-controls { min-width: min(92%, 350px); grid-template-columns: 44px minmax(150px, 1fr) 44px; gap: .55rem; }
  .demon-slider-controls button { width: 44px; height: 44px; }
  .demon-slider-controls div { padding-left: .5rem; padding-right: .5rem; }
  .demon-deck-hint { max-width: 290px; margin-left: auto; margin-right: auto; font-size: .58rem; }
}
