/* 开场页：纸面 + 金箔，各页切换都会出现 */
body.is-booting {
  overflow: hidden;
}

.boot {
  --boot-paper: #fbf7ee;
  --boot-gold: #b8943f;
  --boot-ink: #2a2216;
  --boot-soft: rgba(42, 34, 22, 0.38);
  --boot-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --boot-serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --boot-label: "Cinzel", "Cormorant Garamond", Georgia, serif;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 48% at 50% 40%, rgba(216, 188, 116, 0.2), transparent 62%),
    var(--boot-paper);
  color: var(--boot-ink);
  cursor: default;
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.boot.is-ready {
  cursor: pointer;
}

.boot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.boot.is-done .boot-enter {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.boot-inner {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 1.5rem;
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.4s;
}

.boot-kicker {
  font-family: var(--boot-label);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--boot-gold);
}

.boot-disc {
  --boot-fill: 0%;
  width: 5.4rem;
  height: 5.4rem;
  margin: 1.2rem 0 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(184, 148, 63, 0.5);
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(216, 188, 116, 0.2), transparent 65%),
    linear-gradient(160deg, #efe5d2 0%, #f7f1e6 60%, #e9dcc4 100%);
  box-shadow: 0 0 0 8px rgba(251, 247, 238, 0.92), 0 14px 36px rgba(42, 34, 22, 0.08);
  position: relative;
  overflow: hidden;
}

.boot-disc-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  clip-path: polygon(0 100%, 0 100%, 100% 100%);
}

.boot-disc-fill img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.boot-names {
  font-family: var(--boot-serif);
  font-size: 1.12rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.boot-date {
  margin-top: 0.45rem;
  font-family: var(--boot-label);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--boot-gold);
}

.boot-rule {
  display: block;
  width: 2.6rem;
  height: 1px;
  margin: 1.15rem 0 0.95rem;
  background: linear-gradient(115deg, #8f6f2a 0%, #d8bc74 40%, #f0e2b8 50%, #c9a84c 70%, #8f6f2a 100%);
  background-size: 200% 100%;
  animation: boot-foil 7s linear infinite;
}

.boot-text {
  font-family: var(--boot-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--boot-soft);
}

.boot.is-ready .boot-inner {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
}

.boot-enter {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
  width: 13.5rem;
  height: 13.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.72);
}

.boot.is-ready .boot-enter {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: boot-enter-pop 0.78s cubic-bezier(0.18, 1.12, 0.32, 1) both;
}

.boot-enter-pulse,
.boot-enter-pulse--lag {
  position: absolute;
  inset: 0.35rem;
  border-radius: 50%;
  border: 1px solid rgba(184, 148, 63, 0.42);
  pointer-events: none;
}

.boot.is-ready .boot-enter-pulse {
  animation: boot-enter-ring 2.6s ease-out infinite;
}

.boot.is-ready .boot-enter-pulse--lag {
  animation: boot-enter-ring 2.6s ease-out 1.3s infinite;
}

.boot-enter-seal {
  position: absolute;
  inset: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 188, 116, 0.28), transparent 58%),
    var(--boot-paper);
  border: 1px solid rgba(184, 148, 63, 0.55);
  box-shadow:
    0 0 0 8px rgba(251, 247, 238, 0.92),
    0 18px 40px rgba(42, 34, 22, 0.12);
}

.boot-enter-seal::before,
.boot-enter-seal::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2.4rem;
  height: 1px;
  margin-left: -1.2rem;
  background: linear-gradient(115deg, #8f6f2a 0%, #d8bc74 40%, #f0e2b8 50%, #c9a84c 70%, #8f6f2a 100%);
  background-size: 200% 100%;
  animation: boot-foil 7s linear infinite;
}

.boot-enter-seal::before { top: 1.35rem; }
.boot-enter-seal::after { bottom: 1.35rem; }

.boot-enter-label {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  font-family: var(--boot-serif);
  font-size: 1.55rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  line-height: 1.15;
  background: linear-gradient(115deg, #8f6f2a 0%, #d8bc74 32%, #f0e2b8 50%, #c9a84c 68%, #8f6f2a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: boot-enter-foil 6s ease-in-out infinite, boot-enter-breathe 2.8s ease-in-out infinite;
}

.boot-enter-click { display: none; }

.boot.is-ready .boot-enter:hover .boot-enter-seal {
  border-color: rgba(184, 148, 63, 0.85);
  box-shadow:
    0 0 0 8px rgba(251, 247, 238, 0.92),
    0 22px 46px rgba(42, 34, 22, 0.16);
}

.boot.is-ready .boot-enter:hover .boot-enter-label {
  animation: boot-enter-foil 6s ease-in-out infinite;
  transform: scale(1.04);
}

@keyframes boot-enter-pop {
  0% {
    opacity: 0;
    visibility: visible;
    transform: scale(0.62);
  }
  62% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
}

@keyframes boot-enter-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes boot-enter-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes boot-enter-foil {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (min-width: 721px) {
  .boot-enter {
    width: 15.5rem;
    height: 15.5rem;
  }

  .boot-enter-label {
    font-size: 1.85rem;
    letter-spacing: 0.38em;
    text-indent: 0.38em;
  }

  .boot-enter-touch { display: none; }
  .boot-enter-click { display: inline; }
}

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

@media (prefers-reduced-motion: reduce) {
  .boot-rule,
  .boot-enter-seal::before,
  .boot-enter-seal::after,
  .boot-enter-label {
    animation: none;
    transition: none;
  }

  .boot.is-ready .boot-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .boot.is-ready .boot-enter-pulse,
  .boot.is-ready .boot-enter-pulse--lag {
    animation: none;
    opacity: 0.45;
  }
}

body.map-sheet-open {
  overflow: hidden;
}

.map-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: end;
  pointer-events: none;
  background: rgba(20, 20, 20, 0.45);
}

.map-sheet.is-open {
  display: grid;
  pointer-events: auto;
}

.map-sheet-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.map-sheet-panel {
  position: relative;
  z-index: 2;
  margin: 0 0.7rem max(0.7rem, env(safe-area-inset-bottom));
  padding: 0.55rem 0.55rem 0.45rem;
  border-radius: 0.85rem;
  background: #f4f4f5;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}

.map-sheet-title {
  margin: 0.15rem 0 0.45rem;
  text-align: center;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(32, 33, 36, 0.55);
}

.map-sheet-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.92rem 1rem;
  border: 0;
  border-radius: 0.65rem;
  background: #fff;
  color: #1a73e8;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

a.map-sheet-btn:visited {
  color: #1a73e8;
}

.map-sheet-cancel {
  margin-top: 0.55rem;
  color: #202124;
  font-weight: 600;
}

.map-sheet-hint {
  margin: 0.55rem 0.35rem 0.15rem;
  text-align: center;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: rgba(32, 33, 36, 0.48);
}
