:root {
  --ink: #173623;
  --ink-soft: rgba(23, 54, 35, .72);
  --paper: #f6f0df;
  --red: #b83a2d;
  --gold: #c9933e;
  --songti: "STSongti-SC-Regular", "STSongti SC", "Songti SC", "STSong", "SimSun", serif;
  --songti-bold: "STSongti-SC-Bold", "STSongti SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--songti);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

button {
  font: inherit;
}

.experience {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.poster-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/结束页.png");
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

.boat-scene {
  position: absolute;
  right: 0;
  bottom: 7%;
  z-index: 2;
  width: min(72vw, 1160px);
  aspect-ratio: 1.78 / 1;
  pointer-events: none;
  transform: translateX(105%);
  will-change: right, transform;
}

.boat-hero {
  position: absolute;
  inset: 0;
  background-image: url("./assets/dragon-boad.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 24px 28px rgba(22, 42, 29, .22));
}

.launch-copy,
.blessing-copy {
  position: absolute;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 2px 12px rgba(246, 240, 223, .72);
}

.launch-copy {
  top: min(7vh, 78px);
  min-width: min(1320px, 94vw);
}

.blessing-copy {
  top: 18%;
  min-width: min(1000px, 86vw);
  gap: clamp(28px, 2.3vw, 44px);
}

.seal {
  position: absolute;
  top: 8px;
  right: -34px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 43px;
  margin: 0;
  border-radius: 13px 13px 4px 4px;
  background: var(--red);
  color: #fff7e8;
  font-size: 11px;
  line-height: 1.1;
  writing-mode: vertical-rl;
  box-shadow: 0 5px 16px rgba(93, 37, 27, .18);
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--songti-bold);
  font-weight: 700;
  line-height: .96;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(78px, 6.2vw, 118px);
}

h2 {
  font-size: clamp(82px, 6.2vw, 122px);
}

.prompt {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  margin-top: 0;
  color: var(--ink);
  white-space: nowrap;
}

.prompt span {
  width: clamp(56px, 8vw, 150px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-soft), transparent);
}

.prompt p,
.blessing-line {
  margin: 0;
  font-family: var(--songti-bold);
  font-weight: 700;
  letter-spacing: 0;
}

.prompt p {
  font-size: clamp(52px, 4.6vw, 88px);
  line-height: .96;
}

.chevrons {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  opacity: .82;
}

.chevrons i {
  width: 17px;
  height: 17px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  animation: breathe 1.8s ease-in-out infinite;
}

.chevrons i + i {
  animation-delay: .22s;
}

.tap-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tap-layer:focus,
.tap-layer:active {
  outline: none;
  background: transparent;
}

.blessing-line {
  font-size: clamp(72px, 5.5vw, 108px);
  line-height: 1;
}

@keyframes breathe {
  0%,
  100% {
    opacity: .34;
    transform: translateY(-2px) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(4px) rotate(45deg);
  }
}

@media (max-width: 1200px), (max-height: 760px) {
  .boat-scene {
    bottom: 8%;
    width: min(78vw, 980px);
  }

  .launch-copy {
    top: 5.5vh;
  }

  .blessing-copy {
    top: 10%;
  }
}

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