:root {
  --bg: #05070b;
  --text: #f8f2e8;
  --muted: rgba(248, 242, 232, 0.72);
  --soft: rgba(248, 242, 232, 0.52);
  --line: rgba(255, 255, 255, 0.15);
  --gold: #d8b56d;
  --gold-bright: #f3dca2;
  --gold-deep: #a97931;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.56);
}

* { box-sizing: border-box; }

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

body {
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Noto Serif TC", system-ui, sans-serif;
}

a,
button { font: inherit; }

.intro-page {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 44%, rgba(248, 226, 178, 0.09), transparent 27%),
    radial-gradient(circle at 21% 23%, rgba(216, 181, 109, 0.13), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(112, 82, 41, 0.2), transparent 30%),
    linear-gradient(112deg, #080808 0%, #11151a 48%, #030407 100%);
}

.intro-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 25%, transparent 70%, rgba(0, 0, 0, 0.34)),
    radial-gradient(ellipse at center, transparent 36%, rgba(0, 0, 0, 0.52) 100%);
}

.intro-canvas,
.ambient,
.stage-light,
.horizon-glow,
.cross-light,
.water-reflection {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.intro-canvas {
  z-index: -7;
  opacity: 0.92;
}

.stage-light {
  z-index: -6;
  opacity: 0.82;
  background:
    radial-gradient(ellipse at 9% 5%, rgba(255, 224, 166, 0.34), transparent 19%),
    linear-gradient(118deg, rgba(255, 225, 164, 0.22) 0%, rgba(255, 225, 164, 0.09) 8%, transparent 23%),
    radial-gradient(circle at 18% 18%, rgba(245, 214, 151, 0.13), transparent 28%);
  filter: blur(0.2px);
  animation: lightBreath 8s ease-in-out infinite alternate;
}

.horizon-glow {
  z-index: -5;
  opacity: 0.86;
  background:
    radial-gradient(ellipse at 24% 83%, rgba(255, 222, 147, 0.48), transparent 8%),
    radial-gradient(ellipse at 24% 86%, rgba(216, 181, 109, 0.22), transparent 18%),
    linear-gradient(90deg, transparent 0%, rgba(235, 187, 95, 0.06) 12%, rgba(252, 222, 153, 0.34) 24%, rgba(235, 187, 95, 0.13) 37%, transparent 60%);
  background-size: 100% 100%;
}

.cross-light {
  z-index: -4;
  opacity: 0.26;
  background:
    linear-gradient(to right, transparent calc(20.5% - 7px), rgba(250, 218, 151, 0.48) calc(20.5% - 7px), rgba(250, 218, 151, 0.48) calc(20.5% + 7px), transparent calc(20.5% + 7px)),
    linear-gradient(to bottom, transparent 73%, rgba(250, 218, 151, 0.46) 73%, rgba(250, 218, 151, 0.46) 75%, transparent 75%);
  mask-image: radial-gradient(ellipse at 20.5% 76%, black 0%, black 12%, transparent 20%);
}

.water-reflection {
  z-index: -3;
  top: auto;
  height: 29vh;
  bottom: -2vh;
  opacity: 0.66;
  background:
    repeating-linear-gradient(180deg, rgba(255, 232, 178, 0.085) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(92deg, rgba(255, 232, 178, 0.055) 0 1px, transparent 1px 95px),
    radial-gradient(ellipse at 24% 0%, rgba(255, 221, 145, 0.4), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(0, 0, 0, 0.38));
  transform: perspective(780px) rotateX(60deg) scaleX(1.18);
  transform-origin: bottom center;
  filter: blur(0.15px);
  animation: waterMove 7s ease-in-out infinite alternate;
}

.ambient {
  z-index: -6;
  filter: blur(82px);
  transform: translate3d(0, 0, 0);
  mix-blend-mode: screen;
}

.ambient-one {
  width: 40vw;
  height: 40vw;
  left: -15vw;
  top: 10vh;
  border-radius: 999px;
  background: rgba(216, 181, 109, 0.18);
  animation: floatOne 13s ease-in-out infinite alternate;
}

.ambient-two {
  width: 46vw;
  height: 46vw;
  right: -18vw;
  bottom: -16vw;
  border-radius: 999px;
  background: rgba(128, 91, 42, 0.24);
  animation: floatTwo 15s ease-in-out infinite alternate;
}

.ambient-three {
  width: 32vw;
  height: 32vw;
  left: 45vw;
  top: 49vh;
  border-radius: 999px;
  background: rgba(255, 235, 190, 0.065);
  animation: floatThree 16s ease-in-out infinite alternate;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(26px, 5vw, 76px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 220, 162, 0.48);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 16px rgba(243, 220, 162, 0.08), 0 12px 34px rgba(0, 0, 0, 0.26);
  color: var(--gold-bright);
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
}

.brand strong,
.brand small { display: block; }

.brand strong {
  font-family: "Noto Serif TC", serif;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.top-actions a {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  text-decoration: none;
  transition: 0.25s ease;
}

.top-actions a:hover {
  color: var(--gold-bright);
  background: rgba(216, 181, 109, 0.14);
  transform: translateY(-2px);
}

.hero {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 130px 24px 136px;
  text-align: center;
  transform: translateY(8px);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold-bright);
  font-size: clamp(0.96rem, 1.55vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1.45;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(216, 181, 109, 0.24);
}

.title-line {
  width: min(760px, 54vw);
  height: 1px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, transparent, rgba(243, 220, 162, 0.48), transparent);
  position: relative;
}

.title-line span,
.title-line::before,
.title-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(243, 220, 162, 0.9), 0 0 38px rgba(216, 181, 109, 0.45);
  transform: translate(-50%, -50%);
}

.title-line::before,
.title-line::after {
  width: 3px;
  height: 3px;
  opacity: 0.7;
}

.title-line::before { left: 25%; }
.title-line::after { left: 75%; }

.title-line-bottom {
  margin: 26px 0 0;
}

.hero-title {
  width: max-content;
  max-width: 94vw;
  margin: 0 auto;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(4.2rem, 7.5vw, 8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: clamp(0.035em, 0.72vw, 0.105em);
  white-space: nowrap;
  text-wrap: nowrap;
  text-align: center;
  transform: translateX(0.045em);
  text-shadow:
    0 28px 70px rgba(0, 0, 0, 0.62),
    0 2px 0 rgba(255, 255, 255, 0.14),
    0 0 54px rgba(216, 181, 109, 0.12);
}

.hero-verse {
  max-width: 790px;
  margin: 34px auto 0;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.05rem, 1.55vw, 1.38rem);
  line-height: 1.9;
  letter-spacing: 0.075em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.52);
}

.hero-ref {
  margin: 10px 0 0;
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

.enter-button,
.ghost-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.enter-button {
  gap: 14px;
  padding: 0 34px 0 38px;
  border: 1px solid rgba(255, 235, 182, 0.74);
  color: #171207;
  font-weight: 700;
  background: linear-gradient(135deg, #fde4a3 0%, #d3a24e 58%, #b98332 100%);
  box-shadow:
    0 20px 54px rgba(216, 181, 109, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.62),
    inset 0 -10px 18px rgba(121, 74, 18, 0.16);
}

.enter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 68px rgba(216, 181, 109, 0.34), inset 0 1px rgba(255, 255, 255, 0.7);
}

.enter-button i {
  font-size: 0.92rem;
  transition: transform 0.25s ease;
}

.enter-button:hover i { transform: translateX(5px); }

.ghost-link {
  padding: 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.ghost-link:hover {
  color: var(--gold-bright);
  border-color: rgba(216, 181, 109, 0.52);
  background: rgba(216, 181, 109, 0.085);
  transform: translateY(-3px);
}

.info-card {
  position: fixed;
  right: clamp(28px, 5vw, 86px);
  bottom: clamp(30px, 6vw, 72px);
  z-index: 8;
  width: min(420px, calc(100vw - 44px));
  min-height: 148px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 20px;
  padding: 25px 28px;
  border: 1px solid rgba(243, 220, 162, 0.42);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 18%, rgba(243, 220, 162, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(48, 40, 28, 0.82), rgba(8, 9, 11, 0.76));
  box-shadow:
    0 30px 92px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(216, 181, 109, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.045) inset,
    inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px);
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(243, 220, 162, 0.92), transparent);
  box-shadow: 0 0 18px rgba(243, 220, 162, 0.72);
}

.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 48%);
  opacity: 0.7;
}

.info-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 220, 162, 0.62);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(243, 220, 162, 0.16), rgba(216, 181, 109, 0.055));
  box-shadow: 0 0 28px rgba(216, 181, 109, 0.18), inset 0 1px rgba(255, 255, 255, 0.12);
  font-size: 1.28rem;
}

.info-content {
  position: relative;
  z-index: 1;
}

.info-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  font-family: "Noto Serif TC", serif;
  font-size: 1.42rem;
  letter-spacing: 0.08em;
}

.info-card p {
  margin: 9px 0 0;
  color: rgba(248, 242, 232, 0.74);
  font-size: 0.98rem;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.scroll-hint {
  position: fixed;
  left: clamp(26px, 5vw, 76px);
  bottom: clamp(34px, 5vw, 68px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(248, 242, 232, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-hint span {
  width: 42px;
  height: 1px;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(243, 220, 162, 0.58);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.intro-page.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.19, 1, 0.22, 1);
}

.intro-page.is-loaded .reveal:nth-child(1) { transition-delay: 0.08s; }
.intro-page.is-loaded .reveal:nth-child(2) { transition-delay: 0.15s; }
.intro-page.is-loaded .reveal:nth-child(3) { transition-delay: 0.22s; }
.intro-page.is-loaded .reveal:nth-child(4) { transition-delay: 0.3s; }
.intro-page.is-loaded .reveal:nth-child(5) { transition-delay: 0.38s; }
.intro-page.is-loaded .reveal:nth-child(6) { transition-delay: 0.46s; }

.intro-page.is-leaving { animation: fadeLeave 0.7s ease forwards; }

@keyframes lightBreath {
  from { opacity: 0.62; transform: translate3d(-1vw, -1vh, 0); }
  to { opacity: 0.88; transform: translate3d(1.5vw, 0.5vh, 0); }
}

@keyframes waterMove {
  from { opacity: 0.42; background-position: 0 0, 0 0, 0 0; }
  to { opacity: 0.62; background-position: 0 18px, 14px 0, 0 0; }
}

@keyframes floatOne {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(7vw, -4vh, 0) scale(1.08); }
}

@keyframes floatTwo {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-7vw, 5vh, 0) scale(1.06); }
}

@keyframes floatThree {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -6vh, 0) scale(1.1); }
}

@keyframes fadeLeave {
  to {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.015);
  }
}

@media (max-width: 1180px) {
  .hero-title {
    font-size: clamp(3.2rem, 7.2vw, 6.4rem);
    letter-spacing: 0.035em;
  }

  .eyebrow {
    font-size: clamp(0.8rem, 1.3vw, 1.04rem);
    letter-spacing: 0.25em;
  }
}

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

  .topbar {
    padding: 20px 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong { font-size: 0.94rem; }
  .brand small { display: none; }

  .top-actions {
    gap: 4px;
    padding: 5px;
  }

  .top-actions a {
    width: 34px;
    height: 34px;
  }

  .stage-light {
    background:
      radial-gradient(ellipse at 9% 5%, rgba(255, 224, 166, 0.24), transparent 21%),
      linear-gradient(118deg, rgba(255, 225, 164, 0.16) 0%, rgba(255, 225, 164, 0.06) 10%, transparent 25%),
      radial-gradient(circle at 17% 16%, rgba(245, 214, 151, 0.1), transparent 30%);
  }

  .cross-light {
    opacity: 0.2;
    mask-image: radial-gradient(ellipse at 20.5% 76%, black 0%, black 18%, transparent 29%);
  }

  .hero {
    justify-items: start;
    text-align: left;
    padding: 124px 22px 240px;
    transform: none;
  }

  .eyebrow {
    max-width: 330px;
    margin-bottom: 18px;
    font-size: 0.83rem;
    line-height: 1.7;
    letter-spacing: 0.18em;
  }

  .title-line,
  .title-line-bottom {
    width: 80vw;
    margin-left: 0;
  }

  .hero-title {
    width: auto;
    max-width: 100%;
    font-size: clamp(2.65rem, 11.2vw, 4.2rem);
    white-space: normal;
    text-wrap: balance;
    letter-spacing: 0.04em;
    transform: none;
    text-align: left;
  }

  .hero-verse {
    margin-top: 28px;
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .enter-button,
  .ghost-link {
    width: 100%;
  }

  .info-card {
    left: 18px;
    right: 18px;
    bottom: 22px;
    width: auto;
    min-height: auto;
    grid-template-columns: 48px 1fr;
    gap: 15px;
    padding: 18px;
    border-radius: 25px;
  }

  .info-icon {
    width: 48px;
    height: 48px;
    font-size: 1.06rem;
  }

  .info-label {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
  }

  .info-card strong {
    font-size: 1.18rem;
  }

  .info-card p {
    font-size: 0.88rem;
  }

  .scroll-hint { display: none; }
}

@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;
  }
}
