html {
  scroll-behavior: smooth;
}

body {
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -10rem;
  right: -8rem;
  background: var(--blob-1, rgba(255, 255, 255, 0.18));
}

body::after {
  left: -10rem;
  bottom: -12rem;
  background: var(--blob-2, rgba(255, 255, 255, 0.12));
}

.greeting-page,
.overview-page {
  min-height: 100vh;
  color: var(--text-main, #f8fafc);
}

.greeting-page {
  display: block;
  padding: 0;
  text-align: left;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.16), transparent 28%),
    var(--page-bg, linear-gradient(135deg, #0f172a, #1e293b));
}

.overview-page {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #081426 0%, #102542 35%, #1d4ed8 100%);
}

.greeting-shell,
.overview-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.greeting-shell {
  padding: 28px 0 56px;
}

.overview-shell {
  padding: 28px 0 64px;
}

.topbar,
.overview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.back-link,
.brand-badge,
.overview-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link,
.overview-badge {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

.brand-badge {
  color: var(--accent-strong, #fff);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.greeting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.scene-panel,
.details-panel,
.hero-panel,
.overview-card,
.overview-highlight {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

.scene-panel,
.details-panel {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.scene-panel::before,
.details-panel::before,
.hero-panel::before,
.overview-card::before,
.overview-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 55%);
  pointer-events: none;
}

.eyebrow,
.overview-kicker {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow-color, rgba(255, 255, 255, 0.72));
}

.greeting-page h1,
.overview-page h1 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.03em;
}

.greeting-page h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  line-height: 0.96;
  color: #fffdf8;
}

.overview-page h1 {
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: 0.94;
  color: #fff;
}

.lead,
.overview-copy,
.scene-note,
.overview-note,
.overview-footer {
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

.lead,
.overview-copy {
  margin: 18px 0 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.scene-stage {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin-top: 28px;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 42%),
    rgba(8, 15, 30, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scene-note {
  margin: 22px 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.details-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.date {
  margin: 0;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong, #fff);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  align-self: flex-start;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.message-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(8, 15, 30, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.message-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.nachricht {
  margin: 0;
  padding: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.nachricht.placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.congratulate-button,
.form-container button,
.overview-link,
.overview-card-link,
.copy-button,
.email-button {
  border: 0;
  border-radius: 18px;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.congratulate-button {
  width: 100%;
  margin-top: 4px;
  padding: 16px 20px;
  font-size: 1rem;
  color: #081426;
  background: linear-gradient(135deg, var(--accent-soft, #fff0bf), #ffffff);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.congratulate-button:hover,
.form-container button:hover,
.overview-link:hover,
.overview-card-link:hover,
.copy-button:hover,
.email-button:hover {
  transform: translateY(-2px);
}

.form-container {
  width: auto;
  margin: 0;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.form-intro {
  margin-bottom: 16px;
}

.form-title {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.7rem;
  color: #102542;
}

.form-copy {
  margin: 8px 0 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #475569;
}

.greeting-page .form-container input,
.greeting-page .form-container textarea,
.greeting-page .form-container select {
  width: 100%;
  margin: 0 0 12px;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: #102542;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 16px;
  box-sizing: border-box;
}

.greeting-page .form-container textarea {
  min-height: 130px;
  resize: vertical;
}

.form-container button {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.98rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-strong, #0f172a), var(--accent-mid, #334155));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.generated-link {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #102542;
  background: rgba(241, 245, 249, 0.95);
  word-break: break-word;
}

.copy-button,
.email-button {
  margin: 12px 10px 0 0;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #ffffff;
}

.copy-button {
  background: linear-gradient(135deg, var(--accent-mid, #1d4ed8), var(--accent-strong, #0f172a));
}

.email-button {
  background: linear-gradient(135deg, #fb7185, #f97316);
}

.advertisement {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.advertisement p {
  margin: 0 0 8px;
}

.advertisement a {
  color: #ffffff;
  font-weight: 700;
}

.hero-panel {
  padding: 34px;
  background:
    radial-gradient(circle at 10% 10%, rgba(125, 211, 252, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(9, 18, 34, 0.75), rgba(29, 78, 216, 0.32));
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.meta-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(7, 15, 32, 0.24);
}

.overview-card-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 1.9rem;
  background: linear-gradient(135deg, var(--card-accent, #38bdf8), rgba(255, 255, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.overview-card h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.55rem;
  color: #ffffff;
}

.overview-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.overview-card-link,
.overview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.overview-card-link {
  width: fit-content;
  margin-top: auto;
  padding: 12px 16px;
  color: #081426;
  background: linear-gradient(135deg, #fef3c7, #ffffff);
}

.overview-highlight {
  margin-top: 22px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(248, 250, 252, 0.06)),
    rgba(15, 23, 42, 0.24);
}

.overview-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.overview-link {
  padding: 14px 20px;
  color: #081426;
  background: linear-gradient(135deg, #fde68a, #ffffff);
  white-space: nowrap;
}

.overview-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.62);
}

.theme-birthday {
  --page-bg: linear-gradient(135deg, #2d0b45 0%, #8f2d56 48%, #ff9f1c 100%);
  --blob-1: rgba(255, 190, 92, 0.35);
  --blob-2: rgba(255, 86, 125, 0.28);
  --accent-soft: #fff1c9;
  --accent-mid: #ff4d8d;
  --accent-strong: #8a2156;
}

.theme-vacation {
  --page-bg: linear-gradient(135deg, #003049 0%, #219ebc 45%, #ffb703 100%);
  --blob-1: rgba(56, 189, 248, 0.34);
  --blob-2: rgba(251, 146, 60, 0.28);
  --accent-soft: #fff5cc;
  --accent-mid: #f97316;
  --accent-strong: #0f4c81;
}

.theme-christmas {
  --page-bg: linear-gradient(135deg, #052e16 0%, #14532d 45%, #991b1b 100%);
  --blob-1: rgba(74, 222, 128, 0.24);
  --blob-2: rgba(248, 113, 113, 0.28);
  --accent-soft: #fef3c7;
  --accent-mid: #dc2626;
  --accent-strong: #14532d;
}

.theme-halloween {
  --page-bg: linear-gradient(135deg, #140014 0%, #3b0a45 45%, #ff7a00 100%);
  --blob-1: rgba(168, 85, 247, 0.26);
  --blob-2: rgba(249, 115, 22, 0.32);
  --accent-soft: #fde68a;
  --accent-mid: #9333ea;
  --accent-strong: #7c2d12;
}

.theme-valentine {
  --page-bg: linear-gradient(135deg, #500724 0%, #be185d 46%, #fb7185 100%);
  --blob-1: rgba(251, 113, 133, 0.26);
  --blob-2: rgba(244, 114, 182, 0.3);
  --accent-soft: #ffe4ef;
  --accent-mid: #ec4899;
  --accent-strong: #9d174d;
}

.theme-thanks {
  --page-bg: linear-gradient(135deg, #7c2d12 0%, #ea580c 48%, #fbbf24 100%);
  --blob-1: rgba(251, 191, 36, 0.32);
  --blob-2: rgba(239, 68, 68, 0.24);
  --accent-soft: #fff2cf;
  --accent-mid: #ef4444;
  --accent-strong: #9a3412;
}

.theme-newyear {
  --page-bg: linear-gradient(135deg, #020617 0%, #1d4ed8 45%, #facc15 100%);
  --blob-1: rgba(250, 204, 21, 0.24);
  --blob-2: rgba(56, 189, 248, 0.24);
  --accent-soft: #fff7d1;
  --accent-mid: #38bdf8;
  --accent-strong: #1d4ed8;
}

.theme-affection {
  --page-bg: linear-gradient(135deg, #4c0519 0%, #e11d48 46%, #8b5cf6 100%);
  --blob-1: rgba(244, 114, 182, 0.28);
  --blob-2: rgba(139, 92, 246, 0.24);
  --accent-soft: #ffe4eb;
  --accent-mid: #e11d48;
  --accent-strong: #7e22ce;
}

@media (max-width: 1080px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .greeting-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .greeting-shell,
  .overview-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .overview-topbar,
  .overview-highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .scene-panel,
  .details-panel,
  .hero-panel,
  .overview-card,
  .overview-highlight {
    border-radius: 24px;
  }

  .scene-panel,
  .details-panel,
  .hero-panel {
    padding: 22px;
  }

  .scene-stage {
    min-height: 290px;
    padding: 24px 14px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-page h1 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  .greeting-page h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.5rem);
  }
}
