@font-face {
  font-family: 'Chopsee';
  src: url(../fonts/Chopsee-Black.ttf) format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #290032;
  --bg-deep: #1c0c2a;
  --purple: #dc1dff;
  --purple-dark: #681da3;
  --pink: #fdf3ff;
  --accent: #fb8f23;
  --white: #fff;
  --muted: rgba(255, 255, 255, .72);
  --glass: rgba(240, 0, 255, .2);
  --display: 'Chopsee', 'Arial Black', Impact, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 24px;
  --header-h: 130px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 clamp(16px, 6vw, 120px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Typography */
.display,
h1,
h3 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: .92;
}
.display { font-size: clamp(2.6rem, 6vw, 6rem); }
.display-xl { font-size: clamp(3.2rem, 8vw, 8rem); }
.accent { color: var(--accent); }
.subheading {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.subheading-l { font-size: 1.3rem; color: var(--white); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.6rem); line-height: 1.45; font-weight: 300; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 66px;
  padding: 0 40px;
  border-radius: 100px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple) 1.7%, var(--purple-dark) 100%);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .25), inset 0 1px 2px #ea76ff, inset 0 -1px 1px rgba(234, 118, 255, .5);
  transition: transform .15s;
}
.btn:hover { transform: scale(1.04); }
.btn svg { width: 28px; height: auto; flex: none; }
.btn-small { height: 48px; padding: 0 24px; font-size: .95rem; }
.btn-small svg { width: 22px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform .4s;
}
.site-header.is-hidden { transform: translateY(-42px); }
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(90deg, var(--purple), var(--purple-dark));
}
.promo-bar:hover { text-decoration: underline; }
.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 12px clamp(16px, 6vw, 120px);
  transition: background .3s;
}
.is-scrolled .header-bar {
  background: rgba(28, 12, 42, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.brand { position: relative; z-index: 60; }
.brand img { width: 120px; }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav-link,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: none;
  cursor: pointer;
}
.nav-link:hover,
.nav-dropdown-toggle:hover { color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle svg { transition: transform .25s; }
.nav-dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 220px;
  margin: 0;
  padding: 12px;
  list-style: none;
  border: 1px solid rgba(234, 118, 255, .45);
  border-radius: 16px;
  background: rgba(28, 12, 42, .96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  transform: translateX(-50%);
  display: none;
}
.nav-dropdown-menu.is-open { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-dropdown-menu a:hover { color: var(--accent); background: rgba(240, 0, 255, .15); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--purple), var(--purple-dark));
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 14px;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .3s, background .3s;
}
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  text-align: center;
  background:
    radial-gradient(60% 45% at 50% 30%, rgba(220, 29, 255, .35), transparent 70%),
    url(../img/stars.webp) center top / 1600px auto no-repeat,
    linear-gradient(180deg, var(--bg-deep), var(--bg) 60%);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero-logo { width: min(440px, 70vw); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.hero h1 { max-width: 1100px; font-size: clamp(1.8rem, 3.4vw, 3.4rem); line-height: 1; }
.stores { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.store-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  background: #090909;
}
.store svg { width: 170px; height: auto; }
.hero-float {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}
.hero-float-1 { left: 3%; top: 26%; width: clamp(80px, 12vw, 220px); }
.hero-float-2 { right: 4%; top: 20%; width: clamp(80px, 13vw, 240px); animation-delay: -2s; }
.hero-float-3 { right: 10%; top: 55%; width: clamp(60px, 8vw, 150px); animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.scene { display: block; }
.scene img {
  width: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.scene-battle { margin-top: -2vw; }

/* Story blocks */
.story { display: flex; flex-direction: column; gap: 24px; max-width: 1000px; }
.story-right { margin-left: auto; margin-right: 0; text-align: right; align-items: flex-end; }
.story-center { margin: 0 auto; text-align: center; align-items: center; }
.story p:not(.subheading) { color: var(--muted); max-width: 820px; }
.story .lead { color: var(--white); }

.shattering { position: relative; padding-top: 40px; }
.shattering .story { position: relative; z-index: 2; }
.scene-arena { margin-top: -4vw; }
.scene-shard { margin-top: -6vw; }

section { position: relative; }
.economy, .marketplace, .personalize, .boss, .heroes, .worlds { padding: clamp(64px, 9vw, 140px) 0; }

.section-kicker {
  margin: clamp(48px, 6vw, 96px) 0 32px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  letter-spacing: -.05em;
  line-height: .92;
  text-transform: uppercase;
  text-align: center;
}

.card-grid { display: grid; gap: 24px; }
.card-grid > * { min-width: 0; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 64px; }

.glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 36px 32px 40px;
  border-radius: var(--radius);
  text-align: center;
  background-color: var(--glass);
  background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4));
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}
.glass-card img { width: auto; max-height: 220px; }
.glass-card h3,
.feature-card h3,
.loadout h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); }
.glass-card p,
.feature-card p { font-size: 1rem; color: var(--muted); }

.marketplace { overflow: hidden; }
.powered-logo img { width: min(420px, 80vw); }
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
  border: 1px solid rgba(234, 118, 255, .35);
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(180deg, rgba(220, 29, 255, .14), rgba(28, 12, 42, .6));
}
.feature-card img { height: 140px; width: auto; object-fit: contain; }
.deco-root { position: absolute; z-index: 0; pointer-events: none; opacity: .9; }
.deco-root-2 { right: -120px; top: 20px; width: 520px; }
.marketplace .container { position: relative; z-index: 1; }

.personalize { background: radial-gradient(50% 50% at 50% 60%, rgba(220, 29, 255, .25), transparent 70%); }
.loadouts { margin-top: 56px; align-items: end; }
.loadout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 20px 32px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(180deg, transparent 30%, rgba(240, 0, 255, .16));
}
.loadout-hero { width: 100%; max-height: 420px; object-fit: contain; }
.abilities { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.abilities img { width: 72px; height: 72px; object-fit: contain; }

.boss {
  background: url(../img/boss-bg.webp) center / cover no-repeat;
}
.boss::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0, rgba(41, 0, 50, .55) 30%, rgba(41, 0, 50, .55) 70%, var(--bg) 100%);
}
.boss .container { position: relative; }
.phone {
  position: relative;
  width: min(1100px, 100%);
  margin: 56px auto 0;
  aspect-ratio: 1600 / 817;
}
.phone-screen {
  position: absolute;
  top: 5.6%; left: 2.2%;
  width: 91.6%;
  height: 83%;
  object-fit: cover;
  border-radius: 3.5% / 7%;
  background: #000;
}
.phone-frame { position: relative; width: 100%; pointer-events: none; }

.heroes { background: radial-gradient(45% 40% at 50% 60%, rgba(220, 29, 255, .3), transparent 70%), url(../img/stars.webp) center / 1600px auto no-repeat; }
.hero-picker { margin-top: 48px; }
.hero-tabs { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-tab {
  width: 96px; height: 96px;
  padding: 0;
  border: 3px solid rgba(234, 118, 255, .35);
  border-radius: 50%;
  background: rgba(240, 0, 255, .18);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.hero-tab img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-tab:hover { transform: translateY(-3px); }
.hero-tab[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 24px rgba(251, 143, 35, .5); }
.hero-tab:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-panel + .hero-panel { margin-top: 48px; }
.js .hero-panel + .hero-panel { margin-top: 0; }
.hero-panel[hidden] { display: none; }
.hero-bio { display: flex; flex-direction: column; gap: 20px; }
.hero-bio h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.hero-bio p { font-size: 1.15rem; line-height: 1.56; }
.hero-art { width: 100%; max-width: 620px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }

.worlds { overflow: hidden; }
.world-list { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 96px); margin-top: 56px; }
.world { position: relative; display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 24px; }
.world > * { min-width: 0; }
.world:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
.world:nth-child(even) .world-name { order: 2; }
.world-name {
  position: relative;
  z-index: 2;
  font-size: clamp(2.4rem, 4.6vw, 6rem);
  text-align: center;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.world-art { width: 100%; max-width: 760px; margin: 0 auto; animation: float 9s ease-in-out infinite; }
.world-isle {
  position: absolute;
  z-index: 1;
  width: clamp(70px, 10vw, 180px);
  bottom: 0;
  left: 18%;
  animation: float 6s ease-in-out infinite;
  animation-delay: -3s;
  pointer-events: none;
}
.world:nth-child(even) .world-isle { left: auto; right: 18%; }

.community {
  padding: clamp(120px, 18vw, 320px) 0 clamp(120px, 16vw, 260px);
  background: url(../img/community-bg.webp) center bottom / cover no-repeat;
  overflow: hidden;
}
.community::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0, rgba(41, 0, 50, .35) 35%, rgba(41, 0, 50, .2) 100%);
}
.community .story { position: relative; z-index: 2; }
.deco-root-1 { left: -140px; top: 0; width: 460px; }
.diamond { position: absolute; z-index: 1; animation: float 6s ease-in-out infinite; pointer-events: none; }
.diamond-1 { left: 12%; top: 28%; width: 60px; }
.diamond-2 { right: 10%; top: 22%; width: 110px; animation-delay: -2s; }
.diamond-3 { right: 22%; bottom: 18%; width: 70px; animation-delay: -4s; }

/* Footer */
.site-footer {
  position: relative;
  padding: clamp(80px, 9vw, 120px) 0 0;
  background: url(../img/footer-bg.webp) center top / cover no-repeat, var(--bg-deep);
  overflow: hidden;
}
.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
.footer-inner > * { min-width: 0; }
.footer-info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer-logo img { width: 180px; }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 120px;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  background: url(../img/partner-bg.webp) center / cover no-repeat, rgba(240, 0, 255, .12);
  transition: transform .2s;
}
.partner:hover { transform: translateY(-3px); }
.partner img { max-height: 46px; width: auto; }
.partner span { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-para { max-width: 640px; font-size: 1rem; color: var(--muted); }
.socials { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(240, 0, 255, .2);
  transition: background .2s;
}
.socials a:hover { background: var(--purple); }
.socials svg { width: 24px; height: 24px; }
.footer-nav ul { margin: 16px 0 0; padding: 0; list-style: none; }
.footer-nav li + li { margin-top: 10px; }
.footer-nav a {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); }
.copyright {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.copyright a { text-decoration: none; }
.copyright a:hover { color: var(--accent); }
.footer-stones { position: relative; z-index: 1; width: 100%; margin-top: -40px; pointer-events: none; }

/* Responsive */
@media (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-list { gap: 22px; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 112px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 120px 24px 40px;
    background: rgba(28, 12, 42, .97);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 12px; text-align: center; }
  .nav-link, .nav-dropdown-toggle { font-size: 2rem; }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 4px;
    border: 0;
    background: none;
    box-shadow: none;
    transform: none;
  }
  .nav-dropdown-menu a { font-size: 1.3rem; color: var(--muted); }
  .card-grid-3 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .hero-panel { grid-template-columns: 1fr; text-align: center; }
  .hero-bio { align-items: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .deco-root { display: none; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .brand img { width: 92px; }
  .promo-bar { font-size: .8rem; }
  .story-right { text-align: left; align-items: flex-start; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .btn { height: 56px; padding: 0 28px; font-size: 1.05rem; }
  .store svg { width: 130px; }
  .hero-tab { width: 64px; height: 64px; }
  .world, .world:nth-child(even) { grid-template-columns: 1fr; }
  .world:nth-child(even) .world-name { order: 0; }
  .world-isle { display: none; }
  .partners { grid-template-columns: 1fr; }
  .partner { height: 96px; }
  .footer-stones { margin-top: 0; }
  .hero-float-3 { display: none; }
  .diamond-1, .diamond-3 { display: none; }
  .diamond-2 { top: 6%; right: 6%; width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.release-not-found main { display: block; width: 100%; max-width: 640px; min-height: 0; margin: 10vh auto; padding: 32px; box-sizing: border-box; }
.release-not-found h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.2; letter-spacing: normal; }
