/* ============================================================
   SZENE 5 — Finale über der Ankunft
   ============================================================ */
#finalOverlay {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 5vw;
  opacity: 0; pointer-events: none;
  transition: opacity 1.4s ease;
}
#finalOverlay.show { opacity: 1; pointer-events: auto; }
.final-card {
  position: relative;
  width: min(440px, 92vw);
  background:
    radial-gradient(circle at 90% 8%, rgba(217, 164, 65, .14), transparent 40%),
    linear-gradient(170deg, rgba(18, 26, 34, .92), rgba(14, 20, 26, .94));
  border: 1px solid rgba(217, 164, 65, .35);
  border-radius: 18px;
  padding: 40px 30px 34px;
  text-align: center;
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  outline: 1px solid rgba(217, 164, 65, .18);
  outline-offset: -9px;
  transform: translateY(20px);
  transition: transform 1.4s ease;
}
#finalOverlay.show .final-card { transform: translateY(0); }
.fc-corner {
  position: absolute; width: 22px; height: 22px;
  border: 2px solid rgba(217, 164, 65, .65);
}
.fc-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.fc-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.fc-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.fc-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.final-zh { font-size: clamp(2.6rem, 10vw, 3.6rem); color: var(--paper); line-height: 1.15; }
.final-title {
  margin-top: 8px;
  font-size: clamp(.85rem, 3.5vw, 1rem);
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.final-divider {
  display: flex; align-items: center; gap: 12px;
  width: 170px; margin: 18px auto;
  color: var(--gold); font-size: .7rem;
}
.final-divider::before, .final-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, .8));
}
.final-divider::after {
  background: linear-gradient(90deg, rgba(217, 164, 65, .8), transparent);
}
.final-foot {
  margin-top: 22px;
  font-size: 1.05rem; letter-spacing: .3em;
  color: rgba(217, 164, 65, .75);
}
.final-text {
  font-size: clamp(.95rem, 3.9vw, 1.08rem);
  line-height: 1.85;
  color: rgba(242, 232, 213, .92);
  white-space: pre-line;
}
.final-seal {
  position: absolute; top: -24px; right: -14px;
  width: 64px; height: 64px;
  background: linear-gradient(160deg, var(--vermillion), #a02417);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-size: 1.9rem;
  transform: rotate(10deg);
  box-shadow: 0 10px 26px rgba(192, 57, 43, .5);
}
.replay {
  margin-top: 26px; display: inline-block;
  color: rgba(242, 232, 213, .5);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid rgba(242, 232, 213, .25);
  padding-bottom: 2px; cursor: pointer;
}

#fireworks { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
