@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;600;700;900&family=Shippori+Mincho:wght@500;600&display=swap");

:root {
  --ink: #0a0909;
  --ink-soft: #12100f;
  --paper: #e9e2d3;
  --paper-muted: #a9a093;
  --red: #a92922;
  --red-bright: #d54a33;
  --gold: #b4945e;
  --line: rgba(233, 226, 211, 0.18);
  --serif: "Noto Serif TC", "Songti TC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}

body.is-intro-open {
  overflow: hidden;
}

body.is-preloading {
  overflow: hidden;
}

.site-header,
main,
footer,
.page-controls {
  opacity: 1;
  transition: opacity 500ms ease;
}

body.is-intro-open .site-header,
body.is-intro-open main,
body.is-intro-open footer,
body.is-intro-open .page-controls {
  opacity: 0;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.loading-gate {
  --loading-progress: 0.08;
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050404;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.loading-gate.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loading-gate[hidden] {
  display: none;
}

.loading-gate.is-hidden,
.loading-gate[hidden].is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-ride {
  position: absolute;
  inset: -4%;
  background-image:
    linear-gradient(90deg, rgba(5, 4, 3, 0.64), rgba(5, 4, 3, 0.18) 42%, rgba(5, 4, 3, 0.72)),
    url("assets/bg_loading.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(0.9) contrast(1.08) brightness(0.78);
  transform-origin: center 58%;
  animation: horse-gallop 720ms ease-in-out infinite;
}

.loading-gate::before,
.loading-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loading-gate::before {
  background:
    repeating-linear-gradient(100deg, transparent 0 58px, rgba(236, 190, 111, 0.13) 60px 62px, transparent 66px 128px),
    repeating-linear-gradient(92deg, transparent 0 148px, rgba(255, 221, 155, 0.09) 150px 153px, transparent 158px 260px);
  mix-blend-mode: screen;
  opacity: 0.44;
  animation: horse-speed-lines 760ms linear infinite;
}

.loading-gate::after {
  box-shadow:
    inset 0 0 12vw rgba(0, 0, 0, 0.58),
    inset 0 -22vh 18vh rgba(0, 0, 0, 0.62);
}

.loading-dust {
  position: absolute;
  right: -15%;
  bottom: 13%;
  left: -15%;
  height: 28%;
  background:
    radial-gradient(ellipse at 18% 70%, rgba(196, 133, 65, 0.28), transparent 38%),
    radial-gradient(ellipse at 58% 78%, rgba(232, 188, 116, 0.24), transparent 42%),
    radial-gradient(ellipse at 82% 66%, rgba(154, 92, 46, 0.22), transparent 36%);
  filter: blur(12px);
  opacity: 0.7;
  transform: translateX(-6%);
  animation: horse-dust 920ms ease-in-out infinite;
}

.loading-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
  animation: loading-pulse 1100ms ease-in-out infinite;
}

.loading-content::before,
.loading-content::after {
  --hoof-rotate: 10deg;
  content: "";
  position: absolute;
  top: calc(100% + 10px);
  width: 22px;
  height: 12px;
  border: 2px solid rgba(232, 185, 105, 0.5);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  opacity: 0.55;
  filter: drop-shadow(0 0 8px rgba(232, 149, 60, 0.32));
  animation: loading-hoof 620ms ease-in-out infinite;
}

.loading-content::before {
  right: calc(50% + 18px);
  transform: rotate(10deg);
}

.loading-content::after {
  --hoof-rotate: -10deg;
  left: calc(50% + 18px);
  animation-delay: 310ms;
  transform: rotate(-10deg);
}

.loading-kicker {
  margin: 0;
  color: #d8b980;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
}

.loading-content h1 {
  margin: 0;
  color: #f3dfb8;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 500;
  letter-spacing: 0.2em;
}

.loading-text {
  margin: 0;
  color: rgba(233, 226, 211, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.loading-progress {
  position: relative;
  width: min(320px, 62vw);
  height: 3px;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(233, 226, 211, 0.18);
  box-shadow: 0 0 18px rgba(218, 144, 56, 0.12);
}

.loading-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(171, 77, 33, 0.45), rgba(241, 196, 118, 0.95));
  transform: scaleX(var(--loading-progress));
  transform-origin: left center;
  transition: transform 360ms ease;
}

.loading-progress span::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 237, 190, 0.95), transparent);
  animation: loading-stride 920ms cubic-bezier(0.42, 0, 0.22, 1) infinite;
}

.loading-status {
  margin: -2px 0 0;
  color: rgba(233, 226, 211, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

@keyframes horse-gallop {
  0%, 100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  28% {
    transform: scale(1.055) translate3d(-0.45%, -0.55%, 0) rotate(-0.18deg);
  }
  62% {
    transform: scale(1.048) translate3d(0.38%, 0.32%, 0) rotate(0.16deg);
  }
}

@keyframes horse-speed-lines {
  from { transform: translateX(0); }
  to { transform: translateX(-128px); }
}

@keyframes horse-dust {
  0%, 100% {
    opacity: 0.48;
    transform: translate3d(-5%, 0, 0) scaleX(0.96);
  }
  50% {
    opacity: 0.78;
    transform: translate3d(5%, -4px, 0) scaleX(1.04);
  }
}

@keyframes loading-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes loading-stride {
  from { transform: translateX(-100%); }
  to { transform: translateX(240%); }
}

@keyframes loading-hoof {
  0%, 100% {
    opacity: 0.22;
    transform: translate3d(0, 4px, 0) rotate(var(--hoof-rotate)) scale(0.82);
  }
  48% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) rotate(calc(var(--hoof-rotate) * -0.6)) scale(1);
  }
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050404;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.intro-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-duration: 500ms;
}

.intro-video {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: contain;
  filter: saturate(0.78) contrast(1.12) brightness(0.72);
  transform-origin: center;
  animation: intro-cinema 16s ease-in-out infinite alternate;
  opacity: 1;
  transition: filter 2000ms ease, opacity 1400ms ease;
}

.intro-gate.is-loading-igniting .intro-video {
  filter: saturate(3.78) contrast(1.2) brightness(0.94);
}

.intro-gate.is-inking .intro-video {
  opacity: 0;
  transition: opacity 500ms ease;
}

.intro-shade {
  position: absolute;
  inset: 0;
}

.intro-shade::before,
.intro-shade::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: clamp(30px, 7vh, 78px);
  background: #050404;
}

.intro-shade::before {
  top: 0;
}

.intro-shade::after {
  bottom: 0;
}

.intro-content {
  position: relative;
  bottom: -27%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  transition: opacity 500ms ease, transform 500ms ease;
}

.intro-gate.is-igniting .intro-content {
  pointer-events: none;
}

.intro-gate.is-transitioning .intro-content {
  opacity: 0;
  transform: translateY(12px);
}

.intro-slider {
  --slider-progress: 0px;
  --slider-max: 256px;
  width: min(420px, 82vw);
  padding: 6px;
  border: 1px solid rgba(233, 196, 128, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(20, 11, 7, 0.82), rgba(54, 28, 14, 0.58)),
    rgba(6, 5, 4, 0.72);
  box-shadow:
    inset 0 0 24px rgba(244, 157, 64, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.45);
  touch-action: none;
  user-select: none;
}

.intro-slider:focus-visible {
  outline: 2px solid rgba(242, 193, 104, 0.78);
  outline-offset: 6px;
}

.intro-slider-track {
  position: relative;
  min-height: 40px;
  overflow: visible;
  border-radius: 999px;
  background:
    radial-gradient(circle at 14% 50%, rgba(234, 135, 54, 0.2), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(73, 44, 24, 0.42));
}

.intro-slider-track::before {
  content: "";
  position: absolute;
  inset: 10px 68px;
  border-top: 1px solid rgba(231, 193, 126, 0.25);
  border-bottom: 1px solid rgba(231, 193, 126, 0.11);
  opacity: 0.8;
}

.intro-slider-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--slider-progress) + 48px);
  background: linear-gradient(90deg, rgba(169, 41, 34, 0.22), rgba(239, 144, 57, 0.18), transparent);
  filter: blur(0.2px);
  pointer-events: none;
}

.intro-slider-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 86px;
  color: rgba(233, 226, 211, 0.68);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  transition: opacity 260ms ease;
}

.intro-slider.is-dragging .intro-slider-copy,
.intro-slider.is-complete .intro-slider-copy {
  opacity: 0.36;
}

.intro-match {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 110, 0.25), rgba(127, 54, 25, 0.2) 42%, rgba(0, 0, 0, 0.6));
  box-shadow: 0 0 26px rgba(237, 128, 39, 0.28), 0 12px 30px rgba(0, 0, 0, 0.42);
  transform: translate3d(var(--slider-progress), -50%, 0);
  transition: transform 120ms ease, opacity 360ms ease, filter 360ms ease;
  touch-action: none;
}

.intro-match img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 159, 55, 0.72));
  pointer-events: none;
}

.intro-slider.is-complete .intro-match {
  opacity: 0;
  filter: blur(5px);
}

.intro-lantern-target {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 2;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
  pointer-events: none;
}

.intro-lantern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 260ms ease, transform 1200ms cubic-bezier(0.2, 0.84, 0.22, 1), filter 700ms ease;
}

.intro-lantern-light {
  opacity: 0;
}

.intro-slider.is-complete .intro-lantern-dark {
  opacity: 0;
}

.intro-slider.is-complete .intro-lantern-light {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255, 196, 105, 0.86)) drop-shadow(0 0 34px rgba(212, 74, 51, 0.42));
  transform: translate3d(0, -96px, 0) scale(0.78);
}

.intro-transition {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 82%, rgba(189, 89, 38, 0.16), transparent 36%),
    rgba(0, 0, 0, 0.68);
  transition: opacity 500ms ease;
}

.intro-gate.is-lantern-rise .intro-transition {
  opacity: 1;
}

.intro-float-lantern {
  position: absolute;
  bottom: var(--lantern-bottom, -100px);
  left: var(--lantern-left, 50%);
  width: var(--lantern-size, 42px);
  height: var(--lantern-size, 42px);
  opacity: 0;
  animation: none;
  will-change: transform, opacity;
}

.intro-float-lantern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/icon_totop_light.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 14px rgba(255, 197, 105, 0.76));
  transform-origin: 50% 72%;
  will-change: transform;
}

.intro-gate.is-lantern-rise .intro-float-lantern {
  animation: lantern-float var(--lantern-duration, 3000ms) cubic-bezier(0.16, 0.74, 0.3, 1) forwards;
  animation-delay: var(--lantern-delay, 0ms);
}

.intro-gate.is-lantern-rise .intro-float-lantern::before {
  animation: lantern-sway var(--lantern-sway-duration, 1750ms) ease-in-out infinite alternate;
  animation-delay: var(--lantern-delay, 0ms);
}

.intro-float-lantern:nth-child(1) { --lantern-left: 11%; --lantern-size: 78px; --lantern-bottom: -118px; --lantern-delay: 0ms; --lantern-duration: 3400ms; --lantern-sway-duration: 2100ms; --lantern-drift: 28px; --lantern-rise: -54vh; --lantern-scale: 1.08; --lantern-sway: -18px; --lantern-tilt: -5deg; }
.intro-float-lantern:nth-child(2) { --lantern-left: 30%; --lantern-size: 112px; --lantern-bottom: -154px; --lantern-delay: 130ms; --lantern-duration: 4100ms; --lantern-sway-duration: 2600ms; --lantern-drift: -34px; --lantern-rise: -78vh; --lantern-scale: 1.2; --lantern-sway: 26px; --lantern-tilt: 6deg; }
.intro-float-lantern:nth-child(3) { --lantern-left: 51%; --lantern-size: 92px; --lantern-bottom: -98px; --lantern-delay: 280ms; --lantern-duration: 3600ms; --lantern-sway-duration: 2350ms; --lantern-drift: 22px; --lantern-rise: -62vh; --lantern-scale: 1.12; --lantern-sway: -28px; --lantern-tilt: -7deg; }
.intro-float-lantern:nth-child(4) { --lantern-left: 70%; --lantern-size: 126px; --lantern-bottom: -170px; --lantern-delay: 70ms; --lantern-duration: 4400ms; --lantern-sway-duration: 2850ms; --lantern-drift: -42px; --lantern-rise: -84vh; --lantern-scale: 1.24; --lantern-sway: 30px; --lantern-tilt: 5deg; }
.intro-float-lantern:nth-child(5) { --lantern-left: 88%; --lantern-size: 72px; --lantern-bottom: -76px; --lantern-delay: 420ms; --lantern-duration: 3200ms; --lantern-sway-duration: 1950ms; --lantern-drift: -24px; --lantern-rise: -46vh; --lantern-scale: 1; --lantern-sway: -20px; --lantern-tilt: -6deg; }

.intro-gate.is-hidden .intro-transition {
  opacity: 0;
}

.intro-hint {
  margin: 0;
  color: rgba(233, 226, 211, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.86);
}

@keyframes intro-cinema {
  from { transform: scale(1.01) translate3d(-0.5%, 0, 0); }
  to { transform: scale(1.08) translate3d(0.6%, -0.5%, 0); }
}

@keyframes lantern-float {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) scale(0.74);
  }
  16% {
    opacity: 0.92;
    transform: translate3d(calc(-50% + var(--lantern-drift, 12px) * 0.12), calc(var(--lantern-rise, -64vh) * 0.18), 0) scale(0.84);
  }
  72% {
    opacity: 0.72;
    transform: translate3d(calc(-50% + var(--lantern-drift, 12px) * 0.72), calc(var(--lantern-rise, -64vh) * 0.74), 0) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--lantern-drift, 12px)), var(--lantern-rise, -72vh), 0) scale(var(--lantern-scale, 1.18));
  }
}

@keyframes lantern-sway {
  0% {
    transform: translate3d(calc(var(--lantern-sway, 16px) * -0.6), 0, 0) rotate(calc(var(--lantern-tilt, 5deg) * -0.7));
  }
  50% {
    transform: translate3d(calc(var(--lantern-sway, 16px) * 0.45), -7px, 0) rotate(calc(var(--lantern-tilt, 5deg) * 0.38));
  }
  100% {
    transform: translate3d(var(--lantern-sway, 16px), 0, 0) rotate(var(--lantern-tilt, 5deg));
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(4px);
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: color 220ms ease;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(213, 74, 51, 0.22));
}

.site-nav {
  display: flex;
  gap: 34px;
  color: var(--paper-muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  transition: color 220ms ease;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--paper);
}

.site-header.is-dark-nav {
  border-bottom-color: rgba(18, 16, 14, 0.16);
  background: rgba(239, 233, 219, 0.22);
}

.site-header.is-dark-nav .brand,
.site-header.is-dark-nav .site-nav {
  color: rgba(18, 16, 14, 0.76);
}

.site-header.is-dark-nav .site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  padding: 8px;
  background: transparent;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 130px 7vw 80px;
  isolation: isolate;
  overflow: hidden;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.08) brightness(0.74);
}

.hero-shade {
  z-index: -2;
  box-shadow: inset 38vw 0 18vw rgba(4, 4, 4, 0.72), inset 0 -18vh 15vh rgba(5, 5, 5, 0.62);
}

.hero-copy {
  width: min(650px, 55vw);
  padding-top: 22px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.hero h1 {
  margin: 0;
}

.hero h1 img {
  display: block;
  width: min(620px, 52vw);
  height: auto;
  filter: drop-shadow(0 7px 22px rgba(0, 0, 0, 0.58));
}

.hero-line {
  margin: 34px 0;
  padding-left: 20px;
  border-left: 1px solid var(--red-bright);
  color: #d8d0c4;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.9;
  letter-spacing: 0.12em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  cursor: pointer;
  letter-spacing: 0.14em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #f5eee2;
  background: var(--red);
}

.button-primary:hover {
  background: #c23a2d;
}

.button-light {
  color: var(--ink);
  background: var(--paper);
}

.text-link {
  color: var(--paper-muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.text-link span {
  display: inline-block;
  margin-left: 8px;
  color: var(--red-bright);
}

.countdown-card {
  position: absolute;
  right: 4vw;
  bottom: 7vh;
  width: min(440px, 39vw);
  padding: 22px 26px;
  border: 1px solid rgba(233, 226, 211, 0.28);
  background: rgba(10, 9, 9, 0.78);
  backdrop-filter: blur(16px);
}

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

.countdown-heading p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.73rem;
  letter-spacing: 0.18em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 5px rgba(213, 74, 51, 0.15);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 16px;
}

.countdown div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.countdown strong {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  color: var(--gold);
  font-size: 0.66rem;
}

.event-date {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--paper-muted);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.countdown-open-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  color: #f5e9d5;
  border: 1px solid rgba(213, 74, 51, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 105, 0.2), transparent 48%),
    rgba(169, 41, 34, 0.76);
  box-shadow: 0 0 24px rgba(213, 74, 51, 0.22), inset 0 0 22px rgba(255, 220, 161, 0.08);
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.countdown-open-link[hidden] {
  display: none;
}

.countdown-open-link:hover,
.countdown-open-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 193, 104, 0.82);
  box-shadow: 0 0 32px rgba(213, 74, 51, 0.36), inset 0 0 24px rgba(255, 220, 161, 0.14);
}

.hero-index {
  position: absolute;
  left: 2.4vw;
  bottom: 7vh;
  margin: 0;
  color: rgba(233, 226, 211, 0.48);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.bgvideo {
  position: relative;
  height: clamp(560px, 66.667vw, 1100px);
  overflow: hidden;
  isolation: isolate;
  background-color: #050404;
}

.bgvideo-container {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  min-width: 100%;
  aspect-ratio: 3 / 2;
  background-image: url("assets/bg_video.webp");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: translateX(-50%);
}

.bgvideo-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("assets/bg_video_foreground.webp");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.bgvideo-player {
  position: absolute;
  z-index: 1;
  top: 47.4%;
  left: 14.25%;
  width: 71.6%;
  height: 37.2%;
  overflow: hidden;
  border: 1px solid rgba(217, 165, 93, 0.34);
  background: rgba(12, 8, 4, 0.72);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(36, 20, 10, 0.62) inset,
    0 0 44px rgba(234, 124, 35, 0.15);
  clip-path: polygon(1.3% 3.8%, 98.6% 3.8%, 98.8% 96%, 1.2% 96.6%);
}

.bgvideo-player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow:
    inset 0 0 42px rgba(0, 0, 0, 0.58),
    inset 0 -42px 38px rgba(0, 0, 0, 0.42);
}

.bgvideo-media {
  position: absolute;
  inset: 0;
  width: 98%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.08) brightness(0.88);
}

.bgvideo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(70px, 7vw, 104px);
  height: clamp(70px, 7vw, 104px);
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(244, 192, 115, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(22, 13, 7, 0.96) 0 48%, rgba(147, 69, 21, 0.75) 64%, rgba(244, 166, 74, 0.16) 100%);
  box-shadow:
    0 0 0 5px rgba(27, 12, 6, 0.68),
    0 0 0 7px rgba(214, 142, 54, 0.18),
    0 0 30px rgba(255, 142, 49, 0.64),
    inset 0 0 24px rgba(255, 183, 84, 0.24);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.bgvideo-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 8%;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid #ffd69a;
  filter: drop-shadow(0 0 10px rgba(255, 151, 50, 0.9));
}

.bgvideo-play:hover,
.bgvideo-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 5px rgba(27, 12, 6, 0.72),
    0 0 0 8px rgba(244, 183, 94, 0.28),
    0 0 42px rgba(255, 166, 69, 0.86),
    inset 0 0 28px rgba(255, 214, 151, 0.3);
}

.bgvideo-player.is-playing .bgvideo-play {
  opacity: 0;
  pointer-events: none;
}

.twoside {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(410px, 42vw, 640px);
  overflow: hidden;
  isolation: isolate;
  background-color: #050404;
  background-image: url("assets/bg_twoside.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.twoside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow:
    inset 0 7vw 8vw rgba(0, 0, 0, 0.54),
    inset 0 -6vw 7vw rgba(0, 0, 0, 0.48);
}

.twoside::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 50%;
  width: 1px;
  background: rgba(180, 148, 94, 0.26);
  box-shadow: 0 0 22px rgba(180, 148, 94, 0.18);
}

.twoside-ornament {
  position: absolute;
  top: clamp(18px, 3vw, 38px);
  left: 50%;
  z-index: 1;
  color: #b9a071;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  white-space: nowrap;
  transform: translateX(-50%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.twoside-ornament span {
  display: inline-block;
}

.twoside-ornament::before,
.twoside-ornament::after {
  content: "";
  display: inline-block;
  width: 88px;
  height: 1px;
  margin: 0 15px 0.28em;
  background: rgba(180, 148, 94, 0.46);
}

.twoside-arrow {
  display: block;
  width: 18px;
  height: 18px;
  margin: 9px auto 0;
  border-right: 3px solid rgba(232, 196, 128, 0.86);
  border-bottom: 3px solid rgba(232, 196, 128, 0.86);
  filter: drop-shadow(0 0 8px rgba(225, 149, 64, 0.42));
  transform: rotate(45deg);
  animation: twoside-arrow-float 1600ms ease-in-out infinite;
}

.twoside-panel {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(88px, 8vw, 130px) 6vw 6vw;
  text-align: center;
}

.twoside-modern {
  color: #dcecff;
}

.twoside-ancient {
  color: #ffba72;
}

.twoside-kicker {
  margin: 0 0 14px;
  color: rgba(233, 226, 211, 0.62);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.twoside h3 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.72);
}

.twoside p:not(.twoside-kicker) {
  margin: 18px 0 28px;
  color: rgba(244, 235, 221, 0.84);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  letter-spacing: 0.12em;
}

.twoside-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 42px;
  padding: 0 22px;
  color: #f6dfb8;
  border: 1px solid rgba(180, 148, 94, 0.38);
  border-radius: 999px;
  background: rgba(16, 8, 4, 0.58);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.36), inset 0 0 18px rgba(180, 148, 94, 0.09);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.twoside-button:hover,
.twoside-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(238, 190, 108, 0.76);
  box-shadow: 0 0 28px rgba(215, 125, 37, 0.28), inset 0 0 22px rgba(180, 148, 94, 0.14);
}

.twoside-button span {
  margin-left: 8px;
}

@keyframes twoside-arrow-float {
  0%, 100% {
    opacity: 0.62;
    transform: translateY(0) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(7px) rotate(45deg);
  }
}

.fate-window {
  position: relative;
  height: clamp(560px, 56.3vw, 980px);
  overflow: hidden;
  background: #050404;
  isolation: isolate;
}

.fate-window-stage {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  min-width: 100%;
  aspect-ratio: 1672 / 941;
  transform: translateX(-50%);
}

.fate-window-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("assets/bg_video2_foreground.webp");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.fate-window-video {
  position: absolute;
  top: 19.98%;
  left: 20.16%;
  z-index: 1;
  width: 58.8%;
  height: 57.4%;
  overflow: hidden;
  background: #090807;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.56);
}

.fate-window-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.16) contrast(1.08) brightness(0.82);
}

.fate-window-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(64px, 5.8vw, 98px);
  height: clamp(64px, 5.8vw, 98px);
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(244, 199, 127, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(31, 18, 9, 0.9) 0 48%, rgba(151, 78, 28, 0.66) 64%, rgba(244, 166, 74, 0.12) 100%);
  box-shadow:
    0 0 0 5px rgba(13, 8, 5, 0.62),
    0 0 34px rgba(255, 166, 69, 0.58),
    inset 0 0 24px rgba(255, 223, 169, 0.22);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.fate-window-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #ffe0a9;
  filter: drop-shadow(0 0 10px rgba(255, 176, 78, 0.9));
}

.fate-window-play:hover,
.fate-window-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 6px rgba(13, 8, 5, 0.68),
    0 0 44px rgba(255, 166, 69, 0.82),
    inset 0 0 28px rgba(255, 223, 169, 0.3);
}

.fate-window-video.is-playing .fate-window-play {
  opacity: 0;
  pointer-events: none;
}

.fate-window-copy {
  position: absolute;
  z-index: 4;
  color: #e7cfaa;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

.fate-window-copy-left {
  top: 18.2%;
  left: 7.8%;
  width: 15%;
}

.fate-window-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 28px;
  color: rgba(232, 203, 154, 0.86);
  font-size: clamp(0.7rem, 0.82vw, 0.86rem);
  letter-spacing: 0.44em;
}

.fate-window-kicker::before,
.fate-window-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(201, 162, 99, 0.38);
}

.fate-window h2 {
  margin: 0 0 26px;
  color: #ead0a5;
  font-size: clamp(3.2rem, 4.8vw, 6.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.18em;
}

.fate-window-copy-left p:not(.fate-window-kicker) {
  color: rgba(238, 220, 187, 0.9);
  font-size: clamp(0.82rem, 0.95vw, 1.04rem);
  line-height: 2.15;
  letter-spacing: 0.1em;
}

.fate-window-copy-right {
  top: 20.5%;
  right: 8.6%;
  writing-mode: vertical-rl;
}

.fate-window-copy-right p {
  margin: 0;
  color: rgba(236, 214, 178, 0.92);
  font-size: clamp(1.08rem, 1.45vw, 1.58rem);
  line-height: 2.35;
  letter-spacing: 0.18em;
}



.section {
  position: relative;
  padding: 130px 8vw;
}

.section h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.04em;
}

.section h2 em,
.final-cta h2 em {
  color: var(--red-bright);
  font-style: normal;
}

.section-number {
  position: absolute;
  top: 128px;
  left: 3vw;
  color: rgba(233, 226, 211, 0.18);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.world {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10vw;
  min-height: 850px;
  align-items: center;
  background-color: #11100f;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H72M0 0V72' fill='none' stroke='%23b4945e' stroke-opacity='.07'/%3E%3C/svg%3E");
  background-size: 72px 72px;
}

.world-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.world-copy p {
  color: var(--paper-muted);
  line-height: 2.05;
  letter-spacing: 0.06em;
}

.world-copy .lead {
  margin-top: 0;
  color: var(--paper);
  font-size: 1.18rem;
}

.world blockquote {
  margin: 44px 0 0;
  padding: 24px 0 24px 28px;
  border-left: 2px solid var(--red);
  color: #d7c5a9;
  font-size: 1.25rem;
  line-height: 1.8;
}

.world-seal {
  position: absolute;
  right: 4vw;
  bottom: 3vw;
  color: rgba(169, 41, 34, 0.2);
  font-size: 9rem;
  font-weight: 900;
  line-height: 0.8;
  transform: rotate(-8deg);
}

.daily-lanterns {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(213, 74, 51, 0.18), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(180, 148, 94, 0.16), transparent 24%),
    linear-gradient(135deg, #120c0a, #080707 58%, #1a0907);
}

.daily-lanterns::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(242, 193, 104, 0.16) 0 1px, transparent 1.5px),
    linear-gradient(90deg, transparent, rgba(180, 148, 94, 0.06), transparent);
  background-size: 92px 92px, 100% 100%;
  opacity: 0.7;
}

.daily-lantern-status {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  margin: -34px auto 34px;
  padding: 10px 18px;
  color: rgba(233, 226, 211, 0.78);
  border: 1px solid rgba(180, 148, 94, 0.28);
  background: rgba(7, 6, 5, 0.52);
  font-size: 0.8rem;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-align: center;
}

.daily-lantern-status-line {
  display: block;
  margin-top: 3px;
  color: rgba(233, 226, 211, 0.56);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.daily-lantern-notice {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 34px auto 0;
  padding: 16px 28px;
  color: rgba(233, 226, 211, 0.72);
  border: 1px solid rgba(180, 148, 94, 0.38);
  background:
    linear-gradient(90deg, rgba(242, 193, 104, 0.64) 0 24px, transparent 24px calc(100% - 24px), rgba(242, 193, 104, 0.64) calc(100% - 24px)) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(242, 193, 104, 0.64) 0 24px, transparent 24px calc(100% - 24px), rgba(242, 193, 104, 0.64) calc(100% - 24px)) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(242, 193, 104, 0.64) 0 18px, transparent 18px calc(100% - 18px), rgba(242, 193, 104, 0.64) calc(100% - 18px)) left / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(242, 193, 104, 0.64) 0 18px, transparent 18px calc(100% - 18px), rgba(242, 193, 104, 0.64) calc(100% - 18px)) right / 1px 100% no-repeat,
    linear-gradient(90deg, transparent, rgba(180, 148, 94, 0.08), transparent),
    rgba(7, 6, 5, 0.44);
  box-shadow:
    inset 0 0 22px rgba(180, 148, 94, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.2);
  font-size: 0.72rem;
  line-height: 1.9;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
}

.daily-lantern-notice::before,
.daily-lantern-notice::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(220px, 46vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 193, 104, 0.7), transparent);
  transform: translateX(-50%);
}

.daily-lantern-notice::before {
  top: -1px;
}

.daily-lantern-notice::after {
  bottom: -1px;
}

.daily-lantern-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.daily-lantern {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 230px;
  padding: 20px 10px 18px;
  color: rgba(233, 226, 211, 0.64);
  cursor: pointer;
  border: 1px solid rgba(180, 148, 94, 0.22);
  background:
    linear-gradient(180deg, rgba(24, 14, 9, 0.78), rgba(7, 6, 5, 0.68));
  box-shadow: inset 0 0 28px rgba(180, 148, 94, 0.05), 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.daily-lantern[disabled] {
  cursor: not-allowed;
}

.daily-lantern.is-missed {
  color: rgba(233, 226, 211, 0.36);
  border-color: rgba(233, 226, 211, 0.1);
  background:
    linear-gradient(180deg, rgba(18, 16, 15, 0.72), rgba(7, 6, 5, 0.68));
}

.daily-lantern:not([disabled]):hover,
.daily-lantern:not([disabled]):focus-visible {
  color: #f3d49d;
  transform: translateY(-4px);
  border-color: rgba(242, 193, 104, 0.68);
  box-shadow: inset 0 0 30px rgba(180, 148, 94, 0.1), 0 24px 52px rgba(0, 0, 0, 0.34), 0 0 26px rgba(213, 74, 51, 0.16);
}

.daily-lantern-icon {
  display: block;
  width: clamp(54px, 6vw, 82px);
  height: clamp(54px, 6vw, 82px);
  background: url("assets/icon_totop_dark.webp") center / contain no-repeat;
  filter: grayscale(0.35) brightness(0.7);
  opacity: 0.74;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.daily-lantern.is-lit .daily-lantern-icon {
  background-image: url("assets/icon_totop_light.webp");
  filter: drop-shadow(0 0 18px rgba(242, 193, 104, 0.5));
  opacity: 1;
}

.daily-lantern.is-lit .daily-lantern-icon {
  transform: translateY(-6px);
}

.daily-lantern.is-missed .daily-lantern-icon {
  filter: grayscale(1) brightness(0.42);
  opacity: 0.38;
}

.daily-lantern-date {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.daily-lantern-title {
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.daily-lantern-name {
  color: rgba(233, 226, 211, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.daily-lantern-action {
  margin-top: auto;
  color: rgba(233, 226, 211, 0.54);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.daily-lantern.is-available .daily-lantern-action {
  color: #f0c982;
}

.daily-lantern.is-lit .daily-lantern-action {
  color: var(--red-bright);
}

.daily-lantern.is-missed .daily-lantern-action {
  color: rgba(233, 226, 211, 0.36);
}

.characters {
  background: #090808;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 70px;
}

.section-note {
  margin: 0 0 14px;
  color: var(--paper-muted);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 590px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.character-slider {
  display: none;
}

.character-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 28px 22px;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background-color: #0d0c0b;
  background-size: cover;
  background-position: center;
  transition: flex 300ms ease, filter 300ms ease;
  isolation: isolate;
}
.character-card:nth-child(1) { background-image: url("assets/character_01.webp"); }
.character-card:nth-child(2) { background-image: url("assets/character_02.webp"); }
.character-card:nth-child(3) { background-image: url("assets/character_03.webp"); }
.character-card:nth-child(4) { background-image: url("assets/character_04.webp"); }
.character-card:nth-child(5) { background-image: url("assets/character_05.webp"); border-right: 0; }


.character-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.34), transparent 18% 82%, rgba(4, 4, 4, 0.34)),
    rgba(4, 4, 4, 0.72);
  transition: background 300ms ease;
}

.character-card:hover::before,
.character-card.is-active::before {
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.2), transparent 22% 78%, rgba(4, 4, 4, 0.22)),
    rgba(4, 4, 4, 0.42);
}

.character-card:focus-visible {
  outline: 2px solid rgba(242, 193, 104, 0.78);
  outline-offset: 4px;
}

.character-card.is-active {
  grid-column: span 1;
}

.card-no {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.card-present {
  margin-top: auto;
  font-size: clamp(1.7rem, 2.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.card-role {
  margin-top: 16px;
  color: #bdb3a5;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.card-past {
  display: inline-block;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--red-bright);
  color: #f0d9bd;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.card-quote {
  min-height: 94px;
  margin-top: 22px;
  color: #e6ded1;
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease 80ms, transform 240ms ease 80ms;
}

.card-action {
  margin-top: 12px;
  color: var(--paper-muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.character-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 18px 0 12px;
  color: #f4d7a0;
  border: 1px solid rgba(180, 148, 94, 0.48);
  background: rgba(10, 8, 7, 0.72);
  box-shadow: inset 0 0 18px rgba(180, 148, 94, 0.1), 0 0 22px rgba(0, 0, 0, 0.38);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.character-open-link::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 30px;
  background: url("assets/icon_light.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(242, 193, 104, 0.42));
  transform: translateY(-1px);
}

.character-open-link[hidden] {
  display: none;
}

.character-open-link:hover,
.character-open-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 193, 104, 0.82);
  background: rgba(87, 31, 20, 0.76);
  box-shadow: inset 0 0 22px rgba(180, 148, 94, 0.14), 0 0 28px rgba(222, 142, 42, 0.28);
}

.character-profile-page {
  min-height: 100svh;
  color: var(--paper);
  background: #070606;
}

.character-profile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  min-height: 100svh;
  padding: clamp(78px, 8vw, 130px) 8vw;
  overflow: hidden;
  isolation: isolate;
}

.character-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.34) 48%, rgba(5, 5, 5, 0.82)),
    var(--profile-image) center / cover no-repeat;
}

.character-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 64% 45%, rgba(213, 74, 51, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.profile-back {
  position: absolute;
  top: 34px;
  left: 8vw;
  color: rgba(233, 226, 211, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.profile-copy {
  max-width: 560px;
}

.profile-copy .eyebrow {
  color: #d9bd84;
}

.profile-copy h1 {
  margin: 18px 0 20px;
  color: #f2d29a;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
}

.profile-role {
  margin: 0 0 34px;
  color: rgba(233, 226, 211, 0.78);
  letter-spacing: 0.16em;
}

.profile-quote {
  margin: 0;
  padding-left: 24px;
  color: #ead9be;
  border-left: 2px solid var(--red-bright);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.profile-note {
  margin: 32px 0 0;
  color: rgba(233, 226, 211, 0.62);
  line-height: 2;
  letter-spacing: 0.08em;
}

.profile-stamp {
  justify-self: center;
  color: rgba(169, 41, 34, 0.28);
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 900;
  line-height: 0.86;
  writing-mode: vertical-rl;
}

.character-card.is-active .card-past,
.character-card.is-active .card-quote {
  opacity: 1;
  transform: translateY(0);
}

.character-card.is-active .card-action {
  color: var(--red-bright);
}

.rewards {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: clamp(34px, 5vw, 70px);
  overflow: hidden;
  background-color: #090807;
  background-image: url("assets/bg_reward.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  isolation: isolate;
}

.rewards::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow:
    inset 0 0 12vw rgba(0, 0, 0, 0.54),
    inset 0 -16vh 15vh rgba(0, 0, 0, 0.5);
}

.rewards-intro {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 12px;
}

.rewards-intro > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(233, 226, 211, 0.86);
  letter-spacing: 0.16em;
  line-height: 1.9;
}

.rewards .eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  color: #ddbf83;
  font-size: 1.25rem;
  letter-spacing: 0.34em;
}

.rewards .eyebrow::before,
.rewards .eyebrow::after {
  content: "";
  width: 160px;
  height: 1px;
  background: rgba(180, 148, 94, 0.46);
}

.rewards h2 {
  color: #f2d29a;
  font-size: clamp(4.2rem, 8vw, 9rem);
  line-height: 0.95;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.64), 0 0 22px rgba(225, 157, 70, 0.2);
}

.reward-list {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(260px, 1fr) minmax(220px, 0.82fr);
  align-items: end;
  gap: clamp(28px, 4vw, 70px);
  width: min(1180px, 92vw);
  margin: 0 auto;
  min-height: clamp(430px, 46vw, 610px);
}

.reward-entry {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}

.reward-first {
  align-self: stretch;
}

.reward-button {
  min-width: 158px;
  min-height: 40px;
  padding: 0 22px;
  color: #ead4a8;
  cursor: pointer;
  border: 1px solid rgba(180, 148, 94, 0.42);
  background: rgba(14, 10, 7, 0.62);
  box-shadow: inset 0 0 18px rgba(180, 148, 94, 0.1), 0 0 22px rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.reward-button:hover,
.reward-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 193, 104, 0.78);
  box-shadow: inset 0 0 20px rgba(180, 148, 94, 0.16), 0 0 28px rgba(222, 142, 42, 0.28);
}

.reward-notice {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 7vw;
  color: rgba(233, 226, 211, 0.76);
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.98), rgba(35, 16, 13, 0.92), rgba(9, 8, 7, 0.98));
  text-align: center;
}

.reward-notice::before,
.reward-notice::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(520px, 68vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 148, 94, 0.42), transparent);
  transform: translateX(-50%);
}

.reward-notice::before {
  top: 0;
}

.reward-notice::after {
  bottom: 0;
}

.reward-notice p {
  margin: 0;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  line-height: 1.8;
  letter-spacing: 0.16em;
}

.creator {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(620px, 1.45fr);
  gap: clamp(42px, 6vw, 110px);
  align-items: center;
  min-height: 780px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.54), transparent 34%),
    linear-gradient(90deg, rgba(226, 217, 199, 0.92), rgba(239, 233, 219, 0.98) 42%, rgba(231, 221, 203, 0.92));
  color: var(--ink);
  isolation: isolate;
}

.creator::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 10%, rgba(148, 125, 91, 0.16), transparent 26%),
    radial-gradient(circle at 82% 80%, rgba(151, 126, 83, 0.12), transparent 28%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.16'/%3E%3C/svg%3E");
  opacity: 0.72;
}

.creator::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow:
    inset 0 0 10vw rgba(97, 72, 38, 0.12),
    inset 0 -12vh 18vh rgba(105, 79, 46, 0.1);
}

.creator .eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.28em;
}

.creator-monogram {
  position: absolute;
  top: 50%;
  left: -0.5vw;
  z-index: -1;
  color: rgba(120, 101, 76, 0.18);
  font-size: clamp(10rem, 18vw, 19rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.08em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.creator-copy h2 {
  margin: 34px 0 20px;
  font-size: clamp(4rem, 7vw, 7.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: #111;
}

.creator-tagline {
  color: var(--red);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  letter-spacing: 0.12em;
}

.creator-copy > p:not(.eyebrow):not(.creator-tagline) {
  max-width: 470px;
  color: rgba(60, 54, 46, 0.76);
  line-height: 1.95;
  letter-spacing: 0.08em;
}

.creator-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 20px;
  margin-top: 34px;
}

.creator-links a {
  padding-bottom: 5px;
  color: #1b1712;
  border-bottom: 1px solid rgba(27, 23, 18, 0.75);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}
.creator-links a:hover,.creator-links a:focus,.creator-links a:active{
  color: #ab2f29;
  border-color: #ab2f29;
}

.creator-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: clamp(42px, 5vw, 88px);
  align-items: end;
}
.creator-gallery.one {
  display: grid;
  grid-template-columns: repeat(1, minmax(240px, 1fr));
  gap: clamp(42px, 5vw, 88px);
  align-items: end;
}

@media (min-width: 1001px) {
  .creator-gallery.one {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.creator-card {
  position: relative;
}

.creator-portrait {
  position: relative;
  margin: 0;
  min-height: clamp(390px, 33vw, 520px);
  display: grid;
  align-items: end;
  isolation: isolate;
}

.creator-portrait::before,
.creator-portrait::after {
  content: "";
  position: absolute;
  inset: 6% -4% 0;
  z-index: -1;
  pointer-events: none;
}

.creator-portrait::before {
  background:
    radial-gradient(ellipse at 52% 42%, rgba(96, 92, 82, 0.32), transparent 62%),
    radial-gradient(ellipse at 50% 62%, rgba(255, 255, 255, 0.78), transparent 68%);
  filter: blur(1px);
}

.creator-portrait::after {
  background:
    linear-gradient(90deg, transparent, rgba(92, 80, 62, 0.28), transparent) bottom 8% center / 82% 1px no-repeat,
    radial-gradient(ellipse at 54% 50%, rgba(77, 72, 64, 0.16), transparent 66%);
  mask-image: radial-gradient(ellipse at center, #000 48%, transparent 72%);
}

.creator-portrait img {
  width: 100%;
  max-height: clamp(360px, 32vw, 510px);
  object-fit: cover;
  object-position: center 28%;
  filter: sepia(0.12) saturate(0.82) contrast(0.98);
  mix-blend-mode: multiply;
  mask-image:
    radial-gradient(ellipse at 52% 45%, #000 0 46%, rgba(0, 0, 0, 0.86) 58%, transparent 76%),
    linear-gradient(#000, #000);
  mask-composite: intersect;
}

.creator-card:nth-child(2) .creator-portrait img {
  object-position: center 20%;
}

.creator-portrait figcaption {
  position: absolute;
  top: 42%;
  right: 5%;
  padding: 18px 7px;
  color: #1d1711;
  background: rgba(244, 239, 225, 0.72);
  border: 1px solid rgba(105, 86, 58, 0.18);
  box-shadow: 0 12px 28px rgba(79, 61, 38, 0.12);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.creator-portrait figcaption::after {
  content: "印";
  display: block;
  margin-top: 10px;
  color: #9f3027;
  border: 1px solid rgba(159, 48, 39, 0.55);
  font-size: 0.68em;
  line-height: 1;
}

.creator-card p{
  position: relative;
  max-width: 420px;
  margin: 18px auto 0;
  padding-top: 24px;
  color: rgba(55, 49, 42, 0.8);
  border-top: 1px solid rgba(93, 76, 50, 0.24);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.8;
  letter-spacing: 0.08em;
}
.creator-content{
  position: relative;
  max-width: 100%;
  margin: 18px auto 0;
  padding-top: 24px;
  color: rgba(55, 49, 42, 0.8);
  border-top: 1px solid rgba(93, 76, 50, 0.24);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.emphsis {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-weight: bolder;
}

.final-cta {
  position: relative;
  min-height: 690px;
  padding: 140px 8vw;
  text-align: center;
  overflow: hidden;
  background-color: #671a17;
}

.final-cta h2 {
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.95;
}

.final-cta > p:not(.eyebrow) {
  margin: 34px auto;
  color: #d9c7b6;
  letter-spacing: 0.1em;
}

.final-stamp {
  position: absolute;
  right: 6vw;
  bottom: -20px;
  color: rgba(233, 226, 211, 0.1);
  font-size: 8rem;
  font-weight: 900;
  line-height: 0.76;
  transform: rotate(8deg);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 4vw;
  color: #706960;
  background: #070606;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.page-controls {
  position: fixed;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 45;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.to-top,
.music-toggle {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 72px;
  padding: 0;
  color: var(--paper-muted);
  cursor: pointer;
  background: transparent;
  letter-spacing: 0.18em;
  transition: color 180ms ease, transform 180ms ease;
}

.to-top:hover,
.to-top:focus-visible,
.to-top:active,
.music-toggle:hover,
.music-toggle:focus-visible,
.music-toggle:active,
.music-toggle.is-playing {
  color: var(--paper);
  transform: translateY(-3px);
}

.music-toggle-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(180, 148, 94, 0.42);
  border-radius: 50%;
  background-color: rgba(8, 6, 5, 0.7);
  background-image: url("assets/icon_mute.webp");
  background-position: center;
  background-size: 62% auto;
  background-repeat: no-repeat;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(180, 148, 94, 0.08);
}

.music-toggle.is-playing .music-toggle-icon,
.music-toggle:hover .music-toggle-icon,
.music-toggle:focus-visible .music-toggle-icon {
  border-color: rgba(238, 190, 108, 0.76);
  box-shadow: 0 0 24px rgba(222, 142, 42, 0.26), inset 0 0 24px rgba(180, 148, 94, 0.14);
}

.music-toggle.is-playing .music-toggle-icon {
  background-image: url("assets/icon_play.webp");
}

.to-top-icons {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
}

.to-top-icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.to-top-icon-light {
  opacity: 0;
}

.to-top:hover .to-top-icon-dark,
.to-top:focus-visible .to-top-icon-dark,
.to-top:active .to-top-icon-dark {
  opacity: 0;
}

.to-top:hover .to-top-icon-light,
.to-top:focus-visible .to-top-icon-light,
.to-top:active .to-top-icon-light {
  opacity: 1;
}

.to-top-text,
.music-toggle-text {
  font-size: 0.72rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.dialog[hidden] {
  display: none;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 58px;
  text-align: center;
  border: 1px solid rgba(180, 148, 94, 0.55);
  background: #14110f;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.dialog-panel h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 500;
}

.dialog-panel > p:not(.eyebrow) {
  color: var(--paper-muted);
  line-height: 1.8;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--paper-muted);
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.forbidden-text{
 color: var(--red);
 font-weight: 800;
}

.reward-dialog[hidden] {
  display: none;
}

.reward-dialog {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  padding: 24px;
}

.reward-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.reward-dialog-panel {
  position: relative;
  width: min(480px, 100%);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 112px 56px 78px;
  color: #ead7b6;
  text-align: center;
  background-image: url("assets/bg_stone.webp");
  background-position: center;
  background-size: contain;
  background-size: 104% 100%;
  background-repeat: no-repeat;
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.68),
    0 0 56px rgba(219, 156, 61, 0.18);
}

.reward-dialog-panel::before {
  content: "";
  position: absolute;
  inset: 20% 18% 17%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18) 48%, transparent 72%);
}

.reward-dialog-close {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 1;
  color: #d8bc86;
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
}

.reward-dialog-rank {
  position: relative;
  z-index: 1;
  color: #d8bc86;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  margin-bottom: 18px;
}

.reward-dialog-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f2d29a;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.16em;
}

.reward-dialog-body {
  position: relative;
  z-index: 1;
  margin: 30px 0 34px;
}

.reward-dialog-prize {
  margin: 0 0 16px;
  color: #f0d7a8;
  font-size: 1.12rem;
  letter-spacing: 0.12em;
}

.reward-dialog-desc {
  margin: 0 auto;
  max-width: 330px;
  color: rgba(233, 226, 211, 0.78);
  font-size: 0.92rem;
  line-height: 1.9;
}

.reward-dialog-confirm {
  position: relative;
  z-index: 1;
  min-width: 148px;
  min-height: 42px;
  color: #ead4a8;
  cursor: pointer;
  border: 1px solid rgba(180, 148, 94, 0.46);
  background: rgba(14, 10, 7, 0.62);
  letter-spacing: 0.14em;
}

.reward-dialog-confirm:hover,
.reward-dialog-confirm:focus-visible {
  border-color: rgba(242, 193, 104, 0.78);
  box-shadow: 0 0 28px rgba(222, 142, 42, 0.28);
}

.lantern-ignite[hidden] {
  display: none;
}

.lantern-ignite {
  position: fixed;
  inset: 0;
  z-index: 132;
  display: grid;
  place-items: center;
  padding: 28px;
}

.lantern-ignite-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 2, 0.76);
  backdrop-filter: blur(5px);
}

.lantern-ignite-panel {
  position: relative;
  width: min(360px, 100%);
  padding: 32px 28px 34px;
  color: var(--paper);
  text-align: center;
  border: 1px solid rgba(180, 148, 94, 0.42);
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 193, 104, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(27, 15, 11, 0.98), rgba(7, 6, 5, 0.98));
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.68), 0 0 52px rgba(213, 74, 51, 0.18);
  transform: translateY(10px) scale(0.96);
  opacity: 0;
}

.lantern-ignite.is-playing .lantern-ignite-panel {
  animation: ignite-panel-in 1200ms ease forwards;
}

.lantern-ignite-panel h2 {
  margin: 8px 0 18px;
  color: #f2d29a;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.lantern-ignite-lamp {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  background: url("assets/icon_totop_dark.webp") center / contain no-repeat;
  filter: brightness(0.62);
}

.lantern-ignite.is-playing .lantern-ignite-lamp {
  animation: ignite-lamp 1200ms ease forwards;
}

.lantern-ignite-lamp::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 104, 0.46), rgba(213, 74, 51, 0.18) 42%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.lantern-ignite.is-playing .lantern-ignite-lamp::after {
  animation: ignite-glow 1200ms ease forwards;
}

.lantern-ignite-text {
  margin: 0;
  color: rgba(233, 226, 211, 0.72);
  font-size: 0.84rem;
  line-height: 1.8;
  letter-spacing: 0.12em;
}

@keyframes ignite-panel-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  22%, 82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes ignite-lamp {
  0%, 28% {
    background-image: url("assets/icon_totop_dark.webp");
    filter: brightness(0.62);
    transform: translateY(4px) scale(0.94);
  }
  44%, 100% {
    background-image: url("assets/icon_totop_light.webp");
    filter: drop-shadow(0 0 24px rgba(242, 193, 104, 0.72));
    transform: translateY(-3px) scale(1.03);
  }
}

@keyframes ignite-glow {
  0%, 28% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
  }
  52% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.34);
  }
}

.lantern-dialog[hidden] {
  display: none;
}

.lantern-dialog {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 28px;
}

.lantern-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 2, 0.78);
  backdrop-filter: blur(6px);
}

.lantern-dialog-panel {
  position: relative;
  width: min(500px, 100%);
  height: auto;
  max-height: 93vh;
  padding: 34px;
  overflow-y: auto;
  color: var(--paper);
  text-align: center;
  border: 1px solid rgba(180, 148, 94, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 193, 104, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(27, 15, 11, 0.98), rgba(7, 6, 5, 0.98));
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.68), 0 0 52px rgba(213, 74, 51, 0.16);
}

.lantern-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(233, 226, 211, 0.72);
  cursor: pointer;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
}

.lantern-dialog-kicker {
  margin-bottom: 12px;
}

.lantern-dialog-panel h2 {
  margin: 0 0 22px;
  color: #f2d29a;
  font-size: clamp(1.2rem, 1vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.lantern-dialog-figure {
  margin: 0;
}

.lantern-dialog-image {
  display: block;
  width: 100%;
  max-height: min(62vh, 520px);
  object-fit: contain;
  border: 1px solid rgba(180, 148, 94, 0.28);
  background: #070606;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.lantern-dialog-caption {
  margin-top: 14px;
  color: rgba(233, 226, 211, 0.72);
  font-size: 0.82rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

.lantern-dialog-caption span + span::before {
  content: "，";
}

.lantern-dialog-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 24px;
  color: #f5e9d5;
  border: 1px solid rgba(213, 74, 51, 0.58);
  background: rgba(169, 41, 34, 0.76);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
}

.lantern-dialog-download:hover,
.lantern-dialog-download:focus-visible {
  border-color: rgba(242, 193, 104, 0.82);
  box-shadow: 0 0 28px rgba(213, 74, 51, 0.32);
}

@media (max-width: 1000px) {
  .hero-copy {
    width: 70vw;
  }

  .countdown-card {
    width: 50vw;
  }

  .world,
  .rewards {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .daily-lantern-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .bgvideo {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .bgvideo-container {
    left: 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    transform: none;
  }

  .reward-list {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    min-height: 0;
    pointer-events: none;
  }

  .reward-entry {
    position: absolute;
    right: clamp(16px, 6vw, 40px);
    min-height: 0;
    pointer-events: auto;
    transform: translateY(-50%);
  }

  .rewards {
    min-height: calc(100vw * 1672 / 941);
    padding: 0;
    background-image: url("assets/bg_reward_mobile.webp");
    background-position: center top;
    background-size: 100% auto;
  }

  .rewards::before {
    box-shadow:
      inset 0 0 15vw rgba(0, 0, 0, 0.28),
      inset 0 -14vh 16vh rgba(0, 0, 0, 0.34);
  }

  .rewards-intro {
    display: none;
  }

  .reward-first {
    top: 39%;
  }

  .reward-second {
    top: 62%;
  }

  .reward-third {
    top: 85%;
  }

  .reward-button {
    min-width: 122px;
    min-height: 34px;
    padding: 0 14px;
    background: rgba(13, 9, 6, 0.72);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .character-grid {
    display: flex;
    min-height: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: transparent transparent;
    scrollbar-width: none;
  }

  .character-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

    .character-card,
  .character-card:nth-child(4),
  .character-card:nth-child(5) {
    flex: 0 0 min(520px, 82vw);
    min-height: 570px;
    scroll-snap-align: center;
  }

  .character-slider {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 0;
    width: min(520px, 86vw);
    margin: 24px auto 0;
    padding: 6px;
    border: 1px solid rgba(180, 148, 94, 0.34);
    border-radius: 999px;
    background: rgba(10, 8, 7, 0.78);
    box-shadow: inset 0 0 18px rgba(180, 148, 94, 0.08), 0 12px 32px rgba(0, 0, 0, 0.32);
  }

  .character-slider button {
    min-height: 34px;
    color: rgba(233, 226, 211, 0.58);
    cursor: pointer;
    border-radius: 999px;
    background: transparent;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .character-slider button:hover,
  .character-slider button:focus-visible,
  .character-slider button.is-active {
    color: #f4d7a0;
    background: rgba(180, 148, 94, 0.18);
    box-shadow: 0 0 20px rgba(225, 149, 64, 0.2);
  }

  .creator {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .creator-copy {
    max-width: 620px;
  }

  .creator-gallery {
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 66px;
  }

  .brand {
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: grid;
    gap: 6px;
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--paper);
    transition: background 220ms ease;
  }

  .site-header.is-dark-nav .nav-toggle span {
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 6vw 22px;
    background: #0b0a09;
  }

  .site-header.is-dark-nav .site-nav {
    background: rgba(239, 233, 219, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    align-items: flex-start;
    min-height: 920px;
    padding: 130px 7vw 70px;
  }

  .hero-art {
    object-position: 67% center;
  }

  .hero-shade {
    background: rgba(5, 5, 5, 0.48);
    box-shadow: inset 0 18vh 16vh rgba(4, 4, 4, 0.62), inset 0 -35vh 22vh rgba(4, 4, 4, 0.78);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 img {
    width: min(100%, 560px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .countdown-card {
    right: 7vw;
    bottom: 52px;
    left: 7vw;
    width: auto;
  }

  .hero-index {
    display: none;
  }

  .bgvideo {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .bgvideo-media {
    object-fit: contain;
    background: #050404;
  }

  .twoside {
    grid-template-columns: 1fr;
    min-height: 760px;
    background-position: center top;
  }

  .twoside::after {
    top: 50%;
    right: 12vw;
    bottom: auto;
    left: 12vw;
    width: auto;
    height: 1px;
  }

  .twoside-ornament {
    top: 24px;
    width: 100%;
    text-align: center;
    font-size: 0.68rem;
    display: flex;
    flex-direction: column;
  }

  .twoside-ornament::before,
  .twoside-ornament::after {
    width: 44px;
    margin-inline: 10px;
  }

  .twoside-arrow {
    width: 14px;
    height: 14px;
    margin-top: 7px;
  }

  .twoside-panel {
    min-height: 380px;
    padding: 82px 8vw 48px;
  }

  .fate-window {
    height: clamp(620px, 96vw, 920px);
  }

  .fate-window-stage {
    left: 0;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1672 / 941;
    transform: none;
  }

  .fate-window-video {
    top: 19.98%;
    left: 20.16%;
    width: 58.8%;
    height: 57.4%;
  }

  .fate-window-copy-left {
    top: 100%;
    left: 12%;
    width: 52%;
  }

  .fate-window h2 {
    margin-bottom: 18px;
    font-size: clamp(3.2rem, 12vw, 5.4rem);
  }

  .fate-window-copy-left p:not(.fate-window-kicker) {
    line-height: 1.9;
  }

  .fate-window-copy-right {
    top: 87%;
    right: 9%;
  }

  .fate-window-copy-right p {
    font-size: clamp(0.95rem, 3.5vw, 1.25rem);
    line-height: 2;
  }

  .section {
    padding: 90px 7vw;
  }

  .daily-lantern-status {
    margin-top: -18px;
  }

  .lantern-dialog-caption span {
    display: block;
    text-align: center;
  }

  .lantern-dialog-caption span + span::before {
    content: "";
  }

  .daily-lantern-notice {
    width: auto;
    max-width: 100%;
    padding-inline: 18px;
    white-space: normal;
  }

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

  .daily-lantern {
    min-height: 210px;
  }

  .section-number {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 45px;
  }

  .world {
    min-height: 0;
    background-size: 48px 48px;
  }

  .world-seal {
    font-size: 6rem;
  }

  .character-grid {
    display: flex;
    min-height: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .character-card,
  .character-card:nth-child(4),
  .character-card:nth-child(5) {
    flex: 0 0 82vw;
    min-height: 570px;
    scroll-snap-align: center;
  }

  .character-profile {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 42px;
    padding: 96px 8vw 78px;
  }

  .character-profile::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.46) 46%, rgba(5, 5, 5, 0.88)),
      var(--profile-image) center / cover no-repeat;
  }

  .profile-back {
    top: 28px;
  }

  .profile-copy h1 {
    font-size: clamp(3rem, 19vw, 5.4rem);
  }

  .profile-stamp {
    justify-self: start;
    font-size: 7rem;
    writing-mode: horizontal-tb;
  }

  .rewards .eyebrow {
    font-size: 0.95rem;
  }

  .rewards .eyebrow::before,
  .rewards .eyebrow::after {
    width: 54px;
  }

  .rewards h2 {
    font-size: clamp(3.5rem, 17vw, 5.4rem);
  }

  .creator {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 110px;
  }

  .creator-monogram {
    top: 74px;
    left: 4vw;
    font-size: 8.8rem;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .creator-copy h2 {
    font-size: clamp(3.3rem, 17vw, 5.8rem);
  }

  .creator-links {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .creator-gallery {
    grid-template-columns: 1fr;
  }

  .creator-portrait {
    min-height: 420px;
  }

  .creator-portrait img {
    max-height: 420px;
  }

  .creator-card p {
    max-width: 92%;
  }

  .fate-window {
    height: clamp(620px, 145vw, 726px);
  }

  .fate-window-video {
    top: 19.98%;
    left: 20.16%;
    width: 58.8%;
    height: 57.4%;
  }

  .fate-window-copy-left {
    top: 78%;
    left: 9%;
    width: 62%;
  }

  .fate-window-kicker {
    margin-bottom: 16px;
    letter-spacing: 0.24em;
  }

  .fate-window h2 {
    font-size: clamp(3rem, 17vw, 4.7rem);
    letter-spacing: 0.14em;
  }

  .fate-window-copy-left p:not(.fate-window-kicker) {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
  }

  .fate-window-copy-right {
    top: 78%;
    right: 6%;
  }

  .fate-window-copy-right p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 70px;
    display: flex;
    height: auto;
    min-height: 190px;
  }

  .final-cta {
    min-height: 620px;
    padding: 110px 7vw;
  }

  footer {
    flex-direction: column;
    gap: 10px;
  }

  .page-controls {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }

  .to-top,
  .music-toggle {
    width: 62px;
  }

  .to-top-icons,
  .music-toggle-icon {
    width: 48px;
    height: 48px;
  }

  .dialog-panel {
    padding: 48px 26px 36px;
  }
}

@media (max-width: 325px) {
  .intro-slider-copy {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .intro-video {
    animation: none;
    transition-duration: 0.01ms;
  }

  .loading-ride,
  .loading-dust,
  .loading-content,
  .loading-content::before,
  .loading-content::after,
  .loading-progress span,
  .loading-progress span::after,
  .loading-gate::before {
    animation: none !important;
  }

  .intro-float-lantern {
    animation: none !important;
  }

  .marquee div {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
