@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("./vendor/fonts/cormorant-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("./vendor/fonts/cormorant-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #040a12;
  --night: #07111d;
  --ivory: #f2e7cf;
  --ivory-soft: #e8dcc2;
  --gold: #d4b985;
  --gold-pale: #f4dfb3;
  --gold-dim: rgba(212, 185, 133, 0.44);
  --muted: rgba(234, 223, 201, 0.46);
  --muted-low: rgba(234, 223, 201, 0.25);
  --serif-en: "Cormorant Garamond", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --serif-cn: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background: var(--ink);
}

body {
  overflow: hidden;
  color: var(--ivory);
  background: var(--ink);
  font-family: var(--serif-cn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

#world {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}

#hand-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.atmosphere,
.grain,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.atmosphere {
  z-index: 2;
  background:
    radial-gradient(ellipse 52% 48% at 50% 43%, rgba(216, 182, 113, 0.085), transparent 68%),
    radial-gradient(ellipse 46% 52% at 81% 16%, rgba(73, 112, 146, 0.1), transparent 70%),
    radial-gradient(ellipse 38% 35% at 9% 9%, rgba(112, 158, 184, 0.075), transparent 72%),
    radial-gradient(ellipse 46% 40% at 16% 85%, rgba(31, 74, 104, 0.09), transparent 72%),
    linear-gradient(180deg, rgba(2, 8, 16, 0.2) 0%, transparent 29%, transparent 75%, rgba(2, 7, 13, 0.5) 100%);
  mix-blend-mode: screen;
  animation: atmosphere-breathe 13s ease-in-out infinite alternate;
}

.grain {
  z-index: 3;
  inset: -45%;
  width: 190%;
  height: 190%;
  opacity: 0.052;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(8) infinite;
  will-change: transform;
}

.vignette {
  z-index: 4;
  background:
    radial-gradient(ellipse 74% 68% at 50% 47%, transparent 48%, rgba(2, 7, 13, 0.42) 84%, rgba(1, 5, 10, 0.68) 100%),
    linear-gradient(180deg, rgba(1, 5, 10, 0.36) 0%, transparent 18%, transparent 82%, rgba(1, 5, 10, 0.4) 100%);
  box-shadow: inset 0 0 140px rgba(169, 205, 226, 0.055);
}

#ui {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

/* ── masthead ─────────────────────────────────────────────── */

.masthead {
  position: absolute;
  top: max(28px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 15px;
  width: min(510px, calc(100vw - 64px));
  transform: translateX(-50%);
  opacity: 0;
  animation: soft-in 2.4s 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transition: opacity 2s ease;
}

.masthead-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 184, 133, 0.24));
}

.masthead-line:last-child {
  background: linear-gradient(90deg, rgba(210, 184, 133, 0.24), transparent);
}

.masthead-text,
.masthead-cn {
  color: rgba(229, 214, 182, 0.52);
  font-family: var(--serif-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-cn {
  margin-left: -7px;
  font-family: var(--serif-cn);
  font-weight: 300;
  letter-spacing: 0.32em;
  color: rgba(229, 214, 182, 0.39);
}

.masthead-dot {
  color: rgba(210, 184, 133, 0.42);
  font-family: var(--serif-en);
  font-size: 10px;
  transform: translateY(-1px);
}

/* ── invitation ───────────────────────────────────────────── */

.invite {
  position: absolute;
  top: 67%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  transform: translate(-50%, 0);
  color: rgba(230, 218, 194, 0.5);
  font-family: var(--serif-cn);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  white-space: nowrap;
  opacity: 0;
  animation: invite-in 2.8s 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transition: opacity 1.6s ease, transform 1.6s ease, filter 1.6s ease;
}

.invite span {
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 184, 133, 0.28));
}

.invite span:last-child {
  background: linear-gradient(90deg, rgba(210, 184, 133, 0.28), transparent);
}

.invite.is-hidden {
  opacity: 0 !important;
  transform: translate(-50%, 8px);
  filter: blur(4px);
  animation: none;
}

body.has-hand .invite {
  opacity: 0 !important;
  transform: translate(-50%, 8px);
  animation: none;
}

/* ── HUD ──────────────────────────────────────────────────── */

.hud {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 30px max(24px, env(safe-area-inset-bottom));
}

.gestures {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 2vw, 30px);
  opacity: 0;
  animation: soft-in 2.6s 1.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transition: opacity 1.8s ease, filter 1.8s ease, transform 1.8s ease;
}

.gesture {
  display: flex;
  align-items: center;
  gap: 9px;
}

.glyph {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(207, 180, 129, 0.16);
  border-radius: 50%;
  color: rgba(225, 202, 156, 0.64);
  font-family: var(--serif-cn);
  font-size: 11px;
  font-weight: 300;
  line-height: 1;
  text-indent: 1px;
  transition: border-color 1s ease, color 1s ease, box-shadow 1s ease;
}

.gesture-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gesture-copy b {
  color: rgba(230, 218, 195, 0.57);
  font-family: var(--serif-cn);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.gesture-copy em {
  color: rgba(222, 202, 165, 0.31);
  font-family: var(--serif-en);
  font-size: 8.5px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.gesture-sep {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(210, 184, 133, 0.12), transparent);
}

.camera-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 16px;
  color: rgba(229, 217, 194, 0.46);
  font-family: var(--serif-cn);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-align: center;
  transition: opacity 1.2s ease, color 1.2s ease;
}

.camera-pulse {
  position: relative;
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: rgba(226, 196, 139, 0.65);
  box-shadow: 0 0 8px rgba(231, 195, 130, 0.5);
}

.camera-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(226, 196, 139, 0.2);
  border-radius: 50%;
  animation: pulse-ring 2.6s ease-out infinite;
}

.signature {
  position: absolute;
  right: max(26px, env(safe-area-inset-right));
  bottom: max(23px, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(218, 200, 168, 0.2);
  font-family: var(--serif-en);
  font-size: 8px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.2em;
  white-space: nowrap;
  opacity: 0;
  animation: soft-in 3s 2.8s ease forwards;
}

/* ── gesture echo ─────────────────────────────────────────── */

.gesture.is-live .glyph {
  border-color: rgba(232, 197, 128, 0.52);
  color: rgba(249, 225, 177, 0.94);
  box-shadow: 0 0 22px rgba(219, 178, 98, 0.12), inset 0 0 12px rgba(219, 178, 98, 0.06);
}

.hud.is-quiet .gestures {
  opacity: 0.32;
  filter: blur(0.2px);
}

body.has-hand .gestures {
  opacity: 0.58;
}

body.has-hand .hud.is-quiet .gestures {
  opacity: 0.22;
}

/* ── the message ──────────────────────────────────────────── */

#message {
  position: absolute;
  top: 45.2%;
  left: 50%;
  width: min(920px, calc(100vw - 48px));
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 2.8s ease, visibility 0s linear 2.8s;
}

#message-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 64% 54% at 50% 45%, rgba(2, 8, 15, 0.76) 0%, rgba(2, 8, 15, 0.46) 48%, transparent 78%),
    linear-gradient(180deg, transparent 9%, rgba(2, 7, 13, 0.26) 44%, transparent 84%);
  transition: opacity 3.8s ease 0.6s;
}

body.has-message #message-veil {
  opacity: 1;
}

#message.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 3.2s ease, visibility 0s;
}

.message-kicker {
  margin: 0 0 20px;
  color: rgba(230, 205, 157, 0.86);
  font-family: var(--serif-en);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-indent: 0.42em;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(5px);
  transition: all 2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s;
}

#message.is-visible .message-kicker {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.message-en {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif-en);
  font-size: clamp(42px, 5.7vw, 86px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-shadow:
    0 2px 26px rgba(1, 5, 10, 0.62),
    0 0 32px rgba(236, 205, 150, 0.12),
    0 0 90px rgba(214, 178, 108, 0.08);
}

.message-en .line {
  display: block;
  white-space: nowrap;
}

.message-en .line:last-child {
  color: var(--gold-pale);
  font-style: italic;
  font-weight: 300;
}

.message-en .letter,
.message-en .space {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 1.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 2s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 2.1s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--i) * 55ms + 0.55s);
}

.message-en .space {
  width: 0.24em;
}

#message.is-visible .message-en .letter,
#message.is-visible .message-en .space {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.message-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(330px, 60%);
  margin: 26px auto 20px;
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 2.2s ease 1.8s, transform 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) 1.8s;
}

#message.is-visible .message-rule {
  opacity: 1;
  transform: scaleX(1);
}

.message-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 183, 126, 0.42));
}

.message-rule span:last-child {
  background: linear-gradient(90deg, rgba(212, 183, 126, 0.42), transparent);
}

.message-rule i {
  width: 4px;
  height: 4px;
  border: 1px solid rgba(233, 205, 153, 0.6);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(229, 191, 118, 0.26);
}

.message-cn {
  margin: 0;
  color: rgba(244, 233, 212, 0.96);
  font-family: var(--serif-cn);
  font-size: clamp(10.5px, 1.2vw, 13px);
  text-shadow: 0 1px 14px rgba(2, 7, 12, 0.85);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: all 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) 2.15s;
}

#message.is-visible .message-cn {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

body.has-message .masthead {
  opacity: 0.42;
}

body.has-message .gestures {
  opacity: 0 !important;
  filter: blur(6px);
  transform: translateY(10px);
}

body.has-message .signature {
  opacity: 0;
}

body.has-message .camera-line {
  opacity: 0.22;
}

body.has-message .invite {
  opacity: 0 !important;
}

/* ── states / misc ────────────────────────────────────────── */

body.is-booting .hud,
body.is-booting .masthead,
body.is-booting .invite {
  animation-play-state: paused;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--ink);
  font-family: var(--serif-cn);
  font-size: 13px;
  letter-spacing: 0.3em;
}

@keyframes soft-in {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes invite-in {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translate(-50%, 7px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  24% {
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  12% {
    transform: translate(-2%, 1%);
  }
  24% {
    transform: translate(1%, -2%);
  }
  36% {
    transform: translate(-1%, 2%);
  }
  48% {
    transform: translate(2%, 0);
  }
  60% {
    transform: translate(0, -1%);
  }
  72% {
    transform: translate(-2%, -1%);
  }
  84% {
    transform: translate(1%, 2%);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes atmosphere-breathe {
  from {
    opacity: 0.82;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.035);
  }
}

@media (max-width: 760px) {
  .masthead {
    top: max(22px, env(safe-area-inset-top));
  }

  .invite {
    top: 66%;
    font-size: 10px;
    letter-spacing: 0.38em;
  }

  .hud {
    gap: 17px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .gestures {
    gap: 13px;
    flex-wrap: wrap;
    max-width: 92vw;
  }

  .gesture {
    gap: 6px;
  }

  .glyph {
    width: 23px;
    height: 23px;
    font-size: 9.5px;
  }

  .gesture-copy b {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .gesture-copy em {
    display: none;
  }

  .gesture-sep {
    height: 13px;
  }

  .signature {
    display: none;
  }

  #message {
    top: 44%;
    width: calc(100vw - 32px);
  }

  .message-kicker {
    font-size: 7.5px;
    letter-spacing: 0.26em;
    margin-bottom: 16px;
  }

  .message-en {
    font-size: clamp(35px, 10.6vw, 56px);
  }

  .message-en .line {
    white-space: normal;
  }

  .message-en .line:last-child {
    white-space: nowrap;
  }

  .message-rule {
    margin: 22px auto 17px;
  }

  .message-cn {
    font-size: 9.5px;
    letter-spacing: 0.3em;
  }

  .camera-line {
    font-size: 8.5px;
    letter-spacing: 0.17em;
    max-width: 88vw;
  }
}

@media (max-width: 390px) {
  .gesture-copy b {
    font-size: 8px;
  }

  .gestures {
    gap: 9px;
  }

  .gesture-sep {
    display: none;
  }

  .message-en {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain,
  .atmosphere {
    animation: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  body {
    cursor: default;
  }
}

/* ── camera retry + diagnostics ───────────────────────────── */

body.needs-camera {
  cursor: pointer;
}

body.needs-camera .invite,
body.has-hand.needs-camera .invite {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: translate(-50%, 0) !important;
  animation: retry-breathe 3.4s ease-in-out infinite !important;
  color: rgba(242, 220, 177, 0.78);
}

body.needs-camera .invite span {
  background: linear-gradient(90deg, transparent, rgba(232, 195, 127, 0.58));
}

body.needs-camera .invite span:last-child {
  background: linear-gradient(90deg, rgba(232, 195, 127, 0.58), transparent);
}

body.needs-camera .camera-line {
  color: rgba(240, 219, 179, 0.73);
  opacity: 1 !important;
}

#debug-panel {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  max-width: min(430px, calc(100vw - 24px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(203, 174, 120, 0.19);
  border-radius: 3px;
  background: rgba(2, 8, 15, 0.74);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.23);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  color: rgba(234, 221, 192, 0.76);
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 9.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  pointer-events: none;
}

@keyframes retry-breathe {
  0%,
  100% {
    opacity: 0.72;
    filter: blur(0);
  }
  50% {
    opacity: 1;
    filter: blur(0) brightness(1.12);
  }
}

/* ── camera permission help ───────────────────────────────── */

.permission-help {
  position: absolute;
  top: 61%;
  left: 50%;
  z-index: 3;
  width: min(600px, calc(100vw - 48px));
  transform: translate(-50%, 8px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.6s ease, visibility 0s linear 1.6s, transform 1.6s ease;
}

body.show-permission-help .permission-help {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 1.6s ease, visibility 0s, transform 1.6s ease;
}

body.show-permission-help .invite {
  opacity: 0 !important;
  animation: none !important;
}

.permission-eyebrow {
  margin: 0 0 12px;
  color: rgba(225, 194, 134, 0.66);
  font-family: var(--serif-en);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
}

.permission-title {
  margin: 0 0 12px;
  color: rgba(245, 229, 199, 0.9);
  font-family: var(--serif-cn);
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-shadow: 0 2px 24px rgba(0, 5, 10, 0.7);
}

.permission-browser {
  margin: 0 0 10px;
  color: rgba(226, 200, 150, 0.78);
  font-family: var(--serif-en);
  font-size: 8.5px;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
}

.permission-body {
  margin: 0 auto;
  max-width: 570px;
  color: rgba(238, 225, 201, 0.84);
  font-family: var(--serif-cn);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.permission-sub {
  margin: 13px 0 0;
  color: rgba(237, 216, 174, 0.7);
  font-family: var(--serif-cn);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.permission-system {
  margin: 8px 0 0;
  color: rgba(218, 207, 186, 0.46);
  font-family: var(--serif-cn);
  font-size: 8.5px;
  font-weight: 300;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .permission-help {
    top: 60%;
    width: calc(100vw - 40px);
  }

  .permission-title {
    font-size: 17px;
  }

  .permission-body {
    font-size: 10px;
    line-height: 1.85;
  }

  .permission-sub {
    font-size: 8.5px;
  }

  .permission-system {
    font-size: 7.5px;
    line-height: 1.7;
  }
}

/* ── 立冬 edition ────────────────────────────────────────── */

.masthead-season {
  margin-left: -7px;
  color: rgba(225, 198, 146, 0.58);
}

.winter-seal {
  position: absolute;
  top: 102px;
  left: max(36px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 38px;
  padding: 9px 4px 7px;
  border: 1px solid rgba(211, 183, 129, 0.3);
  color: rgba(236, 215, 176, 0.76);
  opacity: 0;
  animation: seal-in 3s 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.winter-seal::before,
.winter-seal::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(211, 183, 129, 0.24));
  transform: translateX(-50%);
}

.winter-seal::before {
  bottom: 100%;
}

.winter-seal::after {
  top: 100%;
  background: linear-gradient(180deg, rgba(211, 183, 129, 0.24), transparent);
}

.winter-seal-cn {
  width: 1.05em;
  font-family: var(--serif-cn);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: center;
  text-indent: 0;
}

.winter-seal-initials {
  color: rgba(235, 211, 171, 0.68);
  font-family: var(--serif-en);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1;
}

.winter-seal-date {
  color: rgba(211, 183, 129, 0.44);
  font-family: var(--serif-en);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
}

.message-season {
  margin: 14px 0 0;
  color: rgba(233, 209, 167, 0.82);
  font-family: var(--serif-cn);
  font-size: 10px;
  text-shadow: 0 1px 12px rgba(2, 7, 12, 0.85);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(7px);
  transition: all 2.3s cubic-bezier(0.22, 0.61, 0.36, 1) 2.8s;
}

#message.is-visible .message-season {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.message-dedication {
  margin: 10px 0 0;
  color: rgba(235, 209, 164, 0.74);
  font-family: var(--serif-en);
  font-size: 11px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(6px);
  transition: all 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) 3.45s;
}

#message.is-visible .message-dedication {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.message-dedication span {
  font-style: normal;
  letter-spacing: 0.3em;
}

@keyframes seal-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .winter-seal {
    top: 76px;
    left: max(22px, env(safe-area-inset-left));
    width: 32px;
    padding: 7px 3px 6px;
    gap: 6px;
  }

  .winter-seal-cn {
    font-size: 11px;
  }

  .winter-seal-initials {
    font-size: 6px;
  }

  .winter-seal-date {
    font-size: 6.5px;
  }

  .winter-seal::before,
  .winter-seal::after {
    height: 12px;
  }

  .message-season {
    margin-top: 11px;
    font-size: 8.5px;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
  }

  .message-dedication {
    margin-top: 8px;
    font-size: 9.5px;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }
}

@media (max-width: 420px) {
  .invite {
    font-size: 9.5px;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }

  .invite span {
    width: 18px;
  }
}

@media (max-width: 360px) {
  .gestures {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 10px 22px;
  }

  .gesture {
    justify-content: flex-start;
  }

  .hud {
    gap: 15px;
  }
}
