/* Each hero layout has its own introduction. */
.home-page .hero .hero-mobile-intro{display:none}
@media (max-width:1023.98px){
  body.home-page #page{--home-gap:28px}
  body.home-page #page main>section{scroll-margin-top:76px}
  body.home-page #page main :is(#locations,#game-rewards){margin-bottom:var(--home-gap)}
  body.home-page #page main :is(#locations,#game-rewards) h2{font-size:26px;line-height:1.18;letter-spacing:-.7px}

  /* A single editorial scene: art and left-aligned text share the same light. */
  body.home-page #page .hero{padding-top:0;padding-bottom:24px}
  body.home-page #page .hero:before{background:radial-gradient(ellipse at 14% 25%,#54248745,transparent 55%),radial-gradient(ellipse at 90% 40%,#263c752e,transparent 60%)}
  body.home-page #page .hero-art-mobile{position:relative;margin:0 -16px;mask-image:none}
  body.home-page #page .hero-art-mobile .hero-scene{
    height:calc(76.92vw + 34px);aspect-ratio:auto;
    mask-image:linear-gradient(to bottom,#000 55%,transparent 96%);
    background:#100b29 var(--scene-backdrop, none) left top / 215% auto no-repeat;
  }
  body.home-page #page .hero-art-mobile .hero-scene img{width:220%;left:-96%;top:34px;transform:none;mask-image:linear-gradient(to bottom,transparent,#000 12%)}
  body.home-page #page .hero-art-mobile .scene-caption{
    display:inline-flex;top:auto;bottom:max(76px,18%);right:5.6%;left:auto;
    gap:.42rem;padding:.27rem .68rem;border-color:#c390ff;
    background:linear-gradient(110deg,#39205bdc,#572f70c9);
    color:#fff2ff;font-size:.8125rem;font-weight:400;line-height:1.15;
    box-shadow:inset 0 0 .5rem #e9afff20,0 0 .8rem #9b35f950;pointer-events:none;
  }
  body.home-page #page .hero-copy{padding:0 4px;margin-top:-72px;text-align:left;position:relative}
  body.home-page #page .hero .hero-copy h1{max-width:310px;font-size:clamp(26px,7.2vw,30px);line-height:1.16;letter-spacing:-.8px;margin:0 0 15px;text-wrap:initial;text-shadow:0 2px 18px #100b2a}
  body.home-page #page .hero-copy p{font-size:16px;line-height:1.55;max-width:340px;margin:0;color:#cfc7e1;text-wrap:pretty}
  .home-page .hero .hero-desktop-intro{display:none}
  body.home-page #page .hero-copy .hero-mobile-intro{display:block;text-wrap:balance}
  body.home-page #page .hero-buttons{margin-top:20px;gap:10px;grid-template-columns:1.45fr 1fr}
  body.home-page #page .hero-buttons .button{min-height:48px;font-size:14px;box-shadow:inset 0 1px 4px #e1afff50,0 5px 22px #8648cd20}
  body.home-page #page .hero .platforms{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px;padding-top:12px;row-gap:0}
  body.home-page #page .hero .platforms a{min-height:36px;gap:4px}
  body.home-page #page .hero .platforms a+a{border-left:1px solid #b99dde26}
  body.home-page #page .hero .platforms span{font-size:12px}
  body.home-page #page .hero .platforms svg{width:14px;height:14px}

  /* Two complete worlds and a glimpse of the next one invite a horizontal swipe. */
  body.home-page #locations.galaxy-locations{padding:16px 0 10px;border-radius:24px;overflow:hidden}
  body.home-page .galaxy-heading{display:block;margin:0 20px 6px;position:relative}
  body.home-page #page main #locations .galaxy-heading h2{font-size:24px;max-width:100%;line-height:1.15}
  body.home-page #locations .galaxy-heading>.galaxy-all,
  body.home-page #locations .galaxy-heading p,
  body.home-page #locations .galaxy-all span{display:none}
  body.home-page .mobile-galaxy-foot{display:flex;justify-content:center;margin:11px 20px 0}
  body.home-page #locations .galaxy-all{
    min-width:128px;min-height:44px;margin:0;padding:7px 16px;border-radius:24px;
    border:1px solid #a182cc7a;background:#37264e;color:#f4e7ff;
    font-size:13px;box-shadow:inset 0 1px 0 #e4ccff12;
  }
  body.home-page #locations .galaxy-all:is(:active,:focus-visible){background:#49305f;border-color:#c69be9}
  body.home-page #locations .galaxy-row{display:flex;align-items:stretch;gap:2px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:12px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#9c72d3 #ffffff0b;padding:0 12px 5px;width:100%;-webkit-overflow-scrolling:touch}
  body.home-page .galaxy-row:before{left:12px;right:auto;width:630px;top:52%;height:24px;transform:rotate(-2deg);opacity:.65;border-color:#c293f680}
  body.home-page #locations .galaxy-card{flex:0 0 46%;width:46%;min-width:138px;grid-column:auto;scroll-snap-align:start;padding-bottom:2px}
  body.home-page #locations .galaxy-card:last-child{width:46%;justify-self:auto}
  body.home-page .galaxy-name{font-size:14px;line-height:1.25;gap:5px;white-space:normal;min-height:25px;margin-top:-5px}
  body.home-page .galaxy-flag{width:17px;height:17px}
  body.home-page .galaxy-tagline{font-size:12px;line-height:1.4;margin-top:2px;padding:0 3px;min-height:17px}
  body.home-page #features.feature-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;margin:0 auto 28px;border-radius:20px}
  body.home-page #features>div{display:flex;flex-direction:column;gap:7px;text-align:center;justify-content:center;min-height:102px;padding:10px 3px;border:1px solid #b59ae91c;border-radius:14px;background:linear-gradient(145deg,#ad83e414,#7774ce05)}
  body.home-page #features>div:nth-child(3n){background:linear-gradient(145deg,#89b9ea16,#7774ce05)}
  body.home-page #features b{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:radial-gradient(ellipse,#b98be438,transparent 75%);font-size:26px;line-height:1;color:#dcc2ff}
  body.home-page #features b svg{width:22px;height:22px}
  body.home-page #features span{font-size:12px;line-height:1.4}

  /* Mini-games keep the playful desktop characters and a clear destination. */
  body.home-page #game-rewards{display:block;padding:18px 20px 14px;min-height:0;background:radial-gradient(ellipse at 90% 30%,#764ac34d,transparent 65%),linear-gradient(135deg,#27173e,#19112c)}
  body.home-page #game-rewards .game-content{padding:0;position:relative;z-index:3}
  body.home-page #game-rewards .game-kicker{font-size:10px;letter-spacing:1px;margin-bottom:8px;gap:7px}
  body.home-page #page main #game-rewards h2{max-width:none;font-size:24px}
  body.home-page #game-rewards .game-content>p{display:none}
  body.home-page #game-rewards .game-content>p br{display:none}
  body.home-page .mobile-game-scene{height:154px;position:relative;margin:6px -16px 2px}
  body.home-page #game-rewards .game-mobile-badge{display:flex;justify-content:center;margin-top:6px;min-height:46px;font-size:14px;padding:10px 16px;background:linear-gradient(115deg,#9d63d64d,#69449d3d);border-color:#bf90e880}
  body.home-page #game-rewards .game-mascot{position:absolute;left:0;bottom:0;width:148px;height:154px;margin:0;z-index:2}
  body.home-page #game-rewards .game-rewards-art{right:-18px;bottom:0;top:auto;width:211px;height:154px;transform:none}
  body.home-page #game-rewards .game-atmosphere{height:230px;bottom:0}
  body.home-page #game-rewards .game-atmosphere:after{border-bottom:0}


}
@media (max-width:359px){
  body.home-page #page .hero .platforms span{font-size:11px}
  body.home-page #page .hero .platforms svg{width:13px;height:13px}
  body.home-page #page .hero .platforms a{gap:3px}
  body.home-page #page .hero .hero-copy h1{font-size:26px}
  body.home-page #game-rewards .game-mascot{width:136px;left:0}
  body.home-page #game-rewards .game-rewards-art{width:186px;right:-15px}
}
