:root {
  --ink: #f7f1ff;
  --muted: #d7c6ea;
  --gold: #ecd9a0;
  --wrap: 1260px;
  --serif: "Cinzel", "Cormorant Garamond", serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  background: #120418;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

/* ——— Game buttons: painted frames, natural proportions ——— */
.ui-btn,
.cta,
.frame-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, .4));
  transition: filter .2s, transform .2s;
}
.ui-btn:hover,
.cta:hover,
.frame-btn:hover {
  filter: drop-shadow(0 0 18px rgba(232, 180, 255, .9));
  transform: translateY(-2px) scale(1.03);
}
.ui-btn:active,
.cta:active,
.frame-btn:active {
  transform: translateY(1px) scale(.98);
}
.ui-btn > img,
.cta > img,
.frame-btn > img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}
.ui-btn > span,
.cta > span:not(.cta__gem),
.frame-btn > span {
  grid-area: 1 / 1;
  z-index: 1;
  padding: 8px 24px 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 0 #140318, 0 2px 5px #000, 0 0 1px #fff;
  white-space: nowrap;
}
.ui-btn--nav,
.cta--nav,
.frame-btn--nav {
  width: 210px;
  aspect-ratio: 1386 / 495;
  justify-self: end;
  flex: 0 0 auto;
  grid-column: 3;
}
.ui-btn--nav > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  padding: 7px 16px 0;
  white-space: nowrap;
}
.ui-btn--menu {
  width: 132px;
  aspect-ratio: 1386 / 495;
  flex: 0 0 auto;
  justify-self: auto;
}
.ui-btn--menu > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  padding: 6px 6px 0;
}
.nav .ui-btn.is-active {
  filter: drop-shadow(0 0 14px rgba(232, 180, 255, .95));
}
.ui-btn--hero,
.cta--hero {
  width: min(440px, 94%);
  aspect-ratio: 1558 / 586;
  overflow: visible;
  filter: none;
  animation: none;
}
.ui-btn--hero > img {
  object-fit: contain;
  object-position: center;
  animation: hero-pulse 2.8s ease-in-out infinite;
}
.ui-btn--hero:hover {
  filter: none;
  transform: translateY(-2px) scale(1.02);
}
.ui-btn--hero:hover > img {
  filter: drop-shadow(0 0 18px rgba(232, 180, 255, .95));
}
.ui-btn--hero:active {
  transform: translateY(6px) scale(.96);
  filter: brightness(.86);
}
.ui-btn--hero:active > img {
  animation: none;
  filter: brightness(.88);
}
.ui-btn--hero > span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  padding: 10px 64px 0;
}
.ui-btn--sm,
.cta--sm,
.frame-btn--sm {
  width: 220px;
  aspect-ratio: 1386 / 495;
}
.ui-btn--sm > span { font-size: 10px; }
.ui-btn--tiny {
  width: 176px;
  aspect-ratio: 1386 / 495;
}
.ui-btn--tiny > span { font-size: 10px; letter-spacing: .1em; }

.cta:not(:has(img)),
.frame-btn:not(:has(img)) {
  background: url("../img/ui-frame-nav.png?v=3") center / 100% 100% no-repeat;
  min-height: 52px;
  padding: 0 24px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta__gem { display: none; }

/* ——— Header ——— */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  overflow: visible;
  animation: fade-down .7s ease both;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
.header.is-stuck {
  position: absolute;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.header__row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  height: 92px;
  min-height: 92px;
  gap: 12px;
  overflow: visible;
}
.logo {
  position: absolute;
  left: clamp(4px, 1.8vw, 28px);
  top: 2px;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(440px, 34vw);
  height: min(242px, 19vw);
  margin: 0;
  overflow: visible;
  line-height: 1;
  z-index: 34;
  transition: transform .28s ease;
}
.logo:hover { transform: scale(1.04); }
.logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 8px 16px rgba(8, 2, 16, .55))
    drop-shadow(0 0 12px rgba(236, 217, 160, .32))
    drop-shadow(0 0 20px rgba(255, 248, 230, .16));
  animation: logo-breathe 5.6s ease-in-out infinite;
}
.logo::before {
  content: "";
  position: absolute;
  inset: 10% -22% -28% -22%;
  background: radial-gradient(ellipse 52% 48% at 50% 48%, rgba(255, 236, 210, .28), transparent 70%);
  filter: blur(26px);
  animation: logo-aura 5.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 255, 255, .1) 42%,
    rgba(255, 255, 255, .75) 50%,
    rgba(255, 236, 200, .32) 56%,
    transparent 70%
  );
  background-size: 240% 100%;
  background-position: 130% 0;
  animation: logo-sheen 5.2s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-image: url("../img/ui-logo.png?v=10");
  mask-image: url("../img/ui-logo.png?v=10");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.logo__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.logo__sparkles i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 236, 200, .7);
  animation: logo-twinkle 2.6s ease-in-out infinite;
}
.logo__sparkles i:nth-child(1) { top: 4%; left: 50%; margin-left: -2px; }
.logo__sparkles i:nth-child(2) { bottom: 8%; left: 50%; margin-left: -2px; width: 4px; height: 4px; animation-delay: .7s; }
.logo__sparkles i:nth-child(3) { top: 42%; left: 14%; width: 3px; height: 3px; animation-delay: 1.2s; }
.logo__sparkles i:nth-child(4) { top: 42%; right: 14%; width: 3px; height: 3px; animation-delay: 1.9s; }
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  grid-column: 2;
}
.ui-btn--nav {
  grid-column: 3;
}
.nav .ui-btn.is-active {
  filter: drop-shadow(0 0 14px rgba(232, 180, 255, .95));
}
.nav-rule,
.hero-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
  pointer-events: none;
}
.nav-rule span,
.hero-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, #f3e6b8, #d4af37, transparent);
  box-shadow: 0 0 8px rgba(212, 175, 55, .55);
}
.nav-rule i,
.hero-rule i {
  width: 10px;
  height: 10px;
  rotate: 45deg;
  background: radial-gradient(circle at 35% 30%, #f0abfc, #a855f7 42%, #6b21a8 100%);
  box-shadow: 0 0 10px #c084fc, 0 0 18px rgba(192, 132, 252, .7);
  flex: 0 0 auto;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(237, 213, 255, .4);
  background: rgba(40, 10, 70, .4);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px; margin: 0 auto; background: #fff; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ——— Hero ——— */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 0 160px;
  overflow: hidden;
}
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  pointer-events: none;
  user-select: none;
}
.hero::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(215, 191, 122, .5), transparent);
  box-shadow: 0 0 16px rgba(192, 132, 252, .4), 0 -10px 28px rgba(76, 29, 122, .45);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(22, 8, 38, .2) 36%,
      rgba(18, 6, 32, .7) 74%,
      #160826 100%),
    radial-gradient(90% 80% at 80% 100%, rgba(109, 40, 180, .28), transparent 62%);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 3, 22, .34) 0%, rgba(12, 3, 22, .1) 26%, transparent 52%),
    linear-gradient(180deg, rgba(12, 3, 22, .1) 0%, transparent 28%, rgba(18, 6, 32, .45) 100%);
}
.hero__spark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 24%, rgba(255, 236, 255, .75), transparent),
    radial-gradient(1px 1px at 36% 62%, rgba(232, 180, 255, .6), transparent),
    radial-gradient(1.4px 1.4px at 70% 28%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 84% 70%, rgba(253, 224, 71, .4), transparent);
  animation: spark-twinkle 4.5s ease-in-out infinite;
}
.hero__aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 50% 54% at 52% 46%, rgba(196, 140, 255, .08), transparent 66%);
  mix-blend-mode: screen;
  animation: aura-breathe 5.5s ease-in-out infinite;
}
.hero__mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(105deg, transparent 32%, rgba(232, 180, 255, .025) 50%, transparent 68%);
  background-size: 220% 100%;
  animation: mist-sweep 14s ease-in-out infinite;
}
.hero__dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero__dust i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f5e1ff;
  box-shadow: 0 0 8px #e9d5ff, 0 0 14px rgba(192, 132, 252, .8);
  opacity: 0;
  animation: dust-rise linear infinite;
}
.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  overflow: visible;
}
.hero__copy > * {
  animation: rise-in .8s cubic-bezier(.22, 1, .36, 1) both;
}
.hero__copy > h1 {
  animation:
    rise-in .8s cubic-bezier(.22, 1, .36, 1) .12s both,
    title-sheen 9.5s ease-in-out 2.4s infinite;
}
.hero__copy > .hero-rule { animation-delay: .28s; }
.hero__copy > p { animation-delay: .4s; }
.hero__copy > .ui-btn {
  animation: hero-btn-in .7s cubic-bezier(.22, 1, .36, 1) .55s both;
}
.hero h1 {
  margin-bottom: 12px;
  display: inline-block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image:
    linear-gradient(
      108deg,
      transparent 36%,
      rgba(255, 255, 255, .12) 44%,
      rgba(255, 255, 255, .95) 50%,
      rgba(236, 200, 255, .5) 55%,
      transparent 64%
    ),
    linear-gradient(
      180deg,
      #fffef8 0%,
      #f4eeff 10%,
      #fff4d4 24%,
      #e8d19a 42%,
      #f0ddb0 54%,
      #c9a24a 72%,
      #9a7328 88%,
      #6e5018 100%
    );
  background-size: 240% 100%, 100% 100%;
  background-position: 140% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 1px 0 rgba(255, 248, 230, .4))
    drop-shadow(0 3px 0 rgba(72, 44, 12, .4))
    drop-shadow(0 8px 18px rgba(12, 2, 28, .85))
    drop-shadow(0 0 16px rgba(192, 132, 252, .42));
}
.hero h1 span {
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-rule { margin: 0 0 16px; width: min(360px, 90%); }
.hero p {
  margin-bottom: 22px;
  color: #efe6f8;
  font-size: 13px;
  line-height: 1.6;
  text-shadow: 0 2px 12px #000;
}

/* ——— Textured fantasy panels ——— */
.glass-frame {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, .42), rgba(236, 214, 255, .18) 55%),
    url("../img/panel-glass.png") center / cover no-repeat;
  border: 2px solid #d7bf7a;
  box-shadow:
    0 0 0 1px #6a4e18,
    inset 0 0 0 1px rgba(255, 248, 220, .55),
    inset 0 0 40px rgba(168, 85, 247, .06),
    0 16px 40px rgba(20, 0, 40, .28);
}
.glass-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(236, 217, 160, .4);
  pointer-events: none;
  z-index: 1;
}
.jewel {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, .75));
  animation: gem-pulse 2.8s ease-in-out infinite;
}
.jewel-tr { animation-delay: .35s; }
.jewel-bl { animation-delay: .7s; }
.jewel-br { animation-delay: 1.05s; }
.jewel-mid { animation-delay: .2s; }
.jewel-mid-b { animation-delay: .9s; }
.jewel-tl, .jewel-tr, .jewel-bl, .jewel-br {
  width: 46px;
  height: 46px;
}
.jewel-tl { top: -10px; left: -10px; }
.jewel-tr { top: -10px; right: -10px; transform: scaleX(-1); }
.jewel-bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.jewel-br { bottom: -10px; right: -10px; transform: scale(-1); }
.jewel-mid {
  width: 28px;
  height: 36px;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}
.jewel-mid-b {
  width: 24px;
  height: 30px;
  bottom: -16px;
  top: auto;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  mix-blend-mode: screen;
}

.glass,
.panel {
  background:
    linear-gradient(180deg, rgba(236, 214, 255, .28), rgba(176, 140, 220, .14));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 245, 220, .4);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, .12), 0 16px 40px rgba(40, 0, 70, .28);
}

/* ——— Features ——— */
.features {
  position: relative;
  z-index: 5;
  margin-top: -78px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 26px 10px 22px;
}
.feat {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 16px;
}
.feat + .feat {
  border-left: 1px solid rgba(180, 140, 70, .35);
}
.feat img {
  width: 68px;
  height: 68px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, .55));
  transition: transform .35s ease, filter .35s ease;
}
.feat:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, .9));
}
.feat h3 {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4a1578;
}
.feat p {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
  color: #5a3a72;
}

/* ——— World + News ——— */
.lore {
  padding: 48px 0 80px;
  background:
    radial-gradient(900px 260px at 50% 0, rgba(168, 85, 247, .18), transparent 62%),
    linear-gradient(180deg, #1c0a2c, #14061f 55%, #100418);
}
.lore-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}
.world-card {
  min-height: 460px;
  overflow: hidden;
}
.world-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 38% 40%;
  z-index: 0;
}
.world-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 3, 22, .62) 0%, rgba(10, 3, 22, .18) 28%, rgba(10, 3, 22, .12) 58%, rgba(10, 3, 22, .72) 100%);
}
.world-card__copy {
  position: relative;
  z-index: 2;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 28px 26px 22px;
}
.world-card__top { max-width: 46ch; }
.world-card h2,
.news-head h2 {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}
.world-card p {
  margin: 10px auto 0;
  color: #f3e9ff;
  font-size: 12px;
  line-height: 1.55;
}
.news-col { min-width: 0; }
.news-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 48px;
  margin-bottom: 12px;
}
.news-head h2 {
  justify-self: start;
  font-size: 22px;
  letter-spacing: .28em;
  color: #f4ecff;
  text-shadow: 0 2px 12px #000;
}
.news-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #7c3aed, #4c1d95);
  border: 1px solid #d4af37;
  box-shadow: 0 0 12px rgba(168, 85, 247, .45), inset 0 1px 0 rgba(255,255,255,.18);
}
.news-all:hover { filter: brightness(1.12); }
.news-list {
  display: grid;
  gap: 10px;
  padding: 16px 14px;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, .55), rgba(236, 220, 250, .22)),
    url("../img/panel-glass.png") center / cover no-repeat;
}
.news-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  min-height: 100px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .14));
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 6px;
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}
.news-row:hover {
  background: rgba(255, 255, 255, .4);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(40, 0, 70, .22);
}
.news-row img { width: 100%; height: 100%; min-height: 84px; object-fit: cover; border-radius: 8px; }
.news-row time {
  display: block;
  color: #a07a22;
  font-size: 10px;
  margin-bottom: 4px;
}
.news-row h3 {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5b21b6;
}
.news-row p { color: #4c3568; font-size: 11px; line-height: 1.4; }

/* Inner pages */
.hero--sub {
  min-height: 460px;
  padding: 140px 0 92px;
  align-items: flex-end;
}
.hero--sub .hero__art {
  object-position: 50% 38%;
  -webkit-mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .5) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .5) 70%, transparent 100%);
}
.hero--sub::after {
  height: 54%;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(22, 8, 38, .22) 18%,
      rgba(16, 6, 32, .82) 58%,
      #160826 100%),
    radial-gradient(70% 90% at 82% 108%, rgba(124, 58, 237, .32), transparent 58%);
}
.page {
  margin-top: -72px;
  padding: 28px 0 80px;
  position: relative;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(22, 8, 38, 0), #160826 88px),
    #160826;
}
.page .lead { max-width: 62ch; color: var(--muted); margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 22px; }
.card h3 { font-family: var(--serif); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; margin: 8px 0; }
.card p, .card li { color: var(--muted); font-size: 12px; }
.card ul { padding-left: 18px; }
.card li + li { margin-top: 6px; }
.form-wrap { max-width: 520px; }
.form { display: grid; gap: 16px; padding: 26px; }
.form label { display: grid; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #e9d5ff; }
.form input {
  height: 48px; padding: 0 14px;
  background: rgba(12, 6, 20, .55);
  border: 1px solid rgba(237, 213, 255, .28);
  outline: none;
}
.form input:focus { border-color: #c084fc; }
.form .hint { font-size: 11px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.form-ok { display: none; padding: 12px; color: #d9f99d; border: 1px solid rgba(74, 222, 128, .35); }
.form.is-ok .form-ok { display: block; }
.form.is-ok .form-fields { display: none; }
.download { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.download__box { padding: 26px; }
.download__box h3 { font-family: var(--serif); font-size: 24px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.download__meta { display: flex; gap: 16px; margin: 14px 0 20px; color: var(--muted); font-size: 11px; }
.req-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.req-table th, .req-table td { padding: 10px 6px; text-align: left; border-bottom: 1px solid rgba(237, 213, 255, .12); }
.forum-soon { max-width: 640px; padding: 36px; text-align: center; }
.forum-soon p { margin: 12px 0 22px; color: var(--muted); }

/* Footer */
.footer {
  padding-top: 48px;
  background:
    radial-gradient(700px 220px at 50% 120%, rgba(168, 85, 247, .26), transparent 60%),
    linear-gradient(180deg, #160428, #0a0112);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr .7fr .7fr .7fr 110px;
  gap: 24px;
  padding-bottom: 36px;
}
.footer__brand p { max-width: 36ch; margin: 12px 0 16px; color: var(--muted); font-size: 12px; }
.logo--foot {
  position: relative;
  left: auto;
  top: auto;
  width: 280px;
  height: 124px;
  margin: 0;
  z-index: 1;
}
.logo--foot:hover { transform: scale(1.03); }
.logo--foot img { height: 118px; max-width: 280px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 46%, #3b0764 100%);
  box-shadow: 0 0 0 1px rgba(236, 217, 160, .45), 0 0 14px rgba(168, 85, 247, .55);
  transition: transform .25s ease, filter .25s ease;
}
.socials a:hover {
  transform: translateY(-3px) scale(1.08);
  filter: brightness(1.15);
}
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer h4 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ecd9a0;
}
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer li a { color: var(--muted); font-size: 12px; }
.footer li a::before {
  content: "◆";
  margin-right: 8px;
  color: #c084fc;
  font-size: 10px;
  vertical-align: middle;
}
.footer li a:hover { color: #fff; }
.pennant {
  width: 110px;
  height: 210px;
  object-fit: contain;
  object-position: center top;
  justify-self: end;
  filter: drop-shadow(0 12px 24px rgba(124, 58, 237, .55));
  transform-origin: top center;
  animation: pennant-sway 4.5s ease-in-out infinite;
}
.copy {
  padding: 16px 0 22px;
  text-align: center;
  color: #c4b0d8;
  font-size: 11px;
  border-top: 1px solid rgba(212, 175, 55, .28);
}
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 18px; background: rgba(40, 12, 70, .92);
  border: 1px solid rgba(237, 213, 255, .35);
  opacity: 0; pointer-events: none; transition: .25s;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1180px) {
  .logo { width: 260px; height: 142px; left: 8px; top: 4px; }
  .logo img { height: 100%; max-width: 100%; }
  .header__row { grid-template-columns: minmax(160px, 1fr) auto auto; }
  .ui-btn--menu { width: 112px; }
  .ui-btn--menu > span { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
}
@media (max-width: 1024px) {
  .features-grid, .lore-grid, .cards, .download { grid-template-columns: 1fr 1fr; }
  .feat + .feat { border-left: 0; }
  .pennant { display: none; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: 100px; left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 8px; padding: 16px 0 20px; background: rgba(12, 6, 20, .95);
  }
  .nav.is-open { display: flex; }
  .nav .ui-btn--menu { width: 220px; }
  .nav .ui-btn--menu > span { font-size: 11px; font-weight: 800; }
  .header__row { grid-template-columns: auto 1fr auto; }
  .nav { grid-column: auto; }
  .ui-btn--nav { grid-column: auto; width: 188px; }
  .ui-btn--nav > span { font-size: 10px; letter-spacing: .05em; padding: 6px 12px 0; }
  .features-grid, .lore-grid, .news-row, .cards, .download, .footer__grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 64px 1fr; }
  .news-head { grid-template-columns: 1fr; justify-items: center; }
  .hero { padding-bottom: 130px; }
  .logo { width: 168px; height: 92px; left: 8px; top: 4px; }
  .logo img { height: 88px; max-width: 168px; }
}

/* ——— Animations ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.features-grid article:nth-of-type(1) { transition-delay: .05s; }
.features-grid article:nth-of-type(2) { transition-delay: .14s; }
.features-grid article:nth-of-type(3) { transition-delay: .23s; }
.features-grid article:nth-of-type(4) { transition-delay: .32s; }
.news-list a:nth-of-type(1) { transition-delay: .05s; }
.news-list a:nth-of-type(2) { transition-delay: .14s; }
.news-list a:nth-of-type(3) { transition-delay: .23s; }
.news-all { transition: transform .25s ease, filter .25s ease; }
.news-all:hover { transform: translateY(-2px); filter: brightness(1.12); }
.news-row.reveal.is-in:hover {
  transform: translateY(-4px);
}
.hero-rule i { animation: gem-pulse 2.2s ease-in-out infinite; }

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-btn-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes title-sheen {
  0%, 72% { background-position: 140% 0, 0 0; }
  86% { background-position: -48% 0, 0 0; }
  87%, 100% { background-position: 140% 0, 0 0; }
}
@keyframes spark-twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes aura-breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes mist-sweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes dust-rise {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(.6); }
  12% { opacity: .9; }
  80% { opacity: .7; }
  100% { opacity: 0; transform: translate3d(18px, -110vh, 0) scale(1); }
}
@keyframes crest-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(216, 112, 255, .7)); }
  50% { filter: drop-shadow(0 0 16px rgba(240, 171, 252, 1)); }
}
@keyframes logo-breathe {
  0%, 100% {
    filter:
      drop-shadow(0 8px 16px rgba(8, 2, 16, .55))
      drop-shadow(0 0 12px rgba(236, 217, 160, .32))
      drop-shadow(0 0 20px rgba(255, 248, 230, .16));
    transform: scale(1);
  }
  50% {
    filter:
      drop-shadow(0 10px 18px rgba(8, 2, 16, .4))
      drop-shadow(0 0 18px rgba(245, 228, 180, .48))
      drop-shadow(0 0 26px rgba(255, 252, 240, .22));
    transform: scale(1.012);
  }
}
@keyframes logo-aura {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.04); }
}
@keyframes logo-sheen {
  0% { background-position: 130% 0; }
  40%, 100% { background-position: -50% 0; }
}
@keyframes logo-twinkle {
  0%, 100% { opacity: .2; transform: scale(.55); }
  45% { opacity: 1; transform: scale(1.35); }
  70% { opacity: .35; transform: scale(.8); }
}
@keyframes gem-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(192, 132, 252, .55)); opacity: .88; }
  50% { filter: drop-shadow(0 0 16px rgba(232, 180, 255, 1)); opacity: 1; }
}
@keyframes hero-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(168, 85, 247, .4)); }
  50% { filter: drop-shadow(0 0 22px rgba(232, 180, 255, .95)); }
}
@keyframes pennant-sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.8deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.ui-btn > span,
.cta > span:not(.cta__gem),
.frame-btn > span {
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 0 #140318, 0 2px 5px #000, 0 0 1px #fff;
}

html, body, *, *::before, *::after { cursor: auto !important; }
a, a *, button, button *, .ui-btn, .ui-btn *, .cta, .cta *, .frame-btn, .frame-btn *,
label, summary, [role="button"] { cursor: pointer !important; }
input, textarea, select, [contenteditable="true"] { cursor: text !important; }
