:root {
  color-scheme: dark;
  --gold: #f4d99a;
  --gold-bright: #fff2bd;
  --ink: #07131c;
  --panel: rgba(14, 31, 40, 0.36);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 221, 154, 0.16), transparent 30%),
    linear-gradient(180deg, #102635 0%, #07131c 100%);
  font-family:
    "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", serif;
}

a,
button {
  font: inherit;
}

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

.page-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
}

.hero-stage {
  position: relative;
  width: min(100vw, 150vh);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 230, 170, 0.12),
    0 24px 90px rgba(0, 0, 0, 0.46);
}

.hero-picture,
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture {
  display: block;
}

.hero-bg {
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.cloud-layer,
.soft-vignette {
  position: absolute;
  pointer-events: none;
}

.cloud-layer {
  left: -36%;
  width: 172%;
  height: 21%;
  z-index: 2;
  opacity: 0.12;
  filter: blur(18px);
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 8% 52%, rgba(255, 255, 255, 0.48), transparent 38%),
    radial-gradient(ellipse at 24% 48%, rgba(213, 243, 247, 0.3), transparent 36%),
    radial-gradient(ellipse at 48% 55%, rgba(255, 246, 211, 0.26), transparent 42%),
    radial-gradient(ellipse at 72% 46%, rgba(229, 251, 255, 0.32), transparent 38%),
    radial-gradient(ellipse at 90% 58%, rgba(255, 255, 255, 0.28), transparent 36%);
}

.cloud-layer-a {
  top: 14%;
  animation: cloud-drift-a 62s linear infinite;
}

.cloud-layer-b {
  top: 36%;
  height: 24%;
  opacity: 0.1;
  filter: blur(22px);
  animation: cloud-drift-b 84s linear infinite reverse;
}

.cloud-layer-c {
  top: 57%;
  height: 18%;
  opacity: 0.08;
  filter: blur(24px);
  animation: cloud-drift-c 108s linear infinite;
}

.floating-clouds {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.floating-cloud {
  position: absolute;
  left: -34%;
  top: var(--cloud-top);
  width: var(--cloud-width);
  height: auto;
  opacity: var(--cloud-opacity);
  object-fit: contain;
  filter:
    blur(var(--cloud-blur))
    brightness(var(--cloud-brightness, 1.04))
    drop-shadow(0 8px 18px rgba(171, 212, 228, 0.2));
  transform: translate3d(0, 0, 0) scale(var(--cloud-scale, 1));
  transform-origin: center center;
  user-select: none;
  animation:
    cloud-float-right var(--cloud-duration) linear infinite,
    cloud-breathe var(--cloud-breathe, 14s) ease-in-out infinite;
  animation-delay: var(--cloud-delay), var(--cloud-breathe-delay, 0s);
  will-change: transform, opacity;
}

.cloud-soft-a {
  --cloud-top: 13%;
  --cloud-width: 44%;
  --cloud-opacity: 0.44;
  --cloud-opacity-low: 0.24;
  --cloud-blur: 0.6px;
  --cloud-duration: 92s;
  --cloud-delay: -8s;
  --cloud-breathe-delay: -4s;
  --cloud-scale: 1.02;
}

.cloud-soft-b {
  --cloud-top: 7%;
  --cloud-width: 38%;
  --cloud-opacity: 0.24;
  --cloud-opacity-low: 0.1;
  --cloud-blur: 1.4px;
  --cloud-duration: 126s;
  --cloud-delay: -66s;
  --cloud-breathe-delay: -8s;
  --cloud-scale: 0.96;
  --cloud-breathe: 20s;
}

.cloud-soft-c {
  --cloud-top: 34%;
  --cloud-width: 52%;
  --cloud-opacity: 0.36;
  --cloud-opacity-low: 0.19;
  --cloud-blur: 0.9px;
  --cloud-duration: 104s;
  --cloud-delay: -54s;
  --cloud-breathe-delay: -12s;
  --cloud-scale: 1.08;
}

.cloud-soft-d {
  --cloud-top: 46%;
  --cloud-width: 34%;
  --cloud-opacity: 0.22;
  --cloud-opacity-low: 0.09;
  --cloud-blur: 1.8px;
  --cloud-duration: 118s;
  --cloud-delay: -18s;
  --cloud-breathe-delay: -6s;
  --cloud-scale: 0.9;
  --cloud-breathe: 22s;
}

.cloud-soft-e {
  --cloud-top: 61%;
  --cloud-width: 47%;
  --cloud-opacity: 0.28;
  --cloud-opacity-low: 0.14;
  --cloud-blur: 1.2px;
  --cloud-duration: 132s;
  --cloud-delay: -92s;
  --cloud-breathe-delay: -15s;
  --cloud-scale: 1.04;
}

.cloud-soft-f {
  --cloud-top: 24%;
  --cloud-width: 30%;
  --cloud-opacity: 0.25;
  --cloud-opacity-low: 0.11;
  --cloud-blur: 1.5px;
  --cloud-duration: 88s;
  --cloud-delay: -44s;
  --cloud-breathe-delay: -10s;
  --cloud-scale: 0.82;
  --cloud-breathe: 18s;
}

.cloud-soft-g {
  --cloud-top: 18%;
  --cloud-width: 40%;
  --cloud-opacity: 0.32;
  --cloud-opacity-low: 0.16;
  --cloud-blur: 0.8px;
  --cloud-duration: 108s;
  --cloud-delay: -98s;
  --cloud-breathe-delay: -3s;
  --cloud-scale: 0.96;
}

.cloud-soft-h {
  --cloud-top: 54%;
  --cloud-width: 31%;
  --cloud-opacity: 0.2;
  --cloud-opacity-low: 0.08;
  --cloud-blur: 1.9px;
  --cloud-duration: 140s;
  --cloud-delay: -112s;
  --cloud-breathe-delay: -11s;
  --cloud-scale: 0.86;
  --cloud-breathe: 24s;
}

.cloud-soft-i {
  --cloud-top: 39%;
  --cloud-width: 46%;
  --cloud-opacity: 0.3;
  --cloud-opacity-low: 0.15;
  --cloud-blur: 1px;
  --cloud-duration: 96s;
  --cloud-delay: -76s;
  --cloud-breathe-delay: -7s;
  --cloud-scale: 1;
}

.cloud-soft-j {
  --cloud-top: 9%;
  --cloud-width: 32%;
  --cloud-opacity: 0.2;
  --cloud-opacity-low: 0.08;
  --cloud-blur: 1.8px;
  --cloud-duration: 112s;
  --cloud-delay: -28s;
  --cloud-breathe-delay: -14s;
  --cloud-scale: 0.8;
  --cloud-breathe: 21s;
}

.soft-vignette {
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 58%, rgba(4, 13, 19, 0.07) 80%, rgba(3, 9, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 12, 18, 0.18), transparent 18%, transparent 86%, rgba(4, 12, 18, 0.16));
}

.site-header {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.brand {
  position: absolute;
  left: 2.08%;
  top: 1.46%;
  width: 12.24%;
  aspect-ratio: 1247 / 405;
  display: block;
  border-radius: 4px;
  pointer-events: auto;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.28));
}

.primary-nav {
  position: absolute;
  top: 1.1%;
  left: 22.2%;
  width: 52%;
  min-height: 5.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0;
  pointer-events: auto;
}

.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 2.6rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  color: rgba(255, 238, 190, 0.88);
  text-decoration: none;
  line-height: 1;
  font-size: clamp(0.92rem, 1.2vw, 1.2rem);
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.nav-link::before,
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition:
    opacity 200ms ease,
    width 220ms ease,
    transform 220ms ease;
}

.nav-link::before {
  bottom: -0.28rem;
  width: 44%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 235, 166, 0.96), transparent);
  box-shadow:
    0 0 18px rgba(255, 229, 148, 0.82),
    0 0 40px rgba(255, 226, 142, 0.32);
}

.nav-link::after {
  bottom: -0.48rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7ca 0 24%, rgba(255, 220, 118, 0.86) 38%, transparent 74%);
  filter: drop-shadow(0 0 12px rgba(255, 229, 148, 0.72));
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: #fff5c9;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: radial-gradient(ellipse at 50% 68%, rgba(255, 226, 145, 0.1), transparent 66%);
  filter: brightness(1.12);
  transform: translateY(-1px);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 229, 148, 0.5);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  width: 72%;
  opacity: 1;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  opacity: 1;
  animation: nav-orb-pulse 1.8s ease-in-out infinite;
}

.utility-nav {
  position: absolute;
  right: 1.9%;
  top: 1.6%;
  min-height: 4.8%;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  pointer-events: auto;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 238, 190, 0.9);
  text-decoration: none;
  font-size: clamp(0.76rem, 0.95vw, 1rem);
  line-height: 1;
  background: transparent;
  box-shadow: none;
  transition:
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.utility-icon {
  display: grid;
  place-items: center;
  width: 1.25rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 229, 157, 0.42);
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1;
}

.utility-link:hover,
.utility-link:focus-visible {
  color: #fff5c9;
  box-shadow: 0 8px 24px rgba(255, 226, 146, 0.16);
  transform: translateY(-1px);
  outline: 0;
}

.side-entry {
  position: absolute;
  z-index: 8;
  width: 4.65%;
  min-width: 56px;
  height: 28%;
  display: grid;
  place-items: center;
  color: rgba(123, 82, 35, 0.96);
  text-decoration: none;
  pointer-events: auto;
  filter: drop-shadow(0 12px 28px rgba(30, 31, 28, 0.16));
  transition:
    filter 200ms ease,
    transform 200ms ease;
}

.side-entry-left {
  left: 2.08%;
  top: 20.2%;
}

.side-entry-right {
  right: 2.78%;
  top: 20.2%;
  height: 28%;
}

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

.side-entry::before {
  inset: 8% 10% 8%;
  border: 1px solid rgba(239, 199, 111, 0.72);
  border-radius: 999px 999px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 228, 0.88), rgba(255, 244, 201, 0.58)),
    radial-gradient(ellipse at 50% 15%, rgba(255, 231, 154, 0.4), transparent 48%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 235, 0.45),
    0 0 18px rgba(255, 220, 130, 0.16);
}

.side-entry::after {
  left: 50%;
  bottom: -3.5%;
  width: 1px;
  height: 12%;
  background: linear-gradient(180deg, rgba(222, 166, 74, 0.72), transparent);
  transform: translateX(-50%);
}

.side-entry-knot {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(238, 200, 119, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 247, 207, 0.92) 0 22%, rgba(234, 178, 84, 0.62) 42%, transparent 70%);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 232, 0.58),
    0 0 24px rgba(255, 224, 140, 0.3);
  transform: translateX(-50%);
}

.side-entry-text {
  position: relative;
  z-index: 2;
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.45;
  font-size: clamp(0.95rem, 1.12vw, 1.12rem);
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 253, 226, 0.65);
}

.side-entry:hover,
.side-entry:focus-visible {
  filter:
    drop-shadow(0 14px 30px rgba(30, 31, 28, 0.18))
    drop-shadow(0 0 20px rgba(255, 226, 142, 0.32));
  transform: translateY(-2px);
  outline: 0;
}

.side-entry:focus-visible::before {
  box-shadow:
    inset 0 0 20px rgba(255, 255, 235, 0.58),
    0 0 0 2px rgba(255, 239, 186, 0.6),
    0 0 26px rgba(255, 220, 130, 0.26);
}

.feature-cards {
  position: absolute;
  left: 20.2%;
  right: 14.3%;
  bottom: 8.05%;
  height: 30.6%;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-items: end;
  gap: clamp(14px, 1.7vw, 26px);
}

.feature-card {
  position: relative;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  animation: card-settle 720ms cubic-bezier(0.2, 0.82, 0.22, 1) var(--delay) both;
}

.feature-card a {
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  text-decoration: none;
  outline: 0;
  overflow: visible;
  transform: translateY(0);
  transition:
    transform 260ms cubic-bezier(0.2, 0.82, 0.22, 1),
    filter 220ms ease;
}

.feature-card img {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  max-height: 100%;
  object-fit: contain;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 16px 24px rgba(35, 48, 45, 0.18))
    drop-shadow(0 0 12px rgba(255, 229, 146, 0.08));
  user-select: none;
  pointer-events: none;
  transition:
    filter 240ms ease,
    transform 260ms cubic-bezier(0.2, 0.82, 0.22, 1);
}

.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 3% -2%;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.82, 0.22, 1);
}

.feature-card::before {
  border: 1px solid rgba(255, 232, 158, 0.34);
  box-shadow:
    inset 0 0 26px rgba(255, 241, 190, 0.1),
    0 0 26px rgba(255, 219, 130, 0.18);
}

.feature-card::after {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255, 242, 190, 0.2), transparent 46%),
    radial-gradient(ellipse at 50% 88%, rgba(255, 208, 120, 0.2), transparent 54%);
  filter: blur(6px);
}

.feature-card:hover a,
.feature-card:focus-within a,
.feature-card.is-active a {
  transform: translateY(-1.4%);
}

.feature-card:hover a,
.feature-card:focus-within a {
  transform: translateY(-2.4%) scale(1.015);
}

.feature-card:hover img,
.feature-card:focus-within img,
.feature-card.is-active img {
  filter:
    drop-shadow(0 18px 28px rgba(35, 48, 45, 0.22))
    drop-shadow(0 0 22px rgba(255, 226, 146, 0.32))
    brightness(1.06);
}

.feature-card:hover img,
.feature-card:focus-within img {
  transform: translateX(-50%) scale(1.018);
  filter:
    drop-shadow(0 20px 30px rgba(35, 48, 45, 0.24))
    drop-shadow(0 0 28px rgba(255, 226, 146, 0.42))
    brightness(1.09);
}

.feature-card:hover::before,
.feature-card:hover::after,
.feature-card:focus-within::before,
.feature-card:focus-within::after,
.feature-card.is-active::before,
.feature-card.is-active::after {
  opacity: 1;
}

.feature-card:hover::before,
.feature-card:hover::after,
.feature-card:focus-within::before,
.feature-card:focus-within::after {
  transform: scale(1.018);
}

.feature-card a:focus-visible {
  box-shadow:
    0 0 0 2px rgba(255, 239, 186, 0.62),
    0 0 26px rgba(255, 226, 146, 0.28);
}

.enter-button {
  position: absolute;
  left: 52.95%;
  bottom: 6.7%;
  z-index: 8;
  min-width: 9.35rem;
  height: 2.32rem;
  padding: 0 1.45rem;
  border: 1px solid rgba(255, 223, 143, 0.58);
  border-radius: 999px;
  color: #6f421a;
  background:
    linear-gradient(180deg, rgba(255, 253, 222, 0.9), rgba(246, 197, 104, 0.76)),
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.62), transparent 54%);
  box-shadow:
    inset 0 0 14px rgba(255, 255, 232, 0.42),
    0 0 16px rgba(255, 209, 112, 0.28),
    0 7px 16px rgba(90, 48, 16, 0.12);
  transform: translateX(-50%);
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 251, 218, 0.68),
    0 0 6px rgba(255, 225, 146, 0.22);
  transition:
    transform 220ms cubic-bezier(0.2, 0.82, 0.22, 1),
    box-shadow 220ms ease,
    filter 220ms ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 232, 0.54),
    0 0 24px rgba(255, 222, 142, 0.42),
    0 10px 22px rgba(90, 48, 16, 0.16);
  filter: brightness(1.05);
  outline: 0;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 14%;
  z-index: 10;
  transform: translateX(-50%) translateY(12px);
  margin: 0;
  padding: 0.58rem 1rem;
  border: 1px solid rgba(246, 223, 162, 0.55);
  border-radius: 999px;
  color: #fff3cf;
  background: rgba(16, 30, 36, 0.68);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.icp-footer {
  position: absolute;
  left: 52.95%;
  bottom: max(6px, 0.8%);
  z-index: 9;
  margin: 0;
  transform: translateX(-50%);
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  font-size: clamp(10px, 0.72vw, 12px);
  line-height: 1.4;
  white-space: nowrap;
}

.icp-footer a {
  display: inline-block;
  padding: 0.18rem 0.58rem;
  border: 1px solid rgba(111, 77, 37, 0.18);
  border-radius: 999px;
  color: rgba(70, 50, 31, 0.86);
  background: rgba(255, 248, 218, 0.58);
  box-shadow: 0 2px 10px rgba(34, 47, 39, 0.12);
  text-decoration: none;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.icp-footer a:hover,
.icp-footer a:focus-visible {
  color: #5f3919;
  background: rgba(255, 248, 218, 0.82);
  outline: 1px solid rgba(111, 77, 37, 0.42);
  outline-offset: 2px;
}

.click-bloom {
  position: absolute;
  z-index: 12;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 0 rgba(255, 239, 172, 0.72),
    0 0 28px rgba(255, 226, 140, 0.82);
  animation: bloom 850ms ease-out forwards;
}

@keyframes cloud-drift-a {
  from {
    transform: translateX(-3%) translateY(0);
  }

  to {
    transform: translateX(6%) translateY(-4%);
  }
}

@keyframes cloud-drift-b {
  from {
    transform: translateX(-4%) translateY(1%);
  }

  to {
    transform: translateX(5%) translateY(-3%);
  }
}

@keyframes cloud-drift-c {
  from {
    transform: translateX(-2%) translateY(0);
  }

  to {
    transform: translateX(4%) translateY(-2%);
  }
}

@keyframes cloud-float-right {
  0% {
    transform: translate3d(0, 0, 0) scale(var(--cloud-scale, 1));
  }

  100% {
    transform: translate3d(150vw, 0, 0) scale(var(--cloud-scale, 1));
  }
}

@keyframes cloud-breathe {
  0%,
  100% {
    opacity: var(--cloud-opacity-low, 0.06);
  }

  50% {
    opacity: var(--cloud-opacity);
  }
}

@keyframes nav-orb-pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.88);
  }

  50% {
    transform: translateX(-50%) scale(1.24);
  }
}

@keyframes card-settle {
  from {
    opacity: 0;
    transform: translateY(2.5%);
  }

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

@keyframes bloom {
  0% {
    opacity: 0.95;
    box-shadow:
      0 0 0 0 rgba(255, 239, 172, 0.68),
      0 0 26px rgba(255, 226, 140, 0.75);
  }

  100% {
    opacity: 0;
    box-shadow:
      0 0 0 72px rgba(255, 239, 172, 0),
      0 0 58px rgba(255, 226, 140, 0);
  }
}

@media (max-aspect-ratio: 16 / 9) {
  .hero-stage {
    width: min(100vw, 150vh);
  }
}

@media (max-width: 900px) {
  .hero-stage {
    width: 100vw;
  }

  .brand {
    width: 15.5%;
  }

  .primary-nav {
    left: 20%;
    width: 52%;
    gap: 4px;
  }

  .nav-link {
    min-width: 0;
    padding: 0 0.44rem;
    font-size: 0.76rem;
  }

  .utility-link span:last-child {
    display: none;
  }

  .feature-cards {
    left: 7%;
    right: 7%;
    height: 30%;
    gap: 4px;
  }

  .enter-button {
    min-width: 9rem;
    height: 2.5rem;
    font-size: 0.95rem;
  }
}

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

  .cloud-layer,
  .floating-clouds {
    display: none;
  }
}

.mobile-home-content,
.mobile-home-picker {
  display: none;
}

@media (max-width: 700px) {
  .page-shell {
    display: block;
    min-height: 100svh;
    background: #0d2632;
  }

  .hero-stage {
    width: 100%;
    min-height: 100svh;
    aspect-ratio: auto;
    overflow: hidden;
    background: #9ebbc1;
  }

  .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .icp-footer {
    left: 50%;
    bottom: max(8px, env(safe-area-inset-bottom));
    font-size: 11px;
  }

  .side-entry,
  .feature-cards,
  .enter-button {
    display: none;
  }

  .mobile-home-content {
    position: absolute;
    z-index: 45;
    inset: calc(var(--mobile-topbar-height) + var(--mobile-safe-top)) 0 0;
    display: flex;
    width: auto;
    align-items: center;
    justify-content: center;
    padding: 0 max(16px, var(--mobile-safe-left), var(--mobile-safe-right));
    pointer-events: none;
  }

  .mobile-home-primary {
    display: grid;
    flex: 0 1 380px;
    gap: 10px;
    width: 100%;
    max-width: min(380px, calc(100vw - 48px));
    margin: 0;
    padding: 14px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 238, 184, 0.55);
    border-radius: 16px;
    text-align: center;
    color: #fff7da;
    background: rgba(22, 49, 52, 0.56);
    box-shadow: 0 14px 38px rgba(4, 24, 31, 0.23);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: auto;
  }

  .mobile-home-primary p,
  .mobile-home-primary h1 {
    margin: 0;
  }

  .mobile-home-primary p {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .mobile-home-primary h1 {
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 1.75rem;
    letter-spacing: 0.12em;
  }

  .mobile-directory-button,
  .mobile-start-ritual {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 232, 161, 0.68);
    border-radius: 999px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-directory-button {
    color: #55340f;
    background: linear-gradient(180deg, #fff1af, #dca348);
  }

  .mobile-start-ritual {
    color: #fff7db;
    background: rgba(92, 50, 19, 0.78);
  }

  body.mobile-home-picker-open {
    overflow: hidden !important;
  }

  .mobile-home-picker {
    position: fixed;
    z-index: 1160;
    inset: 0;
    display: grid;
    align-items: start;
    padding: max(12px, var(--mobile-safe-top)) max(10px, var(--mobile-safe-right))
      max(12px, var(--mobile-safe-bottom)) max(10px, var(--mobile-safe-left));
    overflow: auto;
    background: rgba(7, 20, 26, 0.78);
    backdrop-filter: blur(9px);
  }

  .mobile-home-picker-panel {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100svh - var(--mobile-safe-top) - var(--mobile-safe-bottom) - 24px);
    margin: auto;
    padding: 22px 14px 18px;
    overflow: auto;
    border: 1px solid rgba(217, 170, 72, 0.65);
    border-radius: 18px;
    color: #56391b;
    text-align: center;
    background: linear-gradient(180deg, #fff8dc, #e7c77f);
  }

  .mobile-home-picker-panel > p,
  .mobile-home-picker-panel h2 {
    margin: 0 44px 8px;
  }

  .mobile-home-picker-panel h2 {
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 1.55rem;
  }

  .mobile-home-picker-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(102, 66, 27, 0.28);
    border-radius: 50%;
    color: #5e3f1d;
    background: rgba(255, 253, 235, 0.8);
    font-size: 1.6rem;
  }

  .mobile-home-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
  }

  .mobile-home-picker-grid button {
    display: grid;
    min-height: 180px;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(126, 81, 31, 0.3);
    border-radius: 13px;
    color: #56391a;
    background: rgba(255, 252, 232, 0.72);
    font: inherit;
  }

  .mobile-home-picker-grid button.is-selected {
    border-color: #356348;
    box-shadow: 0 0 0 3px rgba(53, 99, 72, 0.2);
  }

  .mobile-home-picker-portrait {
    display: grid;
    width: min(92px, 26vw);
    height: min(112px, 31vw);
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(187, 137, 55, 0.45);
    border-radius: 44px 44px 10px 10px;
    background: #e5ead8;
  }

  .mobile-home-picker-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .mobile-home-picker-portrait > span {
    display: grid;
    gap: 4px;
    color: #815824;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 1.8rem;
  }

  .mobile-home-picker-portrait small {
    font-family: system-ui, sans-serif;
    font-size: 0.7rem;
  }

  .mobile-home-destinations {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(116, 74, 28, 0.22);
  }

  .mobile-home-destinations p {
    font-weight: 700;
  }

  .mobile-home-destinations > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mobile-home-destinations a {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    color: #fff7db;
    background: #704718;
    text-decoration: none;
  }
}
