* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: #000;
}

body:not(.resources-ready) .page {
  opacity: 0;
  visibility: hidden;
}

body.resources-ready .page {
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease;
}

:root {
  --random-space-bg: url("assets/space-background.jpg");
}

.site-loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #edf8ff;
  background:
    radial-gradient(circle at 50% 36%, rgba(69, 124, 161, 0.22), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(255, 168, 87, 0.13), transparent 24%),
    #02050b;
  transition:
    opacity 420ms ease,
    visibility 0s linear 420ms;
}

body.resources-ready .site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-card {
  width: min(88vw, 420px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 28px;
  border: 1px solid rgba(161, 218, 255, 0.22);
  border-radius: 14px;
  text-align: center;
  background: rgba(8, 14, 24, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.site-loader-orbit {
  position: relative;
  width: 74px;
  aspect-ratio: 1;
  border: 1px solid rgba(142, 214, 255, 0.28);
  border-radius: 50%;
  animation: loader-spin 1.35s linear infinite;
}

.site-loader-orbit::before,
.site-loader-orbit::after,
.site-loader-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.site-loader-orbit::before {
  inset: 16px;
  background: radial-gradient(circle at 35% 28%, #8adfff, #173a58 62%, #07121f);
  box-shadow: 0 0 24px rgba(81, 187, 255, 0.32);
}

.site-loader-orbit::after {
  left: 50%;
  top: -4px;
  width: 9px;
  aspect-ratio: 1;
  background: #f6d08b;
  box-shadow: 0 0 14px rgba(246, 208, 139, 0.7);
  transform: translateX(-50%);
}

.site-loader-orbit span {
  inset: 26px -7px;
  border: 1px solid rgba(229, 243, 255, 0.54);
  transform: rotate(-18deg);
}

.site-loader-kicker {
  margin-top: 6px;
  color: #f0c77d;
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: 0.22em;
}

.site-loader-title {
  color: #f4fbff;
  font: 800 clamp(24px, 4vw, 36px)/1.08 system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.site-loader-text {
  color: rgba(224, 239, 248, 0.78);
  font: 500 14px/1.45 system-ui, sans-serif;
}

.site-loader-bar {
  width: min(100%, 280px);
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.site-loader-bar span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9f54, #e8f7ff, #4bd77c);
  animation: loader-bar 1.15s ease-in-out infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-bar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

.page {
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.section {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-one {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(2, 4, 10, 0.45), rgba(2, 4, 10, 0.45)),
    var(--random-space-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-one::before,
.section-one::after {
  content: "";
  position: absolute;
  inset: -2%;
  display: none;
  pointer-events: none;
}

.section-one::before {
  background-image:
    radial-gradient(2px 2px at 8% 12%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 14% 28%, rgba(255, 244, 230, 0.85) 98%, transparent 100%),
    radial-gradient(2px 2px at 22% 68%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1px 1px at 30% 18%, rgba(255, 244, 230, 0.75) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 37% 82%, rgba(255, 244, 230, 0.88) 98%, transparent 100%),
    radial-gradient(2px 2px at 44% 42%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1px 1px at 52% 14%, rgba(255, 244, 230, 0.72) 98%, transparent 100%),
    radial-gradient(2px 2px at 58% 72%, rgba(255, 244, 230, 0.92) 98%, transparent 100%),
    radial-gradient(1px 1px at 67% 26%, rgba(255, 244, 230, 0.78) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 54%, rgba(255, 244, 230, 0.88) 98%, transparent 100%),
    radial-gradient(2px 2px at 81% 16%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1px 1px at 88% 66%, rgba(255, 244, 230, 0.8) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 94% 36%, rgba(255, 244, 230, 0.9) 98%, transparent 100%),
    radial-gradient(1px 1px at 6% 86%, rgba(255, 244, 230, 0.78) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 18% 48%, rgba(255, 244, 230, 0.84) 98%, transparent 100%),
    radial-gradient(2px 2px at 26% 92%, rgba(255, 244, 230, 0.92) 98%, transparent 100%),
    radial-gradient(1px 1px at 34% 58%, rgba(255, 244, 230, 0.75) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 88%, rgba(255, 244, 230, 0.85) 98%, transparent 100%),
    radial-gradient(1px 1px at 56% 34%, rgba(255, 244, 230, 0.76) 98%, transparent 100%),
    radial-gradient(2px 2px at 64% 92%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1px 1px at 76% 78%, rgba(255, 244, 230, 0.75) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 84% 46%, rgba(255, 244, 230, 0.87) 98%, transparent 100%),
    radial-gradient(1px 1px at 92% 86%, rgba(255, 244, 230, 0.74) 98%, transparent 100%);
  opacity: 0.95;
  animation: star-drift-near 22s ease-in-out infinite alternate;
}

.section-one::after {
  background-image:
    radial-gradient(1px 1px at 10% 22%, rgba(255, 244, 230, 0.55) 98%, transparent 100%),
    radial-gradient(1px 1px at 19% 8%, rgba(255, 244, 230, 0.45) 98%, transparent 100%),
    radial-gradient(1px 1px at 24% 40%, rgba(255, 244, 230, 0.5) 98%, transparent 100%),
    radial-gradient(1px 1px at 32% 76%, rgba(255, 244, 230, 0.45) 98%, transparent 100%),
    radial-gradient(1px 1px at 42% 22%, rgba(255, 244, 230, 0.52) 98%, transparent 100%),
    radial-gradient(1px 1px at 48% 64%, rgba(255, 244, 230, 0.46) 98%, transparent 100%),
    radial-gradient(1px 1px at 60% 10%, rgba(255, 244, 230, 0.42) 98%, transparent 100%),
    radial-gradient(1px 1px at 69% 38%, rgba(255, 244, 230, 0.5) 98%, transparent 100%),
    radial-gradient(1px 1px at 78% 60%, rgba(255, 244, 230, 0.47) 98%, transparent 100%),
    radial-gradient(1px 1px at 86% 24%, rgba(255, 244, 230, 0.44) 98%, transparent 100%),
    radial-gradient(1px 1px at 95% 72%, rgba(255, 244, 230, 0.48) 98%, transparent 100%),
    radial-gradient(1px 1px at 4% 52%, rgba(255, 244, 230, 0.46) 98%, transparent 100%),
    radial-gradient(1px 1px at 14% 94%, rgba(255, 244, 230, 0.42) 98%, transparent 100%),
    radial-gradient(1px 1px at 36% 6%, rgba(255, 244, 230, 0.48) 98%, transparent 100%),
    radial-gradient(1px 1px at 54% 48%, rgba(255, 244, 230, 0.42) 98%, transparent 100%),
    radial-gradient(1px 1px at 74% 90%, rgba(255, 244, 230, 0.46) 98%, transparent 100%),
    radial-gradient(1px 1px at 90% 8%, rgba(255, 244, 230, 0.5) 98%, transparent 100%);
  opacity: 0.75;
  animation:
    star-drift-far 34s ease-in-out infinite alternate,
    twinkle 5s ease-in-out infinite alternate;
}

.section-one-brand,
.section-one-mantra {
  position: absolute;
  z-index: 6;
  max-width: min(34vw, 420px);
  color: rgba(239, 249, 255, 0.92);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72);
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.section-one:has(.space-scene.is-earth-expanded) .section-one-brand,
.section-one:has(.space-scene.is-earth-expanded) .section-one-mantra {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s, 220ms;
}

.section-one-brand {
  left: clamp(148px, calc(5.4vw + 100px), 196px);
  top: clamp(88px, 12vh, 140px);
  font: 850 clamp(26px, 2.12vw, 42px) / 1.16 system-ui, sans-serif;
  letter-spacing: 0.08em;
}

.section-one-brand p + p {
  margin-top: 0.2em;
  color: #f1d39c;
  font-size: 0.72em;
  letter-spacing: 0.12em;
}

.section-one-mantra {
  right: clamp(148px, calc(5.4vw + 100px), 196px);
  bottom: clamp(92px, 12vh, 150px);
  text-align: right;
  font: 650 clamp(18px, 1.44vw, 26px) / 1.42 system-ui, sans-serif;
}

.section-one-mantra-script {
  margin-bottom: 0.34em;
  color: #f1d39c;
  font-family: "Noto Sans Devanagari", "Mangal", "Nirmala UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.section-one-cta {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 38px);
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(88vw, 360px);
  transform: translateX(-50%);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 0s;
}

.section-one-cta-button {
  width: min(100%, 300px);
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid rgba(216, 239, 255, 0.45);
  border-radius: 999px;
  color: #d8efff;
  background: rgba(4, 11, 19, 0.52);
  backdrop-filter: blur(8px);
  font: 650 clamp(13px, 1vw, 16px) / 1.2 system-ui, sans-serif;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.section-one-cta-button:hover,
.section-one-cta-button:focus-visible {
  border-color: rgba(235, 248, 255, 0.85);
  color: #f2fbff;
  background: rgba(12, 29, 44, 0.8);
  transform: translateY(-2px);
}

.section-one-cta-button:focus-visible {
  outline: 2px solid rgba(216, 239, 255, 0.9);
  outline-offset: 3px;
}

.section-one-cta-who {
  border-color: rgba(216, 239, 255, 0.28);
  border-radius: 10px;
}

.section-one-cta-explore {
  position: relative;
  min-height: auto;
  padding: 6px 18px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.section-one-cta-explore::after {
  content: ">";
  position: absolute;
  left: 50%;
  bottom: 2px;
  color: #d8efff;
  font: 500 24px / 1 system-ui, sans-serif;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  transition: transform 160ms ease, color 160ms ease;
}

.section-one-cta-explore:hover,
.section-one-cta-explore:focus-visible {
  border-color: transparent;
  background: transparent;
  transform: none;
}

.section-one-cta-explore:hover::after,
.section-one-cta-explore:focus-visible::after {
  color: #f2fbff;
  transform: translate(-50%, 3px) rotate(90deg);
}

.space-scene.is-earth-expanded + .section-one-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition-delay: 0s, 0s, 220ms;
}

.section-two {
  background: #6f4938;
}

.section-two-grid {
  width: 100%;
  height: 100dvh;
  min-height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.section-two-logo-image {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  width: clamp(150px, 15vw, 250px);
  max-width: 22vw;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.section-two-button {
  min-width: 0;
  min-height: 0;
  padding: clamp(24px, 5vw, 72px);
  border: 0;
  border-radius: 0;
  color: #f0e4de;
  background: rgba(65, 34, 25, 0.14);
  font: 650 clamp(18px, 2.2vw, 34px) / 1.2 system-ui, sans-serif;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.section-two-button-space,
.section-two-button-sand,
.section-two-button-fire,
.section-two-button-water {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f6fdff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.section-two-button-space {
  --embed-ratio: 1.785714;
  --section-accent: #a6df9a;
  --section-accent-soft: rgba(130, 182, 120, 0.4);
  --section-label-bg: rgba(15, 54, 42, 0.68);
  --section-label-bg-2: rgba(6, 28, 28, 0.52);
  --section-panel-tint: rgba(7, 48, 38, 0.34);
  --section-panel-wash: rgba(12, 55, 45, 0.2);
  background: #102d25;
}

.section-two-button-sand {
  --embed-ratio: 1.5;
  --section-accent: #f0d493;
  --section-accent-soft: rgba(190, 150, 72, 0.38);
  --section-label-bg: rgba(91, 75, 42, 0.68);
  --section-label-bg-2: rgba(45, 36, 19, 0.5);
  --section-panel-tint: rgba(105, 83, 45, 0.3);
  --section-panel-wash: rgba(70, 58, 32, 0.18);
  background: #74613d;
}

.section-two-button-fire {
  --embed-ratio: 1;
  --section-accent: #ffbd7c;
  --section-accent-soft: rgba(210, 81, 37, 0.4);
  --section-label-bg: rgba(95, 30, 18, 0.72);
  --section-label-bg-2: rgba(48, 12, 10, 0.56);
  --section-panel-tint: rgba(88, 18, 10, 0.38);
  --section-panel-wash: rgba(125, 39, 18, 0.16);
  background: #42150d;
}

.section-two-button-water {
  --embed-ratio: 1;
  --section-accent: #a8edf3;
  --section-accent-soft: rgba(42, 148, 169, 0.4);
  --section-label-bg: rgba(8, 78, 94, 0.72);
  --section-label-bg-2: rgba(4, 39, 56, 0.54);
  --section-panel-tint: rgba(5, 82, 104, 0.32);
  --section-panel-wash: rgba(0, 125, 150, 0.14);
  background: #064a5d;
}

/* Every animated background fills its grid cell without letterboxing. */
.section-two-button-embed {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: brightness(0.68) contrast(0.92) saturate(0.78);
  pointer-events: none;
  user-select: none;
}

.section-two-button-space .section-two-button-embed {
  object-position: 50% 52%;
}

.section-two-button-sand .section-two-button-embed {
  object-position: 50% 55%;
}

.section-two-button-fire .section-two-button-embed {
  object-position: 50% 72%;
}

.section-two-button-water .section-two-button-embed {
  object-position: 50% 50%;
}

.section-two-button-space::after,
.section-two-button-sand::after,
.section-two-button-fire::after,
.section-two-button-water::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, var(--section-panel-wash) 0 32%, rgba(0, 0, 0, 0.12) 64%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(135deg, var(--section-panel-tint), rgba(0, 0, 0, 0.38));
  transition: background-color 180ms ease;
  pointer-events: none;
}

.section-two-button-space span,
.section-two-button-sand span,
.section-two-button-fire span,
.section-two-button-water span {
  position: relative;
  z-index: 1;
}

.section-two-button:nth-child(1),
.section-two-button:nth-child(2) {
  border-bottom: 1px solid rgba(255, 238, 226, 0.16);
}

.section-two-button:nth-child(odd) {
  border-right: 1px solid rgba(255, 238, 226, 0.16);
}

.section-two-button:hover,
.section-two-button:focus-visible {
  color: #fff8f3;
  background: rgba(26, 12, 10, 0.48);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.2);
}

.section-two-button-space:hover,
.section-two-button-space:focus-visible {
  background: #102d25;
}

.section-two-button-sand:hover,
.section-two-button-sand:focus-visible {
  background: #74613d;
}

.section-two-button-fire:hover,
.section-two-button-fire:focus-visible {
  background: #42150d;
}

.section-two-button-water:hover,
.section-two-button-water:focus-visible {
  background: #064a5d;
}

.section-two-button-space:hover::after,
.section-two-button-space:focus-visible::after,
.section-two-button-sand:hover::after,
.section-two-button-sand:focus-visible::after,
.section-two-button-fire:hover::after,
.section-two-button-fire:focus-visible::after,
.section-two-button-water:hover::after,
.section-two-button-water:focus-visible::after {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.04) 0 22%, rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(135deg, var(--section-panel-tint), rgba(0, 0, 0, 0.42));
}

.section-two-button:focus-visible {
  outline: 2px solid rgba(255, 242, 233, 0.82);
  outline-offset: -6px;
}

.section-three {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(2, 4, 10, 0.45), rgba(2, 4, 10, 0.45)),
    var(--random-space-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-three::before,
.section-three::after {
  content: "";
  position: absolute;
  inset: -2%;
  display: none;
  pointer-events: none;
}

.section-three::before {
  background-image:
    radial-gradient(2px 2px at 8% 12%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 14% 28%, rgba(255, 244, 230, 0.85) 98%, transparent 100%),
    radial-gradient(2px 2px at 22% 68%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1px 1px at 30% 18%, rgba(255, 244, 230, 0.75) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 37% 82%, rgba(255, 244, 230, 0.88) 98%, transparent 100%),
    radial-gradient(2px 2px at 44% 42%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1px 1px at 52% 14%, rgba(255, 244, 230, 0.72) 98%, transparent 100%),
    radial-gradient(2px 2px at 58% 72%, rgba(255, 244, 230, 0.92) 98%, transparent 100%),
    radial-gradient(1px 1px at 67% 26%, rgba(255, 244, 230, 0.78) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 54%, rgba(255, 244, 230, 0.88) 98%, transparent 100%),
    radial-gradient(2px 2px at 81% 16%, rgba(255, 244, 230, 0.95) 98%, transparent 100%),
    radial-gradient(1px 1px at 88% 66%, rgba(255, 244, 230, 0.8) 98%, transparent 100%),
    radial-gradient(1.5px 1.5px at 94% 36%, rgba(255, 244, 230, 0.9) 98%, transparent 100%);
  opacity: 0.95;
  animation: star-drift-near 22s ease-in-out infinite alternate;
}

.section-three::after {
  background-image:
    radial-gradient(1px 1px at 10% 22%, rgba(255, 244, 230, 0.55) 98%, transparent 100%),
    radial-gradient(1px 1px at 19% 8%, rgba(255, 244, 230, 0.45) 98%, transparent 100%),
    radial-gradient(1px 1px at 24% 40%, rgba(255, 244, 230, 0.5) 98%, transparent 100%),
    radial-gradient(1px 1px at 32% 76%, rgba(255, 244, 230, 0.45) 98%, transparent 100%),
    radial-gradient(1px 1px at 42% 22%, rgba(255, 244, 230, 0.52) 98%, transparent 100%),
    radial-gradient(1px 1px at 48% 64%, rgba(255, 244, 230, 0.46) 98%, transparent 100%),
    radial-gradient(1px 1px at 60% 10%, rgba(255, 244, 230, 0.42) 98%, transparent 100%),
    radial-gradient(1px 1px at 69% 38%, rgba(255, 244, 230, 0.5) 98%, transparent 100%),
    radial-gradient(1px 1px at 78% 60%, rgba(255, 244, 230, 0.47) 98%, transparent 100%),
    radial-gradient(1px 1px at 86% 24%, rgba(255, 244, 230, 0.44) 98%, transparent 100%),
    radial-gradient(1px 1px at 95% 72%, rgba(255, 244, 230, 0.48) 98%, transparent 100%);
  opacity: 0.75;
  animation:
    star-drift-far 34s ease-in-out infinite alternate,
    twinkle 5s ease-in-out infinite alternate;
}

.audience-scene {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.audience-content {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: min(52vw, 820px);
  transform: translate(-50%, -50%);
  color: #eef8ff;
  text-align: center;
}

.audience-kicker {
  margin-bottom: clamp(8px, 1.1vh, 14px);
  color: #d7bd79;
  font: 700 clamp(10px, 0.75vw, 13px) / 1.2 system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.audience-title {
  color: #f3f8fb;
  font: 650 clamp(24px, 2.4vw, 44px) / 1.12 system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.audience-subtitle {
  margin-top: clamp(10px, 1.2vh, 16px);
  color: rgba(220, 237, 248, 0.88);
  font: 450 clamp(13px, 1vw, 18px) / 1.5 system-ui, sans-serif;
}

.audience-grid {
  margin-top: clamp(18px, 3.6vh, 38px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 16px);
}

.audience-grid button {
  min-height: clamp(50px, 6.5vh, 72px);
  padding: 10px 12px;
  border: 1px solid rgba(216, 239, 255, 0.3);
  border-radius: 12px;
  color: #e7f5ff;
  background: linear-gradient(145deg, rgba(18, 31, 42, 0.42), rgba(4, 8, 14, 0.28));
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font: 600 clamp(11px, 0.85vw, 15px) / 1.35 system-ui, sans-serif;
  cursor: pointer;
  transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.audience-grid button:hover,
.audience-grid button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(224, 185, 93, 0.95);
  background: linear-gradient(145deg, rgba(26, 43, 57, 0.65), rgba(7, 13, 21, 0.48));
  box-shadow:
    0 0 0 1px rgba(224, 185, 93, 0.22),
    0 0 18px rgba(224, 185, 93, 0.26),
    0 8px 24px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 247, 213, 0.12);
}

.audience-copy {
  margin-top: clamp(18px, 3vh, 34px);
  color: rgba(225, 240, 249, 0.9);
  font: 450 clamp(12px, 0.92vw, 16px) / 1.65 system-ui, sans-serif;
}

.audience-copy p:last-child {
  margin-top: 5px;
  color: #f0d69a;
  font-weight: 650;
}

.audience-copy .audience-copy-heading {
  color: #f0d69a;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.audience-copy .audience-copy-world {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.5em;
  color: #f5dc9c;
  font-size: 1.22em;
  font-weight: 800;
}

.audience-copy .audience-copy-world::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  min-width: 170px;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(
      to bottom,
      #ff9933 0 33.33%,
      rgba(255, 255, 255, 0.92) 33.33% 66.66%,
      #138808 66.66% 100%
    );
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  transform: translateX(-50%);
}

.section-three-credit {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: rgba(220, 236, 247, 0.56);
  font: 500 clamp(10px, 0.72vw, 12px) / 1.2 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.section-three-credit span {
  color: rgba(240, 214, 154, 0.88);
  font-weight: 700;
}

.section-three .audience-saturn {
  top: 7%;
  right: 5%;
  width: clamp(260px, 28vw, 440px);
}

.section-three .audience-venus {
  left: 7%;
  bottom: 5%;
  width: clamp(120px, 13vw, 205px);
}

.section-three-contact-button {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 26px));
  min-height: 42px;
  padding: 0 24px;
  border: 1px solid rgba(240, 214, 154, 0.44);
  border-radius: 8px;
  color: #f5dc9c;
  background: rgba(4, 8, 14, 0.58);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font: 800 12px / 1 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.section-three-contact-button:hover,
.section-three-contact-button:focus-visible {
  border-color: rgba(255, 229, 171, 0.8);
  background: rgba(35, 25, 15, 0.72);
  transform: translate(-50%, -1px);
}

@media (max-width: 900px) {
  .audience-content {
    top: 50%;
    width: min(72vw, 680px);
  }

  .section-three .audience-saturn {
    top: 3%;
    right: -6%;
    width: clamp(210px, 37vw, 330px);
  }

  .section-three .audience-venus {
    left: 1%;
    bottom: 3%;
    width: clamp(95px, 18vw, 145px);
  }
}

@media (max-width: 640px) {
  .audience-content {
    top: 49%;
    left: 50%;
    width: 88vw;
  }

  .audience-title {
    font-size: clamp(19px, 5.8vw, 28px);
  }

  .audience-subtitle {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .audience-grid {
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .audience-grid button {
    min-height: 48px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.25;
  }

  .audience-grid button:nth-child(9):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 4px);
  }

  .audience-copy {
    margin-top: 14px;
    font-size: 10px;
    line-height: 1.35;
  }

  .section-three-contact-button {
    bottom: max(26px, calc(env(safe-area-inset-bottom) + 20px));
    min-height: 36px;
    padding: 0 18px;
    font-size: 10px;
  }

  .section-three-credit {
    bottom: max(4px, env(safe-area-inset-bottom));
    font-size: 9px;
  }

  .section-three .audience-saturn {
    top: calc(1% + 100px);
    right: calc(-8% - 30px);
    width: clamp(155px, 45vw, 230px);
  }

  .section-three .audience-saturn .saturn-ring {
    width: 220px;
    height: 71px;
  }

  .section-three .audience-venus {
    left: -3%;
    bottom: calc(1% + 100px);
    width: clamp(78px, 23vw, 108px);
  }
}

.space-scene {
  position: relative;
  z-index: 1;
  width: min(88vw, 88vh, 940px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

#globe {
  position: absolute;
  z-index: 5;
  top: calc(50% - 50px);
  left: 50%;
  width: min(93.6vw, 93.6vh, 988px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  filter: drop-shadow(0 0 52px rgba(158, 102, 79, 0.34));
  transition:
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 520ms ease;
}

#globe,
#globe canvas {
  pointer-events: none;
}

#globe canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  cursor: default;
  filter:
    brightness(1.45)
    contrast(0.90)
    saturate(1.08)
    drop-shadow(0 0 3px rgba(0, 0, 0, 1))
    drop-shadow(0 0 5px rgba(0, 0, 0, 0.88));
}

/* Startup sequence: the globe pops in first, then its controls appear. */
.space-scene.is-earth-intro #globe {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.68);
}

.space-scene.is-earth-intro.is-earth-visible #globe {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Five equal rows are clipped to the visible circular Earth. */
.earth-buttons {
  position: absolute;
  z-index: 6;
  top: calc(50% - 50px);
  left: 50%;
  width: min(65vw, 65vh, 685px);
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  pointer-events: auto;
  touch-action: pan-y;
  transition:
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms ease;
}

.space-scene.is-earth-intro .earth-buttons {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  pointer-events: none;
}

.space-scene.is-earth-intro.is-buttons-visible .earth-buttons {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.earth-buttons button {
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: rgba(3, 10, 18, 0.04);
  color: #d8efff;
  font: 600 clamp(13px, 1.15vw, 18px) / 1.2 system-ui, sans-serif;
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px rgba(8, 27, 42, 0.95);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.earth-buttons button + button {
  border-top: 1px solid rgba(216, 239, 255, 0.065);
}

.earth-buttons button:hover,
.earth-buttons button:focus-visible {
  background: rgba(2, 6, 12, 0.68);
  color: #eef9ff;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 8px rgba(0, 0, 0, 0.28),
    0 0 14px rgba(0, 0, 0, 0.18);
}

.earth-buttons button:focus-visible {
  outline: 2px solid rgba(216, 239, 255, 0.85);
  outline-offset: -4px;
}


/* Expanded Earth preview uses a moon-like curved partition instead of a straight cut. */
.earth-preview {
  position: absolute;
  z-index: 7;
  top: calc(50% - 50px);
  left: 50%;
  width: min(65vw, 65vh, 685px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease,
    visibility 0s linear 560ms;
}

.earth-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(244, 250, 255, 0.1) 0%,
    rgba(244, 250, 255, 0.065) 17%,
    rgba(244, 250, 255, 0.025) 31%,
    transparent 42%
  );
  pointer-events: none;
}

.earth-preview-partition {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 88% 10% at 50% 10%, rgba(208, 230, 245, 0.22), transparent 66%),
    linear-gradient(180deg, rgba(3, 7, 12, 0.18) 0%, rgba(3, 7, 12, 0.68) 60%, rgba(0, 0, 0, 0.86) 100%);
  clip-path: ellipse(91% 90% at 50% 100%);
  filter: blur(5px);
  transform: scale(1.015);
  box-shadow:
    inset 0 2px 0 rgba(197, 226, 246, 0.32);
  pointer-events: none;
}

.earth-preview-partition::before {
  content: none;
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 235, 255, 0.34), transparent);
  box-shadow:
    0 62px 0 rgba(210, 235, 255, 0.1),
    0 124px 0 rgba(210, 235, 255, 0.07);
}

.earth-preview-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  bottom: 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 0;
  color: #e8f6ff;
  text-align: center;
}

.earth-preview-copy {
  position: relative;
  width: 70%;
  max-width: 70%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 4%, 30px) 6px 34%;
  scroll-padding-bottom: 34%;
  scrollbar-width: none;
}

.earth-preview-kicker {
  margin-bottom: 0.72rem;
  color: rgba(223, 241, 255, 0.82);
  font: 700 clamp(10px, 0.72vw, 12px) / 1.2 system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.earth-preview-title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 0.95rem;
  padding-bottom: 0.38rem;
  color: #f2d3a4;
  font: 750 clamp(16px, 1.35vw, 24px) / 1.16 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.earth-preview-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 220px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(242, 211, 164, 0.95), transparent);
  box-shadow: 0 0 10px rgba(242, 211, 164, 0.32);
  transform: translateX(-50%);
}

.earth-preview-text {
  display: block;
  color: rgba(224, 241, 252, 0.9);
  font: 500 clamp(10px, 0.82vw, 13px) / 1.36 system-ui, sans-serif;
  text-align: justify;
  white-space: normal;
  text-wrap: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.82);
}

.earth-preview-paragraph,
.earth-preview-subheading,
.earth-preview-highlight {
  display: block;
}

.earth-preview-paragraph {
  margin-top: 0.72em;
  text-align: justify;
  text-align-last: center;
}

.earth-preview-subheading + .earth-preview-paragraph {
  margin-top: 0;
}

.earth-preview-highlight {
  margin: 0.24em auto 0;
  color: #f2d3a4;
  text-align: center;
  font-weight: 720;
  font-size: 1.06em;
  line-height: 1.16;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.78);
}

.earth-preview-highlight + .earth-preview-highlight {
  margin-top: 0.12em;
}

.earth-preview-paragraph + .earth-preview-highlight {
  margin-top: 0.72em;
}

.earth-preview-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0.9rem auto 0;
  padding: 0 16px;
  border: 1px solid rgba(242, 211, 164, 0.46);
  border-radius: 8px;
  color: #f2d3a4;
  background: rgba(3, 9, 16, 0.58);
  font: 800 clamp(9px, 0.72vw, 12px) / 1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.earth-preview-contact:hover,
.earth-preview-contact:focus-visible {
  border-color: rgba(255, 230, 177, 0.82);
  color: #fff2ce;
  background: rgba(55, 37, 18, 0.72);
}

.earth-preview-subheading {
  width: fit-content;
  max-width: 100%;
  margin: 1em auto 0;
  padding-bottom: 0.14rem;
  color: #f2d3a4;
  text-align: center;
  font-weight: 750;
  font-size: 1.12em;
  line-height: 1.18;
  letter-spacing: 0.025em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.78);
}



.earth-preview-copy::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.earth-preview-copy::-webkit-scrollbar-thumb {
  background: transparent;
}

.earth-preview-copy::-webkit-scrollbar-track {
  background: transparent;
}

.earth-preview-close {
  display: none;
}

@media (max-width: 640px) {
  .earth-preview-copy {
    padding-top: clamp(16px, 4%, 24px);
    padding-bottom: 42%;
    scroll-padding-bottom: 42%;
  }

}

.space-scene.is-earth-expanded #globe,
.space-scene.is-earth-expanded .earth-buttons,
.space-scene.is-earth-expanded .earth-preview {
  transform: translate(-50%, -50%) scale(1.25);
}

.space-scene.is-earth-expanded .earth-buttons {
  opacity: 0;
  pointer-events: none;
}

.space-scene.is-earth-expanded .earth-preview {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Large Saturn inspired by the provided reference. The rings stay still. */
.saturn {
  position: absolute;
  z-index: 2;
  top: -1%;
  right: calc(-22% - 30px);
  width: clamp(260px, 31vw, 430px);
  aspect-ratio: 1.75;
  pointer-events: none;
  transform: rotate(-8deg);
  filter: drop-shadow(14px 18px 14px rgba(0, 0, 0, 0.38));
}

.saturn-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    transparent 46%,
    rgba(225, 205, 185, 0.5) 50%,
    rgba(225, 205, 185, 0.25) 62%,
    rgba(225, 205, 185, 0.05) 75%,
    transparent 80%
  );
  pointer-events: none;
}

.saturn-ring-back {
  z-index: 1;
  clip-path: inset(50% 0 0 0);
}

.saturn-planet {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 45%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: #b68d63;
  background-image: url("assets/saturn-body.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
  box-shadow:
    inset 18px 6px 24px rgba(255, 226, 184, 0.16),
    inset -29px -12px 34px rgba(26, 9, 7, 0.68),
    inset 0 -8px 18px rgba(31, 9, 7, 0.38),
    0 0 25px rgba(197, 97, 52, 0.16);
  animation: saturn-surface-rotation 18s linear infinite;
}

.saturn-planet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 31% 42%, rgba(48, 16, 10, 0.26) 0 3%, transparent 5%),
    radial-gradient(circle at 67% 22%, rgba(255, 177, 105, 0.2) 0 3%, transparent 5%),
    linear-gradient(90deg, rgba(255, 214, 160, 0.12), transparent 35%, rgba(12, 4, 4, 0.38));
  mix-blend-mode: soft-light;
}

.saturn-planet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 15px 4px 18px rgba(255, 220, 170, 0.12),
    inset -22px -8px 26px rgba(0, 0, 0, 0.42);
}

/* The raised upper/front arc crosses in front of the sphere. */
.saturn-ring-front {
  z-index: 4;
  clip-path: inset(0 0 50% 0);
}


/* Venus sits opposite Saturn, behind the centered Earth. */
.venus {
  position: absolute;
  z-index: 2;
  left: calc(-6% + 10px);
  bottom: calc(7% + 60px);
  width: clamp(98px, 11.625vw, 162px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
  background: #b56b35;
  transform: rotate(-10deg);
  filter: drop-shadow(-8px 12px 14px rgba(0, 0, 0, 0.34));
}

.venus-texture {
  position: absolute;
  inset: 0 auto 0 0;
  width: 800%;
  height: 100%;
  background-image: url("assets/venus-body-seamless.jpg");
  background-repeat: repeat-x;
  background-size: 50% 100%;
  background-position: 0 0;
  will-change: transform;
  animation: venus-surface-rotation 24s linear infinite;
}

.venus-shadow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 31% 28%,
    rgba(255, 237, 191, 0.22) 0 12%,
    transparent 38%,
    rgba(48, 17, 8, 0.48) 72%,
    rgba(8, 3, 2, 0.82) 100%
  );
  box-shadow:
    inset 10px 7px 17px rgba(255, 229, 175, 0.14),
    inset -20px -13px 26px rgba(0, 0, 0, 0.52);
}



/* Circular corner controls */
.global-corner-actions {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.corner-actions {
  position: fixed;
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.corner-actions-top-left {
  top: max(24px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
}

.corner-actions-lower-right {
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
}

.corner-action-button {
  --button-bg: rgba(18, 20, 26, 0.88);
  --button-color: #f7fbff;
  --button-glow: rgba(255, 255, 255, 0.28);
  width: clamp(42px, 4.2vw, 56px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--button-color) 52%, transparent);
  border-radius: 50%;
  color: var(--button-color);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16), transparent 38%),
    var(--button-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 9px var(--button-glow),
    0 0 18px color-mix(in srgb, var(--button-glow) 60%, transparent);
  backdrop-filter: blur(7px);
  cursor: pointer;
  transition:
    transform 170ms ease,
    filter 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease;
}

.corner-action-icon {
  width: 52%;
  height: 52%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--button-color) 55%, transparent));
}

.corner-action-flag {
  --button-bg: linear-gradient(145deg, #35134f, #1e0d31);
  --button-color: #b47cff;
  --button-glow: rgba(139, 76, 224, 0.58);
}

.corner-action-fire {
  --button-bg: linear-gradient(145deg, #5b170d, #24100d);
  --button-color: #ff6a2b;
  --button-glow: rgba(255, 72, 26, 0.58);
}

.corner-action-game {
  --button-bg: linear-gradient(145deg, #123f5d, #081d2d);
  --button-color: #67d9ff;
  --button-glow: rgba(69, 196, 255, 0.62);
}

.corner-action-drop {
  --button-bg: linear-gradient(145deg, #554611, #241f0c);
  --button-color: #ffd84d;
  --button-glow: rgba(255, 210, 56, 0.56);
}

.corner-action-help {
  --button-bg: linear-gradient(145deg, #2f1b48, #15101f);
  --button-color: #d6b2ff;
  --button-glow: rgba(155, 101, 224, 0.55);
}

.corner-action-button:hover,
.corner-action-button:focus-visible {
  transform: scale(1.08);
  filter: brightness(1.14);
  border-color: color-mix(in srgb, var(--button-color) 82%, white 18%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 12px var(--button-glow),
    0 0 24px color-mix(in srgb, var(--button-glow) 72%, transparent);
}

.corner-action-button:focus-visible {
  outline: 2px solid rgba(216, 239, 255, 0.8);
  outline-offset: 3px;
}

@keyframes venus-surface-rotation {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes saturn-surface-rotation {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 632px 0;
  }
}

@keyframes star-drift-near {
  from {
    transform: translate3d(-0.35%, -0.25%, 0) scale(1.015);
  }
  to {
    transform: translate3d(0.45%, 0.35%, 0) scale(1.025);
  }
}

@keyframes star-drift-far {
  from {
    transform: translate3d(0.3%, -0.2%, 0) scale(1.01);
  }
  to {
    transform: translate3d(-0.4%, 0.3%, 0) scale(1.02);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 0.9;
  }
}

@media (max-width: 900px) {
  .section-one-brand {
    top: clamp(82px, 10vh, 108px);
    left: 50%;
    width: min(62vw, 360px);
    max-width: none;
    text-align: center;
    font-size: clamp(21px, 2.8vw, 28px);
    line-height: 1.08;
    transform: translateX(-50%);
  }

  .section-one-mantra {
    left: 50%;
    right: auto;
    bottom: clamp(142px, 16vh, 182px);
    width: min(60vw, 390px);
    max-width: none;
    text-align: center;
    font-size: clamp(13px, 1.9vw, 18px);
    line-height: 1.24;
    transform: translateX(-50%);
  }

  .saturn {
    top: 2%;
    right: calc(-12% - 30px);
    width: clamp(210px, 38vw, 330px);
  }

  .saturn-ring {
    width: 330px;
    height: 94px;
  }

  .venus {
    left: calc(-2% + 10px);
    bottom: calc(10% + 60px);
    width: clamp(80px, 14.25vw, 125px);
  }
}

@media (max-width: 640px) {
  .section-two-button {
    padding: 18px;
    font-size: clamp(14px, 4.2vw, 20px);
    letter-spacing: 0.04em;
  }

  .section-two-button-embed {
    transform: translate(-50%, -50%) scale(1.025);
  }

  .corner-actions {
    gap: 8px;
  }

  .corner-actions-top-left {
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
  }

  .corner-actions-lower-right {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .corner-action-button {
    width: clamp(38px, 11vw, 46px);
    font-size: 10px;
  }

  .section-one-brand,
  .section-one-mantra {
    max-width: none;
    text-align: center;
  }

  .section-one-brand {
    top: 104px;
    left: 50%;
    right: auto;
    width: min(72vw, 260px);
    font-size: clamp(16px, 4.45vw, 19px);
    line-height: 1.04;
    letter-spacing: 0.04em;
    transform: translateX(-50%);
  }

  .section-one-brand p + p {
    font-size: 0.68em;
  }

  .section-one-mantra {
    left: 50%;
    right: auto;
    bottom: max(142px, calc(env(safe-area-inset-bottom) + 132px));
    width: min(68vw, 260px);
    font-size: clamp(9px, 2.65vw, 12px);
    line-height: 1.16;
    transform: translateX(-50%);
  }

  .space-scene {
    width: min(96vw, 78vh);
  }

  .section-one-cta {
    bottom: max(42px, calc(env(safe-area-inset-bottom) + 34px));
    gap: 6px;
    width: min(60vw, 240px);
  }

  .section-one-cta-button {
    width: min(100%, 180px);
    min-height: 40px;
    padding: 9px 20px;
    font-size: clamp(11px, 3vw, 14px);
  }

  .section-one-cta-who {
    border-width: 1px;
    border-color: rgba(216, 239, 255, 0.26);
  }

  .section-one-cta-explore {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 5px 18px 0;
  }

  .section-one-cta-explore::after {
    position: static;
    font-size: 20px;
    transform: rotate(90deg);
  }

  #globe {
    width: min(114.4vw, 80.6vh, 988px);
  }

  .earth-buttons,
  .earth-preview {
    width: min(79.3vw, 55.9vh, 685px);
  }

  .earth-buttons button {
    font-size: clamp(11px, 3.2vw, 15px);
  }

  .section-one .saturn {
    top: calc(2% - 100px);
    right: calc(-8% - 30px);
    width: clamp(155px, 45vw, 230px);
  }

  .section-one .saturn-ring {
    width: 220px;
    height: 71px;
  }

  .section-one .venus {
    left: calc(2% + 10px);
    bottom: calc(8% + 60px - 50px);
    width: clamp(59px, 16.875vw, 87px);
  }
}

@media (max-width: 430px) and (max-height: 720px) {
  .section-one-brand {
    top: 78px;
    width: min(68vw, 245px);
    font-size: clamp(15px, 4.3vw, 17px);
    line-height: 1.02;
  }

  .section-one-mantra {
    bottom: max(134px, calc(env(safe-area-inset-bottom) + 124px));
    width: min(66vw, 248px);
    font-size: clamp(9px, 2.55vw, 11px);
    line-height: 1.13;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page {
    scroll-behavior: auto;
  }

  .space-scene.is-earth-intro #globe,
  .space-scene.is-earth-intro .earth-buttons {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
  }

  .section-one::before,
  .section-one::after,
  .saturn-planet,
  .venus-texture {
    animation: none;
  }

  #globe,
  .earth-buttons,
  .earth-preview,
  .section-one-cta,
  .section-one-cta-button,
  .corner-action-button {
    transition: none;
  }
}


/* Section 2 centered popup, sized to three quarters of the viewport. */
.section-two-popup {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.section-two-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.section-two-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}

.section-two-popup-dialog {
  position: relative;
  z-index: 1;
  width: 75vw;
  height: 75vh;
  max-width: 1180px;
  max-height: 820px;
  overflow: hidden;
  display: grid;
  align-content: stretch;
  justify-items: start;
  padding: 0;
  border: 0;
  border-radius: clamp(14px, 1.8vw, 24px);
  color: #eaf7ff;
  text-align: left;
  background:
    radial-gradient(circle at 50% 8%, rgba(213, 239, 255, 0.18), transparent 40%),
    linear-gradient(145deg, rgba(156, 196, 224, 0.15), rgba(5, 12, 20, 0.34));
  -webkit-backdrop-filter: blur(28px) saturate(1.28) brightness(1.05);
  backdrop-filter: blur(28px) saturate(1.28) brightness(1.05);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16);
  transform: scale(0.94) translateY(16px);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-two-popup.is-open .section-two-popup-dialog {
  transform: scale(1) translateY(0);
}

.section-two-popup-content {
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: clamp(34px, 6vw, 86px);
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 198, 155, 0.42) rgba(255, 255, 255, 0.04);
}

.section-two-popup-content::-webkit-scrollbar {
  width: 8px;
}

.section-two-popup-content::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.section-two-popup-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(240, 199, 125, 0.52), rgba(120, 179, 203, 0.36));
}

.section-two-popup-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(240, 199, 125, 0.72), rgba(120, 179, 203, 0.5));
}

.section-two-popup-kicker {
  margin-bottom: 14px;
  color: rgba(205, 233, 251, 0.72);
  font: 700 clamp(10px, 0.8vw, 13px) / 1.2 system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-two-popup-title {
  margin-bottom: 18px;
  color: #f1f9ff;
  font: 750 clamp(28px, 4vw, 60px) / 1.05 system-ui, sans-serif;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.section-two-popup-text {
  width: min(100%, 920px);
  color: rgba(222, 239, 250, 0.88);
  font: 550 clamp(14px, 1.15vw, 19px) / 1.62 system-ui, sans-serif;
  text-align: center;
}

.section-two-popup-text p {
  margin: 0 0 14px;
  text-align: left;
}

.section-two-popup-text ul {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding-left: 1.25em;
  text-align: left;
}

.section-two-popup-text li::marker {
  color: #f0c77d;
}

.section-two-popup-section-heading {
  margin-top: 18px !important;
  margin-bottom: 9px !important;
  color: #f2f8fb;
  text-align: left;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.section-two-popup-callout {
  margin-top: 20px !important;
  padding: 14px 18px;
  border: 1px solid rgba(219, 172, 102, 0.28);
  border-radius: 12px;
  color: rgba(238, 243, 246, 0.94);
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-two-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  margin: 8px 5px 0;
  padding: 0 18px;
  border: 1px solid rgba(242, 199, 125, 0.46);
  border-radius: 8px;
  color: #f6d89d;
  background: rgba(12, 18, 24, 0.54);
  font: 800 13px / 1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.section-two-popup-cta:hover,
.section-two-popup-cta:focus-visible {
  border-color: rgba(255, 221, 151, 0.82);
  color: #fff5d9;
  background: rgba(75, 54, 28, 0.72);
  transform: translateY(-1px);
}

.section-two-popup-close {
  position: absolute;
  top: clamp(14px, 2vw, 26px);
  right: clamp(14px, 2vw, 26px);
  width: clamp(40px, 4vw, 54px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #eef9ff;
  background: rgba(218, 240, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 400 clamp(26px, 2.4vw, 34px) / 1 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.section-two-popup-close:hover,
.section-two-popup-close:focus-visible {
  background: rgba(218, 240, 255, 0.22);
  transform: rotate(6deg);
}

.section-two-popup-close:focus-visible,
.section-two-popup-dialog:focus-visible {
  outline: 2px solid rgba(216, 239, 255, 0.9);
  outline-offset: 4px;
}

body.section-two-popup-open .page {
  overflow-y: hidden;
}

@media (max-width: 640px) {
  .section-two-popup-dialog {
    width: 84vw;
    height: 75vh;
    align-content: start;
  }

  .section-two-popup-content {
    padding: 34px 22px 30px;
    scrollbar-width: none;
  }

  .section-two-popup-content::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .section-two-popup-title {
    font-size: clamp(24px, 7.2vw, 34px);
  }

  .section-two-popup-text {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* Section-two reference-style labels */
.section-two-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(18px, 2.4vw, 34px);
  text-align: center;
}

.section-two-label {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  justify-self: center;
  width: clamp(260px, 36vw, 410px);
  max-width: 78%;
  min-height: clamp(92px, 9vw, 130px);
  align-content: center;
  justify-items: center;
  padding: clamp(13px, 1.35vw, 20px) clamp(16px, 1.8vw, 28px);
  border: 1px solid var(--section-accent-soft);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--section-label-bg), var(--section-label-bg-2));
  backdrop-filter: blur(8px) saturate(0.92);
  -webkit-backdrop-filter: blur(8px) saturate(0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.18),
    0 0 18px color-mix(in srgb, var(--section-accent) 18%, transparent);
  text-transform: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.section-two-label-kicker {
  color: var(--section-accent);
  font: 800 clamp(10px, 0.86vw, 14px) / 1.1 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-two-label-title {
  color: #f4f4f2;
  font: 700 clamp(18px, 1.75vw, 30px) / 1.18 system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.section-two-button:hover .section-two-label,
.section-two-button:focus-visible .section-two-label {
  background: linear-gradient(135deg, color-mix(in srgb, var(--section-label-bg) 86%, black), color-mix(in srgb, var(--section-label-bg-2) 88%, black));
  transform: translateY(-2px);
}

/* Coded arch logo centered over the four panels. */
.section-two-logo {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: clamp(130px, 18vw, 250px);
  aspect-ratio: 4 / 5;
  border: clamp(3px, 0.45vw, 6px) solid rgba(246, 246, 242, 0.93);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.32));
}

.section-two-logo-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.section-two-logo-shape,
.section-two-logo-mask,
.section-two-logo-tri-down-inner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.section-two-logo-shape {
  background: rgba(246, 246, 242, 0.93);
}

.section-two-logo-tri-up {
  top: 11%;
  width: 50%;
  height: 35%;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.section-two-logo-mask {
  top: 33%;
  width: 76%;
  height: 5%;
  background: rgba(13, 16, 18, 0.86);
}

.section-two-logo-line {
  height: 2.2%;
}

.section-two-logo-line-top {
  top: 34%;
  width: 70%;
}

.section-two-logo-line-middle {
  top: 49%;
  width: 90%;
}

.section-two-logo-tri-down-outer {
  top: 55%;
  width: 50%;
  height: 35%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.section-two-logo-tri-down-inner {
  top: 57%;
  width: 43%;
  height: 30%;
  background: rgba(13, 16, 18, 0.86);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.section-two-logo-line-bottom {
  top: 65%;
  width: 70%;
}

@media (max-width: 640px) {
  .section-two-button {
    padding: 10px;
  }

  .section-two-label {
    width: clamp(142px, 72%, 280px);
    max-width: 86%;
    min-height: clamp(74px, 18vw, 92px);
    padding: 10px 12px;
    border-radius: 9px;
  }

  .section-two-label-kicker {
    font-size: clamp(9px, 2.5vw, 11px);
  }

  .section-two-label-title {
    font-size: clamp(15px, 4.2vw, 20px);
  }

  .section-two-logo {
    width: clamp(92px, 28vw, 128px);
    border-width: 3px;
  }
}

.section-two-logo { display: none !important; }

@media (max-width: 768px) {
  .section-two-logo-image {
    width: clamp(120px, 28vw, 180px);
    max-width: 38vw;
  }
}


.section-two-button {
  cursor: pointer;
  pointer-events: auto;
}

.section-two-label,
.section-two-label * {
  pointer-events: none;
}

.section-two-logo-image {
  pointer-events: none;
}

/* Extinguisher game modal */
.exgModal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.exgModal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.exgBackdrop { position: absolute; inset: 0; border: 0; background: rgba(2,5,10,.68); backdrop-filter: blur(18px); }
.exgShell {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  height: min(88vh, 760px);
  overflow: hidden;
  border-radius: 26px;
  color: #f5fbff;
  background: linear-gradient(145deg, rgba(21,32,42,.93), rgba(7,12,18,.96));
  box-shadow: 0 34px 110px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.08);
}
.exgClose { position:absolute; top:16px; right:16px; z-index:5; width:44px; aspect-ratio:1; border:0; border-radius:50%; color:#fff; background:rgba(255,255,255,.1); font-size:28px; cursor:pointer; }
.exgScreen { width:100%; height:100%; padding: clamp(28px,5vw,64px); }
.exgScreen[hidden] { display: none !important; }
.exgIntro, .exgEnd { display:grid; align-content:center; justify-items:center; text-align:center; gap:20px; }
.exgIntro h2, .exgEnd h2 { font: 750 clamp(34px,6vw,72px)/1 system-ui,sans-serif; }
.exgIntro p, .exgEnd p { max-width:680px; color:rgba(232,245,255,.82); font: 400 clamp(15px,1.5vw,20px)/1.6 system-ui,sans-serif; }
.exgKicker { color:#ffb36b!important; text-transform:uppercase; letter-spacing:.18em; font-size:12px!important; font-weight:800!important; }
.exgPrimary,.exgSecondary { min-width:150px; padding:13px 22px; border-radius:12px; font:700 14px/1 system-ui,sans-serif; cursor:pointer; }
.exgPrimary { border:1px solid rgba(255,153,82,.72); color:#fff; background:linear-gradient(145deg,#b52d16,#5d130c); box-shadow:0 0 24px rgba(255,76,34,.25); }
.exgSecondary { border:1px solid rgba(223,239,255,.24); color:#e8f6ff; background:rgba(255,255,255,.06); }
.exgEndActions { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.exgPlay { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; gap:12px; padding:20px; }
.exgHud { display:flex; justify-content:space-between; gap:16px; padding-right:60px; }
.exgHud div { display:grid; gap:2px; }
.exgHud span { color:rgba(220,239,250,.65); font-size:11px; text-transform:uppercase; letter-spacing:.12em; }
.exgHud strong { font-size:24px; }
.exgSteps { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.exgStep { padding:9px 10px; border-radius:999px; text-align:center; color:rgba(230,242,250,.55); background:rgba(255,255,255,.05); font:700 11px/1 system-ui,sans-serif; text-transform:uppercase; letter-spacing:.08em; }
.exgStep.active { color:#fff; background:rgba(221,62,31,.52); box-shadow:0 0 16px rgba(255,74,34,.22); }
.exgStep.done { color:#bff3cc; background:rgba(42,142,75,.28); }
.exgStage { position:relative; min-height:0; overflow:hidden; border-radius:18px; background:linear-gradient(#fff5e7,#e9cba8); cursor:crosshair; touch-action:none; }
#exgScene3d { width:100%; height:100%; display:block; }

.exgAimTarget {
  --aim-target-radius: 62px;
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 62%;
  width: calc(var(--aim-target-radius) * 2);
  height: calc(var(--aim-target-radius) * 2);
  transform: translate(-50%, -50%) scale(.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.exgAimTarget.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}

.exgAimTargetRing {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 213, 91, .96);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 234, 167, .86) 48% 52%, transparent 53%),
    linear-gradient(transparent 47%, rgba(255, 234, 167, .86) 48% 52%, transparent 53%),
    radial-gradient(circle, rgba(255, 196, 45, .17) 0 24%, transparent 25% 100%);
  box-shadow:
    0 0 0 7px rgba(255, 194, 38, .12),
    0 0 24px rgba(255, 176, 25, .78),
    inset 0 0 18px rgba(255, 217, 98, .34);
  animation: exg-aim-pulse 1.05s ease-in-out infinite alternate;
}

.exgAimTargetDot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #fff7d6;
  border-radius: 50%;
  background: #ffb21c;
  box-shadow: 0 0 13px rgba(255, 168, 0, .95);
  transform: translate(-50%, -50%);
}

.exgAimTargetLabel {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  min-width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff8db;
  background: rgba(80, 39, 0, .8);
  box-shadow: 0 0 14px rgba(255, 165, 0, .36);
  font: 800 10px/1 system-ui, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.exgAimTarget.is-locked .exgAimTargetRing {
  border-color: #8effac;
  box-shadow:
    0 0 0 7px rgba(81, 229, 125, .14),
    0 0 28px rgba(62, 239, 116, .84),
    inset 0 0 20px rgba(118, 255, 157, .42);
  animation: none;
}

.exgAimTarget.is-locked .exgAimTargetDot {
  background: #65ed8b;
  box-shadow: 0 0 15px rgba(87, 255, 135, .98);
}

.exgAimTarget.is-locked .exgAimTargetLabel {
  color: #eaffef;
  background: rgba(10, 82, 35, .88);
}

.exgAimTarget.is-locked .exgAimTargetLabel::after {
  content: " locked";
}

@keyframes exg-aim-pulse {
  from { transform: scale(.92); opacity: .72; }
  to { transform: scale(1.04); opacity: 1; }
}
.exgHint { min-height:24px; text-align:center; color:rgba(232,245,255,.82); font:600 14px/1.4 system-ui,sans-serif; }
.gameRank.gold { color:#ffd56a; }
.gameRank.bronze { color:#ff8d67; }
body.exg-open .page { overflow-y:hidden; }
@media (max-width:640px){
  .exgShell{ width:96vw; height:92vh; border-radius:18px; }
  .exgPlay{ padding:14px; }
  .exgSteps{ gap:5px; }
  .exgStep{ padding:8px 4px; font-size:9px; }
  .exgHud strong{ font-size:19px; }
}


/* Mobile game orientation prompt */
.mobile-landscape-prompt {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(2, 5, 12, 0.86);
  -webkit-backdrop-filter: blur(18px) brightness(0.72);
  backdrop-filter: blur(18px) brightness(0.72);
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.mobile-landscape-prompt.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mobile-landscape-prompt-card {
  width: min(88vw, 360px);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: #f4fbff;
}

.mobile-landscape-phone {
  width: 74px;
  height: 118px;
  border: 4px solid rgba(143, 222, 255, 0.88);
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(91, 195, 255, 0.26);
  transform: rotate(90deg);
}

.mobile-landscape-kicker {
  color: #ffb36b;
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-landscape-title {
  max-width: 280px;
  color: rgba(235, 247, 255, 0.92);
  font: 800 22px/1.18 system-ui, sans-serif;
}

body.mobile-landscape-prompt-open .page {
  overflow-y: hidden;
}

@media (max-width: 768px) and (orientation: portrait) {
  .spot-game-modal.is-mobile-landscape,
  .exgModal.is-mobile-landscape {
    padding: 0;
  }

  .spot-game-modal.is-mobile-landscape .spot-game-shell,
  .exgModal.is-mobile-landscape .exgIframeShell {
    width: 100dvh;
    height: 100dvw;
    max-width: none;
    max-height: none;
    border-radius: 0;
    transform: rotate(90deg);
  }

  .spot-game-modal.is-mobile-landscape .spot-game-close,
  .exgModal.is-mobile-landscape .exgClose {
    top: 10px;
    right: 10px;
  }
}


/* The game runs in an isolated frame so Globe.gl and the game share no Three.js runtime. */
.exgIframeShell {
  padding: 0;
  overflow: hidden;
}

.exgGameFrame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.exgIframeShell > .exgClose {
  z-index: 10;
}

.exgStandaloneBody {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: transparent;
}

.exgStandaloneShell {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.exgLoadStatus {
  margin: -8px 0 0;
  color: rgba(208, 232, 248, 0.68) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.exgLoadStatus.is-error { color: #ffb29c !important; }
.exgPrimary:disabled {
  cursor: wait;
  opacity: 0.58;
  filter: grayscale(0.25);
  box-shadow: none;
}


/* Final-section information popup */
.audience-popup {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.audience-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.audience-popup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 2, 10, 0.58);
  -webkit-backdrop-filter: blur(8px) brightness(0.72);
  backdrop-filter: blur(8px) brightness(0.72);
}

.audience-popup-card {
  position: relative;
  z-index: 1;
  width: min(88vw, 470px);
  max-height: min(78vh, 650px);
  overflow: auto;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(119, 91, 194, 0.34);
  border-radius: 18px;
  color: #f4f1ff;
  text-align: left;
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 79, 186, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(24, 18, 42, 0.94), rgba(8, 7, 20, 0.96));
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(117, 83, 190, 0.08),
    0 0 34px rgba(85, 48, 150, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(14px) scale(0.96);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.audience-popup.is-open .audience-popup-card {
  transform: translateY(0) scale(1);
}

.audience-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: rgba(241, 235, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font: 400 24px/1 system-ui, sans-serif;
  cursor: pointer;
}

.audience-popup-kicker {
  margin-bottom: 8px;
  color: #d8bc77;
  text-align: center;
  font: 750 10px/1.2 system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.audience-popup-title {
  margin: 0 auto 20px;
  max-width: 360px;
  color: #fbf9ff;
  text-align: center;
  font: 750 clamp(22px, 3vw, 34px)/1.1 system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.audience-popup-list {
  display: grid;
  gap: 9px;
  padding-left: 22px;
  color: rgba(232, 228, 244, 0.86);
  font: 500 13px/1.45 system-ui, sans-serif;
}

.audience-popup-list li::marker { color: #c6a560; }

.audience-popup-body {
  margin: 16px 0 0;
  color: rgba(232, 228, 244, 0.9);
  font: 500 13px/1.55 system-ui, sans-serif;
}

.audience-popup-divider {
  width: 100%;
  height: 1px;
  margin: 22px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(162, 136, 220, 0.35), transparent);
}

.audience-popup-label {
  margin-bottom: 10px;
  color: #baa7e3;
  text-align: center;
  font: 750 9px/1.2 system-ui, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.audience-popup-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.audience-popup-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(189, 173, 226, 0.2);
  border-radius: 999px;
  color: rgba(239, 234, 250, 0.84);
  background: rgba(255, 255, 255, 0.045);
  font: 600 9px/1 system-ui, sans-serif;
}

body.audience-popup-open .page { overflow-y: hidden; }

.contact-popup {
  position: fixed;
  z-index: 2300;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.contact-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.contact-popup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 2, 10, 0.62);
  -webkit-backdrop-filter: blur(8px) brightness(0.72);
  backdrop-filter: blur(8px) brightness(0.72);
}

.contact-popup-card {
  position: relative;
  z-index: 1;
  width: min(90vw, 560px);
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(240, 214, 154, 0.28);
  border-radius: 16px;
  color: #f4f1ff;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 214, 154, 0.14), transparent 44%),
    linear-gradient(145deg, rgba(24, 18, 42, 0.95), rgba(8, 7, 20, 0.97));
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(14px) scale(0.96);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.contact-popup.is-open .contact-popup-card {
  transform: translateY(0) scale(1);
}

.contact-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: rgba(241, 235, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font: 400 24px/1 system-ui, sans-serif;
  cursor: pointer;
}

.contact-popup-kicker {
  margin-bottom: 8px;
  color: #d8bc77;
  text-align: center;
  font: 750 10px/1.2 system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-popup-title {
  margin: 0 auto 22px;
  max-width: 420px;
  color: #fbf9ff;
  text-align: center;
  font: 750 clamp(24px, 3vw, 36px)/1.1 system-ui, sans-serif;
}

.contact-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.contact-popup-item,
.contact-popup-address {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-popup-item { text-align: center; }
.contact-popup-address { text-align: left; }

.contact-popup-item span,
.contact-popup-address span {
  display: block;
  margin-bottom: 7px;
  color: #f0d69a;
  font: 800 10px / 1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-popup-item a,
.contact-popup-address p {
  color: rgba(236, 248, 255, 0.92);
  font: 600 14px / 1.45 system-ui, sans-serif;
  text-decoration: none;
}

.contact-popup-address p + p {
  margin-top: 8px;
}

.contact-popup-item a:hover,
.contact-popup-item a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

body.contact-popup-open .page { overflow-y: hidden; }

@media (max-width: 640px) {
  .audience-popup-card {
    width: min(90vw, 440px);
    padding: 32px 24px 26px;
    border-radius: 15px;
  }

  .contact-popup-card {
    width: min(90vw, 420px);
    padding: 32px 22px 24px;
    border-radius: 15px;
  }

  .contact-popup-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-popup-item a,
  .contact-popup-address p {
    font-size: 12px;
  }
}

.section-three-credit a {
  color: rgba(240, 214, 154, 0.88);
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
}

.section-three-credit a:hover,
.section-three-credit a:focus-visible {
  color: #f7dea0;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Fire safety quiz modal — matched to the extinguisher game theme. */
.fire-quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.fire-quiz-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.fire-quiz-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 5, 10, 0.68);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.fire-quiz-shell {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  color: #f5fbff;
  background: linear-gradient(145deg, rgba(21, 32, 42, 0.96), rgba(7, 12, 18, 0.98));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fire-quiz-shell:focus-visible {
  outline: 2px solid rgba(255, 179, 107, 0.9);
  outline-offset: 4px;
}

.fire-quiz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: 400 28px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.fire-quiz-close:hover,
.fire-quiz-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(5deg);
  outline: 2px solid rgba(255, 179, 107, 0.85);
  outline-offset: 2px;
}

.fire-quiz-body {
  min-height: min(70vh, 650px);
}

.fire-quiz-screen {
  display: grid;
  gap: 16px;
}

.fire-quiz-screen-intro,
.fire-quiz-screen-result {
  min-height: min(70vh, 650px);
  align-content: center;
  justify-items: center;
  text-align: center;
}

.fire-quiz-screen-question,
.fire-quiz-screen-feedback {
  min-height: min(64vh, 570px);
  align-content: start;
}

.fire-quiz-screen-question {
  grid-template-rows: clamp(174px, 22vh, 196px) clamp(350px, 44vh, 390px);
}

.fire-quiz-screen-feedback {
  grid-template-rows: clamp(174px, 22vh, 196px) minmax(320px, 1fr);
}

.fire-quiz-kicker,
.fire-quiz-meta-block span,
.fire-quiz-step-heading,
.fire-quiz-feedback-heading {
  color: #ffb36b;
  font: 800 11px/1.2 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fire-quiz-title {
  color: #f5fbff;
  font: 750 clamp(34px, 6vw, 72px)/1 system-ui, sans-serif;
}

.fire-quiz-description,
.fire-quiz-feedback-text {
  max-width: 680px;
  color: rgba(232, 245, 255, 0.82);
  font: 400 clamp(15px, 1.5vw, 20px)/1.6 system-ui, sans-serif;
}

.fire-quiz-fixed-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 14px;
  height: clamp(174px, 22vh, 196px);
  min-height: clamp(174px, 22vh, 196px);
  align-content: start;
  padding: 2px 0 14px;
  background: linear-gradient(180deg, rgba(18, 28, 38, 0.995) 0%, rgba(13, 21, 29, 0.98) 78%, rgba(13, 21, 29, 0) 100%);
}

.fire-quiz-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-right: 60px;
}

.fire-quiz-meta-block {
  display: grid;
  gap: 2px;
}

.fire-quiz-meta-block strong {
  color: #f5fbff;
  font: 750 24px/1.1 system-ui, sans-serif;
}

.fire-quiz-scenario-text {
  height: clamp(92px, 12vh, 112px);
  min-height: clamp(92px, 12vh, 112px);
  display: flex;
  align-items: center;
  overflow: auto;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(223, 239, 255, 0.12);
  border-radius: 18px;
  color: #f5fbff;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font: 600 clamp(16px, 1.7vw, 22px)/1.45 system-ui, sans-serif;
}

.fire-quiz-step-block {
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  gap: 12px;
  height: clamp(350px, 44vh, 390px);
  min-height: clamp(350px, 44vh, 390px);
  overflow: hidden;
}

.fire-quiz-step-heading {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.fire-quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}

.fire-quiz-option {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(223, 239, 255, 0.16);
  border-radius: 12px;
  color: #e8f6ff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-align: left;
  font: 650 14px/1.45 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.fire-quiz-option:not(:disabled):hover {
  border-color: #ffd56a;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transform: none;
}

.fire-quiz-option:focus-visible {
  border-color: #ffd56a;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transform: none;
  outline: 2px solid rgba(255, 213, 106, 0.62);
  outline-offset: 2px;
}

.fire-quiz-option:disabled {
  cursor: default;
  transform: none;
}

.fire-quiz-option.is-selected {
  border-color: rgba(255, 153, 82, 0.82);
  background: rgba(181, 45, 22, 0.26);
  box-shadow: 0 0 18px rgba(255, 76, 34, 0.13);
}

.fire-quiz-option.is-correct {
  border-color: rgba(111, 232, 147, 0.88);
  background: rgba(42, 142, 75, 0.38);
  box-shadow: 0 0 18px rgba(77, 215, 118, 0.12);
}

.fire-quiz-option.is-incorrect {
  border-color: rgba(255, 112, 94, 0.9);
  background: rgba(181, 45, 22, 0.46);
  box-shadow: 0 0 18px rgba(255, 76, 34, 0.14);
}

.fire-quiz-option-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 239, 255, 0.18);
  border-radius: 8px;
  color: rgba(232, 246, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  font: 800 12px/1 system-ui, sans-serif;
}

.fire-quiz-option-label {
  min-width: 0;
}

.fire-quiz-option-state {
  color: #f5fbff;
  font: 800 10px/1.15 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fire-quiz-feedback-center {
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding-block: 18px;
}

.fire-quiz-feedback-card {
  width: min(100%, 720px);
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid rgba(255, 153, 82, 0.26);
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 103, 54, 0.11), transparent 58%),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px rgba(255, 76, 34, 0.08);
}

.fire-quiz-feedback-card .fire-quiz-feedback-text {
  margin-inline: auto;
}

.fire-quiz-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.fire-quiz-feedback-center .fire-quiz-actions {
  margin-top: 0;
}

.fire-quiz-actions-stack {
  flex-direction: column;
  align-items: center;
}

.fire-quiz-button {
  min-width: 150px;
  padding: 13px 22px;
  border-radius: 12px;
  font: 700 14px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.fire-quiz-button:hover,
.fire-quiz-button:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
  outline: 2px solid rgba(255, 179, 107, 0.75);
  outline-offset: 3px;
}

.fire-quiz-button-primary {
  border: 1px solid rgba(255, 153, 82, 0.72);
  color: #fff;
  background: linear-gradient(145deg, #b52d16, #5d130c);
  box-shadow: 0 0 24px rgba(255, 76, 34, 0.25);
}

.fire-quiz-button-secondary {
  border: 1px solid rgba(223, 239, 255, 0.24);
  color: #e8f6ff;
  background: rgba(255, 255, 255, 0.06);
}

.fire-quiz-scoreline {
  color: #ffd56a;
  font: 800 clamp(24px, 3vw, 38px)/1.1 system-ui, sans-serif;
  letter-spacing: 0.08em;
}

body.fire-quiz-open .page {
  overflow-y: hidden;
}

@media (max-width: 640px) {
  .fire-quiz-shell {
    width: 96vw;
    max-height: 92vh;
    padding: 22px 14px 16px;
    border-radius: 18px;
  }

  .fire-quiz-body {
    min-height: auto;
  }

  .fire-quiz-screen-question {
    grid-template-rows: 164px 354px;
  }

  .fire-quiz-screen-feedback {
    grid-template-rows: 164px minmax(300px, 1fr);
  }

  .fire-quiz-fixed-header {
    height: 164px;
    min-height: 164px;
    gap: 10px;
  }

  .fire-quiz-step-block {
    height: 354px;
    min-height: 354px;
    grid-template-rows: 26px minmax(0, 1fr);
    gap: 9px;
  }

  .fire-quiz-options {
    gap: 7px;
  }

  .fire-quiz-feedback-center {
    min-height: 300px;
    padding-block: 10px;
  }

  .fire-quiz-scenario-text {
    height: 96px;
    min-height: 96px;
    padding: 14px;
    font-size: 15px;
  }

  .fire-quiz-meta {
    padding-right: 50px;
  }

  .fire-quiz-option {
    grid-template-columns: auto 1fr;
  }

  .fire-quiz-option-state {
    grid-column: 2;
  }

  .fire-quiz-button {
    width: 100%;
  }
}


/* Shield-button Fire Safety Mission — matched to the drop-button quiz theme */
.mission-modal {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.mission-modal::before {
  content: none;
}

.mission-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mission-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 5, 10, 0.68);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mission-shell {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  clip-path: none;
  color: #f5fbff;
  background: linear-gradient(145deg, rgba(21, 32, 42, 0.96), rgba(7, 12, 18, 0.98));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 153, 82, 0.42) transparent;
}

.mission-shell:focus-visible {
  outline: 2px solid rgba(255, 179, 107, 0.9);
  outline-offset: 4px;
}

.mission-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font: 400 28px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.mission-close:hover,
.mission-close:focus-visible {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(5deg);
  outline: 2px solid rgba(255, 179, 107, 0.85);
  outline-offset: 2px;
}

.mission-body {
  min-height: min(70vh, 650px);
}

.mission-screen {
  width: 100%;
}

.mission-screen-intro,
.mission-screen-result {
  min-height: min(70vh, 650px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 34px clamp(4px, 4vw, 48px);
  text-align: center;
}

.mission-screen-question {
  min-height: min(70vh, 650px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
}

.mission-kicker,
.mission-category,
.mission-score-card span {
  color: #ffb36b;
  font: 800 11px/1.2 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mission-title {
  color: #f5fbff;
  font: 750 clamp(34px, 6vw, 72px)/1 system-ui, sans-serif;
  letter-spacing: 0;
}

.mission-description {
  max-width: 680px;
  color: rgba(232, 245, 255, 0.82);
  font: 400 clamp(15px, 1.5vw, 20px)/1.6 system-ui, sans-serif;
}

.mission-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-right: 60px;
}

.mission-score-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(223, 239, 255, 0.12);
  border-radius: 14px;
  clip-path: none;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mission-score-card strong {
  min-width: 0;
  color: #f5fbff;
  font: 750 clamp(19px, 2.2vw, 26px)/1.1 system-ui, sans-serif;
  white-space: nowrap;
}

.mission-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(223, 239, 255, 0.1);
}

.mission-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb36b 0%, #ff6a2b 55%, #b52d16 100%);
  box-shadow: 0 0 14px rgba(255, 76, 34, 0.34);
  transition: width 260ms ease;
}

.mission-question-content {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(223, 239, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mission-category {
  margin-top: 0;
}

.mission-question {
  max-width: none;
  min-height: clamp(62px, 8vh, 84px);
  display: flex;
  align-items: center;
  color: #f5fbff;
  font: 650 clamp(19px, 2.5vw, 30px)/1.28 system-ui, sans-serif;
  letter-spacing: 0;
}

.mission-options {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(54px, auto));
  gap: 9px;
  margin-top: 0;
}

.mission-option {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(223, 239, 255, 0.16);
  border-radius: 12px;
  color: #e8f6ff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-align: left;
  font: 650 clamp(12px, 1.1vw, 14px)/1.45 system-ui, sans-serif;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.mission-option:hover {
  border-color: #ffd56a;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mission-option:focus-visible {
  border-color: #ffd56a;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  outline: 2px solid rgba(255, 213, 106, 0.62);
  outline-offset: 2px;
}

.mission-option.is-selected {
  border-color: rgba(255, 153, 82, 0.82);
  background: rgba(181, 45, 22, 0.26);
  box-shadow: 0 0 18px rgba(255, 76, 34, 0.13);
}

.mission-option-letter {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 239, 255, 0.18);
  border-radius: 8px;
  color: rgba(232, 246, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  font: 800 12px/1 system-ui, sans-serif;
}

.mission-next-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.mission-button {
  min-width: 150px;
  min-height: auto;
  padding: 13px 22px;
  border-radius: 12px;
  font: 700 14px/1 system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.mission-button-primary {
  border: 1px solid rgba(255, 153, 82, 0.72);
  color: #fff;
  background: linear-gradient(145deg, #b52d16, #5d130c);
  box-shadow: 0 0 24px rgba(255, 76, 34, 0.25);
}

.mission-button-secondary {
  border: 1px solid rgba(223, 239, 255, 0.24);
  color: #e8f6ff;
  background: rgba(255, 255, 255, 0.06);
}

.mission-button:not(:disabled):hover,
.mission-button:not(:disabled):focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.12);
  outline: 2px solid rgba(255, 179, 107, 0.75);
  outline-offset: 3px;
}

.mission-button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.32);
}

.mission-rank-title {
  color: #ffb36b;
  font: 800 clamp(30px, 5vw, 58px)/1.04 system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.mission-final-score {
  color: #ffd56a;
  font: 800 clamp(24px, 3vw, 38px)/1.1 system-ui, sans-serif;
  letter-spacing: 0.08em;
}

.mission-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

body.fire-mission-open .page {
  overflow-y: hidden;
}

@media (max-width: 700px) {
  .mission-shell {
    width: 96vw;
    max-height: 92vh;
    padding: 58px 14px 16px;
    border-radius: 18px;
    clip-path: none;
  }

  .mission-body,
  .mission-screen-question,
  .mission-screen-intro,
  .mission-screen-result {
    min-height: auto;
  }

  .mission-score-grid {
    padding-right: 0;
    gap: 7px;
  }

  .mission-score-card {
    padding: 9px 7px;
  }

  .mission-score-card span {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .mission-score-card strong {
    font-size: clamp(15px, 4.6vw, 20px);
  }

  .mission-question-content {
    padding: 13px;
  }

  .mission-question {
    min-height: 66px;
    font-size: clamp(18px, 5.4vw, 25px);
  }

  .mission-options {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .mission-option {
    min-height: 52px;
    padding: 11px 12px;
  }

  .mission-next-row,
  .mission-button {
    width: 100%;
  }

  .mission-result-actions {
    width: 100%;
    flex-direction: column;
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .mission-shell {
    padding-top: 28px;
  }

  .mission-body,
  .mission-screen-question,
  .mission-screen-intro,
  .mission-screen-result {
    min-height: auto;
  }

  .mission-question {
    min-height: 54px;
  }

  .mission-option {
    min-height: 48px;
    padding-block: 10px;
  }
}


/* Embedded Spot the Difference game */
.spot-game-modal {
  position: fixed;
  inset: 0;
  z-index: 2900;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.5vw, 32px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.spot-game-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.spot-game-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 5, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) brightness(0.72);
  backdrop-filter: blur(18px) brightness(0.72);
}

.spot-game-shell {
  position: relative;
  z-index: 1;
  width: min(94vw, 1240px);
  height: min(90vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(99, 214, 255, 0.48);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(54, 149, 198, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(15, 28, 39, 0.98), rgba(4, 10, 17, 0.99));
  box-shadow:
    0 32px 110px rgba(0, 0, 0, 0.66),
    0 0 42px rgba(55, 183, 240, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.spot-game-shell:focus-visible {
  outline: 2px solid rgba(103, 217, 255, 0.92);
  outline-offset: 4px;
}

.spot-game-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 217, 255, 0.52);
  border-radius: 50%;
  color: #dff8ff;
  background: rgba(3, 18, 28, 0.86);
  box-shadow: 0 0 18px rgba(70, 192, 242, 0.22);
  font: 400 27px/1 system-ui, sans-serif;
  cursor: pointer;
}

.spot-game-close:hover,
.spot-game-close:focus-visible {
  border-color: #8ce5ff;
  background: rgba(11, 42, 59, 0.96);
  outline: 2px solid rgba(103, 217, 255, 0.72);
  outline-offset: 2px;
}

.spot-game-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #050a10;
}

.spot-game-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(224, 247, 255, 0.82);
  background: linear-gradient(145deg, #101d28, #050a10);
  font: 700 13px/1.2 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.spot-game-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.spot-game-open .page {
  overflow-y: hidden;
}

@media (max-width: 640px) {
  .spot-game-modal {
    padding: 8px;
  }

  .spot-game-shell {
    width: 96vw;
    height: 92vh;
    border-radius: 16px;
  }

  .spot-game-close {
    top: 10px;
    right: 10px;
    width: 38px;
  }
}


/* Find the Way maze game modal */
.find-way-modal {
  position: fixed;
  inset: 0;
  z-index: 2960;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.2vw, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.find-way-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.find-way-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 4, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) brightness(0.7);
  backdrop-filter: blur(18px) brightness(0.7);
}

.find-way-shell {
  position: relative;
  z-index: 1;
  width: min(94vw, 1040px);
  height: min(90vh, 780px);
  overflow: hidden;
  border: 1px solid rgba(164, 116, 255, 0.46);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(111, 67, 184, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(17, 23, 36, 0.98), rgba(7, 8, 16, 0.99));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.68),
    0 0 44px rgba(123, 77, 222, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.find-way-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(147, 195, 255, 0.42);
  border-radius: 50%;
  color: #edf8ff;
  background: rgba(6, 16, 27, 0.86);
  box-shadow: 0 0 18px rgba(102, 174, 255, 0.2);
  font: 400 27px/1 system-ui, sans-serif;
  cursor: pointer;
}

.find-way-close:hover,
.find-way-close:focus-visible {
  border-color: #a7e5ff;
  background: rgba(16, 40, 58, 0.96);
  outline: 2px solid rgba(126, 214, 255, 0.72);
  outline-offset: 2px;
}

.find-way-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  background: #080b12;
}

body.find-way-open .page {
  overflow-y: hidden;
}

@media (max-width: 640px) {
  .find-way-modal {
    padding: 7px;
  }

  .find-way-shell {
    width: 97vw;
    height: 94vh;
    border-radius: 17px;
  }

  .find-way-close {
    top: 10px;
    right: 10px;
    width: 38px;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .spot-game-modal.is-mobile-landscape,
  .exgModal.is-mobile-landscape {
    display: block;
    padding: 0 !important;
    overflow: hidden;
  }

  .spot-game-modal.is-mobile-landscape .spot-game-shell,
  .exgModal.is-mobile-landscape .exgIframeShell {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100vh !important;
    height: 100vw !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
    transform-origin: center center;
  }

  @supports (width: 100dvh) {
    .spot-game-modal.is-mobile-landscape .spot-game-shell,
    .exgModal.is-mobile-landscape .exgIframeShell {
      width: 100dvh !important;
      height: 100dvw !important;
    }
  }
}

/* Hide popup X controls; keep only the full-screen mobile game exits. */
.section-two-popup-close,
.audience-popup-close,
.fire-quiz-close,
.mission-close,
.find-way-close,
.spot-game-close,
.exgClose {
  display: none !important;
}

@media (max-width: 768px) and (orientation: portrait) {
  .spot-game-modal.is-mobile-landscape .spot-game-close,
  .exgModal.is-mobile-landscape .exgClose {
    display: grid !important;
    place-items: center;
  }
}
