/* Paspor LXIV · gaya perayaan keluarga */

:root {
  --green: #2E7D4C;
  --green-deep: #1F5A36;
  --orange: #EFA31F;
  --orange-deep: #C97F10;
  --cream: #F8EFE7;
  --cream-2: #F1E4D4;
  --paper: #FCF7F0;
  --ink: #3A2F28;
  --ink-soft: #5D5148;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(239, 163, 31, 0.35); }

a { color: var(--green); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 12px;
}

.tb-text { flex: 1 1 auto; min-width: 0; line-height: 1.5; }

/* penyeimbang lebar tombol kembali supaya teks tetap di tengah */
.tb-pad { flex: 0 0 auto; width: 74px; }

.gate-page .topbar { display: block; padding: 11px 12px; }

.back-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(248, 239, 231, 0.5);
  border-radius: 30px;
  color: var(--cream);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  transition: background 0.2s;
}

.back-btn:hover { background: rgba(248, 239, 231, 0.16); }

/* ===== pola guilloche ala paspor ===== */
.hero::before,
.gate::before,
.id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='none' stroke='%232E7D4C' stroke-width='1'%3E%3Ccircle cx='210' cy='210' r='36'/%3E%3Ccircle cx='210' cy='210' r='72'/%3E%3Ccircle cx='210' cy='210' r='108'/%3E%3Ccircle cx='210' cy='210' r='144'/%3E%3Ccircle cx='210' cy='210' r='180'/%3E%3Ccircle cx='210' cy='210' r='216'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
  opacity: 0.05;
  pointer-events: none;
}

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 130px;
  overflow: hidden;
}

.hero-inner { position: relative; }

.logo-lxiv svg {
  width: clamp(260px, 56vw, 460px);
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.logo-lxiv text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 330px;
  font-weight: 700;
}

.lg-l { fill: var(--green); }
.lg-iv { fill: var(--orange); letter-spacing: -10px; }

.xman { transform-box: fill-box; transform-origin: 50% 100%; animation: hop 1.7s ease-in-out 1.2s infinite; }

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

.initials {
  font-family: var(--serif);
  color: var(--green);
  font-size: clamp(13px, 2.4vw, 17px);
  letter-spacing: 0.85em;
  text-indent: 0.85em;
  margin: 10px 0 36px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 6px;
}

.hero-name {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 300;
  letter-spacing: 2.5px;
  margin: 0 0 22px;
}

.countdown {
  font-family: var(--serif);
  display: inline-block;
  font-size: clamp(14px, 2.6vw, 19px);
  letter-spacing: 3px;
  color: var(--green);
  border-top: 1px solid rgba(46, 125, 76, 0.35);
  border-bottom: 1px solid rgba(46, 125, 76, 0.35);
  padding: 11px 24px;
  margin: 0;
  min-height: 1em;
}

.count-tick {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--orange-deep);
  margin: 14px 0 0;
  min-height: 1em;
}

body.party .countdown {
  color: var(--orange-deep);
  border-color: var(--orange);
  animation: pulse 1.3s ease-in-out infinite;
}

body.party .logo-lxiv { animation: wob 2.8s ease-in-out infinite; }

/* ===== hari H: spanduk selamat ===== */
.party-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 26px auto 0;
  max-width: 640px;
}

.party-banner span {
  font-family: var(--serif);
  font-size: clamp(18px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  animation: dropIn 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) backwards, sway 2.4s ease-in-out infinite;
}

.party-banner span:nth-child(even) { color: var(--orange-deep); }

@keyframes dropIn {
  0% { opacity: 0; transform: translateY(-38px) rotate(-9deg) scale(0.7); }
  100% { opacity: 1; transform: none; }
}

@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}

.ribbon {
  position: fixed;
  top: -60px;
  width: 8px;
  height: 42px;
  border-radius: 4px;
  opacity: 0.75;
  z-index: 55;
  pointer-events: none;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(-60px) rotate(0deg); }
  100% { transform: translateY(108vh) rotate(520deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes wob {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1.6deg); }
  75% { transform: rotate(1.6deg); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  color: var(--green);
  animation: nod 1.6s ease-in-out infinite;
}

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

.mrz {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--paper);
  border-top: 1.5px solid rgba(46, 125, 76, 0.25);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: clamp(9px, 1.7vw, 13px);
  letter-spacing: 0.12em;
  color: #756758;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.mrz span { display: block; line-height: 1.6; }

/* ===== seksi umum ===== */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 76px 24px 8px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 18px;
  font-weight: 600;
}

.page-head span {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}

.page-head::before,
.page-head::after {
  content: "";
  flex: 0 1 120px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 76, 0.4));
}

.page-head::after {
  background: linear-gradient(90deg, rgba(46, 125, 76, 0.4), transparent);
}

.page-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ===== halaman identitas ===== */
.id-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid rgba(46, 125, 76, 0.55);
  border-radius: 16px;
  padding: 30px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  align-items: start;
}

.id-photo {
  position: relative;
  border: 2px solid rgba(46, 125, 76, 0.45);
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(46, 125, 76, 0.5);
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(46, 125, 76, 0.05) 12px 24px);
}

.id-photo svg { width: 64px; height: auto; }

.id-photo span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
}

.id-photo.has-img { background: none; padding: 5px; }

.id-photo.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.id-fields { margin: 0; position: relative; }

/* ===== halaman kenangan ===== */
.album {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px 8px 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 125, 76, 0.35) transparent;
}

.photo {
  flex: 0 0 auto;
  width: min(300px, 74vw);
  margin: 0;
  scroll-snap-align: center;
  background: var(--paper);
  border: 1px solid rgba(46, 125, 76, 0.28);
  border-radius: 10px;
  padding: 12px 12px 0;
  box-shadow: 0 10px 24px rgba(58, 47, 40, 0.13);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album .photo:nth-child(odd) { --tilt: -1.2deg; }
.album .photo:nth-child(even) { --tilt: 1.4deg; }

.photo:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 18px 34px rgba(58, 47, 40, 0.2);
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  cursor: zoom-in;
  background: var(--cream-2);
}

.photo figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
  padding: 11px 4px 14px;
}

.photo.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 12px;
  border: 2px dashed rgba(46, 125, 76, 0.4);
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(46, 125, 76, 0.05) 12px 24px);
  box-shadow: none;
}

.photo.slot span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(46, 125, 76, 0.6);
}

/* ===== lightbox foto ===== */
.lbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(31, 44, 36, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  animation: lbIn 0.25s ease;
}

@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lbox button {
  position: absolute;
  background: rgba(252, 247, 240, 0.14);
  border: 1px solid rgba(248, 239, 231, 0.5);
  color: var(--cream);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lbox button:hover { background: rgba(252, 247, 240, 0.3); }

.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-close { top: 12px; right: 12px; font-size: 18px; }

.lb-cap {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(248, 239, 231, 0.85);
  padding: 0 70px;
}

.id-fields div { margin-bottom: 17px; }
.id-fields div:last-child { margin-bottom: 0; }

.id-fields dt {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 4px;
}

.id-fields dd {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  line-height: 1.4;
}

/* ===== statistik ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: var(--paper);
  border: 1.5px solid rgba(46, 125, 76, 0.3);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
}

.stat-v {
  font-family: var(--serif);
  display: block;
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.stat-l {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* ===== kue & lilin ===== */
.cake-zone { text-align: center; }

.cake {
  position: relative;
  width: min(430px, 88vw);
  height: 310px;
  margin: 46px auto 8px;
}

.plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-2);
  box-shadow: 0 8px 18px rgba(58, 47, 40, 0.15);
}

.tier {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 2px solid rgba(46, 125, 76, 0.3);
  border-radius: 12px;
}

.tier::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 15px;
  border-radius: 10px 10px 0 0;
}

.t1 { bottom: 16px; width: 88%; height: 76px; }
.t1::before { background: rgba(239, 163, 31, 0.3); }

.t2 { bottom: 90px; width: 63%; height: 64px; }
.t2::before { background: rgba(46, 125, 76, 0.25); }

.t3 { bottom: 152px; width: 52%; height: 56px; }
.t3::before { background: rgba(239, 163, 31, 0.3); }

.candles {
  position: absolute;
  bottom: 205px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  z-index: 3;
}

.candles.row2 {
  bottom: 91px;
  width: 88%;
  justify-content: space-between;
  padding: 0 9px;
  z-index: 2;
}

.cgroup { display: flex; align-items: flex-end; gap: 10px; }

.candle {
  position: relative;
  width: 13px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  background: repeating-linear-gradient(135deg, #fff 0 5px, rgba(239, 163, 31, 0.85) 5px 10px);
}

.candle.digit {
  width: auto;
  height: auto;
  background: none;
  padding: 0 4px;
}

.dnum {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 0.9;
  font-weight: 700;
  color: var(--green);
  display: block;
}

.flame {
  position: absolute;
  left: 50%;
  top: -21px;
  transform: translateX(-50%);
  width: 13px;
  height: 19px;
  background: linear-gradient(#F9D34A, #EF7A1F);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  box-shadow: 0 0 16px rgba(239, 163, 31, 0.85);
  animation: flick 0.34s ease-in-out infinite alternate;
}

.candle.digit .flame { top: -18px; }

@keyframes flick {
  from { transform: translateX(-50%) scale(1) rotate(-3deg); }
  to { transform: translateX(-52%) scale(0.85) rotate(4deg); }
}

.smoke {
  position: absolute;
  left: 50%;
  top: -26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(120, 110, 100, 0.55);
  opacity: 0;
  pointer-events: none;
}

.candle.out .flame { display: none; }

.candle.out .smoke { animation: puff 1.3s ease-out forwards; }

@keyframes puff {
  0% { opacity: 0.7; transform: translate(-50%, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(-64%, -48px) scale(2.6); }
}

.cake-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--green);
  margin: 18px 0 10px;
  min-height: 1em;
}

.ghost-btn {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--orange-deep);
  background: none;
  border: 1.5px solid rgba(201, 127, 16, 0.5);
  border-radius: 30px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.ghost-btn:hover { background: rgba(239, 163, 31, 0.12); }

/* ===== formulir visa ===== */
.visa-form { max-width: 540px; margin: 0 auto; }

.vf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.visa-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.visa-form input,
.visa-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-bottom: 2px solid rgba(46, 125, 76, 0.35);
  background: transparent;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  color: var(--ink);
  padding: 8px 2px;
  resize: vertical;
}

.visa-form input:focus,
.visa-form textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}

.hp {
  position: absolute !important;
  left: -6000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.cap-btn {
  display: block;
  margin: 8px auto 0;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  border: 4px double var(--green);
  background: transparent;
  color: var(--green);
  font-family: var(--sans);
  cursor: pointer;
  transform: rotate(-8deg);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cap-btn span { display: block; font-size: 27px; letter-spacing: 2px; font-weight: 700; }

.cap-btn small { display: block; font-size: 8px; letter-spacing: 2px; margin-top: 4px; }

.cap-btn:hover { transform: rotate(-2deg) scale(1.06); background: rgba(46, 125, 76, 0.08); }

.cap-btn:active { transform: rotate(-11deg) scale(0.92); }

.cap-btn.slammed { animation: slamBtn 0.5s cubic-bezier(0.3, 1.6, 0.4, 1); }

@keyframes slamBtn {
  0% { transform: rotate(-24deg) scale(1.7); }
  70% { transform: rotate(-6deg) scale(0.92); }
  100% { transform: rotate(-8deg) scale(1); }
}

.vf-note {
  text-align: center;
  font-size: 14px;
  color: var(--orange-deep);
  min-height: 1.3em;
  margin: 14px 0 0;
}

.stamp-count {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--orange-deep);
  margin: 34px 0 20px;
}

/* ===== dinding stempel ===== */
.stamps-wall {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 26px;
  padding: 18px 8px 26px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 125, 76, 0.35) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.stamps-wall {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.swipe-hint {
  text-align: center;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.stamp {
  position: relative;
  flex: 0 0 auto;
  width: min(250px, 68vw);
  scroll-snap-align: center;
  padding: 16px 20px 13px;
  text-align: center;
  transform: rotate(var(--rot, 0deg));
  mix-blend-mode: multiply;
  animation: stampIn 0.45s cubic-bezier(0.3, 1.5, 0.4, 1) backwards;
}

@keyframes stampIn {
  0% { transform: rotate(calc(var(--rot, 0deg) - 15deg)) scale(2); opacity: 0; }
  100% { transform: rotate(var(--rot, 0deg)) scale(1); opacity: 1; }
}

.ink-g { color: rgba(46, 125, 76, 0.85); }
.ink-o { color: rgba(201, 127, 16, 0.85); }

.st-0 { border: 3px solid currentColor; border-radius: 12px; }

.st-0::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 8px;
  pointer-events: none;
}

.st-1 {
  border: 3px solid currentColor;
  border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  padding: 22px 26px 18px;
}

.st-2 { border: 6px double currentColor; border-radius: 6px; }

.st-empty {
  border: 2px dashed rgba(46, 125, 76, 0.5);
  border-radius: 12px;
  color: rgba(46, 125, 76, 0.75);
  font-style: italic;
  font-size: 14.5px;
  padding: 22px 26px;
}

.st-top { display: block; font-size: 8px; letter-spacing: 1.8px; text-transform: uppercase; }

.stamp strong {
  display: block;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 5px 0 4px;
}

.stamp p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0 0 8px;
  overflow-wrap: break-word;
}

.st-meta {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.wall-note {
  text-align: center;
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 20px auto 0;
}

.wa-share {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 30px auto 0;
  background: var(--green);
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.6px;
  padding: 13px 26px;
  border-radius: 40px;
  transition: transform 0.2s, background 0.2s;
}

.wa-share:hover { background: var(--green-deep); transform: translateY(-2px); }

/* ===== bagasi ===== */
.bagasi-books {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 34px;
}

.mini-book {
  width: 150px;
  aspect-ratio: 125 / 176;
  border-radius: 8px 14px 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  box-shadow: 0 14px 28px rgba(58, 47, 40, 0.22);
  transition: transform 0.25s ease;
}

.mini-book:nth-child(odd) { transform: rotate(-3deg); }
.mini-book:nth-child(even) { transform: rotate(3deg); }

.mini-book:hover { transform: rotate(0deg) translateY(-6px); }

.mini-book::before,
.book-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(248, 239, 231, 0.55);
  border-radius: inherit;
  pointer-events: none;
}

.cover-sws { background: var(--green); color: #F2E4C8; }
.cover-lhw { background: var(--orange-deep); color: #FBF2DF; }

.mb-lxiv { font-family: var(--serif); font-size: 28px; letter-spacing: 2px; font-weight: 700; }
.mb-init { font-size: 10px; letter-spacing: 4px; }
.mb-count { font-family: var(--mono); font-size: 8px; letter-spacing: 2px; margin-top: 14px; }

.partner-link {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.8px;
  font-size: 15px;
  border: 1.5px solid rgba(46, 125, 76, 0.4);
  border-radius: 40px;
  padding: 12px 28px;
  transition: background 0.2s;
}

.partner-link:hover { background: rgba(46, 125, 76, 0.08); }

/* ===== gerbang / loket ===== */
.gate {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
  overflow: hidden;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0;
}

.gate-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--green);
  margin: 10px 0 14px;
}

.gate-sub {
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 48px;
}

.gate-books {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.book-col { text-decoration: none; color: inherit; display: block; }

.book-card {
  width: 225px;
  aspect-ratio: 125 / 176;
  border-radius: 10px 16px 16px 10px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 18px 36px rgba(58, 47, 40, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-col:hover .book-card {
  transform: translateY(-10px) rotate(-2deg);
  box-shadow: 0 26px 48px rgba(58, 47, 40, 0.28);
}

.bc-top, .bc-bottom { font-size: 8.5px; letter-spacing: 2.5px; text-transform: uppercase; }

.bc-emblem { width: 46px; height: auto; }

.bc-lxiv { font-family: var(--serif); font-size: 46px; letter-spacing: 3px; font-weight: 700; }

.bc-init { font-size: 12px; letter-spacing: 6px; }

.book-meta { display: block; margin-top: 18px; }

.book-name { display: block; font-size: 17.5px; font-weight: 600; color: var(--ink); }

.book-date {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  margin-top: 5px;
}

.book-cta {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--orange-deep);
  border-bottom: 1px solid rgba(201, 127, 16, 0.5);
  margin-top: 8px;
}

/* ===== segera terbit (paspor anak) ===== */
.upcoming {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 76px auto 0;
  padding: 0 20px;
}

.up-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 10px;
}

.up-head span {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
  font-weight: 500;
}

.up-head::before,
.up-head::after {
  content: "";
  flex: 0 1 90px;
  height: 1.5px;
  background: rgba(46, 125, 76, 0.3);
}

.up-sub {
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 auto 26px;
  max-width: 440px;
}

.up-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.up-card {
  width: 148px;
  padding: 18px 12px 15px;
  border: 1.5px dashed rgba(46, 125, 76, 0.4);
  border-radius: 12px;
  background: rgba(252, 247, 240, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: default;
}

.up-slot {
  width: 42px;
  color: rgba(46, 125, 76, 0.35);
  display: block;
}

.up-slot svg { width: 100%; height: auto; display: block; }

.up-name {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--ink);
  text-align: center;
}

.up-tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* ===== footer, musik, lain-lain ===== */
.foot {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  padding: 20px 16px;
  margin-top: 90px;
}

.gate-page .foot { margin-top: 0; }

.egg { cursor: help; border-bottom: 1px dotted var(--cream); }

.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--paper);
  color: var(--green);
  font-size: 21px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(58, 47, 40, 0.2);
  transition: transform 0.2s;
}

.music-btn:hover { transform: scale(1.08); }

.music-btn.on {
  background: var(--green);
  color: var(--cream);
  animation: wob 1.4s ease-in-out infinite;
}

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

.haha {
  position: fixed;
  bottom: 12%;
  z-index: 65;
  color: var(--orange-deep);
  font-weight: 700;
  letter-spacing: 2px;
  pointer-events: none;
  opacity: 0.9;
  animation: rise 2.5s ease-out forwards;
}

@keyframes rise {
  to { transform: translateY(-46vh) rotate(7deg); opacity: 0; }
}

/* ===== reveal ===== */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rv.in { opacity: 1; transform: none; }

/* ===== responsif ===== */
@media (max-width: 660px) {
  .topbar { font-size: 8.5px; letter-spacing: 1.6px; padding: 8px 10px; gap: 8px; }
  .back-btn { font-size: 9px; letter-spacing: 1.2px; padding: 5px 9px; }
  .tb-full { display: none; }
  .tb-pad { width: 58px; }
  .countdown { font-size: 13px; letter-spacing: 1.6px; padding: 10px 14px; }
  .count-tick { font-size: 9.5px; letter-spacing: 1.6px; }
  .hero { min-height: 78vh; padding: 40px 18px 120px; }
  .page { padding-top: 58px; }
  .mini-book { width: 122px; }
  .bagasi-books { gap: 22px; }
  .id-card { grid-template-columns: 1fr; }
  .id-photo { max-width: 190px; margin: 0 auto; }
  .lbox { padding: 60px 10px; }
  .lbox button { width: 40px; height: 40px; }
  .lb-cap { padding: 0 20px; bottom: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .vf-row { grid-template-columns: 1fr; gap: 0; }
  .candles { gap: 7px; }
  .dnum { font-size: 52px; }
  .candle { width: 10px; height: 38px; }
  .cake { height: 280px; }
  .gate-books { gap: 30px; }
  .bc-top, .bc-bottom { font-size: 7.5px; letter-spacing: 1.5px; }
  .gate { padding: 52px 18px 60px; }
  .upcoming { margin-top: 56px; }
  .up-list { gap: 12px; }
  .up-card { width: calc(50% - 6px); }
}

/* ===== hormati preferensi gerak ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .xman, .flame, .scroll-hint, .music-btn.on,
  body.party .logo-lxiv, body.party .countdown,
  .party-banner span, .ribbon { animation: none; }
  .stamp { animation: none; }
}

/* ===== cetak sebagai kenang-kenangan ===== */
@media print {
  .topbar, .mrz, .scroll-hint, .visa-form, .wa-share, .music-btn,
  .ghost-btn, #confetti, .partner-link, .wall-note { display: none !important; }
  body { background: #fff; }
  .rv { opacity: 1; transform: none; }
  .stamp { break-inside: avoid; }
  .hero { min-height: auto; padding-bottom: 20px; }
}
