@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #edf0f3; color: #111; font-family: 'Poppins', Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.invitation { --accent: #f5c94a; --accent-text: #f5c94a; --border: #f5c94a; --button-text: #fff; width: min(100%, 414px); margin: 0 auto; background: #fff; }
[data-theme="11"] .invitation { --accent: #194e70; --accent-text: #194e70; --border: #194e70; }
[data-theme="12"] .invitation { --accent: #7e426b; --accent-text: #7e426b; --border: #7e426b; }
[data-theme="13"] .invitation { --accent: #5d8665; --accent-text: #5d8665; --border: #5d8665; }
.scene { position: relative; width: 100%; min-height: 736px; background-image: var(--background-image); background-size: cover; background-position: center; text-align: center; overflow-wrap: anywhere; }
.scene > div { position: relative; z-index: 1; }
.scene h1, .scene h2, .scene h3, .scene p, .scene blockquote { margin: 0; }
.scene h1, .scene h2, .scene h3 { font-weight: 500; }
.scene h2 { color: var(--accent-text); }
.pill-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; padding: 9px 19px; border: 0; border-radius: 999px; background: var(--accent); color: var(--button-text); font-size: 17px; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; }
.pill-button:hover, .copy-button:hover, .submit-button:hover { filter: brightness(.94); }
.pill-button:focus-visible, .copy-button:focus-visible, .submit-button:focus-visible, .gallery-track:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.portrait { display: block; object-fit: cover; border-radius: 50%; box-shadow: 0 3px 5px #0003; }

.scene-cover .cover-content { display: flex; flex-direction: column; align-items: center; padding: 146px 22px 70px; }
.cover-kicker { font-size: 20px; line-height: 1.4; }
.scene-cover h1 { max-width: 100%; margin-top: 16px; color: var(--accent-text); font-size: 36px; font-weight: 600; line-height: 1.25; }
.portrait-cover { width: 186px; height: 186px; margin-top: 17px; }
.guest-label { margin-top: 18px !important; font-size: 16px; }
.guest-name { margin-top: 7px !important; font-size: 20px; font-weight: 500; }
.guest-place { margin-top: 8px !important; font-size: 16px; }
.open-button { margin-top: 24px; }

.scene-profile .profile-content { padding: 144px 24px 55px; }
.scene-profile h2 { font-size: 27px; line-height: 1.25; }
.profile-intro { max-width: 315px; margin: 28px auto 0 !important; font-size: 17px; line-height: 1.18; }
.portrait-profile { width: 184px; height: 184px; margin: 20px auto 0; }
.nickname { margin-top: 8px !important; font-size: 29px; line-height: 1.2; }
.scene-profile h3 { margin-top: 8px; color: var(--accent-text); font-size: 35px; line-height: 1.25; }
.parents { margin-top: 18px !important; font-size: 16px; line-height: 1.2; }

.scene-countdown .countdown-content { padding: 169px 31px 60px; }
.scene-countdown h2 { font-size: 39px; line-height: 1.2; white-space: nowrap; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.countdown-grid span { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 4px 0 3px; border: 1px solid var(--border); border-radius: 3px; background: #fff; color: #101010; font-family: Arial, sans-serif; }
.countdown-grid strong { font-size: 18px; line-height: 1.1; }
.countdown-grid small { font-size: 12px; font-weight: 700; line-height: 1.15; }
.calendar-button { margin-top: 20px; }
.prayer-card { margin-top: 20px !important; padding: 16px 18px 17px; border: 1px solid var(--border); border-radius: 24px; background: #fafafa; font-family: Arial, sans-serif; }
.prayer-card p { font-size: 18px; line-height: 1.13; }
.prayer-card footer { margin-top: 21px; color: var(--accent-text); font-size: 17px; }

.scene-event { padding: 107px 31px; }
.event-card { display: flex; flex-direction: column; align-items: center; min-height: 522px; padding: 24px 23px 34px; border: 1px solid var(--border); border-radius: 24px; background: #fafafa; font-family: Arial, sans-serif; }
.event-card > p:first-child { max-width: 305px; font-size: 18px; line-height: 1.15; }
.event-card h2 { margin-top: 37px; font-family: 'Poppins', Arial, sans-serif; font-size: 31px; line-height: 1.2; }
.event-date { margin-top: 41px !important; font-size: 19px; }
.event-time { margin-top: 14px !important; font-size: 19px; }
.event-card h3 { margin-top: 10px; font-size: 20px; font-weight: 700; }
.event-location { margin-top: 21px !important; font-size: 18px; line-height: 1.2; }
.map-button { margin-top: auto; font-family: 'Poppins', Arial, sans-serif; }

.scene-gallery .gallery-content { padding: 158px 0 80px; }
.scene-gallery h2 { font-size: 31px; line-height: 1.2; }
.gallery-track { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; margin-top: 38px; padding: 0 39px 8px; }
.gallery-track img { flex: 0 0 334px; width: 334px; height: 254px; border-radius: 10px; object-fit: cover; scroll-snap-align: center; }

.scene-gift { min-height: 924px; padding: 112px 29px 80px; }
.gift-card { display: flex; flex-direction: column; align-items: center; min-height: 700px; padding: 7px 29px 28px; border: 1px solid var(--border); border-radius: 25px; background: #fafafa; }
.gift-card h2 { font-size: 41px; line-height: 1.25; }
.gift-intro { margin-top: 23px !important; font-size: 16px; line-height: 1.52; }
.gift-detail { margin-top: 26px; font-size: 15px; line-height: 1.55; }
.gift-detail strong { display: block; overflow-wrap: anywhere; }
.copy-button, .submit-button { display: inline-flex; justify-content: center; align-items: center; min-height: 35px; padding: 6px 13px; border: 0; border-radius: 3px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.copy-button { margin-top: 23px; }
.bank-detail { margin-top: 27px; }
.copy-status { min-height: 1em; margin-top: 12px !important; font-size: 12px; }

.scene-guestbook { min-height: 964px; padding: 93px 39px 65px; }
.guestbook-content > h2 { font-size: 39px; line-height: 1.25; }
.guestbook-form, .wishes-list { border: 1px solid var(--border); border-radius: 12px; background: #fff; text-align: left; }
.guestbook-form { display: flex; flex-direction: column; margin-top: 21px; padding: 16px 22px 17px; font-family: Arial, sans-serif; }
.guestbook-form label { margin-bottom: 11px; color: #26343b; font-size: 16px; }
.guestbook-form input, .guestbook-form select, .guestbook-form textarea { width: 100%; min-height: 36px; margin-bottom: 11px; padding: 5px 8px; border: 1px solid #4b555c; border-radius: 8px; background: #fff; color: #26343b; font-family: Arial, sans-serif; font-size: 16px; }
.guestbook-form textarea { min-height: 55px; resize: vertical; }
.submit-button { align-self: flex-start; min-width: 83px; margin-top: 3px; }
.form-feedback { margin-top: 10px !important; font-size: 14px; }
.guestbook-content .wishes-title { margin-top: 12px; font-size: 38px; }
.wishes-list { min-height: 304px; max-height: 360px; margin: 17px 0 0; padding: 26px 29px 20px 42px; overflow-y: auto; color: #26343b; font-family: Arial, sans-serif; font-size: 16px; }
.wishes-list li { margin-bottom: 19px; padding-left: 4px; }
.wishes-list p { margin-top: 6px !important; }

.scene-closing { min-height: 795px; }
.closing-content { padding: 124px 32px 245px; font-size: 16px; line-height: 1.5; }
.scene-closing h2 { margin-top: 17px; font-size: 24px; line-height: 1.3; }
.scene-closing h3 { margin: 22px 0 20px; font-size: 16px; font-weight: 700; }
.scene-closing h3 + p, .scene-closing h3 + p ~ p:not(.closing-thanks):not(.closing-greeting) { margin-top: 18px; }
.closing-thanks { margin-top: 24px !important; }
.closing-greeting { margin-top: 18px !important; color: var(--accent-text); font-size: 23px; }

@media (max-width: 413px) {
  .scene-cover .cover-content { padding-top: 127px; }
  .scene-cover h1 { font-size: clamp(26px, 8vw, 36px); }
  .scene-profile .profile-content { padding-top: 127px; }
  .scene-profile h2 { font-size: clamp(22px, 6.5vw, 27px); }
  .scene-profile h3 { font-size: clamp(26px, 8vw, 35px); }
  .scene-countdown .countdown-content { padding: 155px 20px 50px; }
  .scene-countdown h2 { font-size: clamp(27px, 9vw, 39px); }
  .countdown-grid { gap: 7px; }
  .scene-event { padding-inline: 18px; }
  .event-card { padding-inline: 15px; }
  .event-card h2 { font-size: 27px; }
  .gallery-track { padding-inline: 25px; }
  .gallery-track img { flex-basis: min(80vw, 334px); width: min(80vw, 334px); }
  .scene-gift { padding-inline: 18px; }
  .gift-card { padding-inline: 18px; }
  .scene-guestbook { padding-inline: 20px; }
  .guestbook-content > h2, .guestbook-content .wishes-title { font-size: 33px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* tombol musik: muncul setelah undangan dibuka */
.music-toggle { position: fixed; top: 14px; right: 14px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: var(--button-text); font-size: 20px; line-height: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); cursor: pointer; }
.music-toggle[hidden] { display: none; }
.music-toggle:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.music-toggle.is-playing span { display: inline-block; animation: music-spin 3s linear infinite; }
.music-toggle:not(.is-playing) { opacity: .75; }
@keyframes music-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .music-toggle.is-playing span { animation: none; } }
