:root {
  --ink: #3a3228;
  --muted: #7a6d5c;
  --paper: #f7f0e4;
  --paper-soft: #fbf7f0;
  --cream: #fffaf3;
  --gold: #c4a46a;
  --gold-deep: #8b6b3d;
  --gold-light: #e8d39a;
  --line: rgba(139, 107, 61, 0.18);
  --shadow: 0 18px 48px rgba(90, 70, 40, 0.08);
  --display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(80% 50% at 100% 40%, rgba(232, 211, 154, 0.22), transparent 50%),
    radial-gradient(70% 45% at 0% 70%, rgba(196, 164, 106, 0.12), transparent 45%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 45%, #f1e6d4 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

.fx-particles {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.sky {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 180px;
  height: 70px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(2px);
  opacity: 0.7;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 70px; height: 70px; top: -28px; left: 28px; }
.cloud::after { width: 90px; height: 90px; top: -38px; right: 24px; }
.cloud--a { top: 8%; left: -40px; animation: drift 18s ease-in-out infinite; }
.cloud--b { bottom: 12%; right: -50px; width: 210px; animation: drift 22s ease-in-out infinite reverse; }

.bloom {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(232, 211, 154, 0.35), transparent 55%);
  opacity: 0.55;
  filter: blur(1px);
}
.bloom--l { left: -30px; bottom: 28%; }
.bloom--r { right: -40px; top: 34%; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.music {
  position: fixed;
  top: calc(var(--st) + 14px);
  right: 14px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.music.is-on {
  animation: spinSoft 6s linear infinite;
}
@keyframes spinSoft { to { transform: rotate(360deg); } }

.page {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 calc(var(--sb) + 48px);
}

.cover {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--st) + 10px) 10px 28px;
  opacity: 0;
  animation: rise 1s ease 0.15s forwards;
}

.cover__frame {
  margin: 0 auto;
  width: 100%;
  max-width: 410px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(196, 164, 106, 0.35),
    0 22px 56px rgba(90, 70, 40, 0.16);
  background: #fffaf3;
}

.cover__img {
  width: 100%;
  height: auto;
  aspect-ratio: 576 / 1024;
  object-fit: cover;
  object-position: center top;
}

.cover__cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--gold-deep);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  opacity: 0.75;
}
.cover__cue i {
  width: 14px;
  height: 22px;
  border: 1.5px solid rgba(139, 107, 61, 0.45);
  border-radius: 10px;
  position: relative;
}
.cover__cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-deep);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
  100% { opacity: 0.2; transform: translateY(10px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.panel {
  position: relative;
  margin: 8px 20px 0;
  padding: 34px 22px 26px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 248, 238, 0.92));
  border: 1.5px solid rgba(196, 164, 106, 0.35);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 22px;
  border: 1px dashed rgba(196, 164, 106, 0.28);
  pointer-events: none;
}

.bow {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 10px rgba(139, 107, 61, 0.18));
}

.panel__name {
  font-family: var(--display);
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.panel__rule {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 12px 0 20px;
  color: var(--gold);
  font-size: 11px;
}
.panel__rule i {
  display: block;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.facts {
  list-style: none;
  display: grid;
  gap: 14px;
}
.facts li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}
.facts__ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: linear-gradient(180deg, #fff8ea, #f0e0c0);
  border: 1px solid rgba(196, 164, 106, 0.35);
}
.facts strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.facts em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.letter {
  margin-top: 42px;
  text-align: center;
  padding: 0 28px;
}
.letter__en {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  opacity: 0.85;
}
.letter h2 {
  margin: 8px 0 16px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}
.letter p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.venue {
  margin-top: 42px;
  text-align: center;
  padding: 0 20px;
}
.venue h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}
.venue__addr {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.map {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 170px;
}
.map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-width: 180px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fffaf3;
  font-size: 14px;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #c4a46a, #8b6b3d);
  box-shadow: 0 10px 24px rgba(139, 107, 61, 0.28);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.cta:active { transform: scale(0.97); opacity: 0.92; }

.close {
  margin-top: 48px;
  text-align: center;
  padding: 0 20px 8px;
}
.close__seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--gold-deep);
  border: 1.5px solid rgba(196, 164, 106, 0.45);
  background: radial-gradient(circle at 35% 30%, #fff, #f3e6cc);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.7);
}
.close p {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.close__from {
  margin-top: 10px;
  font-family: var(--display);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.2em;
}
.close__domain {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(139, 107, 61, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover,
  .cover__cue i,
  .reveal,
  .cloud,
  .music.is-on {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .fx-particles { display: none !important; }
}
