:root {
  color-scheme: light;
  --dialog-font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  --action-callout: #082B57;
  --sky-top: #8ae0ff;
  --sky-bottom: #42c4f4;
  --shadow-strong: 0 28px 60px rgba(9, 48, 78, 0.24);
  --shadow-soft: 0 16px 32px rgba(11, 68, 104, 0.18);
  --panel-bg: rgba(255, 255, 255, 0.9);
  --panel-border: rgba(255, 255, 255, 0.68);
  --tag-bg: rgba(18, 94, 60, 0.94);
  --tag-text: #ffffff;
  --focus-ring: rgba(255, 255, 255, 0.98);
  --page-accent: #56c53b;
  --page-accent-soft: #dffff0;
  --page-sky-a: #a8ecff;
  --page-sky-b: #4dc7f6;
  --page-glow: rgba(255, 248, 181, 0.52);
  --pointer-x: 0;
  --pointer-y: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  color: #173d60;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.page-map {
  --page-accent: #59c83c;
  overflow: hidden;
}

body.page-zone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(7, 45, 70, 0.24) 100%),
    url("./Fondo/Fondo-Login-CelebremoselMesMasFeliz2026.jpg") center center / cover no-repeat;
  overflow: hidden;
  overscroll-behavior: none;
}

body.page-welcome {
  --page-accent: #59c83c;
  --page-accent-soft: #e8ffde;
  --page-sky-a: #b7f1ff;
  --page-sky-b: #5bcdf7;
}

body.page-family {
  --page-accent: #ff9f41;
  --page-accent-soft: #fff2d8;
  --page-sky-a: #c0f2ff;
  --page-sky-b: #61d1f5;
}

body.page-games {
  --page-accent: #ff4c85;
  --page-accent-soft: #ffe0ec;
  --page-sky-a: #bae8ff;
  --page-sky-b: #57c6f6;
}

body.page-food {
  --page-accent: #ffb938;
  --page-accent-soft: #fff2cf;
  --page-sky-a: #c2f0ff;
  --page-sky-b: #5cccf6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app-frame {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

body.page-zone .app-frame,
body.page-zone .transition-main {
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
}

.transition-main {
  position: relative;
  min-height: 100svh;
  transition:
    opacity 380ms ease,
    transform 540ms cubic-bezier(0.18, 0.82, 0.24, 1);
  will-change: opacity, transform;
}

html.is-changing .transition-main {
  will-change: opacity, transform;
}

html.is-changing .transition-main {
  opacity: 1;
  transform: scale(1);
}

html.is-animating .transition-main {
  opacity: 0;
  transform: scale(0.986) translateY(16px);
}

html.is-rendering .transition-main {
  opacity: 0;
  transform: scale(1.012) translateY(14px);
}

.cloud-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.swup-progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  height: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #ffffff 0%, #ffed95 28%, var(--page-accent) 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.75);
}

.app-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(196, 223, 241, 0.08) 0%, rgba(232, 243, 251, 0.14) 100%);
  transition: opacity 220ms ease;
}

.app-frame.is-transitioning .app-transition {
  opacity: 1;
}

.app-transition__veil,
.app-transition__clouds,
.app-transition__mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.app-transition__veil {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(215, 231, 242, 0.22) 0%, rgba(240, 247, 255, 0.54) 52%, rgba(224, 236, 246, 0.28) 100%);
  opacity: 0;
  backdrop-filter: blur(10px) saturate(1.04);
  transition: opacity 620ms ease;
}

.app-transition__veil::before,
.app-transition__veil::after {
  content: "";
  position: absolute;
  inset: -24%;
  opacity: 0;
  transition:
    opacity 560ms ease,
    transform 1220ms cubic-bezier(0.18, 0.82, 0.22, 1);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.app-transition__veil::before {
  background:
    radial-gradient(circle at 18% 36%, rgba(255, 255, 255, 0.34) 0%, transparent 18%),
    radial-gradient(circle at 44% 50%, rgba(255, 255, 255, 0.32) 0%, transparent 20%),
    radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.3) 0%, transparent 17%),
    radial-gradient(circle at 58% 72%, rgba(255, 255, 255, 0.24) 0%, transparent 24%);
  filter: blur(36px);
  transform: translate3d(-5%, -4%, 0) scale(1.04);
}

.app-transition__veil::after {
  background:
    radial-gradient(circle at 12% 68%, rgba(255, 255, 255, 0.22) 0%, transparent 18%),
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.24) 0%, transparent 14%),
    radial-gradient(circle at 62% 62%, rgba(255, 255, 255, 0.26) 0%, transparent 20%),
    radial-gradient(circle at 86% 34%, rgba(255, 255, 255, 0.2) 0%, transparent 16%);
  filter: blur(54px);
  transform: translate3d(6%, 4%, 0) scale(1.08);
}

.app-transition__clouds,
.app-transition__mist {
  mix-blend-mode: screen;
}

.app-transition__clouds::before,
.app-transition__clouds::after,
.app-transition__mist::before,
.app-transition__mist::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 48%;
  background:
    radial-gradient(circle at 4% 64%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.94) 8%, transparent 12%),
    radial-gradient(circle at 15% 46%, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.99) 11%, transparent 15%),
    radial-gradient(circle at 28% 58%, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.99) 13%, transparent 17%),
    radial-gradient(circle at 43% 43%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 12%, transparent 16%),
    radial-gradient(circle at 58% 59%, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.99) 15%, transparent 19%),
    radial-gradient(circle at 73% 45%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 12%, transparent 16%),
    radial-gradient(circle at 87% 59%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 10%, transparent 14%),
    radial-gradient(circle at 97% 50%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.92) 7%, transparent 10%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 68%, rgba(240, 247, 255, 0.14) 100%);
  filter: url("#cloud-transition-distort") blur(12px) saturate(1.03);
  opacity: 0;
  transition:
    transform 1120ms cubic-bezier(0.16, 0.86, 0.2, 1),
    opacity 420ms ease;
  will-change: transform, opacity;
}

.app-transition__clouds::before {
  inset: -22% -28% 32% -32%;
  transform: translate3d(-22%, -16%, 0) scale(1.08);
}

.app-transition__clouds::after {
  inset: 2% -28% 14% 28%;
  transform: translate3d(22%, -14%, 0) scale(1.12);
}

.app-transition__mist::before {
  inset: 38% -22% -20% -18%;
  background:
    radial-gradient(circle at 12% 56%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 11%, transparent 16%),
    radial-gradient(circle at 28% 42%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 14%, transparent 18%),
    radial-gradient(circle at 46% 58%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 18%, transparent 22%),
    radial-gradient(circle at 64% 46%, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.97) 15%, transparent 20%),
    radial-gradient(circle at 82% 58%, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.93) 12%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.88) 70%, rgba(238, 246, 252, 0) 100%);
  filter: url("#cloud-transition-distort") blur(18px) saturate(1.04);
  transform: translate3d(0, 30%, 0) scale(1.08);
}

.app-transition__mist::after {
  inset: -30% -18% 46% -20%;
  background:
    radial-gradient(circle at 18% 62%, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.74) 10%, transparent 15%),
    radial-gradient(circle at 38% 46%, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.84) 14%, transparent 19%),
    radial-gradient(circle at 60% 58%, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.84) 17%, transparent 22%),
    radial-gradient(circle at 84% 46%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.72) 10%, transparent 14%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(244, 248, 253, 0.56) 72%, rgba(244, 248, 253, 0) 100%);
  filter: url("#cloud-transition-distort") blur(20px) saturate(1.02);
  transform: translate3d(0, -26%, 0) scale(1.06);
}

.app-frame.is-covering .app-transition__veil {
  opacity: 1;
}

.app-frame.is-covering .app-transition__veil::before,
.app-frame.is-covering .app-transition__veil::after {
  opacity: 1;
}

.app-frame.is-covering .app-transition__veil::before {
  transform: translate3d(2%, -1%, 0) scale(1.08);
}

.app-frame.is-covering .app-transition__veil::after {
  transform: translate3d(-1%, 2%, 0) scale(1.12);
}

.app-frame.is-covering .app-transition__clouds {
  animation: cloudLayerCover 1180ms cubic-bezier(0.16, 0.84, 0.2, 1) both;
}

.app-frame.is-covering .app-transition__mist {
  animation: mistLayerCover 1320ms cubic-bezier(0.18, 0.82, 0.2, 1) both;
}

.app-frame.is-covering .app-transition__clouds::before,
.app-frame.is-covering .app-transition__clouds::after,
.app-frame.is-covering .app-transition__mist::before,
.app-frame.is-covering .app-transition__mist::after {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.02);
}

.app-frame.is-revealing .app-transition__veil {
  opacity: 0;
}

.app-frame.is-revealing .app-transition__veil::before,
.app-frame.is-revealing .app-transition__veil::after {
  opacity: 0;
}

.app-frame.is-revealing .app-transition__veil::before {
  transform: translate3d(8%, -6%, 0) scale(1.12);
}

.app-frame.is-revealing .app-transition__veil::after {
  transform: translate3d(-7%, 5%, 0) scale(1.14);
}

.app-frame.is-revealing .app-transition__clouds {
  animation: cloudLayerReveal 1060ms cubic-bezier(0.3, 0.02, 0.24, 1) both;
}

.app-frame.is-revealing .app-transition__mist {
  animation: mistLayerReveal 1140ms cubic-bezier(0.3, 0.02, 0.24, 1) both;
}

.app-frame.is-revealing .app-transition__clouds::before {
  opacity: 0;
  transform: translate3d(26%, -20%, 0) scale(1.14);
}

.app-frame.is-revealing .app-transition__clouds::after {
  opacity: 0;
  transform: translate3d(-24%, 16%, 0) scale(1.16);
}

.app-frame.is-revealing .app-transition__mist::before {
  opacity: 0;
  transform: translate3d(0, 34%, 0) scale(1.12);
}

.app-frame.is-revealing .app-transition__mist::after {
  opacity: 0;
  transform: translate3d(0, -30%, 0) scale(1.12);
}

.scene {
  --scene-inline-pad: clamp(12px, 2.6vw, 28px);
  --scene-top-safe: clamp(112px, 14vh, 148px);
  --scene-bottom-safe: clamp(24px, 4vh, 52px);
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  perspective: 1500px;
}

.scene::before,
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.scene::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 214, 0.26), transparent 18%),
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.3), transparent 18%),
    radial-gradient(circle at 90% 72%, rgba(255, 255, 255, 0.14), transparent 16%);
  mix-blend-mode: screen;
}

.scene::after {
  background:
    radial-gradient(circle at center, transparent 58%, rgba(0, 52, 92, 0.2) 100%);
}

.scene__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, calc(100svh * 16 / 9));
  height: max(100svh, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: filter 260ms ease, opacity 300ms ease;
}

.scene__content {
  position: absolute;
  left: 50%;
  top: calc(50% + ((var(--scene-top-safe) - var(--scene-bottom-safe)) / 2));
  width: min(
    calc(100vw - (var(--scene-inline-pad) * 2)),
    calc((100svh - var(--scene-top-safe) - var(--scene-bottom-safe)) * 16 / 9)
  );
  min-width: min(320px, calc(100vw - (var(--scene-inline-pad) * 2)));
  max-width: calc(100vw - (var(--scene-inline-pad) * 2));
  max-height: calc(100svh - var(--scene-top-safe) - var(--scene-bottom-safe));
  aspect-ratio: 16 / 9;
  height: auto;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  z-index: 4;
}

.scene__bg,
.scene__shine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.scene__bg {
  transform:
    translate3d(calc(var(--pointer-x) * -18px), calc(var(--pointer-y) * -12px), 0)
    scale(1.03);
  filter: saturate(1.03);
}

.scene__shine {
  mix-blend-mode: screen;
  opacity: 0.8;
  background:
    radial-gradient(circle at 49% 45%, rgba(255, 251, 176, 0.44), transparent 14%),
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.18), transparent 34%);
  transform:
    translate3d(calc(var(--pointer-x) * -10px), calc(var(--pointer-y) * -7px), 0);
}

.confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 260ms ease;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 94%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 94%, transparent 100%);
}

.scene.scene--tour-active .confetti-layer {
  opacity: 0.14;
}

.scene.scene--tour-active .scene__shine {
  opacity: 0.28;
}

.scene.scene--nav-busy .scene__stage,
.scene.scene--nav-busy .tour-launch,
.scene.scene--nav-busy .player-hud {
  filter: brightness(0.82) saturate(0.92);
}

.scene.scene--nav-busy .zone,
.scene.scene--nav-busy .tour-launch {
  pointer-events: none;
}

.player-hud {
  position: absolute;
  top: clamp(14px, 1.8vw, 22px);
  left: 50%;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(239, 248, 255, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    0 12px 26px rgba(6, 41, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(1.1);
  transform: translateX(-50%);
  max-width: min(calc(100vw - 200px), 560px);
  pointer-events: auto;
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 220ms ease;
}

.app-frame.app-frame--tour-active .player-hud {
  opacity: 0.1;
  filter: blur(10px) saturate(0.7);
  transform: translateX(-50%) scale(0.98);
  pointer-events: none;
}

.player-hud__item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0.42rem 0.64rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.22) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.player-hud__item--country {
  min-width: 60px;
  padding: 4px;
  overflow: hidden;
}

.player-hud__item--action {
  margin-left: 6px;
  background: linear-gradient(180deg, rgba(19, 61, 96, 0.94) 0%, rgba(15, 51, 80, 0.94) 100%);
  border-color: rgba(9, 36, 58, 0.14);
  box-shadow:
    0 10px 18px rgba(5, 33, 53, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.player-hud__item--action:hover,
.player-hud__item--action:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(26, 75, 114, 0.96) 0%, rgba(18, 58, 91, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.14);
}

.player-hud__item--action:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

.player-hud__icon {
  font-size: 1rem;
  line-height: 1;
  color: color-mix(in srgb, var(--page-accent) 48%, #163c59);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.player-hud__item--action .player-hud__icon {
  color: #ffffff;
}

.player-hud__item--action .player-hud__value {
  color: #ffffff;
}

.player-hud__metric {
  min-width: 0;
  display: inline-grid;
  gap: 2px;
}

.player-hud__label {
  color: rgba(23, 61, 96, 0.82);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-hud__value {
  min-width: 0;
  color: #103955;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.player-hud__flag-real {
  display: block;
  width: 52px;
  height: 46px;
  
  object-fit: contain;
  
  
}

.zone-screen__layout {
  position: relative;
  z-index: 2;
  padding:
    var(--zone-screen-top-space, clamp(92px, 12vh, 126px))
    var(--zone-screen-inline-space, clamp(20px, 3vw, 42px))
    var(--zone-screen-bottom-space, clamp(24px, 4vh, 42px));
  display: grid;
  justify-items: center;
}

.zone-screen--immersive .zone-screen__layout {
  min-height: 100svh;
  align-items: center;
  padding-bottom: var(--zone-screen-bottom-space, clamp(28px, 4vh, 42px));
}

.zone-screen__hero {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 58vh, 780px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(10px, 2vh, 18px);
}

.zone-screen--immersive .zone-screen__hero {
  min-height: 100%;
}

body.page-zone .zone-screen__hero {
  min-height: calc(
    100svh - var(--zone-screen-top-space, 84px) - var(--zone-screen-bottom-space, 20px)
  );
}

.zone-screen__hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 0.9rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 16px 28px rgba(8, 46, 72, 0.12);
  backdrop-filter: blur(8px);
}

.zone-screen__hero-label {
  color: color-mix(in srgb, var(--page-accent) 72%, #173d60);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.zone-screen__hero-title {
  margin: 0;
  color: #153d5b;
  font-size: clamp(1.16rem, 1.6vw, 1.7rem);
  line-height: 1.05;
  font-weight: 900;
}

.tour-launch {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  top: clamp(16px, 2vw, 28px);
  z-index: 47;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #64c73f 0%, #2fa625 100%);
  color: #ffffff;
  font-size: clamp(0.84rem, 0.95vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(18, 92, 34, 0.26);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.tour-launch:hover,
.tour-launch:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(18, 92, 34, 0.3);
  filter: brightness(1.05);
}

.tour-launch:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.94);
  outline-offset: 4px;
}

.scene.scene--tour-active .tour-launch {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.zone {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  z-index: var(--z, 2);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform:
    translate3d(
      calc(-50% + var(--shift-x, 0px)),
      calc(-50% + var(--shift-y, 0px)),
      0
    );
  transform-style: preserve-3d;
  will-change: transform;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.zone::before {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 72%);
  opacity: 0;
  transform: scale(0.88);
  filter: blur(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.zone::after {
  content: "";
  position: absolute;
  inset: -18% -14% -18%;
  border-radius: 52px;
  background: rgba(255, 255, 255, 0.001);
}

.zone:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 12px;
  border-radius: 32px;
}

.zone__float {
  position: relative;
  display: block;
  animation: bob var(--duration, 6.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.zone__art {
  display: block;
  transform: rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
  will-change: transform;
}

.zone__art img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 10px 18px rgba(13, 79, 110, 0.18))
    drop-shadow(0 22px 28px rgba(11, 62, 95, 0.12));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.zone__tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  transform: translate(-50%, 12px) scale(0.94);
  opacity: 0;
  padding: 0.72rem 1.08rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: clamp(0.74rem, 0.94vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.zone:hover::before,
.zone.is-hovered::before,
.zone:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.zone:hover .zone__art,
.zone.is-hovered .zone__art,
.zone:focus-visible .zone__art {
  transform: rotate(var(--rotate, 0deg)) translateY(-5px) scale(calc(var(--scale, 1) * 1.02));
  filter: brightness(1.06) saturate(1.08);
}

.zone:hover .zone__tag,
.zone.is-hovered .zone__tag,
.zone:focus-visible .zone__tag {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.zone.is-pressed::before {
  opacity: 1;
  transform: scale(1.02);
}

.zone.is-pressed .zone__art {
  transform: rotate(var(--rotate, 0deg)) translateY(-2px) scale(calc(var(--scale, 1) * 1.005));
  filter: brightness(1.04) saturate(1.06);
}

.zone--attendance-prompt {
  z-index: var(--z, 2);
}

.zone--attendance-prompt::before {
  inset: -5.5%;
  opacity: 0.78;
  transform: scale(1);
  background:
    radial-gradient(
      circle,
      rgba(255, 248, 220, 0.78) 0%,
      rgba(255, 237, 171, 0.7) 14%,
      rgba(255, 220, 112, 0.54) 28%,
      rgba(255, 205, 82, 0.3) 42%,
      rgba(255, 255, 255, 0.12) 56%,
      rgba(255, 206, 102, 0.03) 68%,
      rgba(255, 255, 255, 0) 78%
    );
  filter: blur(16px) saturate(1.04);
  animation: attendancePromptGlow 1.55s ease-in-out infinite;
}

.zone--attendance-prompt .zone__art {
  filter:
    brightness(1.05)
    saturate(1.08)
    drop-shadow(0 0 18px rgba(8, 43, 87, 0.28))
    drop-shadow(0 16px 28px rgba(8, 43, 87, 0.22));
  animation: attendancePromptHeroGlow 1.45s ease-in-out infinite;
}

.zone--attendance-prompt .zone__tag {
  opacity: 1;
  position: absolute;
  transform: translate(-50%, 0) scale(1);
  padding: 0.74rem 1.12rem;
  border: 1px solid rgba(171, 207, 255, 0.28);
  background: linear-gradient(180deg, color-mix(in srgb, var(--action-callout) 88%, #ffffff 12%) 0%, var(--action-callout) 100%);
  color: #ffffff;
  font-size: clamp(0.76rem, 0.96vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow:
    0 18px 30px rgba(4, 24, 49, 0.28),
    0 0 0 8px rgba(8, 43, 87, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: attendancePromptTag 1.45s ease-in-out infinite;
}

.zone--attendance-prompt .zone__tag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 2px);
  width: 14px;
  height: 14px;
  background: var(--action-callout);
  border-right: 1px solid rgba(171, 207, 255, 0.22);
  border-bottom: 1px solid rgba(171, 207, 255, 0.22);
  transform: translateX(-50%) rotate(45deg);
}

.zone:hover,
.zone.is-hovered,
.zone:focus-visible,
.zone.is-pressed {
  z-index: 24;
}

.zone--decor {
  cursor: default;
  pointer-events: none;
}

.zone--decor::before,
.zone--decor::after {
  display: none;
}

.zone--mascot {
  --x: 12.8%;
  --y: 21.8%;
  --w: 22.2%;
  --z: 7;
  --duration: 5.2s;
  --delay: -1.4s;
  --scale: 0.98;
}

.zone--welcome {
  --x: 30.8%;
  --y: 31.8%;
  --w: 39.2%;
  --z: 5;
  --rotate: -1.8deg;
  --duration: 6.6s;
  --delay: -0.9s;
}

.zone--family {
  --x: 76.6%;
  --y: 30.5%;
  --w: 39.4%;
  --z: 5;
  --rotate: 1.2deg;
  --duration: 6.8s;
  --delay: -3.1s;
}

.zone--logo {
  --x: 50%;
  --y: 52%;
  --w: 30.2%;
  --z: 6;
  --rotate: -2deg;
  --duration: 5.8s;
  --delay: -2s;
}

.zone--games {
  --x: 21.4%;
  --y: 69.8%;
  --w: 40%;
  --z: 8;
  --rotate: -2.5deg;
  --duration: 7s;
  --delay: -0.4s;
}

.zone--food {
  --x: 78.5%;
  --y: 69.7%;
  --w: 40.8%;
  --z: 8;
  --rotate: 0.6deg;
  --duration: 7.2s;
  --delay: -2.4s;
}

.tour-ui {
  position: absolute;
  inset: 0;
  z-index: 46;
  display: grid;
  align-items: end;
  padding: clamp(16px, 2.2vw, 34px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.tour-ui.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tour-ui--top {
  align-items: start;
}

.tour-ui__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 39, 0.76);
  backdrop-filter: blur(3px);
}

.tour-focus {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transition:
    left 220ms ease,
    top 220ms ease,
    width 220ms ease,
    height 220ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.tour-focus::before,
.tour-focus::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  pointer-events: none;
}

.tour-focus::before {
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 246, 175, 0.3) 0%, rgba(255, 246, 175, 0) 72%);
  filter: blur(12px);
  animation: focusPulse 2.2s ease-in-out infinite;
}

.tour-focus::after {
  inset: -10px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 6px rgba(255, 204, 71, 0.38),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.tour-focus__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.tour-focus__content .zone__float,
.tour-focus__content .zone__art {
  width: 100%;
}

.tour-dialog {
  position: relative;
  z-index: 3;
  font-family: var(--dialog-font-family);
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: clamp(120px, 12vw, 164px) minmax(0, 1fr);
  gap: clamp(14px, 1.7vw, 24px);
  align-items: stretch;
  padding: clamp(14px, 1.7vw, 24px);
  border: 4px solid #39607f;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 255, 0.97) 100%);
  box-shadow:
    0 0 0 5px #f3cb59,
    0 24px 54px rgba(4, 14, 34, 0.44);
  transform: translateY(22px);
  transition: transform 220ms ease;
}

.tour-ui.is-open .tour-dialog {
  transform: translateY(0);
}

.tour-ui--top .tour-dialog {
  transform: translateY(-22px);
}

.tour-ui--top.is-open .tour-dialog {
  transform: translateY(0);
}

.tour-dialog__portrait {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: clamp(120px, 15vw, 168px);
  padding: 10px;
  border: 4px solid #3f6582;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffbed 0%, #f8e5a5 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.55);
  align-self: start;
  justify-self: stretch;
  overflow: hidden;
}

.tour-dialog__portrait :is(img, video) {
  width: 100%;
  max-width: 128px;
  height: auto;
  object-fit: contain;
}

.tour-dialog__body {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.tour-dialog__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.tour-dialog__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: #184e87;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-dialog__title {
  margin: 0;
  color: #173d60;
  font-size: clamp(1.15rem, 1.4vw, 1.6rem);
  font-weight: 900;
  line-height: 1.1;
}

.tour-dialog__text {
  min-height: 0;
  margin: 0;
  max-width: 62ch;
  color: #233a50;
  font-size: clamp(1rem, 1.12vw, 1.2rem);
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.tour-dialog__controls {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.tour-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tour-dialog__hint {
  color: #42617d;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tour-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.85rem 1.12rem;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.tour-button:hover,
.tour-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.tour-button:focus-visible {
  outline: 3px solid rgba(32, 61, 92, 0.24);
  outline-offset: 3px;
}

.tour-button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  filter: none;
}

.tour-button--ghost {
  background: #8aa2b9;
}

.tour-button--secondary {
  background: #40698d;
}

.tour-button--primary {
  background: linear-gradient(180deg, #53c438 0%, #2a9f1f 100%);
}

.zone-screen {
  --zone-screen-top-space: clamp(92px, 12vh, 126px);
  --zone-screen-bottom-space: clamp(24px, 4vh, 42px);
  --zone-screen-inline-space: clamp(20px, 3vw, 42px);
  --zone-art-ratio: 16 / 9;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 198, 0.22), transparent 18%),
    linear-gradient(180deg, var(--page-sky-a) 0%, var(--page-sky-b) 100%);
}

body.page-zone .zone-screen {
  --zone-screen-top-space: clamp(112px, 20svh, 220px);
  --zone-screen-bottom-space: clamp(112px, 20svh, 220px);
  --zone-screen-inline-space: clamp(6px, 1vw, 18px);
  --zone-art-brightness: 0.975;
  --zone-art-saturation: 0.99;
  background: transparent;
}

.zone-screen::before,
.zone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zone-screen::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.12), transparent 18%);
  mix-blend-mode: screen;
}

.zone-screen::after {
  background: radial-gradient(circle at center, transparent 56%, rgba(0, 50, 92, 0.16) 100%);
}

body.page-zone .zone-screen::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 30%);
  mix-blend-mode: screen;
}

body.page-zone .zone-screen::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(8, 41, 64, 0.18) 100%);
}

.zone-screen__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

body.page-zone .zone-screen__sky {
  display: none;
}

.zone-screen__sky::before,
.zone-screen__sky::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 58%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 18%, transparent 19%),
    radial-gradient(circle at 44% 42%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 18%, transparent 19%),
    radial-gradient(circle at 62% 58%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 20%, transparent 21%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 15%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 249, 255, 0.98) 100%);
  filter: blur(1px);
  opacity: 0.95;
  animation: driftCloud 22s linear infinite;
}

.zone-screen__sky::before {
  top: 8%;
  left: -12%;
  width: 34vw;
  height: 12vw;
  min-width: 320px;
  min-height: 108px;
}

.zone-screen__sky::after {
  right: -14%;
  bottom: 12%;
  width: 42vw;
  height: 14vw;
  min-width: 360px;
  min-height: 118px;
  animation-duration: 26s;
  animation-direction: reverse;
}

.zone-screen__home {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  left: clamp(16px, 2vw, 28px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.78rem 0.96rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  color: #23425b;
  font-size: clamp(0.84rem, 0.95vw, 0.98rem);
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(3, 35, 61, 0.12);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.zone-screen__home:hover,
.zone-screen__home:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(3, 35, 61, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

.zone-screen__home:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.zone-screen__home svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

.zone-screen__halo {
  position: absolute;
  width: min(64vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.64) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 72%);
  filter: blur(6px);
}

.zone-screen__spark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zone-screen__spark::before,
.zone-screen__spark::after {
  content: "";
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
}

.zone-screen__spark::before {
  left: 8%;
  top: 18%;
  animation: driftCloud 12s ease-in-out infinite;
}

.zone-screen__spark::after {
  right: 10%;
  bottom: 12%;
  animation: driftCloud 14s ease-in-out infinite reverse;
}

.zone-screen__art {
  position: relative;
  z-index: 2;
  width: min(70vw, 980px);
  animation: bob 6.4s ease-in-out infinite;
}

body.page-zone .zone-screen__art {
  width: min(
    calc(100vw - (var(--zone-screen-inline-space) * 2)),
    calc((100svh - var(--zone-screen-top-space) - var(--zone-screen-bottom-space)) * var(--zone-art-ratio))
  );
  max-width: none;
  max-height: calc(100svh - var(--zone-screen-top-space) - var(--zone-screen-bottom-space));
  min-height: 0;
  aspect-ratio: var(--zone-art-ratio);
  display: grid;
  place-items: center;
}

.zone-screen__art :is(img, object) {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 20px 34px rgba(0, 35, 66, 0.18))
    drop-shadow(0 40px 60px rgba(7, 42, 75, 0.18));
}

body.page-zone .zone-screen__art :is(img, object) {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zone-screen__hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.zone-hotspot {
  position: absolute;
  left: calc(var(--hotspot-x, 50) * 1%);
  top: calc(var(--hotspot-y, 50) * 1%);
  width: clamp(58px, 5vw, 78px);
  height: clamp(58px, 5vw, 78px);
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--action-callout) 88%, #ffffff 12%) 0%, var(--action-callout) 100%);
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--action-callout) 30%, rgba(255, 255, 255, 0)),
    0 0 38px color-mix(in srgb, var(--action-callout) 42%, rgba(255, 255, 255, 0)),
    0 22px 34px rgba(4, 32, 56, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    inset 0 -8px 14px rgba(5, 23, 40, 0.22);
  color: #ffffff;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  overflow: visible;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, border-color 160ms ease;
  animation: hotspotGlow 1.8s ease-in-out infinite;
}

.zone-hotspot::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: inherit;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--action-callout) 78%, #ffffff 22%) 0%, rgba(255, 255, 255, 0.18) 22%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at center, color-mix(in srgb, var(--action-callout) 72%, rgba(255, 255, 255, 0)) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(22px);
  opacity: 0.9;
  transform: scale(0.88);
  z-index: 0;
  animation: hotspotTrail 2s ease-in-out infinite;
}

.zone-hotspot::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  border: 2px solid color-mix(in srgb, var(--action-callout) 82%, #ffffff);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--action-callout) 52%, rgba(255, 255, 255, 0)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  opacity: 0.78;
  z-index: 0;
  animation: hotspotPulse 1.45s cubic-bezier(0.2, 0.78, 0.2, 1) infinite;
}

.zone-hotspot:hover,
.zone-hotspot:focus-visible {
  transform: translate(-50%, calc(-50% - 4px)) scale(1.08);
  border-color: #ffffff;
  box-shadow:
    0 0 0 12px color-mix(in srgb, var(--action-callout) 38%, rgba(255, 255, 255, 0)),
    0 0 42px color-mix(in srgb, var(--action-callout) 48%, rgba(255, 255, 255, 0)),
    0 24px 40px rgba(4, 32, 56, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 14px rgba(5, 23, 40, 0.18);
  filter: brightness(1.08) saturate(1.04);
}

.zone-hotspot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.96);
  outline-offset: 4px;
}

.zone-hotspot--game {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--action-callout) 88%, #ffffff 12%) 0%,
      var(--action-callout) 100%
    );
}

.zone-hotspot .material-symbols-rounded {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(28px, 2.5vw, 34px);
  height: clamp(28px, 2.5vw, 34px);
  border-radius: 999px;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  text-shadow:
    0 0 18px color-mix(in srgb, var(--page-accent) 40%, rgba(255, 255, 255, 0)),
    0 2px 8px rgba(7, 29, 49, 0.3);
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
  animation: hotspotIconBeat 1.6s ease-in-out infinite;
}

.zone-hotspot__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 16px rgba(6, 25, 42, 0.28))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
  transform-origin: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.zone-hotspot--info .zone-hotspot__icon {
  width: 74%;
  height: 74%;
}

.zone-hotspot--game .zone-hotspot__icon {
  width: 80%;
  height: 80%;
}

.zone-hotspot:hover .zone-hotspot__icon,
.zone-hotspot:focus-visible .zone-hotspot__icon {
  transform: scale(1.06);
  filter:
    drop-shadow(0 10px 20px rgba(6, 25, 42, 0.32))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
}

.zone-hotspot__tag {
  z-index: 6;
  bottom: calc(100% + 16px);
  padding: 0.66rem 0.96rem;
  border: 1px solid rgba(171, 207, 255, 0.24);
  color: #ffffff;
  font-size: clamp(0.72rem, 0.9vw, 0.92rem);
  background: linear-gradient(180deg, color-mix(in srgb, var(--action-callout) 88%, #ffffff 12%) 0%, var(--action-callout) 100%);
  box-shadow:
    0 14px 26px rgba(4, 24, 41, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.zone-hotspot:hover .zone-hotspot__tag,
.zone-hotspot:focus-visible .zone-hotspot__tag {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.zone-info-modal {
  z-index: 52;
  align-items: center;
}

.zone-info-modal .tour-dialog {
  width: min(100%, 760px);
}

.zone-info-modal .tour-dialog__portrait {
  background: linear-gradient(180deg, #fffbed 0%, color-mix(in srgb, var(--page-accent) 38%, #fff0be) 100%);
}

.zone-info-modal .tour-dialog__portrait .material-symbols-rounded {
  font-size: clamp(3rem, 4.8vw, 4.25rem);
  color: #184e87;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48;
}

.zone-info-modal .tour-dialog__step {
  background: color-mix(in srgb, var(--page-accent) 52%, #184e87);
}

.zone-info-modal .tour-dialog__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-content: stretch;
  gap: 16px 18px;
}

.zone-info-modal .tour-dialog__hint {
  position: relative;
  display: inline-flex;
  max-width: 48ch;
  padding: 0.95rem 1.12rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 245, 187, 0.96) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(223, 245, 255, 0.98) 100%);
  background-size: 200% 200%;
  color: #174b71;
  font-size: clamp(0.94rem, 1.06vw, 1.02rem);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 28px rgba(24, 78, 135, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  animation:
    zoneInfoSloganFloat 3.4s ease-in-out infinite,
    zoneInfoSloganGlow 5.2s ease-in-out infinite,
    zoneInfoSloganGradient 8s linear infinite;
  overflow: hidden;
  isolation: isolate;
  text-wrap: pretty;
}

.zone-info-modal .tour-dialog__hint::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -22%;
  width: 34%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.78) 52%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg) translateX(-180%);
  animation: zoneInfoSloganShine 4.6s ease-in-out infinite;
  pointer-events: none;
}

.zone-info-modal .tour-dialog__actions {
  justify-self: end;
}

@keyframes zoneInfoSloganFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -4px, 0) scale(1.015);
  }
}

@keyframes zoneInfoSloganGlow {
  0%,
  100% {
    box-shadow:
      0 12px 28px rgba(24, 78, 135, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  }

  50% {
    box-shadow:
      0 16px 34px rgba(72, 171, 88, 0.2),
      inset 0 0 0 1px rgba(255, 255, 255, 0.88);
  }
}

@keyframes zoneInfoSloganGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes zoneInfoSloganShine {
  0%,
  62%,
  100% {
    transform: skewX(-20deg) translateX(-180%);
    opacity: 0;
  }

  18%,
  44% {
    opacity: 0.92;
  }

  50% {
    transform: skewX(-20deg) translateX(440%);
    opacity: 0;
  }
}

.app-frame.app-frame--zone-modal .player-hud,
.app-frame.app-frame--zone-modal .zone-screen__home,
.app-frame.app-frame--zone-modal .zone-screen__hotspots {
  opacity: 0.12;
  filter: blur(8px) saturate(0.75);
  pointer-events: none;
}

.zone-screen--placeholder .zone-screen__hero {
  gap: clamp(18px, 3vh, 28px);
}

.zone-placeholder {
  position: relative;
  z-index: 3;
  width: min(100%, 700px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border: 4px solid #39607f;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 255, 0.97) 100%);
  box-shadow:
    0 0 0 5px #f3cb59,
    0 24px 54px rgba(4, 14, 34, 0.28);
  text-align: center;
}

.zone-placeholder__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.42rem 0.84rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 52%, #184e87);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zone-placeholder__icon {
  font-size: clamp(3rem, 5vw, 4.6rem);
  color: color-mix(in srgb, var(--page-accent) 68%, #173d60);
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48;
}

.zone-placeholder__title {
  margin: 0;
  color: #173d60;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.08;
  font-weight: 900;
}

.zone-placeholder__text {
  max-width: 40ch;
  margin: 0;
  color: #29445c;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  line-height: 1.6;
  font-weight: 700;
}

.zone-placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

body.page-games-game {
  overflow-x: hidden;
  overflow-y: auto;
}

body.page-games-game .app-frame,
body.page-games-game .transition-main {
  min-height: 100svh;
  height: auto;
  overflow: visible;
}

body.page-games-game .zone-screen {
  --zone-screen-top-space: clamp(116px, 17vh, 164px);
  --zone-screen-bottom-space: clamp(28px, 4vh, 48px);
  --zone-screen-inline-space: clamp(14px, 2vw, 28px);
  min-height: 100svh;
  overflow: visible;
}

body.page-games-game .zone-screen__layout {
  min-height: 100svh;
  align-items: flex-start;
}

.balloon-game {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.balloon-game__shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 18px);
  align-items: start;
}

.balloon-game[data-layout="intro"] .balloon-game__shell {
  grid-template-columns: 1fr;
}

.balloon-game__sidebar {
  display: grid;
  gap: 14px;
}

.balloon-game__intro,
.balloon-game__panel,
.balloon-game__stage-panel {
  position: relative;
  z-index: 1;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(246, 249, 255, 0.84) 100%);
  box-shadow:
    0 22px 44px rgba(28, 17, 47, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px) saturate(1.06);
}

.balloon-game__intro,
.balloon-game__panel,
.balloon-game__stage-panel {
  padding: clamp(18px, 2vw, 24px);
}

.balloon-game__intro {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.balloon-game__intro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.balloon-game__intro-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.balloon-game__intro::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: min(220px, 34vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 118, 186, 0.28) 0%, rgba(255, 118, 186, 0.08) 46%, rgba(255, 118, 186, 0) 78%);
  filter: blur(16px);
  pointer-events: none;
}

.balloon-game__eyebrow,
.balloon-game__result-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  padding: 0.42rem 0.84rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 60%, #194a7a);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balloon-game__title {
  margin: 0;
  color: #153d5b;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  line-height: 1.02;
  font-weight: 900;
  max-width: 10ch;
}

.balloon-game__description,
.balloon-game__panel-text,
.balloon-game__result-text,
.balloon-game__stage-assist,
.balloon-game__assist {
  margin: 0;
  color: #2f4c65;
  font-size: clamp(0.96rem, 1.08vw, 1.05rem);
  line-height: 1.62;
  font-weight: 700;
}

.balloon-game__instruction-list {
  display: grid;
  gap: 10px;
}

.balloon-game__instruction-list--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.balloon-game__instruction,
.balloon-game__metric,
.balloon-game__tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 0.92rem 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(239, 246, 255, 0.7) 100%);
  border: 1px solid rgba(171, 205, 231, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.balloon-game__instruction-list--compact .balloon-game__instruction {
  min-height: 100%;
  padding: 0.82rem 0.9rem;
}

.balloon-game__instruction .material-symbols-rounded,
.balloon-game__metric .material-symbols-rounded,
.balloon-game__tip .material-symbols-rounded,
.balloon-game__stage-pill .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 20%, #ffffff);
  color: color-mix(in srgb, var(--page-accent) 64%, #17406a);
  font-size: 1.22rem;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
  flex: none;
}

.balloon-game__instruction-copy,
.balloon-game__tip div {
  display: grid;
  gap: 4px;
}

.balloon-game__instruction-copy strong,
.balloon-game__tip strong,
.balloon-game__panel-title,
.balloon-game__result-title {
  color: #143b59;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.12;
  font-weight: 900;
}

.balloon-game__instruction-copy span,
.balloon-game__tip p {
  margin: 0;
  color: #5c7691;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 700;
}

.balloon-game__tip {
  background:
    linear-gradient(180deg, rgba(255, 246, 226, 0.94) 0%, rgba(255, 238, 211, 0.86) 100%);
  border-color: rgba(231, 177, 88, 0.34);
}

.balloon-game__message {
  margin: 0;
  min-height: 72px;
  padding: 0.98rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(133, 176, 214, 0.34);
  font-size: 0.95rem;
  line-height: 1.58;
  font-weight: 800;
  color: #244560;
  background: rgba(239, 248, 255, 0.74);
}

.balloon-game__message--info,
.balloon-game__message--neutral {
  background: linear-gradient(180deg, rgba(236, 246, 255, 0.86) 0%, rgba(228, 242, 255, 0.74) 100%);
  border-color: rgba(118, 170, 215, 0.42);
}

.balloon-game__message--success {
  background: linear-gradient(180deg, rgba(235, 255, 233, 0.92) 0%, rgba(219, 250, 214, 0.82) 100%);
  border-color: rgba(70, 167, 53, 0.34);
  color: #23522c;
}

.balloon-game__message--warning {
  background: linear-gradient(180deg, rgba(255, 246, 225, 0.94) 0%, rgba(255, 237, 192, 0.82) 100%);
  border-color: rgba(214, 149, 47, 0.34);
  color: #7a5212;
}

.balloon-game__message--error {
  background: linear-gradient(180deg, rgba(255, 236, 231, 0.94) 0%, rgba(255, 220, 214, 0.84) 100%);
  border-color: rgba(213, 93, 72, 0.32);
  color: #7a332a;
}

.balloon-game__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.balloon-game__actions--intro {
  flex: none;
  justify-content: flex-end;
  align-self: flex-start;
}

.balloon-game__panel {
  display: grid;
  gap: 14px;
}

.balloon-game__panel-head,
.balloon-game__stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.balloon-game__status-pill,
.balloon-game__stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(162, 199, 227, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #143b59;
  font-size: 0.9rem;
  font-weight: 900;
}

.balloon-game__stage-pill--soft {
  background:
    linear-gradient(180deg, rgba(255, 244, 250, 0.94) 0%, rgba(255, 255, 255, 0.82) 100%);
}

.balloon-game__metrics,
.balloon-game__result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.balloon-game__metrics--single {
  grid-template-columns: minmax(0, 1fr);
}

.balloon-game__metric {
  align-items: center;
  min-height: 88px;
}

.balloon-game__metric-label {
  display: block;
  color: #56718a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balloon-game__metric-value {
  display: block;
  margin-top: 4px;
  color: #123b59;
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  line-height: 1;
  font-weight: 900;
}

.balloon-game__result-title {
  margin: 0;
  font-size: clamp(1.42rem, 1.9vw, 1.86rem);
}

.balloon-game__panel--result[data-tone="perfect"] .balloon-game__result-title {
  color: #188649;
}

.balloon-game__panel--result[data-tone="great"] .balloon-game__result-title {
  color: #c86b00;
}

.balloon-game__panel--result[data-tone="warning"] .balloon-game__result-title {
  color: #9f4b00;
}

.balloon-game__panel--result[data-tone="danger"] .balloon-game__result-title {
  color: #be3359;
}

.balloon-game__stage-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.balloon-game__board {
  position: relative;
  min-height: clamp(360px, 60vh, 640px);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, rgba(255, 240, 249, 0.96) 0%, rgba(244, 250, 255, 0.98) 42%, rgba(227, 244, 255, 0.98) 100%);
  box-shadow:
    0 24px 44px rgba(5, 31, 53, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.balloon-game__board::before,
.balloon-game__board::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.balloon-game__board::before {
  inset: -12% auto auto -8%;
  width: min(320px, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 135, 190, 0.34) 0%, rgba(255, 135, 190, 0.1) 44%, rgba(255, 135, 190, 0) 76%);
  filter: blur(18px);
}

.balloon-game__board::after {
  right: -8%;
  bottom: -18%;
  width: min(360px, 46vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 193, 96, 0.32) 0%, rgba(255, 193, 96, 0.08) 42%, rgba(255, 193, 96, 0) 76%);
  filter: blur(22px);
}

.balloon-game__board[data-state="intro"] .balloon-game__board-title {
  color: #153d5b;
}

.balloon-game__board[data-state="playing"] .balloon-game__board-title {
  color: #7a1f56;
}

.balloon-game__board[data-state="result"] .balloon-game__board-title {
  color: #17446a;
}

.balloon-game__board-copy {
  position: absolute;
  top: clamp(18px, 2vw, 24px);
  left: clamp(18px, 2vw, 24px);
  right: clamp(18px, 2vw, 24px);
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: min(420px, 48%);
}

.balloon-game__board-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 30px;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(20, 64, 105, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balloon-game__board-title {
  margin: 0;
  font-size: clamp(1.42rem, 2vw, 2rem);
  line-height: 1.02;
  font-weight: 900;
}

.balloon-game__board-text {
  margin: 0;
  color: #325168;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.6;
  font-weight: 800;
}

.balloon-game__balloon-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 60vh, 640px);
  padding: clamp(110px, 16vh, 150px) clamp(24px, 4vw, 44px) clamp(90px, 12vh, 118px);
}

.balloon-game__balloon-wrap {
  position: relative;
  z-index: 2;
  width: min(220px, 28vw);
  transform: scale(var(--balloon-scale, 0.24));
  transform-origin: center bottom;
  transition: transform 0.06s linear;
  will-change: transform;
}

.balloon-game__balloon-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 40px rgba(171, 57, 114, 0.22));
}

.balloon-game__balloon-svg.is-trembling {
  animation: balloonGameTremble 0.1s ease-in-out infinite;
}

.balloon-game__explosion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}

.balloon-game__shard {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  border-radius: 6px;
  animation: balloonGameShardBurst 640ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.balloon-game__flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 66%);
  animation: balloonGameFlashRing 280ms ease-out forwards;
}

.balloon-game__meter {
  position: absolute;
  left: clamp(18px, 2vw, 24px);
  right: clamp(18px, 2vw, 24px);
  bottom: clamp(18px, 2vw, 24px);
  z-index: 4;
  display: grid;
  gap: 8px;
}

.balloon-game__meter-label {
  color: #143a58;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balloon-game__meter-track {
  display: block;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(226, 238, 249, 0.9) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(145, 177, 204, 0.4),
    0 12px 18px rgba(10, 46, 74, 0.08);
}

.balloon-game__meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #56c53b 0%, #ffd25c 48%, #ff4c85 100%);
  box-shadow: 0 0 20px rgba(255, 76, 133, 0.28);
  transition: width 80ms linear;
}

.balloon-game__stage-assist {
  color: #56708a;
  font-size: 0.9rem;
  font-weight: 800;
}

@keyframes balloonGameTremble {
  0% {
    transform: rotate(-1deg) translate(-1.5px, 0);
  }

  25% {
    transform: rotate(1deg) translate(1.5px, 0);
  }

  50% {
    transform: rotate(-1.5deg) translate(-2px, 1px);
  }

  75% {
    transform: rotate(0.8deg) translate(1px, -1px);
  }

  100% {
    transform: rotate(-1deg) translate(-1.5px, 0);
  }
}

@keyframes balloonGameShardBurst {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
  }

  75% {
    opacity: 0.72;
  }

  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--spin)) scale(0.08);
    opacity: 0;
  }
}

@keyframes balloonGameFlashRing {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  .balloon-game__shell {
    grid-template-columns: 1fr;
  }

  .balloon-game__board-copy {
    max-width: min(520px, 100%);
  }

  .balloon-game__balloon-wrap {
    width: min(220px, 40vw);
  }
}

@media (max-width: 920px) {
  .balloon-game__intro-head {
    flex-direction: column;
  }

  .balloon-game__actions--intro {
    width: 100%;
    justify-content: flex-start;
  }

  .balloon-game__instruction-list--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.page-games-game .zone-screen {
    --zone-screen-top-space: 92px;
    --zone-screen-bottom-space: 20px;
    --zone-screen-inline-space: 12px;
  }

  .balloon-game__intro,
  .balloon-game__panel,
  .balloon-game__stage-panel {
    padding: 18px 16px;
    border-radius: 24px;
  }

  .balloon-game__metrics,
  .balloon-game__result-metrics {
    grid-template-columns: 1fr;
  }

  .balloon-game__board {
    min-height: 420px;
    border-radius: 24px;
  }

  .balloon-game__board-copy {
    max-width: none;
  }

  .balloon-game__balloon-stage {
    min-height: 420px;
    padding: 132px 18px 86px;
  }

  .balloon-game__balloon-wrap {
    width: min(176px, 54vw);
  }

  .balloon-game__actions {
    width: 100%;
    flex-direction: column;
  }

  .balloon-game__actions .tour-button {
    width: 100%;
  }

  .balloon-game__message {
    min-height: 0;
  }
}

body.page-family-game {
  overflow-x: hidden;
  overflow-y: auto;
}

body.page-family-game .app-frame,
body.page-family-game .transition-main {
  min-height: 100svh;
  height: auto;
  overflow: visible;
}

body.page-family-game .zone-screen {
  --zone-screen-top-space: clamp(116px, 17vh, 164px);
  --zone-screen-bottom-space: clamp(28px, 4vh, 48px);
  --zone-screen-inline-space: clamp(14px, 2vw, 28px);
  min-height: 100svh;
  overflow: visible;
}

body.page-family-game .zone-screen__layout {
  min-height: 100svh;
  align-items: flex-start;
}

.hidden-objects {
  position: relative;
  z-index: 2;
  width: min(100%, 1380px);
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.hidden-objects__halo {
  position: absolute;
  inset: 10% 12% auto;
  height: 42%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 193, 96, 0.34) 0%, rgba(255, 193, 96, 0.08) 42%, rgba(255, 193, 96, 0) 76%);
  filter: blur(38px);
  opacity: 0.92;
  pointer-events: none;
  animation: hiddenObjectsHaloPulse 6.6s ease-in-out infinite;
}

.hidden-objects__intro,
.hidden-objects__panel,
.hidden-objects__stage-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 250, 255, 0.84) 100%);
  box-shadow:
    0 22px 44px rgba(4, 30, 52, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px) saturate(1.06);
}

.hidden-objects__intro {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 30px;
  overflow: hidden;
}

.hidden-objects__intro::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% auto;
  width: min(220px, 32vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 185, 72, 0.32) 0%, rgba(255, 185, 72, 0.08) 46%, rgba(255, 185, 72, 0) 76%);
  filter: blur(18px);
  pointer-events: none;
}

.hidden-objects__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  padding: 0.42rem 0.84rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 56%, #1c4d81);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hidden-objects__title {
  margin: 0;
  color: #153d5b;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.04;
  font-weight: 900;
  max-width: 18ch;
}

.hidden-objects__description {
  max-width: 64ch;
  margin: 0;
  color: #2f4c65;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  font-weight: 700;
}

.hidden-objects__shell {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.hidden-objects__sidebar {
  display: grid;
  gap: 16px;
}

.hidden-objects__panel,
.hidden-objects__stage-panel {
  border-radius: 30px;
  padding: clamp(18px, 2vw, 24px);
}

.hidden-objects__panel {
  display: grid;
  gap: 18px;
}

.hidden-objects__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hidden-objects__metric-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 0.98rem 1rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(234, 244, 255, 0.68) 100%);
  border: 1px solid rgba(171, 205, 231, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
  color: #163d5b;
}

.hidden-objects__metric-card .material-symbols-rounded,
.hidden-objects__stage-pill .material-symbols-rounded,
.hidden-objects__target-state {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 18%, #ffffff);
  color: color-mix(in srgb, var(--page-accent) 58%, #17406a);
  font-size: 1.28rem;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
  flex: none;
}

.hidden-objects__metric-label {
  display: block;
  color: #56718a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hidden-objects__metric-value {
  display: block;
  margin-top: 4px;
  color: #123b59;
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  line-height: 1;
  font-weight: 900;
}

.hidden-objects__message {
  margin: 0;
  min-height: 84px;
  padding: 0.98rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(133, 176, 214, 0.34);
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 800;
  color: #244560;
  background: rgba(239, 248, 255, 0.72);
}

.hidden-objects__message--info,
.hidden-objects__message--neutral {
  background: linear-gradient(180deg, rgba(236, 246, 255, 0.84) 0%, rgba(228, 242, 255, 0.72) 100%);
  border-color: rgba(118, 170, 215, 0.42);
}

.hidden-objects__message--success {
  background: linear-gradient(180deg, rgba(235, 255, 233, 0.9) 0%, rgba(219, 250, 214, 0.8) 100%);
  border-color: rgba(70, 167, 53, 0.34);
  color: #23522c;
}

.hidden-objects__message--warning {
  background: linear-gradient(180deg, rgba(255, 246, 225, 0.92) 0%, rgba(255, 237, 192, 0.82) 100%);
  border-color: rgba(214, 149, 47, 0.34);
  color: #7a5212;
}

.hidden-objects__message--error {
  background: linear-gradient(180deg, rgba(255, 236, 231, 0.92) 0%, rgba(255, 220, 214, 0.82) 100%);
  border-color: rgba(213, 93, 72, 0.32);
  color: #7a332a;
}

.hidden-objects__actions {
  display: grid;
  gap: 10px;
}

.hidden-objects__assist {
  margin: 0;
  color: #58708a;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 700;
}

.hidden-objects__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hidden-objects__panel-title {
  margin: 0;
  color: #153d5b;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.1;
  font-weight: 900;
}

.hidden-objects__panel-text {
  margin: 4px 0 0;
  color: #5c7691;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 700;
}

.hidden-objects__remaining {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(164, 200, 228, 0.48);
  color: #173d5c;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.hidden-objects__target-list {
  list-style: none;
  margin: 0;
  padding: 0 4px 0 0;
  display: grid;
  gap: 10px;
  max-height: min(52vh, 620px);
  overflow: auto;
}

.hidden-objects__target {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0.82rem 0.92rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(164, 199, 226, 0.42);
  color: #163d5a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hidden-objects__target-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 190, 92, 0.34) 0%, rgba(255, 222, 154, 0.24) 100%);
  color: #8f5200;
  font-size: 0.92rem;
  font-weight: 900;
}

.hidden-objects__target-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.hidden-objects__target-name {
  color: #143a57;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 900;
}

.hidden-objects__target-note {
  color: #6b849b;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 800;
}

.hidden-objects__target.is-found {
  background: linear-gradient(180deg, rgba(234, 255, 234, 0.94) 0%, rgba(220, 248, 217, 0.86) 100%);
  border-color: rgba(78, 168, 62, 0.38);
  transform: translateY(-1px);
  box-shadow:
    0 12px 20px rgba(46, 123, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hidden-objects__target.is-found .hidden-objects__target-state {
  background: linear-gradient(180deg, #55c53a 0%, #2c9f20 100%);
  color: #ffffff;
}

.hidden-objects__target.is-found .hidden-objects__target-note,
.hidden-objects__target.is-found .hidden-objects__target-name {
  color: #214d2d;
}

.hidden-objects__stage-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.hidden-objects__stage-toolbar,
.hidden-objects__stage-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hidden-objects__stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(162, 199, 227, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #143b59;
  font-size: 0.94rem;
  font-weight: 900;
}

.hidden-objects__stage-pill .material-symbols-rounded {
  width: 34px;
  height: 34px;
  font-size: 1.08rem;
}

.hidden-objects__stage-caption {
  color: #5b7690;
  font-size: 0.88rem;
  font-weight: 900;
}

.hidden-objects__metric-card.is-urgent,
.hidden-objects__stage-pill.is-urgent {
  border-color: rgba(228, 113, 71, 0.38);
  background: linear-gradient(180deg, rgba(255, 238, 232, 0.96) 0%, rgba(255, 228, 219, 0.82) 100%);
  box-shadow:
    0 0 0 4px rgba(255, 156, 126, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hidden-objects__metric-card.is-urgent .material-symbols-rounded,
.hidden-objects__stage-pill.is-urgent .material-symbols-rounded {
  background: rgba(255, 173, 145, 0.3);
  color: #b0442f;
}

.hidden-objects__board {
  position: relative;
  width: 100%;
  aspect-ratio: 3840 / 2160;
  border-radius: 30px;
  overflow: hidden;
  background: #a9d539;
  box-shadow:
    0 24px 44px rgba(5, 31, 53, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hidden-objects__board::before,
.hidden-objects__board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hidden-objects__board::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 186, 98, 0.12) 0%, rgba(255, 186, 98, 0) 34%);
  mix-blend-mode: screen;
}

.hidden-objects__board::after {
  inset: 10px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.hidden-objects__board img,
.hidden-objects__overlay {
  position: absolute;
  inset: 0;
}

.hidden-objects__board img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden-objects__overlay {
  z-index: 2;
  pointer-events: none;
}

.hidden-objects__board.is-finished img {
  filter: saturate(0.94) brightness(0.96);
}

.hidden-objects__marker,
.hidden-objects__ripple {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hidden-objects__marker {
  width: clamp(34px, calc(var(--size) * 1%), 92px);
  height: clamp(34px, calc(var(--size) * 1%), 92px);
  animation: hiddenObjectsMarkerIn 240ms ease-out;
}

.hidden-objects__marker-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 255, 255, 0.26);
}

.hidden-objects__marker--found .hidden-objects__marker-ring {
  background: rgba(84, 197, 58, 0.16);
  border-color: #ffffff;
  box-shadow:
    0 0 0 8px rgba(90, 203, 64, 0.18),
    0 0 24px rgba(90, 203, 64, 0.28);
}

.hidden-objects__marker--missed .hidden-objects__marker-ring {
  background: rgba(255, 175, 114, 0.12);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 8px rgba(255, 180, 92, 0.16),
    0 0 22px rgba(255, 180, 92, 0.22);
}

.hidden-objects__marker-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  background: rgba(15, 57, 89, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 20px rgba(6, 27, 45, 0.18);
}

.hidden-objects__marker--missed .hidden-objects__marker-label {
  background: rgba(170, 85, 19, 0.92);
}

.hidden-objects__ripple {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.94);
  opacity: 0.92;
  animation: hiddenObjectsRipple 760ms ease-out forwards;
}

.hidden-objects__ripple--error {
  border-color: rgba(221, 92, 66, 0.98);
  box-shadow: 0 0 0 4px rgba(221, 92, 66, 0.16);
}

.hidden-objects__ripple--warning {
  border-color: rgba(228, 160, 62, 0.98);
  box-shadow: 0 0 0 4px rgba(228, 160, 62, 0.16);
}

.hidden-objects__ripple--success {
  border-color: rgba(79, 193, 57, 0.98);
  box-shadow: 0 0 0 4px rgba(79, 193, 57, 0.16);
}

.hidden-objects__result {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(calc(100% - 24px), 460px);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 248, 255, 0.92) 100%);
  box-shadow:
    0 20px 44px rgba(4, 21, 38, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
  text-align: center;
}

.hidden-objects__result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 52%, #184e87);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hidden-objects__result-title {
  margin: 0;
  color: #153d5a;
  font-size: clamp(1.24rem, 2vw, 1.72rem);
  line-height: 1.08;
  font-weight: 900;
}

.hidden-objects__result-text {
  margin: 0;
  color: #40617c;
  font-size: 0.96rem;
  line-height: 1.58;
  font-weight: 700;
}

.hidden-objects__topbar,
.hidden-objects__stage-panel {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 250, 255, 0.84) 100%);
  box-shadow:
    0 18px 34px rgba(4, 30, 52, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px) saturate(1.04);
}

.hidden-objects__topbar {
  display: grid;
  gap: 14px;
}

.hidden-objects__controls,
.hidden-objects__summary,
.hidden-objects__target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hidden-objects__summary {
  justify-content: flex-start;
}

.hidden-objects__restart {
  min-width: 0;
}

.hidden-objects__target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.hidden-objects__target {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0.7rem 0.84rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  flex: 0 1 auto;
}

.hidden-objects__target-index {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 0.78rem;
}

.hidden-objects__target-copy {
  gap: 2px;
}

.hidden-objects__target-name {
  font-size: 0.9rem;
}

.hidden-objects__target-note {
  font-size: 0.74rem;
}

.hidden-objects__stage-panel {
  gap: 14px;
}

.hidden-objects__message {
  min-height: 0;
  text-align: center;
}

.hidden-objects__board--waiting {
  cursor: default;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 222, 145, 0.34) 0%, rgba(255, 222, 145, 0) 28%),
    linear-gradient(180deg, rgba(168, 220, 94, 0.98) 0%, rgba(130, 197, 58, 0.98) 100%);
}

.hidden-objects__board--waiting img {
  opacity: 0;
  visibility: hidden;
}

.hidden-objects__board--waiting::before {
  background:
    linear-gradient(180deg, rgba(14, 52, 81, 0.08) 0%, rgba(14, 52, 81, 0.12) 100%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 28%);
}

.hidden-objects__intro-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(calc(100% - 24px), 560px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 248, 255, 0.92) 100%);
  box-shadow:
    0 20px 40px rgba(4, 21, 38, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  text-align: center;
}

.hidden-objects__intro-card .hidden-objects__eyebrow {
  justify-self: center;
}

.hidden-objects__intro-card .hidden-objects__title {
  max-width: 12ch;
}

.hidden-objects__intro-card .hidden-objects__description {
  max-width: 40ch;
}

.hidden-objects__sr-metrics {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes hiddenObjectsHaloPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.96;
    transform: scale(1.04);
  }
}

@keyframes hiddenObjectsMarkerIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes hiddenObjectsRipple {
  0% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.36);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
}

@keyframes hotspotPulse {
  0% {
    transform: scale(0.82);
    opacity: 0.72;
  }

  58% {
    transform: scale(1.2);
    opacity: 0.18;
  }

  100% {
    transform: scale(1.34);
    opacity: 0;
  }
}

@keyframes hotspotTrail {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.58;
  }

  50% {
    transform: scale(1.16);
    opacity: 0.96;
  }
}

@keyframes hotspotGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 8px color-mix(in srgb, var(--page-accent) 30%, rgba(255, 255, 255, 0)),
      0 0 28px color-mix(in srgb, var(--page-accent) 24%, rgba(255, 255, 255, 0)),
      0 18px 30px rgba(4, 32, 56, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.26);
  }

  50% {
    box-shadow:
      0 0 0 12px color-mix(in srgb, var(--page-accent) 24%, rgba(255, 255, 255, 0)),
      0 0 42px color-mix(in srgb, var(--page-accent) 32%, rgba(255, 255, 255, 0)),
      0 20px 34px rgba(4, 32, 56, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }
}

@keyframes hotspotIconBeat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes attendancePromptGlow {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(0.995);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes attendancePromptTag {
  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
    box-shadow:
      0 18px 30px rgba(4, 24, 49, 0.24),
      0 0 0 8px rgba(8, 43, 87, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  50% {
    transform: translate(-50%, -3px) scale(1.05);
    box-shadow:
      0 22px 34px rgba(4, 24, 49, 0.3),
      0 0 0 12px rgba(8, 43, 87, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
}

@keyframes attendancePromptHeroGlow {
  0%,
  100% {
    filter:
      brightness(1.03)
      saturate(1.06)
      drop-shadow(0 0 16px rgba(8, 43, 87, 0.24))
      drop-shadow(0 16px 28px rgba(8, 43, 87, 0.2));
  }

  50% {
    filter:
      brightness(1.09)
      saturate(1.12)
      drop-shadow(0 0 26px rgba(8, 43, 87, 0.42))
      drop-shadow(0 18px 30px rgba(8, 43, 87, 0.28));
  }
}

.zone-screen__nav {
  position: relative;
  z-index: 4;
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 42px) clamp(26px, 4vh, 34px);
}

.zone-card {
  min-height: 112px;
  padding: 1rem 1rem 1.05rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.zone-card:hover,
.zone-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255, 255, 255, 0.92);
}

.zone-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.94);
  outline-offset: 3px;
}

.zone-card.is-current {
  background: linear-gradient(180deg, color-mix(in srgb, var(--page-accent) 22%, white) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-color: color-mix(in srgb, var(--page-accent) 22%, white);
  pointer-events: none;
}

.zone-card__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--page-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.zone-card__title {
  display: block;
  color: #163f5e;
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 900;
}

.zone-card__text {
  display: block;
  margin-top: 6px;
  color: #47657d;
  font-size: 0.82rem;
  line-height: 1.42;
  font-weight: 700;
}

body.page-login {
  --page-accent: #59c83c;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.3) 0%, transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2) 0%, transparent 22%),
    linear-gradient(180deg, #8ae0ff 0%, #42c4f4 100%);
}

body.page-login .app-frame::before,
body.page-login .app-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.page-login .app-frame::before {
  background:
    linear-gradient(180deg, rgba(20, 91, 131, 0.08) 0%, rgba(8, 54, 85, 0.2) 100%),
    url("./Fondo/Mundo-Nubes-CelebMesMasFeliz2026.jpg") center bottom / cover no-repeat;
  transform: scale(1.06);
  filter: saturate(1.04) blur(1px);
}

body.page-login .app-frame::after {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 248, 189, 0.26) 0%, transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(238, 247, 255, 0.08) 36%, rgba(12, 60, 93, 0.2) 100%);
}

.login-screen {
  position: relative;
  min-height: 100svh;
  padding: clamp(18px, 3vw, 34px);
  display: grid;
  place-items: center;
}

.login-screen__layout {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 420px);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
}

.login-brand {
  display: grid;
  gap: clamp(14px, 2.2vh, 24px);
  align-items: center;
}

.login-brand__badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  background: rgba(15, 62, 96, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.login-brand__badge .material-symbols-rounded {
  font-size: 1rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.login-brand__logo-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 650px);
  min-height: clamp(210px, 34vw, 310px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(235, 247, 255, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 28px 54px rgba(5, 41, 67, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px) saturate(1.08);
  overflow: hidden;
}

.login-brand__logo-shell::before {
  content: "";
  position: absolute;
  inset: -8% 38% -8% -42%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.54) 48%, transparent 100%);
  transform: translateX(-132%) skewX(-20deg);
  opacity: 0.7;
  animation: loginShimmer 5.6s ease-in-out infinite;
}

.login-brand__glow {
  position: absolute;
  inset: 14% 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 175, 0.46) 0%, rgba(255, 255, 255, 0) 66%);
  filter: blur(22px);
  animation: loginGlow 6.4s ease-in-out infinite;
}

.login-brand__logo {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  filter:
    drop-shadow(0 16px 22px rgba(6, 47, 74, 0.16))
    drop-shadow(0 26px 42px rgba(9, 55, 82, 0.18));
  animation: loginLogoFloat 6.8s ease-in-out infinite;
}

.login-brand__copy {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.login-brand__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 0.96;
  font-weight: 900;
  text-shadow: 0 12px 28px rgba(10, 47, 71, 0.2);
}

.login-brand__text {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.58;
  font-weight: 700;
}

.login-brand__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-brand__chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.login-brand__mascot {
  position: relative;
  width: min(260px, 42vw);
  filter:
    drop-shadow(0 18px 28px rgba(10, 50, 74, 0.16))
    drop-shadow(0 30px 46px rgba(8, 44, 67, 0.16));
  animation: bob 7.2s ease-in-out infinite 0.5s;
}

.login-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 249, 255, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 22px 40px rgba(4, 37, 61, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px) saturate(1.08);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 80% 10%, rgba(90, 200, 60, 0.1) 0%, transparent 28%),
    radial-gradient(circle at 16% 100%, rgba(66, 196, 244, 0.16) 0%, transparent 34%);
  pointer-events: none;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-card__tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 61, 95, 0.08);
}

.login-tab {
  min-height: 38px;
  padding: 0.54rem 0.84rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #557187;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.login-tab.is-active {
  background: linear-gradient(180deg, rgba(19, 61, 96, 0.96) 0%, rgba(14, 50, 80, 0.96) 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(10, 43, 69, 0.18);
}

.login-tab:hover,
.login-tab:focus-visible {
  transform: translateY(-1px);
}

.login-tab:focus-visible {
  outline: 3px solid rgba(24, 89, 132, 0.18);
  outline-offset: 2px;
}

.login-form {
  display: none;
  gap: 12px;
}

.login-form.is-active {
  display: grid;
  animation: fadeIn 280ms ease;
}

.login-card__eyebrow {
  color: color-mix(in srgb, var(--page-accent) 56%, #174465);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-card__title {
  margin: -2px 0 0;
  color: #143c5b;
  font-size: clamp(1.52rem, 2.4vw, 2rem);
  line-height: 1;
  font-weight: 900;
}

.login-card__text {
  margin: 0 0 6px;
  color: #557185;
  font-size: 0.92rem;
  line-height: 1.56;
  font-weight: 700;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field__label {
  color: #45637a;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-field__control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(22, 76, 114, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(9, 52, 79, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-field__control:focus-within {
  border-color: color-mix(in srgb, var(--page-accent) 46%, #2376ad);
  box-shadow:
    0 0 0 4px rgba(84, 197, 59, 0.12),
    0 10px 22px rgba(9, 52, 79, 0.08);
  transform: translateY(-1px);
}

.login-field__control .material-symbols-rounded {
  font-size: 1.02rem;
  color: color-mix(in srgb, var(--page-accent) 52%, #1b4a6d);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.login-field__control input,
.login-field__control select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #173d60;
  font-size: 0.96rem;
  line-height: 1.2;
  padding: 0.82rem 0;
  outline: none;
}

.login-field__control select {
  appearance: none;
  cursor: pointer;
}

.login-field__control input::placeholder {
  color: #87a0b3;
}

.login-feedback {
  min-height: 1.28rem;
  margin: 2px 2px 0;
  color: #5b778b;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 800;
}

.login-feedback[data-state="error"] {
  color: #b9334d;
}

.login-feedback[data-state="success"] {
  color: #1b8243;
}

.login-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.login-button {
  width: 100%;
  min-height: 46px;
  padding: 0.76rem 1rem;
  border-radius: 16px;
  border: 0;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, filter 160ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  transform: translateY(-1px);
}

.login-button:focus-visible {
  outline: 3px solid rgba(34, 100, 144, 0.18);
  outline-offset: 3px;
}

.login-button--primary {
  background: linear-gradient(180deg, #6bcf43 0%, #2fa625 100%);
  color: #ffffff;
  box-shadow: 0 16px 24px rgba(31, 118, 34, 0.22);
}

.login-button--primary:hover,
.login-button--primary:focus-visible {
  filter: brightness(1.04);
}

.login-button--secondary {
  background: linear-gradient(180deg, rgba(20, 62, 96, 0.96) 0%, rgba(14, 50, 80, 0.96) 100%);
  color: #ffffff;
  box-shadow: 0 14px 22px rgba(7, 38, 60, 0.16);
}

.login-button--ghost {
  background: rgba(18, 61, 96, 0.08);
  color: #184567;
}

.login-form[aria-busy="true"] {
  pointer-events: none;
}

.login-form[aria-busy="true"] .login-button--primary {
  filter: saturate(0.8) brightness(0.98);
}

body.page-login .transition-main {
  transition:
    opacity 380ms ease,
    transform 540ms cubic-bezier(0.18, 0.82, 0.24, 1),
    filter 220ms ease;
}

.app-frame.app-frame--login-flow-active .transition-main {
  filter: blur(4px) saturate(0.92) brightness(0.88);
  pointer-events: none;
  transform: scale(0.992);
}

.login-flow-modal {
  z-index: 64;
  align-items: end;
  overflow-y: auto;
  padding: clamp(16px, 2.8vw, 28px);
}

.login-flow-modal .tour-ui__backdrop {
  background: rgba(6, 18, 40, 0.8);
  backdrop-filter: blur(5px);
}

.login-flow-dialog {
  position: relative;
  width: min(100%, 1080px);
  display: block;
  padding: clamp(86px, 10vw, 126px) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-flow-modal.is-open .login-flow-dialog {
  transform: translateY(0);
}

.login-flow-dialog .tour-dialog__portrait {
  position: absolute;
  top: -70px;
  left: 12px;
  z-index: 2;
  width: clamp(148px, 18vw, 210px);
  max-width: none;
  min-height: clamp(148px, 18vw, 202px);
  margin: 0;
  padding: 12px;
  border: 6px solid #496987;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffef8 0%, #f5edcb 100%);
  box-shadow:
    0 0 0 6px #f2cd61,
    0 16px 0 rgba(39, 74, 100, 0.22),
    0 28px 34px rgba(4, 20, 37, 0.26);
}

.dialog-portrait--video {
  place-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  box-sizing: border-box;
}

.login-flow-dialog .tour-dialog__portrait::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.08) 52%, transparent 100%),
    radial-gradient(circle at 50% 18%, rgba(255, 227, 137, 0.28) 0%, transparent 56%);
  pointer-events: none;
}

.login-flow-dialog .dialog-portrait--video {
  background: #ffffff;
  box-shadow:
    0 0 0 6px #dce9f5,
    0 16px 0 rgba(39, 74, 100, 0.18),
    0 28px 34px rgba(4, 20, 37, 0.22);
}

.login-flow-dialog .dialog-portrait--video::before {
  background: none;
}

.dialog-portrait--video :is(img, video) {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
}

.login-flow-dialog .tour-dialog__portrait :is(img, video) {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  filter:
    drop-shadow(0 8px 12px rgba(8, 42, 66, 0.18))
    drop-shadow(0 16px 20px rgba(7, 33, 54, 0.14));
}

.dialog-portrait--video video {
  transform: scale(1.36);
  transform-origin: center;
  filter: none;
}

.login-flow-dialog .dialog-portrait--video video {
  height: 100%;
}

.login-flow-dialog .dialog-portrait--video :is(img, video) {
  filter: none;
}

.login-flow-dialog .tour-dialog__portrait video,
.tour-dialog__portrait video {
  pointer-events: none;
}

.login-celebration-modal {
  align-items: stretch;
  padding: 0;
}

.login-celebration-modal .tour-ui__backdrop {
  background: #000000;
  backdrop-filter: none;
}

.login-celebration-dialog {
  width: 100%;
  max-width: none;
  height: 100svh;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
  transform: none;
}

.login-celebration-modal.is-open .login-celebration-dialog {
  transform: none;
}

.login-celebration-dialog .tour-dialog__body {
  
  gap: 0;
  height: 100%;
  padding: 0;
  background: transparent;
}

.login-celebration__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
}

.login-celebration__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.login-celebration__status {
  margin: 0;
  min-height: 1.3rem;
  text-align: center;
}

.login-flow-dialog .tour-dialog__body {
  position: relative;
  align-items: stretch;
  align-content: start;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 28px);
  border: 6px solid #5a84a8;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 58%, #e9f2ff 100%);
  box-shadow:
    0 0 0 6px #d8e8f4,
    0 0 0 12px #446887,
    0 22px 36px rgba(3, 20, 40, 0.28);
  overflow: hidden;
}

.login-flow-dialog .tour-dialog__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 22%),
    repeating-linear-gradient(
      180deg,
      rgba(78, 122, 163, 0.045) 0,
      rgba(78, 122, 163, 0.045) 2px,
      transparent 2px,
      transparent 6px
    );
  pointer-events: none;
}

.login-flow-dialog .tour-dialog__body::after {
  content: "";
  position: absolute;
  inset: auto -8% -30% 42%;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 181, 255, 0.14) 0%, rgba(93, 181, 255, 0) 70%);
  filter: blur(12px);
  pointer-events: none;
}

.login-flow-dialog .tour-dialog__body > * {
  position: relative;
  z-index: 1;
  width: 100%;
}

.login-flow-dialog .tour-dialog__text {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
  color: #2d445b;
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2vw, 20px) clamp(18px, 2.2vw, 22px);
  border-radius: 20px;
  border: 1px solid rgba(72, 108, 136, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 247, 255, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 10px 18px rgba(11, 50, 78, 0.06);
  font-family: var(--dialog-font-family);
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0;
  text-wrap: pretty;
}

.login-flow-dialog .tour-dialog__text::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, #5f82a4 0%, #274f73 100%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  animation: dialoguePromptBlink 0.9s steps(1, end) infinite;
}

.login-flow__form {
  display: grid;
  width: 100%;
  align-content: start;
  gap: 14px;
}

.login-flow__fields {
  display: grid;
  gap: 12px;
}

.login-flow__feedback {
  max-width: none;
  min-height: 1.3rem;
  margin: 0;
  color: #4d6880;
  text-align: left;
  text-shadow: none;
  font-family: var(--dialog-font-family);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 800;
}

.login-flow__feedback[data-state="error"] {
  color: #b9334d;
}

.login-flow__feedback[data-state="success"] {
  color: #1b8243;
}

.login-flow__summary {
  display: none;
}

.login-flow__summary-title {
  margin: 0;
  color: #184568;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-flow__summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-flow__summary-item {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 70, 106, 0.1);
}

.login-flow__summary-label {
  color: #5a778c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-flow__summary-value {
  color: #173d60;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.login-flow__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.login-flow__choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 88px;
  padding: 14px 16px;
  border: 4px solid #d3e4f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6fc 100%);
  box-shadow:
    inset 0 -4px 0 rgba(192, 216, 236, 0.72),
    0 10px 18px rgba(9, 52, 79, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.login-flow__choice:hover,
.login-flow__choice:focus-visible {
  border-color: #f1cc63;
  box-shadow:
    inset 0 -4px 0 rgba(237, 203, 103, 0.36),
    0 14px 24px rgba(9, 52, 79, 0.12);
  transform: translateY(-2px);
}

.login-flow__choice:focus-visible {
  outline: 3px solid rgba(241, 204, 99, 0.28);
  outline-offset: 3px;
}

.login-flow__choice--flag {
  align-items: center;
}

.login-flow__choice .material-symbols-rounded {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(71, 119, 157, 0.14) 0%, rgba(71, 119, 157, 0.08) 100%);
  font-size: 1.42rem;
  color: #31597d;
}

.login-flow__choice-flag {
  flex: 0 0 auto;
  display: block;
  width: 56px;
  height: 48px;
  padding: 2px;
  border-radius: 12px;
  
  object-fit: contain;
  
}

.login-flow__choice-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.login-flow__choice-label {
  color: #173d60;
  font-family: var(--dialog-font-family);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.login-flow__choice-note {
  color: #5d788c;
  font-family: var(--dialog-font-family);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.42;
}

.login-flow__controls {
  align-items: center;
  gap: 14px;
  margin-top: 0;
}

.login-flow__controls .tour-dialog__hint {
  max-width: 34ch;
  color: #466684;
  padding: 0.72rem 0.88rem;
  border-radius: 14px;
  border: 1px solid rgba(72, 108, 136, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--dialog-font-family);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 800;
}

.login-flow-dialog .tour-dialog__meta {
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.login-flow-dialog .tour-dialog__step {
  min-width: 92px;
  padding: 0.5rem 0.88rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #2e618d 0%, #204969 100%);
  box-shadow:
    inset 0 -4px 0 rgba(10, 40, 62, 0.26),
    0 8px 16px rgba(10, 43, 69, 0.16);
  font-size: 0.82rem;
}

.login-flow-dialog .tour-dialog__title {
  color: #163b5a;
  font-size: clamp(1.22rem, 1.8vw, 1.58rem);
  font-family: var(--dialog-font-family);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.login-flow-dialog .login-field__label {
  color: #4b6b84;
  font-family: var(--dialog-font-family);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.login-flow-dialog .login-field__control {
  min-height: 58px;
  border: 4px solid #d4e4f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7fc 100%);
  box-shadow:
    inset 0 -4px 0 rgba(192, 216, 236, 0.72),
    0 10px 18px rgba(9, 52, 79, 0.08);
}

.login-flow-dialog .login-field__control:focus-within {
  border-color: #f1cc63;
  box-shadow:
    0 0 0 4px rgba(241, 204, 99, 0.24),
    inset 0 -4px 0 rgba(237, 203, 103, 0.36),
    0 10px 18px rgba(9, 52, 79, 0.08);
  transform: translateY(-1px);
}

.login-flow-dialog .login-field__control .material-symbols-rounded {
  color: #30597d;
  font-size: 1.16rem;
}

.login-flow-dialog .login-field__control input {
  color: #173d60;
  font-family: var(--dialog-font-family);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 800;
}

.login-flow-dialog .login-field__control input::placeholder {
  color: #8ea4b5;
}

.login-flow-dialog .tour-dialog__actions {
  gap: 12px;
}

.login-flow-dialog .tour-button {
  min-width: 126px;
  border-radius: 16px;
  box-shadow: inset 0 -4px 0 rgba(12, 39, 58, 0.2);
}

.login-flow-dialog .tour-button--ghost {
  background: linear-gradient(180deg, #91a7bb 0%, #6d8297 100%);
}

.login-flow-dialog .tour-button--primary {
  background: linear-gradient(180deg, #6dd149 0%, #2da524 100%);
  box-shadow:
    inset 0 -4px 0 rgba(21, 95, 22, 0.26),
    0 12px 22px rgba(31, 118, 34, 0.18);
}

@keyframes dialoguePromptBlink {
  0%,
  49%,
  100% {
    opacity: 0.96;
  }

  50%,
  82% {
    opacity: 0.18;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes focusPulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes driftCloud {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(6%, -2%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cloudLayerCover {
  0% {
    transform: translate3d(0, 3%, 0) scale(0.98);
    opacity: 0.92;
  }

  55% {
    transform: translate3d(0, -1.4%, 0) scale(1.04);
    opacity: 1;
  }

  100% {
    transform: translate3d(0, -3%, 0) scale(1.1);
    opacity: 1;
  }
}

@keyframes mistLayerCover {
  0% {
    transform: translate3d(0, 5%, 0) scale(0.96);
    opacity: 0.88;
  }

  58% {
    transform: translate3d(0, 1%, 0) scale(1.03);
    opacity: 1;
  }

  100% {
    transform: translate3d(0, -2%, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes cloudLayerReveal {
  0% {
    transform: translate3d(0, -3%, 0) scale(1.1);
    opacity: 1;
  }

  100% {
    transform: translate3d(0, -7%, 0) scale(1.14);
    opacity: 0;
  }
}

@keyframes mistLayerReveal {
  0% {
    transform: translate3d(0, -2%, 0) scale(1.08);
    opacity: 1;
  }

  100% {
    transform: translate3d(0, -6%, 0) scale(1.12);
    opacity: 0;
  }
}

@keyframes loginLogoFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(0, -8px, 0) rotate(1deg);
  }
}

@keyframes loginGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes loginShimmer {
  0%,
  100% {
    transform: translateX(-132%) skewX(-20deg);
    opacity: 0;
  }

  16%,
  32% {
    transform: translateX(182%) skewX(-20deg);
    opacity: 0.78;
  }
}

@media (max-width: 980px) {
  .login-screen__layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .login-brand {
    justify-items: center;
    text-align: center;
  }

  .login-brand__badge {
    justify-self: center;
  }

  .login-card {
    width: min(100%, 460px);
  }

  .player-hud {
    max-width: min(calc(100vw - 190px), 620px);
  }

  body.page-zone .player-hud {
    max-width: min(calc(100vw - 230px), 560px);
  }

  .zone-screen__layout {
    padding-top: 94px;
  }

  .zone-screen__nav {
    width: min(100%, 980px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .scene {
    --scene-top-safe: clamp(104px, 13vh, 132px);
    --scene-bottom-safe: clamp(20px, 4vh, 42px);
  }

  .login-brand__title {
    font-size: clamp(1.84rem, 6vw, 2.8rem);
  }

  .login-brand__text {
    max-width: 38ch;
  }

  .login-brand__mascot {
    width: min(220px, 44vw);
  }

  .zone__tag {
    font-size: 0.76rem;
    padding: 0.64rem 0.92rem;
  }

  .zone--mascot {
    --w: 27.8%;
    --x: 11.6%;
    --y: 19.9%;
  }

  .zone--welcome {
    --w: 46.4%;
    --x: 31.1%;
    --y: 33.2%;
  }

  .zone--family {
    --w: 47.2%;
    --x: 76.7%;
    --y: 32.4%;
  }

  .zone--logo {
    --w: 36.8%;
    --y: 51.3%;
  }

  .zone--games {
    --w: 47.8%;
    --x: 22.3%;
    --y: 70.9%;
  }

  .zone--food {
    --w: 48.8%;
    --x: 78.2%;
    --y: 70.8%;
  }

  .player-hud__label {
    display: none;
  }

  .player-hud__value {
    font-size: 0.8rem;
  }

  .tour-dialog {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
  }

  .login-flow-dialog {
    padding-top: 84px;
  }

  .login-flow-dialog .tour-dialog__portrait {
    left: 8px;
    width: 132px;
    min-height: 136px;
  }

  .login-flow-dialog .tour-dialog__text {
    font-size: clamp(1.42rem, 4vw, 1.84rem);
  }

  .login-flow-dialog .login-field__control input {
    font-size: 1.58rem;
  }

  .hidden-objects__controls {
    align-items: flex-start;
  }

  .hidden-objects__target-list {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .login-screen {
    padding: 16px;
  }

  .login-screen__layout {
    gap: 18px;
  }

  .login-brand__logo-shell {
    min-height: 180px;
    border-radius: 28px;
    padding: 18px;
  }

  .login-brand__copy {
    gap: 8px;
  }

  .login-brand__chips {
    justify-content: center;
  }

  .login-brand__mascot {
    width: min(180px, 42vw);
  }

  .login-card {
    gap: 16px;
    padding: 18px 16px;
    border-radius: 24px;
  }

  .login-card__tabs {
    width: 100%;
  }

  .login-tab {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
  }

  .login-field__control {
    min-height: 46px;
    border-radius: 14px;
  }

  .login-button {
    min-height: 44px;
    border-radius: 14px;
    font-size: 0.78rem;
  }

  .scene,
  .transition-main,
  .zone-screen {
    min-height: 100svh;
  }

  .scene__bg {
    transform:
      translate3d(calc(var(--pointer-x) * -10px), calc(var(--pointer-y) * -8px), 0)
      scale(1.08);
  }

  .zone__tag {
    display: none;
  }

  .zone--attendance-prompt .zone__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(36vw, 152px);
    padding: 0.56rem 0.78rem;
    bottom: calc(100% + 12px);
    font-size: 0.72rem;
    line-height: 1.12;
    white-space: normal;
    text-align: center;
  }

  .zone:hover .zone__art,
  .zone.is-hovered .zone__art,
  .zone:focus-visible .zone__art {
    transform: rotate(var(--rotate, 0deg)) translateY(-4px) scale(calc(var(--scale, 1) * 1.02));
  }

  .zone--mascot {
    --w: 30.8%;
    --x: 10.6%;
    --y: 19.4%;
  }

  .zone--welcome {
    --w: 50.4%;
    --x: 31.2%;
    --y: 33.7%;
  }

  .zone--family {
    --w: 51.4%;
    --x: 77.6%;
    --y: 33%;
  }

  .zone--logo {
    --w: 39.8%;
    --y: 52.1%;
  }

  .zone--games {
    --w: 51.6%;
    --x: 22.6%;
    --y: 71.7%;
  }

  .zone--food {
    --w: 52.8%;
    --x: 78.8%;
    --y: 71.5%;
  }

  .player-hud {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    justify-content: space-between;
    transform: none;
    gap: 6px;
    padding: 6px;
  }

  body.page-zone .player-hud {
    left: 72px;
    right: 12px;
  }

  .tour-launch {
    right: 12px;
    top: auto;
    bottom: 12px;
    padding: 0.8rem 1rem;
  }

  .scene {
    --scene-inline-pad: 10px;
    --scene-top-safe: 80px;
    --scene-bottom-safe: 88px;
  }

  .tour-ui {
    padding: 12px;
  }

  .login-flow-modal {
    padding: 12px;
  }

  .tour-focus::before {
    inset: -14px;
  }

  .tour-focus::after {
    inset: -7px;
    border-radius: 28px;
  }

  .tour-dialog {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 12px;
    border-radius: 22px;
  }

  .tour-dialog__portrait {
    min-height: 88px;
    padding: 8px;
    border-radius: 18px;
  }

  .tour-dialog__text {
    min-height: 0;
    font-size: 0.96rem;
  }

  .tour-dialog__controls {
    gap: 12px;
    justify-content: flex-start;
  }

  .tour-dialog__hint {
    width: 100%;
    order: 2;
  }

  .login-flow-dialog {
    padding-top: 58px;
  }

  .login-flow-dialog .tour-dialog__portrait {
    left: 0;
    width: 88px;
    min-height: 96px;
    padding: 8px;
    border-width: 4px;
    border-radius: 16px;
    box-shadow:
      0 0 0 4px #f2cd61,
      0 10px 0 rgba(39, 74, 100, 0.2),
      0 18px 24px rgba(4, 20, 37, 0.22);
  }

  .login-flow-dialog .tour-dialog__body {
    gap: 14px;
    padding: 18px 16px 16px;
    border-width: 4px;
    border-radius: 20px;
    box-shadow:
      0 0 0 4px #d8e8f4,
      0 0 0 8px #446887,
      0 18px 26px rgba(3, 20, 40, 0.24);
  }

  .login-flow-dialog .tour-dialog__meta {
    align-items: flex-start;
  }

  .login-flow-dialog .tour-dialog__step {
    min-width: auto;
    font-size: 0.72rem;
  }

  .login-flow-dialog .tour-dialog__title {
    font-size: 1.08rem;
  }

  .login-flow-dialog .tour-dialog__text {
    font-size: 0.98rem;
  }

  .login-flow-dialog .login-field__label {
    font-size: 0.68rem;
  }

  .login-flow-dialog .login-field__control {
    min-height: 52px;
    border-width: 3px;
    border-radius: 16px;
  }

  .login-flow-dialog .login-field__control input {
    font-size: 0.98rem;
  }

  .login-flow__choice {
    min-height: 82px;
    padding: 12px 14px;
    border-width: 3px;
  }

  .login-flow__choices {
    grid-template-columns: 1fr;
  }

  .login-flow__choice-label {
    font-size: 0.94rem;
  }

  .login-flow__choice-note {
    font-size: 0.76rem;
  }

  .login-flow__choice-flag {
    width: 48px;
    height: 32px;
    border-radius: 10px;
  }

  .login-flow__feedback {
    text-align: left;
    font-size: 0.82rem;
  }

  .login-flow__controls .tour-dialog__hint {
    max-width: none;
    font-size: 0.82rem;
  }

  .tour-button {
    min-width: 96px;
    padding: 0.78rem 0.96rem;
  }

  .dialog-portrait--video video {
    object-fit: cover;
  }

  .zone-screen__home {
    top: 12px;
    left: 12px;
    padding: 0.8rem 0.95rem;
  }

  .zone-screen__home span {
    display: none;
  }

  .zone-screen__layout {
    padding:
      var(--zone-screen-top-space)
      max(12px, var(--zone-screen-inline-space))
      var(--zone-screen-bottom-space);
  }

  .zone-screen--immersive .zone-screen__layout {
    padding:
      var(--zone-screen-top-space)
      max(12px, var(--zone-screen-inline-space))
      var(--zone-screen-bottom-space);
  }

  .zone-screen__hero {
    min-height: 44vh;
  }

  .zone-screen--immersive .zone-screen__hero {
    min-height: calc(100svh - 104px);
  }

  .zone-screen__art {
    width: min(
      calc(100vw - (max(12px, var(--zone-screen-inline-space)) * 2)),
      calc((100svh - var(--zone-screen-top-space) - var(--zone-screen-bottom-space)) * var(--zone-art-ratio))
    );
  }

  .zone-hotspot {
    width: 56px;
    height: 56px;
  }

  .zone-hotspot::before {
    inset: -24px;
  }

  .zone-hotspot::after {
    inset: -14px;
  }

  .zone-hotspot__icon {
    width: 76%;
    height: 76%;
  }

  .zone-hotspot--info .zone-hotspot__icon {
    width: 72%;
    height: 72%;
  }

  .zone-hotspot--game .zone-hotspot__icon {
    width: 78%;
    height: 78%;
  }

  .zone-info-modal {
    padding: 12px;
  }

  .zone-info-modal .tour-dialog__controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .zone-info-modal .tour-dialog__hint {
    max-width: none;
  }

  .zone-info-modal .tour-dialog__actions {
    width: 100%;
    justify-self: stretch;
  }

  .zone-info-modal .tour-dialog__actions .tour-button {
    width: 100%;
  }

  .zone-placeholder {
    width: 100%;
    padding: 18px 16px;
    border-radius: 24px;
  }

  .zone-placeholder__actions {
    width: 100%;
    flex-direction: column;
  }

  .zone-placeholder__actions .tour-button {
    width: 100%;
  }

  body.page-family-game .zone-screen {
    --zone-screen-top-space: 92px;
    --zone-screen-bottom-space: 18px;
    --zone-screen-inline-space: 12px;
  }

  .hidden-objects {
    gap: 14px;
  }

  .hidden-objects__topbar,
  .hidden-objects__stage-panel,
  .hidden-objects__intro-card {
    border-radius: 24px;
    padding: 16px;
  }

  .hidden-objects__title {
    font-size: 1.44rem;
  }

  .hidden-objects__description {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .hidden-objects__message {
    min-height: 0;
    font-size: 0.9rem;
  }

  .hidden-objects__controls,
  .hidden-objects__summary,
  .hidden-objects__target-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hidden-objects__remaining,
  .hidden-objects__stage-pill,
  .hidden-objects__restart {
    justify-content: center;
  }

  .hidden-objects__target-list {
    gap: 8px;
  }

  .hidden-objects__target {
    width: 100%;
    padding: 0.76rem 0.82rem;
  }

  .hidden-objects__target-index {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .hidden-objects__board {
    border-radius: 24px;
  }

  .hidden-objects__board::after {
    inset: 8px;
    border-radius: 18px;
  }

  .hidden-objects__intro-card {
    width: calc(100% - 18px);
    gap: 12px;
  }

  .hidden-objects__marker {
    width: clamp(28px, calc(var(--size) * 1%), 72px);
    height: clamp(28px, calc(var(--size) * 1%), 72px);
  }

  .hidden-objects__marker-ring {
    border-width: 2px;
  }

  .hidden-objects__marker-label {
    top: calc(100% + 8px);
    min-height: 26px;
    padding: 0.28rem 0.54rem;
    font-size: 0.66rem;
  }

  .hidden-objects__result {
    width: calc(100% - 18px);
    padding: 18px 16px;
    border-radius: 22px;
  }

  .hidden-objects__result-title {
    font-size: 1.16rem;
  }

  .hidden-objects__result-text {
    font-size: 0.84rem;
  }

  .hidden-objects__panel-title {
    font-size: 0.96rem;
  }

  .zone-screen__hero-copy {
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
  }

  .zone-screen__hero-title {
    font-size: 1.04rem;
  }

  .zone-screen__nav {
    grid-template-columns: 1fr;
    padding: 0 14px 18px;
  }

  .player-hud__item {
    min-height: 32px;
    padding: 0.42rem 0.5rem;
    justify-content: center;
    flex: 1 1 0;
  }

  .player-hud__item--country {
    min-width: 54px;
    flex: 0 0 auto;
    padding: 4px;
  }

  .player-hud__item--action {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .player-hud__value {
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-hud__flag-real {
    width: 44px;
    height: 22px;
    border-radius: 7px;
  }

  .app-transition__clouds::before {
    inset: -24% -34% 38% -38%;
  }

  .app-transition__clouds::after {
    inset: 10% -38% 20% 26%;
  }

  .app-transition__mist::before {
    inset: 48% -24% -18% -22%;
  }

  .app-transition__mist::after {
    inset: -28% -22% 54% -26%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transition-main,
  .app-transition,
  .app-transition__veil,
  .app-transition__veil::before,
  .app-transition__veil::after,
  .app-transition__clouds,
  .app-transition__mist,
  .app-transition__clouds::before,
  .app-transition__clouds::after,
  .app-transition__mist::before,
  .app-transition__mist::after,
  .scene__stage,
  .scene__bg,
  .scene__shine,
  .zone,
  .zone__float,
  .zone--attendance-prompt::before,
  .zone__art,
  .zone__tag,
  .tour-launch,
  .tour-ui,
  .tour-dialog,
  .tour-focus,
  .tour-focus::before,
  .zone-screen__sky::before,
  .zone-screen__sky::after,
  .zone-screen__art,
  .zone-hotspot,
  .zone-hotspot::before,
  .zone-hotspot::after,
  .zone-hotspot__icon,
  .zone-hotspot .material-symbols-rounded,
  .balloon-game__board,
  .balloon-game__balloon-svg,
  .balloon-game__meter-fill,
  .balloon-game__flash,
  .balloon-game__shard,
  .zone-card,
  .hidden-objects__halo,
  .hidden-objects__target,
  .hidden-objects__stage-pill,
  .hidden-objects__marker,
  .hidden-objects__ripple,
  .hidden-objects__result,
  .zone-placeholder,
  .zone-screen__home,
  .login-brand__logo-shell::before,
  .login-brand__glow,
  .login-brand__logo,
  .login-brand__mascot,
  .login-card,
  .login-flow__choice,
  .login-flow__summary-item,
  .login-flow-dialog .tour-dialog__text::after,
  .zone-info-modal .tour-dialog__hint,
  .zone-info-modal .tour-dialog__hint::after {
    animation: none !important;
    transition: none !important;
  }
}
