*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--inv-surface, #120e16);
  color: var(--inv-text, #faf5ec);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Playfair Display", Georgia, serif; }
.hero-3d {
  position: relative;
  height: 90vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
}
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-top-pill {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  padding: 76px 20px 32px;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.45) 60%, transparent);
}
.hero-overlay-inner { max-width: 480px; margin: 0 auto; }
.guest-box {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}
.guest-prefix { font-size: 11px; color: rgba(255,255,255,0.7); margin: 0; }
.guest-name { font-size: 17px; font-weight: 700; margin: 3px 0 0; }
.hero-title { font-size: clamp(28px, 6vw, 42px); font-weight: 700; margin: 6px 0 0; line-height: 1.15; color: #fff; }
.hero-subtitle { font-size: 13px; color: rgba(255,255,255,0.8); margin: 8px 0 18px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #0b0910;
  background: var(--inv-accent, #d4af37);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover { transform: scale(1.03); filter: brightness(1.08); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.14); }
.bgm-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.blocks-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.block-card {
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 28px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.block-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  color: var(--inv-accent, #d4af37);
}
.block-sub {
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin: 6px 0 20px;
}
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.cd-box {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.28);
  padding: 14px 6px;
  text-align: center;
}
.cd-num { font-size: 28px; font-weight: 700; color: var(--inv-accent, #d4af37); }
.cd-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.65); margin-top: 4px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sub-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);
  padding: 18px;
}
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
}
.media-card img, .media-card video {
  display: block;
  width: 100%;
  object-fit: cover;
}
.depth-canvas-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.depth-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(0,0,0,0.65);
  color: #fde68a;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.media-cap {
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
}
.timeline {
  border-left: 2px solid rgba(212,175,55,0.4);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pill-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0b0910;
  background: var(--inv-accent, #d4af37);
}
.field-label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.82); margin-bottom: 6px; }
.field-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.32);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.field-input:focus { border-color: var(--inv-accent, #d4af37); }
.rsvp-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsvp-opt {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.24);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.rsvp-opt.active {
  border-color: var(--inv-accent, #d4af37);
  background: rgba(212,175,55,0.2);
  color: #fde68a;
}
.notice-ok {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12px;
  background: rgba(16,185,129,0.16);
  border: 1px solid rgba(52,211,153,0.4);
  color: #a7f3d0;
}
.notice-err {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12px;
  background: rgba(244,63,94,0.16);
  border: 1px solid rgba(251,113,133,0.4);
  color: #fecdd3;
}
.wish-list {
  margin-top: 18px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fallback-2d {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 20px 190px;
  height: 100%;
}
.fallback-card {
  width: 260px;
  border-radius: 26px;
  padding: 24px 18px;
  text-align: center;
  background: rgba(20,15,28,0.85);
  border: 1px solid rgba(212,175,55,0.55);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}
.watermark {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.28);
  background: rgba(212,175,55,0.06);
  color: #fde68a;
}
