/* ─── SOLMATES THEME OVERRIDE ─── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&family=Space+Grotesk:wght@400;500;700&family=Fredoka:wght@600;700&display=swap');

:root {
  --purple-deep:    #0d0520;
  --purple-dark:    #150a30;
  --purple-mid:     #2d1655;
  --purple-bright:  #7c3aed;
  --purple-light:   #9b4dca;
  --purple-glow:    #c471ed;
  --pink:           #ec4899;
  --gold:           #f8c471;
  --text-light:     #f0e6ff;
  --text-muted:     #b89ee8;
  --border-purple:  #4c1d95;
  --card-bg:        #1a0a3e;
  --card-border:    #3d1a7a;
  --green: #c471ed; /* override the --green var used throughout */
}

/* ── global resets ── */
body {
  background-color: var(--purple-deep) !important;
  color: var(--text-light) !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

*::selection {
  background-color: var(--purple-glow) !important;
  color: #fff !important;
}

/* ── noise/grain overlay → purple tint ── */
.overlay {
  background: url('../assets/img/filter-mob.webp') center/100% repeat-y !important;
  mix-blend-mode: soft-light !important;
  opacity: 0.2 !important;
}
@media (min-width: 48em) {
  .overlay {
    background: url('../assets/img/filter.webp') center/100% repeat-y !important;
  }
}

/* ════════════════════════════
   HEADER
════════════════════════════ */
.header {
  background: linear-gradient(180deg, rgba(13,5,32,0.98) 0%, rgba(13,5,32,0.82) 100%) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,58,237,0.2);
}

/* ── Navbar logo: fixed height, no stretch ── */
.header__logo {
  width: auto !important;
  min-width: 0 !important;
  flex-shrink: 0;
}
.header__logo img {
  display: block;
  height: 30px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.2s;
}
.header__logo:hover img { opacity: 1; }

/* ── Nav links ── */
.menu__link {
  color: rgba(240,230,255,0.75) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-style: normal !important;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.menu__link:hover { color: #fff !important; background: rgba(124,58,237,0.18) !important; }
.menu__link:before { display: none !important; }          /* kill underline anim */
.menu__item.decor  { background-color: rgba(196,113,237,0.2) !important; width: 1px !important; height: 14px !important; margin: 0 0.25rem !important; }

/* ── Header social icon pills ── */
.header__social { gap: 0.4rem !important; }
.header__social-item {
  border: 1px solid rgba(124,58,237,0.35) !important;
  background: rgba(124,58,237,0.08) !important;
  border-radius: 8px !important;
  width: clamp(2rem, 2.5vw, 2.4rem) !important;
  height: clamp(2rem, 2.5vw, 2.4rem) !important;
  aspect-ratio: 1 !important;
  transition: border-color 0.2s, background 0.2s, transform 0.15s !important;
}
.header__social-item svg { width: 44% !important; height: auto; }
.header__social-item svg path { fill: rgba(196,113,237,0.8) !important; }
.header__social-item:hover {
  border-color: var(--purple-glow) !important;
  background: rgba(124,58,237,0.22) !important;
  transform: translateY(-2px) !important;
}
.header__social-item:hover svg path { fill: var(--purple-glow) !important; }

/* ── Header CTA button ── */
.header__button {
  border: none !important;
  background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
  border-radius: 100px !important;
  padding: 0 clamp(1rem, 1.5vw, 1.4rem) !important;
  height: clamp(2rem, 2.5vw, 2.4rem) !important;
  box-shadow: 0 2px 14px rgba(124,58,237,0.4) !important;
  white-space: nowrap !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.header__button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(196,113,237,0.55) !important;
}
.header__button span {
  color: #fff !important;
  font-family: 'Nunito', sans-serif !important;
  font-style: normal !important;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
}

/* wallet btn */
.header__wallet-btn {
  color: var(--purple-glow) !important;
  border-color: var(--border-purple) !important;
  font-family: 'Nunito', sans-serif !important;
}
.header__wallet-btn:hover { background: var(--purple-bright) !important; color: #fff !important; }

/* mobile menu */
.mob-menu-bg { background-color: rgba(13,5,32,0.85) !important; }
.menu__body {
  background-color: var(--purple-deep) !important;
  border-bottom-color: var(--purple-glow) !important;
}
.menu__body:before { background: url('../assets/img/solmates/char-group.svg') center/contain no-repeat !important; }
.icon-menu:before, .icon-menu:after { background-color: var(--text-light) !important; }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
  /* centre stays vivid purple; edges kept lighter so side images aren't lost in darkness */
  background: radial-gradient(ellipse 80% 90% at 50% 45%,
    #4c1d95 0%,
    #2d1655 45%,
    #150a30 75%,
    #0d0520 100%) !important;
  overflow: hidden;
}

/* ── INTRO VIDEO (inside hero__bg, behind logo & props) ── */
#introBgVideo {
  transition: opacity 0.5s ease;
}
#introBgVideo video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero__bg-image {
  opacity: 1 !important;
  animation: none !important;
}
.hero__bg-image img {
  object-fit: cover;
  object-position: center;
  /* purple tint overlay on top of the hero char image */
  mix-blend-mode: luminosity;
  opacity: 0.18;
}

/* hero content column layout */
.hero__container {
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column;
  padding-top: max(5rem, 8vh) !important;
  padding-bottom: max(3rem, 5vh) !important;
  min-height: 100vh;
  box-sizing: border-box;
  /* kill any inherited left/right padding that off-centres the column */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hero__content {
  align-items: center !important;
  row-gap: clamp(1.6rem, 4vh, 2.8rem) !important;
  max-width: 580px;   /* narrower so text breaks feel even */
  width: 100%;
  text-align: center;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* push scroll hint visually lower from the buttons */
.hero__scroll-hint {
  margin-top: clamp(1.5rem, 4vh, 3rem) !important;
  opacity: 0.55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* logo area */
.hero__image {
  aspect-ratio: auto !important;
  width: clamp(260px, 50vw, 520px) !important;
}
.hero__image img {
  position: relative !important;
  transform: none !important;
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 40px rgba(196,113,237,0.7));
}

/* tagline text injected by .hero__tagline */
.hero__tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  text-align: center;
}
.hero__tagline strong {
  color: var(--text-light);
  font-weight: 700;
}

/* character art below logo */
.hero__chars {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
}
.hero__chars img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 48px rgba(124,58,237,0.5));
}

/* hero buttons */
.hero__actions {
  transform: none;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__button img { display: none; } /* hide old button image */
.hero__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 30px rgba(124,58,237,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(196,113,237,0.7);
}
.hero__button::after { content: "Play Now"; }
/* Prevent "PLAY\nNOW" line-wrap */
.hero__button { white-space: nowrap; }

.hero__social { gap: 0.75rem; }
.hero__social-item img { display: none; }
.hero__social-item {
  width: clamp(2.8rem, 4vw, 3.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--border-purple);
  background: var(--card-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.hero__social-item:hover {
  border-color: var(--purple-glow);
  transform: translateY(-3px);
}

/* glow orbs behind hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
  top: -150px; left: -100px;
}
.hero::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.25) 0%, transparent 70%);
  bottom: -100px; right: -80px;
}

/* hero section scroll anim overrides */
[data-fls-loaded] .hero__bg { animation: none !important; }
[data-fls-loaded] .hero__bg-image { animation: fromOpacity 0.8s ease 0.4s forwards !important; }

/* ── Hero bottom dissolve into the next section ── */
.hero {
  background: radial-gradient(ellipse 130% 100% at 55% 30%,
    #4c1d95 0%,
    #2d1655 40%,
    #0d0520 72%,
    #0d0520 100%) !important;
}
/* Bottom fade — hero::before/::after used for orb glows, so we use a child div */
/* ── Hero floating item art ── */
@keyframes heroFloatL {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-20px); }
}
@keyframes heroFloatR {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-24px); }
}
.hero__float {
  position: absolute;
  top: -12%;        /* shift up so items poke above centre */
  bottom: 0;
  height: 112%;
  width: auto;
  max-width: clamp(240px, 30vw, 420px);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 20px 48px rgba(124,58,237,0.4));
}
.hero__float--left {
  left: 0;
  object-position: left center;
  animation: heroFloatL 5s ease-in-out infinite;
}
.hero__float--right {
  right: 0;
  object-position: right center;
  animation: heroFloatR 5.5s ease-in-out infinite;
  animation-delay: -1.8s;
}
@media (max-width: 56em) {
  .hero__float { max-width: clamp(160px, 22vw, 280px); }
}
@media (max-width: 36em) {
  .hero__float { display: none; }
}

.hero .hero__bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(to bottom, transparent 0%, #0d0520 100%);
  pointer-events: none;
  z-index: 2;
}

/* ═══════════════════════════════════════
   HERO INTRO — keyframes only (JS drives everything)
═══════════════════════════════════════ */
/* GSAP bounce.out replica: drop from above with rotation, three decaying bounces */
@keyframes heroCrash {
  0%    { transform: translateY(-110vh) rotate(-15deg); opacity: 1; }
  9%    { transform: translateY(-101vh) rotate(-13.6deg); }
  18%   { transform: translateY(-75vh)  rotate(-12.2deg); }
  27%   { transform: translateY(-41vh)  rotate(-10.9deg); }
  36.4% { transform: translateY(0)      rotate(-9.5deg);  }  /* 1st impact */
  45%   { transform: translateY(-19vh)  rotate(-8.2deg);  }
  54.5% { transform: translateY(-25vh)  rotate(-6.8deg);  }  /* bounce peak */
  64%   { transform: translateY(-17vh)  rotate(-5.4deg);  }
  72.7% { transform: translateY(0)      rotate(-4.1deg);  }  /* 2nd impact */
  81.8% { transform: translateY(-6.25vh) rotate(-2.7deg); }  /* small bounce */
  90.9% { transform: translateY(0)      rotate(-1.4deg);  }  /* 3rd impact */
  95.5% { transform: translateY(-1.6vh) rotate(-0.7deg);  }
  100%  { transform: translateY(0)      rotate(0deg);     }
}
@keyframes heroPropL {
  0%   { transform: translateX(-120px) translateY(50px) rotate(-12deg) scale(0.5); opacity: 0; }
  58%  { transform: translateX(10px)   translateY(-5px) rotate(2deg)   scale(1.05); opacity: 1; }
  78%  { transform: translateX(-4px)   translateY(2px)  rotate(-1deg)  scale(0.99);             }
  100% { transform: translateX(0)      translateY(0)    rotate(0deg)   scale(1);                }
}
@keyframes heroPropR {
  0%   { transform: translateX(120px)  translateY(50px) rotate(12deg)  scale(0.5); opacity: 0; }
  58%  { transform: translateX(-10px)  translateY(-5px) rotate(-2deg)  scale(1.05); opacity: 1; }
  78%  { transform: translateX(4px)    translateY(2px)  rotate(1deg)   scale(0.99);             }
  100% { transform: translateX(0)      translateY(0)    rotate(0deg)   scale(1);                }
}
@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0);    }
}

/* ════════════════════════════
   ABOUT-HOW-JOIN WRAPPER
════════════════════════════ */
.about-how-join {
  /* start and end at purple-deep so boundaries with hero and faq are invisible */
  background: linear-gradient(180deg,
    var(--purple-deep) 0%,
    var(--purple-dark) 35%,
    var(--purple-dark) 65%,
    var(--purple-deep) 100%) !important;
}
/* top fade to reinforce the hero→about dissolve */
.about-how-join::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, var(--purple-deep) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.about-how-join__bg img { display: none; }

/* ════════════════════════════
   ABOUT  →  "About SOLMATES"
════════════════════════════ */
/* Section: padding-top reserves space for the rig above the text block */
.about {
  background: transparent !important;
  position: relative !important;
  padding-top: clamp(44vh, 50vh, 54vh) !important;
  padding-bottom: clamp(3rem, 5vh, 5rem) !important;
  min-height: 80vh !important;
  overflow: visible !important;
}

/* floating character items on right side */
.about__bg-bg img { display: none; }

/* Rig container: full width, slightly shorter so images don't dwarf the section */
.about__bg-image {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 66vh !important;
  aspect-ratio: unset !important;
  overflow: visible !important;
  pointer-events: none;
  transform: none !important;
  will-change: auto !important;
}
.about__bg-image::after { display: none !important; }
.about-rig {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  will-change: transform, opacity;
  transform-origin: bottom right;
}
/* Editor panel – left side, scaled down ~15% */
.about-rig__panel--l {
  position: absolute;
  left: 2%;
  top: 40px;
  width: 48%;
  object-fit: contain;
  z-index: 1;
  will-change: transform;
  filter: drop-shadow(-10px 16px 28px rgba(0,0,0,0.55));
  opacity: 0.95;
}
/* Character – centred: left = 50% − width/2 = 50% − 13% = 37% */
.about-rig__char {
  position: absolute;
  left: 37%;
  top: 10px;
  width: 26%;
  object-fit: contain;
  z-index: 3;
  will-change: transform;
  filter:
    drop-shadow(0 24px 40px rgba(0,0,0,0.65))
    drop-shadow(0 0 28px rgba(196,113,237,0.45))
    drop-shadow(0 0 10px rgba(196,113,237,0.25));
}
/* Pink panel – starts where girl ends: 37% + 26% = 63% */
.about-rig__panel--r {
  position: absolute;
  left: 63%;
  top: 60px;
  width: 24%;
  object-fit: contain;
  z-index: 2;
  will-change: transform;
  filter: drop-shadow(10px 14px 26px rgba(0,0,0,0.5));
  opacity: 0.93;
}

/* Text container: kill compiled flex-end + margin-right, centre everything */
.about__container {
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  padding-left: clamp(1rem, 4vw, 3rem) !important;
  padding-right: clamp(1rem, 4vw, 3rem) !important;
  margin-right: 0 !important;
}
/* compiled CSS has 5 separate width/margin-right rules — override all */
.about__content,
.about__content[class] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.about__content .sm-title-img {
  margin-left: auto !important;
  margin-right: auto !important;
}

.about__title img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* original parallax title is hidden — no need to z-index it */
.about__title { display: none !important; }

/* text box — rounder, chunkier; reset negative pull-up from compiled CSS */
.about__body-box {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  transform: none !important;
  background: linear-gradient(160deg, #2d1655, #1a0a3e) !important;
  border: 2px solid rgba(124,58,237,0.45) !important;
  border-radius: 24px !important;
  box-shadow:
    0 4px 0 0 rgba(60,20,120,0.7),
    0 20px 60px rgba(13,5,32,0.7),
    0 0 80px rgba(124,58,237,0.1) inset !important;
}
.about__body {
  background-color: var(--purple-dark) !important;
  border-color: var(--border-purple) !important;
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.5) inset,
    0 0 20px 4px rgba(124,58,237,0.1) inset !important;
}
.about__body-top span {
  color: var(--purple-glow) !important;
  font-family: 'Space Grotesk', monospace !important;
}
.about__body-top:after {
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent) !important;
  height: 1px !important;
}
.about__body-text p {
  color: var(--text-light) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem) !important;
  line-height: 1.7 !important;
  text-align: center !important;
}
.about__body-text p:last-child {
  color: var(--purple-glow) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem) !important;
  letter-spacing: 0.06em;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* social & button */
.about__social-item {
  border-color: var(--border-purple) !important;
  background-color: var(--card-bg) !important;
}
.about__social-item svg path { fill: var(--purple-glow) !important; }
.about__social-item:hover { border-color: var(--purple-glow) !important; }

.about__button {
  background: linear-gradient(135deg, var(--purple-bright), var(--pink)) !important;
  border: none !important;
  box-shadow: 0 4px 24px rgba(124,58,237,0.45) !important;
}
.about__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(196,113,237,0.6) !important;
}
.about__button span {
  color: #fff !important;
  font-family: 'Nunito', sans-serif !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

/* ════════════════════════════
   HOW IT WORKS  →  GAMEPLAY LOOP
════════════════════════════ */
.how { background: #ad46f4 !important; }

/* floating planet-like orb bg */
.how__bg-bg {
  animation: planetFly 3s ease-in-out -0.6s infinite !important;
}
.how__bg-bg img { display: none; }
.how__bg-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(124,58,237,0.18) 0%,
    rgba(44,20,80,0.08) 60%,
    transparent 100%);
  border-radius: 50%;
}

/* simple vertical bob – aliensFly has translate(4%) translateY(30%) that pushes off-screen */
/* "aliens" → solmates character group, centred, right below the section title */
.how__bg-aliens {
  aspect-ratio: unset !important;
  /* true viewport width so image fills edge-to-edge regardless of parent constraints */
  width: 100vw !important;
  max-width: none !important;
  left: 50% !important;
  right: auto !important;
  /* anchor from TOP so character sits right below the How to Play title */
  top: clamp(4rem, 8vw, 6rem) !important;
  bottom: auto !important;
  animation: none !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  will-change: transform, opacity;
}
/* fade bottom edge to dissolve into FAQ section bg */
.how__bg-aliens::after {
  display: none !important;
}
.how__bg-aliens img {
  /* compiled CSS sets position:absolute + translate(25%) translateY(-10%) scale(.8)
     which shrinks and offsets the image — reset everything */
  position: relative !important;
  top: auto !important; left: auto !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  transform: none !important;   /* cancel compiled translate+scale */
  animation: none !important;
  transform-origin: bottom center;
  display: block !important;
  z-index: 1;
}

/* ── Shared 3D title images (About, Showcase, Your World, FAQ, Enter the World) ── */
.sm-title-img {
  display: block;
  max-width: 100%;
  height: auto;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  margin-bottom: 0.6rem;
}
/* size overrides per section */
.about__content        .sm-title-img { width: clamp(260px, 50vw, 580px); }
.char-showcase__header .sm-title-img { width: clamp(260px, 55vw, 660px); margin: 0 auto 0.8rem; }
.sm-world__text        .sm-title-img { width: clamp(200px, 35vw, 420px); margin-bottom: 1.8rem; }
.sm-faq__header        .sm-title-img { width: clamp(260px, 45vw, 560px); margin: 0 auto 1.2rem; }
/* Enter the World: dark bg screened against bright character bg = white; use normal blending */
.join__title           .sm-title-img { width: clamp(260px, 55vw, 700px); margin: 0 auto 0.6rem;
                                        mix-blend-mode: normal; }

/* how title – hide CSS-generated text, show image instead */
.how__title-main-dark img { display: none; }
.how__title-main-dark::after { content: none !important; }

.how__title-img {
  display: block;
  width: clamp(260px, 45vw, 560px);
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0;
  mix-blend-mode: screen;   /* dark bg pixels vanish, vivid text stays */
  will-change: transform, opacity;
}

/* step cards — chunkier, more rounded, fomoman-style */
.how__item {
  background: linear-gradient(160deg, #2d1655, #1a0a3e) !important;
  border-color: rgba(124,58,237,0.5) !important;
  border-width: 2px !important;
  border-radius: 22px !important;
  box-shadow: 0 4px 0 0 rgba(60,20,120,0.8), 0 8px 32px rgba(0,0,0,0.4) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.how__item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 0 0 rgba(60,20,120,0.8), 0 16px 48px rgba(124,58,237,0.25) !important;
}
.how__item-body {
  background: var(--purple-dark) !important;
  border-color: rgba(124,58,237,0.3) !important;
  border-width: 2px !important;
  border-radius: 18px !important;
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.4) inset,
    0 0 24px 4px rgba(124,58,237,0.1) inset !important;
}
.how__item-body-bg img { display: none; }
.how__item-body-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%,
    rgba(124,58,237,0.12) 0%, transparent 70%);
}

.how__item-body-step {
  color: var(--purple-glow) !important;
  font-family: 'Nunito', sans-serif !important;
  font-style: normal !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em;
}
.how__item-body-step:after {
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent) !important;
}

.how__item-body-info-title {
  color: var(--text-light) !important;
  font-family: 'Nunito', sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

.how__item-body-info-text {
  color: var(--text-muted) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  line-height: 1.6 !important;
}

.how__item-body-info-bottom span {
  color: var(--purple-glow) !important;
  font-family: 'Space Grotesk', monospace !important;
  opacity: 0.6;
}

/* how chars: JS drives both opacity and transform, start invisible */
.how__bg-aliens {
  opacity: 0;
}

/* push the cards below the character image so they can never overlap it */
.how .how__items {
  margin-top: clamp(20rem, 36vw, 28rem) !important;
}
/* modest bottom breathing room */
.how {
  padding-bottom: clamp(4rem, 6vw, 6rem) !important;
}

/* ── Waitlist standalone block (below phase boxes) ── */
.how__waitlist {
  display: flex;
  justify-content: center;
  /* Large gap so chars have room to animate in and out before waitlist arrives */
  margin-top: clamp(7rem, 14vw, 11rem);
  padding: 0 1rem;
}
.how__waitlist-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.8rem 2.8rem;
  background: linear-gradient(135deg, #2d1655, #1a0a3e);
  border: 2px solid rgba(124,58,237,0.6);
  border-radius: 22px;
  box-shadow:
    0 4px 0 0 rgba(60,20,120,0.7),
    0 12px 48px rgba(0,0,0,0.45),
    0 0 60px rgba(124,58,237,0.12) inset;
  min-width: clamp(280px, 40vw, 480px);
  text-align: center;
}
.how__waitlist-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.how__waitlist-value {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 800;
  color: var(--purple-glow);
}
.how__waitlist-copy {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.4rem !important;
  background: rgba(124,58,237,0.18) !important;
  border: 1px solid rgba(124,58,237,0.5) !important;
  border-radius: 8px !important;
  color: var(--purple-glow);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.how__waitlist-copy:hover {
  background: rgba(124,58,237,0.32) !important;
  border-color: var(--purple-glow) !important;
}
.how__waitlist-copy svg path { fill: var(--purple-glow); }

/* CA / Discord box */
.how__item.ca .how__item-body {
  background: linear-gradient(135deg, #2d1655, #1a0a3e) !important;
  border-color: var(--purple-bright) !important;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.3),
    0 0 40px rgba(124,58,237,0.15) inset !important;
}
.how__item-body-ca { flex-direction: column; align-items: center !important; gap: 1rem; }
.how__item-body-ca-text {
  color: var(--purple-glow) !important;
  font-family: 'Space Grotesk', monospace !important;
  justify-content: center !important;
  text-align: center;
}
.how__item-body-ca-text span { display: block !important; }
.how__item-body-ca-text span:first-child {
  color: var(--text-muted) !important;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.how__item-body-ca-copy-button svg path { fill: var(--purple-glow) !important; }
.how__item-body-ca-copy-button:after { color: var(--purple-glow) !important; }

/* ════════════════════════════
   JOIN  →  "Enter the World"
════════════════════════════ */
.join {
  background: transparent !important;
}
.join__bg img { display: none; }
.join__bg::after { display: none !important; }

.join__title img { filter: none !important; opacity: 1 !important; mix-blend-mode: normal !important; }

.join__button { display: none !important; } /* replaced by inline button in HTML */
.join__social-item img { display: none; }
.join__social-item {
  width: clamp(2.8rem, 4vw, 3.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--border-purple);
  background: var(--card-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.join__social-item:hover { border-color: var(--purple-glow); transform: translateY(-3px); }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
  background: var(--purple-deep) !important;
  border-top: 1px solid rgba(124,58,237,0.18) !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

/* kill the old two-text layout */
.footer__container { display: none !important; }
.footer__text { display: none !important; }

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 6vw, 7.5rem) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── footer top: logo / nav / socials ── */
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.footer__logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer__logo:hover img { opacity: 1; }

.footer__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 0.2s;
  padding: 0.2rem 0.4rem;
}
.footer__nav-link:hover { color: var(--text-light); }
.footer__nav-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(196,113,237,0.4);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.footer__social-item {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(124,58,237,0.25);
  background: rgba(124,58,237,0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.footer__social-item:hover {
  border-color: var(--purple-glow);
  background: rgba(124,58,237,0.18);
  transform: translateY(-2px);
}
.footer__social-item svg {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
  transition: fill 0.2s;
}
.footer__social-item:hover svg { fill: var(--text-light); }

/* ── divider ── */
.footer__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124,58,237,0.25) 20%,
    rgba(196,113,237,0.3) 50%,
    rgba(124,58,237,0.25) 80%,
    transparent 100%);
}

/* ── footer bottom: tagline + copyright ── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
}
.footer__tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: rgba(184,158,232,0.5);
  font-style: italic;
  letter-spacing: 0.02em;
}
.footer__copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: rgba(184,158,232,0.45);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

@media (max-width: 48em) {
  .footer__top { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* ══════════════════════════════════════════════
   COMPREHENSIVE MOBILE LAYOUT  (≤ 768px / 48em)
══════════════════════════════════════════════ */
@media (max-width: 48em) {

  /* ── HERO ── */
  .hero__container {
    padding-top: max(5rem, 7vh) !important;
    padding-bottom: max(6rem, 10vh) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hero__content {
    row-gap: clamp(1.4rem, 4vh, 2rem) !important;
    max-width: 100% !important;
    padding: 0 1rem;
  }
  .hero__image {
    width: clamp(180px, 60vw, 300px) !important;
  }
  .hero__tagline {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem) !important;
    line-height: 1.55 !important;
    padding: 0;
  }
  .onchain-badge {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.9rem !important;
  }
  .hero__button {
    padding: 0.75rem 1.8rem !important;
    font-size: 1rem !important;
  }
  .hero__social-item {
    width: clamp(2.4rem, 8vw, 3rem) !important;
  }
  /* scroll hint pushed well below the buttons on mobile */
  .hero__scroll-hint {
    margin-top: clamp(3rem, 8vh, 5rem) !important;
  }
  /* side item art — smaller on mobile so they don't crowd the text */
  .hero__float {
    max-width: clamp(120px, 28vw, 200px) !important;
    top: -8% !important;
    height: 108% !important;
    opacity: 0.7;
  }

  /* ── ABOUT SECTION ──
     Goal: title image (1) → rig centred (2) → text card (3).
     The rig lives in .about__bg which precedes .about__container in the DOM,
     but we need it AFTER the title. We turn .about into a flex column, use
     display:contents on the container/content wrappers so their children join
     the flex context directly, then reorder with CSS order. ── */
  .about {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* bg block becomes an in-flow centred rig frame */
  .about__bg {
    order: 1 !important;
    position: relative !important;
    width: 88% !important;
    height: 62vw !important;
    min-height: 240px !important;
    max-height: 380px !important;
    overflow: visible !important;
    margin: 1.2rem 0 0 !important;
    flex-shrink: 0;
    left: auto !important; top: auto !important;
    transform: none !important;
  }
  .about__bg-bg { display: none !important; }
  .about__bg-image {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  /* centre the three rig elements within the mobile frame */
  .about-rig__panel--l {
    top: 10px !important;
    left: 2% !important;
    width: 48% !important;
  }
  .about-rig__char {
    left: 30% !important;
    top: 0 !important;
    width: 38% !important;
  }
  .about-rig__panel--r {
    left: 62% !important;
    top: 14px !important;
    width: 30% !important;
  }

  /* container & content become transparent flex wrappers */
  .about__container {
    display: contents !important;
  }
  .about__content {
    display: contents !important;
  }

  /* title image: second — sits below the rig */
  .about__content > .sm-title-img {
    order: 2 !important;
    display: block !important;
    width: clamp(240px, 80vw, 380px) !important;
    margin: 1.5rem auto 2rem !important;
    align-self: center;
  }

  /* text card: last in visual stack (order 3) */
  .about__body-box {
    order: 3 !important;
    width: calc(100% - 2rem) !important;
    margin: 0 1rem 2.5rem !important;
  }

  /* keep the hidden title placeholder hidden */
  .about__title { display: none !important; }

  /* ── HOW TO PLAY ── */
  .how {
    padding-bottom: clamp(3rem, 6vw, 5rem) !important;
  }
  .how__bg-aliens {
    top: clamp(14rem, 78vw, 24rem) !important;
    bottom: auto !important;
    width: 140vw !important;
    left: 50% !important;
  }
  .how__title-img {
    width: clamp(240px, 82vw, 420px) !important;
    max-width: 88vw !important;
  }
  /* step cards: pushed below the character image (char ~423px at 390px wide) */
  .how .how__items {
    margin-top: clamp(16rem, 115vw, 30rem) !important;
  }
  .how__items {
    gap: 1.2rem !important;
  }
  .how__item-box {
    width: 100% !important;
  }

  /* ── CHAR SHOWCASE ── */
  .char-showcase__scene {
    width: min(100%, 340px) !important;
  }
  .char-showcase__header .loop-badge {
    margin-bottom: 1.4rem !important;
  }
  .char-showcase__header .sm-title-img {
    width: clamp(260px, 86vw, 440px) !important;
    margin: 0 auto 1.6rem !important;
  }
  .char-showcase__sub {
    padding: 0 1rem;
    margin-top: 0 !important;
  }

  /* ── WORLD PREVIEW ── */
  .sm-world {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) !important;
  }
  .sm-world__inner {
    gap: 2rem !important;
  }
  .sm-world__text .sm-title-img {
    width: clamp(200px, 76vw, 360px) !important;
  }
  .sm-world__subtitle {
    margin-bottom: 1.6rem !important;
  }
  .sm-world__body {
    margin-bottom: 2rem !important;
  }
  .sm-world__features {
    gap: 1.1rem !important;
    margin-bottom: 2rem !important;
  }

  /* ── FAQ ── */
  .sm-faq {
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) !important;
    margin-top: 0 !important;
  }
  .sm-faq__q {
    padding: 1rem 1.2rem !important;
  }
  .sm-faq__header .sm-title-img {
    width: clamp(260px, 86vw, 440px) !important;
    margin: 0 auto 1rem !important;
  }

  /* ── JOIN / ENTER THE WORLD ── */
  .join {
    min-height: unset !important;
    aspect-ratio: unset !important;
    height: 100svh !important;
  }
  .join__group-img {
    width: 100% !important;
    left: 0 !important;
    object-fit: cover !important;
    object-position: 30% center !important;
  }
  /* compiled CSS: justify-content:flex-end + margin-right push content right — override */
  .join__container {
    justify-content: center !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .join__content {
    align-items: center !important;
    text-align: center !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .join__title {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .join__title .sm-title-img {
    width: clamp(260px, 88vw, 440px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .join__cta-btn {
    padding: 0.85rem 2.2rem !important;
    font-size: 1rem !important;
  }

  /* ── SECTION TITLE IMAGES — global floor ── */
  .sm-title-img {
    max-width: 90vw !important;
  }

  /* ── GENERAL SPACING ── */
  .about-how-join::before {
    height: 100px !important;
  }
  .loop-badge {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.9rem !important;
  }
}

/* ════════════════════════════
   CUSTOM COMPONENTS
════════════════════════════ */

/* Social icons SVG inline */
.social-icon-x,
.social-icon-tg,
.social-icon-dc {
  width: 60%; height: auto;
  fill: var(--purple-glow);
}

/* Scroll-down indicator */
.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: scrollBob 2s ease-in-out infinite;
}
.hero__scroll-hint span:last-child { font-size: 1.2rem; }

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* step arrow connectors */
.how__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-glow);
  font-size: 1.4rem;
  opacity: 0.5;
  margin: -0.2rem auto;
}

/* gameplay loop badge — fomoman-inspired sticker label */
.loop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  background: rgba(124,58,237,0.18);
  border: 2px solid rgba(196,113,237,0.55);
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-glow);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(124,58,237,0.18);
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* FAQ badge sits on bright #ad46f4 — needs white/dark contrast */
.sm-faq .loop-badge {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.7) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
}
.loop-badge:hover {
  border-color: rgba(196,113,237,0.9);
  box-shadow: 0 2px 20px rgba(196,113,237,0.3);
}

/* on-chain badge */
.onchain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(236,72,153,0.2));
  border: 1px solid rgba(196,113,237,0.4);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
}
.onchain-badge::before {
  content: '⬡';
  font-size: 1rem;
  color: var(--gold);
}

/* join CTA button */
.join__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.8rem;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 30px rgba(124,58,237,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.join__cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 44px rgba(196,113,237,0.7);
}

/* ════════════════════════════════════════
   CHARACTER SHOWCASE SECTION
════════════════════════════════════════ */

.char-showcase {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--purple-deep) 0%,
    #1a0840 40%,
    var(--purple-deep) 100%);
  /* JS controls opacity via el.style.opacity — start hidden */
  opacity: 0;
  will-change: opacity;
}

/* radial purple glow behind the whole section */
.char-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%,
      rgba(124,58,237,0.22) 0%,
      transparent 70%);
  pointer-events: none;
}

/* ── header text ── */
.char-showcase__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding: 0 1rem;
}

.char-showcase__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  color: #fff;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}
.char-showcase__title span {
  background: linear-gradient(135deg, #c471ed 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.char-showcase__sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── scene wrapper ── */
.char-showcase__scene-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(1rem, 3vw, 3rem);
}

.char-showcase__scene {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1 / 1.08;
}

/* ── radial glow behind the character ── */
.char-showcase__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(124,58,237,0.45) 0%,
    rgba(196,113,237,0.2) 40%,
    transparent 70%);
  filter: blur(32px);
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.12); }
}

/* ── props layer — ONE unit, JS drives translateY parallax ── */
.char-showcase__props {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: transform;
  /* transform owned by JS — do NOT add transitions here */
}
.char-showcase__props img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  /* entrance: gentle zoom-settle (scale only — wrapper translateY is JS's) */
  transform: scale(1.08);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.char-showcase--visible .char-showcase__props img {
  transform: scale(1);
}

/* scroll-active: character bob runs while scrolling */
.char-showcase--scrolling .char-showcase__character img {
  animation-play-state: running !important;
}

/* ── character layer ── */
.char-showcase__character {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  /* entrance: slide up — opacity owned by JS at section level */
  transform: translateY(30px);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.char-showcase--visible .char-showcase__character {
  transform: translateY(0);
}

.char-showcase__character img {
  height: 95%;
  width: auto;
  object-fit: contain;
  animation: charBob 5s ease-in-out infinite;
  animation-play-state: paused;
  filter:
    drop-shadow(0 10px 40px rgba(124,58,237,0.55))
    drop-shadow(0 0 80px rgba(196,113,237,0.2));
}
@keyframes charBob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ── sparkle particles ── */
.char-spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
}
.char-spark--a {
  width: 6px; height: 6px;
  background: #f8c471;
  top: 12%; left: 48%;
  box-shadow: 0 0 8px 2px #f8c471;
  animation: sparkle 3.2s ease-in-out infinite;
}
.char-spark--b {
  width: 5px; height: 5px;
  background: #c471ed;
  top: 35%; left: 14%;
  box-shadow: 0 0 8px 2px #c471ed;
  animation: sparkle 2.8s ease-in-out infinite 0.6s;
}
.char-spark--c {
  width: 4px; height: 4px;
  background: #ec4899;
  top: 20%; left: 78%;
  box-shadow: 0 0 6px 2px #ec4899;
  animation: sparkle 3.5s ease-in-out infinite 1.1s;
}
.char-spark--d {
  width: 5px; height: 5px;
  background: #7c3aed;
  top: 72%; left: 18%;
  box-shadow: 0 0 8px 2px #7c3aed;
  animation: sparkle 4.0s ease-in-out infinite 0.3s;
}
.char-spark--e {
  width: 4px; height: 4px;
  background: #f8c471;
  top: 68%; left: 80%;
  box-shadow: 0 0 6px 2px #f8c471;
  animation: sparkle 3.0s ease-in-out infinite 1.7s;
}
@keyframes sparkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50%       { opacity: 1;    transform: scale(1.4); }
}

/* ── mobile ── */
@media (max-width: 48em) {
  .char-showcase__scene { width: min(100%, 380px); }
  .char-showcase__character img { height: 90%; }
}

/* ── desktop-only line break helper ── */
.desktop-only { display: none; }
@media (min-width: 48em) { .desktop-only { display: inline; } }

/* ── Header: slide in faster, no 3s wait ── */
[data-fls-loaded] .header {
  animation: toBottom 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards !important;
}

/* ── Mobile tweaks ── */
@media (max-width: 48em) {
  .hero__tagline { font-size: 1rem; padding: 0 1rem; }
  .hero__chars { display: block; }
  .how__title-main-dark::after { font-size: clamp(1.8rem, 8vw, 3rem); }
  .menu__body { background-color: var(--purple-deep) !important; }
  .menu__link { color: var(--text-light) !important; font-size: 2rem !important; }
  .footer__nav { flex-wrap: wrap; gap: 0.3rem; }
}

/* ── Large screen ── */
@media (min-width: 120em) {
  .hero__tagline { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════
   WORLD PREVIEW SECTION
══════════════════════════════════════════════ */
.sm-world {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 6vw, 7.5rem);
  background: linear-gradient(180deg, var(--purple-dark) 0%, var(--purple-deep) 100%);
  overflow: hidden;
  will-change: opacity;
}
.sm-world::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  top: -100px; right: -150px;
  pointer-events: none;
}
.sm-world__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
  transform-origin: center center;
}
.sm-world__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sm-world__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.0;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 20%, #c471ed 60%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sm-world__subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sm-world__body {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 480px;
  text-align: center;
}
.sm-world__features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sm-world__features li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}
/* vis / image area */
.sm-world__vis {
  position: relative;
}
/* ── World carousel ── */
.world-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}
.world-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.world-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.world-carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.world-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.world-carousel__dot--active {
  background: #c471ed;
  transform: scale(1.35);
}

.sm-world__img-wrap {
  position: relative;
  border-radius: 24px;
  border: 2px solid rgba(124,58,237,0.45);
  background: linear-gradient(160deg, #2d1655, #1a0a3e);
  box-shadow: 0 4px 0 rgba(40,10,90,0.8), 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(124,58,237,0.12) inset;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.sm-world__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.55;
}
.sm-world__ph-icon { font-size: 3.5rem; line-height: 1; }
.sm-world__ph-text {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
}
@media (max-width: 56em) {
  .sm-world__inner { grid-template-columns: 1fr; }
  .sm-world__text { align-items: center; text-align: center; }
  .sm-world__body { text-align: center; }
  .sm-world__features { align-items: center; }
}

/* ══════════════════════════════════════════════
   GALLERY / SCREENSHOTS SECTION
══════════════════════════════════════════════ */
.sm-gallery {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 6vw, 7.5rem);
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple-dark) 50%, var(--purple-deep) 100%);
  will-change: opacity;
  overflow: hidden;
}
.sm-gallery__inner { max-width: 1200px; margin: 0 auto; transform-origin: center center; }
.sm-gallery__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sm-gallery__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.sm-gallery__title span {
  background: linear-gradient(135deg, #c471ed 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sm-gallery__sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--text-muted);
  max-width: 480px;
}
/* bento-style grid */
.sm-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.sm-gallery__card {
  position: relative;
  border-radius: 20px;
  border: 2px solid rgba(124,58,237,0.35);
  background: linear-gradient(160deg, #2d1655, #1a0a3e);
  box-shadow: 0 4px 0 rgba(40,10,90,0.7), 0 16px 40px rgba(0,0,0,0.4);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1),
              border-color 0.2s, box-shadow 0.2s;
}
.sm-gallery__card--tall {
  grid-column: 1;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}
.sm-gallery__card:hover {
  border-color: rgba(196,113,237,0.65);
  box-shadow: 0 8px 0 rgba(40,10,90,0.7), 0 24px 60px rgba(124,58,237,0.2);
  transform: translateY(-4px) !important;
}
.sm-gallery__card.sm-card-in {
  opacity: 1;
  transform: translateY(0);
}
.sm-gallery__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.45;
  pointer-events: none;
}
.sm-gallery__ph span { font-size: 2.5rem; line-height: 1; }
.sm-gallery__ph p {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 56em) {
  .sm-gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: unset; }
  .sm-gallery__card--tall { grid-column: auto; grid-row: auto; }
}
@media (max-width: 36em) {
  .sm-gallery__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════════ */
.sm-faq {
  position: relative;
  margin-top: 0;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 6vw, 7.5rem);
  background: #ad46f4 !important;
  overflow: hidden;
}
/* ::after removed — FAQ's own black-top gradient handles the dissolve */
.sm-faq::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,113,237,0.1) 0%, transparent 65%);
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.sm-faq__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* sit above ::before orb glow */
}
.sm-faq__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.sm-faq__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.sm-faq__title span {
  background: linear-gradient(135deg, #c471ed 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sm-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sm-faq__item {
  border-radius: 18px;
  border: 2px solid rgba(124,58,237,0.35);
  background: linear-gradient(160deg, rgba(45,22,85,0.9), rgba(26,10,62,0.9));
  box-shadow: 0 3px 0 rgba(40,10,90,0.6), 0 8px 32px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sm-faq__item.open {
  border-color: rgba(196,113,237,0.6);
  box-shadow: 0 3px 0 rgba(40,10,90,0.6), 0 8px 40px rgba(124,58,237,0.18);
}
.sm-faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
}
.sm-faq__q span:first-child {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.3;
  transition: color 0.2s;
}
.sm-faq__item.open .sm-faq__q span:first-child { color: #fff; }
.sm-faq__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(196,113,237,0.45);
  background: rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--purple-glow);
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
}
.sm-faq__item.open .sm-faq__icon {
  background: rgba(196,113,237,0.25);
  border-color: var(--purple-glow);
  transform: rotate(180deg);
}
.sm-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.sm-faq__a-inner {
  padding: 0 1.5rem 1.4rem;
  border-top: 1px solid rgba(124,58,237,0.2);
  padding-top: 1rem;
  margin-top: 0;
}
.sm-faq__a p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ══════════════════════════════════════════════
   GROUP IMAGE — inside join section background
══════════════════════════════════════════════ */
.join__group-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  opacity: 0;                   /* JS drives opacity */
  will-change: transform, opacity;
  z-index: 1;
}
.join { overflow: hidden !important; }

/* no gradient overlay on join — image is the full bg */
.join::after { display: none !important; }

/* ensure content stays above the image */
/* push all content into the dark-sky upper zone of the image */
.join {
  align-items: flex-start !important;
  padding-top: clamp(4rem, 8vh, 7rem) !important;
}
.join__container {
  position: relative;
  z-index: 3 !important;
}

/* ── Intro boot: hide hero elements + navbar before first paint (removed by intro JS at flash) ── */
.intro-boot .header { transform: translateY(-100%) !important; }
.intro-boot .hero__image,
.intro-boot .hero__float--left,
.intro-boot .hero__float--right,
.intro-boot .hero__tagline,
.intro-boot .onchain-badge,
.intro-boot .hero__actions,
.intro-boot .hero__scroll-hint { opacity: 0 !important; animation: none !important; }
/* neutralize template's own header drop animation — intro JS drives it now */
[data-fls-loaded] .header { animation: none !important; }
