@charset "UTF-8";

@font-face {
  font-family: "Mentorantem Statement";
  src: url("statement.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.stage {
  --ground: #090807;
  --ink: #faf0df;
  --muted: #b9aa94;
  --gold: #e0b681;
  --edge: clamp(22px, 5vw, 89px);
  --edge-y: clamp(22px, 5.3svh, 54px);
  --mark-y: max(248px, 43svh);
  --hero-y: max(375px, 64svh);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: max(620px, 100svh);
  padding: var(--hero-y) var(--edge) clamp(32px, 8svh, 85px);
}
.entry-environment {
  position: absolute;
  inset: 0;
  z-index: -5;
  isolation: isolate;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 13% 64%, #17120e 0%, transparent 54%),
    radial-gradient(ellipse at 88% 35%, #11171b 0%, transparent 52%),
    var(--ground);
}
.artwork, .edge-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.entry-environment::before {
  content: "";
  position: absolute;
  z-index: -5;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 76% 39%, #13181b, #0c0f11 75%);
  opacity: var(--prelude, 0);
}
.flow-back { z-index: -4; }
.edge-shade {
  z-index: -3;
  background:
    radial-gradient(ellipse at 50% 49%, transparent 63%, #09080736 100%),
    linear-gradient(0deg, #09080740, transparent 15%);
}
.flow-front { z-index: -1; }

.mark-position {
  position: absolute;
  z-index: -2;
  top: var(--mark-y);
  left: 50%;
  width: clamp(132px, min(13.55vw, 23svh), 220px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@keyframes static-mark { from { opacity: 0; } to { opacity: 1; } }
.mark-float, .mark-float svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mark-float { filter: drop-shadow(0 7px 24px #08070680); }
.mark-outline { fill: none; stroke: #ffe8b8; stroke-width: .32; opacity: 0; }
.stage.is-formed .mark-float { animation: float-mark 8s ease-in-out infinite alternate; }
.stage.is-paused .mark-float { animation-play-state: paused; }
@keyframes float-mark { to { transform: translateY(-5px); } }

.hero {
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3.1svh, 34px);
  text-align: center;
  color: var(--ink);
}
.hero h1 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  font-family: "Mentorantem Statement", "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(1.65rem, min(2.65vw, 5svh), 2.85rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .055em;
  padding-inline-start: .055em;
  text-shadow: 0 2px 14px #090807, 0 3px 28px #090807;
}
.hero h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42% -9%;
  pointer-events: none;
  opacity: var(--first-clause, 1);
  background: radial-gradient(ellipse closest-side, #12100edb 10%, #14120fb8 69%, transparent 100%);
}
.hero h1 span {
  --amount: var(--first-clause, 1);
  white-space: nowrap;
  color: #f7ead3;
  opacity: var(--amount);
  transform: translateY(calc(5px * (1 - var(--amount))));
}
.hero h1 span:nth-of-type(2) { --amount: var(--second-clause, 1); color: #f0e5d3; }
.hero h1 span:nth-of-type(3) { --amount: var(--third-clause, 1); color: #e8e0d2; }
/* When JS is still arriving the static fallback recovers if it never loads. */
.entry {
  position: absolute;
  z-index: 1;
  bottom: max(clamp(39px, 7svh, 86px), env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
}
.enter {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-width: 157px;
  min-height: 51px;
  padding: .65em 1.5em;
  --invitation: 1;
  color: rgb(191 181 164);
  color: rgb(239 232 217 / calc(.38 + .62 * var(--invitation)));
  border: 1px solid rgb(201 177 141 / calc(.11 + .39 * var(--invitation)));
  border-radius: 99px;
  background: rgb(29 25 20 / calc(.16 + .70 * var(--invitation)));
  box-shadow: inset 0 1px rgb(245 219 178 / calc(.09 * var(--invitation)));
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .11em;
  transition: background .32s ease, box-shadow .4s ease, border-color .32s ease;
  touch-action: manipulation;
}
.enter:is(:hover, :focus-visible, :active) {
  color: #fff0d8;
  border-color: var(--gold);
  background: #302319;
  box-shadow: 0 0 27px #d4a57126, inset 0 1px #fff2;
}
.enter-icon {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  color: rgb(231 198 149 / calc(.35 + .65 * var(--invitation)));
  border-radius: 50%;
}
.enter-icon::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px #edb76a;
}
.enter-ripple {
  position: absolute;
  inset: -1px;
  border: 1px solid #e2b782;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.enter:is(:hover, :focus-visible) .enter-ripple { animation: invite .95s cubic-bezier(.19, .7, .3, 1) both; }
.stage.is-paused .enter-ripple { animation: none; }
@keyframes invite {
  from { opacity: .64; transform: scale(1); }
  to { opacity: 0; transform: scale(1.21, 1.52); }
}
@media (max-width: 720px) {
  .stage {
    --edge: clamp(17px, 5.6vw, 34px);
    --edge-y: max(21px, env(safe-area-inset-top));
    --mark-y: max(210px, 36svh);
    --hero-y: max(354px, 63svh);
    min-height: max(580px, 100svh);
  }
  .mark-position { width: clamp(102px, 31vw, 155px); }
  .hero h1 {
    font-size: clamp(1.125rem, 5.5vw, 2.0rem);
    line-height: 1.54;
    letter-spacing: .04em;
    padding-inline-start: .04em;
  }
}
@media (max-width: 720px) and (max-height: 650px) {
  .stage { --hero-y: max(277px, 59svh); min-height: max(480px, 100svh); }
}
@media (max-height: 540px) and (min-width: 550px) and (orientation: landscape) {
  .stage {
    --edge-y: max(15px, env(safe-area-inset-top));
    --mark-y: max(110px, 35svh);
    --hero-y: max(188px, 57svh);
    min-height: max(350px, 100svh);
    padding-bottom: 18px;
  }
  .mark-position { width: clamp(84px, 25svh, 126px); }
  .hero { gap: 13px; }
  .hero h1 { font-size: clamp(1.25rem, 6.8svh, 1.9rem); }
  .enter { min-height: 45px; }
  .entry { bottom: max(32px, env(safe-area-inset-bottom)); }
}
