/* ------------------------------------------------------------
   Denise wird 40 – Stylesheet
   Angelehnt an die Einladung: Rot, Rosa, weiße Pinselschrift,
   geometrische Serifenlose, Linien mit Herz, Punktreihen.
   ------------------------------------------------------------ */

:root {
  --red: #e5112b;
  --red-deep: #c50d24;
  --pink: #f6a6c1;
  --pink-soft: #fde9f0;
  --pink-bg: #fff5f8;
  --white: #ffffff;
  --ink: #1d1418;
  --ink-soft: #5e4a52;
  --muted: #9b8a90;
  --line: #f3d3de;
  --shadow: 0 2px 6px rgba(80, 0, 20, 0.06), 0 18px 48px rgba(80, 0, 20, 0.12);
  --shadow-red: 0 2px 6px rgba(0, 0, 0, 0.12), 0 18px 48px rgba(60, 0, 10, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
  --measure: 620px;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --script: "Mr Dafoe", "Brush Script MT", "Snell Roundhand", cursive;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Die Formularseite scrollt ganz normal, die Sperre gilt nur für die Bereiche-Seite. */
html:has(body.page--form),
body.page--form {
  height: auto;
  min-height: 100%;
  overflow: auto;
  overscroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  background: var(--red);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) { overflow: hidden; }

img { display: block; max-width: 100%; }

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

h1, h2, h3 { margin: 0; font-weight: 600; }

strong { font-weight: 600; }

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* ---------- Ornamente ---------- */

.heart {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.heart--pink { color: var(--pink); }
.heart--red { color: var(--red); }
.heart--big { width: 36px; height: 36px; }

/* Linie – Text – Linie */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.divider__label { white-space: nowrap; }

.divider > span:not(.divider__label) {
  flex: 0 1 90px;
  min-width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.divider--left { justify-content: flex-start; }
.divider--left > span:not(.divider__label) { flex: 0 1 60px; }

.divider--light { color: var(--white); }
.divider--red { color: var(--red); }

/* Punktreihe */
.dots {
  margin: 0 auto;
  height: 6px;
  width: 200px;
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.8px);
  background-size: 14px 6px;
  background-repeat: repeat-x;
  background-position: center;
  color: var(--pink);
  opacity: 0.9;
}

/* ---------- Deck: ein Bereich pro Bildschirm ---------- */

.deck {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Der Track wird per transform verschoben: läuft auf der GPU, ruckelt nicht */
.track {
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
}

.panel {
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 64px 24px 88px;
  padding-top: calc(64px + env(safe-area-inset-top));
}

@media (min-width: 900px) {
  .panel { padding: 72px 56px 96px; }
}

/* Inhalte blenden ein, sobald der Bereich aktiv ist */
.anim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.panel.is-active .anim { opacity: 1; transform: none; }
.panel.is-active .anim:nth-child(2) { transition-delay: 0.12s; }
.panel.is-active .anim:nth-child(3) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: none; transition: none; }
}

/* Weiter-Pfeil (nur mit Maus) */
.next {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(229, 17, 43, 0.35);
  color: var(--white);
  cursor: pointer;
  animation: bob 2.4s ease-in-out infinite;
  transition: background 0.2s;
}

.next:hover { background: var(--red-deep); }

.panel--stage.is-active ~ .next,
body:has(.panel--stage.is-active) .next {
  border-color: var(--red);
  background: var(--red);
}

@media (pointer: coarse) {
  .next { display: none; }
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* Wisch-Hinweis (nur Touch, nur Startseite) */
.swipe-hint {
  display: none;
  position: absolute;
  left: 0; right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom));
  margin: 0;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

@media (pointer: coarse) {
  .swipe-hint { display: flex; }
}

/* Punkte am rechten Rand: Anfang und Gästebuch als größere Symbole */
.pager {
  --fg: var(--white);
  --bg: var(--red);
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

body:has(.panel--stage.is-active) .pager {
  --fg: var(--red);
  --bg: var(--pink-bg);
}

.pager button {
  display: block;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s, background 0.3s, color 0.3s;
}

.pager li.is-active button { opacity: 1; transform: scale(1.4); }

.pager li.pager__icon button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px solid var(--fg);
  color: var(--fg);
  opacity: 0.7;
}

.pager li.pager__icon:first-child { margin-bottom: 6px; }
.pager li.pager__icon:last-child { margin-top: 6px; }

.pager li.pager__icon button:hover { opacity: 1; }

.pager li.pager__icon.is-active button {
  opacity: 1;
  transform: none;
  background: var(--fg);
  color: var(--bg);
}

/* Handy: Leiste oben, waagerecht */
@media (max-width: 899px) {
  .pager {
    top: calc(12px + env(safe-area-inset-top));
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 9px;
    max-width: calc(100vw - 32px);
  }
  .pager li.pager__icon:first-child { margin: 0 6px 0 0; }
  .pager li.pager__icon:last-child { margin: 0 0 0 6px; }
}

@media (min-width: 900px) {
  .pager { right: 22px; gap: 12px; }
  .pager button { width: 8px; height: 8px; }
  .pager li.pager__icon button { width: 36px; height: 36px; }
  .pager li.pager__icon button svg { width: 17px; height: 17px; }
}

/* ---------- Hero ---------- */

.panel--hero { background: var(--red); color: var(--white); }

.hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    gap: 64px;
    max-width: 1080px;
    margin: 0 auto;
  }
}

.hero__photo {
  flex: 0 0 auto;
  margin: 0;
  width: min(42vw, 180px);
  aspect-ratio: 3 / 4;
  padding: 8px 8px 26px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(80, 0, 15, 0.35);
  transform: rotate(-4deg);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.hero__photo--desktop { display: none; }
.hero__photo--mobile { margin: 14px 0 6px; }

@media (min-width: 900px) {
  .hero__photo { width: min(28vw, 330px); padding: 12px 12px 40px; }
  .hero__photo--desktop { display: block; }
  .hero__photo--mobile { display: none; }
}

.panel.is-active .hero__photo { transform: rotate(-4deg); }

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark {
  position: relative;
  line-height: 0.8;
}

.hero__number {
  display: block;
  font-weight: 800;
  font-size: clamp(7rem, 30vw, 17rem);
  letter-spacing: -0.06em;
  color: var(--pink);
}

.hero__script {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%) rotate(-6deg);
  font-family: var(--script);
  font-size: clamp(3rem, 12.5vw, 7.4rem);
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 6px 30px rgba(120, 0, 20, 0.25);
}

.hero__text { margin-top: 18px; }

.hero__text .heart { margin: 2px 0 6px; }

.hero__title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__lead {
  max-width: 34ch;
  margin: 16px auto 0;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  opacity: 0.92;
}

@media (max-height: 640px) {
  .hero__lead { display: none; }
}

/* ---------- Etappen (helle Fläche) ---------- */

.panel--stage { background: var(--pink-bg); color: var(--ink); }

.stage {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .stage {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
    text-align: left;
  }
}

/* Bildrahmen: bei allen Etappen dasselbe Querformat 3:2, wird nie gestaucht (bei viel Text scrollt der Text).
   Passt er auf niedrigen Bildschirmen nicht in 46 % der Bereichshöhe (100dvh minus Innenabstände),
   wird er schmaler statt flacher, damit das Verhältnis bleibt */
.stage__figure {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, calc((100vh - 152px) * 0.69));
  width: min(100%, calc((100dvh - 152px - env(safe-area-inset-top, 0px)) * 0.46 * 3 / 2));
  aspect-ratio: 3 / 2;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

/* Lupe oben rechts: Foto in groß öffnen */
.stage__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--red);
  cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s, transform 0.2s;
}

.stage__zoom:hover { transform: scale(1.06); }

@media (pointer: fine) {
  .stage__zoom { opacity: 0; }
  .stage__figure:hover .stage__zoom,
  .stage__figure:focus-within .stage__zoom { opacity: 1; }
}

@media (min-width: 900px) {
  .stage__figure {
    flex: 0 0 50%;   /* bei allen Etappen gleich breit, auch bei viel Text (der Text scrollt) */
    width: auto;
    /* passt der Rahmen nicht in die Höhe, wird er schmaler statt flacher */
    max-width: calc((100vh - 168px) * 3 / 2);
    max-width: calc((100dvh - 168px) * 3 / 2);
    aspect-ratio: 3 / 2;
  }
}

.stage__body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 560px;
}

@media (min-width: 900px) {
  .stage__body { flex: 0 1 40%; max-height: 100%; overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
}

.stage__year {
  margin: 0 0 2px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--pink);
}

.stage__title {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--red);
  margin-bottom: 10px;
}

/* Logo statt Textüberschrift: PNG als Maske, Farbe über den Hintergrund */
.stage__title--logo {
  width: min(42vw, 160px);
  aspect-ratio: 432 / 220;
  margin: 2px 0 12px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

@media (max-width: 899px) {
  .stage__title--logo { margin-left: auto; margin-right: auto; }
}

@media (min-width: 900px) {
  .stage__title--logo { -webkit-mask-position: left center; mask-position: left center; }
}

.stage__text {
  margin: 0;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--ink-soft);
}

.stage__text p { margin: 0 0 0.9em; white-space: pre-line; }
.stage__text p:last-child { margin-bottom: 0; }

.stage__em { font-weight: 600; color: var(--accent, var(--red)); }

/* Handschriftliche Zwischenzeile */
.stage__shout {
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--accent, var(--red));
  display: flex;
  align-items: center;
  justify-content: inherit;
  gap: 10px;
}

.stage__shout--small { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }

.stage__strokes { display: inline-flex; color: var(--accent, var(--red)); }

/* Checkliste unter dem Etappentext */
.stage__checklist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.stage__checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--ink);
}

.stage__check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent, var(--red));
  color: var(--white);
}

/* Kleine Zeitleiste unter dem Text */
.stage__timeline {
  list-style: none;
  position: relative;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  text-align: center;
}

.stage__timeline::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 8px;
  height: 2px;
  background: var(--accent, var(--red));
  opacity: 0.3;
}

.stage__timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.stage__timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, var(--red));
  border: 4px solid var(--pink-bg);
  box-sizing: border-box;
  margin-bottom: 4px;
}

.stage__timeline strong {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent, var(--red));
}

/* Vertikale Variante: ein Eintrag pro Zeile, für längere Texte (z. B. Wochentage) */
.stage__timeline--vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding-left: 4px;
}

.stage__timeline--vertical::before {
  left: 8px;
  right: auto;
  top: 10px;
  bottom: 10px;
  width: 2px;
  height: auto;
}

.stage__timeline--vertical li {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
}

.stage__timeline--vertical .stage__timeline-dot {
  width: 12px;
  height: 12px;
  border-width: 3px;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}

.stage__timeline--vertical strong {
  flex: 0 0 2.4em;
}

/* Abschließender Teil als eigene Box */
.stage__closing { margin-top: 20px; text-align: left; }

.stage__closing-title {
  margin: 0 0 6px;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--accent, var(--red));
}

.stage__closing-box {
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent, var(--line));
  background: var(--white);
  color: var(--ink);
  font-size: clamp(0.9rem, 1.2vw, 0.98rem);
  line-height: 1.55;
}

.stage__closing-box p { margin: 0 0 0.8em; white-space: pre-line; }
.stage__closing-box p:last-child { margin-bottom: 0; }

.stage__signature {
  margin: 10px 0 0 !important;
  text-align: right;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent, var(--red));
}

@media (max-width: 899px) {
  .stage__closing { text-align: center; }
  .stage__closing-box { text-align: left; }
}

/* Frage in Handschrift, Antwort in weißer Box */
.stage__qa {
  margin-top: 22px;
  padding: 0 14px 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
}

@media (min-width: 900px) {
  .stage__qa { grid-template-columns: 0.8fr 1.3fr; gap: 16px; align-items: end; }
}

.stage__question {
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.4rem);
  line-height: 1.15;
  color: var(--accent, var(--red));
  transform: rotate(-4deg);
  transform-origin: center;
  padding-left: 12px;
}

.stage__question p { margin: 0 0 4px; }

.stage__arrow { display: inline-flex; color: var(--accent, var(--red)); }

@media (max-width: 899px) {
  .stage__question { transform: none; text-align: center; }
  .stage__arrow { display: block; width: 44px; margin: 4px auto 0; transform: rotate(60deg); }
}

.stage__answer {
  position: relative;
  padding: 16px 18px 20px;
  border-radius: 10px;
  border: 1px solid var(--accent, var(--line));
  background: var(--white);
  color: var(--ink);
  font-size: clamp(0.92rem, 1.25vw, 1rem);
  line-height: 1.55;
}

.stage__answer p { margin: 0 0 0.8em; white-space: pre-line; }
.stage__answer p:last-child { margin-bottom: 0; }

.stage__tag {
  position: absolute;
  right: -8px;
  bottom: -14px;
  padding: 4px 16px;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--white);
  background: var(--accent, var(--red));
  transform: rotate(-6deg) skewX(-8deg);
  box-shadow: 0 6px 16px rgba(80, 0, 15, 0.12);
}

.stage__qa + * { margin-top: 24px; }

/* Etappen mit viel Text: mehr Höhe und breitere Textspalte, Schrift bleibt gleich */
.panel--dense { padding-top: 58px; padding-bottom: 16px; }
.panel--dense .stage__year { margin-bottom: 0; }
.panel--dense .stage__title--logo { margin-bottom: 8px; }
.panel--dense .stage__text p { margin-bottom: 0.6em; }
.panel--dense .stage__checklist { margin-top: 12px; gap: 8px; }
.panel--dense .stage__qa { margin-top: 16px; }

@media (min-width: 900px) {
  .panel--dense { padding-top: 60px; padding-bottom: 16px; }
  .panel--dense .stage { gap: 44px; }
  .panel--dense .stage__body { flex: 0 1 52%; max-width: 600px; }
  .panel--dense .stage__qa { grid-template-columns: 0.75fr 1.4fr; }
}

/* Ein Foto im Rahmen (Etappen und Gästebuch): Querformat füllt den Rahmen, die Ränder werden abgeschnitten.
   Hohe und quadratische Fotos (.slide--tall, setzt makeSlide in main.js) werden komplett gezeigt,
   der Rest des Rahmens wird mit einer unscharfen Kopie gefüllt */
.slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--pink-soft);
}

.slideshow__track .slide { flex: 0 0 100%; }

.slide__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide--tall .slide__img { object-fit: contain; }

.slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.1);
  transform: scale(1.15);
  opacity: 0.75;
}

/* Slideshow: mehrere Fotos in einer Etappe */
.slideshow { position: relative; }

.slideshow__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--red);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s, transform 0.2s;
}

.slideshow__btn--prev { left: 12px; }
.slideshow__btn--next { right: 12px; }
.slideshow__btn:hover { transform: translateY(-50%) scale(1.06); }

.slideshow__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.slideshow__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slideshow__dots button.is-active { background: var(--white); transform: scale(1.3); }

@media (pointer: fine) {
  .slideshow__btn { opacity: 0; }
  .slideshow:hover .slideshow__btn,
  .slideshow:focus-within .slideshow__btn { opacity: 1; }
}

/* ---------- Gästebuch (rote Fläche, scrollt intern) ---------- */

.panel--guestbook {
  background: var(--red);
  color: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
}



.guestbook { max-width: 1240px; margin: 0 auto; }

.section__head {
  max-width: var(--measure);
  margin: 0 auto 40px;
  text-align: center;
}

.section__title {
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  margin: 6px 0 12px;
}

.section__lead { margin: 0; font-size: 1.05rem; opacity: 0.92; }

.status { text-align: center; opacity: 0.8; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}

.tile {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--red-deep);
  aspect-ratio: 1;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.tile:hover, .tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
}

.tile:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.tile:hover img { transform: scale(1.04); }

.tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 48px 14px 12px;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(60, 0, 10, 0.78), rgba(60, 0, 10, 0.45) 55%, rgba(60, 0, 10, 0));
}

.tile__name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.tile__teaser {
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.35;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Modal ---------- */

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  /* Breite: so groß wie möglich, aber die Fotospalte (3/5 der Breite, 4:3) darf nicht höher als der Bildschirm werden.
     Daher zusätzlich an die Höhe gekoppelt: Breite = Höhe * 4/3 * 5/3 = Höhe * 20/9 */
  max-width: min(1400px, calc(100vw - 32px), calc((100vh - 32px) * 20 / 9));
  max-width: min(1400px, calc(100vw - 32px), calc((100dvh - 32px) * 20 / 9));
  width: 100%;
  /* dvh: auf dem iPhone ist 100vh höher als der sichtbare Bereich (Safari-Leisten) */
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: visible;
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(90, 0, 15, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.modal[open] { animation: modal-in 0.45s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.35s ease; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  /* Medien so hoch wie nötig, der Text bekommt den Rest und scrollt darin */
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

@media (min-width: 760px) {
  .modal__inner { grid-template-columns: 3fr 2fr; grid-template-rows: none; }
}

/* Medienbereich: auf dem Handy immer ein Drittel der Bildschirmhöhe, der Text bekommt die restlichen zwei Drittel.
   Nebeneinander ein festes 4:3 in der linken Spalte, begrenzt durch die Breite des Dialogs (max. 1040px) */
.modal__media {
  position: relative;
  background: var(--pink-soft);
  height: 33vh;
  height: 33dvh;
}

@media (min-width: 760px) {
  .modal__media {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }
}

.modal__slides { position: absolute; inset: 0; }
.modal__dots { bottom: 14px; }
.modal__dots button { background: rgba(255, 255, 255, 0.6); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.modal__dots button.is-active { background: var(--white); }
.modal__nav { opacity: 1; }

.modal__video {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Play-Symbol auf Video-Kacheln */
.tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--red);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.tile__play svg { margin-left: 3px; }

/* Mehrere Dateien: kleiner Zähler oben rechts */
.tile__more {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal__body {
  padding: 36px 30px 40px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (min-width: 760px) {
  /* Die Textspalte ist genau so hoch wie das Foto: contain: size lässt sie nicht über die Bildhöhe hinauswachsen,
     längere Grüße scrollen darin. Kurze Texte stehen mittig (auto-Ränder statt justify-content,
     damit lange Texte oben nicht abgeschnitten werden) */
  .modal__body {
    padding: 52px 44px;
    contain: size;
    display: flex;
    flex-direction: column;
  }
  .modal__body > :first-child { margin-top: auto; }
  .modal__body > :last-child { margin-bottom: auto; }
}

.modal__name {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  color: var(--red);
  margin: 4px 0 16px;
}

.modal__text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink-soft);
  font-size: 1rem;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease);
}

.modal__close:hover { transform: scale(1.06); }

/* ---------- Lightbox: Etappenfoto in groß ---------- */

.lightbox {
  --lightbox-top: calc(60px + env(safe-area-inset-top));
  --lightbox-bottom: calc(48px + env(safe-area-inset-bottom));
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: transparent;
  overflow: hidden;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(40, 0, 8, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.lightbox[open] { animation: fade-in 0.3s ease; }
.lightbox[open]::backdrop { animation: fade-in 0.3s ease; }

/* Das aktuelle Foto noch einmal unscharf als Hintergrund: füllt die Fläche, die das Foto selbst frei lässt */
.lightbox__bg {
  position: absolute;
  inset: 0;
  background: rgba(40, 0, 8, 0.9) center / cover no-repeat;
  filter: blur(28px) brightness(0.55) saturate(1.1);
  transform: scale(1.15); /* die unscharfen Ränder aus dem sichtbaren Bereich schieben */
  pointer-events: none;
}

/* Oben Platz für Zähler und Schließen-Knopf, unten für die Punkte */
.lightbox__slides {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lightbox-top) 16px var(--lightbox-bottom);
  cursor: zoom-out;
}

/* Das Foto passt immer komplett in die Höhe. Die Höhe wird ausdrücklich aus dem Viewport
   berechnet, weil Safari ein prozentuales max-height hier nicht zuverlässig auflöst.
   Nur direkte Kinder, sonst trifft es auch die verpixelte Vorschau in der gesperrten Kachel. */
.lightbox__slides > img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - var(--lightbox-top) - var(--lightbox-bottom));
  max-height: calc(100dvh - var(--lightbox-top) - var(--lightbox-bottom));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: default;
  animation: modal-in 0.4s var(--ease);
}

/* Gesperrtes Foto im Vollbild: Kachel im Querformat 3:2, so groß wie die Höhe erlaubt */
.lightbox__slides .slide--locked {
  width: min(100%, calc((100vh - var(--lightbox-top) - var(--lightbox-bottom)) * 1.5));
  width: min(100%, calc((100dvh - var(--lightbox-top) - var(--lightbox-bottom)) * 1.5));
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.4s var(--ease);
}

.lightbox__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease);
}

.lightbox__close:hover { transform: scale(1.06); }

.lightbox__counter {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__nav { opacity: 1; }
.lightbox .slideshow__btn--prev { left: calc(12px + env(safe-area-inset-left)); }
.lightbox .slideshow__btn--next { right: calc(12px + env(safe-area-inset-right)); }

.lightbox__dots { bottom: calc(18px + env(safe-area-inset-bottom)); }
.lightbox__dots button { background: rgba(255, 255, 255, 0.5); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.lightbox__dots button.is-active { background: var(--white); }

/* ---------- Aufruf unter den Einträgen ---------- */

.guestbook__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 440px;
  margin: 56px auto 0;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 40px rgba(80, 0, 15, 0.18);
}

.guestbook__cta .heart { margin-bottom: 4px; }

.guestbook__cta-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.guestbook__cta-text {
  margin: 0 0 14px;
  max-width: 34ch;
  font-size: 0.9rem;
  opacity: 0.88;
}

/* ---------- Fuß ---------- */

.footer {
  padding: 72px 0 calc(48px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer .dots { margin-bottom: 28px; }

.footer__small {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer__big {
  margin: 0 0 14px;
  font-size: clamp(4rem, 10vw, 6.5rem);
}

.footer__big .heart { width: 0.4em; height: 0.4em; }

.footer__date {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ---------- Formularseite ---------- */

.page--form { background: var(--red); }

.form-page {
  max-width: 580px;
  margin: 0 auto;
  padding: 40px 20px 96px;
}

.form-page__head {
  text-align: center;
  color: var(--white);
  margin-bottom: 32px;
}

.form-page__mark {
  position: relative;
  display: inline-block;
  line-height: 0.8;
  margin-bottom: 26px;
}

.form-page__number {
  display: block;
  font-weight: 800;
  font-size: clamp(7rem, 30vw, 10rem);
  letter-spacing: -0.06em;
  color: var(--pink);
}

.form-page__script {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%) rotate(-6deg);
  font-family: var(--script);
  font-size: clamp(3rem, 13vw, 4.4rem);
  white-space: nowrap;
}

.form-page__title {
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.form-page__lead {
  margin: 14px auto 0;
  max-width: 44ch;
  opacity: 0.92;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-red);
}

.form, .success {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field__label { font-weight: 600; font-size: 0.92rem; }

.field__hint { font-weight: 300; color: var(--muted); }

.field__counter {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--muted);
}

input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--pink-bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 17, 43, 0.14);
}

textarea { resize: vertical; min-height: 150px; }

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

.dropzone {
  width: 100%;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  min-height: 170px;
  border: 2px dashed var(--pink);
  border-radius: var(--radius-sm);
  background: var(--pink-bg);
  cursor: pointer;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover, .dropzone--over {
  border-color: var(--red);
  background: var(--white);
}

.dropzone__icon { color: var(--red); }

/* Vorschau der gewählten Dateien */
.previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.previews__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pink-soft);
}

.previews__item img,
.previews__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.previews__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 600;
}

.previews__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.button {
  font: inherit;
  font-weight: 600;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), background 0.2s;
}

.button:hover { transform: translateY(-1px); background: var(--red-deep); }
.button:disabled { opacity: 0.5; cursor: default; transform: none; }

.button--ghost {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--pink);
}

.button--ghost:hover { background: var(--pink-bg); }

.form__error { margin: 0; color: var(--red); font-size: 0.92rem; font-weight: 400; }

/* Fortschritt beim Video-Upload */
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--pink-soft);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.3s ease;
}

.success { text-align: center; align-items: center; }
.success h2 { font-size: 3.6rem; color: var(--red); }
.success p { margin: 0; color: var(--ink-soft); }
.success a.button { text-decoration: none; }

/* ---------- Warteseite (liegt mit in index.html) ---------- */

html[data-mode="soon"] .deck,
html[data-mode="soon"] .next,
html[data-mode="soon"] .pager { display: none; }

html[data-mode="live"] .soon { display: none; }

.soon {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 28px;
  text-align: center;
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
}

.soon__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
}

.soon__photo { flex: 0 0 auto; }

/* Handy: Polaroid unter der 40. Desktop: Polaroid links daneben. */
.soon__photo--desktop { display: none; }
.soon__photo--mobile { margin: 10px 0 26px; }

@media (min-width: 900px) {
  .soon {
    flex-direction: row;
    justify-content: center;
    gap: 72px;
  }
  .soon__photo--desktop { display: block; width: min(26vw, 300px); }
  .soon__photo--mobile { display: none; }
}

.soon__mark {
  position: relative;
  line-height: 0.8;
  margin-bottom: 28px;
}

.soon__number {
  display: block;
  font-weight: 800;
  font-size: clamp(8rem, 34vw, 13rem);
  letter-spacing: -0.06em;
  color: var(--pink);
}

.soon__script {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%) rotate(-6deg);
  font-family: var(--script);
  font-size: clamp(3.4rem, 14vw, 5.8rem);
  white-space: nowrap;
  text-shadow: 0 6px 30px rgba(120, 0, 20, 0.25);
}

.soon .heart { margin: 2px 0 10px; }

.soon__patience {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  width: 100%;
  max-width: 440px;
}

.soon__countdown {
  margin: 0;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.soon__text {
  margin: 8px auto 0;
  max-width: 40ch;
  font-size: 0.95rem;
  opacity: 0.92;
}

.button--light {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  text-decoration: none;
}

.button--light:hover { background: var(--pink-soft); }

.soon__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 440px;
  padding: 24px 24px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 40px rgba(80, 0, 15, 0.18);
}

.soon__card-heart { margin-bottom: 4px; }

.soon__card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.soon__card-text {
  margin: 0 0 14px;
  font-size: 0.88rem;
  opacity: 0.85;
}

/* ---------- Gesperrte Fotos: Kachel mit Schloss und Passwort-Dialog ---------- */

.slide--locked {
  cursor: pointer;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 166, 193, 0.55), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(229, 17, 43, 0.18), transparent 50%),
    var(--pink-soft);
}

/* Verpixelte Vorschau: winziges Bild, grob hochskaliert, leicht abgedunkelt */
.locked__pixel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: brightness(0.8) saturate(1.1);
}

.locked {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 36px;   /* unten mehr Luft, damit der Knopf über den Slideshow-Punkten bleibt */
  text-align: center;
  color: var(--ink-soft);
}

/* Auf der Vorschau muss der Text weiß sein, damit er lesbar bleibt */
.locked__pixel ~ .locked { color: var(--white); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.locked__pixel ~ .locked .locked__sticker { filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45)); }
.locked__pixel ~ .locked .locked__btn { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }

.locked__sticker {
  width: min(58%, 230px);
  transform: rotate(-5deg);
  filter: drop-shadow(0 10px 22px rgba(80, 0, 20, 0.28));
}

.locked__sticker svg { display: block; width: 100%; height: auto; }

.locked__sticker text {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  fill: #000;
}

.locked__btn { margin-top: 0; padding: 12px 20px; font-size: 0.95rem; }

/* Passwort-Dialog */
.unlock {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(420px, calc(100vw - 32px));
  color: var(--ink);
}

.unlock::backdrop {
  background: rgba(90, 0, 15, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.unlock[open] { animation: modal-in 0.45s var(--ease); }
.unlock[open]::backdrop { animation: fade-in 0.35s ease; }

.unlock__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 28px 26px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.unlock__title {
  margin: 0;
  color: var(--red);
  font-size: 2.4rem;
  line-height: 1;
}

.unlock__text { margin: 0; color: var(--ink-soft); font-size: 0.95rem; font-weight: 400; }

.unlock__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.unlock__actions .button { padding: 12px 20px; font-size: 0.95rem; }

.unlock.is-wrong .unlock__inner { animation: shake 0.4s var(--ease); }

@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
