:root {
  --sky-soft: #ead8ff;
  --white-pearl: rgba(255, 255, 255, 0.88);
  --white-mist: rgba(255, 255, 255, 0.58);
  --pink: #ffc4de;
  --pink-deep: #f5a5cc;
  --lilac: #d7c3ff;
  --lilac-deep: #c0a7f6;
  --blue-pearl: #dff4ff;
  --blue-deep: #abd8ff;
  --gold-soft: #ffeaa8;
  --mint: #cff5e8;
}

.light-drop {
  border: 0;
  cursor: pointer;
  top: -14%;
}

.light-drop.is-falling {
  animation:
    lightDropFall var(--drop-duration, 3200ms) linear forwards,
    dropPulse 1.2s ease-in-out infinite;
}

@keyframes lightDropFall {
  from {
    top: -14%;
    transform: translateX(0) scale(0.92);
  }
  to {
    top: 86%;
    transform: translateX(var(--drop-drift, 0rem)) scale(1);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  font-family: var(--font-family-body);
  color: var(--ink);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M10 3l3.5 9L23 15.5l-9 3.5L10 28l-3.5-9L-2 15.5l8.5-3.5z' transform='translate(10 2)' fill='%23fff9c7' stroke='%23f1b7d6' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='8' cy='28' r='3' fill='%23d9c7ff'/%3E%3C/g%3E%3C/svg%3E") 6 4, auto;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 210, 242, 0.46), transparent 24%),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.45), transparent 36%),
    linear-gradient(180deg, #86c4ff 0%, var(--sky-top) 18%, var(--sky-mid) 44%, var(--sky-soft) 74%, var(--sky-bottom) 100%);
  overflow-x: hidden;
}

body.is-traveling {
  overflow: hidden;
}

body.is-traveling::before {
  opacity: 0.22;
  filter: blur(1px);
}

body.is-traveling::after {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(255, 236, 212, 0.62) 16%, rgba(255, 223, 246, 0.3) 34%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  animation: portalFlash 1.12s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.4) 0 0.25rem, transparent 0.3rem),
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.35) 0 0.22rem, transparent 0.28rem),
    radial-gradient(circle at 68% 62%, rgba(255, 255, 255, 0.28) 0 0.18rem, transparent 0.24rem),
    radial-gradient(circle at 24% 70%, rgba(255, 255, 255, 0.32) 0 0.2rem, transparent 0.26rem);
  opacity: 0.85;
}

body::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 58%);
  mix-blend-mode: screen;
}

button {
  font: inherit;
  cursor: inherit;
}

.world {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
  padding: 2rem 1.25rem 3rem;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, filter 0.8s ease;
}

.world::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 62%, rgba(255, 247, 220, 0.42), transparent 14%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 15;
}

.world.is-fading-out {
  transform: scale(1.015) translateY(-0.4rem);
  opacity: 0.3;
  filter: blur(8px) saturate(1.04);
}

.world.is-fading-out::after {
  animation: portalVeil 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-traveling .world-title,
body.is-traveling .scene,
body.is-traveling .message-sky,
body.is-traveling .cloud {
  animation: worldSink 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.message-sky {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.message-cloud {
  position: absolute;
  width: min(16rem, 34vw);
  min-width: 9rem;
  padding: 1rem 1rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 34%, rgba(255, 255, 255, 0.98), transparent 24%),
    radial-gradient(circle at 68% 36%, rgba(255, 255, 255, 0.94), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(236, 246, 255, 0.92) 60%, rgba(223, 233, 255, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -14px 20px rgba(186, 211, 244, 0.36),
    0 20px 34px rgba(105, 136, 189, 0.16);
  color: var(--ink-strong);
  font-family: var(--font-family-display);
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 1rem, 0) scale(0.94);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease,
    box-shadow 0.9s ease;
  filter: saturate(0.96) blur(0);
  will-change: transform, opacity, filter;
}

.message-cloud::before,
.message-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
  z-index: -1;
}

.message-cloud::before {
  width: 44%;
  height: 94%;
  left: 10%;
  top: -34%;
}

.message-cloud::after {
  width: 36%;
  height: 80%;
  right: 13%;
  top: -23%;
}

.message-cloud.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: saturate(1);
}

.message-cloud.is-removing {
  opacity: 0;
  transform: translate3d(0, -1.1rem, 0) scale(0.8);
  filter: blur(12px) saturate(0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 26px rgba(255, 255, 255, 0.22);
}

.message-cloud-text {
  display: block;
  position: relative;
  z-index: 1;
  padding: 0 0.45rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.message-cloud.is-removing .message-cloud-text {
  opacity: 0.38;
}

.message-cloud-float {
  animation: messageCloudFloat var(--float-duration, 13s) var(--float-easing, ease-in-out) infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}

.world::before {
  content: "";
  position: absolute;
  inset: auto 0 -5rem;
  height: 23rem;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.42), transparent 34%),
    radial-gradient(circle at 75% 42%, rgba(255, 218, 240, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 243, 249, 0.45));
  filter: blur(14px);
  pointer-events: none;
}

.sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.08) 68%, transparent 72%);
  filter: blur(0.2px);
  opacity: 0.65;
  animation: driftSpark 7s ease-in-out infinite;
}

.spark::before,
.spark::after {
  content: "";
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.spark::before {
  width: 1.05rem;
  height: 0.09rem;
}

.spark::after {
  width: 0.09rem;
  height: 1.05rem;
}

.spark-one { top: 12%; left: 14%; animation-duration: 8s; }
.spark-two { top: 20%; right: 18%; animation-duration: 6.8s; animation-delay: -1s; }
.spark-three { top: 36%; left: 10%; animation-duration: 7.6s; animation-delay: -2.5s; }
.spark-four { top: 44%; right: 24%; animation-duration: 9s; }
.spark-five { top: 58%; left: 22%; animation-duration: 7.2s; animation-delay: -1.8s; }
.spark-six { top: 68%; right: 12%; animation-duration: 8.4s; }
.spark-seven { top: 27%; left: 62%; animation-duration: 6.5s; animation-delay: -3s; }
.spark-eight { top: 74%; left: 72%; animation-duration: 7.9s; animation-delay: -0.8s; }

.sky-glow {
  position: absolute;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.7;
  pointer-events: none;
}

.sky-glow-left {
  top: -7rem;
  left: -5rem;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.18) 55%, transparent 72%);
}

.sky-glow-right {
  top: 1rem;
  right: -8rem;
  background:
    radial-gradient(circle at center, rgba(255, 209, 241, 0.66), rgba(209, 212, 255, 0.24) 54%, transparent 72%);
}

.world-title {
  position: relative;
  z-index: 3;
  width: min(42rem, 100%);
  margin: 0 auto 1.7rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 22px rgba(106, 135, 190, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(82, 101, 147, 0.84);
}

.world-title h1 {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.92;
  color: var(--ink-strong);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.65),
    0 12px 28px rgba(120, 147, 198, 0.16);
}

.subtitle {
  margin: 1rem auto 0;
  max-width: 35rem;
  padding: 0.85rem 1.1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 38px rgba(111, 139, 193, 0.12);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.6;
}

.scene {
  position: relative;
  z-index: 2;
  width: min(72rem, 100%);
  min-height: 72vh;
  margin: 0 auto;
  border-radius: 3rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.4), transparent 22%),
    radial-gradient(circle at 75% 18%, rgba(255, 212, 242, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -30px 40px rgba(248, 233, 255, 0.22),
    0 30px 65px rgba(108, 135, 190, 0.14);
}

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

.scene::before {
  inset: auto 4% -3rem;
  height: 10rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.52), rgba(255, 232, 245, 0.24) 40%, transparent 72%);
  filter: blur(10px);
}

.scene::after {
  top: 14%;
  right: 20%;
  width: 7rem;
  height: 7rem;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 58%);
  opacity: 0.55;
  animation: pulseGlow 6s ease-in-out infinite;
}

.path-line {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.28) transparent transparent transparent;
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(156, 182, 223, 0.15));
}

.path-line-one {
  top: 24%;
  left: 23%;
  width: 28%;
  height: 18%;
  rotate: 10deg;
}

.path-line-two {
  top: 26%;
  right: 21%;
  width: 24%;
  height: 24%;
  rotate: -18deg;
}

.path-line-three {
  bottom: 16%;
  left: 42%;
  width: 24%;
  height: 16%;
  rotate: -6deg;
}

.host-cloud {
  position: absolute;
  top: 21%;
  left: 50%;
  width: min(22vw, 13rem);
  min-width: 9.5rem;
  aspect-ratio: 1.2 / 1;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  z-index: 4;
  animation: hostFloat 8.6s cubic-bezier(0.42, 0, 0.2, 1) infinite;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.host-cloud:hover,
.host-cloud:focus-visible {
  transform: translateX(-50%) translateY(-0.5rem) scale(1.03);
  filter: brightness(1.03);
}

.host-cloud:hover .zone-hint,
.host-cloud:focus-visible .zone-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.host-cloud-body {
  position: relative;
  width: 100%;
  height: 72%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 1), transparent 22%),
    radial-gradient(circle at 72% 35%, rgba(255, 255, 255, 0.94), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.95) 58%, rgba(216, 231, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -18px 24px rgba(190, 214, 245, 0.5),
    0 22px 44px rgba(108, 140, 192, 0.24),
    0 0 20px rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.host-cloud-body::before,
.host-cloud-body::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.host-cloud-body::before {
  width: 46%;
  height: 92%;
  left: 10%;
  top: -32%;
}

.host-cloud-body::after {
  width: 40%;
  height: 82%;
  right: 12%;
  top: -24%;
}

.host-eye {
  position: absolute;
  top: 42%;
  width: 0.95rem;
  height: 1.15rem;
  z-index: 2;
  border-radius: 50%;
  background: linear-gradient(180deg, #51608f, #3d4c78);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.2);
  transform-origin: center 65%;
  transition: transform 0.35s ease, height 0.35s ease, top 0.35s ease;
}

.host-eye::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.22rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.host-eye-left {
  left: 33%;
}

.host-eye-right {
  right: 33%;
}

.host-mouth {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 1.5rem;
  height: 0.85rem;
  border-bottom: 0.22rem solid #f09bc2;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
  transition: width 0.45s ease, height 0.45s ease, border-bottom-width 0.45s ease, top 0.45s ease;
}

.host-cheek {
  position: absolute;
  top: 54%;
  width: 1.2rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 190, 214, 0.55);
  filter: blur(0.4px);
  transition: transform 0.45s ease, background 0.45s ease, opacity 0.45s ease;
}

.host-cheek-left {
  left: 22%;
}

.host-cheek-right {
  right: 22%;
}

.host-spark {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.08) 62%, transparent 68%);
  opacity: 0.85;
  animation: driftSpark 5.8s ease-in-out infinite;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.host-spark::before,
.host-spark::after {
  content: "";
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.host-spark::before {
  width: 1.15rem;
  height: 0.08rem;
}

.host-spark::after {
  width: 0.08rem;
  height: 1.15rem;
}

.host-spark-left {
  left: -0.6rem;
  top: 14%;
}

.host-spark-right {
  right: -0.3rem;
  top: 40%;
  animation-delay: -2.2s;
}

.host-hint {
  bottom: calc(100% + 0.5rem);
}

.host-cloud.is-reacting {
  animation: hostReact 1.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.host-cloud.is-reacting .host-cloud-body {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -18px 24px rgba(190, 214, 245, 0.5),
    0 24px 46px rgba(108, 140, 192, 0.26),
    0 0 38px rgba(255, 239, 186, 0.34);
  filter: brightness(1.02);
}

.host-cloud.is-reacting .host-cheek {
  background: rgba(255, 167, 201, 0.78);
  transform: scale(1.16);
}

.host-cloud.is-reacting .host-mouth {
  top: 56%;
  width: 1.82rem;
  height: 1rem;
  border-bottom-width: 0.24rem;
}

.host-cloud.is-reacting .host-eye {
  animation: hostBlink 0.8s ease 1;
  transform: scaleY(0.96);
}

.host-cloud.is-reacting .host-spark {
  opacity: 1;
  transform: scale(1.08);
  animation-duration: 3.8s;
}

.cloud {
  position: absolute;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(238, 247, 255, 0.92) 56%, rgba(208, 227, 255, 0.84));
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -18px 24px rgba(185, 211, 244, 0.45),
    0 22px 34px rgba(121, 152, 201, 0.14),
    0 0 18px rgba(255, 255, 255, 0.32);
  opacity: 0.96;
  animation: floatCloud linear infinite;
  pointer-events: none;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 46%;
  height: 92%;
  top: -38%;
  left: 14%;
}

.cloud::after {
  width: 38%;
  height: 80%;
  top: -25%;
  right: 13%;
}

.cloud-one {
  top: 12%;
  left: -5rem;
  width: 16rem;
  height: 5rem;
  animation-duration: 34s;
}

.cloud-two {
  top: 28%;
  right: -8rem;
  width: 17rem;
  height: 5.3rem;
  animation-duration: 40s;
  animation-direction: reverse;
}

.cloud-three {
  top: 50%;
  left: 4%;
  width: 11rem;
  height: 3.8rem;
  opacity: 0.82;
  animation-duration: 29s;
}

.cloud-four {
  top: 66%;
  right: 5%;
  width: 13rem;
  height: 4.4rem;
  opacity: 0.86;
  animation-duration: 36s;
  animation-direction: reverse;
}

.cloud-five {
  top: 8%;
  right: 22%;
  width: 9.8rem;
  height: 3.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 242, 255, 0.55));
  animation-duration: 26s;
}

.zone {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  outline: none;
  transition:
    transform 0.42s ease,
    filter 0.42s ease,
    box-shadow 0.42s ease;
  animation: floatZone 6s ease-in-out infinite;
}

.zone::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.zone:hover,
.zone:focus-visible {
  transform: translateY(-10px) scale(1.025);
  filter: saturate(1.06) brightness(1.03);
}

.zone:hover::after,
.zone:focus-visible::after {
  opacity: 1;
  transform: scale(1.02);
}

.zone:hover .zone-hint,
.zone:focus-visible .zone-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.zone-label {
  position: relative;
  z-index: 2;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(121, 146, 197, 0.12);
  font-family: var(--font-family-display);
  font-size: clamp(0.96rem, 2vw, 1.2rem);
  color: var(--ink-strong);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.zone-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.9rem);
  width: max-content;
  max-width: 13rem;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 244, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 28px rgba(109, 136, 191, 0.16);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.45rem) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 3;
}

.zone-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.38rem;
  width: 0.7rem;
  height: 0.7rem;
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  transform: translateX(-50%) rotate(45deg);
}

.zone-games {
  top: 16%;
  left: 6%;
  width: min(29vw, 19rem);
  min-width: 13.5rem;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.55rem;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation-name: swayCloudIsland;
  animation-duration: 7.2s;
}

.zone-games::before {
  content: "";
  position: absolute;
  inset: 10% 8% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.32), transparent 60%);
  filter: blur(16px);
  opacity: 0.92;
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

.zone-games::after {
  content: "";
  position: absolute;
  top: 6%;
  right: 7%;
  width: 4.25rem;
  height: 4.25rem;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 244, 191, 0.3), transparent 66%);
  box-shadow:
    -1.85rem 0.9rem 0 -1.42rem rgba(255, 246, 211, 0.94),
    -1.85rem 0.9rem 0 -1.18rem rgba(255, 226, 141, 0.38),
    -0.15rem 2.05rem 0 -1.48rem rgba(255, 250, 229, 0.9),
    -0.15rem 2.05rem 0 -1.22rem rgba(255, 229, 150, 0.28),
    -2.95rem 2.1rem 0 -1.6rem rgba(255, 255, 255, 0.9);
  opacity: 0.92;
  transform: rotate(6deg);
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.zone-games:hover,
.zone-games:focus-visible {
  filter: brightness(1.03);
}

.zone-games:hover::before,
.zone-games:focus-visible::before {
  transform: scale(1.04);
  filter: blur(18px) brightness(1.04);
}

.zone-games:hover::after,
.zone-games:focus-visible::after {
  transform: rotate(10deg) translateY(-0.22rem) scale(1.04);
  opacity: 1;
}

.games-cloud {
  position: absolute;
  inset: 6% 8% 14%;
  pointer-events: none;
  filter: drop-shadow(0 1.1rem 1.8rem rgba(123, 152, 203, 0.2));
}

.games-cloud-core,
.games-cloud-puff {
  position: absolute;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 1), transparent 20%),
    radial-gradient(circle at 68% 32%, rgba(255, 255, 255, 0.94), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 245, 255, 0.95) 58%, rgba(210, 228, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -18px 24px rgba(177, 203, 239, 0.44),
    0 0.9rem 1.4rem rgba(119, 147, 197, 0.16);
}

.games-cloud-core {
  left: 14%;
  right: 12%;
  bottom: 10%;
  height: 50%;
  border-radius: 999px;
}

.games-cloud-puff-one {
  left: 9%;
  bottom: 27%;
  width: 33%;
  height: 36%;
  border-radius: 50%;
}

.games-cloud-puff-two {
  left: 33%;
  bottom: 34%;
  width: 35%;
  height: 42%;
  border-radius: 50%;
}

.games-cloud-puff-three {
  right: 12%;
  bottom: 28%;
  width: 28%;
  height: 34%;
  border-radius: 50%;
}

.games-cloud-die {
  position: absolute;
  left: 22%;
  top: 26%;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.8rem;
  background:
    linear-gradient(160deg, rgba(255, 214, 235, 0.96), rgba(229, 221, 255, 0.95) 52%, rgba(214, 239, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 0.55rem 0.9rem rgba(165, 154, 208, 0.2);
  transform: rotate(-10deg);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease, filter 0.42s ease;
}

.games-cloud-dot {
  position: absolute;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(121, 109, 173, 0.72);
}

.games-cloud-dot-one {
  left: 0.48rem;
  top: 0.52rem;
}

.games-cloud-dot-two {
  right: 0.54rem;
  top: 0.94rem;
}

.games-cloud-dot-three {
  left: 0.82rem;
  bottom: 0.46rem;
}

.games-cloud-star,
.games-cloud-spark {
  position: absolute;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.games-cloud-star {
  width: 1.45rem;
  height: 1.45rem;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 67% 57%, 79% 93%, 50% 70%, 21% 93%, 33% 57%, 2% 35%, 39% 35%);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.98), rgba(255, 249, 195, 0.94) 34%, #ffd56f 76%);
  box-shadow:
    0 0 0 0.25rem rgba(255, 244, 199, 0.12),
    0 0 0.9rem rgba(255, 224, 132, 0.24);
}

.games-cloud-star-one {
  right: 18%;
  top: 16%;
  transform: rotate(8deg);
}

.games-cloud-star-two {
  right: 8%;
  top: 34%;
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.92;
  transform: rotate(-8deg);
}

.games-cloud-spark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.08) 62%, transparent 68%);
  opacity: 0.84;
  animation: driftSpark 5.4s ease-in-out infinite;
}

.games-cloud-spark::before,
.games-cloud-spark::after {
  content: "";
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.games-cloud-spark::before {
  width: 1rem;
  height: 0.08rem;
}

.games-cloud-spark::after {
  width: 0.08rem;
  height: 1rem;
}

.games-cloud-spark-one {
  left: 48%;
  top: 12%;
}

.games-cloud-spark-two {
  right: 25%;
  bottom: 20%;
  width: 0.8rem;
  height: 0.8rem;
  animation-delay: -2.2s;
}

.zone-games .zone-label {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 247, 255, 0.42));
  box-shadow:
    0 0.7rem 1.3rem rgba(119, 147, 197, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.zone-games:hover .games-cloud-die,
.zone-games:focus-visible .games-cloud-die {
  transform: rotate(-4deg) translateY(-0.18rem) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 0.7rem 1rem rgba(165, 154, 208, 0.22),
    0 0 1.1rem rgba(255, 232, 245, 0.32);
}

.zone-games:hover .games-cloud-star-one,
.zone-games:focus-visible .games-cloud-star-one {
  transform: rotate(14deg) translateY(-0.14rem) scale(1.08);
  filter: brightness(1.08);
}

.zone-games:hover .games-cloud-star-two,
.zone-games:focus-visible .games-cloud-star-two {
  transform: rotate(-2deg) translateY(-0.2rem) scale(1.12);
  filter: brightness(1.08);
}

.zone-games:hover .games-cloud-spark,
.zone-games:focus-visible .games-cloud-spark {
  opacity: 1;
  transform: scale(1.08);
}

.zone-secret {
  bottom: 14%;
  left: 13%;
  width: min(25vw, 17rem);
  min-width: 11rem;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  padding-bottom: 0.4rem;
  animation-name: bobSecret;
  animation-duration: 6.3s;
}

.zone-secret::before {
  content: "";
  position: absolute;
  inset: 10% 16% 8%;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.34), transparent 68%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(214, 214, 255, 0.26);
  opacity: 0.8;
}

.zone-secret::after {
  border: 0;
  inset: auto;
}

.secret-book {
  position: absolute;
  inset: 4% 15% 18%;
  border-radius: 1.8rem 1.5rem 1.7rem 1.3rem;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.52), transparent 24%),
    linear-gradient(160deg, #f6d6f1 0%, #eed6ff 38%, #d8e0ff 74%, #c8e8ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset -0.6rem -0.8rem 1.4rem rgba(183, 189, 236, 0.34),
    0 1.25rem 2rem rgba(139, 149, 205, 0.22),
    0 0 1.4rem rgba(255, 244, 252, 0.3);
  transform: rotate(-6deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, filter 0.4s ease;
}

.secret-book::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0.55rem 0.9rem 1rem;
  border-radius: 1.35rem 1rem 1.2rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, rgba(255, 247, 255, 0.32), rgba(230, 241, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.secret-book::after {
  content: "";
  position: absolute;
  top: 16%;
  right: -0.3rem;
  width: 0.85rem;
  height: 62%;
  border-radius: 0 1rem 1rem 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 245, 255, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(220, 226, 255, 0.78),
    0 0.25rem 0.55rem rgba(157, 172, 223, 0.18);
}

.secret-book-spine {
  position: absolute;
  left: -0.45rem;
  top: 7%;
  bottom: 7%;
  width: 1.15rem;
  border-radius: 1rem 0.8rem 0.8rem 1rem;
  background:
    linear-gradient(180deg, #b8d5ff, #c8b8ff 52%, #f0bfe1 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 0.55rem 0.8rem rgba(148, 157, 217, 0.16);
}

.secret-book-page-mark {
  position: absolute;
  top: 0.2rem;
  right: 0.95rem;
  width: 1rem;
  height: 2rem;
  border-radius: 0 0 0.6rem 0.6rem;
  background: linear-gradient(180deg, #ffc3db, #f5a6cb);
  box-shadow: 0 0.25rem 0.55rem rgba(233, 148, 189, 0.26);
}

.secret-book-emblem {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 67% 57%, 79% 93%, 50% 70%, 21% 93%, 33% 57%, 2% 35%, 39% 35%);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.96), rgba(255, 249, 196, 0.94) 34%, #ffd778 78%);
  box-shadow:
    0 0 0 0.3rem rgba(255, 244, 201, 0.12),
    0 0 1rem rgba(255, 223, 145, 0.28);
}

.secret-book-lock {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  width: 1.9rem;
  height: 2rem;
  transform: translateX(-50%);
}

.secret-book-lock-top {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1.05rem;
  height: 0.95rem;
  border: 0.18rem solid rgba(120, 125, 174, 0.7);
  border-bottom: 0;
  border-radius: 0.7rem 0.7rem 0 0;
  transform: translateX(-50%);
}

.secret-book-lock-body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.45rem;
  height: 1.15rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(180deg, rgba(255, 246, 201, 0.98), rgba(255, 221, 148, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0.35rem 0.65rem rgba(216, 180, 99, 0.2);
  transform: translateX(-50%);
}

.secret-book-lock-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.38rem;
  width: 0.22rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(128, 102, 47, 0.55);
  transform: translateX(-50%);
}

.zone-secret:hover .secret-book,
.zone-secret:focus-visible .secret-book {
  transform: rotate(-4deg) translateY(-0.25rem) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset -0.6rem -0.8rem 1.4rem rgba(183, 189, 236, 0.34),
    0 1.55rem 2.2rem rgba(139, 149, 205, 0.24),
    0 0 1.8rem rgba(255, 248, 214, 0.42);
  filter: brightness(1.03);
}

.zone-secret:hover .secret-book-emblem,
.zone-secret:focus-visible .secret-book-emblem {
  animation: secretTwinkle 1.6s ease-in-out infinite;
}

.zone-secret .zone-label {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.zone-star {
  top: 18%;
  right: 13%;
  width: min(18vw, 10.5rem);
  min-width: 8.2rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.4rem;
  clip-path: none;
  background: transparent;
  box-shadow: none;
  animation-name: twinkleStar;
  animation-duration: 5.4s;
  isolation: isolate;
  overflow: visible;
}

.zone-star::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 242, 191, 0.26), transparent 62%);
  filter: blur(16px);
  opacity: 0.95;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.zone-star::after {
  content: "";
  position: absolute;
  inset: -16%;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 233, 177, 0.28), transparent 58%);
  box-shadow:
    0 -2.7rem 0 -2.55rem rgba(255, 252, 230, 0.94),
    2.45rem -1.3rem 0 -2.68rem rgba(255, 243, 203, 0.92),
    3rem 1.55rem 0 -2.8rem rgba(255, 255, 255, 0.84),
    -2.7rem 1.8rem 0 -2.64rem rgba(255, 241, 201, 0.9),
    -2rem -1.65rem 0 -2.82rem rgba(255, 255, 255, 0.82);
  animation: messengerOrbit 8.2s ease-in-out infinite;
  z-index: -1;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.messenger-star {
  position: absolute;
  inset: 4% 6% 15%;
  pointer-events: none;
}

.messenger-star-aura {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 243, 203, 0.45), rgba(255, 218, 177, 0.16) 42%, transparent 68%);
  filter: blur(10px);
  animation: messengerAura 6.6s ease-in-out infinite;
}

.messenger-star-core,
.messenger-star-inner {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 62% 33%, 100% 38%, 72% 59%, 81% 100%, 50% 79%, 19% 100%, 28% 59%, 0% 38%, 38% 33%);
}

.messenger-star-core {
  width: 72%;
  height: 72%;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.98), rgba(255, 247, 203, 0.98) 32%, #ffd978 72%, #ffcb8f 100%);
  box-shadow:
    0 0 0 0.55rem rgba(255, 244, 201, 0.12),
    0 0 1.6rem rgba(255, 220, 132, 0.34),
    0 1rem 1.5rem rgba(194, 157, 83, 0.18);
}

.messenger-star-inner {
  width: 42%;
  height: 42%;
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.92), rgba(255, 248, 222, 0.46) 54%, transparent 76%);
  opacity: 0.9;
}

.messenger-star-spark,
.messenger-star-orb {
  position: absolute;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.messenger-star-spark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.08) 62%, transparent 68%);
  animation: driftSpark 5.6s ease-in-out infinite;
}

.messenger-star-spark::before,
.messenger-star-spark::after {
  content: "";
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.messenger-star-spark::before {
  width: 1rem;
  height: 0.08rem;
}

.messenger-star-spark::after {
  width: 0.08rem;
  height: 1rem;
}

.messenger-star-spark-one {
  top: 10%;
  right: 18%;
}

.messenger-star-spark-two {
  left: 12%;
  top: 32%;
  width: 0.72rem;
  height: 0.72rem;
  animation-delay: -1.8s;
}

.messenger-star-spark-three {
  right: 10%;
  bottom: 18%;
  width: 0.8rem;
  height: 0.8rem;
  animation-delay: -3s;
}

.messenger-star-orb {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.96), rgba(255, 240, 205, 0.88) 55%, rgba(255, 221, 168, 0.4) 100%);
  box-shadow: 0 0 0.8rem rgba(255, 234, 189, 0.38);
}

.messenger-star-orb-one {
  left: 24%;
  bottom: 20%;
}

.messenger-star-orb-two {
  right: 24%;
  top: 22%;
}

.zone-star .zone-label {
  max-width: 7.4rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(252, 245, 255, 0.44));
  box-shadow:
    0 0.7rem 1.3rem rgba(176, 149, 101, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.zone-star:hover,
.zone-star:focus-visible {
  filter: brightness(1.08);
}

.zone-star:hover::before,
.zone-star:focus-visible::before {
  transform: scale(1.06);
  filter: blur(18px) brightness(1.06);
}

.zone-star:hover::after,
.zone-star:focus-visible::after {
  opacity: 1;
  filter: brightness(1.08);
}

.zone-star:hover .messenger-star-core,
.zone-star:focus-visible .messenger-star-core {
  box-shadow:
    0 0 0 0.62rem rgba(255, 244, 201, 0.16),
    0 0 1.95rem rgba(255, 220, 132, 0.42),
    0 1.1rem 1.6rem rgba(194, 157, 83, 0.2);
  filter: brightness(1.07);
}

.zone-star:hover .messenger-star-aura,
.zone-star:focus-visible .messenger-star-aura {
  filter: blur(12px) brightness(1.08);
}

.zone-star:hover .messenger-star-spark,
.zone-star:focus-visible .messenger-star-spark {
  opacity: 1;
  transform: scale(1.08);
}

.zone-star:hover .messenger-star-orb-one,
.zone-star:focus-visible .messenger-star-orb-one {
  transform: translate(-0.1rem, -0.18rem) scale(1.1);
}

.zone-star:hover .messenger-star-orb-two,
.zone-star:focus-visible .messenger-star-orb-two {
  transform: translate(0.12rem, -0.16rem) scale(1.1);
}

.zone-door {
  right: 7%;
  bottom: 10%;
  width: min(21vw, 12.5rem);
  min-width: 9rem;
  aspect-ratio: 0.8 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.45rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation-name: portalDoor;
  animation-duration: 6.8s;
  isolation: isolate;
  overflow: visible;
}

.zone-door::before {
  content: "";
  position: absolute;
  inset: 8% 4% 6%;
  border-radius: 3rem;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 236, 189, 0.22), transparent 60%);
  filter: blur(18px);
  opacity: 0.92;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.42s ease, opacity 0.42s ease;
}

.zone-door::after {
  inset: auto;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 247, 218, 0.7), rgba(255, 228, 188, 0.16) 62%, transparent 72%);
  filter: blur(4px);
  opacity: 0.92;
}

.zone-door .zone-label {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 243, 0.44));
  box-shadow:
    0 0.75rem 1.4rem rgba(181, 149, 108, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.zone-door:hover,
.zone-door:focus-visible {
  filter: brightness(1.03);
}

.zone-door:hover::before,
.zone-door:focus-visible::before {
  transform: scale(1.05);
  filter: blur(20px) brightness(1.08);
}

.zone-door:hover::after,
.zone-door:focus-visible::after {
  opacity: 1;
  filter: blur(5px) brightness(1.08);
}

.sky-portal {
  position: absolute;
  inset: 4% 12% 16%;
  pointer-events: none;
}

.sky-portal-aura {
  position: absolute;
  inset: 2% 4% 6%;
  border-radius: 3rem 3rem 1.8rem 1.8rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 247, 218, 0.34), rgba(255, 219, 188, 0.16) 46%, transparent 72%);
  filter: blur(10px);
  animation: portalAura 6.8s ease-in-out infinite;
}

.sky-portal-frame,
.sky-portal-inner,
.sky-portal-light {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sky-portal-frame {
  inset: 0 0 10%;
  border-radius: 3rem 3rem 1.5rem 1.5rem;
  background:
    linear-gradient(180deg, #fff6d7, #ffe8be 42%, #ffdced 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -18px 26px rgba(247, 196, 144, 0.38),
    0 1.1rem 1.8rem rgba(180, 148, 116, 0.2),
    0 0 1.5rem rgba(255, 233, 175, 0.24);
}

.sky-portal-frame::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: 2.5rem 2.5rem 1.15rem 1.15rem;
  border: 0.14rem solid rgba(255, 247, 221, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 223, 173, 0.24);
}

.sky-portal-inner {
  top: 12%;
  width: 62%;
  height: 64%;
  border-radius: 2rem 2rem 0.95rem 0.95rem;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.98), rgba(255, 244, 221, 0.72) 28%, rgba(233, 227, 255, 0.52) 58%, rgba(255, 255, 255, 0) 82%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 231, 255, 0.7) 48%, rgba(220, 239, 255, 0.82) 100%);
  box-shadow:
    inset 0 0 1.3rem rgba(255, 255, 255, 0.82),
    inset 0 -0.7rem 1rem rgba(201, 221, 255, 0.24),
    0 0 1.2rem rgba(255, 239, 203, 0.28);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.42s ease, box-shadow 0.42s ease;
}

.sky-portal-light {
  top: 22%;
  width: 36%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.98), rgba(255, 244, 217, 0.62) 36%, transparent 72%);
  filter: blur(2px);
  opacity: 0.96;
}

.sky-portal-step {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 72%;
  height: 10%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.95), rgba(255, 229, 195, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0.35rem 0.7rem rgba(194, 159, 120, 0.16);
  transform: translateX(-50%);
}

.sky-portal-knob {
  position: absolute;
  right: 22%;
  top: 48%;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.96), #ffd684 72%);
  box-shadow:
    0 0 0 0.2rem rgba(255, 245, 210, 0.28),
    0 0 0.8rem rgba(255, 219, 132, 0.34);
}

.zone-door:hover .sky-portal-inner,
.zone-door:focus-visible .sky-portal-inner {
  transform: translateX(-50%) perspective(20rem) rotateY(-12deg) scaleX(1.02);
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 1.4rem rgba(255, 255, 255, 0.84),
    inset 0 -0.7rem 1rem rgba(201, 221, 255, 0.24),
    0 0 1.55rem rgba(255, 239, 203, 0.38);
}

.zone-door:hover .sky-portal-light,
.zone-door:focus-visible .sky-portal-light {
  filter: blur(3px) brightness(1.08);
  opacity: 1;
}

.zone-door:hover .sky-portal-frame,
.zone-door:focus-visible .sky-portal-frame {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -18px 26px rgba(247, 196, 144, 0.38),
    0 1.2rem 1.95rem rgba(180, 148, 116, 0.22),
    0 0 1.8rem rgba(255, 233, 175, 0.32);
}

.zone-door.is-opening {
  animation: portalLaunch 1.08s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 12;
}

.zone-door.is-opening::before {
  transform: scale(1.28);
  filter: blur(34px) brightness(1.26);
  opacity: 1;
}

.zone-door.is-opening::after {
  opacity: 1;
  filter: blur(10px) brightness(1.2);
}

.zone-door.is-opening .sky-portal-inner {
  transform: translateX(-50%) perspective(16rem) rotateY(-30deg) scaleX(1.14);
  filter: brightness(1.2);
  box-shadow:
    inset 0 0 1.8rem rgba(255, 255, 255, 0.92),
    inset 0 -0.7rem 1rem rgba(201, 221, 255, 0.24),
    0 0 2.6rem rgba(255, 239, 203, 0.62);
}

.zone-door.is-opening .sky-portal-light {
  filter: blur(8px) brightness(1.28);
  opacity: 1;
}

.zone-door.is-opening .sky-portal-aura {
  transform: scale(1.14);
  filter: blur(20px) brightness(1.22);
}

.zone-door.is-opening .sky-portal-frame {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 26px rgba(247, 196, 144, 0.4),
    0 1.5rem 2.2rem rgba(180, 148, 116, 0.24),
    0 0 2.2rem rgba(255, 233, 175, 0.42);
}

.zone-door.is-opening .zone-label {
  opacity: 0;
  transform: translateY(0.8rem) scale(0.94);
}

.modal-layer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(95, 119, 166, 0);
  pointer-events: none;
  transition: background 0.45s ease, backdrop-filter 0.45s ease;
  z-index: 20;
}

.modal-layer.is-open {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(103, 126, 176, 0.32)),
    rgba(103, 126, 176, 0.25);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.modal {
  position: relative;
  width: min(33rem, 100%);
  padding: 1.7rem 1.5rem 1.7rem;
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 246, 255, 0.94) 48%, rgba(244, 250, 255, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -18px 24px rgba(224, 227, 255, 0.32),
    var(--shadow-deep);
  color: var(--ink);
  transform: translateY(26px) scale(0.92);
  opacity: 0;
  filter: blur(8px);
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.36s ease, filter 0.36s ease;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(215, 222, 255, 0.68);
  pointer-events: none;
}

.modal::after {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 1.25rem;
  right: 4.6rem;
  height: 0.7rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 194, 224, 0.9), rgba(213, 201, 255, 0.92), rgba(189, 236, 255, 0.88));
  opacity: 0.85;
  pointer-events: none;
}

.modal.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

.modal-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(98, 114, 163, 0.72);
}

.modal h2 {
  margin: 0 0 0.8rem;
  padding-right: 2.4rem;
  font-family: var(--font-family-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--ink-strong);
}

.modal p:last-of-type {
  margin-bottom: 0;
  line-height: 1.72;
}

.star-game {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(240, 245, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.star-game-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.star-game-top h3 {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 1.15rem;
  color: var(--ink-strong);
}

.star-game-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(83, 99, 146, 0.82);
}

.star-game-board {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.62), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(255, 212, 242, 0.42), transparent 18%),
    linear-gradient(180deg, rgba(170, 222, 255, 0.95), rgba(215, 234, 255, 0.92) 56%, rgba(255, 238, 246, 0.9) 100%);
  box-shadow:
    inset 0 -18px 26px rgba(201, 211, 249, 0.24),
    0 14px 28px rgba(115, 141, 188, 0.12);
}

.star-game-cloud,
.star-game-hill {
  position: absolute;
  pointer-events: none;
}

.star-game-cloud {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 244, 255, 0.82));
  border-radius: 999px;
  box-shadow: inset 0 -8px 14px rgba(182, 207, 242, 0.28);
}

.star-game-cloud::before,
.star-game-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.star-game-cloud::before {
  width: 42%;
  height: 88%;
  top: -34%;
  left: 14%;
}

.star-game-cloud::after {
  width: 36%;
  height: 76%;
  top: -20%;
  right: 12%;
}

.star-game-cloud-one {
  top: 1.6rem;
  left: 1.4rem;
  width: 4.8rem;
  height: 1.6rem;
}

.star-game-cloud-two {
  top: 2.2rem;
  right: 1.8rem;
  width: 5.4rem;
  height: 1.8rem;
}

.star-game-hill {
  inset: auto -10% -28% -10%;
  height: 7rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(213, 255, 239, 0.95), rgba(168, 231, 206, 0.96));
}

.hidden-star {
  position: absolute;
  --star-visual-size: 2rem;
  --star-hit-size: 3.25rem;
  --star-hit-offset: calc((var(--star-hit-size) - var(--star-visual-size)) / -2);
  width: var(--star-hit-size);
  height: var(--star-hit-size);
  border: 0;
  padding: 0;
  margin: var(--star-hit-offset) 0 0 var(--star-hit-offset);
  background: transparent;
  filter: none;
  opacity: 1;
  touch-action: manipulation;
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.hidden-star::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--star-visual-size);
  height: var(--star-visual-size);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.96), rgba(255, 247, 183, 0.95) 34%, #ffd56f 76%);
  clip-path: polygon(50% 0%, 62% 34%, 100% 38%, 71% 60%, 80% 100%, 50% 79%, 20% 100%, 29% 60%, 0% 38%, 38% 34%);
  filter: brightness(0.96);
  opacity: 0.35;
  transform: translate(-50%, -50%);
  transition: inherit;
}

.hidden-star:hover,
.hidden-star:focus-visible {
  transform: scale(1.08);
}

.hidden-star:hover::before,
.hidden-star:focus-visible::before {
  opacity: 0.72;
}

.hidden-star.is-found {
  animation: foundStar 0.55s ease;
}

.hidden-star.is-found::before {
  opacity: 1;
  filter: brightness(1.05);
  box-shadow: 0 0 18px rgba(255, 220, 130, 0.6);
}

.hidden-star::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 191, 0.32), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hidden-star-one {
  top: 4rem;
  left: 18%;
}

.hidden-star-two {
  top: 7.2rem;
  right: 20%;
}

.hidden-star-three {
  bottom: 2.6rem;
  left: 47%;
}

.star-game-success {
  margin: 0.9rem 0 0;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 250, 219, 0.92), rgba(255, 234, 193, 0.94));
  color: #7c5d2a;
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(214, 175, 94, 0.14);
}

.secret-intro,
.secret-status {
  margin-bottom: 0;
}

.secret-status {
  margin-top: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(235, 230, 255, 0.92), rgba(247, 240, 255, 0.96));
  color: #6d629d;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(170, 156, 214, 0.12);
}

.secret-form {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 1.45rem;
  background: linear-gradient(180deg, rgba(252, 249, 255, 0.8), rgba(241, 236, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 24px rgba(165, 151, 207, 0.08);
}

.secret-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-family-display);
  font-size: 1rem;
  color: #675b93;
}

.secret-input {
  width: 100%;
  min-height: 7.8rem;
  resize: vertical;
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(211, 202, 255, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 255, 0.94));
  color: var(--ink-strong);
  font: inherit;
  box-shadow: inset 0 2px 10px rgba(199, 213, 242, 0.12);
}

.secret-input:focus {
  outline: none;
  border-color: rgba(182, 160, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(215, 206, 255, 0.28),
    inset 0 2px 10px rgba(199, 213, 242, 0.12);
}

.secret-submit {
  margin-top: 0.85rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(237, 223, 255, 0.98), rgba(217, 232, 255, 0.94));
  box-shadow: 0 10px 22px rgba(164, 152, 207, 0.16);
  color: #65588f;
  font-family: var(--font-family-display);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.secret-submit:hover,
.secret-submit:focus-visible {
  transform: translateY(-0.08rem);
  filter: brightness(1.03);
}

.secret-saved {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 255, 0.92), rgba(238, 241, 255, 0.94)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 28px rgba(165, 151, 207, 0.12);
}

.secret-saved-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-family-display);
  font-size: 1rem;
  color: #6b5ea0;
}

.secret-saved-text {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 255, 0.92));
  border: 1px solid rgba(220, 214, 255, 0.84);
  color: var(--ink-strong);
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
}

.message-form {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 240, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.message-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-family-display);
  font-size: 1rem;
  color: var(--ink-strong);
}

.message-form .message-input + .message-label {
  margin-top: 0.85rem;
}

.message-form-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.message-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 212, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-strong);
  font: inherit;
  box-shadow: inset 0 2px 8px rgba(199, 213, 242, 0.16);
}

.message-input:focus {
  outline: none;
  border-color: rgba(177, 173, 255, 0.9);
  box-shadow:
    0 0 0 4px rgba(208, 201, 255, 0.28),
    inset 0 2px 8px rgba(199, 213, 242, 0.16);
}

.message-submit {
  flex-shrink: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 224, 240, 0.98), rgba(233, 220, 255, 0.94));
  box-shadow: 0 10px 20px rgba(176, 149, 205, 0.16);
  color: var(--ink-strong);
  font-family: var(--font-family-display);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.message-submit:hover,
.message-submit:focus-visible {
  transform: translateY(-0.1rem);
  filter: brightness(1.03);
}

.message-submit.is-sending {
  animation: submitGlow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.message-error {
  margin: 0.7rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(255, 232, 238, 0.95), rgba(255, 241, 246, 0.92));
  color: #aa5f7b;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(214, 156, 180, 0.12);
}

.message-help {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  color: rgba(88, 106, 149, 0.8);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 221, 234, 0.95), rgba(255, 201, 224, 0.82));
  box-shadow: 0 8px 18px rgba(197, 125, 164, 0.18);
  color: var(--ink-strong);
  font-size: 1.45rem;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: rotate(90deg) scale(1.08);
  filter: brightness(1.03);
  background:
    linear-gradient(180deg, rgba(255, 229, 239, 0.98), rgba(255, 191, 220, 0.92));
}

@keyframes floatCloud {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(1.8rem) translateY(-0.9rem);
  }
}

@keyframes floatZone {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.45rem;
  }
}

@keyframes swayCloudIsland {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-0.6rem) rotate(1deg);
  }
}

@keyframes bobSecret {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-0.45rem) rotate(-1.2deg);
  }
  70% {
    transform: translateY(-0.15rem) rotate(1deg);
  }
}

@keyframes secretTwinkle {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    filter: brightness(1.08);
  }
}

@keyframes twinkleStar {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-0.5rem) rotate(4deg) scale(1.04);
    filter: brightness(1.08);
  }
}

@keyframes portalDoor {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-0.4rem) scale(1.01);
  }
}

@keyframes portalAura {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.76;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes portalLaunch {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  30% {
    transform: translateY(-0.35rem) scale(1.03);
    filter: brightness(1.04);
  }
  62% {
    transform: translateY(-0.58rem) scale(1.06);
    filter: brightness(1.08);
  }
  100% {
    transform: translateY(-0.95rem) scale(1.11);
    filter: brightness(1.16);
  }
}

@keyframes worldSink {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0.22;
    transform: translateY(-0.8rem) scale(0.985);
    filter: blur(6px);
  }
}

@keyframes portalVeil {
  0% {
    opacity: 0;
    background:
      radial-gradient(circle at 68% 62%, rgba(255, 247, 220, 0.28), transparent 10%),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 60%);
  }
  55% {
    opacity: 0.75;
    background:
      radial-gradient(circle at 68% 62%, rgba(255, 247, 220, 0.4), transparent 16%),
      radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 44%);
  }
  100% {
    opacity: 1;
    background:
      radial-gradient(circle at 68% 62%, rgba(255, 255, 255, 0.94), rgba(255, 236, 212, 0.58) 16%, rgba(255, 255, 255, 0) 34%),
      radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 52%);
  }
}

@keyframes portalFlash {
  0% {
    opacity: 0;
  }
  52% {
    opacity: 0.18;
  }
  78% {
    opacity: 0.72;
  }
  100% {
    opacity: 1;
  }
}

@keyframes messengerOrbit {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.84;
  }
  50% {
    transform: rotate(8deg) scale(1.04);
    opacity: 1;
  }
}

@keyframes messengerAura {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes driftSpark {
  0%,
  100% {
    transform: translateY(0) scale(0.92);
    opacity: 0.42;
  }
  50% {
    transform: translateY(-0.85rem) scale(1.06);
    opacity: 0.82;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.38;
  }
  50% {
    transform: scale(1.16);
    opacity: 0.68;
  }
}

@keyframes hostFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-0.8deg);
  }
  25% {
    transform: translateX(-50%) translateY(-0.28rem) rotate(0deg);
  }
  55% {
    transform: translateX(-50%) translateY(-0.82rem) rotate(0.8deg);
  }
  78% {
    transform: translateX(-50%) translateY(-0.35rem) rotate(0deg);
  }
}

@keyframes foundStar {
  0% {
    transform: scale(0.7) rotate(-10deg);
  }
  65% {
    transform: scale(1.22) rotate(8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes messageCloudFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--float-rotate-start, -1deg));
  }
  18% {
    transform: translate3d(var(--float-x-one, 0.2rem), calc(var(--float-y-one, -0.18rem)), 0) rotate(var(--float-rotate-mid, 0deg));
  }
  46% {
    transform: translate3d(var(--float-x-two, -0.16rem), calc(var(--float-y-two, -0.65rem)), 0) rotate(var(--float-rotate-peak, 0.9deg));
  }
  72% {
    transform: translate3d(var(--float-x-three, 0.12rem), calc(var(--float-y-three, -0.34rem)), 0) rotate(var(--float-rotate-soft, -0.2deg));
  }
}

@keyframes hostReact {
  0% {
    transform: translateX(-50%) translateY(0) scale(1) rotate(-0.5deg);
    filter: brightness(1);
  }
  20% {
    transform: translateX(-50%) translateY(-0.4rem) scale(1.025) rotate(0.5deg);
    filter: brightness(1.03);
  }
  42% {
    transform: translateX(-50%) translateY(-0.92rem) scale(1.05) rotate(1deg);
    filter: brightness(1.06);
  }
  65% {
    transform: translateX(-50%) translateY(-0.2rem) scale(1.02) rotate(-0.25deg);
    filter: brightness(1.03);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1) rotate(-0.5deg);
    filter: brightness(1);
  }
}

@keyframes hostBlink {
  0%,
  100% {
    transform: scaleY(1);
  }
  24%,
  32% {
    transform: scaleY(0.12);
  }
  58%,
  66% {
    transform: scaleY(0.28);
  }
}

@keyframes submitGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(176, 149, 205, 0.16);
    filter: brightness(1);
  }
  55% {
    transform: scale(1.05);
    box-shadow:
      0 14px 26px rgba(176, 149, 205, 0.22),
      0 0 20px rgba(255, 225, 243, 0.65);
    filter: brightness(1.06);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(176, 149, 205, 0.16);
    filter: brightness(1);
  }
}

@media (max-width: 900px) {
  .scene {
    min-height: 60rem;
  }

  .world-title {
    margin-bottom: 1.2rem;
  }

  .zone-games {
    top: 19%;
    left: 3%;
  }

  .host-cloud {
    top: 23%;
    width: min(24vw, 12rem);
  }

  .zone-star {
    top: 17%;
    right: 6%;
  }

  .zone-secret {
    left: 9%;
    bottom: 18%;
  }

  .zone-door {
    right: 4%;
    bottom: 12%;
  }
}

@media (max-width: 680px) {
  .world {
    padding: 1.3rem 0.85rem 2rem;
  }

  .world-title h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .subtitle {
    padding: 0.8rem 0.95rem;
  }

  .scene {
    min-height: 50rem;
    border-radius: 2.2rem;
  }

  .zone {
    min-width: 0;
  }

  .zone-games {
    top: 16%;
    left: 6%;
    width: 68vw;
  }

  .host-cloud {
    top: 28%;
    width: 34vw;
    min-width: 8.5rem;
  }

  .zone-star {
    top: 38%;
    right: 10%;
    width: 34vw;
  }

  .zone-secret {
    left: 7%;
    bottom: 11%;
    width: 43vw;
  }

  .zone-door {
    right: 8%;
    bottom: 10%;
    width: 28vw;
  }

  .zone-label {
    padding: 0.38rem 0.8rem;
    font-size: 0.88rem;
  }

  .zone-hint {
    max-width: 11rem;
    font-size: 0.76rem;
  }

  .modal {
    padding: 1.55rem 1.15rem 1.4rem;
  }

  .star-game-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .message-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .message-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .scene {
    min-height: 46rem;
  }

  .zone-games {
    top: 18%;
    width: 72vw;
  }

  .host-cloud {
    top: 29%;
    width: 38vw;
  }

  .zone-star {
    top: 40%;
    width: 36vw;
  }

  .zone-secret {
    width: 46vw;
  }

  .zone-door {
    width: 30vw;
  }

  .modal::after {
    right: 4rem;
  }

  .path-line {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.modal-games-hub {
  width: min(48rem, calc(100vw - 2rem));
}

.games-intro {
  margin-bottom: 1.15rem;
}

.games-hub {
  display: grid;
  gap: 1rem;
}

.games-screen[hidden] {
  display: none !important;
}

.games-screen.is-active {
  display: grid;
  gap: 1rem;
}

.games-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.game-card {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-height: 9.2rem;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 245, 255, 0.88) 58%, rgba(231, 236, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 32px rgba(117, 140, 191, 0.14);
  color: var(--ink-strong);
  text-align: left;
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0.85rem auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 172, 0.34), transparent 70%);
  pointer-events: none;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-0.3rem) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 36px rgba(117, 140, 191, 0.2);
  filter: brightness(1.02);
}

.game-card strong {
  font-family: var(--font-family-display);
  font-size: 1.02rem;
}

.game-card span:last-child {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(77, 95, 141, 0.9);
}

.game-card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 245, 205, 0.95), rgba(255, 221, 161, 0.88));
  box-shadow:
    0 0 0 0.28rem rgba(255, 255, 255, 0.45),
    0 12px 20px rgba(255, 211, 145, 0.22);
  font-size: 1.15rem;
  color: #7f6898;
}

.game-view {
  display: grid;
  gap: 0.9rem;
}

.game-view-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.game-view-top h3 {
  margin: 0;
  font-family: var(--font-family-display);
  color: var(--ink-strong);
}

.game-caption {
  margin: 0.2rem 0 0;
  color: rgba(85, 102, 146, 0.88);
  font-size: 0.95rem;
  line-height: 1.45;
}

.game-back,
.mini-action,
.order-move {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 240, 255, 0.88));
  color: var(--ink-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(120, 144, 192, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.game-back,
.mini-action {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}

.game-back:hover,
.game-back:focus-visible,
.mini-action:hover,
.mini-action:focus-visible,
.order-move:hover,
.order-move:focus-visible {
  transform: translateY(-0.12rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 26px rgba(120, 144, 192, 0.18);
}

.memory-game,
.catch-game,
.order-game {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(246, 243, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.memory-top,
.catch-top,
.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.memory-status,
.catch-status,
.order-goal {
  margin: 0;
  font-weight: 800;
  color: var(--ink-strong);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.memory-card {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border: 0;
  background: transparent;
  perspective: 900px;
}

.memory-card-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 1.45rem;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.memory-card.is-flipped .memory-card-inner,
.memory-card.is-matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 1.45rem;
  backface-visibility: hidden;
  font-family: var(--font-family-display);
  font-size: 1.6rem;
}

.memory-card-front {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(180deg, rgba(227, 238, 255, 0.96), rgba(208, 225, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 24px rgba(120, 144, 192, 0.18);
  color: rgba(93, 107, 153, 0.78);
}

.memory-card-back {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(180deg, rgba(255, 245, 213, 0.96), rgba(255, 226, 181, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 24px rgba(245, 197, 128, 0.18);
  color: #7f679d;
  transform: rotateY(180deg);
}

.memory-card.is-matched .memory-card-back {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 0.22rem rgba(255, 255, 255, 0.42),
    0 14px 26px rgba(245, 197, 128, 0.24);
}

.catch-board {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(255, 226, 241, 0.42), transparent 22%),
    linear-gradient(180deg, rgba(186, 223, 255, 0.92), rgba(228, 238, 255, 0.9) 62%, rgba(255, 244, 250, 0.92));
}

.catch-sky-spark {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 70%);
  opacity: 0.8;
  animation: driftSpark 6.4s ease-in-out infinite;
}

.catch-sky-spark-one {
  top: 12%;
  left: 16%;
}

.catch-sky-spark-two {
  top: 20%;
  right: 18%;
  animation-delay: -2s;
}

.catch-basket {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  width: 4.8rem;
  height: 2.5rem;
  margin-left: -2.4rem;
  border-radius: 2rem 2rem 1.25rem 1.25rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(224, 236, 255, 0.92));
  box-shadow:
    inset 0 0.3rem 0 rgba(255, 255, 255, 0.8),
    inset 0 -0.25rem 0 rgba(194, 211, 243, 0.72),
    0 0.9rem 1.4rem rgba(108, 135, 190, 0.18);
  transform: translateX(-50%);
  transition: left 0.12s linear;
}

.catch-basket::before {
  content: "";
  position: absolute;
  inset: -0.72rem 0.8rem auto;
  height: 1rem;
  border: 0.22rem solid rgba(227, 238, 255, 0.9);
  border-bottom: 0;
  border-radius: 1rem 1rem 0 0;
}

.light-drop {
  position: absolute;
  top: -10%;
  --drop-visual-width: 1.15rem;
  --drop-visual-height: 1.45rem;
  --drop-hit-size: 2.75rem;
  width: var(--drop-hit-size);
  height: var(--drop-hit-size);
  margin-left: calc(var(--drop-hit-size) / -2);
  border-radius: 50%;
  background: transparent;
  touch-action: manipulation;
  animation: dropPulse 1.2s ease-in-out infinite;
}

.light-drop-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--drop-visual-width);
  height: var(--drop-visual-height);
  border-radius: 60% 60% 70% 70%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 239, 164, 0.92) 60%, rgba(255, 214, 125, 0.88));
  box-shadow:
    0 0 0 0.18rem rgba(255, 255, 255, 0.25),
    0 0 1rem rgba(255, 229, 138, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.light-drop-core::before {
  content: "";
  position: absolute;
  inset: 0.12rem 0.28rem auto;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.light-drop.is-caught {
  opacity: 0;
  transform: scale(1.18);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.order-list {
  display: grid;
  gap: 0.7rem;
}

.order-item {
  display: grid;
  grid-template-columns: 2.7rem 1fr 2.7rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 243, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 24px rgba(117, 140, 191, 0.12);
}

.order-token {
  display: grid;
  place-items: center;
  min-height: 2.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 239, 212, 0.94), rgba(244, 230, 255, 0.92));
  font-family: var(--font-family-display);
  font-weight: 700;
  color: var(--ink-strong);
}

.order-move {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
}

.order-move:disabled,
.mini-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(120, 144, 192, 0.1);
}

.game-success {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 245, 207, 0.92), rgba(255, 238, 185, 0.88));
  border: 1px solid rgba(255, 227, 153, 0.62);
  color: #7c5a20;
  font-weight: 700;
  text-align: center;
}

@keyframes dropPulse {
  0%, 100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.08);
  }
}

@media (max-width: 720px) {
  .games-menu {
    grid-template-columns: 1fr;
  }

  .game-view-top {
    flex-direction: column;
    align-items: stretch;
  }

  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-item {
    grid-template-columns: 2.5rem 1fr 2.5rem;
  }
}
