/* ============================================================
   CSS VARIABLES & RESET
============================================================ */
:root {
  --color-ink:        #1A2530;
  --color-ink-deep:   #0D1520;
  --color-dai-qing:   #2E3F4A;
  --color-qing-ci:    #4A6070;
  --color-qing-ci-lt: #8FAAB5;
  --color-qing-ci-2:  #A8C0B0;
  --color-paper:      #F5F2EB;
  --color-paper-warm: #EDE8E1;
  --color-paper-aged: #DDD5C4;
  --color-gold:       #C9A368;
  --color-gold-lt:    #D4B789;
  --color-gold-dk:    #A07840;
  --color-plum-bg:    #6B4A2A;

  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', '宋体', Georgia, serif;
  --font-brush: 'Ma Shan Zheng', '楷体', cursive;

  --ease-silk:   cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-unfurl: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-serif);
  background-color: var(--color-ink-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(46,63,74,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 80%,  rgba(74,96,112,0.18) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--color-paper);
  overflow-x: hidden;
  cursor: default;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-serif); }

/* ============================================================
   GLOBAL VIGNETTE OVERLAY
============================================================ */
html::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%,
      transparent 55%,
      rgba(6,10,18,0.35) 80%,
      rgba(6,10,18,0.55) 100%);
}

/* ============================================================
   BACKGROUND ORNAMENT
============================================================ */
#bg-ornament {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#bg-ornament svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   SECTION BACKGROUNDS
============================================================ */
#growth-scroll {
  background:
    linear-gradient(180deg,
      rgba(13,21,32,0.6) 0%,
      rgba(20,32,44,0.4) 50%,
      rgba(13,21,32,0.6) 100%);
}

/* ============================================================
   SCROLL INTRO OVERLAY
============================================================ */
#scroll-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

#scroll-intro.hidden {
  pointer-events: none;
  animation: introFadeOut 1.2s ease-in-out forwards;
}

@keyframes introFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

#intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 1;
}

#ink-ripple {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(6,10,18,0)   0%,
    rgba(6,10,18,0.8) 55%,
    rgba(6,10,18,1)   100%);
}

#ink-ripple.active {
  animation: inkSuck 1.0s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes inkSuck {
  0%   { opacity: 0; transform: scale(0.3); }
  30%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(5); }
}

#intro-hint {
  position: absolute;
  z-index: 4;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: hintFadeIn 0.8s 1.5s ease forwards;
}

@keyframes hintFadeIn { to { opacity: 1; } }

.intro-hint-text {
  font-family: var(--font-serif);
  font-size: clamp(0.65rem, 1.3vw, 0.82rem);
  color: var(--color-gold);
  letter-spacing: 0.28em;
  white-space: nowrap;
  background: rgba(6,10,18,0.6);
  padding: 7px 22px;
  border: 1px solid rgba(201,163,104,0.32);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  animation: hintBlink 2s 2.5s ease-in-out infinite;
}

@keyframes hintBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.38; }
}

#intro-progress {
  width: clamp(140px, 28vw, 260px);
  height: 2px;
  background: rgba(201,163,104,0.18);
  border-radius: 2px;
  overflow: hidden;
}

#intro-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--color-gold-dk), var(--color-gold-lt));
  border-radius: 2px;
  transition: width 0.25s linear;
}

/* ============================================================
   FLOATING TOP NAV
============================================================ */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(6,10,18,0.7) 0%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.4s ease;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}

#top-nav.visible {
  pointer-events: auto;
  opacity: 1;
}

.nav-brand {
  font-family: var(--font-brush);
  font-size: 1.3rem;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.8rem;
  color: rgba(245,242,235,0.7);
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 1px;
  background: var(--color-gold);
  transition: right 0.3s var(--ease-silk);
}

.nav-link:hover { color: var(--color-gold); }
.nav-link:hover::after { right: 0; }

/* 图册链接特殊样式 */
.nav-link-arts {
  color: var(--color-gold-lt);
  border: 1px solid rgba(201,163,104,0.4);
  padding: 5px 14px;
  border-radius: 2px;
  letter-spacing: 0.25em;
  background: rgba(201,163,104,0.06);
  transition: all 0.35s ease;
}

.nav-link-arts:hover {
  background: rgba(201,163,104,0.18);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 14px rgba(201,163,104,0.2);
}

.nav-link-arts::after { display: none; }

/* ============================================================
   MAIN CONTENT
============================================================ */
#main-content {
  opacity: 0;
  transition: opacity 1.2s ease;
  position: relative;
  z-index: 1;
  padding-top: 0;
}

#main-content.visible { opacity: 1; }

/* ============================================================
   SECTION BASE
============================================================ */
section {
  position: relative;
  overflow: hidden;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(74,96,112,0.15) 20%,
    rgba(74,96,112,0.4) 50%,
    rgba(74,96,112,0.15) 80%,
    transparent 100%);
}

/* ============================================================
   2. HERO SECTION
============================================================ */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg,
      rgba(13,21,32,0.85) 0%,
      rgba(20,32,44,0.70) 40%,
      rgba(13,21,32,0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 5vw 60px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg opacity='0.06' fill='none' stroke='%23C9A368' stroke-width='1.5'%3E%3Cpath d='M650 0 Q600 80 580 160 Q560 240 540 280 Q510 330 480 360 Q440 400 400 420'/%3E%3Cpath d='M580 160 Q560 130 530 120 Q500 110 480 130'/%3E%3Cpath d='M540 280 Q510 250 490 240 Q465 230 450 250'/%3E%3Cpath d='M480 360 Q450 340 430 345 Q410 350 405 370'/%3E%3C/g%3E%3Cg opacity='0.05' fill='%23C9A368'%3E%3Ccircle cx='532' cy='118' r='5'/%3E%3Ccircle cx='488' cy='127' r='4'/%3E%3Ccircle cx='492' cy='238' r='5'/%3E%3Ccircle cx='451' cy='248' r='4'/%3E%3Ccircle cx='407' cy='368' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 60%;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1.5px at 20% 30%, rgba(201,163,104,0.4) 100%, transparent),
    radial-gradient(circle 1px at 75% 20%, rgba(201,163,104,0.35) 100%, transparent),
    radial-gradient(circle 2px at 85% 65%, rgba(201,163,104,0.3) 100%, transparent),
    radial-gradient(circle 1px at 40% 70%, rgba(201,163,104,0.25) 100%, transparent),
    radial-gradient(circle 1.5px at 60% 85%, rgba(201,163,104,0.3) 100%, transparent);
  animation: particleDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-15px) translateX(5px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  width: 100%;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: var(--color-gold-dk);
  letter-spacing: 0.4em;
  font-weight: 300;
}

.hero-title {
  font-family: var(--font-brush);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.35;
  color: #F5F0E6;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title em {
  font-style: normal;
  color: var(--color-gold-lt);
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: rgba(220,210,185,0.85);
  letter-spacing: 0.25em;
}

.hero-desc {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(240,232,210,0.75);
  line-height: 2;
  max-width: 560px;
  border-top: 1px solid rgba(201,163,104,0.35);
  border-bottom: 1px solid rgba(201,163,104,0.35);
  padding: 16px 0;
  text-align: center;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-primary {
  position: relative;
  padding: 14px 36px;
  background: linear-gradient(135deg, rgba(201,163,104,0.15), rgba(201,163,104,0.05));
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  letter-spacing: 0.25em;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s var(--ease-silk);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(201,163,104,0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-silk);
}

.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(201,163,104,0.3), rgba(201,163,104,0.15));
  box-shadow: 0 0 20px rgba(201,163,104,0.25), 0 0 40px rgba(201,163,104,0.1);
  letter-spacing: 0.35em;
}

.btn-secondary {
  position: relative;
  padding: 14px 36px;
  background: transparent;
  border: 1.5px solid rgba(245,242,235,0.35);
  color: rgba(245,242,235,0.8);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  letter-spacing: 0.25em;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s var(--ease-silk);
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 100%; bottom: 0;
  background: linear-gradient(90deg,
    transparent, rgba(168,192,176,0.2), transparent);
  transition: left 0.5s var(--ease-silk), right 0.5s var(--ease-silk);
}

.btn-secondary:hover::after { left: 0; right: 0; }
.btn-secondary:hover {
  border-color: var(--color-qing-ci-lt);
  color: var(--color-qing-ci-lt);
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(6,10,18,0.4));
  pointer-events: none;
}

/* ============================================================
   3. GROWTH SCROLL (TIMELINE)
============================================================ */
#growth-scroll {
  background:
    linear-gradient(180deg,
      rgba(13,21,32,0.6) 0%,
      rgba(20,32,44,0.4) 50%,
      rgba(13,21,32,0.6) 100%);
  padding: 80px 0 60px;
}

.section-header {
  text-align: center;
  padding: 0 5vw 50px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--color-gold-dk);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-brush);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-paper);
  letter-spacing: 0.2em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.section-subtitle {
  font-size: 0.88rem;
  color: rgba(200,220,230,0.5);
  margin-top: 10px;
  letter-spacing: 0.2em;
}

/* Horizontal scroll */
.hscroll-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

.hscroll-wrapper:active { cursor: grabbing; }
.hscroll-wrapper::-webkit-scrollbar { display: none; }

.hscroll-track {
  display: flex;
  gap: 32px;
  width: max-content;
  min-height: 640px;
  position: relative;
  padding: 0 5vw;
}

/* Stage panel */
.stage-panel {
  flex: 0 0 auto;
  width: min(600px, 92vw);
  min-height: 640px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 50px 40px 40px;
  overflow: hidden;
  transition: filter 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.stage-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201,163,104,0.12);
}

.stage-panel.stage-child {
  background: linear-gradient(160deg, rgba(22,38,52,0.95) 0%, rgba(16,28,40,0.98) 100%);
}

.stage-panel.stage-teen {
  background: linear-gradient(160deg, rgba(18,42,54,0.95) 0%, rgba(24,52,64,0.98) 100%);
}

.stage-panel.stage-adult {
  background: linear-gradient(160deg, rgba(38,24,12,0.95) 0%, rgba(52,32,14,0.98) 100%);
}

/* 点击提示角标 — 已隐藏 */
.stage-panel::after {
  content: none;
}

.stage-ornament {
  font-size: 2.2rem;
  margin-bottom: 16px;
  opacity: 0.6;
  animation: ornamentFloat 3s ease-in-out infinite alternate;
}

@keyframes ornamentFloat {
  from { transform: translateY(0); opacity: 0.6; }
  to   { transform: translateY(-5px); opacity: 0.9; }
}

.stage-char {
  width: 85%;
  max-width: 320px;
  height: 380px;
  border-radius: 4px;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 28px;
  box-shadow:
    0 0 0 1px rgba(201,163,104,0.25),
    0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stage-panel:hover .stage-char {
  transform: scale(1.02) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(201,163,104,0.5),
    0 16px 50px rgba(0,0,0,0.6);
}

.stage-tag {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--color-gold-lt);
  margin-bottom: 8px;
  opacity: 0.9;
}

.stage-name {
  font-family: var(--font-brush);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #F5F0E6;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
  text-align: center;
}

.stage-desc {
  font-size: 0.85rem;
  color: rgba(240,228,200,0.72);
  text-align: center;
  line-height: 2;
  letter-spacing: 0.15em;
  max-width: 300px;
}

.stage-divider {
  flex: 0 0 auto;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stage-divider-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom,
    transparent, rgba(201,163,104,0.4) 30%,
    rgba(201,163,104,0.4) 70%, transparent);
}

.stage-divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(201,163,104,0.6);
}

.cloud-separator {
  flex: 0 0 auto;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
}

.hscroll-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding: 0 5vw;
}

.hscroll-dot {
  width: 28px;
  height: 3px;
  background: rgba(201,163,104,0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.hscroll-dot.active {
  background: var(--color-gold);
  width: 48px;
}

/* ============================================================
   VIDEO MODAL
============================================================ */
#video-modal {
  position: fixed;
  inset: 0;
  z-index: 8888;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,10,18,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-inner {
  position: relative;
  width: min(860px, 92vw);
  max-height: 90vh;
  background: rgba(13,21,32,0.98);
  border: 1px solid rgba(201,163,104,0.3);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 60px rgba(201,163,104,0.1);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--ease-unfurl);
}

#video-modal.active .video-modal-inner {
  transform: scale(1) translateY(0);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(201,163,104,0.15);
}

.video-modal-title {
  font-family: var(--font-brush);
  font-size: 1.1rem;
  color: var(--color-gold-lt);
  letter-spacing: 0.25em;
}

.video-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,163,104,0.3);
  border-radius: 50%;
  color: rgba(245,242,235,0.6);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(201,163,104,0.05);
}

.video-modal-close:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(201,163,104,0.15);
}

.video-modal-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-modal-body video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-modal-footer {
  padding: 12px 20px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(200,218,228,0.35);
  letter-spacing: 0.2em;
  border-top: 1px solid rgba(201,163,104,0.08);
}

/* ============================================================
   4. CHARACTER GALLERY
============================================================ */
#chars {
  background:
    linear-gradient(180deg,
      rgba(13,21,32,0.55) 0%,
      rgba(20,32,44,0.45) 50%,
      rgba(13,21,32,0.55) 100%);
  padding: 80px 0 80px;
}

.chars-grid-wrapper {
  position: relative;
  padding: 0 5vw;
}

.chars-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 16px 0 20px;
  scroll-snap-type: x mandatory;
  cursor: grab;
  justify-content: flex-start;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1400px) {
  .chars-scroll {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    cursor: default;
  }
  .chars-scroll .char-card { scroll-snap-align: none; }
}

.chars-scroll:active { cursor: grabbing; }
@media (min-width: 1400px) { .chars-scroll:active { cursor: default; } }
.chars-scroll::-webkit-scrollbar { display: none; }

.char-card {
  flex: 0 0 auto;
  width: 220px;
  background: rgba(16,26,38,0.92);
  border: 1px solid rgba(74,96,112,0.35);
  border-radius: 4px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.char-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,163,104,0.6);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(201,163,104,0.1);
}

.char-card.locked .char-img-wrap::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.char-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.char-img-wrap img,
.char-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.char-card:hover .char-img-wrap img { transform: scale(1.05); }

.char-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.char-info { padding: 16px; }

.char-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.char-name {
  font-family: var(--font-brush);
  font-size: 1.2rem;
  color: var(--color-gold-lt);
  letter-spacing: 0.15em;
}

.char-badge {
  font-size: 0.62rem;
  padding: 2px 8px;
  border: 1px solid rgba(201,163,104,0.5);
  color: var(--color-gold);
  border-radius: 10px;
  letter-spacing: 0.1em;
}

.char-badge.locked-badge {
  border-color: rgba(74,96,112,0.3);
  color: rgba(143,170,181,0.4);
}

.char-bio {
  font-size: 0.75rem;
  color: rgba(200,218,228,0.55);
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  border-left: 1px solid rgba(74,96,112,0.4);
  padding-left: 10px;
}

.char-affinity { margin-bottom: 6px; }

.affinity-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(143,170,181,0.5);
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.affinity-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.affinity-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to right, var(--color-gold-dk), var(--color-gold-lt));
  transition: width 1.2s var(--ease-silk);
}

.char-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 10px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.awake    { background: #7EC8A0; box-shadow: 0 0 6px #7EC8A0; }
.status-dot.unlocked { background: var(--color-gold); }
.status-dot.locked-s { background: rgba(255,255,255,0.2); }

/* ============================================================
   5. FEATURES SECTION
============================================================ */
#features {
  background:
    linear-gradient(180deg,
      rgba(13,21,32,0.5) 0%,
      rgba(20,32,44,0.4) 50%,
      rgba(13,21,32,0.5) 100%);
  padding: 80px 5vw;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background: rgba(16,26,38,0.88);
  border: 1px solid rgba(74,96,112,0.3);
  border-radius: 4px;
  padding: 30px 24px 26px;
  transition: all 0.4s var(--ease-silk);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,163,104,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  border-color: rgba(201,163,104,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(201,163,104,0.08);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.4s ease;
  line-height: 1;
}

.feature-card:hover .feature-icon { transform: rotate(8deg) scale(1.1); }

.feature-name {
  font-family: var(--font-brush);
  font-size: 1.1rem;
  color: var(--color-gold-lt);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.8rem;
  color: rgba(200,218,228,0.55);
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 12px; right: 12px;
  width: 20px; height: 20px;
  border-right: 1px solid rgba(201,163,104,0.25);
  border-bottom: 1px solid rgba(201,163,104,0.25);
}

/* ============================================================
   6. DOWNLOAD / CTA SECTION
============================================================ */
#download {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(160deg,
      rgba(28,16,8,0.92) 0%,
      rgba(38,22,10,0.88) 50%,
      rgba(24,14,6,0.92) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 5vw;
  text-align: center;
  overflow: hidden;
}

#petal-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dl-char-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.genspark.ai/api/files/s/3e2bPsLq');
  background-size: cover;
  background-position: center top;
  opacity: 0.07;
  pointer-events: none;
}

.dl-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 600px;
}

.dl-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--color-gold-lt);
  opacity: 0.9;
}

.dl-title {
  font-family: var(--font-brush);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #F5F0E6;
  line-height: 1.4;
  letter-spacing: 0.15em;
}

.dl-subtitle {
  font-size: 0.88rem;
  color: rgba(240,225,195,0.65);
  letter-spacing: 0.3em;
}

.qr-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  background: var(--color-paper);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.qr-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(201,163,104,0.4);
  border-radius: 6px;
}

.qr-wrap::after {
  content: '';
  position: absolute;
  inset: -12px;
  background-image:
    linear-gradient(var(--color-gold), var(--color-gold)) top left,
    linear-gradient(var(--color-gold), var(--color-gold)) top right,
    linear-gradient(var(--color-gold), var(--color-gold)) bottom left,
    linear-gradient(var(--color-gold), var(--color-gold)) bottom right;
  background-size: 12px 1.5px, 12px 1.5px, 12px 1.5px, 12px 1.5px,
                   1.5px 12px, 1.5px 12px, 1.5px 12px, 1.5px 12px;
  background-repeat: no-repeat;
  background-position:
    top left, top right, bottom left, bottom right,
    top left, top right, bottom left, bottom right;
}

.qr-label {
  font-size: 0.68rem;
  color: rgba(245,242,235,0.4);
  letter-spacing: 0.2em;
  margin-top: 8px;
}

.dl-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-dl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid rgba(201,163,104,0.45);
  border-radius: 4px;
  background: rgba(201,163,104,0.07);
  color: var(--color-paper);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  transition: all 0.35s ease;
  cursor: pointer;
}

.btn-dl:hover {
  background: rgba(201,163,104,0.18);
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(201,163,104,0.15);
  transform: translateY(-3px);
}

.btn-dl-icon { font-size: 1.4rem; }

.dl-version {
  font-size: 0.7rem;
  color: rgba(245,242,235,0.3);
  letter-spacing: 0.2em;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: rgba(6,10,18,0.96);
  padding: 40px 5vw 24px;
  border-top: 1px solid rgba(74,96,112,0.2);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-brush);
  font-size: 1.4rem;
  color: var(--color-gold);
  letter-spacing: 0.2em;
}

.footer-brand small {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.65rem;
  color: rgba(245,242,235,0.35);
  letter-spacing: 0.3em;
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(245,242,235,0.45);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.social-link:hover { color: var(--color-gold); }
.social-icon { font-size: 1.1rem; }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(245,242,235,0.35);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--color-gold); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(245,242,235,0.2);
  letter-spacing: 0.2em;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 10px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-silk), transform 0.8s var(--ease-silk);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }
.reveal-delay-5 { transition-delay: 0.65s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .hero-desc { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .stage-panel { width: min(400px, 86vw); }
  .nav-links { gap: 18px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .dl-buttons { flex-direction: column; width: 100%; }
  .btn-dl { justify-content: center; }
  #scroll-stage { width: 95vw; height: 72vw; }
  .nav-links .nav-link:not(.nav-link-arts) { display: none; }
}

/* ============================================================
   CUSTOM SCROLLBAR
============================================================ */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(201,163,104,0.3) rgba(13,21,32,0.5);
}

html::-webkit-scrollbar { width: 4px; }
html::-webkit-scrollbar-track { background: rgba(13,21,32,0.5); }
html::-webkit-scrollbar-thumb { background: rgba(201,163,104,0.3); border-radius: 2px; }
html::-webkit-scrollbar-thumb:hover { background: rgba(201,163,104,0.55); }

/* ============================================================
   NOISE OVERLAY
============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

body::after { content: none; }
