/* ============================================================
   SZENE 1 — Nacht, Laternen, Hongbao
   ============================================================ */
#sceneIntro {
  background:
    radial-gradient(ellipse 120% 60% at 50% 110%, #23384a 0%, transparent 60%),
    linear-gradient(180deg, #0a1017 0%, #101c28 55%, #16242f 100%);
}
.moon {
  position: absolute; top: 9%; right: 12%;
  width: min(110px, 24vw); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fdf6e3, #e8dcc0 70%, #d9cba6);
  box-shadow: 0 0 70px 22px rgba(240, 230, 200, .18);
  opacity: .9;
}
.intro-mountains { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.intro-mountains svg { display: block; width: 100%; }

.lantern {
  position: absolute; bottom: -12vh;
  width: 26px; height: 34px;
  background: radial-gradient(circle at 50% 40%, #ffd98a, #e8862e 75%, #b35a1c);
  border-radius: 45% 45% 40% 40%;
  box-shadow: 0 0 26px 8px rgba(255, 170, 60, .35);
  opacity: 0;
  animation: lanternRise linear infinite;
}
.lantern::after {
  content: ''; position: absolute; left: 30%; right: 30%; bottom: -5px; height: 6px;
  background: #7a3d12; border-radius: 2px;
}
@keyframes lanternRise {
  0%   { transform: translate(0, 0) rotate(-2deg); opacity: 0; }
  8%   { opacity: .9; }
  50%  { transform: translate(3vw, -55vh) rotate(2deg); }
  92%  { opacity: .55; }
  100% { transform: translate(-2vw, -112vh) rotate(-3deg); opacity: 0; }
}

.intro-head { position: relative; z-index: 2; text-align: center; margin-bottom: 5vh; }
.intro-zh {
  font-size: clamp(3rem, 13vw, 5.2rem);
  color: var(--paper);
  letter-spacing: .08em;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
  line-height: 1.1;
}
.intro-de {
  margin-top: 10px;
  font-size: clamp(.95rem, 3.8vw, 1.15rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .95;
}
.intro-name {
  margin-top: 6px;
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  color: var(--paper);
  opacity: .85;
  font-style: italic;
}

/* Hongbao */
.hongbao-wrap {
  position: relative; z-index: 2;
  cursor: pointer;
  animation: hongbaoBob 3s ease-in-out infinite;
  filter: drop-shadow(0 26px 46px rgba(0,0,0,.65));
}
@keyframes hongbaoBob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.hongbao-wrap.open { animation: none; }

.hongbao {
  position: relative;
  width: min(230px, 62vw);
  aspect-ratio: 3 / 4.1;
  perspective: 900px;
}
.hb-body {
  position: absolute; inset: 0;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg,  rgba(240,201,108,.06) 0 1.5px, transparent 1.5px 13px),
    repeating-linear-gradient(-45deg, rgba(240,201,108,.06) 0 1.5px, transparent 1.5px 13px),
    radial-gradient(ellipse 90% 40% at 50% 108%, rgba(217,164,65,.28), transparent 60%),
    linear-gradient(165deg, #d0402c 0%, #a82a1c 55%, #8c2114 100%);
  box-shadow:
    inset 0 0 0 2px rgba(240, 201, 108, .35),
    inset 0 0 0 6px rgba(240, 201, 108, .12);
  overflow: hidden;
}
.hb-clouds { position: absolute; left: 0; right: 0; bottom: 0; opacity: .5; }
.hb-ticket {
  position: absolute; left: 8%; right: 8%; top: 6%;
  height: 46%;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 250, 230, .55), transparent 45%),
    linear-gradient(160deg, #f6dc94, var(--gold) 55%, #b8862e);
  border-radius: 9px;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: #5c3d0e;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 2px rgba(122, 86, 24, .65),
    inset 0 0 0 5px rgba(255, 246, 218, .5);
  transition: transform 1.1s cubic-bezier(.45, 0, .2, 1) .45s,
              box-shadow 1.1s ease .45s;
}
.hb-ticket .t-zh { font-size: 1.55rem; line-height: 1.1; letter-spacing: .12em; }
.hb-ticket .t-en { font-size: .5rem; font-weight: 900; letter-spacing: .32em; opacity: .8; }
.hb-ticket .t-line {
  width: 62%; height: 0; margin-top: 3px;
  border-top: 1px dashed rgba(122, 86, 24, .5);
}
.hb-ticket .t-train { font-size: .85rem; margin-top: 2px; }
.hb-ticket::after {   /* Glanz-Sweep */
  content: ''; position: absolute; top: -25%; bottom: -25%; left: -45%; width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255, 253, 240, .85), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.hongbao-wrap.open .hb-ticket::after { animation: ticketShine 1.1s ease-out 1.15s 1; }
@keyframes ticketShine {
  0%   { left: -45%; opacity: 1; }
  100% { left: 135%; opacity: 0; }
}
.hb-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 46%;
  background: linear-gradient(180deg, #b93221, #97251a);
  clip-path: polygon(0 0, 100% 0, 100% 28%, 50% 100%, 0 28%);
  border-radius: 14px 14px 0 0;
  transform-origin: top center;
  transition: transform .9s cubic-bezier(.6, 0, .3, 1),
              filter .9s ease,
              z-index 0s .42s;
  z-index: 3;
  box-shadow: inset 0 0 0 2px rgba(240, 201, 108, .25);
}
.hb-pocket {
  position: absolute; inset: 0; top: 34%;
  background:
    repeating-linear-gradient(45deg,  rgba(240,201,108,.05) 0 1.5px, transparent 1.5px 13px),
    repeating-linear-gradient(-45deg, rgba(240,201,108,.05) 0 1.5px, transparent 1.5px 13px),
    linear-gradient(175deg, #c23a27, #9c2416 70%, #871e12);
  border-radius: 0 0 14px 14px;
  z-index: 2;
  box-shadow: inset 0 6px 14px rgba(0,0,0,.28), inset 0 0 0 2px rgba(240,201,108,.25);
}
.hb-seal {
  position: absolute; top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6d98a, var(--gold) 60%, #a87a26);
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  box-shadow:
    0 5px 18px rgba(0,0,0,.4),
    inset 0 0 0 3px rgba(140, 33, 20, .55),
    inset 0 0 0 7px rgba(255, 240, 200, .35),
    inset 0 0 0 8px rgba(140, 33, 20, .3);
  font-size: 2.3rem; color: #8c2114;
  transition: transform .5s ease, opacity .5s ease;
}
.hongbao-wrap.open .hb-flap {
  transform: rotateX(178deg);
  filter: brightness(.5);   /* Innenseite der Lasche */
  z-index: 0;               /* nach dem Aufklappen hinter Ticket & Kuvert */
}
.hongbao-wrap.open .hb-seal { transform: translate(-50%, -50%) scale(0) rotate(120deg); opacity: 0; }
.hongbao-wrap.open .hb-ticket {
  transform: translateY(-112%) rotate(-3.5deg) scale(1.07);
  box-shadow:
    inset 0 0 0 2px rgba(122, 86, 24, .65),
    inset 0 0 0 5px rgba(255, 246, 218, .5),
    0 18px 38px rgba(0, 0, 0, .55);
}

.intro-hint {
  position: relative; z-index: 2;
  margin-top: 5vh;
  font-size: .85rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mist); opacity: .55;
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .3 } 50% { opacity: .7 } }
