/* Root `/` language switcher ONLY — do not load on normal site pages. */
:root {
  /* Near-black deep space — avoid washed gray */
  --w3ls-bg0: #000000;
  --w3ls-bg1: #010205;
  --w3ls-bg2: #02060c;
  --w3ls-teal: #0f766e;
  --w3ls-teal-bright: #2dd4bf;
  --w3ls-text: #eef7f5;
  --w3ls-muted: #8fa8a4;
  --w3ls-globe: min(36vmin, 248px);
  --w3ls-rx: min(42vmin, 290px);
  --w3ls-ry: min(30vmin, 205px);
  --w3ls-spin-dur: 56s;
  --w3ls-orbit-dur: 78s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.w3ls-body {
  font-family: Inter, "Vazirmatn", "IBM Plex Sans Arabic", Mukta, "PT Sans", "Noto Sans SC", system-ui, sans-serif;
  color: var(--w3ls-text);
  background:
    radial-gradient(ellipse 55% 45% at 50% 48%, rgba(15, 118, 110, 0.08), transparent 58%),
    radial-gradient(700px 400px at 50% 10%, rgba(45, 212, 191, 0.03), transparent 50%),
    radial-gradient(500px 320px at 80% 90%, rgba(15, 118, 110, 0.035), transparent 48%),
    linear-gradient(168deg, var(--w3ls-bg0), var(--w3ls-bg1) 48%, var(--w3ls-bg2));
  overflow-x: hidden;
}

/* ===== Space field (behind everything) ===== */
.w3ls-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.w3ls-stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

/* Dense faint star field — static base (no synced layer twinkle) */
.w3ls-stars--a {
  background-image:
    radial-gradient(1px 1px at 4% 8%, rgba(235, 248, 245, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(45, 212, 191, 0.28), transparent),
    radial-gradient(1px 1px at 18% 61%, rgba(232, 244, 242, 0.42), transparent),
    radial-gradient(1.1px 1.1px at 27% 14%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 33% 78%, rgba(45, 212, 191, 0.22), transparent),
    radial-gradient(1.3px 1.3px at 41% 33%, rgba(232, 244, 242, 0.38), transparent),
    radial-gradient(1px 1px at 48% 9%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 56% 54%, rgba(45, 212, 191, 0.2), transparent),
    radial-gradient(1.2px 1.2px at 63% 27%, rgba(232, 244, 242, 0.4), transparent),
    radial-gradient(1px 1px at 71% 71%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 79% 18%, rgba(45, 212, 191, 0.25), transparent),
    radial-gradient(1.1px 1.1px at 86% 48%, rgba(232, 244, 242, 0.32), transparent),
    radial-gradient(1px 1px at 92% 82%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 8% 92%, rgba(232, 244, 242, 0.28), transparent),
    radial-gradient(1.2px 1.2px at 96% 6%, rgba(45, 212, 191, 0.18), transparent),
    radial-gradient(1px 1px at 15% 45%, rgba(255, 255, 255, 0.36), transparent),
    radial-gradient(1px 1px at 38% 58%, rgba(232, 244, 242, 0.3), transparent),
    radial-gradient(1.1px 1.1px at 54% 88%, rgba(255, 255, 255, 0.34), transparent),
    radial-gradient(1px 1px at 67% 12%, rgba(45, 212, 191, 0.16), transparent),
    radial-gradient(1px 1px at 83% 66%, rgba(232, 244, 242, 0.28), transparent),
    radial-gradient(1px 1px at 22% 3%, rgba(255, 255, 255, 0.32), transparent),
    radial-gradient(1.1px 1.1px at 75% 42%, rgba(255, 255, 255, 0.3), transparent);
  background-size: 360px 300px;
  opacity: 0.62;
}

.w3ls-stars--b {
  background-image:
    radial-gradient(1px 1px at 7% 41%, rgba(255, 255, 255, 0.38), transparent),
    radial-gradient(1.4px 1.4px at 15% 5%, rgba(232, 244, 242, 0.48), transparent),
    radial-gradient(1px 1px at 23% 88%, rgba(45, 212, 191, 0.2), transparent),
    radial-gradient(1px 1px at 36% 46%, rgba(255, 255, 255, 0.32), transparent),
    radial-gradient(1.2px 1.2px at 44% 19%, rgba(232, 244, 242, 0.36), transparent),
    radial-gradient(1px 1px at 52% 67%, rgba(45, 212, 191, 0.24), transparent),
    radial-gradient(1px 1px at 60% 93%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.3px 1.3px at 68% 38%, rgba(232, 244, 242, 0.44), transparent),
    radial-gradient(1px 1px at 76% 11%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 84% 58%, rgba(45, 212, 191, 0.18), transparent),
    radial-gradient(1.1px 1.1px at 91% 29%, rgba(232, 244, 242, 0.34), transparent),
    radial-gradient(1px 1px at 3% 72%, rgba(255, 255, 255, 0.26), transparent),
    radial-gradient(1px 1px at 98% 64%, rgba(232, 244, 242, 0.3), transparent),
    radial-gradient(1.2px 1.2px at 30% 30%, rgba(45, 212, 191, 0.16), transparent),
    radial-gradient(1px 1px at 11% 18%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 49% 8%, rgba(232, 244, 242, 0.26), transparent),
    radial-gradient(1.1px 1.1px at 62% 74%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 88% 91%, rgba(45, 212, 191, 0.14), transparent),
    radial-gradient(1px 1px at 19% 63%, rgba(232, 244, 242, 0.24), transparent),
    radial-gradient(1px 1px at 73% 51%, rgba(255, 255, 255, 0.26), transparent);
  background-size: 440px 380px;
  background-position: 80px 40px;
  opacity: 0.5;
}

.w3ls-stars--c {
  background-image:
    radial-gradient(1px 1px at 10% 55%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 21% 16%, rgba(232, 244, 242, 0.26), transparent),
    radial-gradient(1.5px 1.5px at 39% 84%, rgba(255, 255, 255, 0.42), transparent),
    radial-gradient(1px 1px at 47% 42%, rgba(45, 212, 191, 0.14), transparent),
    radial-gradient(1px 1px at 58% 7%, rgba(232, 244, 242, 0.24), transparent),
    radial-gradient(1.2px 1.2px at 66% 61%, rgba(255, 255, 255, 0.36), transparent),
    radial-gradient(1px 1px at 74% 90%, rgba(45, 212, 191, 0.14), transparent),
    radial-gradient(1px 1px at 82% 24%, rgba(232, 244, 242, 0.28), transparent),
    radial-gradient(1px 1px at 89% 76%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1.1px 1.1px at 5% 28%, rgba(232, 244, 242, 0.2), transparent),
    radial-gradient(1px 1px at 95% 44%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(45, 212, 191, 0.12), transparent),
    radial-gradient(1px 1px at 14% 79%, rgba(255, 255, 255, 0.24), transparent),
    radial-gradient(1px 1px at 28% 37%, rgba(232, 244, 242, 0.22), transparent),
    radial-gradient(1.1px 1.1px at 43% 12%, rgba(255, 255, 255, 0.26), transparent),
    radial-gradient(1px 1px at 61% 48%, rgba(45, 212, 191, 0.12), transparent),
    radial-gradient(1px 1px at 77% 33%, rgba(232, 244, 242, 0.2), transparent),
    radial-gradient(1px 1px at 93% 15%, rgba(255, 255, 255, 0.22), transparent);
  background-size: 320px 440px;
  background-position: 40px 120px;
  opacity: 0.42;
}

/* Extra dust layer — more stars without raising brightness much */
.w3ls-stars--d {
  background-image:
    radial-gradient(0.9px 0.9px at 6% 12%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(0.9px 0.9px at 13% 67%, rgba(232, 244, 242, 0.22), transparent),
    radial-gradient(1px 1px at 19% 34%, rgba(255, 255, 255, 0.26), transparent),
    radial-gradient(0.9px 0.9px at 25% 91%, rgba(45, 212, 191, 0.12), transparent),
    radial-gradient(1px 1px at 32% 21%, rgba(232, 244, 242, 0.24), transparent),
    radial-gradient(0.9px 0.9px at 37% 55%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 45% 8%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(0.9px 0.9px at 51% 72%, rgba(232, 244, 242, 0.2), transparent),
    radial-gradient(1px 1px at 57% 39%, rgba(255, 255, 255, 0.24), transparent),
    radial-gradient(0.9px 0.9px at 64% 86%, rgba(45, 212, 191, 0.1), transparent),
    radial-gradient(1px 1px at 70% 16%, rgba(232, 244, 242, 0.22), transparent),
    radial-gradient(0.9px 0.9px at 78% 48%, rgba(255, 255, 255, 0.26), transparent),
    radial-gradient(1px 1px at 85% 79%, rgba(232, 244, 242, 0.18), transparent),
    radial-gradient(0.9px 0.9px at 91% 31%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 97% 58%, rgba(45, 212, 191, 0.1), transparent),
    radial-gradient(0.9px 0.9px at 2% 44%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 42% 95%, rgba(232, 244, 242, 0.18), transparent),
    radial-gradient(0.9px 0.9px at 88% 4%, rgba(255, 255, 255, 0.24), transparent),
    radial-gradient(1px 1px at 16% 52%, rgba(255, 255, 255, 0.18), transparent),
    radial-gradient(0.9px 0.9px at 59% 27%, rgba(232, 244, 242, 0.2), transparent),
    radial-gradient(1px 1px at 73% 63%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(0.9px 0.9px at 34% 3%, rgba(45, 212, 191, 0.1), transparent),
    radial-gradient(1px 1px at 9% 81%, rgba(255, 255, 255, 0.18), transparent),
    radial-gradient(0.9px 0.9px at 81% 22%, rgba(232, 244, 242, 0.16), transparent);
  background-size: 280px 260px;
  background-position: 20px 60px;
  opacity: 0.38;
}

/* Individual pop stars — JS sets unique delay/duration/peak per dot */
.w3ls-star-pops {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.w3ls-star {
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 255, 252, 0.95);
  box-shadow: 0 0 3px 0.5px rgba(45, 212, 191, 0.22);
  opacity: var(--w3ls-star-dim, 0.1);
  transform: translate(-50%, -50%) scale(1);
  animation-name: w3ls-star-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: opacity, transform;
}

@keyframes w3ls-star-twinkle {
  0%,
  100% {
    opacity: var(--w3ls-star-dim, 0.1);
    transform: translate(-50%, -50%) scale(1);
  }
  42% {
    opacity: var(--w3ls-star-dim, 0.1);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: var(--w3ls-star-peak, 0.7);
    transform: translate(-50%, -50%) scale(var(--w3ls-star-scale, 1.35));
  }
  58% {
    opacity: var(--w3ls-star-dim, 0.1);
    transform: translate(-50%, -50%) scale(1);
  }
}

.w3ls-meteors {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Horizontal streak: trail (left) → bright head (right). JS sets --w3ls-meteor-rot = atan2(dy,dx). */
.w3ls-meteor {
  position: absolute;
  width: 96px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 255, 245, 0.05) 18%,
    rgba(232, 255, 250, 0.7) 70%,
    rgba(255, 255, 255, 0.95) 100%
  );
  box-shadow: 0 0 6px 1px rgba(45, 212, 191, 0.25);
  opacity: 0;
  transform-origin: right center;
  pointer-events: none;
  animation: w3ls-meteor-fly var(--w3ls-meteor-dur, 1.1s) ease-out forwards;
  will-change: transform, opacity;
}

@keyframes w3ls-meteor-fly {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--w3ls-meteor-rot, 0deg)) scaleX(0.2);
  }
  8% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--w3ls-meteor-dx, 280px), var(--w3ls-meteor-dy, 160px), 0)
      rotate(var(--w3ls-meteor-rot, 0deg)) scaleX(1);
  }
}

/* Soft vignette above stars, still behind page content */
body.w3ls-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 70% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 0;
}

.w3ls-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2rem) 1rem clamp(1.25rem, 4vh, 2.5rem);
}

.w3ls-brand-block {
  text-align: center;
  z-index: 3;
}

.w3ls-logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  filter: drop-shadow(0 0 18px rgba(45, 212, 191, 0.22));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.w3ls-logo-link:hover,
.w3ls-logo-link:focus-visible {
  filter: drop-shadow(0 0 24px rgba(45, 212, 191, 0.38));
  transform: translateY(-1px);
}

.w3ls-logo-link:focus-visible {
  outline: 2px solid var(--w3ls-teal-bright);
  outline-offset: 6px;
  border-radius: 6px;
}

.w3ls-logo {
  display: block;
  width: clamp(148px, 28vw, 220px);
  height: auto;
  margin: 0 auto;
}

.w3ls-brand-rule {
  width: min(12rem, 42vw);
  height: 1px;
  margin: 0.85rem auto 0.55rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 212, 191, 0.15) 18%,
    rgba(45, 212, 191, 0.85) 50%,
    rgba(45, 212, 191, 0.15) 82%,
    transparent
  );
  position: relative;
}

.w3ls-brand-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--w3ls-teal-bright);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.75);
}

.w3ls-scope {
  margin: 0 auto 0.28rem;
  max-width: none;
  white-space: nowrap;
  font-family: inherit;
  font-size: clamp(0.72rem, 3.5vw, 1.02rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--w3ls-text);
}

.w3ls-hint {
  margin: 0;
  font-family: inherit;
  font-size: clamp(0.82rem, 2.1vw, 0.98rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--w3ls-muted);
  letter-spacing: 0.02em;
}

.w3ls-stage {
  --w3ls-stage-pad: 3.2rem;
  position: relative;
  z-index: 1;
  isolation: isolate; /* chips + globe share one stacking context for depth */
  width: calc(var(--w3ls-rx) * 2 + var(--w3ls-stage-pad) * 2);
  height: calc(var(--w3ls-ry) * 2 + var(--w3ls-stage-pad) * 2);
  max-width: min(96vw, 720px);
  margin-top: clamp(0.85rem, 2.8vh, 1.75rem);
  display: grid;
  place-items: center;
}

.w3ls-orbit-rings {
  position: absolute;
  inset: 18%;
  pointer-events: none;
  z-index: 0;
  perspective: 700px;
  transform-style: preserve-3d;
}

.w3ls-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-18deg);
  box-shadow: 0 0 12px rgba(15, 118, 110, 0.12);
  transform-style: preserve-3d;
}

.w3ls-ring--a {
  width: 118%;
  height: 118%;
  opacity: 0.85;
}

.w3ls-ring--b {
  width: 142%;
  height: 142%;
  opacity: 0.55;
  border-color: rgba(45, 212, 191, 0.12);
}

.w3ls-ring--c {
  width: 168%;
  height: 168%;
  opacity: 0.35;
  border-color: rgba(45, 212, 191, 0.08);
}

.w3ls-globe-wrap {
  position: relative;
  width: var(--w3ls-globe);
  height: var(--w3ls-globe);
  /* Mid depth: back langs z < 50, front langs z > 50 */
  z-index: 50;
  pointer-events: none;
}

.w3ls-globe-aura {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, rgba(15, 118, 110, 0.08) 38%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.w3ls-globe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #04242c;
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.28),
    0 0 36px rgba(15, 118, 110, 0.4),
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 28px rgba(2, 8, 12, 0.35);
  isolation: isolate;
}

/*
  Seamless equirectangular strip on a circular clip.
  Parent globe is D×D. One 2:1 map must be 2D×D (not D×D — that squashed continents).
  Element is 4D wide (two maps); each background tile is 50%×100% = 2D×D.
*/
.w3ls-globe-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  background-image: var(--w3ls-earth-url);
  background-repeat: repeat-x;
  background-size: 50% 100%;
  background-position: 0 50%;
  /* Teal/dark grade — clearer continents, not neon/purple */
  filter:
    brightness(0.72)
    contrast(1.18)
    saturate(0.82)
    hue-rotate(6deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: w3ls-map-drift var(--w3ls-spin-dur) linear infinite;
  will-change: transform, opacity;
}

.w3ls-globe-map.is-ready {
  opacity: 1;
}

.w3ls-globe-tint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 48%, rgba(15, 118, 110, 0.2) 0%, transparent 58%),
    linear-gradient(180deg, rgba(8, 40, 48, 0.14) 0%, rgba(2, 12, 18, 0.32) 100%);
  mix-blend-mode: soft-light;
}

/* Limb darkening + soft terminator (fixed; map scrolls underneath) */
.w3ls-globe-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(
      circle at 50% 50%,
      transparent 42%,
      rgba(0, 8, 12, 0.22) 68%,
      rgba(0, 4, 8, 0.55) 100%
    );
}

.w3ls-globe-light {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(circle at 30% 28%, rgba(220, 255, 248, 0.2), transparent 34%),
    linear-gradient(
      108deg,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 34%,
      transparent 56%,
      rgba(0, 0, 0, 0.42) 100%
    );
}

.w3ls-globe-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  box-shadow:
    inset 0 0 0 1px rgba(45, 212, 191, 0.28),
    inset 0 0 18px rgba(45, 212, 191, 0.12),
    inset -10px -14px 28px rgba(0, 0, 0, 0.4),
    inset 8px 10px 22px rgba(180, 255, 245, 0.08);
}

.w3ls-orbit {
  position: absolute;
  inset: 0;
  /* z-index:auto so chip z competes with globe (not trapped above it) */
  z-index: auto;
  pointer-events: none;
}

.w3ls-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Pre-JS fallback: upright elliptical orbit from --angle */
  transform:
    translate(-50%, -50%)
    rotate(var(--angle, 0deg))
    translateY(calc(var(--w3ls-ry) * -1))
    rotate(calc(var(--angle, 0deg) * -1));
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
  will-change: transform, opacity;
  /* No transform/opacity transition — rAF drives those; lag if eased */
  transition: filter 0.2s ease;
}

.w3ls-chip-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: clamp(0.78rem, 1.9vw, 0.92rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--w3ls-text);
  background: linear-gradient(165deg, rgba(10, 28, 38, 0.94), rgba(6, 18, 26, 0.92));
  border: 1px solid rgba(45, 212, 191, 0.38);
  box-shadow:
    0 0 0 1px rgba(15, 118, 110, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.w3ls-chip:hover .w3ls-chip-face,
.w3ls-chip:focus-visible .w3ls-chip-face {
  transform: scale(1.06);
  border-color: var(--w3ls-teal-bright);
  color: #fff;
  background: linear-gradient(165deg, rgba(15, 118, 110, 0.62), rgba(8, 36, 44, 0.96));
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.35),
    0 0 22px rgba(45, 212, 191, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.38);
}

.w3ls-chip:focus-visible {
  outline: none;
}

.w3ls-chip:focus-visible .w3ls-chip-face {
  outline: 2px solid var(--w3ls-teal-bright);
  outline-offset: 3px;
}

.w3ls-chip.is-active .w3ls-chip-face {
  border-color: var(--w3ls-teal-bright);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.4),
    0 0 20px rgba(45, 212, 191, 0.25);
}

@keyframes w3ls-map-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 720px) {
  html,
  body.w3ls-body {
    height: 100%;
    overflow: hidden;
  }

  .w3ls-page {
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    max-height: 100svh;
    min-height: 0;
    overflow: hidden;
    padding: 0.4rem 0.7rem 0.45rem;
  }

  .w3ls-logo {
    width: clamp(112px, 32vw, 160px);
  }

  .w3ls-brand-rule {
    margin: 0.35rem auto 0.22rem;
  }

  .w3ls-scope {
    margin-bottom: 0.1rem;
  }

  .w3ls-hint {
    font-size: 0.75rem;
  }

  :root {
    --w3ls-globe: min(24svh, 168px);
    --w3ls-rx: min(34vw, 150px);
    --w3ls-ry: min(15svh, 104px);
  }

  .w3ls-stage {
    --w3ls-stage-pad: 2.15rem;
    margin-top: 0.28rem;
  }

  .w3ls-chip-face {
    min-height: 2.15rem;
    padding: 0.38rem 0.78rem;
    font-size: clamp(0.72rem, 3.1vw, 0.84rem);
  }

  .w3ls-ring--c {
    display: none;
  }
}

@media (max-width: 420px) {
  :root {
    --w3ls-globe: min(22svh, 140px);
    --w3ls-rx: min(33vw, 132px);
    --w3ls-ry: min(14svh, 92px);
  }

  .w3ls-page {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .w3ls-chip-face {
    min-height: 2rem;
    padding: 0.34rem 0.68rem;
    font-size: 0.7rem;
  }
}

/* Marketing root switcher intentionally keeps Earth spin, star twinkle, and
   meteor trails even when prefers-reduced-motion is set — product clarity. */
