:root {
  --bg-dark: #160d0c;
  --bg-panel: rgba(58, 32, 24, 0.68);
  --bg-panel-strong: rgba(94, 46, 31, 0.8);
  --paper: #dfceb1;
  --paper-soft: rgba(223, 206, 177, 0.8);
  --accent: #9f3427;
  --accent-bright: #cb6544;
  --copper: #8f6840;
  --night-indigo: #241625;
  --night-plum: #43202b;
  --shadow: rgba(0, 0, 0, 0.45);
  --line: rgba(223, 206, 177, 0.16);
  --headline: "STKaiti", "Kaiti SC", "STSong", "Songti SC", "Noto Serif SC",
    "Source Han Serif SC", serif;
  --display: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #150c0b;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--paper);
  font-family: var(--body);
  background:
    radial-gradient(circle at 72% 18%, rgba(233, 173, 89, 0.12), transparent 18%),
    radial-gradient(circle at top, rgba(194, 85, 48, 0.18), transparent 34%),
    radial-gradient(circle at 15% 20%, rgba(144, 49, 34, 0.2), transparent 30%),
    linear-gradient(180deg, #2a1411 0%, #150c0b 48%, #110908 100%);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(232, 212, 175, 0.03), rgba(232, 212, 175, 0.03)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 2px,
      transparent 2px,
      transparent 5px
    );
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 14%, rgba(243, 190, 112, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(49, 24, 21, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(13, 8, 8, 0) 0%, rgba(15, 9, 8, 0.18) 54%, rgba(15, 9, 8, 0.34) 100%);
}

.ember-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.scene-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scene-sky-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 10%, rgba(255, 206, 122, 0.14), transparent 16%),
    radial-gradient(circle at 74% 26%, rgba(176, 58, 40, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(77, 31, 33, 0.2) 0%, rgba(17, 10, 10, 0.06) 36%, rgba(10, 6, 6, 0.3) 100%);
}

.scene-belt {
  position: absolute;
  inset-inline: 0;
}

.scene-belt-top {
  top: 0;
  height: 54rem;
}

.scene-belt-middle {
  top: 36%;
  height: 24rem;
}

.scene-belt-lower {
  top: 68%;
  height: 24rem;
}

.scene-ridge,
.scene-market {
  position: absolute;
  inset-inline: 0;
}

.scene-ridge {
  height: 8rem;
  background:
    linear-gradient(180deg, rgba(70, 28, 23, 0.16), rgba(17, 10, 9, 0.78)),
    linear-gradient(90deg, rgba(234, 183, 105, 0.08), transparent 30%);
  clip-path: polygon(0 100%, 8% 66%, 17% 74%, 28% 42%, 38% 58%, 49% 28%, 58% 54%, 69% 38%, 82% 62%, 92% 44%, 100% 100%);
  opacity: 0.44;
}

.ridge-a {
  bottom: 7.5rem;
}

.ridge-b {
  bottom: 3rem;
  opacity: 0.32;
}

.ridge-c {
  bottom: 0;
  opacity: 0.22;
}

.ridge-d {
  bottom: 5rem;
  opacity: 0.3;
}

.ridge-e {
  bottom: 0;
  opacity: 0.2;
}

.scene-market {
  height: 10rem;
  background:
    radial-gradient(circle at 16% 68%, rgba(241, 188, 109, 0.18), transparent 10%),
    radial-gradient(circle at 29% 52%, rgba(241, 188, 109, 0.12), transparent 8%),
    radial-gradient(circle at 44% 72%, rgba(241, 188, 109, 0.16), transparent 9%),
    radial-gradient(circle at 61% 58%, rgba(241, 188, 109, 0.15), transparent 10%),
    radial-gradient(circle at 76% 70%, rgba(241, 188, 109, 0.16), transparent 10%),
    radial-gradient(circle at 89% 52%, rgba(241, 188, 109, 0.14), transparent 8%);
  filter: blur(12px);
}

.haze-a {
  bottom: 0;
  opacity: 0.42;
}

.haze-b {
  bottom: 5.5rem;
  opacity: 0.28;
}

.haze-c {
  bottom: 0;
  opacity: 0.22;
}

.ember {
  position: absolute;
  bottom: -4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 225, 170, 0.95) 0 28%, rgba(216, 96, 48, 0.72) 48%, transparent 72%);
  filter: blur(0.4px);
  opacity: 0;
  animation: emberRise 10s linear infinite;
}

.ember-1 {
  left: 10%;
  animation-delay: 0s;
}

.ember-2 {
  left: 24%;
  width: 0.5rem;
  height: 0.5rem;
  animation-delay: 1.4s;
}

.ember-3 {
  left: 44%;
  width: 0.9rem;
  height: 0.9rem;
  animation-delay: 2.8s;
}

.ember-4 {
  left: 66%;
  animation-delay: 0.9s;
}

.ember-5 {
  left: 80%;
  width: 0.55rem;
  height: 0.55rem;
  animation-delay: 4.2s;
}

.ember-6 {
  left: 91%;
  width: 0.8rem;
  height: 0.8rem;
  animation-delay: 5.6s;
}

.texture {
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(22px);
  pointer-events: none;
  opacity: 0.25;
}

.texture-top {
  top: -10rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(208, 100, 60, 0.52), transparent 68%);
}

.texture-bottom {
  bottom: 3rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(160, 58, 35, 0.38), transparent 70%);
}

.rewards,
.annotations,
.final-call {
  width: min(1120px, calc(100vw - 2.5rem - var(--safe-left) - var(--safe-right)));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.rewards::before,
.annotations::before,
.final-call::before,
.rewards::after,
.annotations::after,
.final-call::after {
  content: "";
  position: absolute;
  inset-inline: -8%;
  pointer-events: none;
}

.rewards::before {
  top: -2.2rem;
  height: 12rem;
  background:
    radial-gradient(circle at 18% 70%, rgba(241, 188, 109, 0.16), transparent 10%),
    radial-gradient(circle at 38% 62%, rgba(241, 188, 109, 0.12), transparent 8%),
    radial-gradient(circle at 60% 70%, rgba(241, 188, 109, 0.14), transparent 10%),
    radial-gradient(circle at 82% 60%, rgba(241, 188, 109, 0.12), transparent 8%),
    linear-gradient(180deg, rgba(83, 32, 24, 0.14), rgba(16, 9, 8, 0));
  filter: blur(10px);
  opacity: 0.8;
}

.rewards::after {
  top: 1.5rem;
  height: 9.5rem;
  background:
    linear-gradient(180deg, rgba(62, 24, 20, 0.08), rgba(15, 9, 8, 0.62)),
    linear-gradient(90deg, rgba(230, 177, 97, 0.08), transparent 26%);
  clip-path: polygon(0 100%, 6% 62%, 15% 70%, 24% 38%, 33% 58%, 46% 28%, 57% 54%, 68% 34%, 80% 60%, 91% 42%, 100% 100%);
  opacity: 0.38;
}

.annotations::before {
  top: -1rem;
  height: 10rem;
  background:
    radial-gradient(circle at 14% 72%, rgba(241, 188, 109, 0.1), transparent 9%),
    radial-gradient(circle at 49% 60%, rgba(241, 188, 109, 0.08), transparent 8%),
    radial-gradient(circle at 76% 74%, rgba(241, 188, 109, 0.1), transparent 10%);
  filter: blur(12px);
  opacity: 0.55;
}

.annotations::after {
  bottom: -0.8rem;
  height: 8rem;
  background:
    linear-gradient(180deg, rgba(54, 21, 18, 0.06), rgba(12, 7, 7, 0.54)),
    linear-gradient(90deg, rgba(236, 183, 105, 0.05), transparent 34%);
  clip-path: polygon(0 100%, 8% 58%, 18% 72%, 29% 40%, 40% 56%, 51% 26%, 61% 48%, 73% 36%, 84% 58%, 92% 44%, 100% 100%);
  opacity: 0.28;
}

.final-call::before {
  top: -0.4rem;
  height: 12rem;
  background:
    radial-gradient(circle at 24% 68%, rgba(241, 188, 109, 0.16), transparent 12%),
    radial-gradient(circle at 50% 56%, rgba(241, 188, 109, 0.12), transparent 10%),
    radial-gradient(circle at 76% 68%, rgba(241, 188, 109, 0.16), transparent 12%);
  filter: blur(14px);
  opacity: 0.72;
}

.final-call::after {
  bottom: 2.2rem;
  height: 10rem;
  background:
    linear-gradient(180deg, rgba(70, 26, 21, 0.12), rgba(13, 8, 8, 0.72)),
    linear-gradient(90deg, rgba(238, 184, 104, 0.08), transparent 28%);
  clip-path: polygon(0 100%, 6% 54%, 16% 66%, 27% 34%, 37% 52%, 48% 24%, 59% 44%, 71% 32%, 82% 56%, 92% 40%, 100% 100%);
  opacity: 0.34;
}

.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  padding: 0;
  overflow: hidden;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 10, 9, 0.96) 0%, rgba(18, 10, 9, 0.88) 26%, rgba(18, 10, 9, 0.5) 54%, rgba(18, 10, 9, 0.14) 100%),
    linear-gradient(180deg, rgba(70, 27, 22, 0.34) 0%, rgba(17, 10, 9, 0.08) 38%, rgba(10, 6, 5, 0.74) 100%);
  z-index: 1;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100vw - 2rem - var(--safe-left) - var(--safe-right)));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: clamp(2.8rem, 5vw, 6rem);
  padding:
    calc(clamp(2.4rem, 5vw, 4rem) + var(--safe-top))
    0
    calc(3.4rem + var(--safe-bottom));
}

.hero-copy {
  position: relative;
  z-index: 2;
  transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0);
  transition: transform 220ms ease-out;
  padding: clamp(1.4rem, 2.4vw, 2.8rem) 0 1.2rem 1.2rem;
  max-width: 31.5rem;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(248, 224, 185, 0), rgba(248, 224, 185, 0.36) 18%, rgba(201, 96, 60, 0.42) 56%, rgba(248, 224, 185, 0.08) 100%);
  box-shadow: 0 0 18px rgba(205, 118, 74, 0.1);
}

.eyebrow,
.sub-eyebrow,
.section-kicker,
.reward-status,
.annotation-mark {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--display);
}

.eyebrow {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
  color: var(--paper-soft);
  font-size: 0.8rem;
}

.eyebrow span,
.sub-eyebrow,
.section-kicker,
.reward-status,
.annotation-mark {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(234, 213, 171, 0.16);
  background: rgba(37, 17, 13, 0.34);
  backdrop-filter: blur(8px);
}

.sub-eyebrow {
  display: inline-flex;
  margin: 0;
  color: rgba(232, 211, 175, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.section-ornament {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.hero-ornament {
  margin-top: 0.9rem;
}

.ornament-line {
  position: relative;
  display: block;
  width: 4.5rem;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(244, 220, 174, 0), rgba(244, 220, 174, 0.42) 50%, rgba(201, 96, 60, 0.18) 100%);
}

.ornament-line::before,
.ornament-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid rgba(244, 220, 174, 0.28);
  transform: translateY(-50%) rotate(45deg);
}

.ornament-line::before {
  left: 0.35rem;
}

.ornament-line::after {
  right: 0.35rem;
}

.mini-seal {
  display: inline-grid;
  place-items: center;
  font-family: var(--headline);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mini-seal {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.26rem;
  border-radius: 0.22rem;
  background:
    linear-gradient(135deg, rgba(255, 211, 176, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(153, 50, 36, 0.9), rgba(95, 23, 19, 0.94));
  color: #f4dcc0;
  font-size: 0.82rem;
  border: 1px solid rgba(248, 223, 190, 0.12);
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(248, 223, 190, 0.05);
}

h1,
h2 {
  font-family: var(--headline);
  font-weight: 600;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3.7rem, 8.4vw, 7rem);
  margin-top: 1rem;
  max-width: 6ch;
  text-wrap: balance;
  background: linear-gradient(
    110deg,
    rgba(242, 223, 195, 0.9) 0%,
    rgba(255, 243, 219, 1) 25%,
    rgba(222, 177, 129, 0.88) 42%,
    rgba(243, 228, 200, 0.96) 58%,
    rgba(242, 223, 195, 0.9) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(205, 118, 74, 0.08);
  letter-spacing: 0.08em;
  line-height: 0.9;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-top: 0.9rem;
  max-width: 9ch;
}

.hero-summary,
.section-heading p,
.reward-copy,
.annotation-card p,
.callout-frame p {
  color: rgba(235, 218, 192, 0.78);
  line-height: 1.74;
  font-size: 1.01rem;
}

.hero-summary {
  max-width: 29rem;
  margin: 1.3rem 0 0;
  font-size: 1rem;
  color: rgba(235, 218, 192, 0.8);
}

.hero-summary strong,
.annotation-card strong {
  color: var(--paper);
}

.countdown-panel,
.callout-frame,
.reward-scroll,
.annotation-card {
  position: relative;
  border: 1px solid rgba(223, 206, 177, 0.16);
  background:
    linear-gradient(135deg, rgba(242, 193, 112, 0.05), transparent 18%, transparent 82%, rgba(242, 193, 112, 0.04)),
    linear-gradient(180deg, rgba(91, 41, 27, 0.22), rgba(34, 16, 12, 0.7)),
    rgba(49, 26, 20, 0.56);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.countdown-panel::before,
.callout-frame::before,
.reward-scroll::before,
.annotation-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(223, 206, 177, 0.08);
  background:
    radial-gradient(circle at top left, rgba(242, 193, 112, 0.06), transparent 16%),
    radial-gradient(circle at top right, rgba(242, 193, 112, 0.06), transparent 16%),
    radial-gradient(circle at bottom left, rgba(242, 193, 112, 0.04), transparent 16%),
    radial-gradient(circle at bottom right, rgba(242, 193, 112, 0.04), transparent 16%);
  pointer-events: none;
}

.countdown-panel {
  margin-top: 2rem;
  padding: 1.35rem 1.45rem 1.25rem;
  max-width: 29rem;
  background:
    radial-gradient(circle at top right, rgba(242, 193, 112, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(90, 40, 27, 0.24), rgba(25, 13, 11, 0.74)),
    rgba(41, 22, 17, 0.58);
  backdrop-filter: blur(10px);
}

.countdown-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.45rem;
  right: 1.45rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 214, 165, 0.42), transparent);
}

.countdown-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.15rem;
}

.countdown-head p {
  margin: 0;
}

.countdown-head #countdown-title {
  font-family: var(--headline);
  font-size: 1.2rem;
  color: rgba(245, 229, 206, 0.94);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.time-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 0.7rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(152, 62, 36, 0.28), rgba(30, 14, 10, 0.42)),
    rgba(36, 16, 12, 0.52);
  border: 1px solid rgba(223, 206, 177, 0.12);
  text-align: center;
  min-height: 7rem;
}

.time-value {
  font-family: var(--headline);
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #f2dfc3;
  text-shadow: 0 0 24px rgba(204, 106, 70, 0.24);
  transition:
    transform 220ms ease,
    text-shadow 220ms ease,
    color 220ms ease;
}

.time-label {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 211, 175, 0.66);
}

.countdown-note {
  margin: 1.05rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(236, 216, 185, 0.7);
}

.cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.ritual-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(223, 206, 177, 0.12);
  max-width: 30rem;
}

.ritual-item {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(112, 44, 29, 0.18), rgba(26, 12, 10, 0.5)),
    rgba(22, 10, 8, 0.44);
  border: 1px solid rgba(223, 206, 177, 0.12);
}

.ritual-label,
.ritual-value {
  display: block;
}

.ritual-label {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 211, 175, 0.58);
}

.ritual-value {
  font-family: var(--headline);
  font-size: 0.98rem;
  color: rgba(244, 230, 208, 0.92);
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.55rem;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  min-width: 12rem;
}

.cta-primary {
  background:
    linear-gradient(180deg, rgba(224, 118, 73, 0.96), rgba(145, 44, 30, 0.98)),
    linear-gradient(90deg, rgba(255, 224, 179, 0.16), transparent);
  border: 1px solid rgba(232, 211, 175, 0.24);
  box-shadow: 0 10px 24px rgba(95, 27, 18, 0.32);
}

.cta-secondary {
  border: 1px solid rgba(223, 206, 177, 0.18);
  background:
    linear-gradient(180deg, rgba(67, 31, 24, 0.58), rgba(28, 14, 11, 0.62)),
    rgba(38, 18, 13, 0.48);
}

.cta-primary:hover,
.cta-secondary:hover,
.reward-scroll:hover {
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  min-height: 46rem;
  display: grid;
  place-items: center;
  transform: translate3d(var(--art-shift-x, 0px), var(--art-shift-y, 0px), 0);
  transition: transform 260ms ease-out;
  align-self: stretch;
  padding-right: 1.4rem;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 4% -8% 0 2%;
  background:
    radial-gradient(circle at 58% 18%, rgba(243, 190, 112, 0.1), transparent 16%),
    radial-gradient(circle at 52% 42%, rgba(171, 59, 36, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(57, 23, 29, 0.26), rgba(17, 11, 10, 0.05) 42%, rgba(15, 9, 8, 0.46) 100%);
  border-radius: 2.4rem 0 0 2.4rem;
  pointer-events: none;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(243, 198, 122, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(10, 6, 5, 0) 0%, rgba(10, 6, 5, 0.1) 58%, rgba(10, 6, 5, 0.42) 100%);
  pointer-events: none;
}

.view-frame,
.lattice-screen,
.balcony-rail,
.case-plinth {
  position: absolute;
}

.view-frame {
  top: 0;
  bottom: 0;
  width: 2.8rem;
  background:
    linear-gradient(180deg, rgba(90, 48, 30, 0.94), rgba(34, 17, 12, 0.98)),
    linear-gradient(90deg, rgba(244, 220, 174, 0.08), transparent 42%);
  box-shadow:
    inset 0 0 0 1px rgba(244, 220, 174, 0.05),
    0 0 28px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.view-frame::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 16%;
  bottom: 16%;
  background:
    linear-gradient(180deg, transparent, rgba(18, 9, 8, 0.28), transparent),
    repeating-linear-gradient(
      180deg,
      rgba(245, 220, 174, 0.08) 0 0.16rem,
      transparent 0.16rem 4.4rem
    );
  opacity: 0.56;
}

.frame-left {
  left: -0.2rem;
}

.frame-right {
  right: -0.2rem;
}

.lattice-screen {
  top: 7%;
  bottom: 12%;
  width: 8.8rem;
  background:
    linear-gradient(180deg, rgba(28, 14, 11, 0.38), rgba(8, 5, 4, 0.78)),
    repeating-linear-gradient(
      90deg,
      rgba(238, 209, 161, 0.08) 0 0.24rem,
      transparent 0.24rem 2.6rem
    ),
    repeating-linear-gradient(
      180deg,
      rgba(238, 209, 161, 0.08) 0 0.22rem,
      transparent 0.22rem 2.4rem
    );
  opacity: 0.4;
  filter: blur(0.2px);
  z-index: 1;
}

.lattice-left {
  left: 2.2rem;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.lattice-right {
  right: 2.2rem;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.balcony-rail {
  left: 4%;
  right: 4%;
  bottom: 2.2rem;
  height: 4.8rem;
  background:
    linear-gradient(180deg, rgba(82, 40, 27, 0.26), rgba(12, 7, 7, 0.88)),
    linear-gradient(90deg, rgba(237, 197, 131, 0.08), transparent 24%);
  border-top: 1px solid rgba(244, 220, 174, 0.08);
  clip-path: polygon(0 100%, 3% 62%, 10% 70%, 16% 42%, 23% 58%, 31% 30%, 39% 55%, 48% 28%, 58% 54%, 69% 34%, 79% 58%, 88% 40%, 95% 64%, 100% 100%);
  opacity: 0.76;
  z-index: 2;
}

.balcony-rail::before {
  content: "";
  position: absolute;
  inset-inline: 3%;
  top: -0.5rem;
  height: 0.8rem;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(91, 43, 29, 0.98) 0 1.1rem,
      transparent 1.1rem 1.6rem
    );
  opacity: 0.8;
}

.case-plinth {
  bottom: 4.2rem;
  width: min(66vw, 27rem);
  height: 5.2rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 40%, rgba(72, 35, 24, 0.62), rgba(12, 7, 7, 0.1) 68%, transparent 74%);
  filter: blur(10px);
  z-index: 3;
}

.moon-disc,
.moon-haze,
.star-field,
.city-layer,
.lantern-cluster,
.market-ribbon,
.market-lights,
.imperial-axis,
.banner-stream,
.city-wall,
.lamp-river,
.lantern-procession {
  position: absolute;
}

.moon-disc {
  top: 7%;
  right: 17%;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 248, 226, 0.94), rgba(248, 210, 155, 0.72) 48%, rgba(251, 193, 112, 0.18) 72%, transparent 76%);
  box-shadow: 0 0 60px rgba(245, 186, 93, 0.18);
  opacity: 0.92;
}

.moon-haze {
  top: 4%;
  right: 10%;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 188, 106, 0.18), transparent 62%);
  filter: blur(16px);
}

.star-field {
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  display: block;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: rgba(255, 241, 211, 0.92);
  box-shadow: 0 0 12px rgba(255, 223, 170, 0.22);
  animation: starTwinkle 4.8s ease-in-out infinite;
}

.star-a {
  top: 10%;
  left: 44%;
}

.star-b {
  top: 18%;
  left: 58%;
  animation-delay: 0.9s;
}

.star-c {
  top: 12%;
  right: 24%;
  width: 0.26rem;
  height: 0.26rem;
  animation-delay: 1.7s;
}

.star-d {
  top: 24%;
  right: 18%;
  animation-delay: 2.1s;
}

.star-e {
  top: 16%;
  right: 10%;
  width: 0.24rem;
  height: 0.24rem;
  animation-delay: 2.8s;
}

.city-layer {
  inset-inline: 0;
  pointer-events: none;
}

.city-far {
  bottom: 24%;
  height: 12rem;
  opacity: 0.74;
  filter: blur(1.4px);
}

.city-mid {
  bottom: 16%;
  height: 14rem;
  opacity: 0.88;
  filter: blur(0.55px);
}

.city-front {
  bottom: 5%;
  height: 13rem;
  opacity: 0.98;
}

.market-ribbon {
  left: 12%;
  right: 4%;
  bottom: 9%;
  height: 6rem;
  pointer-events: none;
}

.market-line {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  height: 0.26rem;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 198, 103, 0) 0%,
      rgba(255, 198, 103, 0.52) 10%,
      rgba(255, 198, 103, 0.14) 18%,
      rgba(255, 198, 103, 0.48) 30%,
      rgba(255, 198, 103, 0.12) 45%,
      rgba(255, 198, 103, 0.58) 58%,
      rgba(255, 198, 103, 0.16) 72%,
      rgba(255, 198, 103, 0.52) 84%,
      rgba(255, 198, 103, 0) 100%
    );
  filter: blur(0.2px);
  opacity: 0.9;
}

.market-line-a {
  bottom: 2.6rem;
  transform: skewX(-14deg);
}

.market-line-b {
  bottom: 1.5rem;
  transform: skewX(-10deg) scaleX(0.9);
  opacity: 0.7;
}

.market-line-c {
  bottom: 0.5rem;
  transform: skewX(-8deg) scaleX(0.82);
  opacity: 0.5;
}

.market-lights {
  left: 14%;
  right: 8%;
  bottom: 7%;
  height: 9rem;
  pointer-events: none;
}

.market-light {
  position: absolute;
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 186, 0.95), rgba(255, 171, 82, 0.44) 58%, transparent 72%);
  filter: blur(0.4px);
  animation: marketFlicker 3.8s ease-in-out infinite;
}

.light-a {
  left: 4%;
  bottom: 0.9rem;
}

.light-b {
  left: 17%;
  bottom: 1.8rem;
  animation-delay: 0.6s;
}

.light-c {
  left: 31%;
  bottom: 2.3rem;
  animation-delay: 1.2s;
}

.light-d {
  left: 46%;
  bottom: 3rem;
  animation-delay: 0.3s;
}

.light-e {
  left: 58%;
  bottom: 2rem;
  animation-delay: 1.4s;
}

.light-f {
  left: 70%;
  bottom: 2.8rem;
  animation-delay: 2s;
}

.light-g {
  left: 81%;
  bottom: 1.4rem;
  animation-delay: 0.8s;
}

.light-h {
  left: 92%;
  bottom: 0.8rem;
  animation-delay: 1.8s;
}

.imperial-axis {
  left: 17%;
  right: 17%;
  bottom: 13%;
  height: 13rem;
  opacity: 0.88;
}

.watch-post {
  position: absolute;
  bottom: 0.4rem;
  width: 3.5rem;
  height: 10.2rem;
  background:
    linear-gradient(180deg, rgba(56, 22, 20, 0.48), rgba(12, 7, 7, 0.96)),
    linear-gradient(90deg, rgba(232, 179, 99, 0.08), transparent 40%);
}

.watch-post::before,
.watch-post::after {
  content: "";
  position: absolute;
}

.watch-post::before {
  left: 50%;
  top: -1.7rem;
  width: 138%;
  height: 1.9rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(128, 54, 40, 0.92), rgba(37, 17, 16, 0.98));
  clip-path: polygon(2% 100%, 14% 24%, 50% 0, 86% 24%, 98% 100%);
}

.watch-post::after {
  inset: 16% 24% 10%;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(240, 188, 109, 0.14) 0 0.45rem,
      transparent 0.45rem 1.1rem
    );
  opacity: 0.68;
}

.watch-post-left {
  left: 0;
}

.watch-post-right {
  right: 0;
}

.gate {
  position: absolute;
  bottom: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(63, 25, 22, 0.52), rgba(17, 9, 9, 0.96)),
    linear-gradient(90deg, rgba(232, 179, 99, 0.12), transparent 42%);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
}

.gate::before,
.gate::after {
  content: "";
  position: absolute;
}

.gate::before {
  left: 50%;
  top: -2.1rem;
  width: 124%;
  height: 2.35rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(141, 61, 45, 0.94), rgba(45, 20, 18, 0.98));
  clip-path: polygon(0 100%, 10% 24%, 50% 0, 90% 24%, 100% 100%);
}

.gate::after {
  inset: 16% 12% 10%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(238, 188, 111, 0.16) 0 0.95rem,
      transparent 0.95rem 1.95rem
    ),
    repeating-linear-gradient(
      180deg,
      rgba(238, 188, 111, 0.12) 0 0.5rem,
      transparent 0.5rem 1.25rem
    );
  opacity: 0.72;
}

.gate-left {
  left: 7%;
  width: 8rem;
  height: 9.5rem;
}

.gate-center {
  left: 50%;
  width: 14rem;
  height: 12.4rem;
  transform: translateX(-50%);
}

.gate-right {
  right: 7%;
  width: 8rem;
  height: 9.5rem;
}

.brazier {
  position: absolute;
  bottom: 0.6rem;
  width: 2.4rem;
  height: 2.1rem;
  border-radius: 0.35rem 0.35rem 0.5rem 0.5rem;
  background:
    linear-gradient(180deg, rgba(112, 64, 34, 0.92), rgba(52, 27, 18, 0.98)),
    linear-gradient(90deg, rgba(245, 220, 170, 0.08), transparent);
  box-shadow:
    0 0 0 1px rgba(245, 220, 170, 0.06) inset,
    0 0 18px rgba(194, 76, 46, 0.1);
}

.brazier::before,
.brazier::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.brazier::before {
  bottom: 1.3rem;
  width: 1.45rem;
  height: 2.4rem;
  background: radial-gradient(circle at 50% 78%, rgba(255, 205, 126, 0.98), rgba(210, 82, 40, 0.88) 54%, transparent 76%);
  filter: blur(0.9px);
  animation: torchFlicker 2.8s ease-in-out infinite;
}

.brazier::after {
  bottom: 0.9rem;
  width: 6.5rem;
  height: 6.5rem;
  background: radial-gradient(circle, rgba(215, 104, 57, 0.24), transparent 64%);
  filter: blur(14px);
  animation: torchGlowPulse 3.4s ease-in-out infinite;
}

.brazier-left {
  left: 20%;
}

.brazier-right {
  right: 20%;
}

.banner-stream {
  inset-inline: 8%;
  bottom: 24%;
  height: 8rem;
  opacity: 0.78;
}

.banner {
  position: absolute;
  top: 0;
  display: block;
  width: 0.85rem;
  height: 5rem;
  background: linear-gradient(180deg, rgba(198, 71, 47, 0.96), rgba(102, 25, 22, 0.96));
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
  box-shadow:
    0 0 18px rgba(216, 97, 61, 0.18),
    inset 0 0 0 1px rgba(247, 215, 173, 0.08);
  animation: bannerSway 5.8s ease-in-out infinite;
}

.banner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2.6rem;
  width: 1px;
  height: 2.6rem;
  transform: translateX(-50%);
  background: rgba(230, 197, 145, 0.36);
}

.banner-a {
  left: 10%;
}

.banner-b {
  left: 28%;
  height: 5.8rem;
  animation-delay: 0.8s;
}

.banner-c {
  left: 49%;
  height: 6.4rem;
  animation-delay: 1.5s;
}

.banner-d {
  left: 68%;
  height: 5.4rem;
  animation-delay: 0.4s;
}

.banner-e {
  left: 86%;
  animation-delay: 1.2s;
}

.city-wall {
  inset-inline: 4%;
  height: 5.5rem;
  border-top: 1px solid rgba(240, 202, 147, 0.1);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(228, 184, 109, 0.1) 0 0.9rem,
      rgba(22, 12, 11, 0.08) 0.9rem 1.55rem
    ),
    linear-gradient(180deg, rgba(74, 29, 25, 0.18), rgba(11, 7, 7, 0.84));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.city-wall::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -0.9rem;
  height: 1rem;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(84, 33, 27, 0.96) 0 1.3rem,
      transparent 1.3rem 1.8rem
    );
}

.wall-middle {
  bottom: 4.2rem;
  opacity: 0.34;
}

.wall-lower {
  bottom: 6rem;
  opacity: 0.26;
}

.city-wall::after {
  content: "";
  position: absolute;
  inset-inline: 8%;
  bottom: 0.95rem;
  height: 0.12rem;
  background: linear-gradient(90deg, transparent, rgba(241, 195, 118, 0.32), transparent);
}

.lantern-procession {
  inset-inline: 10%;
  height: 5rem;
  opacity: 0.5;
  filter: blur(0.4px);
}

.lantern-procession::before,
.lantern-procession::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  background:
    radial-gradient(circle at 6% 50%, rgba(255, 214, 146, 0.84), transparent 8%),
    radial-gradient(circle at 16% 42%, rgba(255, 191, 108, 0.58), transparent 7%),
    radial-gradient(circle at 28% 54%, rgba(255, 214, 146, 0.8), transparent 8%),
    radial-gradient(circle at 40% 44%, rgba(255, 191, 108, 0.56), transparent 7%),
    radial-gradient(circle at 52% 54%, rgba(255, 214, 146, 0.82), transparent 8%),
    radial-gradient(circle at 64% 44%, rgba(255, 191, 108, 0.54), transparent 7%),
    radial-gradient(circle at 76% 54%, rgba(255, 214, 146, 0.82), transparent 8%),
    radial-gradient(circle at 88% 44%, rgba(255, 191, 108, 0.54), transparent 7%);
}

.lantern-procession::before {
  bottom: 1.2rem;
  height: 1.6rem;
}

.lantern-procession::after {
  bottom: 0;
  height: 0.18rem;
  background:
    linear-gradient(90deg, rgba(255, 198, 103, 0) 0%, rgba(255, 198, 103, 0.22) 12%, rgba(255, 198, 103, 0.08) 50%, rgba(255, 198, 103, 0.22) 88%, rgba(255, 198, 103, 0) 100%);
}

.procession-middle {
  bottom: 8.2rem;
}

.procession-lower {
  bottom: 9.6rem;
  opacity: 0.38;
}

.lamp-river {
  inset-inline: 10%;
  height: 4.8rem;
  filter: blur(1px);
}

.lamp-river::before,
.lamp-river::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  display: block;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 198, 103, 0) 0%,
      rgba(255, 198, 103, 0.34) 8%,
      rgba(255, 198, 103, 0.08) 16%,
      rgba(255, 198, 103, 0.4) 28%,
      rgba(255, 198, 103, 0.1) 41%,
      rgba(255, 198, 103, 0.36) 56%,
      rgba(255, 198, 103, 0.12) 70%,
      rgba(255, 198, 103, 0.32) 84%,
      rgba(255, 198, 103, 0) 100%
    );
}

.lamp-river::before {
  bottom: 1.8rem;
  height: 0.28rem;
  opacity: 0.56;
}

.lamp-river::after {
  bottom: 0.7rem;
  height: 0.22rem;
  opacity: 0.34;
  transform: scaleX(0.92);
}

.lamp-river-middle {
  bottom: 6.8rem;
  opacity: 0.62;
}

.lamp-river-lower {
  bottom: 8.4rem;
  opacity: 0.46;
}

.tower,
.hall,
.roof {
  position: absolute;
  bottom: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(58, 23, 21, 0.42), rgba(18, 10, 9, 0.96)),
    linear-gradient(90deg, rgba(225, 168, 92, 0.14), transparent 45%);
}

.tower::before,
.tower::after,
.hall::before,
.hall::after,
.roof::before,
.roof::after {
  content: "";
  position: absolute;
}

.tower-a {
  left: 8%;
  width: 4.8rem;
  height: 9rem;
}

.tower-b {
  left: 22%;
  width: 5.5rem;
  height: 11rem;
}

.tower-c {
  left: 40%;
  width: 6.2rem;
  height: 10.5rem;
}

.tower-d {
  right: 24%;
  width: 5.1rem;
  height: 9.6rem;
}

.tower-e {
  right: 8%;
  width: 6.8rem;
  height: 11.2rem;
}

.tower::before {
  left: 50%;
  top: -1.6rem;
  width: 130%;
  height: 1.8rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(108, 45, 36, 0.9), rgba(38, 17, 16, 0.95));
  clip-path: polygon(4% 100%, 13% 26%, 50% 0, 87% 26%, 96% 100%);
}

.tower::after {
  left: 24%;
  top: 14%;
  width: 52%;
  height: 55%;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(242, 194, 116, 0.2) 0 0.5rem,
      transparent 0.5rem 1.4rem
    );
  opacity: 0.8;
}

.hall-a {
  left: 14%;
  width: 16rem;
  height: 10rem;
}

.hall-b {
  left: 40%;
  width: 20rem;
  height: 12rem;
}

.hall-c {
  right: 6%;
  width: 15rem;
  height: 9.5rem;
}

.hall::before {
  left: 50%;
  top: -2.4rem;
  width: 118%;
  height: 2.8rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(127, 56, 42, 0.94), rgba(45, 21, 19, 0.96));
  clip-path: polygon(1% 100%, 10% 24%, 50% 0, 90% 24%, 99% 100%);
}

.hall::after {
  inset: 18% 10% 12%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(240, 188, 109, 0.12) 0 1rem,
      transparent 1rem 2rem
    ),
    repeating-linear-gradient(
      180deg,
      rgba(240, 188, 109, 0.16) 0 0.6rem,
      transparent 0.6rem 1.45rem
    );
}

.roof-a {
  left: -2%;
  width: 18rem;
  height: 6.5rem;
}

.roof-b {
  left: 28%;
  width: 23rem;
  height: 7.4rem;
}

.roof-c {
  right: -2%;
  width: 19rem;
  height: 6.8rem;
}

.roof::before {
  left: 50%;
  top: -2rem;
  width: 118%;
  height: 2.4rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(144, 64, 46, 0.96), rgba(51, 23, 21, 0.98));
  clip-path: polygon(1% 100%, 11% 18%, 50% 0, 89% 18%, 99% 100%);
}

.roof::after {
  inset: 22% 8% 15%;
  background:
    radial-gradient(circle at 12% 70%, rgba(241, 192, 111, 0.32), transparent 10%),
    radial-gradient(circle at 34% 68%, rgba(241, 192, 111, 0.28), transparent 9%),
    radial-gradient(circle at 59% 65%, rgba(241, 192, 111, 0.24), transparent 10%),
    radial-gradient(circle at 82% 72%, rgba(241, 192, 111, 0.3), transparent 10%);
}

.lantern-cluster {
  right: 6%;
  top: 22%;
  width: 16rem;
  height: 16rem;
}

.lantern {
  position: absolute;
  width: 1.6rem;
  height: 2rem;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 224, 178, 0.84), transparent 30%),
    linear-gradient(180deg, rgba(177, 50, 36, 0.96), rgba(115, 28, 24, 0.96));
  box-shadow:
    0 0 18px rgba(241, 174, 94, 0.22),
    inset 0 0 0 1px rgba(255, 219, 173, 0.08);
  animation: lanternFloat 4s ease-in-out infinite;
}

.lantern::before,
.lantern::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lantern::before {
  top: -1.8rem;
  width: 1px;
  height: 1.8rem;
  background: rgba(216, 182, 121, 0.46);
}

.lantern::after {
  bottom: -0.45rem;
  width: 0.35rem;
  height: 0.45rem;
  background: rgba(216, 182, 121, 0.56);
  border-radius: 0 0 999px 999px;
}

.lantern-a {
  top: 4%;
  right: 14%;
}

.lantern-b {
  top: 20%;
  right: 40%;
  animation-delay: 0.8s;
}

.lantern-c {
  top: 38%;
  right: 8%;
  animation-delay: 1.6s;
}

.lantern-d {
  top: 56%;
  right: 32%;
  animation-delay: 0.4s;
}

.lantern-e {
  top: 70%;
  right: 54%;
  animation-delay: 1.1s;
}

.torch {
  position: absolute;
  bottom: 4rem;
  width: 2rem;
  height: 11rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(133, 90, 45, 0.9), rgba(65, 34, 20, 0.95)),
    linear-gradient(90deg, rgba(255, 231, 188, 0.12), transparent);
  box-shadow: inset 0 0 0 1px rgba(246, 227, 194, 0.08);
  z-index: 4;
}

.torch::before,
.torch::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.torch::before {
  top: -1.6rem;
  width: 3rem;
  height: 2.1rem;
  border-radius: 1rem 1rem 0.4rem 0.4rem;
  background: linear-gradient(180deg, #8f6840, #3a2018);
  box-shadow: inset 0 0 0 1px rgba(246, 227, 194, 0.08);
}

.torch::after {
  top: -2.5rem;
  width: 1.6rem;
  height: 2.6rem;
  background: radial-gradient(circle at 50% 80%, rgba(255, 193, 108, 0.95), rgba(196, 73, 31, 0.82) 52%, transparent 78%);
  filter: blur(1px);
  animation: torchFlicker 2.4s ease-in-out infinite;
}

.torch-left {
  left: 2rem;
}

.torch-right {
  right: 2rem;
}

.torch-glow {
  position: absolute;
  top: -5.5rem;
  left: 50%;
  width: 12rem;
  height: 12rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(213, 106, 58, 0.34), transparent 62%);
  filter: blur(16px);
  animation: torchGlowPulse 3.2s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  inset: auto 10% 1rem auto;
  margin: auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 109, 65, 0.24), transparent 64%);
  filter: blur(22px);
  animation: heroGlowShift 5.2s ease-in-out infinite;
  z-index: 2;
}

.seal-ring {
  position: absolute;
  width: min(72vw, 29rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(223, 206, 177, 0.12);
  box-shadow:
    inset 0 0 0 14px rgba(58, 25, 19, 0.24),
    inset 0 0 0 36px rgba(223, 206, 177, 0.03);
  opacity: 0.7;
  z-index: 3;
}

.sealed-scroll {
  position: relative;
  width: min(62vw, 24rem);
  min-height: 18.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  transform-origin: center;
  justify-self: center;
  align-self: center;
  z-index: 5;
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.scroll-unlock-button:focus-visible {
  outline: 1px solid rgba(245, 210, 150, 0.48);
  outline-offset: 0.5rem;
}

.scroll-open-aura {
  position: absolute;
  inset: -10% -8%;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 56% 48%, rgba(255, 220, 161, 0.32), transparent 28%),
    radial-gradient(circle at 50% 46%, rgba(212, 109, 65, 0.24), transparent 48%);
  opacity: 0;
  filter: blur(18px);
  transform: scale(0.94);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
  pointer-events: none;
}

.scroll-core {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 4rem 2rem 3rem;
  min-height: 18.5rem;
  background:
    linear-gradient(180deg, rgba(81, 41, 29, 0.6), rgba(27, 14, 11, 0.9)),
    radial-gradient(circle at top, rgba(226, 190, 133, 0.12), transparent 50%);
  border: 1px solid rgba(223, 206, 177, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-align: center;
}

.scroll-core::before {
  content: "";
  position: absolute;
  inset: 1rem;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 232, 195, 0.08) 44%, transparent 56%);
  transform: translateX(-140%);
  pointer-events: none;
}

.scroll-core-copy {
  display: block;
  margin-top: 1rem;
  color: rgba(228, 205, 167, 0.72);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: var(--display);
}

.scroll-secret {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding-top: 0.25rem;
  opacity: 0;
  transform: translateY(1rem) scale(0.96);
  transition:
    opacity 380ms ease,
    transform 380ms ease;
}

.scroll-blessing {
  margin: 0;
  font-family: var(--headline);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  letter-spacing: 0.12em;
  color: #fff0d7;
  text-shadow:
    0 0 18px rgba(255, 213, 141, 0.16),
    0 0 32px rgba(201, 58, 44, 0.08);
}

.scroll-entry {
  display: inline-grid;
  justify-items: center;
  gap: 0.55rem;
  color: rgba(252, 237, 210, 0.8);
  text-decoration: none;
  transition:
    transform 220ms ease,
    color 220ms ease;
}

.scroll-entry:hover,
.scroll-entry:focus-visible {
  transform: translateY(-2px) scale(1.03);
  color: #fff7ea;
}

.scroll-entry:focus-visible {
  outline: none;
}

.scroll-entry-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 20%, rgba(255, 226, 154, 0.96) 42%, rgba(255, 153, 96, 0.86) 72%, rgba(255, 153, 96, 0) 76%);
  box-shadow:
    0 0 14px rgba(255, 205, 118, 0.62),
    0 0 32px rgba(255, 132, 88, 0.28);
  animation: birthdayPointPulse 1.9s ease-in-out infinite;
}

.scroll-entry-text {
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cover {
  position: absolute;
  inset: 0.7rem 0.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 206, 171, 0.16);
  background:
    linear-gradient(135deg, rgba(105, 47, 32, 0.96), rgba(40, 17, 13, 0.96)),
    linear-gradient(180deg, rgba(255, 228, 184, 0.08), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 232, 0.08),
    0 20px 34px rgba(0, 0, 0, 0.26);
  transform-origin: left center;
  transition:
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 360ms ease,
    opacity 320ms ease,
    border-color 320ms ease;
  z-index: 2;
}

.scroll-cover::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(240, 220, 186, 0.08);
  background:
    linear-gradient(120deg, rgba(255, 238, 211, 0.06), transparent 34%, rgba(255, 238, 211, 0.02) 68%, transparent 100%),
    repeating-linear-gradient(
      180deg,
      rgba(236, 214, 176, 0.04) 0 0.36rem,
      transparent 0.36rem 1.25rem
    );
}

.scroll-cover-ridge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  bottom: 1rem;
  width: 0.5rem;
  background: linear-gradient(180deg, rgba(243, 209, 151, 0.2), rgba(78, 31, 20, 0.3));
  border-radius: 999px;
}

.scroll-cover-title {
  position: relative;
  font-family: var(--headline);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.22em;
  color: rgba(245, 226, 195, 0.84);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.scroll-lines {
  height: 7rem;
  background:
    linear-gradient(90deg, transparent 0%, rgba(244, 227, 196, 0.04) 40%, transparent 100%),
    repeating-linear-gradient(
      180deg,
      transparent 0 11px,
      rgba(234, 213, 171, 0.09) 11px 12px
    );
  border: 1px solid rgba(223, 206, 177, 0.1);
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    transform 420ms ease;
}

.seal {
  position: absolute;
  display: grid;
  place-items: center;
  width: 5.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 202, 170, 0.2), transparent 30%),
    linear-gradient(180deg, #a63c28, #75231a);
  border: 1px solid rgba(255, 222, 191, 0.16);
  color: #f6dec5;
  font-family: var(--headline);
  font-size: 1.8rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  animation: sealPulse 3.6s ease-in-out infinite;
}

.seal-large {
  top: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    filter 260ms ease;
}

.scroll-unlock-button {
  position: absolute;
  inset: 0;
  z-index: 6;
  border: 0;
  background: transparent;
  cursor: default;
}

.scroll-wing {
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2.9rem;
  background:
    linear-gradient(180deg, rgba(230, 206, 166, 0.12), rgba(107, 61, 39, 0.08)),
    linear-gradient(90deg, rgba(250, 230, 198, 0.08), transparent);
  border: 1px solid rgba(223, 206, 177, 0.08);
  opacity: 0.76;
  transition:
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms ease,
    filter 420ms ease;
}

.scroll-wing-left {
  left: -1.2rem;
  border-radius: 1.6rem 0.4rem 0.4rem 1.6rem;
}

.scroll-wing-right {
  right: -1.2rem;
  border-radius: 0.4rem 1.6rem 1.6rem 0.4rem;
}

body.is-unlocked .sealed-scroll {
  cursor: default;
}

body.is-unlocked .scroll-unlock-button {
  cursor: pointer;
}

body.is-unlocked .seal-large {
  opacity: 0;
  transform: translateX(-50%) translateY(-0.45rem) scale(0.78);
  filter: blur(4px);
}

body.is-unlocked:not(.scroll-opened) .sealed-scroll:hover {
  transform: translateY(-3px);
}

body.is-unlocked:not(.scroll-opened) .sealed-scroll:hover .scroll-open-aura,
body.is-unlocked:not(.scroll-opened) .sealed-scroll:focus-visible .scroll-open-aura {
  opacity: 1;
  transform: scale(1.03);
}

body.is-unlocked:not(.scroll-opened) .sealed-scroll:hover .scroll-cover,
body.is-unlocked:not(.scroll-opened) .sealed-scroll:focus-visible .scroll-cover {
  border-color: rgba(247, 223, 179, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 232, 0.1),
    0 26px 42px rgba(0, 0, 0, 0.34);
  transform: perspective(1200px) rotateY(-18deg) translateX(-0.35rem);
}

body.is-unlocked:not(.scroll-opened) .sealed-scroll:hover .scroll-core::before,
body.is-unlocked:not(.scroll-opened) .sealed-scroll:focus-visible .scroll-core::before {
  animation: coverLightSweep 1.4s ease-in-out infinite;
}

body.scroll-opened .sealed-scroll {
  cursor: default;
}

body.scroll-opened .scroll-open-aura {
  opacity: 1;
  transform: scale(1.08);
}

body.scroll-opened .scroll-cover {
  transform: perspective(1200px) rotateY(-114deg) translateX(-1.1rem);
  opacity: 0.96;
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 232, 0.08),
    -30px 18px 38px rgba(0, 0, 0, 0.22);
}

body.scroll-opened .scroll-wing-left {
  transform: translateX(-0.45rem) scaleX(1.08);
  opacity: 0.92;
}

body.scroll-opened .scroll-wing-right {
  transform: translateX(0.45rem) scaleX(1.08);
  opacity: 0.92;
}

body.scroll-opened .scroll-lines {
  opacity: 1;
  filter: brightness(1.06);
  transform: translateY(-0.08rem);
}

body.scroll-opened .scroll-secret {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.scroll-opened .scroll-unlock-button {
  pointer-events: none;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 0.6rem;
}

.dossier-heading {
  position: relative;
  padding-left: 1.15rem;
  max-width: 42rem;
}

.dossier-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.2rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(246, 220, 180, 0), rgba(246, 220, 180, 0.34) 20%, rgba(197, 85, 52, 0.42) 58%, rgba(246, 220, 180, 0.06) 100%);
}

.section-note {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 211, 175, 0.6);
}

.rewards,
.annotations,
.final-call {
  padding: 5.4rem 0 0;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.3rem;
  position: relative;
  padding-top: 1.55rem;
  align-items: start;
}

.reward-grid::before {
  content: "";
  position: absolute;
  left: 1.2%;
  right: 1.2%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 220, 174, 0), rgba(244, 220, 174, 0.34) 12%, rgba(202, 90, 54, 0.28) 50%, rgba(244, 220, 174, 0.34) 88%, rgba(244, 220, 174, 0) 100%);
}

.reward-grid::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0.6rem;
  height: 8rem;
  background:
    radial-gradient(circle at 18% 0, rgba(242, 190, 110, 0.12), transparent 18%),
    radial-gradient(circle at 50% 8%, rgba(201, 83, 47, 0.12), transparent 16%),
    radial-gradient(circle at 82% 0, rgba(242, 190, 110, 0.12), transparent 18%);
  filter: blur(12px);
  opacity: 0.7;
  pointer-events: none;
}

.reward-scroll {
  padding: 1.25rem 1.25rem 1.45rem;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
  transform-style: preserve-3d;
  position: relative;
  min-height: 100%;
}

.reward-scroll:hover {
  border-color: rgba(223, 206, 177, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.reward-scroll::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0.95rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 220, 174, 0), rgba(244, 220, 174, 0.22), rgba(244, 220, 174, 0));
}

.featured-scroll {
  background:
    linear-gradient(180deg, rgba(120, 48, 31, 0.28), rgba(33, 16, 12, 0.72)),
    rgba(72, 34, 24, 0.62);
  transform: translateY(-0.8rem);
}

.featured-scroll::before {
  background:
    radial-gradient(circle at top left, rgba(242, 193, 112, 0.08), transparent 18%),
    radial-gradient(circle at top right, rgba(242, 193, 112, 0.08), transparent 18%),
    radial-gradient(circle at bottom left, rgba(242, 193, 112, 0.05), transparent 18%),
    radial-gradient(circle at bottom right, rgba(242, 193, 112, 0.05), transparent 18%);
}

.scroll-topper {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(223, 206, 177, 0.1);
}

.reward-index,
.reward-status,
.reward-copy,
.glyph-text {
  margin: 0;
}

.reward-index {
  font-family: var(--headline);
  font-size: 1.38rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.reward-status {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: rgba(236, 214, 181, 0.72);
}

.silhouette-panel {
  position: relative;
  min-height: 24rem;
  margin: 0.95rem 0 1.05rem;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 1.2rem;
  border: 1px solid rgba(223, 206, 177, 0.12);
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(210, 90, 52, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(49, 21, 16, 0.35), rgba(18, 10, 8, 0.9));
}

.silhouette-panel::before,
.silhouette-panel::after {
  content: "";
  position: absolute;
  inset: 0;
}

.silhouette-panel::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(234, 215, 181, 0.1), transparent 34%),
    repeating-linear-gradient(
      180deg,
      transparent 0 12px,
      rgba(235, 216, 184, 0.03) 12px 13px
    );
}

.silhouette-panel::after {
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(10, 5, 4, 0.82));
}

.silhouette-one::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(234, 215, 181, 0.12), transparent 36%),
    radial-gradient(circle at 50% 44%, rgba(201, 83, 47, 0.14), transparent 24%),
    repeating-linear-gradient(
      180deg,
      transparent 0 12px,
      rgba(235, 216, 184, 0.03) 12px 13px
    );
}

.silhouette-two::before {
  background:
    radial-gradient(circle at 50% 14%, rgba(234, 215, 181, 0.1), transparent 32%),
    linear-gradient(180deg, transparent 0 18%, rgba(201, 83, 47, 0.08) 18% 20%, transparent 20% 100%),
    repeating-linear-gradient(
      180deg,
      transparent 0 12px,
      rgba(235, 216, 184, 0.03) 12px 13px
    );
}

.silhouette-three::before {
  background:
    radial-gradient(circle at 50% 24%, rgba(234, 215, 181, 0.12), transparent 30%),
    radial-gradient(circle at 50% 40%, rgba(201, 83, 47, 0.12), transparent 28%),
    repeating-linear-gradient(
      180deg,
      transparent 0 12px,
      rgba(235, 216, 184, 0.03) 12px 13px
    );
}

.seal-strip {
  position: absolute;
  top: 1rem;
  left: -1.2rem;
  padding: 0.55rem 1.8rem;
  background: linear-gradient(180deg, rgba(165, 54, 38, 0.94), rgba(118, 27, 22, 0.94));
  border: 1px solid rgba(244, 219, 183, 0.12);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transform: rotate(-8deg);
  font-family: var(--display);
  transition: box-shadow 220ms ease;
}

.glyph-text {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: rgba(244, 228, 204, 0.68);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--display);
}

.hover-clue {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.8rem 0.9rem;
  color: rgba(246, 230, 205, 0.86);
  font-size: 0.86rem;
  line-height: 1.56;
  border: 1px solid rgba(223, 206, 177, 0.14);
  background: linear-gradient(180deg, rgba(125, 43, 30, 0.15), rgba(22, 11, 9, 0.88));
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.reward-copy {
  position: relative;
  padding-inline: 0.05rem;
  font-size: 0.98rem;
}

.annotation-card p:last-child,
.callout-frame p:last-of-type {
  margin-bottom: 0;
}

.reward-scroll:hover .hover-clue,
.reward-scroll:focus-within .hover-clue {
  opacity: 1;
  transform: translateY(0);
}

.reward-scroll:hover .silhouette,
.reward-scroll:focus-within .silhouette {
  transform: translateX(-50%) scale(1.04);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.5));
}

.reward-scroll:hover .seal-strip,
.reward-scroll:focus-within .seal-strip {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.silhouette {
  position: absolute;
  inset: auto;
  bottom: 3.8rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.92;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.silhouette::before,
.silhouette::after {
  content: "";
  position: absolute;
}

.silhouette-pass {
  width: 8.6rem;
  height: 13.2rem;
  background:
    linear-gradient(180deg, rgba(21, 9, 8, 0.16), rgba(7, 3, 2, 0.94)),
    linear-gradient(90deg, rgba(198, 83, 49, 0.2), transparent);
  border-radius: 1.4rem;
}

.silhouette-pass::before {
  width: 4.2rem;
  height: 2rem;
  top: -1.05rem;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 55%, rgba(205, 88, 53, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(28, 11, 10, 0.24), #090404);
  border-radius: 1.2rem 1.2rem 0.45rem 0.45rem;
  box-shadow:
    0 1.1rem 0 -0.75rem #090404,
    0 2.1rem 0 -1.25rem rgba(205, 88, 53, 0.14);
}

.silhouette-pass::after {
  width: 4.3rem;
  height: 4.3rem;
  top: 1.9rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1.15rem;
  border: 0.95rem solid #090404;
  box-shadow:
    inset 0 0 0 0.2rem rgba(213, 100, 66, 0.12),
    0 5rem 0 -1.35rem #090404,
    0 6.35rem 0 -1.35rem #090404,
    0 7.7rem 0 -1.35rem #090404;
}

.silhouette-razor {
  width: 6.8rem;
  height: 15.6rem;
  background:
    linear-gradient(180deg, rgba(17, 7, 6, 0.22), rgba(7, 2, 2, 0.94)),
    linear-gradient(90deg, rgba(197, 79, 49, 0.16), transparent);
  border-radius: 2.8rem 2.8rem 1.2rem 1.2rem;
  clip-path: polygon(22% 0, 78% 0, 88% 15%, 70% 100%, 30% 100%, 12% 15%);
}

.silhouette-razor::before {
  width: 10.6rem;
  height: 2.4rem;
  top: -0.95rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(33, 14, 11, 0.22), #080303);
  border-radius: 0.95rem;
  box-shadow: inset 0 0 0 0.22rem rgba(213, 100, 66, 0.08);
}

.silhouette-razor::after {
  width: 4.6rem;
  height: 1.15rem;
  top: 1.55rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(20, 8, 7, 0.18), #090404);
  border-radius: 0.6rem;
  box-shadow:
    0 2.6rem 0 -0.2rem rgba(207, 96, 58, 0.14),
    0 5.8rem 0 -0.5rem rgba(207, 96, 58, 0.12);
}

.silhouette-vr {
  width: 14.8rem;
  height: 8.1rem;
  background:
    radial-gradient(circle at 30% 42%, rgba(209, 95, 58, 0.14), transparent 28%),
    radial-gradient(circle at 70% 42%, rgba(209, 95, 58, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(18, 7, 6, 0.16), rgba(7, 2, 2, 0.96)),
    linear-gradient(90deg, rgba(197, 79, 49, 0.16), transparent 48%);
  border-radius: 2.6rem 2.6rem 2rem 2rem;
  clip-path: polygon(8% 34%, 16% 18%, 39% 10%, 61% 10%, 84% 18%, 92% 34%, 96% 48%, 91% 70%, 78% 84%, 60% 88%, 54% 78%, 46% 78%, 40% 88%, 22% 84%, 9% 70%, 4% 48%);
}

.silhouette-vr::before {
  width: 20rem;
  height: 1.8rem;
  top: 2.35rem;
  left: 50%;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(26, 11, 9, 0.16), #080303),
    linear-gradient(90deg, rgba(207, 96, 58, 0.1), transparent 40%, rgba(207, 96, 58, 0.1));
  border-radius: 999px;
  box-shadow:
    0 -1.4rem 0 -1rem rgba(205, 88, 53, 0.1),
    -6.9rem 0 0 -0.52rem #090404,
    6.9rem 0 0 -0.52rem #090404;
}

.silhouette-vr::after {
  width: 10.8rem;
  height: 3.25rem;
  top: 1.95rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1.4rem;
  border: 0.92rem solid #090404;
  background:
    radial-gradient(circle at 32% 48%, rgba(221, 119, 77, 0.16), transparent 24%),
    radial-gradient(circle at 68% 48%, rgba(221, 119, 77, 0.16), transparent 24%);
  box-shadow:
    -3.35rem 0 0 -0.92rem #090404,
    3.35rem 0 0 -0.92rem #090404,
    0 0 0 0.22rem rgba(207, 96, 58, 0.1) inset,
    0 0.55rem 0 -0.32rem rgba(9, 4, 4, 0.92);
}

.annotation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.annotation-card {
  min-height: 12.5rem;
  padding: 1.3rem;
  backdrop-filter: blur(8px);
}

.wide-card {
  grid-column: span 3;
  min-height: auto;
}

.final-call {
  padding-bottom: calc(5rem + var(--safe-bottom));
}

.callout-frame {
  padding: 2rem 1.8rem;
  margin-top: 1.2rem;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(242, 193, 112, 0.08), transparent 24%),
    radial-gradient(circle at top, rgba(201, 89, 51, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(62, 29, 22, 0.32), rgba(20, 10, 8, 0.72)),
    rgba(46, 23, 18, 0.58);
  backdrop-filter: blur(10px);
}

.callout-frame h2,
.callout-frame p {
  margin-left: auto;
  margin-right: auto;
}

.callout-frame p {
  max-width: 34rem;
  font-size: 1rem;
}

.centered {
  justify-content: center;
}

.fireworks-layer {
  position: fixed;
  inset: 0;
  z-index: 18;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.corner-cipher {
  position: fixed;
  right: calc(0.85rem + var(--safe-right));
  bottom: calc(0.7rem + var(--safe-bottom));
  z-index: 19;
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  pointer-events: none;
}

.corner-flower {
  position: relative;
  width: 4.6rem;
  height: 6.2rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.8;
  transform-origin: 72% 100%;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    filter 220ms ease;
}

.corner-flower:hover,
.corner-flower:focus-visible {
  opacity: 1;
  transform: rotate(-4deg) scale(1.03);
  filter: drop-shadow(0 0 16px rgba(243, 190, 112, 0.22));
  outline: none;
}

.corner-cipher.is-blooming .corner-flower {
  animation: cornerFlowerBloom 520ms ease;
}

.corner-flower__petal,
.corner-flower__core,
.corner-flower__stem {
  position: absolute;
  display: block;
}

.corner-flower__petal {
  width: 1.55rem;
  height: 1.95rem;
  border-radius: 1rem 1rem 0.9rem 0.9rem;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 226, 194, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(179, 54, 42, 0.96), rgba(115, 28, 22, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 201, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.18);
}

.corner-flower__petal-a {
  left: 1.45rem;
  top: 0.55rem;
}

.corner-flower__petal-b {
  left: 0.58rem;
  top: 1.2rem;
  transform: rotate(-36deg);
}

.corner-flower__petal-c {
  right: 0.6rem;
  top: 1.16rem;
  transform: rotate(36deg);
}

.corner-flower__petal-d {
  left: 1.45rem;
  top: 1.72rem;
  transform: rotate(180deg);
}

.corner-flower__core {
  left: 1.7rem;
  top: 1.7rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 245, 201, 0.92), rgba(242, 193, 112, 0.7) 42%, rgba(196, 117, 46, 0.82) 78%);
  box-shadow: 0 0 12px rgba(242, 193, 112, 0.22);
}

.corner-flower__stem {
  left: 2.08rem;
  top: 2.65rem;
  width: 0.22rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(118, 81, 42, 0.16), rgba(74, 116, 47, 0.9));
}

.corner-flower__stem::before,
.corner-flower__stem::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 0.6rem;
  border-radius: 0.8rem 0.1rem 0.8rem 0.1rem;
  background: linear-gradient(180deg, rgba(116, 152, 72, 0.88), rgba(53, 94, 42, 0.96));
}

.corner-flower__stem::before {
  right: 0.08rem;
  top: 0.75rem;
  transform: rotate(-28deg);
}

.corner-flower__stem::after {
  left: 0.06rem;
  top: 1.55rem;
  transform: scaleX(-1) rotate(-18deg);
}

.corner-cipher__message {
  margin: 0 0.15rem 0 0;
  max-width: min(15rem, 38vw);
  font-family: var(--headline);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-align: right;
  color: rgba(247, 230, 201, calc(0.1 + var(--cipher-progress) * 0.82));
  filter: blur(calc(14px - var(--cipher-progress) * 12px));
  transform:
    translateY(calc(8px - var(--cipher-progress) * 8px))
    scale(calc(0.96 + var(--cipher-progress) * 0.04));
  text-shadow:
    0 0 calc(16px * var(--cipher-progress)) rgba(245, 190, 98, calc(var(--cipher-progress) * 0.2)),
    0 0 calc(26px * var(--cipher-progress)) rgba(201, 58, 44, calc(var(--cipher-progress) * 0.12));
  pointer-events: none;
  transition:
    filter 180ms ease,
    transform 180ms ease,
    color 180ms ease,
    text-shadow 180ms ease;
}

.corner-cipher.is-revealed .corner-cipher__message {
  letter-spacing: 0.16em;
}

.cheat-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding:
    calc(1.4rem + var(--safe-top))
    calc(1rem + var(--safe-right))
    calc(1.4rem + var(--safe-bottom))
    calc(1rem + var(--safe-left));
  background:
    radial-gradient(circle at 18% 18%, rgba(252, 199, 115, 0.12), transparent 18%),
    radial-gradient(circle at 84% 24%, rgba(233, 98, 62, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(53, 18, 18, 0.72), rgba(12, 5, 6, 0.96));
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.cheat-screen__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
}

.cheat-screen__glow-one {
  width: min(34vw, 18rem);
  height: min(34vw, 18rem);
  top: 8%;
  left: 8%;
  background: radial-gradient(circle, rgba(245, 190, 98, 0.28), transparent 70%);
}

.cheat-screen__glow-two {
  width: min(42vw, 24rem);
  height: min(42vw, 24rem);
  right: 6%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(201, 58, 44, 0.26), transparent 72%);
}

.cheat-screen__panel {
  position: relative;
  width: min(100%, 46rem);
  padding: clamp(2rem, 6vw, 3.2rem);
  border: 1px solid rgba(238, 214, 173, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 226, 184, 0.08), transparent 24%, transparent 76%, rgba(255, 226, 184, 0.06)),
    linear-gradient(180deg, rgba(91, 27, 25, 0.86), rgba(22, 7, 8, 0.94));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255, 232, 195, 0.05);
  text-align: center;
  overflow: hidden;
}

.cheat-screen__panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(238, 214, 173, 0.1);
  pointer-events: none;
}

.cheat-screen__eyebrow,
.cheat-screen__warning,
.cheat-screen__note {
  margin: 0;
}

.cheat-screen__eyebrow {
  display: inline-flex;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(238, 214, 173, 0.14);
  background: rgba(31, 9, 10, 0.42);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 226, 192, 0.78);
}

.cheat-screen h2 {
  margin-top: 1.2rem;
  font-size: clamp(2.8rem, 8vw, 5.3rem);
  max-width: none;
  color: #fff2d7;
  text-shadow:
    0 0 24px rgba(239, 132, 84, 0.22),
    0 0 48px rgba(201, 58, 44, 0.18);
}

.cheat-screen__warning {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  letter-spacing: 0.16em;
  color: #ffcf9f;
}

.cheat-screen__note {
  margin: 1.2rem auto 0;
  max-width: 26rem;
  color: rgba(247, 226, 192, 0.72);
  line-height: 1.72;
  font-size: 1rem;
}

body.is-cheating {
  overflow: hidden;
}

body.is-cheating .page-shell > :not(.cheat-screen) {
  filter: blur(12px) saturate(0.8);
  transform: scale(1.02);
  pointer-events: none;
  user-select: none;
}

body.is-cheating .fireworks-layer {
  opacity: 0;
}

body.is-cheating .cheat-screen {
  opacity: 1;
  pointer-events: auto;
}

body.is-standalone .page-shell,
body.is-standalone .hero-stage {
  min-height: 100svh;
}

@media (display-mode: standalone) {
  body {
    background:
      radial-gradient(circle at 72% 18%, rgba(233, 173, 89, 0.08), transparent 18%),
      radial-gradient(circle at top, rgba(194, 85, 48, 0.14), transparent 34%),
      linear-gradient(180deg, #2a1411 0%, #150c0b 52%, #100807 100%);
  }
}

.section-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-ready .hero-copy {
  animation: heroCopyRise 900ms ease 100ms both;
}

.page-ready h1 {
  animation: titleShine 3.8s ease-in-out 0.65s infinite;
}

.page-ready .sealed-scroll {
  animation: scrollOpen 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) 160ms both;
}

.page-ready .scroll-core::before {
  animation: sealSweep 1.2s ease 500ms both;
}

.time-card.is-ticking .time-value {
  transform: scale(1.08);
  color: #fce9c9;
  text-shadow: 0 0 34px rgba(228, 122, 74, 0.42);
}

@keyframes emberRise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.55);
    opacity: 0;
  }

  12% {
    opacity: 0.9;
  }

  60% {
    opacity: 0.62;
  }

  100% {
    transform: translate3d(3rem, -92vh, 0) scale(1.25);
    opacity: 0;
  }
}

@keyframes torchFlicker {
  0%,
  100% {
    transform: translateX(-50%) scale(0.94);
    opacity: 0.78;
  }

  45% {
    transform: translateX(-50%) scale(1.08) translateY(-0.12rem);
    opacity: 1;
  }

  70% {
    transform: translateX(-50%) scale(0.98) translateY(0.08rem);
    opacity: 0.88;
  }
}

@keyframes torchGlowPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.92);
    opacity: 0.52;
  }

  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 0.84;
  }
}

@keyframes lanternFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.45rem);
  }
}

@keyframes bannerSway {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  35% {
    transform: rotate(2deg) translateY(0.12rem);
  }

  70% {
    transform: rotate(-2.5deg) translateY(-0.08rem);
  }
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes marketFlicker {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.9);
  }

  45% {
    opacity: 1;
    transform: scale(1.15);
  }

  70% {
    opacity: 0.84;
    transform: scale(0.98);
  }
}

@keyframes heroGlowShift {
  0%,
  100% {
    transform: translateY(0) scale(0.95);
    opacity: 0.72;
  }

  50% {
    transform: translateY(-0.8rem) scale(1.08);
    opacity: 0.96;
  }
}

@keyframes sealPulse {
  0%,
  100% {
    box-shadow:
      0 16px 30px rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(182, 68, 44, 0.18);
  }

  50% {
    box-shadow:
      0 20px 36px rgba(0, 0, 0, 0.32),
      0 0 0 12px rgba(182, 68, 44, 0);
  }
}

@keyframes sealSweep {
  from {
    transform: translateX(-140%);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  to {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes coverLightSweep {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }

  34% {
    opacity: 0.9;
  }

  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes birthdayPointPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.82;
    box-shadow:
      0 0 14px rgba(255, 205, 118, 0.52),
      0 0 28px rgba(255, 132, 88, 0.2);
  }

  50% {
    transform: scale(1.14);
    opacity: 1;
    box-shadow:
      0 0 18px rgba(255, 222, 154, 0.78),
      0 0 40px rgba(255, 132, 88, 0.34);
  }
}

@keyframes heroCopyRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollOpen {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

  40% {
    background-position: 100% 50%;
  }
}

@keyframes cornerFlowerBloom {
  0% {
    transform: rotate(0deg) scale(1);
  }

  28% {
    transform: rotate(-8deg) scale(1.06);
  }

  58% {
    transform: rotate(5deg) scale(1.02);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 38rem;
  }

  .hero-copy::before {
    top: 1rem;
    bottom: 1.2rem;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(2rem + var(--safe-top));
    padding-bottom: calc(2.6rem + var(--safe-bottom));
    width: min(calc(100vw - 1.25rem - var(--safe-left) - var(--safe-right)), 1120px);
  }

  .hero-art {
    order: -1;
    min-height: 29rem;
  }

  .view-frame {
    width: 2.1rem;
  }

  .lattice-screen {
    width: 6rem;
    opacity: 0.26;
  }

  .balcony-rail {
    left: 6%;
    right: 6%;
    bottom: 1.8rem;
  }

  .case-plinth {
    bottom: 3.6rem;
    width: min(72vw, 23rem);
  }

  .ritual-band {
    grid-template-columns: 1fr;
  }

  .countdown-panel,
  .ritual-band {
    max-width: 36rem;
  }

  .torch {
    display: none;
  }

  .moon-disc {
    top: 4%;
    right: 10%;
    width: 8rem;
    height: 8rem;
  }

  .moon-haze {
    right: 2%;
    width: 15rem;
    height: 15rem;
  }

  .lantern-cluster {
    right: 1%;
    top: 18%;
    width: 11rem;
    height: 11rem;
  }

  .market-ribbon {
    left: 10%;
    right: 2%;
    bottom: 8%;
  }

  .market-lights {
    left: 10%;
    right: 4%;
  }

  .imperial-axis {
    left: 12%;
    right: 12%;
    bottom: 10%;
    transform: scale(0.9);
    transform-origin: bottom center;
  }

  .watch-post {
    height: 9.2rem;
  }

  .brazier-left {
    left: 18%;
  }

  .brazier-right {
    right: 18%;
  }

  .banner-stream {
    inset-inline: 5%;
    bottom: 22%;
    transform: scale(0.92);
    transform-origin: bottom center;
  }

  .city-far {
    bottom: 20%;
  }

  .city-mid {
    bottom: 13%;
  }

  .city-front {
    bottom: 2%;
  }

  .hall-b,
  .roof-b {
    left: 24%;
  }

  .reward-grid,
  .annotation-grid {
    grid-template-columns: 1fr;
  }

  .featured-scroll {
    transform: none;
  }

  .wide-card {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .rewards,
  .annotations,
  .final-call {
    width: min(calc(100vw - 1.25rem - var(--safe-left) - var(--safe-right)), 1120px);
  }

  .hero-stage {
    width: min(calc(100vw - 1rem - var(--safe-left) - var(--safe-right)), 1120px);
    gap: 1.25rem;
    padding-top: calc(1rem + var(--safe-top));
    padding-bottom: calc(1.6rem + var(--safe-bottom));
  }

  .hero-copy {
    padding-left: 0.85rem;
    padding-right: 0.1rem;
  }

  .hero-copy::before {
    top: 0.9rem;
    bottom: 0.9rem;
    opacity: 0.72;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .hero-summary {
    font-size: 0.98rem;
  }

  .dossier-heading {
    padding-left: 0.9rem;
  }

  .dossier-heading::before {
    opacity: 0.7;
  }

  .section-note {
    letter-spacing: 0.16em;
    font-size: 0.74rem;
  }

  .ornament-line {
    width: 3.2rem;
  }

  .mini-seal {
    min-width: 1.42rem;
    height: 1.42rem;
    font-size: 0.74rem;
  }

  .countdown-head {
    align-items: start;
    flex-direction: column;
  }

  .hero-summary,
  .countdown-panel,
  .ritual-band {
    max-width: none;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-panel {
    padding: 1.15rem 1.15rem 1.05rem;
  }

  .countdown-panel::after {
    left: 1.15rem;
    right: 1.15rem;
  }

  .hero-art {
    min-height: 23rem;
  }

  .hero-art::before {
    inset: 6% -4% 0;
    border-radius: 1.5rem;
  }

  .view-frame {
    width: 1.45rem;
  }

  .lattice-screen {
    width: 3.8rem;
    opacity: 0.18;
  }

  .lattice-left {
    left: 1rem;
  }

  .lattice-right {
    right: 1rem;
  }

  .balcony-rail {
    left: 4%;
    right: 4%;
    bottom: 1.2rem;
    height: 3.5rem;
    opacity: 0.62;
  }

  .case-plinth {
    bottom: 2.8rem;
    width: min(78vw, 18rem);
    height: 4rem;
  }

  .seal-ring {
    width: min(88vw, 22rem);
  }

  .sealed-scroll {
    width: min(72vw, 18rem);
    padding: 3.2rem 1.35rem 2.35rem;
  }

  .city-far {
    height: 8rem;
  }

  .city-mid {
    height: 10rem;
  }

  .city-front {
    height: 9rem;
  }

  .hall-a,
  .hall-b,
  .hall-c,
  .roof-a,
  .roof-b,
  .roof-c {
    transform: scale(0.78);
    transform-origin: bottom center;
  }

  .tower-a,
  .tower-b,
  .tower-c,
  .tower-d,
  .tower-e {
    transform: scale(0.78);
    transform-origin: bottom center;
  }

  .lantern-cluster {
    top: 14%;
    right: -4%;
    transform: scale(0.78);
    transform-origin: top right;
  }

  .market-ribbon {
    left: 6%;
    right: -4%;
    bottom: 5%;
    transform: scale(0.8);
    transform-origin: bottom left;
  }

  .market-lights {
    left: 4%;
    right: 2%;
    bottom: 4%;
    transform: scale(0.82);
    transform-origin: bottom left;
  }

  .imperial-axis {
    left: 8%;
    right: 8%;
    bottom: 8%;
    height: 9.5rem;
    transform: scale(0.72);
  }

  .watch-post {
    height: 8.2rem;
  }

  .brazier-left {
    left: 16%;
  }

  .brazier-right {
    right: 16%;
  }

  .banner-stream {
    inset-inline: 0;
    bottom: 20%;
    transform: scale(0.7);
  }

  .wall-middle {
    bottom: 3.2rem;
  }

  .wall-lower {
    bottom: 4.4rem;
  }

  .procession-middle {
    bottom: 4.8rem;
  }

  .procession-lower {
    bottom: 5.8rem;
  }

  .lamp-river-middle {
    bottom: 5.4rem;
  }

  .lamp-river-lower {
    bottom: 6.1rem;
  }

  .silhouette-panel {
    min-height: 20rem;
  }

  .time-card {
    min-height: 6.35rem;
    padding: 0.95rem 0.5rem 0.82rem;
  }

  .time-value {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .hover-clue {
    opacity: 1;
    transform: none;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0.9rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ritual-item {
    padding: 0.85rem 0.9rem;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    min-width: 0;
    min-height: 3.5rem;
  }
}

@media (max-width: 520px) {
  .hero-stage {
    width: min(calc(100vw - 0.75rem - var(--safe-left) - var(--safe-right)), 1120px);
  }

  .hero-copy {
    padding-left: 0.7rem;
  }

  .eyebrow {
    gap: 0.45rem;
  }

  .eyebrow span,
  .sub-eyebrow,
  .section-kicker,
  .reward-status,
  .annotation-mark {
    padding: 0.32rem 0.56rem;
  }

  .countdown-panel,
  .callout-frame,
  .reward-scroll,
  .annotation-card {
    border-radius: 1.1rem;
  }

  .callout-frame {
    padding: 1.65rem 1.05rem;
  }

  .ritual-item {
    padding: 0.78rem 0.82rem;
  }

  .corner-cipher {
    right: calc(0.55rem + var(--safe-right));
    bottom: calc(0.4rem + var(--safe-bottom));
  }

  .corner-flower {
    width: 4rem;
    height: 5.4rem;
  }

  .corner-cipher__message {
    max-width: min(12rem, 46vw);
    font-size: clamp(0.92rem, 4vw, 1.2rem);
  }

  .cheat-screen__panel {
    padding: 1.6rem 1.15rem 1.8rem;
  }

  .cheat-screen__warning {
    letter-spacing: 0.08em;
  }

  .cheat-screen__note {
    font-size: 0.94rem;
  }
}
