/* =========================================================
   HONG WEI & CHIH HAN
   VVIP HOTEL WEDDING INVITATION
========================================================= */

:root {
    --orange: #D97E4A;
    --pink: #F2E2DC;
    --cream: #FFF7EE;
    --cream-2: #F7F1E7;
    --wine: #633F42;
    --brown: #493B35;
    --soft-brown: #8A7770;
    --line: rgba(99, 63, 66, 0.22);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    margin: 0 auto;

    background: #E9DDD7;
    color: var(--wine);

    font-family:
        "PingFang TC",
        "Noto Serif TC",
        "Microsoft JhengHei",
        sans-serif;

    overflow-x: hidden;
}

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

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

section {
    width: 100%;
}


/* =========================================================
   DESKTOP — 維持手機長頁感
========================================================= */

@media (min-width: 600px) {
    body {
        max-width: 520px;

        box-shadow:
            0 0 70px
            rgba(70, 45, 35, 0.14);
    }
}


/* =========================================================
   共用標題
========================================================= */

.section-heading {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 45px;

    color: var(--orange);
}

.section-heading > span {
    flex-shrink: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;

    letter-spacing: 1px;
}

.section-heading .heading-line {
    flex: 1;

    height: 1px;

    background: currentColor;

    opacity: 0.55;
}

.section-heading small {
    flex-shrink: 0;

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing: 1.5px;

    opacity: 0.8;
}


/* =========================================================
   01｜COVER
========================================================= */

.cover {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--pink);
}

.cover-photo {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    animation: none;
}

@keyframes slowZoom {
    from { transform: none; }
    to { transform: none; }
}

.cover-shade {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0) 54%,
            rgba(45,30,24,0.05) 66%,
            rgba(45,30,24,0.45) 100%
        );
}

.cover-access {
    position: absolute;

    top: 22px;
    left: 22px;
    right: 22px;

    display: flex;
    justify-content: space-between;

    color: rgba(255,255,255,0.92);

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing: 1.7px;

    text-shadow:
        0 2px 8px rgba(0,0,0,0.25);
}

.cover-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    padding: 0 18px;
    text-align: center;
}

.cover-small {
    margin: 0 0 12px;

    color: white;

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing: 4px;
}

.open-button {
    border: 0;

    padding: 15px 34px;

    border-radius: 100px;

    background: var(--orange);

    color: white;

    font-size: 15px;

    letter-spacing: 3px;

    cursor: pointer;

    box-shadow:
        0 10px 28px rgba(65,40,28,0.25);
}

.cover-date {
    margin: 13px 0 0;

    color: white;

    font-family:
        Georgia,
        serif;

    font-size: 10px;

    letter-spacing: 5px;
}


/* =========================================================
   02｜SAVE THE DATE
   V15｜手機短版：1000 × 1850，保留留白但移除過長尾段
========================================================= */

.date-section {
    width: 100%;
    padding: 9px;
    background: var(--pink);
}

.save-date-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 1850;
    min-height: 0;
    overflow: hidden;
    background: url("images/save-date-background-v15.jpg") center top / 100% 100% no-repeat;
}

.date-content {
    position: relative;
    z-index: 2;
    width: min(100%, 410px);
    margin: 0 auto;
    padding: 58px 28px 34px;
    text-align: center;
}

.save-date-heading > span {
    display: block;
    color: var(--orange);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 3px;
}

.save-date-reservation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.save-date-reservation i {
    width: 58px;
    height: 1px;
    background: rgba(217,126,74,.68);
}

.save-date-reservation small {
    color: var(--orange);
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2.8px;
    white-space: nowrap;
}

.date-year {
    margin: 48px 0 8px;
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 7px;
}

.big-date {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.big-date .month {
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-style: italic;
    line-height: 1;
}

.big-date .day {
    margin-top: 12px;
    color: var(--orange);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 112px;
    font-weight: 400;
    line-height: .9;
}

.couple-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 9px;
    margin-top: 38px;
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: 2px;
    white-space: nowrap;
}

.couple-line i {
    color: var(--orange);
    font-size: 23px;
    font-style: normal;
}

.couple-chinese {
    margin: 15px 0 0;
    color: var(--wine);
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: 3px;
}

.date-divider {
    width: 82%;
    height: 1px;
    margin: 34px auto 23px;
    background: rgba(99,63,66,.28);
}

.countdown-label {
    margin: 0 0 20px;
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.25;
    letter-spacing: .8px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 92%;
    margin: 0 auto;
}

.count-unit {
    position: relative;
    text-align: center;
}

.count-unit:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 0;
    width: 1px;
    height: 56px;
    background: rgba(99,63,66,.21);
}

.count-unit strong {
    display: block;
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.count-unit span {
    display: block;
    margin-top: 10px;
    color: var(--wine);
    font-family: Arial, sans-serif;
    font-size: 7px;
    line-height: 1;
    letter-spacing: 2px;
}

@media (max-width: 430px) {
    .date-section {
        padding: 7px;
    }

    .date-content {
        width: min(100%, 392px);
        padding: 50px 22px 30px;
    }

    .save-date-heading > span {
        font-size: 25px;
        letter-spacing: 2.4px;
    }

    .save-date-reservation {
        gap: 9px;
        margin-top: 12px;
    }

    .save-date-reservation i {
        width: 46px;
    }

    .save-date-reservation small {
        font-size: 6px;
        letter-spacing: 2.25px;
    }

    .date-year {
        margin-top: 41px;
        font-size: 16.5px;
        letter-spacing: 6px;
    }

    .big-date .month {
        font-size: 43px;
    }

    .big-date .day {
        margin-top: 10px;
        font-size: 100px;
    }

    .couple-line {
        margin-top: 31px;
        gap: 8px;
        font-size: 15px;
        letter-spacing: 1.55px;
    }

    .couple-line i {
        font-size: 21px;
    }

    .couple-chinese {
        margin-top: 13px;
        font-size: 13.5px;
        letter-spacing: 2.3px;
    }

    .date-divider {
        margin: 28px auto 19px;
    }

    .countdown-label {
        margin-bottom: 17px;
        font-size: 12.5px;
    }

    .countdown {
        width: 96%;
    }

    .count-unit strong {
        font-size: 30px;
    }

    .count-unit span {
        margin-top: 8px;
        font-size: 6px;
        letter-spacing: 1.7px;
    }

    .count-unit:not(:last-child)::after {
        height: 49px;
    }
}

@media (max-width: 390px) {
    .date-content {
        padding: 46px 19px 28px;
    }

    .save-date-heading > span {
        font-size: 23px;
        letter-spacing: 2.1px;
    }

    .save-date-reservation i {
        width: 39px;
    }

    .date-year {
        margin-top: 36px;
        font-size: 15.5px;
        letter-spacing: 5.2px;
    }

    .big-date .month {
        font-size: 39px;
    }

    .big-date .day {
        font-size: 91px;
    }

    .couple-line {
        margin-top: 27px;
        font-size: 13.5px;
        letter-spacing: 1.15px;
    }

    .couple-line i {
        font-size: 19px;
    }

    .couple-chinese {
        font-size: 12.5px;
        letter-spacing: 1.9px;
    }

    .date-divider {
        margin: 25px auto 17px;
    }

    .countdown-label {
        font-size: 11.5px;
    }

    .count-unit strong {
        font-size: 27px;
    }

    .count-unit:not(:last-child)::after {
        height: 46px;
    }
}

@media (max-width: 365px) {
    .date-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .save-date-heading > span {
        font-size: 21.5px;
    }

    .save-date-reservation small {
        letter-spacing: 1.9px;
    }

    .couple-line {
        font-size: 12.7px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .count-unit strong {
        font-size: 25px;
    }
}


/* =========================================================
   03｜OUR INVITATION
   完整背景圖版：背景插圖固定在一張圖內，HTML 只負責文字。
========================================================= */

.greeting-section {
    padding: 78px 20px 95px;
    background: var(--cream);
}

.greeting-photo-wrap {
    position: relative;
    margin: 0 auto 36px;
    padding: 8px;
    background: white;
    box-shadow: 0 14px 35px rgba(81,55,46,0.10);
}

.greeting-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-number {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 9px;
    background: rgba(255,247,238,0.92);
    color: var(--wine);
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: 2px;
}

.photo-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
}

/* 背景本身已含外框、鑰匙、飯店、房卡與 VVIP GUEST · ACCESS GRANTED */
.invitation-ticket {
    position: relative;
    width: 100%;
    aspect-ratio: 930 / 2048;
    padding: 0;
    border: 0;
    overflow: hidden;
    background-image: url("images/invitation-background.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
}

.invitation-ticket::before,
.invitation-ticket::after {
    content: none;
}

.ticket-top {
    position: absolute;
    z-index: 3;
    top: 7.7%;
    left: 12%;
    right: 12%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    border: 0;
    color: var(--wine);
    font-family: Arial, sans-serif;
    font-size: clamp(6px, 1.75vw, 9px);
    letter-spacing: 1.4px;
}

.greeting-copy {
    position: absolute;
    z-index: 3;
    top: 18%;
    left: 14%;
    right: 14%;
    padding: 0;
    text-align: center;
}

/* 背景圖已經印有同一句，保留原文字於 DOM 但不重複顯示 */
.invite-access {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.greeting-copy .small-cn {
    margin: 0 0 clamp(14px, 4.3vw, 22px);
    color: var(--orange);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 6.1vw, 31px);
    font-style: italic;
    letter-spacing: 1.3px;
}

.greeting-copy h2 {
    margin: 0;
    color: var(--wine);
    font-size: clamp(25px, 7vw, 34px);
    font-weight: 600;
    letter-spacing: clamp(2px, 1vw, 4px);
}

.mini-line {
    width: 38px;
    height: 1px;
    margin: clamp(20px, 6vw, 30px) auto clamp(24px, 6.8vw, 34px);
    background: var(--orange);
}

.greeting-copy > p {
    margin: 0 0 clamp(20px, 5.5vw, 28px);
    color: var(--wine);
    font-size: clamp(12px, 3.55vw, 16px);
    line-height: 2.02;
    letter-spacing: .8px;
}

.special-date {
    width: 88%;
    margin: clamp(24px, 6vw, 31px) auto clamp(20px, 5.2vw, 27px);
    padding: clamp(10px, 3.2vw, 15px) 8px;
    border-top: 1px solid rgba(217,126,74,0.52);
    border-bottom: 1px solid rgba(217,126,74,0.52);
}

.special-date small {
    display: block;
    margin-bottom: 7px;
    color: var(--soft-brown);
    font-family: Arial, sans-serif;
    font-size: clamp(6px, 1.6vw, 8px);
    letter-spacing: 2px;
}

.special-date strong {
    color: var(--orange);
    font-family: Georgia, "PingFang TC", serif;
    font-size: clamp(17px, 4.8vw, 21px);
    font-weight: 500;
    letter-spacing: 2px;
}

.checkin-word {
    color: var(--orange) !important;
    font-family: Georgia, serif;
    font-size: 1.2em;
    font-style: italic;
    font-weight: 400 !important;
}

.greeting-signature {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: clamp(28px, 7vw, 42px);
    color: var(--orange);
    font-family: Georgia, serif;
    font-size: clamp(10px, 3vw, 14px);
    letter-spacing: 2px;
}

.ticket-code {
    position: absolute;
    z-index: 3;
    left: 18%;
    right: 18%;
    bottom: 7.2%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    border: 0;
    color: var(--soft-brown);
    font-family: Arial, sans-serif;
    font-size: clamp(5px, 1.5vw, 7px);
    letter-spacing: 1px;
}

@media (max-width: 390px) {
    .greeting-section {
        padding: 58px 8px 78px;
    }

    .greeting-photo-wrap {
        margin-left: 12px;
        margin-right: 12px;
        margin-bottom: 26px;
    }

    .ticket-top {
        left: 11%;
        right: 11%;
        top: 7.5%;
    }

    .greeting-copy {
        top: 18%;
        left: 13%;
        right: 13%;
    }

    .greeting-copy > p {
        line-height: 1.92;
    }

    .ticket-code {
        left: 16%;
        right: 16%;
        bottom: 6.7%;
    }
}


/* =========================================================
   04｜OUR MOMENTS
========================================================= */

.moments-section {
    padding:
        78px 24px
        90px;

    background: var(--pink);
}

.moments-subtitle {
    margin:
        -28px 0
        40px;

    text-align: right;

    color: var(--wine);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing: 1.5px;
}

.main-photo-frame {
    position: relative;

    padding: 9px;

    background: var(--cream);

    box-shadow:
        0 15px 35px
        rgba(80,50,40,0.11);
}

.main-photo-frame img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    transition:
        opacity 0.2s ease;
}

.gallery-index {
    position: absolute;

    left: 18px;
    bottom: 18px;

    padding:
        7px 10px;

    background:
        rgba(255,247,238,0.91);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing: 2px;
}

.gallery-thumbs {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 8px;

    margin-top: 15px;
}

.thumb {
    padding: 3px;

    border:
        1px solid
        transparent;

    background: transparent;

    cursor: pointer;
}

.thumb.active {
    border-color:
        var(--orange);
}

.thumb img {
    display: block;

    width: 100%;

    aspect-ratio: 1;

    object-fit: cover;
}

.moments-footer {
    margin-top: 40px;

    text-align: center;
}

.moments-footer > span {
    display: block;

    margin: 8px 0;

    color: var(--soft-brown);

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing: 2px;
}

.moments-footer p {
    margin:
        15px 0;

    color: var(--orange);

    font-family:
        Georgia,
        serif;

    font-size: 22px;

    font-style: italic;
}


/* =========================================================
   05｜TODAY'S STAY
   保留原始版面，只增加手繪插圖點綴
========================================================= */

.schedule-section {
    padding:
        78px 28px
        90px;

    background: var(--cream);
}

.schedule-pass {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding:
        20px 20px
        18px;

    border:
        1px solid
        rgba(217,126,74,0.35);
}

/* 原本內容全部維持在插圖上方 */
.schedule-pass-top,
.schedule-date,
.schedule-day,
.timeline,
.schedule-bottom {
    position: relative;
    z-index: 2;
}

/* 手繪插圖只作為背景點綴，不參與排版 */
.schedule-art {
    position: absolute;
    z-index: 1;
    height: auto;
    pointer-events: none;
    user-select: none;
    mix-blend-mode: normal;
    filter: none;
}

.schedule-art-couple {
    top: 72px;
    left: 8px;
    width: 118px;
    opacity: 1;
}

.schedule-art-bell {
    top: 318px;
    right: 18px;
    width: 105px;
    opacity: 1;
}

.schedule-art-stamp {
    left: -8px;
    bottom: 24px;
    width: 92px;
    opacity: 1;
}

.schedule-art-camera {
    right: 18px;
    bottom: 18px;
    width: 102px;
    opacity: 1;
}

.schedule-pass-top {
    display: flex;

    justify-content: space-between;

    padding-bottom: 14px;

    border-bottom:
        1px solid
        rgba(99,63,66,0.16);

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing: 1.4px;
}

.schedule-date {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 15px;

    margin-top: 60px;
}

.schedule-date span {
    position: absolute;

    margin-top: -105px;

    font-family:
        Georgia,
        serif;

    font-size: 15px;

    letter-spacing: 5px;
}

.schedule-date strong {
    color: var(--orange);

    font-family:
        Georgia,
        serif;

    font-size: 62px;

    font-weight: 400;
}

.schedule-date i {
    width: 1px;
    height: 65px;

    background: var(--orange);

    transform:
        rotate(35deg);
}

.schedule-day {
    margin:
        10px 0
        50px;

    text-align: center;

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    letter-spacing: 3px;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 28px;
    bottom: 28px;

    left: 114px;

    width: 1px;

    background:
        rgba(217,126,74,0.40);
}

.timeline-item {
    display: grid;

    grid-template-columns:
        24px 62px 18px 1fr;

    column-gap: 10px;

    align-items: center;

    min-height: 112px;
}

.timeline-number {
    color: var(--soft-brown);

    font-family:
        Georgia,
        serif;

    font-size: 12px;
}

.timeline-time {
    text-align: right;

    color: var(--wine);

    font-family:
        Georgia,
        serif;

    font-size: 20px;
}

.timeline-dot {
    position: relative;

    z-index: 2;

    width: 9px;
    height: 9px;

    margin: auto;

    border-radius: 50%;

    background: var(--orange);
}

.timeline-info {
    min-width: 0;
}

.timeline-info strong {
    display: block;

    color: var(--orange);

    font-family:
        Georgia,
        serif;

    font-size: 16px;

    line-height: 1.2;

    letter-spacing: 0.5px;
}

.timeline-info span {
    display: block;

    margin-top: 7px;

    color: var(--wine);

    font-size: 13px;

    line-height: 1.5;

    letter-spacing: 1px;
}

.schedule-bottom {
    margin-top: 20px;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(99,63,66,0.16);

    text-align: center;

    color: var(--soft-brown);

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    letter-spacing: 1.4px;
}

@media (max-width: 390px) {

    .timeline-item {
        grid-template-columns:
            20px 56px 16px 1fr;

        column-gap: 8px;
    }

    .timeline::before {
        left: 101px;
    }

    .timeline-time {
        font-size: 18px;
    }

    .timeline-info strong {
        font-size: 14px;
    }

    .timeline-info span {
        font-size: 12px;
    }

    .schedule-art-couple {
        top: 70px;
        left: 2px;
        width: 94px;
        opacity: 1;
    }

    .schedule-art-bell {
        top: 315px;
        right: 8px;
        width: 84px;
        opacity: 1;
    }

    .schedule-art-stamp {
        left: -14px;
        bottom: 27px;
        width: 76px;
        opacity: 1;
    }

    .schedule-art-camera {
        right: 8px;
        bottom: 20px;
        width: 82px;
        opacity: 1;
    }
}


/* =========================================================
   06｜TONIGHT'S STAY
   Refined responsive layout
========================================================= */

#tonightsStay,
#tonightsStay * {
    box-sizing: border-box;
}

#tonightsStay {
    --stay-orange: #cf7846;
    --stay-orange-top: #d88451;
    --stay-cream: #fff4e7;
    --stay-line: rgba(255,244,231,.72);

    padding: 10px;
    background: var(--stay-orange);
    color: var(--stay-cream);
}

#tonightsStay .stay-poster {
    width: 100%;
    padding: 24px 22px 18px;
    border: 1px solid rgba(255,244,231,.90);
    background:
        radial-gradient(circle at 50% 6%, rgba(255,255,255,.05), transparent 32%),
        linear-gradient(180deg, var(--stay-orange-top) 0%, var(--stay-orange) 100%);
}

/* Top information line */
#tonightsStay .stay-topbar {
    display: grid;
    grid-template-columns: auto minmax(40px,1fr) auto;
    align-items: start;
    gap: 12px;
}

#tonightsStay .stay-topbar-left,
#tonightsStay .stay-topbar-right {
    min-width: 0;
}

#tonightsStay .stay-topbar-left span,
#tonightsStay .stay-topbar-right span,
#tonightsStay .stay-topbar-right strong {
    display: block;
    color: rgba(255,244,231,.94);
    font-family: Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

#tonightsStay .stay-topbar-left span {
    font-size: 7px;
    letter-spacing: 2.1px;
}

#tonightsStay .stay-topbar-left i {
    display: block;
    width: 92px;
    height: 1px;
    margin-top: 8px;
    background: rgba(255,244,231,.62);
}

#tonightsStay .stay-topbar-line {
    height: 1px;
    margin-top: 9px;
    background: rgba(255,244,231,.62);
}

#tonightsStay .stay-topbar-right {
    text-align: right;
}

#tonightsStay .stay-topbar-right span {
    font-size: 7px;
    letter-spacing: 1.8px;
}

#tonightsStay .stay-topbar-right strong {
    margin-top: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    letter-spacing: 1.8px;
}

#tonightsStay .stay-topbar-right i {
    display: block;
    width: 42px;
    height: 1px;
    margin: 9px 0 0 auto;
    background: rgba(255,244,231,.62);
}

/* Hero */
#tonightsStay .stay-hero {
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    gap: 8px;
    align-items: center;
    min-height: 205px;
    padding: 16px 4px 12px;
}

#tonightsStay .stay-hero-copy {
    min-width: 0;
    align-self: center;
}

#tonightsStay .stay-script {
    display: block;
    margin: 0;
    padding-bottom: 10px;
    color: rgba(255,244,231,.92);
    font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
    font-size: 39px;
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

#tonightsStay .stay-hero-copy h2 {
    margin: 0;
    color: var(--stay-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 94px;
    font-weight: 400;
    line-height: .88;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

#tonightsStay .stay-subtitle {
    margin: 17px 0 0 4px;
    color: rgba(255,244,231,.95);
    font-family: Arial, sans-serif;
    font-size: 7.5px;
    font-weight: 400;
    letter-spacing: 4px;
    white-space: nowrap;
}

#tonightsStay .stay-hero-art {
    position: relative;
    min-width: 0;
    min-height: 175px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#tonightsStay .stay-direction-art {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transform: translateX(-14px);
}

#tonightsStay .stay-happy-place {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    color: rgba(255,244,231,.84);
    font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.05;
    text-align: right;
    transform: rotate(-4deg);
}

/* Main reservation card */
#tonightsStay .stay-card {
    padding: 14px 16px 16px;
    border: 1px solid rgba(255,244,231,.84);
    border-radius: 10px;
    background: rgba(255,255,255,.012);
}

#tonightsStay .stay-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 10px;
    border-bottom: 1px solid rgba(255,244,231,.50);
    color: rgba(255,244,231,.96);
    font-family: Arial, sans-serif;
    font-size: 6px;
    font-weight: 400;
    letter-spacing: 1.8px;
}

#tonightsStay .stay-room-block {
    display: grid;
    grid-template-columns: 32% 68%;
    align-items: center;
    min-height: 122px;
    padding: 11px 0 13px;
    border-bottom: 1px solid rgba(255,244,231,.50);
}

#tonightsStay .stay-key-art-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

#tonightsStay .stay-room-key-art {
    display: block;
    width: 94px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
}

#tonightsStay .stay-room-copy {
    min-width: 0;
    padding-left: 8px;
}

#tonightsStay .stay-room-copy p {
    margin: 0 0 3px;
    color: var(--stay-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .1px;
}

#tonightsStay .stay-room-copy p strong {
    font-weight: 500;
}

#tonightsStay .stay-room-copy h3 {
    margin: 8px 0 0;
    color: var(--stay-cream);
    font-family: "PingFang TC", "Noto Serif TC", "Microsoft JhengHei", sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: .1px;
}

#tonightsStay .stay-vvip {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    padding: 13px 0 12px;
    border-bottom: 1px solid rgba(255,244,231,.50);
}

#tonightsStay .stay-vvip span {
    color: var(--stay-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
}

#tonightsStay .stay-vvip strong {
    color: var(--stay-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .6px;
}

/* Information rows */
#tonightsStay .stay-info-table {
    width: 100%;
}

#tonightsStay .stay-info-row {
    display: grid;
    grid-template-columns: 38px 158px minmax(0,1fr);
    min-height: 64px;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,244,231,.50);
}

#tonightsStay .stay-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,244,231,.98);
}

#tonightsStay .stay-info-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#tonightsStay .stay-info-label {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 8px 12px 8px 5px;
    border-right: 1px solid rgba(255,244,231,.40);
    color: var(--stay-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1.25px;
    white-space: nowrap;
}

#tonightsStay .stay-info-row p {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 10px 8px 10px 16px;
    color: var(--stay-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
}

#tonightsStay .stay-address-row {
    min-height: 82px;
}

#tonightsStay .stay-address-row p {
    font-family: "PingFang TC", "Noto Serif TC", "Microsoft JhengHei", sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.55;
    word-break: keep-all;
}

/* Map */
#tonightsStay .stay-map-wrap {
    position: relative;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,244,231,.70);
    border-radius: 7px;
    background: #f8e8d7;
}

#tonightsStay .stay-map-wrap iframe {
    display: block;
    width: 100%;
    height: 165px !important;
    filter: sepia(.26) saturate(.80) brightness(1.05);
    opacity: .98;
}

#tonightsStay .stay-map-open {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(196,105,59,.68);
    border-radius: 8px;
    background: rgba(255,247,238,.97);
    color: #b85e33;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(88,39,14,.12);
    font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 10px;
    font-weight: 400;
}

#tonightsStay .stay-map-button {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    margin-top: 10px;
    padding: 10px 13px;
    border: 1px solid rgba(255,244,231,.80);
    border-radius: 7px;
    color: var(--stay-cream);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 400;
    letter-spacing: 3px;
    text-align: center;
}

#tonightsStay .stay-map-button b {
    font-weight: 400;
}

#tonightsStay .stay-map-button span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1;
}

#tonightsStay .stay-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    color: rgba(255,244,231,.94);
    font-family: Arial, sans-serif;
    font-size: 6px;
    font-weight: 400;
    letter-spacing: 1.8px;
}

#tonightsStay .stay-footer i {
    height: 1px;
    background: rgba(255,244,231,.58);
}

/* 520px 以下也正式進入手機排版，避免 500px 左右時超線 */
@media (max-width: 540px) {
    #tonightsStay {
        padding: 8px;
    }

    #tonightsStay .stay-poster {
        padding: 20px 16px 16px;
    }

    #tonightsStay .stay-topbar {
        gap: 8px;
    }

    #tonightsStay .stay-hero {
        grid-template-columns: minmax(0, 61%) minmax(0, 39%);
        min-height: 180px;
        padding-top: 14px;
    }

    #tonightsStay .stay-script {
        margin: 0;
        padding-bottom: 8px;
        font-size: 32px;
        line-height: 1.16;
    }

    #tonightsStay .stay-hero-copy h2 {
        font-size: 76px;
        line-height: .89;
    }

    #tonightsStay .stay-subtitle {
        margin-top: 14px;
        font-size: 6.6px;
        letter-spacing: 3.1px;
    }

    #tonightsStay .stay-hero-art {
        min-height: 155px;
    }

    #tonightsStay .stay-direction-art {
        width: 120px;
        transform: translateX(-18px);
    }

    #tonightsStay .stay-happy-place {
        font-size: 12.5px;
    }

    #tonightsStay .stay-card {
        padding: 12px 12px 13px;
    }

    #tonightsStay .stay-room-block {
        grid-template-columns: 31% 69%;
        min-height: 108px;
    }

    #tonightsStay .stay-room-key-art {
        width: 80px;
    }

    #tonightsStay .stay-room-copy {
        padding-left: 6px;
    }

    #tonightsStay .stay-room-copy p {
        font-size: 15px;
    }

    #tonightsStay .stay-room-copy h3 {
        font-size: 13px;
    }

    #tonightsStay .stay-vvip strong {
        font-size: 26px;
    }

    #tonightsStay .stay-info-row {
        grid-template-columns: 32px 146px minmax(0,1fr);
        min-height: 58px;
    }

    #tonightsStay .stay-info-label {
        font-size: 11.6px;
        letter-spacing: 1.05px;
    }

    #tonightsStay .stay-info-row p {
        padding-left: 12px;
        font-size: 15.5px;
    }

    #tonightsStay .stay-address-row p {
        font-size: 11.2px;
        word-break: keep-all;
    }
}

@media (max-width: 410px) {
    #tonightsStay .stay-poster {
        padding: 18px 13px 14px;
    }

    #tonightsStay .stay-hero {
        min-height: 166px;
    }

    #tonightsStay .stay-script {
        padding-bottom: 7px;
        font-size: 28px;
        line-height: 1.16;
    }

    #tonightsStay .stay-hero-copy h2 {
        font-size: 67px;
        line-height: .9;
    }

    #tonightsStay .stay-subtitle {
        margin-top: 12px;
        font-size: 5.8px;
        letter-spacing: 2.6px;
    }

    #tonightsStay .stay-direction-art {
        width: 105px;
        transform: translateX(-16px);
    }

    #tonightsStay .stay-happy-place {
        font-size: 11px;
    }

    #tonightsStay .stay-info-row {
        grid-template-columns: 29px 130px minmax(0,1fr);
    }

    #tonightsStay .stay-info-label {
        font-size: 10.5px;
        letter-spacing: .8px;
    }

    #tonightsStay .stay-info-row p {
        padding-left: 9px;
        font-size: 14px;
    }

    #tonightsStay .stay-address-row p {
        font-size: 9.8px;
        word-break: keep-all;
    }
}


/* =========================================================
   07｜RESERVATION
   Full-page framed layout
========================================================= */

.reservation-section {
    position: relative;
    padding: 38px 24px 46px;
    background: var(--pink);
}

.reservation-section::before,
.reservation-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.reservation-section::before {
    inset: 14px;
    border: 1px solid rgba(217,126,74,.58);
}

.reservation-section::after {
    inset: 20px;
    border: 1px solid rgba(217,126,74,.22);
}

.reservation-section > * {
    position: relative;
    z-index: 1;
}

.reservation-section .section-heading {
    margin: 0 14px 30px;
    padding-top: 4px;
}

.reservation-card {
    position: relative;
    margin: 0 14px;
    padding: 24px 24px 30px;
    border: 1px solid rgba(217,126,74,.50);
    background: rgba(255,247,238,.94);
    box-shadow: 0 12px 28px rgba(80,50,40,.055);
}

.reservation-card::before,
.reservation-card::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(217,126,74,.55);
}

.reservation-card::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.reservation-card::after {
    right: 8px;
    bottom: 8px;
    border-left: none;
    border-top: none;
}

.reservation-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(99,63,66,.18);
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 1.4px;
}

.reservation-access {
    margin: 28px 0 10px;
    text-align: center;
    color: var(--orange);
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
}

.reservation-card > h2 {
    margin: 0;
    text-align: center;
    color: var(--wine);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.reservation-intro {
    margin: 16px 0 34px;
    text-align: center;
    color: var(--wine);
    font-size: 14px;
    line-height: 1.85;
}

.reservation-intro strong {
    color: var(--orange);
    font-weight: 500;
    letter-spacing: .5px;
}

/* FORM */
.form-group {
    margin-bottom: 29px;
}

.form-group > label:first-child {
    display: block;
    margin-bottom: 12px;
    color: var(--wine);
    font-size: 14px;
    font-weight: 500;
}

.form-group > label:first-child > span {
    display: block;
    margin-bottom: 5px;
    color: var(--orange);
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 2px;
}

input[type="text"],
select,
textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(99,63,66,.42);
    border-radius: 0;
    padding: 12px 4px;
    background: transparent;
    color: var(--wine);
    font-size: 14px;
    outline: none;
}

textarea {
    resize: vertical;
    line-height: 1.7;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: var(--orange);
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card > span {
    display: block;
    padding: 15px 10px;
    border: 1px solid rgba(99,63,66,.28);
    text-align: center;
    font-size: 14px;
    transition: .2s ease;
}

.option-card input:checked + span {
    border-color: var(--orange);
    background: var(--orange);
    color: white;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-list label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--wine);
    font-size: 14px;
}

.option-list input[type="radio"] {
    accent-color: var(--orange);
}

.other-input {
    display: none;
    margin-top: 14px;
}

.other-input.show {
    display: block;
}

.field-note {
    margin: -2px 0 10px;
    color: var(--soft-brown);
    font-size: 11px;
    line-height: 1.7;
}

.conditional-fields {
    display: none;
    opacity: 0;
    transform: translateY(-8px);
}

.conditional-fields.show {
    display: block;
    animation: fieldsIn .4s ease forwards;
}

@keyframes fieldsIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reservation-button {
    width: 100%;
    margin-top: 5px;
    padding: 16px;
    border: 1px solid var(--orange);
    background: var(--orange);
    color: white;
    cursor: pointer;
}

.reservation-button small {
    display: block;
    margin-bottom: 4px;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.reservation-button strong {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3px;
}

.reservation-success {
    display: none;
    padding: 44px 10px 30px;
    text-align: center;
}

.reservation-success.show {
    display: block;
}

.reservation-success > span {
    color: var(--orange);
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
}

.reservation-success h3 {
    margin: 18px 0;
    font-size: 25px;
    font-weight: 500;
}

.reservation-success p {
    font-size: 14px;
    line-height: 1.9;
}

.reservation-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid rgba(99,63,66,.18);
    color: var(--soft-brown);
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: .8px;
}

@media (max-width: 540px) {
    .reservation-section {
        padding: 34px 18px 40px;
    }

    .reservation-section::before {
        inset: 10px;
    }

    .reservation-section::after {
        inset: 16px;
    }

    .reservation-section .section-heading {
        margin: 0 14px 26px;
    }

    .reservation-card {
        margin: 0 14px;
        padding: 22px 18px 26px;
    }

    .reservation-card > h2 {
        font-size: 25px;
    }

    .reservation-intro {
        margin-bottom: 30px;
    }
}


/* =========================================================
   08｜MESSAGE
   全頁底圖模式：文字與裝飾全部直接做進底圖
========================================================= */

.message-section {
    width: 100%;
    padding: 26px 18px 34px;
    background: var(--pink);
}

.message-card {
    width: 100%;
    aspect-ratio: 1122 / 1402;
    overflow: hidden;

    background-image: url("images/message-background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

@media (max-width: 390px) {
    .message-section {
        padding: 18px 10px 26px;
    }
}


/* =========================================================
   09｜ENDING
   全頁底圖模式：最後一頁文字與裝飾全部直接做進底圖
========================================================= */

.ending-section {
    width: 100%;
    padding: 26px 18px 34px;
    background: var(--pink);
}

.ending-card {
    width: 100%;
    aspect-ratio: 1200 / 1500;
    overflow: hidden;

    background-image: url("images/ending-background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

@media (max-width: 390px) {
    .ending-section {
        padding: 18px 10px 26px;
    }
}


/* =========================================================
   小尺寸手機
========================================================= */

@media (max-width: 390px) {

    .section-heading > span {
        font-size: 17px;
    }

    .section-heading small {
        font-size: 6px;
    }

    .greeting-copy .small-cn {
        font-size: 24px;
    }

    .greeting-copy h2 {
        font-size: 29px;
    }

    .timeline-item {
        grid-template-columns:
            20px 56px 16px 1fr;

        column-gap: 8px;
    }

    .timeline::before {
        left: 101px;
    }

    .timeline-time {
        font-size: 18px;
    }

    .timeline-info strong {
        font-size: 14px;
    }

    .timeline-info span {
        font-size: 12px;
    }

    .room-number {
        font-size: 80px;
    }

}

/* =========================================================
   VVIP 房卡資訊｜小尺寸手機
========================================================= */
@media (max-width: 390px) {
    .venue-table .venue-row {
        grid-template-columns: 112px 1fr;
    }

    .venue-key {
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }

    .venue-table .venue-row p {
        padding: 14px 15px;
        font-size: 14px;
    }

    .guest-vvip strong {
        font-size: 23px;
    }
}


/* =========================================================
   V9｜SMALL TYPOGRAPHY REFINEMENTS
   僅放大使用者標記的小字與微調框線，不改原本文字與功能
========================================================= */

/* ---------- OUR INVITATION ---------- */

/* CHECK-IN DATE：原本太小，放大但仍維持精緻的小標層級 */
.special-date small {
    margin-bottom: 9px;
    font-size: clamp(8px, 2.15vw, 10px);
    letter-spacing: 2.6px;
    font-weight: 400;
}

/* 最底部 0117 / HWCH / 2027 / VVIP / ACCESS */
.ticket-code {
    left: 14%;
    right: 14%;
    bottom: 6.7%;
    font-size: clamp(7px, 1.95vw, 9px);
    letter-spacing: 1.25px;
}

/* ---------- OUR MOMENTS ---------- */

.moments-footer {
    margin-top: 42px;
}

.moments-footer > span {
    font-size: 9.5px;
    letter-spacing: 2.8px;
}

/* MEMORIES / 0117：加左右細線，視覺上不再像一行很小的備註 */
.moments-footer > span:first-child {
    width: min(82%, 330px);
    margin: 0 auto 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.moments-footer > span:first-child::before,
.moments-footer > span:first-child::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(217,126,74,.55);
}

/* HWC × CHC：改成正式的小房卡框 */
.moments-footer > span:last-child {
    width: fit-content;
    min-width: 150px;
    margin: 20px auto 0;
    padding: 11px 25px;
    border: 1px solid rgba(217,126,74,.60);
    outline: 1px solid rgba(217,126,74,.20);
    outline-offset: 4px;
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    letter-spacing: 3px;
}

/* ---------- TODAY'S STAY ---------- */

/* 上方 GUEST ITINERARY / ACCESS / 0117 */
.schedule-pass-top {
    padding-bottom: 16px;
    font-size: 9.5px;
    letter-spacing: 1.8px;
}

/* SUNDAY · OUR WEDDING DAY：做成較完整的小票券 */
.schedule-day {
    width: fit-content;
    max-width: 88%;
    margin: 12px auto 48px;
    padding: 9px 18px;
    border: 1px solid rgba(217,126,74,.46);
    color: var(--wine);
    font-size: 10.5px;
    letter-spacing: 2.6px;
    line-height: 1.25;
}

/* 左側 01 / 02 / 03 / 04 */
.timeline-number {
    color: var(--orange);
    font-size: 15px;
    font-weight: 500;
}

/* 底部 VVIP ACCESS ONLY */
.schedule-bottom {
    width: fit-content;
    max-width: 92%;
    margin: 24px auto 0;
    padding: 9px 15px;
    border: 1px solid rgba(217,126,74,.42);
    color: var(--soft-brown);
    font-size: 9px;
    letter-spacing: 1.65px;
    line-height: 1.25;
}

/* ---------- TONIGHT'S STAY ---------- */

/* 最上方 GUEST INFORMATION / A SPECIAL DAY */
#tonightsStay .stay-topbar-left span,
#tonightsStay .stay-topbar-right span {
    font-size: 8.5px;
    letter-spacing: 2px;
}

#tonightsStay .stay-topbar-right strong {
    font-size: 10.5px;
    letter-spacing: 1.65px;
}

/* PRIVATE RESERVATION / No. 0117 */
#tonightsStay .stay-card-top {
    padding: 2px 3px 12px;
    font-size: 8.5px;
    letter-spacing: 1.8px;
}

/* ---------- RESERVATION ---------- */

/* PRIVATE RESERVATION / No. 0117 */
.reservation-top {
    padding: 2px 2px 16px;
    font-size: 9.5px;
    letter-spacing: 1.8px;
}

/* VVIP GUEST · ACCESS GRANTED */
.reservation-access {
    margin: 22px 0 12px;
    font-size: 10px;
    letter-spacing: 2.4px;
}

/* 讓最上方資訊區更像真正的訂房憑證，不會浮在大標題上方 */
.reservation-card {
    padding-top: 25px;
}

/* ---------- MOBILE BALANCE ---------- */
@media (max-width: 390px) {
    .special-date small {
        font-size: 8.5px;
    }

    .ticket-code {
        left: 12.5%;
        right: 12.5%;
        font-size: 7.5px;
    }

    .moments-footer > span {
        font-size: 8.5px;
    }

    .moments-footer > span:last-child {
        min-width: 135px;
        padding: 10px 20px;
        font-size: 10px;
    }

    .schedule-pass-top {
        font-size: 8.5px;
    }

    .schedule-day {
        max-width: 94%;
        padding: 8px 12px;
        font-size: 9px;
        letter-spacing: 2px;
    }

    .timeline-number {
        font-size: 14px;
    }

    .schedule-bottom {
        max-width: 96%;
        padding: 8px 10px;
        font-size: 8px;
        letter-spacing: 1.25px;
    }

    #tonightsStay .stay-topbar-left span,
    #tonightsStay .stay-topbar-right span {
        font-size: 7.5px;
    }

    #tonightsStay .stay-topbar-right strong {
        font-size: 9px;
    }

    #tonightsStay .stay-card-top {
        font-size: 7.5px;
    }

    .reservation-top {
        font-size: 8.5px;
    }

    .reservation-access {
        font-size: 9px;
    }
}


/* =========================================================
   V10｜TODAY'S STAY：移除兩個細框
========================================================= */

.schedule-day {
    width: auto !important;
    max-width: none !important;
    margin: 12px auto 48px !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

.schedule-bottom {
    width: auto !important;
    max-width: none !important;
    margin: 24px auto 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

@media (max-width: 390px) {
    .schedule-day {
        padding: 0 !important;
    }

    .schedule-bottom {
        padding: 0 !important;
    }
}

/* =========================================================
   V14｜MOBILE OPTIMIZATION
   360 / 390 / 430px 實機寬度優化
   不改既有視覺主題，只修手機比例、溢位與輸入體驗
========================================================= */

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

/* ---------- 02｜SAVE THE DATE ---------- */
/* V15 已於主區塊採 1000 × 1850 手機短版比例。 */

/* ---------- 03｜OUR INVITATION ---------- */
.checkin-word {
    white-space: nowrap;
}

@media (max-width: 390px) {
    .greeting-copy {
        top: 16.7%;
        left: 12%;
        right: 12%;
    }

    .greeting-copy > p {
        margin-bottom: 17px;
        line-height: 1.86;
    }

    .special-date {
        margin-top: 20px;
        margin-bottom: 17px;
    }

    .greeting-signature {
        margin-top: 20px;
        font-size: 11px;
        letter-spacing: 1.7px;
    }

    .ticket-code {
        left: 11.5%;
        right: 11.5%;
        bottom: 4.5%;
        font-size: 7px;
        letter-spacing: 1px;
    }
}

@media (max-width: 365px) {
    .greeting-copy {
        top: 16.3%;
        left: 11.5%;
        right: 11.5%;
    }

    .greeting-copy .small-cn {
        font-size: 22px;
    }

    .greeting-copy h2 {
        font-size: 27px;
    }

    .greeting-copy > p {
        font-size: 12px;
        margin-bottom: 15px;
        line-height: 1.82;
    }

    .mini-line {
        margin-top: 18px;
        margin-bottom: 21px;
    }

    .special-date {
        width: 91%;
        margin-top: 18px;
        margin-bottom: 15px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .special-date strong {
        font-size: 17px;
    }

    .greeting-signature {
        margin-top: 18px;
        font-size: 10.5px;
    }

    .ticket-code {
        bottom: 4.2%;
        font-size: 6.8px;
    }
}

/* ---------- 05｜TODAY'S STAY ---------- */
@media (max-width: 390px) {
    .schedule-art-camera {
        right: 4px;
        bottom: 24px;
        width: 70px;
    }

    .timeline-item:last-child .timeline-info {
        padding-right: 58px;
    }
}

@media (max-width: 365px) {
    .schedule-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .schedule-pass {
        padding-left: 16px;
        padding-right: 16px;
    }

    .timeline-item {
        grid-template-columns: 18px 52px 14px minmax(0, 1fr);
        column-gap: 7px;
    }

    .timeline::before {
        left: 91px;
    }

    .timeline-time {
        font-size: 17px;
    }

    .timeline-info strong {
        font-size: 13.5px;
    }

    .timeline-info span {
        font-size: 11.5px;
        letter-spacing: .6px;
    }

    .timeline-item:last-child .timeline-info {
        padding-right: 54px;
    }

    .schedule-art-camera {
        width: 64px;
        right: 2px;
    }
}

/* ---------- 06｜TONIGHT'S STAY ---------- */
/* 小手機不再強迫地址一行，避免右側出框 */
@media (max-width: 410px) {
    #tonightsStay .stay-info-row {
        grid-template-columns: 28px 116px minmax(0, 1fr);
    }

    #tonightsStay .stay-info-label {
        padding-left: 4px;
        padding-right: 7px;
        font-size: 10.4px;
        letter-spacing: .65px;
    }

    #tonightsStay .stay-info-row p {
        padding-left: 10px;
        padding-right: 4px;
        font-size: 13.5px;
        line-height: 1.4;
    }

    #tonightsStay .stay-address-row p {
        white-space: normal;
        word-break: break-all;
        overflow-wrap: anywhere;
        font-size: 11px;
        line-height: 1.5;
    }
}

@media (max-width: 365px) {
    #tonightsStay .stay-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    #tonightsStay .stay-info-row {
        grid-template-columns: 26px 110px minmax(0, 1fr);
    }

    #tonightsStay .stay-info-icon svg {
        width: 18px;
        height: 18px;
    }

    #tonightsStay .stay-info-label {
        font-size: 10px;
        letter-spacing: .45px;
    }

    #tonightsStay .stay-info-row p {
        padding-left: 8px;
        font-size: 13px;
    }

    #tonightsStay .stay-address-row p {
        font-size: 10.7px;
    }
}

/* ---------- 07｜RESERVATION ---------- */
/* iOS Safari 對小於 16px 的表單欄位可能自動放大畫面 */
@media (max-width: 540px) {
    .reservation-card input[type="text"],
    .reservation-card input[type="email"],
    .reservation-card input[type="tel"],
    .reservation-card select,
    .reservation-card textarea {
        font-size: 16px;
    }
}

@media (max-width: 390px) {
    .reservation-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .reservation-section .section-heading {
        margin-left: 10px;
        margin-right: 10px;
    }

    .reservation-card {
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .reservation-footer {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 7px;
        text-align: center;
    }
}

/* ---------- 共用窄手機 ---------- */
@media (max-width: 365px) {
    .section-heading {
        gap: 8px;
    }

    .section-heading > span {
        font-size: 16px;
    }

    .section-heading small {
        font-size: 5.6px;
        letter-spacing: 1.1px;
    }
}


/* =========================================================
   V15.2｜SAVE THE DATE 中央內容下移
   保留最上方 SAVE THE DATE / RESERVATION 不動
========================================================= */

.date-year,
.big-date,
.couple-line,
.couple-chinese,
.date-divider,
.countdown-label,
.countdown {
    position: relative;
    top: 32px;
}

@media (max-width: 430px) {
    .date-year,
    .big-date,
    .couple-line,
    .couple-chinese,
    .date-divider,
    .countdown-label,
    .countdown {
        top: 28px;
    }
}

@media (max-width: 390px) {
    .date-year,
    .big-date,
    .couple-line,
    .couple-chinese,
    .date-divider,
    .countdown-label,
    .countdown {
        top: 24px;
    }
}


/* =========================================================
   V15.3｜SAVE THE DATE 姓名與倒數區再往下微調
========================================================= */

.couple-line,
.couple-chinese,
.date-divider,
.countdown-label,
.countdown {
    top: 50px;
}

@media (max-width: 430px) {
    .couple-line,
    .couple-chinese,
    .date-divider,
    .countdown-label,
    .countdown {
        top: 46px;
    }
}

@media (max-width: 390px) {
    .couple-line,
    .couple-chinese,
    .date-divider,
    .countdown-label,
    .countdown {
        top: 42px;
    }
}


/* =========================================================
   V15.4｜SAVE THE DATE 再往下 10px
========================================================= */

.couple-line,
.couple-chinese,
.date-divider,
.countdown-label,
.countdown {
    top: 60px;
}

@media (max-width: 430px) {
    .couple-line,
    .couple-chinese,
    .date-divider,
    .countdown-label,
    .countdown {
        top: 56px;
    }
}

@media (max-width: 390px) {
    .couple-line,
    .couple-chinese,
    .date-divider,
    .countdown-label,
    .countdown {
        top: 52px;
    }
}


/* =========================================================
   V16｜RSVP SUCCESS × OFFICIAL LINE
========================================================= */

.line-join-card {
    width: min(100%, 330px);
    margin: 30px auto 0;
    padding: 23px 20px 20px;

    border-top: 1px solid rgba(217,126,74,.38);
    border-bottom: 1px solid rgba(217,126,74,.38);

    text-align: center;
}

.line-join-label {
    display: block;

    margin-bottom: 10px;

    color: var(--orange);

    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 400;

    letter-spacing: 2.6px;
}

.reservation-success .line-join-card h4 {
    margin: 0 0 10px;

    color: var(--wine);

    font-family:
        "PingFang TC",
        "Noto Serif TC",
        "Microsoft JhengHei",
        sans-serif;

    font-size: 17px;
    font-weight: 500;

    letter-spacing: .6px;
}

.reservation-success .line-join-card p {
    margin: 0 0 17px;

    color: var(--soft-brown);

    font-size: 12px;
    font-weight: 400;

    line-height: 1.8;
    letter-spacing: .3px;
}

.line-join-button {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    width: 100%;

    padding: 11px 13px;

    border: 1px solid rgba(217,126,74,.64);
    border-radius: 4px;

    background: rgba(255,247,238,.62);
    color: var(--wine);

    text-decoration: none;

    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease;
}

.line-join-button:hover {
    transform: translateY(-1px);

    border-color: var(--orange);
    background: rgba(255,247,238,.92);
}

.line-join-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 43px;
    height: 25px;

    padding: 0 7px;

    border-radius: 4px;

    background: #06c755;
    color: white;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    letter-spacing: .5px;
}

.line-join-button-text {
    padding-left: 11px;

    text-align: left;

    font-size: 14px;
    font-weight: 500;

    letter-spacing: 1.1px;
}

.line-join-arrow {
    color: var(--orange);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1;
}

@media (max-width: 390px) {
    .line-join-card {
        margin-top: 25px;
        padding: 20px 8px 17px;
    }

    .reservation-success .line-join-card h4 {
        font-size: 16px;
    }

    .reservation-success .line-join-card p {
        font-size: 11.5px;
    }

    .line-join-button {
        padding: 10px 11px;
    }

    .line-join-button-text {
        font-size: 13.5px;
    }
}


/* =========================================================
   V17｜RSVP GOOGLE SHEET SUBMIT
========================================================= */

.reservation-error {
    display: none;
    width: 100%;
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(132, 55, 62, .32);
    background: rgba(132, 55, 62, .055);
    color: var(--wine);
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: .3px;
    text-align: center;
}

.reservation-error.show {
    display: block;
}

.reservation-button:disabled {
    cursor: wait;
    opacity: .72;
}

.reservation-button.is-loading {
    pointer-events: none;
}

.reservation-confirmation-number {
    width: max-content;
    max-width: 100%;
    margin: 18px auto 0 !important;
    padding: 7px 12px;
    border-top: 1px solid rgba(217, 126, 74, .35);
    border-bottom: 1px solid rgba(217, 126, 74, .35);
    color: var(--wine) !important;
    font-family: Arial, sans-serif;
    font-size: 8px !important;
    line-height: 1.4 !important;
    letter-spacing: 2px !important;
    white-space: nowrap;
}

.reservation-confirmation-number strong {
    margin-left: 6px;
    color: var(--orange);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 390px) {
    .reservation-confirmation-number {
        font-size: 7px !important;
        letter-spacing: 1.6px !important;
    }

    .reservation-confirmation-number strong {
        font-size: 12px;
    }
}


/* =========================================================
   V17.1｜喜帖收件地址：出席者必填
========================================================= */

.required-mark {
    margin-left: 3px;
    color: var(--orange);
    font-style: normal;
    font-size: .95em;
}

.field-required-note {
    margin: 7px 0 0;
    color: var(--orange);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .3px;
}


/* =========================================================
   V18｜LINE LOGIN BINDING
========================================================= */

.line-join-button[aria-disabled="true"] {
    opacity: .48;
    pointer-events: none;
}

.line-join-button.is-ready {
    opacity: 1;
}

.line-bind-note {
    margin: 12px 0 0 !important;
    color: rgba(99, 63, 66, .72) !important;
    font-size: 9.5px !important;
    line-height: 1.65 !important;
    letter-spacing: .25px !important;
}

@media (max-width: 390px) {
    .line-bind-note {
        font-size: 9px !important;
    }
}


/* =========================================================
   V19｜RSVP duplicate-control / admin dashboard backend
   本版前台視覺維持不變。
========================================================= */

/* =========================================================
   V19.3｜iPhone / LINE 內建瀏覽器版面修正
========================================================= */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
.save-date-card{min-height:0!important;height:auto!important;aspect-ratio:1000/1850!important;}
.schedule-day,.schedule-bottom{border:0!important;padding-left:0!important;padding-right:0!important;}
@media (max-width:430px){
  .schedule-section{padding:54px 18px 58px;}
  .schedule-pass{padding:18px 16px 16px;}
  .schedule-date{margin-top:52px;}
  .schedule-day{max-width:100%;margin:10px auto 42px;font-size:9px;letter-spacing:1.85px;white-space:nowrap;}
  .timeline-item{grid-template-columns:19px 54px 15px minmax(0,1fr);column-gap:7px;min-height:108px;}
  .timeline::before{left:94px;top:26px;bottom:26px;}
  .timeline-time{font-size:18px;}
  .timeline-info strong{font-size:14px;line-height:1.12;}
  .timeline-info span{margin-top:6px;font-size:11.5px;line-height:1.42;letter-spacing:.45px;}
  .schedule-art-couple{top:78px;left:4px;width:86px;}
  .schedule-art-bell{top:350px;right:-4px;width:70px;}
  .schedule-art-stamp{left:-10px;bottom:18px;width:66px;}
  .schedule-art-camera{right:-2px;bottom:18px;width:62px;}
  .timeline-item:last-child .timeline-info{padding-right:48px;}
  .schedule-bottom{max-width:100%;margin-top:17px;font-size:7.5px;letter-spacing:1.1px;}
}
@media (max-width:390px){
  .schedule-section{padding-left:14px;padding-right:14px;}
  .schedule-pass{padding-left:14px;padding-right:14px;}
  .timeline-item{grid-template-columns:18px 51px 14px minmax(0,1fr);column-gap:6px;}
  .timeline::before{left:87px;}
  .timeline-time{font-size:17px;}
  .timeline-info strong{font-size:13px;}
  .timeline-info span{font-size:11px;}
  .schedule-art-bell{top:352px;width:64px;}
  .schedule-art-camera{width:58px;}
}
.message-section{padding:12px 8px 8px!important;}
.ending-section{padding:8px 8px 14px!important;}
.message-card,.ending-card{display:block;margin:0;}
@supports (padding:env(safe-area-inset-bottom)){
  .ending-section{padding-bottom:calc(14px + env(safe-area-inset-bottom))!important;}
}


/* =========================================================
   V19.4｜最後三頁統一視覺寬度與留白
   07 Reservation / 08 Message / 09 Ending
   統一為同一組手機 gutters 與 4:5 視覺比例基準
========================================================= */

:root {
    --final-page-gutter: 14px;
    --final-card-gutter: 10px;
}

/* 三頁統一外側粉色留白 */
.reservation-section,
.message-section,
.ending-section {
    width: 100%;
    background: var(--pink);
    padding-left: var(--final-page-gutter) !important;
    padding-right: var(--final-page-gutter) !important;
}

/* Reservation：內容可延伸，但視覺寬度與後兩頁一致 */
.reservation-section {
    padding-top: 22px !important;
    padding-bottom: 18px !important;
}

.reservation-section::before {
    inset: 10px !important;
}

.reservation-section::after {
    inset: 16px !important;
}

.reservation-section .section-heading {
    margin-left: var(--final-card-gutter) !important;
    margin-right: var(--final-card-gutter) !important;
    margin-bottom: 22px !important;
}

.reservation-card {
    width: auto;
    margin-left: var(--final-card-gutter) !important;
    margin-right: var(--final-card-gutter) !important;
}

/* Message / Ending：完全相同的 4:5 視覺比例與邊界 */
.message-section,
.ending-section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.message-card,
.ending-card {
    width: 100%;
    aspect-ratio: 4 / 5 !important;
    margin: 0 !important;
    background-position: center !important;
    background-size: 100% 100% !important;
}

/* 讓三頁在手機上左右邊界一致 */
@media (max-width: 430px) {
    :root {
        --final-page-gutter: 10px;
        --final-card-gutter: 6px;
    }

    .reservation-section {
        padding-top: 16px !important;
        padding-bottom: 12px !important;
    }

    .reservation-section .section-heading {
        margin-bottom: 18px !important;
    }

    .reservation-card {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .message-section,
    .ending-section {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

@media (max-width: 390px) {
    :root {
        --final-page-gutter: 8px;
        --final-card-gutter: 4px;
    }

    .reservation-section {
        padding-top: 14px !important;
    }

    .message-section,
    .ending-section {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

/* iPhone safe area */
@supports (padding: env(safe-area-inset-bottom)) {
    .ending-section {
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    }
}


/* V19.5｜restore full cover image without cropping */
.cover::before { content: none; }
.cover-photo { max-width: 100%; }
.cover-shade { pointer-events: none; }
.cover-access { padding-top: env(safe-area-inset-top, 0px); }
@media (max-width: 767px) {
    .cover { min-height: auto; }
    .cover-shade {
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0) 46%,
            rgba(45,30,24,0.04) 62%,
            rgba(45,30,24,0.42) 100%
        );
    }
    .cover-bottom { bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 6px)); }
    .cover-small { margin-bottom: 10px; }
    .open-button { min-width: 240px; }
}


/* =========================================================
   V19.6｜手機「一頁一屏」整理
   適用：
   01 Cover / 02 Save the Date / 04 Our Moments /
   08 Message / 09 Ending

   資訊量較大的：
   03 Invitation / 05 Today's Stay / 06 Tonight's Stay /
   07 Reservation
   保留自然高度，不強迫塞進一個螢幕。
========================================================= */

/* LINE / iPhone 動態工具列下的一整屏高度 */
:root {
    --wedding-screen: 100svh;
}

/* ---------- 01｜COVER ---------- */
/* 完整原圖、不裁切，同時鎖成一整個手機畫面 */
.cover {
    position: relative;
    width: 100%;
    height: var(--wedding-screen) !important;
    min-height: var(--wedding-screen) !important;
    overflow: hidden;
    background: var(--pink);
}

.cover-photo {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    animation: none !important;
}

/* ---------- 02｜SAVE THE DATE ---------- */
/* 保留 1000×1850，不裁底圖；不足一屏時置中 */
.date-section {
    min-height: var(--wedding-screen);
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-date-card {
    flex: 0 0 auto;
    width: 100%;
    max-height: calc(var(--wedding-screen) - 14px);
}

/* ---------- 04｜OUR MOMENTS ---------- */
/* 內容若不足一屏就補滿；若超過仍可自然向下延伸 */
.moments-section {
    min-height: var(--wedding-screen);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- 08｜MESSAGE ---------- */
/* 一頁一屏，底圖完整顯示，不與 Ending 同時露出 */
.message-section {
    min-height: var(--wedding-screen) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.message-card {
    flex: 0 0 auto;
    width: 100%;
    max-height: calc(var(--wedding-screen) - 20px);
    aspect-ratio: 4 / 5 !important;
    background-size: contain !important;
    background-position: center center !important;
}

/* ---------- 09｜ENDING ---------- */
/* 最後一頁同樣一頁一屏 */
.ending-section {
    min-height: var(--wedding-screen) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ending-card {
    flex: 0 0 auto;
    width: 100%;
    max-height: calc(var(--wedding-screen) - 20px);
    aspect-ratio: 4 / 5 !important;
    background-size: contain !important;
    background-position: center center !important;
}

/* ---------- 手機細節 ---------- */
@media (max-width: 430px) {
    .date-section,
    .message-section,
    .ending-section {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .moments-section {
        padding-top: 46px;
        padding-bottom: 46px;
    }
}

/* 非常矮的手機：避免硬塞造成內容縮得太小 */
@media (max-height: 700px) {
    .date-section,
    .moments-section,
    .message-section,
    .ending-section {
        min-height: auto;
    }

    .cover {
        min-height: 100svh !important;
    }
}

@supports not (height: 100svh) {
    :root {
        --wedding-screen: 100vh;
    }
}


/* =========================================================
   V19.7｜三張新設計圖統一為 922 × 1706
   Invitation / Message / Ending
========================================================= */

:root {
    --long-card-ratio: 922 / 1706;
}

/* ---------- 03｜OUR INVITATION ---------- */
.invitation-ticket {
    aspect-ratio: 922 / 1706 !important;
    background-image: url("images/invitation-background.png") !important;
    background-size: 100% 100% !important;
    background-position: center top !important;
}

/* 新底圖較舊版短，將 HTML 文案稍微收緊並重新置中 */
.ticket-top {
    top: 6.8% !important;
    left: 11.5% !important;
    right: 11.5% !important;
}

.greeting-copy {
    top: 15.4% !important;
    left: 13.5% !important;
    right: 13.5% !important;
}

.greeting-copy .small-cn {
    margin-bottom: clamp(11px, 3.5vw, 18px) !important;
}

.greeting-copy h2 {
    font-size: clamp(23px, 6.4vw, 31px) !important;
}

.mini-line {
    margin-top: clamp(15px, 4.5vw, 22px) !important;
    margin-bottom: clamp(18px, 5vw, 25px) !important;
}

.greeting-copy > p {
    margin-bottom: clamp(15px, 4.2vw, 21px) !important;
    line-height: 1.9 !important;
}

.special-date {
    width: 86% !important;
    margin-top: clamp(17px, 4.6vw, 23px) !important;
    margin-bottom: clamp(15px, 4vw, 20px) !important;
    padding-top: clamp(8px, 2.5vw, 12px) !important;
    padding-bottom: clamp(8px, 2.5vw, 12px) !important;
}

.greeting-signature {
    margin-top: clamp(20px, 5vw, 29px) !important;
}

.ticket-code {
    left: 16% !important;
    right: 16% !important;
    bottom: 5.4% !important;
}

/* ---------- 08｜MESSAGE ---------- */
.message-section {
    min-height: auto !important;
    display: block !important;
    padding: 8px !important;
}

.message-card {
    width: 100% !important;
    max-height: none !important;
    aspect-ratio: 922 / 1706 !important;
    background-image: url("images/message-background.png") !important;
    background-size: 100% 100% !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* ---------- 09｜ENDING ---------- */
.ending-section {
    min-height: auto !important;
    display: block !important;
    padding: 8px !important;
}

.ending-card {
    width: 100% !important;
    max-height: none !important;
    aspect-ratio: 922 / 1706 !important;
    background-image: url("images/ending-background.png") !important;
    background-size: 100% 100% !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* 三張長版在手機上使用一致左右邊界 */
@media (max-width: 430px) {
    .greeting-section {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .message-section,
    .ending-section {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .ticket-top {
        font-size: clamp(6px, 1.7vw, 8px) !important;
    }

    .greeting-copy {
        top: 15.2% !important;
        left: 12.8% !important;
        right: 12.8% !important;
    }

    .greeting-copy > p {
        font-size: clamp(11px, 3.3vw, 14px) !important;
        line-height: 1.82 !important;
    }

    .special-date strong {
        font-size: clamp(16px, 4.5vw, 20px) !important;
    }

    .ticket-code {
        bottom: 5.1% !important;
    }
}

/* LINE / Safari 確保不拉伸背景圖 */
@supports (height: 100svh) {
    .message-card,
    .ending-card,
    .invitation-ticket {
        height: auto !important;
    }
}


/* =========================================================
   V20｜INTERACTIVE CHECK-IN
   小幅動態，不改變既有婚帖設計
========================================================= */

/* 柔和吸附：只有簡潔頁面有章節感，不會卡住長內容 */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

.cover,
.date-section,
.moments-section,
.message-section,
.ending-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* Section 進場：只做淡入＋微上移 */
.js-reveal-section {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.22,.61,.36,1);
}

.js-reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 標題、主卡片再細分一點點節奏 */
.js-reveal-section .section-heading,
.js-reveal-section .moments-subtitle,
.js-reveal-section .main-photo-frame,
.js-reveal-section .reservation-card,
.js-reveal-section .message-card,
.js-reveal-section .ending-card {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity .65s ease,
        transform .65s cubic-bezier(.22,.61,.36,1);
}

.js-reveal-section.is-visible .section-heading,
.js-reveal-section.is-visible .moments-subtitle,
.js-reveal-section.is-visible .main-photo-frame,
.js-reveal-section.is-visible .reservation-card,
.js-reveal-section.is-visible .message-card,
.js-reveal-section.is-visible .ending-card {
    opacity: 1;
    transform: translateY(0);
}

.js-reveal-section.is-visible .moments-subtitle {
    transition-delay: .08s;
}

.js-reveal-section.is-visible .main-photo-frame,
.js-reveal-section.is-visible .reservation-card,
.js-reveal-section.is-visible .message-card,
.js-reveal-section.is-visible .ending-card {
    transition-delay: .14s;
}

/* Save the Date 數字出現時稍微放大 */
.date-section .big-date,
.date-section .countdown {
    transition:
        transform .75s cubic-bezier(.22,.61,.36,1),
        opacity .75s ease;
}

.date-section:not(.is-visible) .big-date,
.date-section:not(.is-visible) .countdown {
    opacity: .72;
    transform: scale(.985);
}

/* Our Moments：主照片切換更有質感 */
#mainGalleryImage {
    transition:
        opacity .28s ease,
        transform .38s cubic-bezier(.22,.61,.36,1);
    will-change: transform, opacity;
}

#mainGalleryImage.is-changing {
    opacity: .28;
    transform: scale(.985);
}

.gallery-thumbs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

/* 右側 Check-in progress */
.checkin-progress {
    position: fixed;
    z-index: 999;
    top: 50%;
    right: max(8px, env(safe-area-inset-right));
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    padding: 10px 6px;

    border-radius: 999px;
    background: rgba(255, 248, 241, .66);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 4px 18px rgba(99, 63, 66, .08);

    opacity: .72;
    transition: opacity .25s ease;
}

.checkin-progress:hover,
.checkin-progress:focus-within {
    opacity: 1;
}

.checkin-progress button {
    appearance: none;
    width: 7px;
    height: 7px;
    padding: 0;

    border: 1px solid rgba(99, 63, 66, .42);
    border-radius: 50%;

    background: rgba(255,255,255,.72);
    cursor: pointer;

    transition:
        transform .22s ease,
        background .22s ease,
        border-color .22s ease;
}

.checkin-progress button.is-active {
    transform: scale(1.45);
    border-color: var(--orange);
    background: var(--orange);
}

.checkin-progress .progress-line {
    width: 1px;
    height: 16px;
    background: rgba(99, 63, 66, .20);
}

/* 微型下一章提示 */
.chapter-cue {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 6;

    transform: translateX(-50%);

    color: rgba(99, 63, 66, .58);

    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 2px;
    white-space: nowrap;

    opacity: 0;
    transition: opacity .5s ease .35s;
}

.is-visible > .chapter-cue {
    opacity: 1;
}

.chapter-cue::after {
    content: "⌄";
    display: block;
    margin-top: 3px;
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1;
}

/* Ending 不需要再提示往下 */
.ending-section > .chapter-cue {
    display: none;
}

/* 尊重系統減少動態設定 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js-reveal-section,
    .js-reveal-section *,
    #mainGalleryImage {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* 手機上進度點再低調一點 */
@media (max-width: 430px) {
    .checkin-progress {
        right: max(4px, env(safe-area-inset-right));
        gap: 7px;
        padding: 8px 5px;
        opacity: .55;
    }

    .checkin-progress button {
        width: 6px;
        height: 6px;
    }

    .chapter-cue {
        bottom: 7px;
    }
}
