:root {
  color-scheme: dark;
  --bg: #100d19;
  --panel: #1b1528;
  --edge: #413153;
  --text: #fbf8ff;
  --muted: #d0c5dc;
  --accent: #d6a1ff;
  --strong: #8d47ed;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
p, h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; }
h2 { font-size: clamp(2.05rem, 4vw, 3.45rem); letter-spacing: -.045em; }
h3 { font-size: 1.35rem; }
h4 { margin-top: 1.4rem; margin-bottom: .65rem; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid #e8bdff; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: relative; z-index: 2; background: #14101ded; border-bottom: 1px solid #ad82d63d; }
.nav { min-height: 70px; display: flex; justify-content: space-between; gap: 1.75rem; align-items: center; }
.nav nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.nav nav a, .brand, .footer a { text-decoration: none; }
.nav nav a:hover, .footer a:hover { color: var(--accent); }
.brand { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.35rem; letter-spacing: -.048em; white-space: nowrap; }
.brand img { width: 39px; height: 39px; border-radius: 8px; margin-right: .65rem; }
.brand span { color: var(--accent); }
.button, button {
  display: inline-flex; justify-content: center; align-items: center;
  padding: .72rem 1.22rem; border: 1px solid #b67cff89; border-radius: 9px;
  background: linear-gradient(145deg, #9850ee, #6025c8 78%); color: white;
  font-weight: 730; text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: inset 0 1px #e3b4ff30, 0 5px 20px #5e24b33b;
  transition: filter 150ms ease, transform 150ms ease;
}
.button:hover, button:hover { filter: brightness(1.18); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .58; transform: none; }
.secondary { background: #1b1428bf; border-color: #8e64ad; box-shadow: none; }
.hero {
  position: relative; isolation: isolate; text-align: center; overflow: hidden; padding: clamp(3.7rem, 6vw, 5.7rem) 0 1.5rem;
}
.hero::before {
  position: absolute; content: ""; z-index: -2; inset: 0;
  background: #282039 url('/hero.webp') center 43% / cover no-repeat;
}
.hero::after {
  position: absolute; content: ""; z-index: -1; inset: 0;
  background: linear-gradient(to bottom, #120d1d21 0%, #120d1d10 35%, #120d1d65 68%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 30%, #110b1eac 0%, #140d1f54 44%, transparent 72%);
}
.eyebrow { font-size: .875rem; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; color: #e0b8ff; margin-bottom: .85rem; }
.hero .eyebrow { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.hero .eyebrow span { width: 24px; height: 1px; background: #d7a4ff9e; }
.hero h1 { font-size: clamp(3.15rem, 7.2vw, 6.15rem); font-weight: 900; line-height: .96; letter-spacing: -.073em; font-style: italic; text-shadow: 0 6px 24px #170922b3; }
.hero h1 em { font-style: inherit; background: linear-gradient(105deg, #efbcff, #b077ff 75%); color: transparent; background-clip: text; text-shadow: none; display: inline-block; padding-right: .085em; }
.intro { margin: 1.25rem auto 0; color: #f3e8fd; max-width: 59ch; font-size: clamp(1rem, 2vw, 1.23rem); text-shadow: 0 1px 6px #160f21; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.45rem; }
.hero-actions .button { min-width: 150px; padding-inline: 1.5rem; }
.showcase {
  width: min(990px, 100%); margin: 2.25rem auto 0; padding: 7px; border: 1px solid #bf8cfa9c; border-radius: 19px;
  background: linear-gradient(150deg, #9872bd6e, #2b1d43ce 35%, #9d64cc70);
  box-shadow: 0 24px 100px #0d071aab, 0 0 35px #aa55f02b; text-align: left;
}
.showcase a, .showcase img { display: block; }
.showcase a { aspect-ratio: 1573 / 820; overflow: hidden; border-radius: 12px; }
.showcase img { width: 100%; height: auto; }
.showcase figcaption { padding: .45rem .4rem .2rem; text-align: center; color: #f3e8fd; font-size: .875rem; }
.showcase { scroll-margin-top: 1rem; }
.features { padding: .9rem 0 3.4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; text-align: left; }
.feature-grid article {
  padding: clamp(.8rem, 2vw, 1.25rem);
  border: 1px solid #513965;
  border-radius: 12px;
  background: radial-gradient(ellipse at 0 0, #58347a5e, transparent 72%), #181222;
}
.feature-icon {
  display: inline-grid; place-items: center; width: 2.55rem; height: 2.55rem;
  border: 1px solid #ae79ce71; border-radius: 10px; background: #56337b69;
  color: #e0afff; font-size: 1.65rem; line-height: 1; text-shadow: 0 0 16px #a05aff85;
}
.feature-grid h2 { font-size: 1.15rem; margin: .45rem 0; letter-spacing: -.025em; }
.feature-grid p, .section-intro, .purchase > div:first-child p:not(.eyebrow), .faq p { color: var(--muted); }
.market-feature {
  position: relative; isolation: isolate; display: grid; align-items: center; min-height: 350px;
  margin-bottom: clamp(2.7rem, 6vw, 4.6rem); padding: clamp(1.6rem, 6vw, 4rem);
  border: 1px solid #a973d66b; border-radius: 24px; overflow: hidden;
  background: #251730 url('/market-feature.webp') center / cover no-repeat;
  box-shadow: 0 22px 65px #08060ec4, inset 0 1px #efcaff35;
}
.market-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #120b20f5, #1a0e25ae 42%, #27162d22 72%);
}
.market-feature-copy { max-width: 33rem; }
.market-feature-copy > p:not(.eyebrow) { color: #e0d1ec; margin-top: .85rem; max-width: 34rem; }
.market-feature-copy h2 { max-width: 11ch; }
.market-feature-copy .actions { margin-top: 1.25rem; }
.gameplay-highlights, .gallery, .pricing, .purchase, .faq { border-top: 1px solid var(--edge); padding-block: clamp(2.7rem, 6vw, 4.6rem); scroll-margin-top: 1rem; }
.gameplay-highlights {
  background: radial-gradient(ellipse at 52% 47%, #583b8b50, transparent 68%);
}
.gallery-heading { margin-bottom: 1.45rem; }
.gallery-heading p, .gallery-card p { color: var(--muted); margin-top: .45rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gallery-card { min-width: 0; border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); }
.gallery-card a { display: block; aspect-ratio: 16 / 10; border-radius: 13px 13px 0 0; overflow: hidden; background: #120e19; }
.gallery-card a:hover { box-shadow: 0 0 0 1px #b67cff; }
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-card figcaption { padding: 1rem 1.15rem; }
.highlight-card {
  border-color: #a778d9; border-radius: 20px;
  box-shadow: 0 24px 64px #0c0717, 0 0 32px #8c5de336;
  background: linear-gradient(105deg, #261837, #1a1426 75%);
}
.highlight-card a { aspect-ratio: 1687 / 627; border-radius: 19px 19px 0 0; }
.highlight-card figcaption { padding: 1.2rem clamp(1rem, 4vw, 2rem); }
.gallery-card[id] { scroll-margin-top: 1rem; }
@media (max-width: 640px) {
  .market-feature { min-height: 390px; align-items: end; background-position: 68% center; }
  .market-feature::before { background: linear-gradient(0deg, #120b20ff, #1a0e25b5 57%, #27162d20); }
}
.showcase a, .gallery-card a { cursor: zoom-in; }
html:has(.image-preview[open]) { overflow: hidden; }
.image-preview {
  width: min(1440px, calc(100vw - 2rem)); max-width: none;
  max-height: calc(100dvh - 2rem); padding: .85rem;
  border: 1px solid #8e64ad; border-radius: 14px; background: var(--panel); color: var(--text);
  box-shadow: 0 20px 85px #000a;
}
.image-preview::backdrop { background: #09060de8; }
.image-preview header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.image-preview h2 { font-size: 1.05rem; letter-spacing: 0; }
.image-preview button { padding: .4rem .8rem; }
.image-preview img { display: block; width: 100%; height: min(78dvh, calc(100dvh - 6.5rem)); object-fit: contain; border-radius: 8px; background: #110e17; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }
.purchase { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.purchase h2 { margin-bottom: 1rem; }
.pricing { text-align: center; }
.section-intro { margin: .7rem auto 1.6rem; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; max-width: 820px; margin: auto; text-align: left; }
.plan, .panel { border: 1px solid var(--edge); background: #1a1426; border-radius: 15px; padding: clamp(1.15rem, 3vw, 1.8rem); }
.plan.lifetime { background: linear-gradient(145deg, #322048, #1c142b 68%); border-color: #a16add; }
.plan .price { margin: .65rem 0; font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.055em; }
.plan .price small { color: var(--muted); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.plan ul { color: var(--muted); margin: 1.15rem 0; padding-left: 1.25rem; }
.plan li { margin: .35rem 0; }
.plan li::marker { color: #bc81fc; }
.plan .button { width: 100%; }
.purchase { align-items: start; }
.purchase #mode { color: #e1b9ff; margin-top: 1rem; }
.subtle { color: var(--muted); font-size: .9rem; }
.actions, .account-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.actions { margin-top: .85rem; }
.account-actions { margin-top: 1.2rem; }
.account-actions button, #devices button { padding: .42rem .68rem; font-size: .875rem; }
.panel label { display: block; margin: .8rem 0; }
.panel input, .panel select { display: block; width: 100%; margin-top: .35rem; padding: .52rem .72rem; color: var(--text); background: #120f1a; border: 1px solid #775b8f; border-radius: 7px; }
.panel select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 50%, #d3a6ff 50%) right 1.15rem center / 6px 6px no-repeat, linear-gradient(135deg, #d3a6ff 50%, transparent 50%) right .79rem center / 6px 6px no-repeat, #120f1a; }
#notice { color: #e9c3ff; margin-bottom: .7rem; }
#notice:empty { display: none; }
#email { margin: .3rem 0 .75rem; }
#devices { margin: 0; padding: 0; list-style: none; }
#devices li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: .45rem 0; overflow-wrap: anywhere; }
.faq h2 { margin-bottom: 1.1rem; }
.faq details { max-width: 780px; border-bottom: 1px solid var(--edge); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: .55rem 0 0 1.15rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; border-top: 1px solid var(--edge); color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
  .nav nav { gap: .9rem; }
}
@media (max-width: 790px) {
  .wrap { width: calc(100% - 36px); }
  .nav { gap: .7rem; }
  .nav nav { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .purchase { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
  .nav { min-height: 62px; }
  .brand { font-size: 1.13rem; }
  .brand img { width: 30px; height: 30px; margin-right: .4rem; }
  .nav-cta { padding: .48rem .7rem; font-size: .875rem; }
  .hero { padding-top: 3.2rem; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 3.45rem); }
  .hero .eyebrow { letter-spacing: .08em; }
  .hero .eyebrow span { display: none; }
  .hero-actions .button { min-width: 0; padding-inline: .85rem; }
  .showcase { margin-top: 1.55rem; padding: 4px; }
  .plans { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button, button { transition: none; } }
.purchase-fireworks {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
