@font-face {
  font-family: "Fustat";
  src: url("/fonts/Fustat-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ivory: #fff8ec;
  --cream: #f7ead6;
  --purple: #32163d;
  --purple-deep: #1e1029;
  --purple-soft: #6d2b64;
  --gold: #e5b348;
  --gold-light: #f7d77f;
  --olive: #6b7454;
  --navy: #153451;
  --ink: #241c29;
  --muted: #716875;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(38, 18, 42, 0.16);
  --soft-shadow: 0 14px 34px rgba(38, 18, 42, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Fustat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.section-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 9999;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--white);
  color: var(--purple);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  color: var(--white);
}
.brand img { width: 70px; height: 70px; border-radius: 16px; object-fit: cover; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.site-header nav { display: flex; align-items: center; gap: 30px; font-weight: 650; }
.site-header nav > a { opacity: .86; transition: opacity .2s ease, transform .2s ease; }
.site-header nav > a:hover, .site-header nav > a:focus-visible { opacity: 1; transform: translateY(-2px); }
.site-header .header-cta {
  padding: 9px 22px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(900px, 100svh);
  place-items: center;
  overflow: hidden;
  padding: 115px 24px 76px;
  background: var(--purple-deep);
  color: var(--white);
}
.hero-media, .hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -5; background: url("/images/hero-background.webp") center/cover no-repeat; }
.hero-video { z-index: -4; object-fit: cover; opacity: .75; }
.hero-shade {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 34%, rgba(105,40,91,.12), rgba(29,13,39,.70) 68%),
    linear-gradient(180deg, rgba(21,13,29,.22), rgba(26,11,34,.48) 62%, rgba(29,14,38,.84));
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(820px, 88vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,179,72,.18), transparent 66%);
  filter: blur(12px);
}
.hero-content { width: min(840px, 100%); text-align: center; }
.eyebrow, .section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .87rem;
  font-weight: 750;
  letter-spacing: .08em;
}
.hero-logo {
  width: clamp(170px, 21vw, 285px);
  height: auto;
  margin: 4px auto 12px;
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(0,0,0,.30);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.16));
  animation: logo-breathe 4.8s ease-in-out infinite;
}
.hero h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.13; text-wrap: balance; }
.hero-copy { max-width: 650px; margin: 20px auto 30px; color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.6vw, 1.22rem); }
.store-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; direction: ltr; }
.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 62px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 17px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 12px 28px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.15);
  color: var(--white);
  text-align: left;
  backdrop-filter: blur(13px);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.store-button:hover, .store-button:focus-visible { transform: translateY(-3px); background: rgba(255,255,255,.18); box-shadow: 0 16px 34px rgba(0,0,0,.23); }
.store-button:active { transform: translateY(1px) scale(.985); }
.store-button[aria-disabled="true"] { cursor: default; }
.store-button small, .store-button strong { display: block; line-height: 1.25; }
.store-button small { font-size: .68rem; opacity: .75; }
.store-button strong { font-size: 1.02rem; }
.store-mark { display: grid; width: 29px; height: 32px; flex: 0 0 auto; place-items: center; }
.play-mark { background: conic-gradient(from 135deg, #6dd47e, #69b5ff, #f8db56, #ff7f6d, #6dd47e); clip-path: polygon(8% 0, 100% 50%, 8% 100%); }
.apple-mark { font-size: 2.3rem; line-height: 1; }
.scroll-cue { position: absolute; inset-block-end: 23px; inset-inline-start: 50%; width: 34px; height: 44px; border: 1px solid rgba(255,255,255,.38); border-radius: 18px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; inset: 9px auto auto 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); animation: scroll-cue 1.8s infinite; }

.intro, .screenshots-section, .features-section { padding-block: clamp(74px, 9vw, 126px); }
.intro { text-align: center; }
.intro h2, .section-heading h2, .artwork-heading h2, .download-section h2, .showcase-copy h2 { margin: 0; color: var(--purple); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.18; text-wrap: balance; }
.section-copy { max-width: 680px; margin: 18px auto 0; color: var(--muted); font-size: 1.08rem; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 830px; margin: 46px auto 0; border: 1px solid rgba(80,55,78,.12); border-radius: var(--radius-lg); background: rgba(255,255,255,.65); box-shadow: var(--soft-shadow); overflow: hidden; }
.quick-facts div { padding: 28px 15px; }
.quick-facts div + div { border-inline-start: 1px solid rgba(80,55,78,.12); }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts strong { color: var(--purple); font-size: 2rem; line-height: 1.1; }
.quick-facts span { margin-top: 6px; color: var(--muted); font-size: .92rem; }

.screenshots-section { padding-top: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.gallery-controls { display: flex; gap: 8px; direction: ltr; }
.gallery-button { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(50,22,61,.14); border-radius: 50%; background: var(--white); color: var(--purple); box-shadow: 0 8px 18px rgba(42,20,47,.10); font-size: 2rem; line-height: 1; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.gallery-button:hover, .gallery-button:focus-visible { transform: scale(1.06); background: var(--gold-light); }
.screenshot-gallery {
  display: grid;
  grid-auto-columns: min(82vw, 680px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 2px 22px;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  cursor: grab;
  direction: rtl;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.screenshot-gallery::-webkit-scrollbar { display: none; }
.screenshot-gallery.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
.screenshot-card { position: relative; margin: 0; overflow: hidden; padding: 7px; border: 1px solid rgba(63,35,61,.14); border-radius: 18px; background: linear-gradient(145deg, #39233f, #1f1328); box-shadow: 0 16px 38px rgba(42,20,47,.18); scroll-snap-align: center; }
.screenshot-card img { width: 100%; height: auto; max-height: min(70svh, 520px); aspect-ratio: auto; border-radius: 12px; background: #1f1328; object-fit: contain; }
.screenshot-card figcaption { display: flex; align-items: center; gap: 10px; margin: 0 -7px -7px; padding: 11px 14px; background: var(--white); color: var(--purple); font-weight: 700; }
.screenshot-card figcaption span { color: var(--gold); font-size: .78rem; }

.showcase-section { padding-block: clamp(75px, 9vw, 120px); background: linear-gradient(135deg, var(--purple-deep), #3c1b48 55%, #17384d); color: var(--white); }
.showcase-inner { display: grid; grid-template-columns: .85fr 1.35fr; align-items: center; gap: clamp(38px, 6vw, 80px); }
.showcase-copy h2 { color: var(--white); }
.showcase-copy p:not(.section-kicker) { color: rgba(255,255,255,.74); }
.showcase-copy ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.showcase-copy li::before { content: "✦"; margin-inline-end: 9px; color: var(--gold); }
.showcase-visual { position: relative; margin: 0; }
.showcase-visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(229,179,72,.45); border-radius: var(--radius-lg); }
.showcase-visual video { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); background: #120c18; box-shadow: 0 35px 80px rgba(0,0,0,.35); object-fit: contain; }
.showcase-visual figcaption { position: absolute; inset: auto 16px 16px auto; padding: 6px 12px; border-radius: 999px; background: rgba(20,11,27,.7); color: rgba(255,255,255,.85); font-size: .78rem; backdrop-filter: blur(9px); }

.centered-heading { justify-content: center; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-item { min-height: 230px; padding: 28px; border: 1px solid rgba(66,38,64,.10); border-radius: var(--radius-lg); background: rgba(255,255,255,.78); box-shadow: 0 12px 30px rgba(46,24,49,.08); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-item:hover { transform: translateY(-6px); border-color: rgba(229,179,72,.55); box-shadow: var(--soft-shadow); }
.feature-item > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: linear-gradient(145deg, var(--purple), var(--purple-soft)); box-shadow: 0 10px 20px rgba(50,22,61,.2); color: var(--gold-light); font-size: 1.28rem; font-weight: 800; }
.feature-item h3 { margin: 20px 0 6px; color: var(--purple); font-size: 1.28rem; }
.feature-item p { margin: 0; color: var(--muted); }

.artwork-section { padding: 90px 0; overflow: hidden; background: #f1e5d2; }
.artwork-heading { margin-bottom: 30px; text-align: center; }
.arena-mosaic { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(230px, 32vw)); gap: 12px; width: min(1440px, calc(100% - 24px)); margin: auto; }
.arena-tile { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: var(--purple); }
.arena-wide { grid-row: 1 / 3; }
.arena-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.arena-tile::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(24,12,29,.72)); }
.arena-tile:hover img { transform: scale(1.035); }
.arena-tile figcaption { position: absolute; z-index: 2; inset: auto 24px 20px auto; color: var(--white); font-size: 1.3rem; font-weight: 750; }
.collectibles { display: grid; grid-template-columns: 1fr minmax(250px, .55fr); align-items: center; gap: 28px; padding-top: 65px; }
.avatar-line { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.avatar-line img { width: 100%; height: 100%; aspect-ratio: 1/1; padding: 3px; border: 2px solid var(--white); border-radius: 50%; background: #d8cbb7; box-shadow: 0 10px 24px rgba(53,31,46,.16); object-fit: contain; transition: transform .2s ease; }
.avatar-line img:hover { transform: translateY(-6px) scale(1.03); }
.card-fan { position: relative; width: min(330px, 100%); min-height: 205px; margin: auto; direction: ltr; }
.card-fan img { position: absolute; inset-block-start: 12px; inset-inline-start: 50%; width: clamp(66px, 5.8vw, 90px); height: auto; max-height: 185px; border-radius: 7px; box-shadow: 0 14px 26px rgba(37,20,35,.20); object-fit: contain; transform-origin: center 115%; }
.card-fan img:nth-child(1) { transform: translateX(-125%) rotate(-18deg); }
.card-fan img:nth-child(2) { transform: translateX(-78%) rotate(-7deg); }
.card-fan img:nth-child(3) { transform: translateX(-31%) rotate(7deg); }
.card-fan img:nth-child(4) { transform: translateX(16%) rotate(18deg); }

main > section:not(.hero), .site-footer { content-visibility: auto; contain-intrinsic-size: auto 800px; }

.download-section { position: relative; isolation: isolate; margin-block: 95px; overflow: hidden; padding: clamp(60px, 8vw, 100px) 24px; border-radius: var(--radius-xl); background: linear-gradient(135deg, #24122f, #542052 58%, #173b51); box-shadow: var(--shadow); color: var(--white); text-align: center; }
.download-section > img { margin: -12px auto 10px; border-radius: 18px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); }
.download-section h2 { color: var(--white); }
.download-section > p:not(.section-kicker) { margin: 10px 0 24px; color: rgba(255,255,255,.75); }
.download-glow { position: absolute; z-index: -1; inset: 50% auto auto 50%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(229,179,72,.17), transparent 66%); transform: translate(-50%,-50%); }
.light-store { background: var(--white); color: var(--purple); }
.light-store:hover, .light-store:focus-visible { background: var(--gold-light); }

.site-footer { padding: 0 0 max(30px, env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px 30px; padding-top: 30px; border-top: 1px solid rgba(71,48,69,.15); }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand > img:first-child { width: 58px; border-radius: 12px; }
.boomx-logo { width: 102px; height: auto; }
.footer-divider { width: 1px; height: 30px; background: rgba(63,42,61,.22); }
.footer-links { display: flex; gap: 24px; color: var(--purple); font-weight: 650; }
.footer-inner > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes logo-breathe { 0%,100% { transform: scale(1); filter: drop-shadow(0 20px 30px rgba(0,0,0,.28)); } 50% { transform: scale(1.025); filter: drop-shadow(0 20px 34px rgba(229,179,72,.25)); } }
@keyframes scroll-cue { 0% { opacity: 0; transform: translate(-50%, 0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 18px); } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 28px, 760px); }
  .site-header { min-height: 76px; padding-inline: 16px; }
  .site-header nav > a:not(.header-cta) { display: none; }
  .brand img { width: 60px; height: 60px; }
  .hero { min-height: 780px; }
  .showcase-inner { grid-template-columns: 1fr; }
  .showcase-copy { max-width: 650px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .collectibles { grid-template-columns: 1fr; }
  .card-fan { width: min(320px, 100%); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: 720px; padding-inline: 18px; }
  .store-actions { display: grid; }
  .store-button { min-width: 210px; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts div + div { border-inline-start: 0; border-top: 1px solid rgba(80,55,78,.12); }
  .quick-facts div { padding: 19px 12px; }
  .section-heading { align-items: start; }
  .gallery-controls { display: none; }
  .screenshot-gallery { grid-auto-columns: 94%; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { min-height: auto; }
  .arena-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(3, 250px); }
  .arena-wide { grid-row: auto; }
  .avatar-line { grid-template-columns: repeat(3, 1fr); }
  .card-fan { width: min(300px, 100%); min-height: 175px; transform: none; }
  .download-section { width: calc(100% - 20px); margin-block: 65px; border-radius: 25px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-inner > p { grid-column: auto; }
}

@media (max-height: 650px) and (orientation: landscape) {
  .site-header { min-height: 68px; }
  .hero { min-height: 680px; }
  .hero-logo { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-video { display: none; }
  .reveal { opacity: 1; transform: none; }
}





