/* ── Variables ─────────────────────────────────── */
:root {
  --bg:        #08080f;
  --gold:      #c4a76b;
  --gold-dim:  rgba(196, 167, 107, 0.25);
  --cream:     #f0ebe0;
  --muted:     rgba(240, 235, 224, 0.55);
  --font-en:   'Cormorant Garamond', serif;
  --font-ja:   'Noto Serif JP', serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ── App shell ─────────────────────────────────── */
#app {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 167, 107, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(196, 167, 107, 0.04) 0%, transparent 70%),
    var(--bg);
}

/* ── Loader ────────────────────────────────────── */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader span {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── Page content ──────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

/* ── Decorative vertical lines ─────────────────── */
.deco-top,
.deco-bottom {
  width: 1px;
  height: 56px;
  flex-shrink: 0;
}

.deco-top {
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin-bottom: 2.5rem;
}

.deco-bottom {
  background: linear-gradient(to top, transparent, var(--gold));
  margin-top: 2.5rem;
}

/* ── Label (WELCOME / THANK YOU) ───────────────── */
.label {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

/* ── Main heading ──────────────────────────────── */
.heading {
  font-family: var(--font-ja);
  font-size: 1.9rem;
  font-weight: 200;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 1.8rem;
}

/* ── Gold divider ──────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  width: 100%;
  justify-content: center;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--gold-dim);
}

.divider-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Body message ──────────────────────────────── */
.message {
  font-family: var(--font-ja);
  font-size: 0.85rem;
  font-weight: 200;
  line-height: 2.4;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ── Event meta (name / date) ──────────────────── */
.meta {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-name {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.7;
}

.meta-date {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.6;
}

/* ── Transitions ───────────────────────────────── */
.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-out {
  animation: fadeOut 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
