/* KitaWedding demo 4 — Paket Platinum (Game).
   Tema: taman pernikahan malam hari, pixel-art, indigo + emas + pink.
   Font pixel hanya untuk label kecil; isi tetap mudah dibaca. */
:root {
  --indigo: #241b4d;
  --indigo-deep: #1b1035;
  --gold: #f5c542;
  --gold-soft: #ffe08a;
  --pink: #ff7bac;
  --cream: #fff9f0;
  --ink: #2b2140;
  --muted: #6f6584;
  --line: #e8ddf2;
  --green: #3f9d63;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}
body.locked { overflow: hidden; }
.pixel { font-family: 'Press Start 2P', monospace; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); }
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(.96); }
.btn-play {
  background: linear-gradient(180deg, var(--gold), #e8a91c); color: #3a2503;
  box-shadow: 0 6px 0 #a97a10, 0 10px 22px rgba(0,0,0,.35);
  font-family: 'Press Start 2P', monospace; font-size: 12px; line-height: 1.6; padding: 16px 24px;
}
.btn-ghost {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7);
}
.btn-dark { background: var(--indigo); color: #fff; }
.btn-line { background: transparent; color: var(--indigo); border: 2px solid var(--indigo); }
.btn-outline { background: #fff; color: var(--indigo); border: 2px solid var(--indigo); }
.btn-small { font-size: 14px; padding: 8px 18px; }
.btn-block { width: 100%; }

/* ---------- COVER ---------- */
.cover {
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(circle at 20% 15%, rgba(245,197,66,.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,123,172,.28), transparent 45%),
    linear-gradient(180deg, #2c2060, var(--indigo-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; overflow-y: auto;
  transition: transform .8s ease, opacity .8s ease;
}
.cover.open { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.cover-inner { max-width: 420px; }
.cover-badge {
  display: inline-block; background: var(--gold); color: #3a2503;
  font-family: 'Press Start 2P', monospace; font-size: 9px; line-height: 1.7;
  padding: 9px 14px; border-radius: 999px; box-shadow: 0 0 0 3px rgba(245,197,66,.35), 0 6px 18px rgba(0,0,0,.4);
}
.cover-eyebrow { display: block; margin-top: 22px; letter-spacing: 4px; font-size: 12px; text-transform: uppercase; color: var(--gold-soft); }
.cover-names { font-family: 'Press Start 2P', monospace; font-size: 30px; line-height: 1.7; margin: 12px 0 6px; text-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.cover-names .amp { color: var(--pink); font-size: 20px; }
.cover-date { font-weight: 800; color: var(--gold-soft); }
.cover-game { margin-top: 14px; font-size: 15px; line-height: 1.6; color: #e9e2ff; }
.cover-to { margin-top: 16px; font-size: 14px; color: #cfc6ec; }
.cover .btn-play { margin-top: 20px; }
.cover .btn-ghost { margin-top: 12px; }
.cover-note { margin-top: 20px; font-size: 12px; color: #9d92c4; }

/* ---------- MUSIK MELAYANG ---------- */
.music-btn {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid var(--gold); border-radius: 999px;
  padding: 9px 14px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px;
  color: var(--indigo); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.music-btn.playing { background: var(--indigo); color: #fff; }

/* ---------- LAYOUT UMUM ---------- */
.page { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }
.section { padding: 44px 0 8px; text-align: center; }
.section-num {
  display: inline-block; font-family: 'Press Start 2P', monospace; font-size: 10px;
  color: var(--gold); background: var(--indigo); padding: 8px 12px; border-radius: 8px; margin-bottom: 14px;
}
.section-tag {
  display: inline-block; font-size: 10px; color: #3a2503; background: var(--gold);
  padding: 9px 14px; border-radius: 8px; margin-bottom: 14px; line-height: 1.6;
}
.section-title { font-family: 'Press Start 2P', monospace; font-size: 17px; line-height: 1.8; color: var(--indigo); margin-bottom: 10px; }
.section-sub { color: var(--muted); max-width: 400px; margin: 0 auto 18px; }
.rule { width: 64px; height: 3px; background: var(--gold); margin: 18px auto; border-radius: 2px; }
.salam { font-weight: 800; font-size: 17px; color: var(--indigo); }
.verse { font-style: italic; color: var(--muted); max-width: 420px; margin: 16px auto 0; font-size: 15px; }
.verse cite { display: block; margin-top: 8px; font-style: normal; font-weight: 800; color: var(--indigo); }
.intro { max-width: 420px; margin: 0 auto; color: var(--ink); }

/* ---------- GAME ---------- */
.game-section { padding-top: 28px; }
.game-wrap {
  position: relative; width: 100%; height: min(78vh, 560px); min-height: 420px;
  border-radius: 18px; overflow: hidden; background: #20301f;
  border: 4px solid var(--indigo); box-shadow: 0 12px 30px rgba(27,16,53,.35);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.game-hud {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5;
  display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; pointer-events: none;
}
.hud-objective {
  background: rgba(255,255,255,.95); border: 2px solid var(--gold); border-radius: 12px;
  padding: 8px 12px; font-size: 13px; font-weight: 700; line-height: 1.35; max-width: 70%;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); text-align: left;
}
.hud-objective small { display: block; font-weight: 800; color: #a97a10; font-size: 11px; font-family: 'Press Start 2P', monospace; }
.hud-btns { display: flex; gap: 8px; flex-shrink: 0; }
.hud-btns button {
  pointer-events: auto; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gold); background: #fff; font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.game-toast {
  position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%);
  background: rgba(27,16,53,.92); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; display: none; z-index: 6; white-space: nowrap;
}
.game-joy {
  position: absolute; left: 18px; bottom: 20px; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.3); border: 2px solid rgba(255,255,255,.75); z-index: 6;
}
.game-stick {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: rgba(255,255,255,.95); border: 2px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--indigo);
}
.game-btn-a {
  position: absolute; right: 22px; bottom: 34px; width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid #fff; background: var(--pink); color: #fff; font-size: 26px; font-weight: 800;
  cursor: pointer; box-shadow: 0 6px 18px rgba(255,123,172,.55); z-index: 6;
}
.game-btn-a:active { transform: scale(.93); }
.game-btn-a:disabled { opacity: .45; }
.game-dialog {
  position: absolute; left: 12px; right: 12px; bottom: 150px; z-index: 8; display: none;
  background: #fffdf9; border: 3px solid var(--gold); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); text-align: left;
}
.dlg-who { font-weight: 800; color: var(--indigo); font-size: 14px; margin-bottom: 4px; }
.dlg-text { font-size: 15px; line-height: 1.55; min-height: 44px; }
.dlg-next {
  margin-top: 10px; background: var(--indigo); color: #fff; border: none; border-radius: 999px;
  padding: 10px 22px; font-weight: 800; font-size: 14px; cursor: pointer; float: right;
}
.game-panel {
  position: absolute; inset: 0; z-index: 9; background: rgba(27,16,53,.72);
  display: flex; align-items: flex-end; justify-content: center; padding: 12px;
}
.game-panel[hidden] { display: none; }
.panel-inner {
  position: relative; background: #fffdf9; border: 3px solid var(--gold); border-radius: 18px;
  padding: 18px 16px 16px; width: 100%; max-width: 420px; max-height: 82%; overflow-y: auto; text-align: center;
}
.panel-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; font-size: 14px; cursor: pointer; font-weight: 800;
}
.panel-title { font-family: 'Press Start 2P', monospace; font-size: 13px; line-height: 1.8; color: var(--indigo); margin-bottom: 12px; padding-right: 34px; }
.panel-body { font-size: 15px; text-align: left; }
.panel-body .mini-card { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.panel-body .mini-card h4 { color: var(--indigo); margin-bottom: 4px; }
.panel-body .mini-card p { color: var(--muted); font-size: 14px; }
.panel-body .panel-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.panel-body .panel-thumbs img { border-radius: 10px; width: 100%; height: 110px; object-fit: cover; }
.panel-body .btn { margin-top: 6px; }
.panel-body form label { display: block; font-weight: 700; font-size: 13px; margin: 10px 0 4px; text-align: left; }
.panel-body form input, .panel-body form select {
  width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px;
}
.game-start-overlay {
  position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: linear-gradient(180deg, rgba(27,16,53,.88), rgba(36,27,77,.92)); color: #fff;
}
.game-start-overlay .pixel { color: var(--gold); font-size: 15px; line-height: 1.9; margin-bottom: 14px; }
.game-start-overlay p { font-size: 15px; line-height: 1.7; color: #e9e2ff; }
.game-start-overlay .btn { margin-top: 18px; }
.game-finale {
  position: absolute; inset: 0; z-index: 10; background: rgba(27,16,53,.96);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; overflow-y: auto;
}
.game-finale[hidden] { display: none; }
#confetti { position: absolute; inset: 0; pointer-events: none; }
.finale-inner { position: relative; z-index: 2; color: #fff; max-width: 380px; }
.finale-inner h2 { font-family: 'Press Start 2P', monospace; font-size: 18px; line-height: 1.9; color: var(--gold); margin-bottom: 12px; }
.finale-inner p { color: #e9e2ff; font-size: 15px; }
.finale-names { font-family: 'Press Start 2P', monospace; font-size: 15px; color: var(--pink); margin: 14px 0 6px; }
.finale-count { margin-top: 10px; }
.finale-count strong { color: var(--gold-soft); }
.finale-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.finale-btns .btn { font-size: 11px; padding: 13px 18px; }
.game-hint { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- MEMPELAI ---------- */
.couple-card { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 22px 18px; margin: 12px auto; max-width: 400px; box-shadow: 0 6px 18px rgba(27,16,53,.08); }
.couple-monogram {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--indigo); color: var(--gold); font-family: 'Press Start 2P', monospace;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
}
.couple-name { font-size: 21px; color: var(--indigo); }
.couple-parents { font-size: 14px; color: var(--muted); margin-top: 6px; }
.couple-parents strong { color: var(--ink); }
.couple-bio { font-size: 15px; margin-top: 10px; }
.couple-amp { font-family: 'Press Start 2P', monospace; color: var(--pink); font-size: 18px; margin: 4px 0; }

/* ---------- HITUNG MUNDUR ---------- */
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 400px; margin: 18px auto 0; }
.count-box { background: var(--indigo); border-radius: 14px; padding: 14px 4px; color: #fff; }
.count-num { display: block; font-family: 'Press Start 2P', monospace; font-size: 18px; color: var(--gold); }
.count-label { font-size: 12px; font-weight: 700; color: #cfc6ec; }
.countdown-sub { color: var(--muted); font-weight: 700; }
.countdown-done { margin-top: 14px; font-weight: 800; color: var(--green); }

/* ---------- ACARA ---------- */
.event-card { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 20px 18px; margin: 12px auto; max-width: 400px; box-shadow: 0 6px 18px rgba(27,16,53,.08); }
.event-icon { font-size: 30px; }
.event-card h3 { color: var(--indigo); font-size: 19px; margin: 6px 0; }
.event-when { font-weight: 700; }
.event-where { color: var(--muted); font-size: 15px; margin-top: 4px; }
.events .btn { margin-top: 10px; }

/* ---------- LOKASI ---------- */
.location-name { font-size: 19px; font-weight: 800; color: var(--indigo); }
.location-addr { color: var(--muted); }
.map-wrap { margin: 16px auto; max-width: 440px; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; }

/* ---------- GALERI ---------- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; margin: 0 auto; }
.gallery-grid figure { background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery-grid img { width: 100%; height: 170px; object-fit: cover; }
.gallery-grid figcaption { font-size: 13px; font-weight: 700; padding: 8px; color: var(--indigo); }

/* ---------- RSVP ---------- */
.rsvp form { text-align: left; max-width: 400px; margin: 0 auto; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 20px 18px; }
.rsvp label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 4px; }
.rsvp label:first-child { margin-top: 0; }
.rsvp input, .rsvp select, .rsvp textarea {
  width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: #fff;
}
.rsvp fieldset { border: none; margin-top: 12px; }
.rsvp legend { font-weight: 700; font-size: 14px; }
.rsvp .radio { display: inline-block; font-weight: 600; margin: 6px 14px 0 0; }
.rsvp .radio input { width: auto; }
.form-error { color: #c0392b; font-weight: 700; font-size: 14px; margin-top: 10px; }
.rsvp form .btn { margin-top: 16px; }

/* ---------- AMPLOP ---------- */
.gift-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 20px 18px; margin: 12px auto; max-width: 400px; }
.gift-tag {
  position: absolute; top: 12px; right: 12px; background: var(--gold); color: #3a2503;
  font-family: 'Press Start 2P', monospace; font-size: 8px; padding: 6px 9px; border-radius: 6px;
}
.gift-bank { font-weight: 800; color: var(--indigo); }
.gift-number { font-family: 'Press Start 2P', monospace; font-size: 14px; margin: 8px 0 2px; letter-spacing: 1px; }
.gift-name { color: var(--muted); font-size: 14px; }
.gift-card .btn { margin-top: 12px; }
.gift-copied { color: var(--green); font-weight: 700; font-size: 13px; margin-top: 8px; }
.gift-note { color: var(--muted); font-size: 14px; max-width: 400px; margin: 0 auto; }

/* ---------- PENUTUP & FOOTER ---------- */
.closing-text { max-width: 420px; margin: 0 auto; }
.closing-names { font-family: 'Press Start 2P', monospace; color: var(--indigo); font-size: 16px; margin-top: 16px; line-height: 1.8; }
.closing-names .amp { color: var(--pink); }
.closing-family { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer { text-align: center; padding: 36px 0 8px; }
.footer-demo { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto 14px; }
.footer-credit { color: var(--muted); font-size: 12px; max-width: 440px; margin: 16px auto 0; }
.footer-brand { font-size: 13px; font-weight: 800; color: var(--indigo); margin-top: 10px; }

@media (max-width: 390px) {
  .cover-names { font-size: 24px; }
  .count-num { font-size: 15px; }
  .game-wrap { min-height: 400px; }
}
