:root {
    /* Burgundy + Olive + Cream palette */
    --burgundy-deep: #480202;
    --burgundy: #7a1f2e;
    --burgundy-mid: #5a1622;
    --burgundy-soft: #8C3E4C;
    --olive-deep: #384001;
    --olive: #4a5512;
    --olive-soft: #6b7a3a;
    --cream: #D9D3B8;
    --cream-light: #ebe4ce;
    --cream-paper: #f5efd9;
    --gold: #b8945a;
    --gold-deep: #8b6a2b;
    --ink: #2a1208;
    --ink-soft: #5a3e3a;
    --gray-soft: #A6A59F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--ink);
    background: #1a1208;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================== BACKGROUND ===================== */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(20, 14, 8, 0.45) 0%, rgba(48, 16, 22, 0.55) 100%),
        radial-gradient(ellipse at 15% 5%, rgba(122, 31, 46, 0.22), transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(56, 64, 1, 0.18), transparent 55%),
        url('assets/swans-pair.jpg') center 75% / cover no-repeat;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(20, 8, 4, 0.55) 100%);
}

/* ===================== DECORATIVE BG FLOWERS ===================== */
.bg-floral {
    position: fixed;
    width: clamp(140px, 22vw, 260px);
    height: clamp(140px, 22vw, 260px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.55;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.bg-floral-tl {
    top: -20px;
    left: -20px;
    transform: rotate(-15deg);
}

.bg-floral-br {
    bottom: -20px;
    right: -20px;
    transform: rotate(160deg);
}

@media (max-width: 600px) {
    .bg-floral {
        width: 160px;
        height: 160px;
        opacity: 0.55;
    }
    .bg-floral-tl { top: -30px; left: -40px; }
    .bg-floral-br { bottom: -30px; right: -40px; }
}

/* ===================== PETALS ===================== */
.petals {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -40px;
    width: 14px;
    height: 14px;
    border-radius: 60% 0 60% 0;
    background: linear-gradient(135deg, #8C3E4C, #480202);
    opacity: 0.7;
    filter: blur(0.3px);
    will-change: transform, opacity;
    animation: fall linear infinite;
}

.petal.olive { background: linear-gradient(135deg, #6b7a3a, #384001); opacity: 0.55; }
.petal.cream { background: linear-gradient(135deg, #f5efd9, #c8b78f); opacity: 0.5; }

@keyframes fall {
    0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.75; }
    50%  { transform: translate3d(60px, 50vh, 0) rotate(220deg); }
    92%  { opacity: 0.65; }
    100% { transform: translate3d(-30px, 110vh, 0) rotate(540deg); opacity: 0; }
}

/* ===================== STAGE ===================== */
.stage {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 1rem 4rem;
    gap: 0;
    transition: padding 0.8s ease, gap 0.8s ease;
}

.stage.opened {
    justify-content: flex-start;
    padding-top: clamp(5rem, 8vh, 6rem);
    padding-bottom: 4rem;
    gap: 2.5rem;
}

.envelope-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1400px;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage.opened .envelope-wrap {
    transform: scale(0.7);
    transform-origin: top center;
}

.hint {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--cream-light);
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    animation: hintIn 1.4s ease 0.6s forwards, hintBreathe 3.2s ease-in-out 2s infinite;
}

@keyframes hintIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 0.85; transform: translateY(0); }
}

@keyframes hintBreathe {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 0.95; }
}

.stage.opened .hint {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    animation: none;
}

/* ===================== ENVELOPE (image-based, ornate burgundy) ===================== */
.envelope {
    position: relative;
    width: min(680px, 96vw);
    aspect-ratio: 1536 / 1024;
    cursor: pointer;
    animation: envFloat 4s ease-in-out infinite;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s ease;
    background: url('assets/envelope.png?v=6') center / contain no-repeat;
    filter: drop-shadow(0 30px 60px rgba(40, 5, 12, 0.5))
            drop-shadow(0 8px 18px rgba(40, 5, 12, 0.35));
}

.envelope:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 8px;
    border-radius: 6px;
}

@keyframes envFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.stage.opened .envelope {
    animation: envelopeOpen 1.6s cubic-bezier(0.45, 0.05, 0.35, 0.95) forwards;
    cursor: default;
    transform-origin: center top;
}

@keyframes envelopeOpen {
    from { transform: scale(1) translateY(0) rotateX(0deg); opacity: 1; }
    to   { transform: scale(0.4) translateY(-120px) rotateX(-45deg); opacity: 0; }
}

.envelope-back, .envelope-front, .envelope-flap {
    display: none;
}

.seal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(110px, 30%, 150px);
    aspect-ratio: 175 / 181;
    transform: translate(-50%, -50%);
    z-index: 9;
    background: url('assets/seal.png?v=7') center / contain no-repeat;
    filter: drop-shadow(0 6px 10px rgba(40, 5, 12, 0.55))
            drop-shadow(0 2px 4px rgba(40, 5, 12, 0.35));
    transition: transform 0.5s cubic-bezier(0.5, -0.4, 0.5, 1.4), opacity 0.5s ease;
    animation: sealPulse 2.6s ease-in-out infinite;
}

@keyframes sealPulse {
    0%, 100% {
        filter: drop-shadow(0 6px 10px rgba(40, 5, 12, 0.55))
                drop-shadow(0 2px 4px rgba(40, 5, 12, 0.35))
                drop-shadow(0 0 0 rgba(74, 85, 18, 0.5));
    }
    50% {
        filter: drop-shadow(0 6px 10px rgba(40, 5, 12, 0.55))
                drop-shadow(0 2px 4px rgba(40, 5, 12, 0.35))
                drop-shadow(0 0 8px rgba(74, 85, 18, 0.6));
    }
}

.envelope.open .seal {
    /* keep seal centered & visible — it moves with the envelope so the
       cream seal in the image behind it is never exposed */
    animation: none;
}


/* ===================== LETTER ===================== */
.letter {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: none;
    opacity: 0;
}

.stage.opened .letter {
    display: block;
    animation: letterRise 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.5s forwards;
}

@keyframes letterRise {
    from { opacity: 0; transform: translateY(50px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===================== PHOTO ARRANGEMENT (5 photos: 2 + center + 2) ===================== */
.photo-arrangement {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.6rem, 2.5vw, 1.4rem);
    margin: 0 auto 2.2rem;
    width: 100%;
    padding: 0 0.4rem;
}

.photo-side {
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 2vw, 1rem);
    flex: 0 0 auto;
}

.photo-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(180px, 38vw, 300px);
    text-align: center;
    transform: rotate(-2deg);
    z-index: 2;
}

.photo-frame {
    background: #fff;
    padding: 12px 12px 38px;
    box-shadow:
        0 22px 44px -12px rgba(40, 5, 12, 0.6),
        0 6px 14px rgba(40, 5, 12, 0.3);
    border-radius: 2px;
}

.photo-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: contrast(1.04);
}

.photo-caption {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    color: var(--burgundy-deep);
    text-align: center;
}

/* small polaroids on the sides */
.gallery-photo {
    background: #fff;
    padding: 6px 6px 14px;
    box-shadow:
        0 12px 24px -8px rgba(40, 5, 12, 0.5),
        0 4px 10px rgba(40, 5, 12, 0.22);
    border-radius: 2px;
    width: clamp(80px, 18vw, 140px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
    cursor: default;
}

.gallery-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: contrast(1.04);
}

/* individual rotations for that "scattered photos" feel */
.gp-1 { transform: rotate(-6deg); }
.gp-2 { transform: rotate(4deg); }
.gp-3 { transform: rotate(5deg); }
.gp-4 { transform: rotate(-4deg); }

.gallery-photo:hover {
    transform: rotate(0deg) scale(1.08) translateY(-4px);
    z-index: 5;
    box-shadow:
        0 22px 40px -10px rgba(40, 5, 12, 0.6),
        0 6px 14px rgba(40, 5, 12, 0.3);
}

@media (max-width: 600px) {
    .photo-arrangement {
        gap: 0.35rem;
        padding: 0 0.2rem;
    }
    .photo-side { gap: 0.5rem; }
    .photo-card {
        width: clamp(140px, 36vw, 200px);
    }
    .gallery-photo {
        padding: 4px 4px 11px;
        width: clamp(60px, 16vw, 90px);
    }
    .photo-frame {
        padding: 8px 8px 26px;
    }
    .photo-caption {
        font-size: 1.05rem;
        bottom: 4px;
    }
}

@media (max-width: 380px) {
    .photo-arrangement { gap: 0.25rem; }
    .photo-side { gap: 0.4rem; }
    .photo-card { width: 120px; }
    .gallery-photo { width: 56px; padding: 3px 3px 10px; }
    .photo-frame { padding: 6px 6px 22px; }
    .photo-caption { font-size: 0.85rem; bottom: 3px; }
}

/* invitation card (cream paper) */
.card {
    background: transparent;
    padding: 0;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    border-radius: 3px;
}

.invitation-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    background: #fbf6ec;
    box-shadow:
        0 30px 60px -20px rgba(40, 5, 12, 0.45),
        0 8px 20px rgba(40, 5, 12, 0.15);
    border-radius: 3px;
    opacity: 0;
}

.stage.opened .invitation-img { animation: fadeUp 1s ease 1.4s forwards; }

.card-flower {
    position: absolute;
    width: clamp(70px, 16vw, 110px);
    height: clamp(70px, 16vw, 110px);
    z-index: 0;
    opacity: 0.85;
    pointer-events: none;
}

.card-flower-tl {
    top: -10px;
    left: -10px;
    transform: rotate(-12deg);
}

.card-flower-br {
    bottom: -10px;
    right: -10px;
    transform: rotate(170deg);
}

.kicker, .wedding-of, .names, .invitation, .divider, .datetime, .venue,
.countdown, .actions {
    position: relative;
    z-index: 2;
}

.kicker {
    font-size: 0.9rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--burgundy);
    font-weight: 400;
    margin-bottom: 0.6rem;
    opacity: 0;
}

.stage.opened .kicker { animation: fadeUp 0.8s ease 1.3s forwards; }

.wedding-of {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    font-weight: 400;
    color: var(--burgundy-deep);
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0.4rem 0 1.4rem;
    opacity: 0;
}

.stage.opened .wedding-of { animation: fadeUp 0.9s ease 1.5s forwards; }

.names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.6rem, 11vw, 5rem);
    font-weight: 400;
    color: var(--burgundy-deep);
    line-height: 1;
    margin-bottom: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0;
}

.name-part {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.stage.opened .name-part {
    animation: letterIn 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    animation-delay: calc(1.6s + var(--d) * 0.07s);
}

@keyframes letterIn {
    from { opacity: 0; transform: translateY(24px) rotate(-3deg); }
    to   { opacity: 1; transform: translateY(0) rotate(0); }
}

.amp {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: normal;
    color: var(--burgundy);
    font-size: 0.9em;
    margin: 0 0.18em;
    vertical-align: 0.04em;
    opacity: 0;
    transform: scale(0.5);
    display: inline-block;
}

.stage.opened .amp { animation: ampIn 0.9s cubic-bezier(0.3, 0.8, 0.3, 1.4) 2.2s forwards; }

@keyframes ampIn {
    from { opacity: 0; transform: scale(0.3) rotate(-30deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

.invitation {
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 1.2rem 0 1.4rem;
    opacity: 0;
}

.stage.opened .invitation { animation: fadeUp 0.8s ease 2.7s forwards; }

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--olive);
    margin: 1.4rem 0;
    opacity: 0;
}

.stage.opened .divider { animation: fadeUp 0.8s ease 2.9s forwards; }

.divider .line {
    flex: 0 0 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--olive), transparent);
}

.venue {
    margin: 1.4rem 0 0.8rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    opacity: 0;
}

.stage.opened .venue { animation: fadeUp 0.8s ease 3.1s forwards; }

.venue-pre {
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
}

.venue-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--burgundy-deep);
    font-family: 'Cormorant Garamond', serif;
}

.datetime {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.6rem;
    opacity: 0;
}

.stage.opened .datetime { animation: fadeUp 0.8s ease 3.3s forwards; }

.datetime .date-line {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.datetime .date-line sup {
    font-size: 0.6em;
    vertical-align: super;
    line-height: 0;
    margin-left: 0.05em;
    margin-right: 0.05em;
}

.datetime .time {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-top: 0.15rem;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1.8rem auto 1.6rem;
    max-width: 380px;
    opacity: 0;
}

.stage.opened .countdown { animation: fadeUp 0.8s ease 1.5s forwards; }

.cd-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.7rem 0.3rem;
    background: linear-gradient(180deg, rgba(255, 250, 230, 0.7), rgba(217, 211, 184, 0.4));
    border: 1px solid rgba(122, 31, 46, 0.25);
    border-radius: 3px;
}

.cd-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--burgundy-deep);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

.cd-num.tick { animation: tick 0.45s ease; }

@keyframes tick {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); color: var(--burgundy-soft); }
    100% { transform: scale(1); }
}

.cd-cell label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--olive);
    margin-top: 0.35rem;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.stage.opened .actions { animation: fadeUp 0.8s ease 1.6s forwards; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--burgundy);
    font-weight: 500;
}

.btn-primary {
    background: var(--burgundy);
    color: #fff5e0;
}

.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(72, 2, 2, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--burgundy);
}

.btn-ghost:hover {
    background: var(--burgundy);
    color: #fff5e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(122, 31, 46, 0.35);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================== MUSIC TOGGLE (top-center pill) ===================== */
.music-toggle {
    position: fixed;
    top: max(1.2rem, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.3rem 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--burgundy);
    background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
    color: var(--burgundy-deep);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow:
        0 6px 18px rgba(72, 2, 2, 0.25),
        0 2px 6px rgba(72, 2, 2, 0.15);
    -webkit-tap-highlight-color: transparent;
    animation: musicCallout 2.2s ease-in-out 1.2s infinite;
}

.music-toggle:hover {
    background: var(--burgundy);
    color: var(--cream-light);
    transform: translateX(-50%) translateY(-2px) scale(1.02);
}

.music-toggle:active {
    transform: translateX(-50%) translateY(0) scale(0.98);
}

.music-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.music-toggle .icon-mute  { display: none; }
.music-toggle.muted .icon-music { display: none; }
.music-toggle.muted .icon-mute  { display: block; }

.music-label .label-pause { display: none; }
.music-toggle.muted .label-play  { display: inline; }
.music-toggle.muted .label-pause { display: none; }
.music-toggle:not(.muted) .label-play  { display: none; }
.music-toggle:not(.muted) .label-pause { display: inline; }

.music-toggle.playing { animation: musicPulse 1.4s ease-in-out infinite; }

.music-toggle:not(.muted) {
    background: var(--burgundy);
    color: var(--cream-light);
    animation: musicPulse 1.4s ease-in-out infinite;
}

@keyframes musicCallout {
    0%, 100% {
        box-shadow:
            0 6px 18px rgba(72, 2, 2, 0.25),
            0 2px 6px rgba(72, 2, 2, 0.15),
            0 0 0 0 rgba(122, 31, 46, 0.5);
    }
    50% {
        box-shadow:
            0 6px 18px rgba(72, 2, 2, 0.3),
            0 2px 6px rgba(72, 2, 2, 0.18),
            0 0 0 10px rgba(122, 31, 46, 0);
    }
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow:
            0 6px 18px rgba(72, 2, 2, 0.4),
            0 0 0 0 rgba(184, 148, 90, 0.5);
    }
    50% {
        box-shadow:
            0 6px 18px rgba(72, 2, 2, 0.4),
            0 0 0 8px rgba(184, 148, 90, 0);
    }
}

@media (max-width: 480px) {
    .music-toggle {
        font-size: 0.75rem;
        padding: 0.55rem 1rem 0.55rem 0.85rem;
        letter-spacing: 0.15em;
    }
}

/* ===================== CONFETTI BURST ===================== */
.confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
    animation: burst 1.2s cubic-bezier(0.2, 0.5, 0.4, 1) forwards;
}

@keyframes burst {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1); opacity: 0; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 600px) {
    .stage { padding: 5rem 0.8rem 3rem; }
    .stage.opened { padding-bottom: 3rem; padding-top: 5rem; }
    .stage.opened .envelope-wrap { transform: scale(0.55); margin-top: -2rem; margin-bottom: -2rem; }
    .photo-card { width: min(220px, 70%); }
    .countdown { gap: 0.3rem; max-width: 320px; }
    .cd-num { font-size: 1.35rem; }
    .cd-cell { padding: 0.55rem 0.2rem; }
    .cd-cell label { font-size: 0.55rem; }
    .venue-name { font-size: 1.1rem; }
    .invitation { font-size: 1rem; }
    .btn { padding: 0.6rem 1.1rem; font-size: 0.78rem; letter-spacing: 0.15em; }
    .actions { gap: 0.5rem; }
    .hint { font-size: 1rem; }
    .card-flower { width: 65px; height: 65px; }
}

@media (max-width: 360px) {
    .countdown { grid-template-columns: repeat(4, 1fr); }
    .cd-num { font-size: 1.15rem; }
    .names { font-size: clamp(2.2rem, 13vw, 3.5rem); }
}

@media (min-width: 900px) {
    .letter { max-width: 640px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .stage.opened .letter { display: block; opacity: 1; }
    .name-part, .amp, .kicker, .wedding-of, .invitation, .divider, .datetime, .venue, .countdown, .actions { opacity: 1 !important; }
}
