/* Mesin tema undangan — semua warna/font datang dari konfigurasi template (CSS variables). */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--f-body), system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: radial-gradient(1200px 700px at 15% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), radial-gradient(900px 700px at 100% 30%, color-mix(in srgb, var(--accent2) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg2) 55%, var(--bg));
  background-attachment: fixed
}

body.locked {
  overflow: hidden
}

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

a {
  color: inherit
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease
}

body.has3d #scene {
  opacity: 1
}

main,
.dock,
.musicbtn {
  position: relative;
  z-index: 2
}

.display {
  font-family: var(--f-display), Georgia, serif;
  font-weight: 600;
  letter-spacing: .01em
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 22px
}

section {
  position: relative
}

section:not(.cover) {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 66%, transparent) 12%, color-mix(in srgb, var(--bg) 66%, transparent) 88%, transparent)
}

.cover-inner {
  text-shadow: 0 2px 22px color-mix(in srgb, var(--bg) 85%, transparent)
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 48%, color-mix(in srgb, var(--bg) 55%, transparent), transparent 75%);
  pointer-events: none
}

.cover-inner {
  position: relative
}

/* ── Cover ── */
.cover {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px
}

.cover-inner {
  max-width: 760px;
  width: 100%
}

.cover .label {
  font-size: .78rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fadeUp 1s .2s both
}

.cover h1 {
  font-family: var(--f-display), Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 13vw, 7.2rem);
  line-height: 1.02;
  margin: 18px 0 8px;
  text-shadow: 0 4px 40px color-mix(in srgb, var(--accent) 45%, transparent)
}

.cover h1 .amp {
  display: block;
  font-size: .42em;
  color: var(--accent2);
  line-height: 1.2;
  font-style: italic
}

[data-split] span {
  display: inline-block;
  animation: letterIn .9s cubic-bezier(.2, .9, .2, 1) both;
  animation-delay: calc(var(--i)*55ms + 450ms)
}

.cover .sub {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: .98rem;
  animation: fadeUp 1s 1.1s both
}

.cover .date {
  margin-top: 20px;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  animation: fadeUp 1s 1.25s both
}

.to-card {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 18px;
  background: var(--card);
  backdrop-filter: blur(12px);
  animation: fadeUp 1s 1.4s both
}

.to-card small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase
}

.to-card strong {
  display: block;
  font-family: var(--f-display), Georgia, serif;
  font-size: 1.5rem;
  margin-top: 2px
}

.btn-open {
  margin-top: 30px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  border: 0;
  padding: 15px 34px;
  border-radius: 999px;
  font: 600 1rem var(--f-body), sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 40px -8px var(--accent);
  animation: fadeUp 1s 1.6s both, pulse 2.4s 2.6s infinite;
  transition: transform .25s
}

body.light .btn-open {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25)
}

.btn-open:hover {
  transform: translateY(-3px) scale(1.04)
}

.scroll-hint {
  margin-top: 34px;
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--muted);
  animation: fadeUp 1s 1.9s both
}

body.opened .btn-open {
  animation: none;
  opacity: .55;
  pointer-events: none
}

/* ── Judul & pemisah ── */
.eyebrow {
  display: block;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--accent)
}

h2.title {
  font-family: var(--f-display), Georgia, serif;
  font-weight: 600;
  text-align: center;
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  line-height: 1.15;
  margin: 8px 0 10px
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  color: var(--accent2);
  margin: 6px auto 30px;
  max-width: 320px;
  font-size: 1.1rem
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent)
}

.lead {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto
}

.card {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 24px;
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .45);
  transition: transform .25s ease, box-shadow .3s
}

[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden
}

[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .18), transparent 60%);
  opacity: 0;
  transition: opacity .3s
}

[data-tilt]:hover::after {
  opacity: 1
}

/* ── Ornamen per tema ── */
.orn-floral .card {
  border-radius: 30px;
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--bg) 70%, transparent), inset 0 0 0 7px color-mix(in srgb, var(--accent2) 35%, transparent), 0 18px 50px -24px rgba(0, 0, 0, .5)
}

.orn-stars .card {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 40px -10px var(--accent), 0 18px 50px -24px #000
}

.orn-confetti .card {
  border-radius: 26px;
  border-style: dashed;
  border-width: 2px
}

.orn-islamic .card {
  border-radius: 6px 28px 6px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 4l6 14 14-6-6 14 14 6-14 6 6 14-14-6-6 14-6-14-14 6 6-14-14-6 14-6-6-14 14 6z' fill='none' stroke='%23f5c451' stroke-opacity='.13'/%3E%3C/svg%3E")
}

.orn-clouds .card {
  border-radius: 48px 48px 48px 20px
}

.orn-lines .card {
  border-radius: 4px;
  border-top: 2px solid var(--accent2)
}

.orn-waves .card {
  border-radius: 26px
}

.orn-waves .closing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 18%, transparent));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q150 0 300 40 T600 40 T900 40 T1200 40 V90 H0z'/%3E%3C/svg%3E") center/100% 100%;
  pointer-events: none
}

/* ── Pembuka & kutipan ── */
.quote {
  margin: 28px auto 0;
  max-width: 600px;
  text-align: center;
  font-style: italic;
  color: var(--ink);
  opacity: .95
}

.quote small {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: var(--accent);
  letter-spacing: .14em
}

/* ── Mempelai / penyelenggara ── */
.hosts {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 10px
}

.host {
  text-align: center;
  padding-top: 34px
}

.avatar {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  margin: 0 auto 18px;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 5px;
  box-shadow: 0 14px 40px -10px var(--accent);
  transform: translateZ(40px)
}

.avatar img,
.avatar .mono {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover
}

.avatar .mono {
  display: grid;
  place-items: center;
  background: var(--bg2);
  font: 600 3.2rem var(--f-display), serif;
  color: var(--accent)
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent2) 60%, transparent);
  animation: spin 28s linear infinite
}

.host h3 {
  font-family: var(--f-display), Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.2
}

.host .full {
  color: var(--accent);
  font-size: .95rem;
  margin-top: 4px
}

.host .par {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 8px
}

.amp-between {
  display: none
}

/* ── Cerita ── */
.timeline {
  position: relative;
  margin: 10px auto 0;
  max-width: 620px;
  padding-left: 34px
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent2), transparent)
}

.tl {
  position: relative;
  margin-bottom: 18px
}

.tl::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent2) 28%, transparent)
}

.tl .when {
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase
}

.tl h4 {
  font-family: var(--f-display), Georgia, serif;
  font-size: 1.3rem;
  margin: 2px 0 4px
}

.tl p {
  color: var(--muted);
  font-size: .95rem
}

/* ── Acara ── */
.events {
  display: grid;
  gap: 20px
}

.event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center
}

.dateblock {
  min-width: 96px;
  text-align: center;
  padding: 14px 10px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--accent), var(--accent2));
  color: #fff;
  transform: translateZ(30px);
  box-shadow: 0 12px 30px -10px var(--accent)
}

.dateblock b {
  display: block;
  font: 700 2.7rem/1 var(--f-display), serif
}

.dateblock span {
  display: block;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 4px
}

.dateblock small {
  display: block;
  opacity: .85;
  font-size: .72rem;
  margin-top: 2px
}

.event h3 {
  font-family: var(--f-display), Georgia, serif;
  font-size: 1.5rem
}

.event .meta {
  color: var(--accent);
  font-size: .92rem;
  margin: 2px 0 8px
}

.event p {
  color: var(--muted);
  font-size: .93rem
}

.event .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font: 600 .86rem var(--f-body), sans-serif;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--ink);
  background: transparent;
  transition: .25s
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px)
}

.btn.solid {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 0;
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent)
}

.btn.ok {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a
}

@media(max-width:560px) {
  .event {
    grid-template-columns: 1fr;
    text-align: center
  }

  .event .row {
    justify-content: center
  }

  .dateblock {
    justify-self: center
  }
}

/* ── Countdown ── */
.cd {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto
}

.cd .tile {
  padding: 20px 6px;
  text-align: center;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  backdrop-filter: blur(12px);
  perspective: 600px
}

.cd .tile b {
  display: block;
  font: 700 clamp(1.9rem, 8vw, 3rem)/1 var(--f-display), serif;
  color: var(--accent);
  font-variant-numeric: tabular-nums
}

.cd .tile span {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted)
}

.tile.flip b {
  animation: flip .6s
}

#cdDone {
  text-align: center;
  margin-top: 16px;
  color: var(--accent2);
  font-weight: 600
}

/* ── Galeri ── */
.gallery {
  columns: 2;
  column-gap: 12px
}

@media(min-width:640px) {
  .gallery {
    columns: 3
  }
}

.gal-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform .35s, box-shadow .35s
}

.gal-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px -18px #000
}

.gal-item img {
  width: 100%;
  height: auto;
  transition: transform .8s
}

.gal-item:hover img {
  transform: scale(1.08)
}

.gal-item.ph {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, var(--bg)), color-mix(in srgb, var(--accent2) 45%, var(--bg)));
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, .85)
}

.gal-item.ph:nth-child(3n+1) {
  aspect-ratio: 3/4
}

.gal-item.ph:nth-child(3n+2) {
  aspect-ratio: 1/1
}

.gal-item.ph:nth-child(3n) {
  aspect-ratio: 4/5
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .88);
  display: grid;
  place-items: center;
  padding: 20px
}

#lightbox[hidden] {
  display: none
}

#lbBody img,
#lbBody .lb-ph {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px #000
}

#lbBody .lb-ph {
  width: min(80vw, 520px);
  aspect-ratio: 3/4
}

#lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  backdrop-filter: blur(6px)
}

#lbClose {
  top: 18px;
  right: 18px
}

#lbPrev {
  left: 14px;
  top: 50%
}

#lbNext {
  right: 14px;
  top: 50%
}

/* ── Form ── */
label.f {
  display: block;
  margin-bottom: 16px;
  font-size: .84rem;
  color: var(--muted)
}

input[type=text],
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition: .2s
}

body.light input[type=text],
body.light textarea {
  background: rgba(255, 255, 255, .85)
}

input[type=text]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent)
}

input[readonly] {
  opacity: .8
}

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

.pills {
  display: flex;
  gap: 10px;
  margin: 6px 0 16px
}

.pills label {
  flex: 1;
  cursor: pointer
}

.pills input {
  position: absolute;
  opacity: 0
}

.pills span {
  display: block;
  text-align: center;
  padding: 13px 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: .25s;
  font-weight: 600;
  font-size: .92rem
}

.pills input:checked+span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px -10px var(--accent);
  transform: translateY(-2px)
}

.pills input:focus-visible+span {
  outline: 2px solid var(--accent2);
  outline-offset: 2px
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px
}

.stepper button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer
}

.stepper input {
  width: 70px;
  text-align: center;
  margin: 0
}

.hide {
  display: none !important
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0
}

.sent button[type=submit] {
  opacity: .7
}

/* ── Buku tamu ── */
.gb {
  list-style: none;
  max-height: 340px;
  overflow: auto;
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding-right: 4px
}

.gb-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  animation: fadeUp .5s both
}

.gb-item b {
  color: var(--accent)
}

.gb-item p {
  margin: 2px 0;
  font-size: .94rem
}

.gb-item small {
  color: var(--muted);
  font-size: .74rem
}

/* ── Amplop digital ── */
.gifts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.bank {
  aspect-ratio: 1.6/1;
  border-radius: 22px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent2) 80%, #000));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 50px -22px var(--accent);
  border: 0
}

.bank .chip {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffe9a8, #c9a227);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2)
}

.bank .no {
  font: 600 1.35rem/1.2 ui-monospace, Menlo, monospace;
  letter-spacing: .12em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .25)
}

.bank .nm {
  font-size: .82rem;
  opacity: .9;
  letter-spacing: .06em;
  text-transform: uppercase
}

.bank .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  letter-spacing: .1em
}

.bank .btn {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  padding: 7px 14px;
  font-size: .78rem
}

/* ── Penutup ── */
.closing {
  text-align: center;
  overflow: hidden
}

.closing .names {
  font-family: var(--f-display), Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  margin-top: 16px;
  color: var(--accent)
}

/* ── Dock, musik, toast, badge ── */
.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 160%);
  display: flex;
  gap: 4px;
  padding: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .8s cubic-bezier(.2, .9, .2, 1) .4s;
  z-index: 20;
  box-shadow: 0 14px 40px -12px #000
}

body.opened .dock {
  transform: translate(-50%, 0)
}

.dock a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.15rem;
  transition: .25s;
  position: relative
}

.dock a:hover {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateY(-4px)
}

.dock a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  transform: translateY(-3px)
}

.musicbtn {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 20;
  display: none;
  place-items: center
}

body.opened .musicbtn.has {
  display: grid
}

.musicbtn.on {
  animation: spin 6s linear infinite;
  box-shadow: 0 0 24px var(--accent)
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -140%);
  z-index: 60;
  padding: 13px 20px;
  border-radius: 14px;
  background: #16a34a;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .45s cubic-bezier(.2, .9, .2, 1);
  max-width: 90vw;
  box-shadow: 0 14px 40px -10px #000
}

.toast.err {
  background: #dc2626
}

.toast.show {
  transform: translate(-50%, 0)
}

.wm {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 19;
  font-size: .7rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(6px)
}

body.opened .wm {
  bottom: 78px
}

.demo-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  text-align: center;
  font-size: .76rem;
  padding: 6px 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  letter-spacing: .06em
}

.expired-note {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  text-align: center;
  font-size: .8rem;
  padding: 8px;
  background: #b45309;
  color: #fff
}

footer.foot {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  padding: 30px 20px 110px
}

.cf {
  position: fixed;
  width: 8px;
  height: 12px;
  z-index: 70;
  pointer-events: none;
  animation: cf 1s ease-out forwards
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.98);
  transition: opacity .9s ease var(--d, 0ms), transform .9s cubic-bezier(.2, .9, .2, 1) var(--d, 0ms)
}

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

body:not(.opened) main>section:not(.cover) {
  visibility: hidden
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes letterIn {
  from {
    opacity: 0;
    transform: translateY(60px) rotateX(-80deg) scale(.8);
    filter: blur(8px)
  }

  to {
    opacity: 1;
    transform: none;
    filter: none
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 10px 40px -8px var(--accent)
  }

  50% {
    box-shadow: 0 10px 60px 4px var(--accent)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes flip {
  0% {
    transform: rotateX(-90deg);
    opacity: .2
  }

  100% {
    transform: none;
    opacity: 1
  }
}

@keyframes cf {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--r));
    opacity: 0
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }
}

/* fallback tanpa WebGL: gradien bergerak */
body.no3d {
  background-size: 200% 200%;
  animation: bgmove 18s ease infinite
}

@keyframes bgmove {

  0%,
  100% {
    background-position: 0 0
  }

  50% {
    background-position: 100% 100%
  }
}

/* ── Ornamen koleksi adat ── */
.orn-batik .card {
  border-radius: 10px;
  border-width: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 4c8 0 8 8 0 20 8-12 16-12 16-20M24 44c-8 0-8-8 0-20-8 12-16 12-16 20' fill='none' stroke='%23d4af37' stroke-opacity='.16'/%3E%3C/svg%3E")
}

.orn-wayang .card {
  border-radius: 4px 40px 4px 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 3l5 10-5 8-5-8zM24 45l5-10-5-8-5 8z' fill='none' stroke='%23d4af37' stroke-opacity='.18'/%3E%3C/svg%3E")
}

.orn-melati .card {
  border-radius: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='.2'%3E%3Ccircle cx='24' cy='24' r='3'/%3E%3Cellipse cx='24' cy='13' rx='3' ry='7'/%3E%3Cellipse cx='24' cy='35' rx='3' ry='7'/%3E%3Cellipse cx='13' cy='24' rx='7' ry='3'/%3E%3Cellipse cx='35' cy='24' rx='7' ry='3'/%3E%3C/g%3E%3C/svg%3E")
}

.orn-bali .card {
  border-radius: 16px;
  border-width: 2px;
  border-style: double;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 24h48M24 0v48' stroke='%23d4af37' stroke-opacity='.1'/%3E%3Cpath d='M24 10c6 4 6 10 0 14-6-4-6-10 0-14zM24 24c6 4 6 10 0 14-6-4-6-10 0-14z' fill='none' stroke='%23d4af37' stroke-opacity='.2'/%3E%3C/svg%3E")
}

.orn-minang .card {
  border-radius: 8px 8px 22px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 40l12-14 12 14 12-14 12 14' fill='none' stroke='%23d4af37' stroke-opacity='.2'/%3E%3Cpath d='M0 20l12-14 12 14 12-14 12 14' fill='none' stroke='%23d4af37' stroke-opacity='.12'/%3E%3C/svg%3E")
}

.orn-ulos .card {
  border-radius: 2px;
  border-left: 6px solid var(--accent2);
  border-right: 6px solid var(--accent2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 8h48M0 40h48' stroke='%23d4af37' stroke-opacity='.25' stroke-width='3'/%3E%3Cpath d='M8 24l8-8 8 8-8 8zM32 24l8-8 8 8-8 8z' fill='none' stroke='%23d4af37' stroke-opacity='.2'/%3E%3C/svg%3E")
}

.orn-pinisi .card {
  border-radius: 20px 20px 4px 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 30q6-8 12 0t12 0 12 0 12 0M0 42q6-8 12 0t12 0 12 0 12 0' fill='none' stroke='%23d4af37' stroke-opacity='.2'/%3E%3C/svg%3E")
}

.orn-songket .card {
  border-radius: 6px;
  border-width: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 6l18 18-18 18L6 24z M24 15l9 9-9 9-9-9z' fill='none' stroke='%23d4af37' stroke-opacity='.2'/%3E%3C/svg%3E")
}

.orn-toraja .card {
  border-radius: 0 0 28px 28px;
  border-top: 5px solid var(--accent2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 24l12-12 12 12-12 12zM24 24l12-12 12 12-12 12z' fill='none' stroke='%23d4af37' stroke-opacity='.22'/%3E%3C/svg%3E")
}

.orn-ikat .card {
  border-radius: 6px;
  border-bottom: 5px solid var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 4l8 12-8 12-8-12zM24 28l8 12-8 8-8-8z' fill='none' stroke='%23d4af37' stroke-opacity='.22'/%3E%3Cpath d='M0 24h48' stroke='%23d4af37' stroke-opacity='.08'/%3E%3C/svg%3E")
}

.orn-batik .divider,
.orn-wayang .divider,
.orn-bali .divider,
.orn-toraja .divider {
  letter-spacing: .3em
}