/* Homepage hero: the Wax client's login backdrop (WaxLoginBackdrop.jsx + wax-shell.css `.wlb-*`, owner 2026-10-10),
   same layers, art and numbers, made light for the web:
   - the scene markup (every sprite's first lap) comes from landing_hero.go; home-hero.js moves each cloud and rock
     left across the screen with one compositor animation per lap, then brings it back on the right as another
     sprite; stars and the nebula are strips sliding left here, in CSS (their cycle is set from the width);
   - the client's per-frame filters (cloud blurs and tones, rock tints, the giant rock's blur, the front banks' glow)
     are baked into the images (tools/web/build_hero_assets.py); no mix-blend-mode, no animated filter;
   - prefers-reduced-motion: a still scene. `.is-paused` (tab hidden, hero scrolled away) stops every animation.
   --u scales the px sizes of the client (clouds, rocks) to the screen before the script takes over. */

.home-main .portal-main.home-hero {
  height: max(600px, min(880px, calc(100svh - var(--header-height))));
  min-height: 0;
}
.hero-scene {
  --u: clamp(0.8px, calc(100vw / 1920), 1.5px);
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #081019;
  pointer-events: none;
  contain: strict;
}
/* layers overhang the hero vertically (bottom / top % of the hand-placed layout), not sideways */
.hero-scene .hs-layer { position: absolute; inset: -6% 0; }
.hero-scene .hs-layer > * { position: absolute; display: block; }

/* sky: the splash's teal heart, a blue haze up right, violet dusk low right */
.hero-scene .hs-sky {
  background:
    radial-gradient(58% 52% at 47% 40%, rgba(44, 150, 168, 0.55), rgba(44, 150, 168, 0) 70%),
    radial-gradient(40% 36% at 72% 26%, rgba(70, 118, 196, 0.32), rgba(70, 118, 196, 0) 70%),
    radial-gradient(62% 56% at 88% 88%, rgba(126, 64, 156, 0.7), rgba(126, 64, 156, 0) 70%),
    radial-gradient(46% 44% at 22% 92%, rgba(84, 48, 120, 0.5), rgba(84, 48, 120, 0) 70%),
    linear-gradient(180deg, #071019 0%, #0b1a26 38%, #171831 72%, #241739 100%);
}

/* seamless strips (stars, nebula): two copies side by side, sliding left by one copy, then again */
.hero-scene .hs-strip { inset: 0; animation: hs-strip 12800s linear infinite; }
.hero-scene .hs-strip__copy { position: absolute; inset: 0; }
.hero-scene .hs-strip__copy.is-next { left: 100%; right: -100%; }
.hero-scene .hs-strip__copy > * { position: absolute; display: block; }
@keyframes hs-strip {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

/* nebula glows breathing and drifting (the client's blur(50px) + screen blend: the gradients are already soft) */
.hero-scene .hs-nebula .hs-strip__copy > span { border-radius: 50%; animation: hs-nebula-drift ease-in-out infinite alternate; }
.hero-scene .hs-nebula .is-teal { left: 30%; top: 22%; width: 46%; height: 42%; background: radial-gradient(closest-side, rgba(60, 176, 186, 0.42), rgba(60, 176, 186, 0.18) 55%, transparent); animation-duration: 46s; }
.hero-scene .hs-nebula .is-cyan { left: 52%; top: 12%; width: 30%; height: 30%; background: radial-gradient(closest-side, rgba(110, 200, 230, 0.27), rgba(110, 200, 230, 0.1) 55%, transparent); animation-duration: 38s; animation-delay: -12s; }
.hero-scene .hs-nebula .is-violet { left: 64%; top: 52%; width: 44%; height: 46%; background: radial-gradient(closest-side, rgba(150, 82, 196, 0.4), rgba(150, 82, 196, 0.16) 55%, transparent); animation-duration: 54s; animation-delay: -20s; }
.hero-scene .hs-nebula .is-rose { left: 78%; top: 70%; width: 30%; height: 30%; background: radial-gradient(closest-side, rgba(214, 130, 196, 0.25), rgba(214, 130, 196, 0.1) 55%, transparent); animation-duration: 41s; animation-delay: -7s; }
.hero-scene .hs-nebula .is-deep { left: 8%; top: 48%; width: 40%; height: 44%; background: radial-gradient(closest-side, rgba(40, 110, 140, 0.32), rgba(40, 110, 140, 0.12) 55%, transparent); animation-duration: 60s; animation-delay: -30s; }
@keyframes hs-nebula-drift {
  from { transform: translate(-3%, 2%) scale(1); opacity: 0.75; }
  to { transform: translate(4%, -3%) scale(1.15); opacity: 1; }
}

/* stars: the far field in five twinkling groups (static stars, one opacity animation per group), the near
   stars one by one as in the client */
.hero-scene .hs-stars.is-far .hs-star-group { inset: 0; animation: hs-twinkle-group ease-in-out infinite alternate; }
.hero-scene .hs-star-group > i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px 1px rgba(196, 236, 246, 0.6);
}
.hero-scene .hs-star-group.is-g0 { animation-duration: 3.7s; }
.hero-scene .hs-star-group.is-g1 { animation-duration: 5.3s; animation-delay: -2.1s; }
.hero-scene .hs-star-group.is-g2 { animation-duration: 4.4s; animation-delay: -3.3s; }
.hero-scene .hs-star-group.is-g3 { animation-duration: 6.8s; animation-delay: -1.2s; }
.hero-scene .hs-star-group.is-g4 { animation-duration: 8.1s; animation-delay: -5.6s; }
@keyframes hs-twinkle-group {
  from { opacity: 0.2; }
  to { opacity: 1; }
}
.hero-scene .hs-stars.is-near .hs-strip__copy > span {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(214, 196, 255, 0.75);
  opacity: 0.2;
  animation: hs-twinkle ease-in-out infinite;
}
.hero-scene .hs-stars.is-near .hs-strip__copy > span.is-sparkle::before,
.hero-scene .hs-stars.is-near .hs-strip__copy > span.is-sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1px;
  translate: -50% -50%;
  background: linear-gradient(90deg, transparent, rgba(240, 230, 255, 0.95), transparent);
}
.hero-scene .hs-stars.is-near .hs-strip__copy > span.is-sparkle::after { rotate: 90deg; }
@keyframes hs-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  45% { opacity: 1; transform: scale(1.15); }
  60% { opacity: 0.45; transform: scale(1); }
}

/* shooting stars: a rotated rail, the streak flashes across then waits for its next pass */
.hero-scene .hs-shooting > span { width: 0; height: 0; }
.hero-scene .hs-shooting i {
  position: absolute;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(160, 230, 255, 0), rgba(190, 236, 255, 0.25) 35%, rgba(255, 255, 255, 0.95));
  opacity: 0;
  animation: hs-shoot linear infinite;
}
.hero-scene .hs-shooting i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 5px;
  height: 5px;
  translate: 0 -50%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(200, 240, 255, 0.9), 0 0 22px 6px rgba(170, 120, 255, 0.45);
}
@keyframes hs-shoot {
  0% { transform: translateX(-60px); opacity: 0; }
  1.5% { opacity: 1; }
  7% { transform: translateX(640px); opacity: 0; }
  100% { transform: translateX(640px); opacity: 0; }
}

/* the Wax Dofus egg: dull metallic purple, slow float, pulsing glow (opacity, not an animated filter), in the mist */
.hero-scene .hs-egg__float {
  left: 63.5%;
  top: 44%;
  width: min(38vh, 420px);
  aspect-ratio: 1;
  translate: -50% -50%;
  animation: hs-float 11s ease-in-out infinite alternate;
}
.hero-scene .hs-egg__halo,
.hero-scene .hs-egg__pulse { position: absolute; border-radius: 50%; }
.hero-scene .hs-egg__halo {
  inset: -38%;
  background: radial-gradient(closest-side, rgba(170, 104, 240, 0.42), rgba(120, 66, 196, 0.16) 62%, rgba(120, 66, 196, 0));
  animation: hs-halo 6.5s ease-in-out infinite alternate;
}
.hero-scene .hs-egg__pulse {
  inset: 2%;
  background: radial-gradient(closest-side, rgba(200, 140, 255, 0.5), rgba(190, 126, 255, 0.18) 70%, rgba(190, 126, 255, 0));
  animation: hs-pulse 6.5s ease-in-out infinite alternate;
}
.hero-scene .hs-egg picture { position: relative; display: block; width: 100%; height: 100%; }
.hero-scene .hs-egg__img {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0.86;
  user-select: none;
  filter: drop-shadow(0 0 16px rgba(178, 116, 244, 0.6));
}
@keyframes hs-float {
  from { transform: translateY(-10px) rotate(-1.2deg); }
  to { transform: translateY(12px) rotate(1.2deg); }
}
@keyframes hs-halo {
  from { opacity: 0.55; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1.06); }
}
@keyframes hs-pulse {
  from { opacity: 0.2; }
  to { opacity: 0.85; }
}

/* rolling fog over the egg: the owner's lilac fog noise, two sheets rolling left with the sky (transform, one tile
   per cycle: seamless), masked to a soft band; the far sheet slower */
.hero-scene .hs-fog > span {
  left: 30%;
  top: 22%;
  width: 70%;
  height: 62%;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 50% 46% at 50% 54%, #000 25%, rgba(0, 0, 0, 0.5) 55%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 54%, #000 25%, rgba(0, 0, 0, 0.5) 55%, transparent 80%);
}
.hero-scene .hs-fog i {
  position: absolute;
  inset: 0 auto 0 -820px;
  width: calc(100% + 1640px);
  background-image: url("/static/hero/fog.webp");
  background-image: image-set(url("/static/hero/fog.avif") type("image/avif"), url("/static/hero/fog.webp") type("image/webp"));
  background-size: 560px 560px;
  animation: hs-fog-a 135s linear infinite;
}
.hero-scene .hs-fog .is-a { opacity: 0.5; }
.hero-scene .hs-fog .is-b { opacity: 0.36; }
.hero-scene .hs-fog .is-b i { background-size: 820px 820px; animation: hs-fog-b 285s linear infinite; }
@keyframes hs-fog-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-560px, 0, 0); } }
@keyframes hs-fog-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-820px, 0, 0); } }

/* clouds: 20 see-through cloud textures, the layer's blur and the tone baked per image (static/hero/sky); each image
   carries a transparent margin for its blur or glow (build_hero_assets.py prints it), so it is widened by it.
   The span is the cloud's centre; home-hero.js moves it. */
.hero-scene .hs-cloud { left: 0; translate: -50% 0; }
.hero-scene .hs-cloud img { display: block; max-width: none; height: auto; user-select: none; }
.hero-scene .is-flip { scale: -1 1; }
.hero-scene .is-wisps .hs-cloud img { width: 104.53%; margin: -2.26%; }
.hero-scene .is-veils .hs-cloud img { width: 119.53%; margin: -9.77%; }
.hero-scene .is-back .hs-cloud img { width: 106.32%; margin: -3.16%; }
.hero-scene .is-soft .hs-cloud img { width: 121%; margin: -10.5%; }
.hero-scene .is-front .hs-cloud img { width: 113.02%; margin: -6.51%; }
.hero-scene .is-fore .hs-cloud img { width: 101.63%; margin: -0.82%; }
.hero-scene .hs-clouds.is-veils .hs-cloud { translate: -50% -50%; }
/* a low haze the front banks sink into */
.hero-scene .hs-clouds.is-front::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(40, 28, 60, 0), rgba(52, 36, 76, 0.5) 70%, rgba(30, 20, 44, 0.85));
}

/* floating rocks (the owner's rocks, tinted and shaded by size in the images): the slot travels, the stone bobs
   inside it; the gigantic rock passes very blurred in the foreground with a slow tilt */
.hero-scene .hs-rock-slot { width: 0; height: 0; }
.hero-scene .hs-rock,
.hero-scene .hs-giant {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  height: auto;
  translate: -50% -50%;
  user-select: none;
}
.hero-scene .hs-rock { animation: hs-bob ease-in-out infinite alternate; }
.hero-scene .hs-giant { animation: hs-giant-tilt 18s ease-in-out infinite alternate; }
@keyframes hs-bob {
  from { transform: translateY(-9px) rotate(-2deg); }
  to { transform: translateY(9px) rotate(2deg); }
}
@keyframes hs-giant-tilt {
  from { rotate: -4deg; }
  to { rotate: 5deg; }
}

/* Wax embers rising */
.hero-scene .hs-embers span {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, #f3e2ff 0, #b87fe0 45%, rgba(123, 69, 196, 0) 72%);
  box-shadow: 0 0 10px 3px rgba(184, 127, 224, 0.45);
  opacity: 0;
  animation: hs-ember-rise linear infinite;
}
@keyframes hs-ember-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  70% { opacity: 0.55; }
  100% { transform: translate(var(--drift, 0), -78vh); opacity: 0; }
}

.hero-scene .hs-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 62% 44%, rgba(4, 8, 14, 0) 52%, rgba(4, 8, 14, 0.62)),
    linear-gradient(180deg, rgba(4, 8, 14, 0.35), rgba(4, 8, 14, 0) 18%);
}

.hero-scene.is-paused *,
.hero-scene.is-paused *::before,
.hero-scene.is-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-scene *,
  .hero-scene *::before,
  .hero-scene *::after { animation: none !important; }
}

/* ---- hero content: left column, the egg on the right as in the client's login screen ---- */
.home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.74) 0%, rgba(5, 9, 16, 0.5) 30%, rgba(5, 9, 16, 0) 56%),
    linear-gradient(0deg, rgba(5, 8, 12, 0.55), rgba(5, 8, 12, 0) 26%);
}
.home-main .home-hero .portal-hero {
  width: min(var(--max), calc(100% - 64px));
  padding: 28px 0 40px;
  align-items: flex-start;
  text-align: left;
}
.home-main .home-hero .portal-hero > * { max-width: 560px; }
.home-main .home-hero .portal-logo-frame { display: block; margin: 6px 0 0 -14px; }
.home-main .home-hero .portal-logo {
  width: min(360px, 72vw);
  max-height: none;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 26px rgba(160, 96, 230, 0.28));
}
.home-main .home-hero .portal-hero > p { margin: 0; font-size: 19px; }
.home-main .home-hero .portal-ctas { justify-content: flex-start; margin-top: 24px; }
.home-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.home-main .home-hero .home-hero-meta .portal-online { margin: 0; }
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(190, 140, 255, 0.5);
  border-radius: 999px;
  background: rgba(60, 30, 100, 0.55);
  color: #ecdfff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 0 22px rgba(150, 90, 230, 0.25);
}
.home-hero-badge:hover { background: rgba(84, 44, 136, 0.72); color: #fff; }
.home-hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #c99bff; box-shadow: 0 0 0 4px rgba(201, 155, 255, 0.2); }

/* WAX 3.7 is live (since the 16 October launch): the version tile, the official-launch line, a play button.
   No backdrop-filter: over a moving sky it would re-blur every frame. */
.launch-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 4px 0 20px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(160, 200, 240, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 100% 50%, rgba(102, 203, 208, 0.2), rgba(102, 203, 208, 0) 55%),
    linear-gradient(115deg, rgba(62, 32, 106, 0.88), rgba(22, 30, 54, 0.82));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 34px rgba(110, 150, 230, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f4ecff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.launch-card:hover { border-color: rgba(166, 236, 228, 0.75); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 44px rgba(102, 203, 208, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.launch-mark {
  width: 66px;
  overflow: hidden;
  border-radius: 10px;
  background: #f6efff;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 18px rgba(102, 203, 208, 0.4);
}
.launch-mark__brand {
  display: block;
  padding: 5px 0 4px;
  background: linear-gradient(180deg, #9ae2dd, #66bfc0);
  color: #0a2224;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.launch-mark__version { display: block; padding: 7px 0 8px; color: #2b1748; font: 700 27px/1 Cinzel, serif; }
.launch-card__text { min-width: 0; display: grid; gap: 3px; }
.launch-card__kicker { display: flex; align-items: center; gap: 7px; color: #8fe3d6; font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; }
/* the live dot: a ring that grows and fades (transform and opacity only) */
.launch-live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #74e0c8; box-shadow: 0 0 8px rgba(116, 224, 200, 0.9); }
.launch-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(116, 224, 200, 0.55); animation: launch-live-ping 2.2s ease-out infinite; }
@keyframes launch-live-ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.8); opacity: 0; } }
.launch-card__title { color: #fff; font: 700 23px/1.2 Cinzel, serif; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.launch-card__line { color: #e2d3ff; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.launch-play {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid #a6ece4;
  border-radius: 999px;
  background: linear-gradient(180deg, #9ae2dd, #74cbc8);
  box-shadow: 0 0 0 4px rgba(128, 212, 210, 0.14), 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #0a2224;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: filter 0.2s ease;
}
.launch-card:hover .launch-play { filter: brightness(1.08); }
/* "Out now" on the 3.7 section's launch step */
.launch-count {
  justify-self: end;
  padding: 7px 13px;
  border: 1px solid rgba(201, 155, 255, 0.6);
  border-radius: 999px;
  background: rgba(201, 155, 255, 0.18);
  color: #efe2ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .launch-live-dot::after { animation: none; opacity: 0; }
}

/* ---- WAX 3.7: the launch date, the beta now ---- */
.home-beta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(190, 140, 255, 0.35);
  background:
    radial-gradient(60% 120% at 18% 50%, rgba(126, 64, 196, 0.32), rgba(126, 64, 196, 0) 70%),
    radial-gradient(50% 120% at 92% 10%, rgba(44, 150, 168, 0.22), rgba(44, 150, 168, 0) 70%),
    linear-gradient(180deg, #120f22 0%, #0e1320 100%);
}
.home-beta-inner {
  width: min(1100px, calc(100% - 48px));
  margin: auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.home-beta-art { position: relative; width: 290px; height: 290px; justify-self: center; display: grid; place-items: center; }
.home-beta-glow { position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(170, 104, 240, 0.42), rgba(120, 66, 196, 0.12) 60%, rgba(120, 66, 196, 0)); }
.home-beta-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 155, 255, 0.55);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(44, 24, 78, 0.92), rgba(24, 16, 46, 0.96));
  box-shadow: inset 0 0 46px rgba(150, 90, 230, 0.38), 0 0 0 10px rgba(150, 90, 230, 0.08), 0 0 0 11px rgba(201, 155, 255, 0.16), 0 0 70px rgba(150, 90, 230, 0.32);
}
.home-beta-art picture { position: absolute; inset: 10%; }
.home-beta-egg { width: 100%; height: 100%; opacity: 0.2; }
.home-beta-date { position: relative; display: grid; justify-items: center; gap: 4px; line-height: 1; text-align: center; }
.home-beta-date__weekday { color: #cfa8ff; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.home-beta-date__day { color: #f8f2ff; font: 700 116px/0.92 Cinzel, serif; text-shadow: 0 0 30px rgba(170, 104, 240, 0.85), 0 6px 18px rgba(0, 0, 0, 0.6); }
.home-beta-date__month { color: #e8dbff; font: 700 20px/1 Cinzel, serif; letter-spacing: 0.18em; text-transform: uppercase; }
.home-beta-date__time { margin-top: 6px; color: #cfa8ff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.home-beta-version {
  position: absolute;
  top: 18px;
  right: -8px;
  padding: 7px 13px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a874f2, #6c3bba);
  color: #fff;
  font: 700 18px/1 Cinzel, serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 20px rgba(170, 104, 240, 0.6);
}
.home-beta-kicker { display: block; color: #8fe3d6; font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.home-beta-text h2 { margin: 8px 0 14px; color: #f6f1ff; font: 700 38px/1.15 Cinzel, serif; letter-spacing: 0; }
.home-beta-text p { margin: 0; max-width: 60ch; color: #d6cfe6; font-size: 17px; line-height: 1.7; }
.home-beta-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.home-beta-download { min-height: 52px; padding: 0 24px; font-size: 15px; box-shadow: 0 0 0 4px rgba(128, 212, 210, 0.14), 0 10px 30px rgba(0, 0, 0, 0.35); }
.home-beta-download:hover,
.home-main .portal-ctas .portal-button-primary:hover { filter: brightness(1.08); }

/* the road to the launch: beta now -> 16 October */
.launch-road { position: relative; max-width: 640px; margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.launch-road__step { position: relative; display: grid; align-content: start; justify-items: start; gap: 4px; padding-right: 26px; }
.launch-road__dot { width: 14px; height: 14px; margin-bottom: 8px; border-radius: 50%; background: #66cbd0; box-shadow: 0 0 0 4px rgba(102, 203, 208, 0.2), 0 0 14px rgba(102, 203, 208, 0.6); }
.launch-road__step.is-launch .launch-road__dot { background: #c99bff; box-shadow: 0 0 0 4px rgba(201, 155, 255, 0.22), 0 0 16px rgba(201, 155, 255, 0.85); }
/* the line from now to the launch */
.launch-road__step.is-now::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 22px;
  right: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(102, 203, 208, 0.9), rgba(201, 155, 255, 0.9));
}
.launch-road__label { color: #8fe3d6; font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; }
.launch-road__step.is-launch .launch-road__label { color: #d6b6ff; }
.launch-road__step strong { color: #fff; font-size: 16px; line-height: 1.35; }
.launch-road__text { color: #cdc5de; font-size: 14px; line-height: 1.5; }
.launch-road .launch-count { justify-self: start; margin-top: 8px; }

.home-main .portal-footer .by-wax { display: inline-flex; align-items: center; gap: 10px; }
.home-main .portal-footer .by-wax img { width: 47px; height: 32px; object-fit: contain; }

/* ---- smaller screens ---- */
@media (max-width: 1000px) {
  .home-hero-shade { background: linear-gradient(90deg, rgba(5, 9, 16, 0.8) 0%, rgba(5, 9, 16, 0.58) 42%, rgba(5, 9, 16, 0.1) 72%), linear-gradient(0deg, rgba(5, 8, 12, 0.55), rgba(5, 8, 12, 0) 26%); }
  .hero-scene .hs-egg__float { left: 72%; width: min(32vh, 340px); }
  .home-beta-inner { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .home-beta-art { width: 240px; height: 240px; }
  .home-beta-date__day { font-size: 96px; }
}
@media (max-width: 760px) {
  .hero-scene { --u: 0.62px; }
  .hero-scene .hs-star-group > i:nth-child(2n) { display: none; }
  /* the egg above the text, the text at the bottom over the clouds */
  .hero-scene .hs-egg__float { left: 50%; top: 19%; width: min(23svh, 50vw); }
  .hero-scene .hs-fog > span { left: 8%; top: 2%; width: 84%; height: 42%; }
  .home-main .portal-main.home-hero { height: auto; min-height: calc(100svh - var(--header-height)); place-items: end center; }
  .home-hero-shade { background: linear-gradient(0deg, rgba(5, 8, 12, 0.88) 0%, rgba(5, 8, 12, 0.62) 46%, rgba(5, 8, 12, 0) 72%); }
  .home-main .home-hero .portal-hero { width: calc(100% - 32px); padding: max(190px, 28svh) 0 22px; align-items: center; text-align: center; }
  .home-hero-meta { justify-content: center; gap: 8px; }
  .home-hero-badge { font-size: 11px; padding-inline: 10px 12px; }
  .home-main .home-hero .portal-logo-frame { margin: 2px auto 0; }
  .home-main .home-hero .portal-logo { width: min(190px, 52vw); }
  .launch-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "mark text" "mark play";
    gap: 8px 14px;
    margin: 6px 0 16px;
    padding: 10px 14px 12px 10px;
    text-align: left;
  }
  .launch-mark { grid-area: mark; align-self: start; width: 58px; }
  .launch-mark__version { font-size: 24px; }
  .launch-card__text { grid-area: text; }
  .launch-card__title { font-size: 19px; }
  .launch-card__line { font-size: 13px; }
  .launch-play { grid-area: play; justify-self: start; padding: 7px 14px; font-size: 13px; }
  .home-main .home-hero .portal-hero > p { max-width: 32ch; font-size: 15px; line-height: 1.5; }
  .home-main .home-hero .portal-ctas { justify-content: center; margin-top: 18px; }
  .home-beta-inner { width: calc(100% - 36px); padding: 42px 0 46px; grid-template-columns: minmax(0, 1fr); gap: 30px; text-align: center; }
  .home-beta-art { width: 210px; height: 210px; }
  .home-beta-date__day { font-size: 84px; }
  .home-beta-date__month { font-size: 16px; }
  .home-beta-version { font-size: 15px; right: -14px; top: 8px; }
  .home-beta-text h2 { font-size: 28px; }
  .home-beta-text p { margin-inline: auto; font-size: 15px; }
  .launch-road { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 340px; margin-inline: auto; text-align: left; }
  .launch-road__step { grid-template-columns: 14px minmax(0, 1fr); column-gap: 14px; padding: 0; }
  .launch-road__step > :not(.launch-road__dot) { grid-column: 2; }
  .launch-road__dot { grid-row: 1 / span 4; margin: 2px 0 0; }
  .launch-road__step.is-now::before { top: 22px; bottom: -20px; left: 6px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(102, 203, 208, 0.9), rgba(201, 155, 255, 0.9)); }
  .home-beta-ctas { justify-content: center; }
  .home-beta-ctas .portal-button { width: min(340px, 100%); }
}
@media (max-height: 760px) and (min-width: 761px) {
  .home-main .home-hero .portal-logo { width: min(270px, 60vw); }
  .launch-card { margin-bottom: 14px; }
  .home-main .home-hero .portal-ctas { margin-top: 16px; }
}
.home-hero-meta .portal-online > span:last-child { display: inline; }
