@font-face {
  font-family: Gloock;
  src: url("/media/gloock-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/media/space-mono-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #11122e;
  --white: #f7f4ff;
  --soft: #d1cce8;
  --lime: #e6ff76;
  --ink: #1b1b32;
  --mono: "Space Mono", ui-monospace, monospace;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif-cn: "Songti SC", "Noto Serif CJK SC", SimSun, var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--white); font-family: var(--body); }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a690ff; outline-offset: 5px; }
.shell { width: min(100% - 128px, 1264px); margin-inline: auto; }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  transform: translateY(-150%);
  padding: 10px 15px;
  background: var(--lime);
  color: var(--ink);
}

.skip:focus { transform: none; }

.top {
  position: relative;
  z-index: 1;
  min-height: 72px;
  border-bottom: 1px solid #ddd1ff32;
  background: #11122e;
}

.top-inner {
  display: grid;
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand { display: inline-flex; justify-self: start; align-items: center; gap: 11px; font: 400 28px/1 Gloock, Georgia, serif; }
.brand-mark, .spark {
  display: inline-block;
  flex: none;
  inline-size: 1em;
  block-size: 1em;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}

.brand-mark { color: var(--lime); font-size: 24px; transform: rotate(14deg); }
.main-nav { display: flex; align-items: center; gap: 38px; color: var(--soft); font-size: 14px; }
.main-nav a { padding-block: 12px; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--lime); }
.domain { justify-self: end; color: var(--lime); font: 400 12px/1 var(--mono); letter-spacing: .16em; }

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 47%, #6548be 0%, #3c2c84 26%, #211d50 54%, transparent 78%),
    linear-gradient(110deg, #11122e 1%, #19173d 54%, #28235e 100%);
}

.stage::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .34;
  background-image:
    repeating-linear-gradient(117deg, #d1c3ff00 0 37px, #d1c3ff14 38px, #d1c3ff00 39px 63px),
    radial-gradient(ellipse at 82% 17%, #c3a9ffcd 0%, transparent 43%);
  mask-image: linear-gradient(90deg, transparent 7%, black 76%);
}

.sky {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    conic-gradient(from 212deg at 74% -20%, transparent 0deg, #cab6ff18 8deg, #c9b4ff04 15deg, transparent 19deg, #c9b4ff32 26deg, transparent 32deg 360deg),
    radial-gradient(ellipse at 78% 59%, #b090ff14, transparent 48%);
}

.sky::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: radial-gradient(ellipse at 71% 44%, #ce9effba, #6a4ccd4f 46%, #20194700 78%);
  transition: opacity 900ms ease;
}

.stage.is-lit .sky::before { opacity: 1; transition-duration: 420ms; }

.stage-inner {
  min-height: 714px;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  padding-block: 48px 53px;
}

.intro { z-index: 1; align-self: center; padding: 5px 0 0 26px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--lime);
  font-size: 13px;
  letter-spacing: .13em;
  white-space: nowrap;
}

.kicker [lang="en"] { font: 400 13px/1.4 var(--mono); letter-spacing: .17em; }
.short-rule { width: 33px; border-top: 1px solid currentColor; }
.kicker-divider { opacity: .65; }

h1 {
  position: relative;
  width: max-content;
  margin: 24px 0 6px -8px;
  color: var(--white);
  font: 400 clamp(92px, 11.75vw, 170px)/.9 Gloock, "Times New Roman", serif;
  letter-spacing: -.066em;
  text-shadow: 0 12px 62px #af91ff34;
}

.title-period { color: var(--lime); padding-left: .045em; }
.tagline { margin: 22px 0 0; font: 600 clamp(26px, 3vw, 44px)/1.42 var(--serif-cn); letter-spacing: .065em; }
.intro-copy { margin: 22px 0 25px; color: var(--soft); font-size: 16px; line-height: 1.85; letter-spacing: .065em; }

.cheer {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  min-width: 178px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid #efffb0;
  border-radius: 100px;
  background: var(--lime);
  color: #1c1b2e;
  box-shadow: 0 4px 33px #daff5330, inset 0 1px #fff9;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .085em;
  cursor: pointer;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.cheer:hover { background: #f1ffa6; box-shadow: 0 5px 36px #daff5360; transform: translateY(-2px); }
.cheer:active { transform: translateY(1px); }
.button-spark { font-size: 20px; }
.is-lit .button-spark { transform: rotate(45deg); transition: transform 420ms ease; }
.cheer-status { margin-top: 11px; min-height: 1.5em; color: var(--lime); font-size: 13px; letter-spacing: .045em; }

.portrait {
  position: relative;
  width: min(80%, 414px);
  margin: 0;
  justify-self: center;
  transform: translateX(9px);
}

.constellation { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orbit {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 145%;
  height: 78%;
  border: 1px solid #ddceff69;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-29deg);
}

.orbit-two { width: 158%; height: 65%; border-color: #ddd7ff3f; transform: translate(-50%, -50%) rotate(-44deg); }
.constellation .spark { position: absolute; color: #f0e8ff; text-shadow: 0 0 10px #c0a7ff; }
.star-outer { top: 63%; left: -23%; font-size: 38px; transform: rotate(14deg); }
.star-upper { top: -3.5%; right: -4%; font-size: 38px; transform: rotate(11deg); }
.star-lower { bottom: 13%; left: -9%; font-size: 14px; }
.star-right { top: 37%; right: -14%; font-size: 21px; transform: rotate(15deg); }
.small-light { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 11px 2px #c39dff; }
.light-one { left: -17%; top: 38%; }
.light-two { right: -18%; top: 56%; }

.portrait-frame {
  position: relative;
  padding: 10px;
  border: 1px solid #e9ddff82;
  background: #d4c0ff12;
  box-shadow: 0 28px 54px #0f092975, 0 0 48px #a982f942;
}

.portrait-frame::before {
  position: absolute;
  z-index: 2;
  inset: -1px;
  border: 1px solid #f2e9ff;
  clip-path: polygon(0 0, 24px 0, 24px 1px, 1px 1px, 1px 24px, 0 24px, 0 0,
    100% 0, 100% 24px, calc(100% - 1px) 24px, calc(100% - 1px) 1px, calc(100% - 24px) 1px, calc(100% - 24px) 0, 100% 0,
    100% 100%, calc(100% - 24px) 100%, calc(100% - 24px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 24px), 100% calc(100% - 24px), 100% 100%,
    0 100%, 0 calc(100% - 24px), 1px calc(100% - 24px), 1px calc(100% - 1px), 24px calc(100% - 1px), 24px 100%, 0 100%);
  pointer-events: none;
  content: "";
}

.portrait-open { display: block; position: relative; cursor: zoom-in; overflow: hidden; }
.portrait-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #423848; transition: transform 450ms ease; }
.portrait-open:hover .portrait-image { transform: scale(1.025); }
.expand {
  display: grid;
  position: absolute;
  right: 10px;
  top: 10px;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #fff7;
  border-radius: 50%;
  color: #fff;
  background: #161029bf;
}

.expand::before {
  content: "";
  width: 13px;
  height: 13px;
  background: linear-gradient(currentColor 0 0) top left / 5px 1px,
    linear-gradient(currentColor 0 0) top left / 1px 5px,
    linear-gradient(currentColor 0 0) top right / 5px 1px,
    linear-gradient(currentColor 0 0) top right / 1px 5px,
    linear-gradient(currentColor 0 0) bottom left / 5px 1px,
    linear-gradient(currentColor 0 0) bottom left / 1px 5px,
    linear-gradient(currentColor 0 0) bottom right / 5px 1px,
    linear-gradient(currentColor 0 0) bottom right / 1px 5px;
  background-repeat: no-repeat;
}

.seal {
  position: absolute;
  z-index: 3;
  right: -39px;
  bottom: 22px;
  width: 108px;
  height: 108px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid #f5fcce;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 7px 22px #21123664;
  font: 400 12px/1.15 var(--mono);
  letter-spacing: .075em;
  transform: rotate(13deg);
  pointer-events: none;
}

.seal::before { position: absolute; inset: 6px; border: 1px solid #2c332d90; border-radius: 50%; content: ""; }
.seal-spark { font-size: 28px; }
.portrait figcaption { display: flex; align-items: center; gap: 11px; margin-top: 13px; color: #ece2ff; font-size: 12px; letter-spacing: .11em; white-space: nowrap; }
.portrait figcaption [lang="en"] { font-family: var(--mono); letter-spacing: .13em; }
.caption-line { flex: 1; border-top: 1px solid #dbcbff64; }

.banner { display: flex; overflow: hidden; justify-content: center; border-block: 1px solid #f1ffa5; background: var(--lime); color: #1b2034; }
.banner-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(28px, 3.7vw, 57px);
  min-height: 58px;
  padding-inline: 25px;
  font: 400 13px/1 var(--mono);
  letter-spacing: .16em;
  white-space: nowrap;
}

.banner-track .spark { font-size: 18px; transform: rotate(12deg); }
.letter { overflow: hidden; color-scheme: light; background: #f3effc; color: #252044; }
.letter-inner { display: grid; grid-template-columns: .9fr 1fr; align-items: center; min-height: 500px; padding-block: 74px; }
.letter-art { display: grid; place-items: center; position: relative; justify-self: center; width: min(84%, 420px); height: 310px; }
.letter-orbit { position: absolute; width: 89%; height: 60%; transform: rotate(-25deg); border: 1px solid #a496cb; border-radius: 50%; }
.letter-orbit:nth-child(2) { width: 99%; height: 55%; transform: rotate(30deg); border-color: #c3b5e2; }
.letter-star { font-size: 190px; transform: rotate(12deg); color: #51409c; background: linear-gradient(145deg, #bea6f9 10%, #6a4db2 53%, #3c306c 82%); }
.letter-small { position: absolute; right: 13%; top: 16%; font-size: 29px; color: #725eb0; transform: rotate(15deg); }
.letter-content .kicker { color: #624ba7; }
.letter h2 { margin: 18px 0 16px; font: 600 clamp(38px, 4.9vw, 72px)/1.17 var(--serif-cn); letter-spacing: .025em; }
.letter-copy { margin: 0 0 22px; color: #524a6b; font-size: 16px; line-height: 1.9; }
.share {
  border: 0;
  border-bottom: 1px solid #8970bd;
  padding: 7px 0;
  color: #4a357f;
  background: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.share:hover { color: #7862b3; }
.share span { margin-left: 4px; }
.share-status { margin-left: 8px; font-size: 13px; }

.bottom { border-top: 1px solid #d8cbed33; background: var(--night); }
.bottom-inner { min-height: 85px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 25px; padding-block: 19px; color: var(--soft); font-size: 13px; }
.bottom-brand { display: flex; gap: 9px; align-items: center; color: var(--white); font: 400 12px/1.1 var(--mono); letter-spacing: .1em; }
.bottom-brand .spark { color: var(--lime); font-size: 16px; }
.bottom a:hover { color: var(--lime); }

.lightbox { overflow: visible; max-width: calc(100vw - 28px); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #e4d7ff91; background: #131229; }
.lightbox::backdrop { background: #0d0a1be8; }
.lightbox-view { position: relative; }
.lightbox img { display: block; height: auto; width: auto; max-width: 100%; max-height: calc(100dvh - 26px); object-fit: contain; }
.close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 1px solid #fff9; border-radius: 50%; background: #17122bdc; color: white; font-size: 29px; line-height: 1; cursor: pointer; }
.confetti { position: fixed; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
body:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 84px); }
  .stage-inner { min-height: 650px; }
  .intro { padding-left: 8px; }
}

@media (max-width: 850px) {
  .shell { width: calc(100% - 64px); }
  .stage-inner { min-height: 585px; }
  h1 { font-size: clamp(78px, 12vw, 108px); margin-left: -4px; }
  .portrait { width: 83%; transform: translateX(2px); }
  .seal { width: 80px; height: 80px; right: -25px; bottom: 17px; gap: 2px; font-size: 10px; }
  .seal-spark { font-size: 23px; }
  .desktop-break { display: none; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 42px); }
  .top, .top-inner { min-height: 62px; }
  .top-inner { grid-template-columns: 1fr auto; }
  .brand { font-size: 25px; gap: 8px; }
  .brand-mark { font-size: 21px; }
  .main-nav { justify-self: end; gap: 18px; }
  .nav-stage, .domain { display: none; }
  .stage { background: radial-gradient(ellipse at 77% 66%, #6046ad 0%, #352669 36%, #191638 72%, #11122e 100%); }
  .stage-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 49px 34px; }
  .intro { padding: 0 0 0 5px; }
  h1 { font-size: clamp(77px, 21.5vw, 136px); margin-top: 18px; }
  .tagline { margin-top: 13px; font-size: clamp(24px, 6.9vw, 38px); }
  .intro-copy { margin: 14px 0 19px; font-size: 15px; line-height: 1.75; }
  .cheer { min-height: 49px; min-width: 157px; font-size: 14px; }
  .cheer-status { margin-top: 7px; }
  .portrait { width: min(89%, 385px); margin-top: 10px; transform: none; }
  .portrait-frame { padding: 7px; }
  .portrait figcaption { margin-top: 10px; }
  .star-upper { top: -4%; right: -8%; font-size: 29px; }
  .star-outer { left: -14%; font-size: 23px; }
  .star-right { display: none; }
  .seal { right: -21px; }
  .expand { width: 34px; height: 34px; right: 7px; top: 7px; }
  .banner-track { min-height: 49px; font-size: 12px; }
  .letter-inner { grid-template-columns: 1fr; padding-block: 41px 55px; }
  .letter-art { width: min(75%, 260px); height: 168px; margin-bottom: 24px; }
  .letter-star { font-size: 114px; }
  .letter-small { font-size: 20px; }
  .letter-content { padding-left: 5px; }
  .letter h2 { margin-top: 14px; }
  .bottom-inner { gap: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
