:root {
    --maroon-950: #3b0710;
    --maroon-900: #530b17;
    --maroon-800: #68101d;
    --maroon-700: #7a1725;
    --cream-50: #fffdf8;
    --cream-100: #fff8ed;
    --cream-200: #f4e3cf;
    --cream-300: #e7cfb1;
    --gold-300: #efd38f;
    --gold-400: #ddb45c;
    --gold-500: #bf8732;
    --ink: #301a1c;
    --muted: #725f5a;
    --shadow: 0 18px 55px rgba(59, 7, 16, .2);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

html {
    background: var(--cream-100);
}

body {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    background: var(--cream-100);
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.65;
}

body.modal-open,
body.is-locked {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(191, 135, 50, .36);
    outline-offset: 3px;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-content: center;
    gap: 18px;
    color: var(--maroon-800);
    text-align: center;
    background: var(--cream-100);
    transition: opacity .45s ease, visibility .45s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-mark {
    position: relative;
    width: 54px;
    height: 54px;
    margin: auto;
    animation: loader-spin 1.2s linear infinite;
}

.loader-mark span {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold-500);
}

.loader-mark span:nth-child(1) { left: 0; top: 0; }
.loader-mark span:nth-child(2) { right: 0; top: 0; }
.loader-mark span:nth-child(3) { left: 0; bottom: 0; }
.loader-mark span:nth-child(4) { right: 0; bottom: 0; }

.page-loader p {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    letter-spacing: .08em;
}

.cover-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 28px 20px;
    overflow: hidden;
    color: var(--cream-50);
    text-align: center;
    background:
        linear-gradient(rgba(59, 7, 16, .86), rgba(83, 11, 23, .94)),
        radial-gradient(circle at 50% 15%, #a13041, transparent 38rem),
        var(--maroon-900);
    transition: opacity .65s ease, filter .65s ease, transform .65s ease, visibility .65s ease;
}

.cover-screen::before,
.cover-screen::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 130px;
    opacity: .32;
    pointer-events: none;
    background-image: url("../images/theme-border.svg");
    background-repeat: repeat-x;
    background-size: auto 130px;
}

.cover-screen::before {
    top: 0;
}

.cover-screen::after {
    bottom: 0;
    transform: rotate(180deg);
}

.cover-screen.is-opening {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.03);
}

.cover-screen.is-hidden {
    visibility: hidden;
}

.cover-card {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
}

.monogram {
    display: grid;
    place-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    border: 1px solid rgba(239, 211, 143, .75);
    border-radius: 50%;
    color: var(--gold-300);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.6rem;
    box-shadow: 0 0 0 8px rgba(239, 211, 143, .08);
}

.monogram span {
    margin-inline: 3px;
    font-size: .65em;
}

.small-monogram {
    width: 86px;
    height: 86px;
    font-size: 2rem;
}

.eyebrow,
.slide-label {
    margin: 0 0 8px;
    color: var(--gold-500);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cover-screen .eyebrow {
    color: var(--gold-300);
}

.cover-card h1,
.script-title {
    margin: 0;
    color: var(--maroon-800);
    font-family: "Great Vibes", cursive;
    font-size: clamp(4.1rem, 16vw, 7rem);
    font-weight: 400;
    line-height: .92;
}

.cover-card h1 {
    color: var(--gold-300);
}

.cover-date,
.date-display {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: .05em;
}

.cover-date {
    color: var(--cream-100);
}

.guest-pill {
    display: grid;
    gap: 3px;
    width: min(100%, 430px);
    margin: 26px auto 22px;
    padding: 13px 20px;
    border: 1px solid rgba(239, 211, 143, .55);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
}

.guest-pill small {
    opacity: .76;
}

.guest-pill strong {
    color: var(--gold-300);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
}

.cover-ornament {
    position: absolute;
    bottom: -70px;
    width: 280px;
    height: 430px;
    opacity: .38;
    background:
        linear-gradient(135deg, transparent 45%, rgba(239, 211, 143, .2) 45% 47%, transparent 47%),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(239, 211, 143, .12) 19px 20px);
    border: 1px solid rgba(239, 211, 143, .2);
}

.cover-ornament-left {
    left: -150px;
    transform: rotate(9deg);
}

.cover-ornament-right {
    right: -150px;
    transform: rotate(-9deg) scaleX(-1);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 11px 23px;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.button-gold {
    color: var(--maroon-950);
    background: linear-gradient(135deg, #fae9ba, #d3a34d);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
}

.button-maroon {
    color: #fff;
    background: var(--maroon-800);
    box-shadow: 0 12px 28px rgba(83, 11, 23, .18);
}

.button-outline {
    border: 1px solid var(--gold-500);
    color: var(--maroon-800);
    background: rgba(255, 253, 248, .7);
}

.invitation-app {
    position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background:
        linear-gradient(rgba(255, 248, 237, .94), rgba(255, 248, 237, .94)),
        radial-gradient(circle at 50% 20%, rgba(191, 135, 50, .16), transparent 34rem);
    transition: opacity .55s ease, visibility .55s ease;
}

.invitation-app.is-visible {
    opacity: 1;
    visibility: visible;
}

.theme-frame {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("../images/theme-frame.svg");
    background-position: center;
    background-size: cover;
    opacity: .78;
}

.compact-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 560px);
    padding: calc(9px + env(safe-area-inset-top, 0px)) 18px 9px;
    transform: translateX(-50%);
    color: var(--maroon-800);
    background: linear-gradient(to bottom, rgba(255, 248, 237, .96), rgba(255, 248, 237, .72), transparent);
}

.compact-header small,
.compact-header strong {
    display: block;
}

.compact-header small {
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.compact-header strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.05rem;
}

.compact-monogram {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
}

.slides {
    position: fixed;
    inset: 0;
    z-index: 2;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.99);
    transition: opacity .48s ease, transform .48s ease, visibility .48s ease;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.slide-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding:
        calc(74px + env(safe-area-inset-top, 0px))
        max(20px, calc((100vw - 560px) / 2 + 20px))
        calc(130px + var(--safe-bottom));
}

.slide-content {
    width: min(100%, 760px);
    min-height: calc(100svh - 210px);
    margin: 0 auto;
    animation: content-in .65s ease both;
}

.slide:not(.is-active) .slide-content {
    animation: none;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.narrow-content {
    width: min(100%, 590px);
}

.narrow-text {
    max-width: 560px;
    margin-inline: auto;
}

.formal-title {
    margin: 0 0 12px;
    color: var(--maroon-800);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 9vw, 4.5rem);
    line-height: .98;
}

.arch-photo {
    position: relative;
    width: min(68vw, 310px);
    aspect-ratio: 4 / 5;
    margin: 12px auto 24px;
    overflow: hidden;
    border: 8px solid rgba(255, 253, 248, .9);
    border-radius: 160px 160px 26px 26px;
    box-shadow: var(--shadow);
}

.arch-photo::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(239, 211, 143, .7);
    border-radius: inherit;
    pointer-events: none;
}

.arch-photo img,
.circle-photo img,
.gallery-item img,
.video-poster img,
.contact-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo {
    width: min(70vw, 330px);
}

.profile-photo {
    width: min(65vw, 295px);
}

.circle-photo {
    width: min(54vw, 220px);
    aspect-ratio: 1;
    margin-bottom: 24px;
    overflow: hidden;
    border: 7px solid rgba(255,255,255,.86);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(100%, 520px);
    margin-top: 22px;
    border: 1px solid rgba(191, 135, 50, .5);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 253, 248, .72);
    box-shadow: 0 12px 34px rgba(59, 7, 16, .08);
}

.countdown div {
    display: grid;
    padding: 18px 8px;
}

.countdown div + div {
    border-left: 1px solid rgba(191, 135, 50, .26);
}

.countdown strong {
    color: var(--maroon-800);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 7vw, 3.8rem);
    line-height: 1;
}

.countdown span {
    margin-top: 6px;
    color: var(--muted);
    font-size: .72rem;
}

.decorative-symbol,
.gift-icon {
    color: var(--gold-500);
    font-size: 4.3rem;
}

blockquote {
    margin: 18px 0;
    color: var(--maroon-800);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.7rem, 6vw, 2.8rem);
    font-weight: 600;
    line-height: 1.3;
}

.quote-source {
    color: var(--gold-500);
    font-weight: 700;
}

.section-heading {
    margin-bottom: 24px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: #ead9c5;
    cursor: zoom-in;
    box-shadow: 0 10px 28px rgba(59, 7, 16, .1);
}

.gallery-wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
}

.event-stack,
.contact-grid,
.bank-list {
    display: grid;
    gap: 16px;
}

.event-card,
.contact-card,
.bank-card,
.map-card {
    border: 1px solid rgba(191, 135, 50, .35);
    border-radius: 24px;
    background: rgba(255, 253, 248, .82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(7px);
}

.event-card {
    padding: 27px 22px;
    text-align: center;
}

.event-card h3 {
    margin: 4px 0 12px;
    color: var(--maroon-800);
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}

.event-card p {
    margin: 6px 0;
}

.event-symbol {
    color: var(--gold-500);
    font-size: 2rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.map-card {
    overflow: hidden;
}

.map-card iframe {
    width: 100%;
    min-height: 330px;
    border: 0;
    background: #e9dfd0;
}

.map-copy {
    padding: 24px;
    text-align: center;
}

.map-copy strong {
    color: var(--maroon-800);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
}

.contact-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 16px;
}

.contact-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.contact-card div {
    display: grid;
}

.contact-card span {
    color: var(--muted);
    font-size: .82rem;
}

.closing-script {
    margin-top: 20px;
}

.video-poster {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 8px solid rgba(255, 253, 248, .85);
    border-radius: 26px;
    padding: 0;
    background: #e9dfd0;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: #fff;
    background: rgba(83, 11, 23, .86);
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 15;
    display: flex;
    width: min(100%, 620px);
    padding: 8px 10px calc(8px + var(--safe-bottom));
    overflow-x: auto;
    transform: translateX(-50%);
    background: rgba(83, 11, 23, .94);
    box-shadow: 0 -10px 30px rgba(59, 7, 16, .16);
    scrollbar-width: none;
    backdrop-filter: blur(12px);
}

.bottom-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    gap: 1px;
    min-height: 57px;
    border: 0;
    border-radius: 15px;
    color: rgba(255, 248, 237, .74);
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-item span {
    font-size: 1.12rem;
}

.nav-item small {
    font-size: .61rem;
}

.nav-item.is-active {
    color: var(--maroon-800);
    background: var(--cream-100);
    transform: translateY(-2px);
}

.floating-tools {
    position: fixed;
    right: max(12px, calc((100vw - 630px) / 2));
    bottom: calc(82px + var(--safe-bottom));
    z-index: 18;
    display: grid;
    gap: 8px;
}

.floating-button {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(239, 211, 143, .45);
    border-radius: 50%;
    color: var(--gold-300);
    text-decoration: none;
    background: var(--maroon-800);
    box-shadow: 0 9px 24px rgba(59, 7, 16, .22);
    cursor: pointer;
}

.whatsapp-button {
    color: #fff;
    background: #159447;
    font-size: .74rem;
    font-weight: 800;
}

.floating-button.is-playing {
    animation: button-pulse 1.8s ease-in-out infinite;
}

#musicToggle.is-playing {
    animation: music-spin 7s linear infinite;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 6, 11, .78);
    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    max-height: min(82svh, 760px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(239, 211, 143, .45);
    border-radius: 26px;
    background: var(--cream-100);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.modal-card h2 {
    margin: 0 0 22px;
    color: var(--maroon-800);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--maroon-800);
    font-size: 1.6rem;
    cursor: pointer;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.menu-grid button {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 88px;
    border: 1px solid rgba(191, 135, 50, .32);
    border-radius: 17px;
    color: var(--maroon-800);
    background: #fffdf8;
    cursor: pointer;
}

.menu-grid button span {
    font-size: 1.35rem;
}

.menu-grid button strong {
    font-size: .76rem;
}

.rsvp-form {
    display: grid;
    gap: 15px;
}

.rsvp-form label {
    display: grid;
    gap: 7px;
    color: var(--maroon-800);
    font-weight: 700;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    border: 1px solid #d8c1a5;
    border-radius: 13px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fffdf9;
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--maroon-800);
    text-align: center;
}

.bank-card {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.bank-card div {
    display: grid;
}

.bank-card span {
    color: var(--muted);
    font-size: .82rem;
}

.copy-button {
    border: 0;
    border-radius: 11px;
    padding: 9px 14px;
    color: #fff;
    background: var(--maroon-800);
    cursor: pointer;
}

.shipping-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid rgba(191, 135, 50, .32);
    border-radius: 18px;
    background: #fffdf8;
}

.gallery-modal {
    padding: 0;
}

.gallery-viewer {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 58px 48px;
}

.gallery-viewer img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 70px rgba(0,0,0,.4);
}

.gallery-close,
.video-close {
    position: fixed;
    top: 18px;
    right: 18px;
}

.gallery-arrow {
    position: fixed;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(83, 11, 23, .8);
    transform: translateY(-50%);
    font-size: 2rem;
    cursor: pointer;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.video-modal {
    padding: 30px 18px;
}

.video-frame {
    position: relative;
    z-index: 2;
    width: min(100%, 900px);
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 90px rgba(0,0,0,.48);
}

.video-frame iframe,
.video-frame video {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-empty {
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
    padding: 28px;
    color: #fff;
    text-align: center;
}

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

@keyframes content-in {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes button-pulse {
    50% { transform: scale(.92); }
}

@media (min-width: 650px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-wide {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
    }

    .event-stack {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(191, 135, 50, .26);
    }

    .countdown div:nth-child(4) {
        border-top: 1px solid rgba(191, 135, 50, .26);
    }

    .contact-card {
        grid-template-columns: 58px 1fr;
    }

    .contact-card img {
        width: 58px;
        height: 58px;
    }

    .contact-card .button {
        grid-column: 1 / -1;
    }

    .bank-card {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-button {
        width: 100%;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
   V2.1 — PHONE VIEWPORT / NO VERTICAL PAGE SCROLL
   Setiap section selalu memenuhi satu layar perangkat.
   ========================================================= */

body {
    min-height: 100dvh;
    overscroll-behavior: none;
    background:
        linear-gradient(rgba(247, 227, 194, .92), rgba(247, 227, 194, .92)),
        #f4e3c4;
}

.cover-screen,
.invitation-app {
    left: 50%;
    right: auto;
    width: min(100%, 480px);
    height: 100dvh;
    min-height: 100dvh;
    transform: translateX(-50%);
}

.cover-screen {
    border-radius: 0;
    box-shadow: 0 0 45px rgba(59, 7, 16, .16);
}

.cover-screen.is-opening {
    opacity: 0;
    filter: blur(8px);
    transform: translateX(-50%) scale(1.025);
}

.invitation-app {
    overflow: hidden;
    box-shadow: 0 0 45px rgba(59, 7, 16, .18);
}

.compact-header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    transform: none;
    padding:
        calc(7px + env(safe-area-inset-top, 0px))
        15px
        7px;
}

.slides {
    position: absolute;
    inset: 0;
    height: 100dvh;
    overflow: hidden;
    touch-action: pan-y;
}

.slide,
.slide-scroll {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
}

.slide-scroll {
    display: grid;
    align-items: center;
    overflow: hidden;
    overscroll-behavior: none;
    padding:
        calc(59px + env(safe-area-inset-top, 0px))
        16px
        calc(80px + var(--safe-bottom));
}

.slide-content {
    width: min(100%, 430px);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slide-content:not(.center-content) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.center-content {
    justify-content: center;
}

.section-heading {
    flex: 0 0 auto;
    margin-bottom: 13px;
}

.slide-label {
    margin-bottom: 4px;
    font-size: clamp(.78rem, 3.1vw, .96rem);
}

.formal-title {
    margin-bottom: 8px;
    font-size: clamp(2rem, 8vw, 3.25rem);
}

.script-title {
    font-size: clamp(3.25rem, 14vw, 5.5rem);
}

.date-display {
    margin: 8px 0 0;
    font-size: clamp(.98rem, 4vw, 1.18rem);
}

.arch-photo {
    width: min(55vw, 248px);
    max-height: 42dvh;
    margin: 6px auto 13px;
    border-width: 6px;
}

.hero-photo {
    width: min(58vw, 260px);
    max-height: 43dvh;
}

.profile-photo {
    width: min(54vw, 235px);
    max-height: 41dvh;
}

.circle-photo {
    width: min(43vw, 178px);
    margin-bottom: 13px;
    border-width: 5px;
}

.countdown {
    width: min(100%, 390px);
    margin-top: 12px;
    border-radius: 16px;
}

.countdown div {
    padding: 11px 5px;
}

.countdown strong {
    font-size: clamp(1.55rem, 6.4vw, 2.7rem);
}

.countdown span {
    margin-top: 2px;
    font-size: .63rem;
}

blockquote {
    margin: 10px 0;
    font-size: clamp(1.35rem, 5.6vw, 2.15rem);
    line-height: 1.22;
}

.decorative-symbol,
.gift-icon {
    font-size: clamp(2.5rem, 10vw, 3.7rem);
}

.gallery-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100dvh - 165px - var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.gallery-item,
.gallery-wide {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 13px;
}

.event-stack {
    flex: 0 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.event-card {
    padding: 13px 15px;
    border-radius: 17px;
}

.event-card h3 {
    margin: 0 0 4px;
    font-size: 1.55rem;
}

.event-card p {
    margin: 2px 0;
    font-size: .79rem;
    line-height: 1.35;
}

.event-symbol {
    font-size: 1.35rem;
}

.button-group {
    flex: 0 0 auto;
    gap: 8px;
    margin-top: 10px;
}

.button {
    min-height: 40px;
    padding: 8px 16px;
    font-size: .79rem;
}

.map-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: calc(100dvh - 154px - var(--safe-bottom));
    min-height: 0;
    border-radius: 18px;
}

.map-card iframe {
    width: 100%;
    min-height: 0;
    height: 100%;
}

.map-copy {
    padding: 12px 14px;
}

.map-copy strong {
    font-size: 1.25rem;
}

.map-copy p {
    margin: 3px 0 8px;
    font-size: .76rem;
}

.contact-grid {
    gap: 9px;
}

.contact-card {
    grid-template-columns: 55px 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 17px;
}

.contact-card img {
    width: 55px;
    height: 55px;
}

.contact-card .button {
    padding-inline: 13px;
}

.video-poster {
    width: min(100%, 390px);
    max-height: 46dvh;
    border-width: 5px;
    border-radius: 18px;
}

.play-button {
    width: 58px;
    height: 58px;
}

.floating-tools {
    position: absolute;
    right: 9px;
    bottom: calc(76px + var(--safe-bottom));
    gap: 6px;
}

.floating-button {
    width: 39px;
    height: 39px;
    font-size: .86rem;
}

.bottom-nav {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    transform: none;
    padding: 6px 4px calc(6px + var(--safe-bottom));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.nav-item {
    flex: 0 0 20%;
    width: 20%;
    min-width: 20%;
    min-height: 58px;
    padding: 4px 2px;
    scroll-snap-align: start;
}

.nav-item span {
    font-size: 1.08rem;
}

.nav-item small {
    max-width: 100%;
    overflow: hidden;
    font-size: .62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal {
    width: 100vw;
    height: 100dvh;
}

.modal-card {
    max-height: 82dvh;
}

/* Layar ponsel yang pendek: elemen dipadatkan lagi agar tetap satu layar. */
@media (max-height: 720px) {
    .compact-header {
        padding-top: calc(4px + env(safe-area-inset-top, 0px));
        padding-bottom: 4px;
    }

    .compact-monogram {
        width: 31px;
        height: 31px;
        font-size: .82rem;
    }

    .compact-header strong {
        font-size: .92rem;
    }

    .slide-scroll {
        padding-top: calc(49px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(73px + var(--safe-bottom));
    }

    .arch-photo {
        width: min(46vw, 205px);
        max-height: 36dvh;
        margin-bottom: 8px;
    }

    .hero-photo {
        width: min(49vw, 218px);
        max-height: 37dvh;
    }

    .profile-photo {
        width: min(45vw, 198px);
        max-height: 35dvh;
    }

    .circle-photo {
        width: min(35vw, 145px);
        margin-bottom: 8px;
    }

    .formal-title {
        font-size: clamp(1.75rem, 7vw, 2.55rem);
    }

    .script-title {
        font-size: clamp(2.85rem, 12vw, 4.5rem);
    }

    .countdown div {
        padding: 8px 4px;
    }

    .event-card {
        padding: 9px 12px;
    }

    .event-card h3 {
        font-size: 1.35rem;
    }

    .event-card p {
        font-size: .72rem;
    }

    .gallery-grid {
        height: calc(100dvh - 142px - var(--safe-bottom));
    }

    .map-card {
        height: calc(100dvh - 138px - var(--safe-bottom));
    }

    .bottom-nav {
        padding-top: 4px;
        padding-bottom: calc(4px + var(--safe-bottom));
    }

    .nav-item {
        min-height: 53px;
    }

    .floating-tools {
        bottom: calc(69px + var(--safe-bottom));
    }
}

@media (min-width: 481px) {
    .cover-screen,
    .invitation-app {
        border-radius: 18px;
    }

    .cover-screen {
        top: 0;
        bottom: auto;
    }
}
