.th-pesisir-dolan-2d{--bg:#fbf4ea;--card:#fffaf3;--primary:#2f7a96;--on-primary:#ffffff;--gold:#e98a5a;--gold-deep:#9a4a26;--ink:#22313a;--surface-low:color-mix(in srgb, var(--bg) 96%, var(--ink));--surface:color-mix(in srgb, var(--bg) 93%, var(--ink));--surface-high:color-mix(in srgb, var(--bg) 89%, var(--ink));--primary-2:color-mix(in srgb, var(--primary) 82%, var(--bg));--sage:color-mix(in srgb, var(--primary) 70%, var(--bg));--sage-mist:color-mix(in srgb, var(--primary) 48%, var(--bg));--gold-light:color-mix(in srgb, var(--gold) 78%, #fff);--gold-c:color-mix(in srgb, var(--gold) 50%, #fff);--gold-pale:#fbe0cc;--ink-2:color-mix(in srgb, var(--ink) 78%, var(--bg));--muted:#5e6e76;--line:#ecdccf;--muted:#57676f;--primary:#2c6b84;--line-gold:color-mix(in srgb,var(--gold) 32%,transparent);--foil:linear-gradient(135deg,var(--gold-light) 0%,var(--gold-c) 50%,var(--foil-pale,var(--gold-pale)) 100%);--foil-deep:linear-gradient(135deg,var(--gold),var(--gold-light) 50%,var(--gold-deep));--font-script:"Parisienne",cursive;--script-scale:1.45;--script-weight:400;--rvj-from:translateY(36px);--rvj-filter:none;--rvf-from:scale(.82);--rvf-filter:none;--rv-from:translateY(60px);--rv-dur:1.25s;--rv-stagger:220;}
.gate--gerbang { perspective: 1400px; }
.gate--gerbang .gate__panel { background: var(--primary); box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--gold) 70%, transparent), inset 0 0 0 12px var(--gold-light); }
.gate--gerbang .gate__panel::after { opacity: 0.22; mix-blend-mode: luminosity; }
.gate--gerbang .gate__panel--l { transform-origin: left center; }
.gate--gerbang .gate__panel--r { transform-origin: right center; }
.gate--gerbang .gate__panel::before { content: ""; position: absolute; top: 50%; width: 12px; height: 60px; margin-top: -30px; border-radius: 8px; background: var(--foil-deep); }
.gate--gerbang .gate__panel--l::before { right: 18px; }
.gate--gerbang .gate__panel--r::before { left: 18px; }
.gate--gerbang .gate__content { background: color-mix(in srgb, var(--bg) 88%, transparent); border-radius: 28px; margin: auto; max-width: 440px; width: calc(100% - 28px); box-shadow: var(--shadow-lg); }
.inv-opened .gate--gerbang:not(.gate--embed) .gate__panel, .is-open > .gate--gerbang .gate__panel { transition: transform 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.3s; }
.inv-opened .gate--gerbang:not(.gate--embed) .gate__panel--l, .is-open > .gate--gerbang .gate__panel--l { transform: rotateY(105deg); }
.inv-opened .gate--gerbang:not(.gate--embed) .gate__panel--r, .is-open > .gate--gerbang .gate__panel--r { transform: rotateY(-105deg); }
.float-deco--kelopak i { width: 12px; height: 16px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #fff, var(--foil-pale, var(--gold-pale))); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.float-deco--kelopak i:nth-child(3n) { background: linear-gradient(135deg, #fff, #f5d5d9); }
.dl{--dl-luar:#2d9fb5}
/* ═══ Tema DOLAN 2D — undangan berupa game (web/dolan.rs, mesin dolan-2d/) ═══
   Kanvas = piksel logis, diperbesar kelipatan bulat oleh WASM (lebar/tinggi
   gaya diatur di sana) → `image-rendering: pixelated`. HUD, tombol & kartu
   = HTML biasa (dirender server) bergaya panel piksel: garis 2–3 px gelap +
   bayangan keras, tanpa blur. */
.dl {
  --dl-garis: #2b1d1a;
  --dl-panel: #fffaf0;
  position: relative;
  background: var(--dl-luar);
}
.dl__layar {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: var(--dl-luar);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.dl__kanvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.4s steps(4);
  cursor: pointer;
}
.dl__kanvas.is-siap {
  opacity: 1;
}

/* Panel piksel bersama. */
.dl__panel,
.dl__aksi,
.dl__lewati,
.dl__petunjuk {
  background: var(--dl-panel);
  color: var(--dl-garis);
  border: 2px solid var(--dl-garis);
  border-radius: 3px;
  box-shadow: 0 3px 0 var(--dl-garis);
}

.dl__hud {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.dl__misi {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 12px;
  font-size: 0.8rem;
  line-height: 1.2;
}
/* Teks yang diubah WASM lewat ATRIBUT (bukan isi node): node teks milik
   Leptos tak boleh disentuh sebelum/selama hydrate. */
.dl__hitung {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.dl__hitung::after {
  content: attr(data-n);
}
.dl__aksi-teks::after {
  content: attr(data-teks);
}
.dl__pips {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl__pip {
  width: 10px;
  height: 10px;
  border: 2px solid var(--dl-garis);
  background: #e8e0cf;
}
.dl__pip.is-ok {
  background: var(--gold, #d4af37);
}

.dl__petunjuk {
  position: absolute;
  left: 50%;
  top: calc(max(12px, env(safe-area-inset-top)) + 52px);
  translate: -50% 0;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.82rem;
  text-align: center;
  width: max-content;
  max-width: calc(100% - 48px);
  pointer-events: none;
  animation: dl-kedip 1.2s steps(2) infinite;
  transition: opacity 0.3s steps(3);
}
.dl.is-main .dl__petunjuk {
  opacity: 0;
  animation: none;
}
@keyframes dl-kedip {
  50% {
    translate: -50% -3px;
  }
}

.dl__aksi {
  position: absolute;
  /* Kolom kanan dipakai tombol melayang undangan (amplop, bahasa, musik). */
  right: 68px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
}
.dl__aksi[hidden] {
  display: none;
}
.dl__aksi::before {
  content: "A";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--dl-garis);
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary, #fff);
}
.dl__aksi:active {
  translate: 0 2px;
  box-shadow: 0 1px 0 var(--dl-garis);
}

.dl__lewati {
  position: absolute;
  left: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
}
.dl__lewati:active {
  translate: 0 2px;
  box-shadow: 0 1px 0 var(--dl-garis);
}

.dl__gagal {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.dl__kanvas.is-gagal ~ .dl__gagal {
  display: flex;
}
.dl__kanvas.is-gagal ~ .dl__hud,
.dl__kanvas.is-gagal ~ .dl__petunjuk,
.dl__kanvas.is-gagal ~ .dl__aksi {
  display: none;
}

/* ── Kartu (dialog) ── */
.dl__kartu {
  width: min(420px, calc(100% - 32px));
  max-height: min(82svh, 720px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--card, var(--dl-panel));
  color: var(--ink, #2c2a1c);
  border: 3px solid var(--dl-garis);
  border-radius: 6px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.dl__kartu::backdrop {
  background: rgba(20, 15, 10, 0.55);
}
.dl__kartu[open] {
  animation: dl-muncul 0.24s steps(4);
}
@keyframes dl-muncul {
  from {
    scale: 0.86;
    opacity: 0;
  }
}
.dl__isi {
  display: grid;
  gap: 12px;
  padding: 22px 20px 20px;
  text-align: center;
}
.dl__tutup-f {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 1;
}
.dl__tutup {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--dl-garis);
  background: var(--dl-panel);
  border: 2px solid var(--dl-garis);
  border-radius: 3px;
  cursor: pointer;
}
.dl__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-deep, #775a19);
}
.dl__kartu h3 {
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: 1.45rem;
  line-height: 1.2;
}
.dl__kartu p {
  margin: 0;
  line-height: 1.55;
}
.dl__script {
  font-family: var(--font-script, var(--font-display, serif));
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--primary);
}
.dl__muted {
  color: var(--muted, #6a6650);
  font-size: 0.9rem;
}
.dl__orang {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.dl__foto {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 3px solid var(--dl-garis);
  border-radius: 50%;
  background: var(--surface, #eee);
}
.dl__daftar {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.dl__daftar li {
  padding: 10px 12px;
  border: 2px solid var(--line, #e3dcc4);
  border-radius: 4px;
}
.dl__daftar b {
  display: block;
}
.dl__galeri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.dl__galeri img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}
.dl__kartu .countdown {
  margin: 0;
}
.dl__aksi-baris {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .dl__petunjuk,
  .dl__kartu[open] {
    animation: none;
  }
}

/* Petunjuk kontrol: layar sentuh vs tetikus + keyboard. */
.dl__p-pc {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .dl__p-hp {
    display: none;
  }
  .dl__p-pc {
    display: inline;
  }
}
