/* ==========================================
   ROYAL WEDDING INVITATION - STYLESHEET
   ========================================== */

/* 1. DESIGN SYSTEM VARIABLES */
:root {
    /* Color Palette */
    --color-bg-base: #faf8f5;
    /* Soft Cream / Ivory */
    --color-bg-dark: #8c1d31;
    /* Deep Royal Maroon */
    --color-royal-blue: #0b6a88;
    /* Gate Match Blue */
    --color-gold-light: #fcf6ba;
    /* Sparkling Champagne Gold */
    --color-gold-dark: #b38728;
    /* Deep Royal Gold */
    --color-gold-mid: #d4af37;
    /* Classic Metallic Gold */
    --color-text-dark: #2c2520;
    /* Vintage Charcoal */
    --color-text-muted: #6e655f;
    /* Warm Grey */
    --color-card-border: #ebdcb9;
    /* Gold Frame Border Tint */

    /* Fonts */
    --font-heading: 'Cinzel Decorative', Georgia, serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    --font-cursive: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing & Borders */
    --radius-lg: 16px;
    --radius-sm: 8px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* 2. BASE STYLES & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-base);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.hidden {
    display: none !important;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Background Royal Pattern Overlay */
.royal-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--color-bg-base) 70%, transparent 100%),
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(140, 29, 49, 0.02) 0%, transparent 45%);
    z-index: -2;
    pointer-events: none;
}

/* Decorative Background Grids */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(var(--color-gold-light) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Typography Defaults */
h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
}

h2 {
    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(252, 246, 186, 0.18);
}

/* Utility: line-by-line reveals for multi-line text blocks */
.reveal-line {
    display: block;
    will-change: transform, opacity;
}

/* 3. GATE SCREEN (FULL SCREEN COVER WITH CURTAINS) */
.gate-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #2d050c 0%, #150205 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

/* Blurred backdrop that shows behind the gate video during opening */
.gate-container.video-playing {
    background-image: url('images/01-1080.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

@media (min-width: 768px) {
    .gate-container.video-playing {
        background-image: url('images/01-1920.jpg') !important;
    }
}

/* Royal Red Curtains behind/over gate trigger */
.royal-curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #7c1a2c 0%, #3e0c15 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.curtain-left {
    left: 8px;
    border-right: 3px solid var(--color-gold-mid);
}

.curtain-right {
    right: 0;
    border-left: 3px solid var(--color-gold-mid);
}

/* Full Screen Interactive Portal Gate */
.gate-full-screen-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gate-door-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gate-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    display: none;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.gate-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(252, 246, 186, 0.15) 0%, transparent 80%);
    opacity: 1;
    pointer-events: none;
    animation: pulsingGlow 3s infinite ease-in-out;
}

/* Tap to Enter Hint Overlay */
.gate-click-hint {
    position: absolute;
    top: 2.5vh;
    /* Positioned elegantly at the top of the gate screen */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 253, 247, 0.12);
    /* Premium translucent champagne glass plate */
    border: 1px solid rgba(212, 175, 55, 0.65);
    /* Elegant, thin metallic gold frame */
    border-radius: 30px;
    padding: 10px 28px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 15px rgba(212, 175, 55, 0.2);
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    text-align: center;
}

.hint-pulse {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    color: #000;
    /* Sparkling Champagne Gold */
    letter-spacing: 2.2px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.85),
        /* Dark backdrop shadow for bulletproof contrast */
        0 0 10px rgba(212, 175, 55, 0.5);
    /* Gilded gold-foil glow halo */
    text-transform: uppercase;
    animation: pulseAnimation 2.2s infinite ease-in-out;
}

/* 4. MAIN CONTENT (FULL-SCREEN, EDGE-TO-EDGE COVER LAYOUT) */
.main-invite {
    width: 100%;
    min-height: 100vh;
    height: auto;
    position: relative;
    z-index: 10;
    opacity: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
}

.full-screen-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Background Cover Image (01.jpeg) fills edge-to-edge */
.palace-bg-cover {
    width: 100%;
    min-height: 100vh;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Place scratch card top-center */
    align-items: center;
    padding-top: 1px; /* Prevents margin collapse of scratch-card-header-wrapper */
    margin: 0;
}

/* Bright Watercolor Backdrop (02.png) with top-aligned white background */
.invitation-bg-cover {
    width: 100%;
    min-height: 100vh;
    height: 100%;
    background-size: cover;
    background-position: top center;
    /* Aligns the white header area perfectly at the top */
    background-color: #ffffff;
    /* Pure white fallback/base backing */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
}

#countdown-section .invitation-bg-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.38;
    background-image:
        url("images/heart-pattern.svg"),
        radial-gradient(circle at 50% 18%, rgba(252, 246, 186, 0.35) 0%, rgba(252, 246, 186, 0) 62%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(140, 29, 49, 0.08) 100%);
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 120px 120px, cover, cover;
    background-position: center, center, center;
}

.palace-ambient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 5. GOLD FOIL SCRATCH CARD BUTTON/CAPSULE (TOP-CENTER) */
.scratch-card-header-wrapper {
    position: relative;
    width: 100%;
    max-width: 330px;
    height: 90px;
    margin-top: 10vh;
    /* Positioned top center */
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Gold Border Frame Outer Glow Capsule */
.scratch-canvas-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid var(--color-gold-mid);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 15px rgba(252, 246, 186, 0.2);
    overflow: hidden;
    z-index: 10;
}

#scratch-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

#scratch-canvas:active {
    cursor: grabbing;
}

/* Revealed Date & Location Details Underneath Canvas overlay */
.revealed-header-details {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px 15px;
    pointer-events: none;
}

/* Date in elegant gold serif */
.revealed-date-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 1.5px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(179, 135, 40, 0.5);
    margin-bottom: 2px;
}

.revealed-date-val sup {
    font-size: 0.65em;
    font-weight: 400;
}

/* Location in elegant gold serif */
.revealed-venue-val {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 2px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(179, 135, 40, 0.5);
}

/* 6. INTERACTIVE GOLD MAP PIN (POSITIONED SLIGHTLY ABOVE BOTTOM-RIGHT) */
.map-route-pin-wrapper {
    position: absolute;
    bottom: 160px;
    /* Shifted upwards to give it breathing room above bottom shehnai button */
    right: 30px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align text block and pin marker to the right */
    transition: var(--transition-smooth);
    transform-origin: bottom right;
}

/* Hidden state with scale to support GSAP bounce entry */
.hidden-pin {
    opacity: 0;
    transform: scale(0) !important;
    pointer-events: none;
}

.map-pin-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align right */
    gap: 8px;
    cursor: pointer;
}

/* Golden Teardrop marker icon container replaced with custom image container */
.gold-map-pin-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: bouncePinImg 1.5s infinite alternate;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.45));
}

/* The label underneath */
.map-pin-label-box {
    background: rgba(253, 251, 247, 0.95);
    border: 1.5px solid var(--color-gold-mid);
    border-radius: 6px;
    padding: 5px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.map-pin-label-box:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.pin-label-text {
    font-family: var(--font-body);
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    letter-spacing: 0.5px;
}

/* 7. AUDIO PLAYER FLOATING BUTTON (PLAY/PAUSE DESIGN) */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-bg-base);
    border: 2px solid var(--color-gold-mid);
    box-shadow: 0 6px 20px rgba(179, 135, 40, 0.35);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    transition: var(--transition-fast);
    outline: none;
}

.music-btn:hover {
    transform: scale(1.1);
}

.music-icon {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-bg-dark);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

/* Sound Wave bars animation */
.sound-wave {
    position: absolute;
    width: 24px;
    height: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0.15;
}

.sound-wave span {
    width: 2px;
    background: var(--color-gold-dark);
    height: 100%;
    transform-origin: bottom;
    animation: bounce 1.2s ease infinite alternate;
}

.sound-wave span:nth-child(2) {
    animation-delay: 0.3s;
}

.sound-wave span:nth-child(3) {
    animation-delay: 0.6s;
}

.sound-wave span:nth-child(4) {
    animation-delay: 0.1s;
}

.music-btn.playing .sound-wave {
    opacity: 0.6;
}

/* 8. MAGIC CURSOR TRAIL STYLES */
#trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    pointer-events: none;
    z-index: 1002;
}

.trail-particle {
    position: absolute;
    pointer-events: none;
    font-size: 1.9rem;
    z-index: 1002;
    transform: translate(-50%, -50%);
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.95), 0 0 18px rgba(255, 255, 255, 0.75);
}

/* Sparkles overlay background styling */
#sparkle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

.sparkle {
    position: absolute;
    background: radial-gradient(circle, #fff 10%, var(--color-gold-light) 60%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.scratch-dust {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1003;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(252, 246, 186, 0.55) 0%,
            rgba(212, 175, 55, 0.18) 38%,
            rgba(140, 29, 49, 0.10) 58%,
            rgba(0, 0, 0, 0) 72%);
    filter: blur(0.6px);
    will-change: transform, opacity;
}

.ribbon-particle {
    position: fixed;
    width: 14px;
    height: 6px;
    pointer-events: none;
    z-index: 1001;
    opacity: 1;
}

/* Dreamy Floating Leaves & Petals Container */
#leaves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* 9. ANIMATIONS KEYFRAMES */
@keyframes pulsingGlow {

    0%,
    100% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(252, 246, 186, 0.15);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 40px rgba(252, 246, 186, 0.35);
    }
}

@keyframes bounce {
    from {
        transform: scaleY(0.2);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes bouncePinImg {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

@keyframes pulseAnimation {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* 10. RESPONSIVE MOBILE SIZING */
@media screen and (max-width: 768px) {
    .scratch-card-header-wrapper {
        max-width: 290px;
        height: 80px;
        margin-top: 8vh;
    }

    .revealed-date-val {
        font-size: 0.85rem;
    }

    .revealed-venue-val {
        font-size: 0.8rem;
    }

    .map-route-pin-wrapper {
        bottom: 130px;
        right: 20px;
    }

    .gold-map-pin-img {
        width: 96px;
        height: 96px;
    }

    .map-pin-label-box {
        padding: 4px 8px;
    }

    .pin-label-text {
        font-size: 0.5rem;
    }

    .music-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .scratch-card-header-wrapper {
        max-width: 260px;
        height: 75px;
        margin-top: 6vh;
    }

    .revealed-date-val {
        font-size: 0.76rem;
        letter-spacing: 1px;
    }

    .revealed-venue-val {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .map-route-pin-wrapper {
        bottom: 120px;
        right: 15px;
    }

    .gold-map-pin-img {
        width: 80px;
        height: 80px;
    }

    .map-pin-label-box {
        padding: 3px 6px;
    }

    .pin-label-text {
        font-size: 0.45rem;
    }
}

/* 11. FALLING HEARTS SHOWER */
#heart-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 995;
    overflow: hidden;
}

.falling-heart {
    position: absolute;
    top: -20px;
    font-size: 1.2rem;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
    filter: drop-shadow(0 2px 5px rgba(140, 29, 49, 0.2));
}

/* 12. INVITATION CARD DETAILS SECTION (Section 2) */
.scroll-section {
    min-height: 100vh;
    height: auto;
    position: relative;
    overflow: hidden;
}

.invitation-card-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 6vh 20px 4vh 20px;
    z-index: 5;
    text-align: center;
}

/* Ganeshji Header styles */
.ganesh-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2vh;
    width: 100%;
}

.ganesh-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 5px rgba(140, 29, 49, 0.3));
}

.ganesh-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ganesh-text span {
    font-family: var(--font-secondary);
    font-style: italic;
    /* Beautiful elegant italicized styling matching the reference */
    font-size: 0.72rem;
    /* Slightly larger for serif readability */
    font-weight: 700;
    color: var(--color-bg-dark);
    /* Deep Red/maroon lettering */
    letter-spacing: 1.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Arch Inner Text Box */
.arch-content-box {
    /* margin-top: 4vh; */
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin-bottom: 2rem;
}

/* Request text at top of arch */
.request-text {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--color-gold-light);
    letter-spacing: 1.2px;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    margin-bottom: 2.5vh;
    text-transform: uppercase;
}

/* Couple cursive calligraphy names */
.couple-name {
    font-family: var(--font-cursive);
    font-size: 3.4rem;
    font-weight: 400;
    color: var(--color-gold-light);
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(212, 175, 55, 0.6);
    line-height: 1.1;
    margin: 0.5vh 0 0 0;
}

/* Parentage information */
.parentage-text {
    font-family: var(--font-body);
    font-size: 0.54rem;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    margin-bottom: 1.5vh;
}

/* WITH separator */
.with-text {
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    margin: 1vh 0;
}

/* Responsive adjustments for Section 2 text content on smaller devices */
@media screen and (max-width: 480px) {
    .invitation-card-container {
        padding: 2vh 15px 3vh 15px;
    }

    .ganesh-icon-img {
        width: 55px;
        height: 55px;
    }

    .ganesh-text span {
        font-size: 0.52rem;
    }

    .arch-content-box {
        /* margin-top: 3vh; */
        max-width: 280px;
    }

    .request-text {
        font-size: 0.40rem;
        margin-bottom: 2vh;
    }

    .couple-name {
        font-size: 2.5rem;
    }

    .parentage-text {
        font-size: 0.40rem;
    }
}

/* 13. RETRO SANGEET/GALA DINNER SECTION (Section 3) */
.broadway-marquee-container {
    position: absolute;
    top: 6.5vh;
    /* Vertical alignment from the top of the cover */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    /* Snug matching width for desktop mobile wrapper */
    height: 70vh;
    /* Cover the vertical height of the golden arches */
    z-index: 5;
    pointer-events: none;
}

.marquee-board {
    position: absolute;
    width: 33%;
    /* Snug width to fit exactly inside the illustrated golden seat */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    pointer-events: auto;
    /* Re-enable click/touch events inside boards */
}

.left-board {
    left: 12.5%;
    /* Shift rightwards to sit perfectly inside the left golden seat */
    padding-top: 4.8vh;
    /* Shifting text down to start beautifully inside the arch */
}

.right-board {
    right: 12.5%;
    /* Shift rightwards to sit perfectly inside the right golden seat */
    padding-top: 4.8vh;
    /* Shifting text down to start beautifully inside the arch */
}

/* Typography styles inside Marquee Boards */
.broadway-event-cursive {
    font-family: var(--font-cursive);
    font-size: 2.3rem;
    font-weight: 400;
    color: var(--color-bg-dark);
    /* Retro maroon matching broadway text */
    line-height: 1.1;
    margin-bottom: 2px;
}

.broadway-subtitle {
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    letter-spacing: 0.8px;
    line-height: 1.3;
    text-transform: uppercase;
}

.broadway-date-box {
    margin-top: 1.5vh;
    /* Tightens space to prevent bottom text clipping */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.broadway-day {
    font-family: var(--font-secondary);
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    line-height: 0.9;
}

.broadway-month-year {
    font-family: var(--font-body);
    font-size: 0.46rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    letter-spacing: 0.8px;
    margin-top: 3px;
    text-transform: uppercase;
}

/* Right Board (Time & Venue) */
.broadway-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.2vh;
}

.broadway-time {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.broadway-onwards {
    font-family: var(--font-body);
    font-size: 0.46rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.broadway-venue-box {
    margin-top: 1.8vh;
    /* Tightens space to prevent bottom text clipping */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.broadway-at {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-bg-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.broadway-venue {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive adjustments for mobile retro Broadway arches */
@media screen and (max-width: 480px) {
    .broadway-marquee-container {
        max-width: 320px;
        /* Containment width for mobile viewports */
        top: 5.6vh;
        height: 65vh;
    }

    .left-board {
        left: 11%;
        padding-top: 4.2vh;
        /* Perfect alignment inside smaller mobile scale arches */
    }

    .right-board {
        right: 11%;
        padding-top: 4.2vh;
        /* Perfect alignment inside smaller mobile scale arches */
    }

    .broadway-event-cursive {
        font-size: 1.5rem;
        /* Scaled down to prevent horizontal clipping */
    }

    .broadway-subtitle {
        font-size: 0.5rem;
    }

    .broadway-day {
        font-size: 2.1rem;
        /* Scaled down to fit smaller marquee arch space */
    }

    .broadway-month-year {
        font-size: 0.5rem;
    }

    .broadway-time {
        font-size: 0.92rem;
    }

    .broadway-onwards {
        font-size: 0.5rem;
    }

    .broadway-at {
        font-size: 0.54rem;
    }

    .broadway-venue {
        font-size: 0.76rem;
    }
}

/* 15. POLO CARNIVAL & HALDI SECTION (Section 4) */
.polo-board-container {
    position: absolute;
    left: 23%;
    top: 65.5%;
    width: 37%;
    height: 31%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    z-index: 5;
    pointer-events: auto;
}

.polo-title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.polo-event-cursive {
    font-family: var(--font-cursive);
    font-size: 2.15rem;
    font-weight: 400;
    color: #c65f24;
    /* Polo Amber Bronze */
    line-height: 1.05;
    margin-bottom: 2px;
}

.polo-subtitle {
    font-family: var(--font-body);
    font-size: 0.52rem;
    font-weight: 700;
    color: #d35400;
    /* Terracotta Orange */
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 1px;
    text-transform: uppercase;
}

.polo-subtitle-line {
    display: block;
    white-space: nowrap;
}

.polo-haldi-subtitle {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.44rem;
    font-weight: 700;
    color: #3e220f;
    /* Espresso Brown */
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.polo-date-box {
    margin-top: 1.2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.polo-day {
    font-family: var(--font-secondary);
    font-size: 2.6rem;
    font-weight: 700;
    color: #c65f24;
    line-height: 0.85;
}

.polo-month-year {
    font-family: var(--font-body);
    font-size: 0.42rem;
    font-weight: 700;
    color: #3e220f;
    letter-spacing: 0.5px;
    margin-top: 0.55rem;
    text-transform: uppercase;
}

.polo-time-box {
    margin-top: 1.2vh;
    width: 100%;
}

.polo-time {
    font-family: var(--font-body);
    font-size: 0.42rem;
    font-weight: 700;
    color: #3e220f;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.polo-venue-box {
    margin-top: 1.2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.polo-at {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.48rem;
    font-weight: 600;
    color: #3e220f;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    text-transform: uppercase;
}

.polo-venue {
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    color: #3e220f;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive adjustments for mobile Polo arches */
@media screen and (max-width: 480px) {
    .polo-board-container {
        left: 23%;
        top: 65.5%;
        width: 40%;
        height: 31%;
    }

    .polo-event-cursive {
        font-size: 1.42rem;
    }

    .polo-subtitle {
        font-size: 0.42rem;
    }

    .polo-haldi-subtitle {
        font-size: 0.36rem;
    }

    .polo-date-box {
        margin-top: 0.8vh;
    }

    .polo-day {
        font-size: 1.9rem;
    }

    .polo-month-year {
        font-size: 0.34rem;
        margin-top: 0.45rem;
    }

    .polo-time-box {
        margin-top: 0.8vh;
    }

    .polo-time {
        font-size: 0.34rem;
    }

    .polo-venue-box {
        margin-top: 0.8vh;
    }

    .polo-at {
        font-size: 0.40rem;
    }

    .polo-venue {
        font-size: 0.52rem;
    }
}

/* 16. GLITZ & GLAM SECTION (Section 5) */
.glitz-board-container {
    position: absolute;
    left: 49.5%;
    top: 71.5%;
    width: 46%;
    height: 27.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    z-index: 5;
    pointer-events: auto;
}

.glitz-title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.glitz-event-cursive {
    font-family: var(--font-cursive);
    font-size: 2.15rem;
    font-weight: 400;
    color: #ffd700;
    /* Glitz Neon Gold */
    line-height: 1.05;
    margin-bottom: 2px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.glitz-date-box {
    margin-top: 0.8vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.glitz-day {
    font-family: var(--font-secondary);
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffd700;
    line-height: 0.85;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.glitz-month-year {
    font-family: var(--font-body);
    font-size: 0.42rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.5px;
    margin-top: 1px;
    text-transform: uppercase;
}

.glitz-event-box {
    margin-top: 1.0vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.glitz-event-name {
    font-family: var(--font-body);
    font-size: 0.40rem;
    font-weight: 700;
    color: #ffffff;
    /* Glitz White */
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.glitz-venue-box {
    margin-top: 1.0vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.glitz-at {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.44rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    text-transform: uppercase;
}

.glitz-venue {
    font-family: var(--font-secondary);
    font-size: 0.58rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive overrides for mobile Glitz floral board */
@media screen and (max-width: 480px) {
    .glitz-board-container {
        left: 70.5%;
        top: 65.5%;
        width: 33%;
        height: 23.5%;
        transform: translateX(-50%);
    }

    .glitz-event-cursive {
        font-size: 1.42rem;
    }

    .glitz-date-box {
        margin-top: 0.6vh;
    }

    .glitz-day {
        font-size: 1.8rem;
    }

    .glitz-month-year {
        font-size: 0.34rem;
    }

    .glitz-event-box {
        margin-top: 0.6vh;
        gap: 1px;
    }

    .glitz-event-name {
        font-size: 0.32rem;
    }

    .glitz-venue-box {
        margin-top: 0.6vh;
    }

    .glitz-at {
        font-size: 0.36rem;
    }

    .glitz-venue {
        font-size: 0.48rem;
    }
}

/* 17. RANGILO RAJASTHANI MELA SECTION (Section 6) */
.mela-board-container {
    position: absolute;
    left: 43.8%;
    top: 40.5%;
    width: 26.2%;
    height: 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    z-index: 5;
    pointer-events: auto;
}

.mela-title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mela-event-cursive {
    font-family: var(--font-cursive);
    font-size: 1.45rem;
    font-weight: 400;
    color: #c2185b;
    /* Mela Pink */
    line-height: 1.05;
    margin-bottom: 1px;
}

.mela-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.44rem;
    font-weight: 700;
    color: #d4af37;
    /* Mela Gold */
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.mela-date-box {
    margin-top: 0.6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mela-day {
    font-family: var(--font-secondary);
    font-size: 1.85rem;
    font-weight: 700;
    color: #c2185b;
    line-height: 0.85;
}

.mela-month-year {
    font-family: var(--font-body);
    font-size: 0.32rem;
    font-weight: 700;
    color: #5c0612;
    /* Espresso Maroon */
    letter-spacing: 0.5px;
    margin-top: 1px;
    text-transform: uppercase;
}

.mela-time-box {
    margin-top: 0.6vh;
    width: 100%;
}

.mela-time {
    font-family: var(--font-body);
    font-size: 0.32rem;
    font-weight: 700;
    color: #5c0612;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mela-venue-box {
    margin-top: 0.6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mela-at {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.36rem;
    font-weight: 600;
    color: #5c0612;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    text-transform: uppercase;
}

.mela-venue {
    font-family: var(--font-secondary);
    font-size: 0.44rem;
    font-weight: 700;
    color: #5c0612;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive overrides for mobile Mela floral board */
@media screen and (max-width: 480px) {
    .mela-board-container {
        left: 43.8%;
        top: 35.5%;
        width: 26.2%;
        height: 22%;
    }

    .mela-event-cursive {
        font-size: 0.95rem;
    }

    .mela-subtitle {
        font-size: 0.34rem;
    }

    .mela-date-box {
        margin-top: 0.4vh;
    }

    .mela-day {
        font-size: 1.35rem;
    }

    .mela-month-year {
        font-size: 0.26rem;
    }

    .mela-time-box {
        margin-top: 0.4vh;
    }

    .mela-time {
        font-size: 0.26rem;
    }

    .mela-venue-box {
        margin-top: 0.4vh;
    }

    .mela-at {
        font-size: 0.28rem;
    }

    .mela-venue {
        font-size: 0.34rem;
    }
}

/* 18. SACRED VOWS - WEDDING SECTION (Section 7) */
#wedding .peacock-duo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
    contain: layout paint;
}

#wedding .peacock {
    position: absolute;
    left: 50%;
    top: 44%;
    width: clamp(140px, 16vw, 260px);
    height: auto;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transform-origin: 50% 65%;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.28));
    backface-visibility: hidden;
    will-change: transform, opacity;
}

@media (max-width: 767px) {
    #wedding .peacock-duo {
        display: none;
    }
}

.wedding-board-container {
    position: absolute;
    left: 4.5%;
    top: 67.5%;
    width: 47%;
    height: 32%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    z-index: 5;
    pointer-events: auto;
}

.wedding-title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wedding-event-cursive {
    font-family: var(--font-cursive);
    font-size: 1.15rem;
    font-weight: 400;
    color: #ffffff;
    /* Pure White */
    line-height: 1.05;
    margin-bottom: 1px;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.wedding-date-box {
    margin-top: 0.2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wedding-day {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4af37;
    /* Traditional Gold */
    line-height: 0.85;
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.3);
}

.wedding-month-year {
    font-family: var(--font-body);
    font-size: 0.30rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.5px;
    margin-top: 1px;
    text-transform: uppercase;
}

.wedding-event-list {
    margin-top: 0.6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5px;
    width: 100%;
}

.wedding-ritual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wedding-ritual-name {
    font-family: var(--font-body);
    font-size: 0.24rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.1;
    text-transform: uppercase;
}

.wedding-ritual-time-venue {
    font-family: var(--font-secondary);
    font-size: 0.22rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1.1;
    text-transform: uppercase;
    opacity: 0.95;
}

/* Responsive adjustments for mobile Wedding arches */
@media screen and (max-width: 480px) {
    .wedding-board-container {
        left: 3.5%;
        top: 75%;
        width: 47%;
        height: 32%;
    }

    .wedding-event-cursive {
        font-size: 0.8rem;
    }

    .wedding-date-box {
        margin-top: 0.1vh;
    }

    .wedding-day {
        font-size: 1.2rem;
    }

    .wedding-month-year {
        font-size: 0.24rem;
    }

    .wedding-event-list {
        margin-top: 0.4vh;
        gap: 1px;
    }

    .wedding-ritual-name {
        font-size: 0.19rem;
    }

    .wedding-ritual-time-venue {
        font-size: 0.17rem;
    }
}

/* 14. DESKTOP/LAPTOP LAYOUT (Screens > 768px) */
@media screen and (min-width: 769px) {

    /* The portrait artworks used for desktop backgrounds are 1920x3413.
       Fit the whole artwork on wide screens by matching that aspect ratio,
       instead of letting background-size: cover crop the bottom. */
    :root {
        --invite-card-width: min(92vw, calc(100vh * 1920 / 3413));
    }

    .gate-container {
        width: var(--invite-card-width) !important;
        max-width: none !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
        border-left: 1.5px solid var(--color-gold-mid);
        border-right: 1.5px solid var(--color-gold-mid);
    }

    .main-invite {
        width: var(--invite-card-width) !important;
        max-width: none !important;
        margin: 0 auto !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
        border-left: 1.5px solid var(--color-gold-mid);
        border-right: 1.5px solid var(--color-gold-mid);
        background-color: var(--color-bg-base);
    }

    /* Prevent long lines from spilling outside their designed boxes on desktop. */
    .arch-content-box,
    .marquee-board,
    .polo-board-container,
    .glitz-board-container,
    .mela-board-container,
    .wedding-board-container,
    .countdown-card-container {
        overflow-wrap: break-word;
    }
}

/* =====================================================
   UNIVERSAL ASPECT-RATIO LOCK FOR TEXT-OVER-IMAGE SECTIONS
   =====================================================
   Background images are designed in 9:16 portrait ratio.
   Text is positioned using % coordinates inside .mobile-aspect-wrapper.
   Both the bg image and text containers are now children of this wrapper,
   so they ALWAYS share the same coordinate system at every screen size.
   ===================================================== */

.mobile-aspect-wrapper {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    flex-shrink: 0;
}

/* Screen is narrower/taller than 9:16 (standard mobile screens) */
@media screen and (max-aspect-ratio: 9/16) {
    .mobile-aspect-wrapper {
        height: 100vh;
        width: calc(100vh * 9 / 16);
    }
}

/* Screen is wider/shorter than 9:16 (wider mobile screens, tablets, desktop) */
@media screen and (min-aspect-ratio: 9/16) {
    .mobile-aspect-wrapper {
        width: 100%;
        height: 100%;
        min-height: 100svh;
    }
}

/* invitation-bg-cover inside wrapper: fill the locked frame completely */
.mobile-aspect-wrapper>.invitation-bg-cover {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center top !important;
    min-height: unset !important;
}

/* Remove the old scroll-section rule that's now redundant */
.scroll-section .invitation-bg-cover,
.scroll-section .palace-bg-cover {
    /* Only apply when NOT inside mobile-aspect-wrapper (e.g. section 2) */
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
}

/* ✨ PREMIUM GOLD SHIMMER SHEEN */
.shimmer-container {
    position: relative !important;
    overflow: hidden !important;
}

.shimmer-sheen {
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 215, 0, 0.35) 50%,
            rgba(255, 255, 255, 0.55) 60%,
            rgba(255, 215, 0, 0.35) 70%,
            rgba(255, 255, 255, 0) 100%) !important;
    transform: skewX(-25deg) !important;
    display: none !important;
    pointer-events: none !important;
    z-index: 5 !important;
    animation: none !important;
}

@keyframes goldSweep {
    0% {
        left: -150%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* ✦ DEDICATED HIGH-DENSITY CANVAS GLITZ GALA STARBURST OVERLAY */
.glitz-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    /* Layer over visual cards, but pointer-events: none lets scrolls and clicks pass through! */
}

/* 🖋️ RESPONSIVE PADDING & LINE-HEIGHT OVERRIDES TO PREVENT CURSIVE TEXT CLIPPING AT THE TOP */
.polo-board-container,
.glitz-board-container,
.mela-board-container,
.wedding-board-container {
    padding-top: 1.8vh !important;
}

.polo-event-cursive,
.glitz-event-cursive,
.mela-event-cursive,
.wedding-event-cursive {
    line-height: 1.28 !important;
    padding-top: 4px !important;
}

@media screen and (max-width: 480px) {

    .polo-board-container,
    .glitz-board-container,
    .mela-board-container,
    .wedding-board-container {
        padding-top: 1.4vh !important;
    }
}

/* =====================================================
   MIGRATED SYSTEM OVERRIDES & SECTION 8 (COUNTDOWN) STYLES
   ===================================================== */

/* Welcome section peacock (small, bottom-centered) */
#welcome .peacock-duo,
#welcome .peacock-duo.welcome-peacock {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%) scale(0.75);
    z-index: 6;
    pointer-events: none;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

#welcome .peacock {
    width: 120px;
    height: auto;
    display: block;
    transform-origin: center bottom;
    opacity: 0;
    visibility: hidden;
}

@media screen and (max-width: 480px) {
    #welcome .peacock-duo.welcome-peacock {
        transform: translateX(-50%) scale(0.6);
        bottom: 3vh;
    }

    #welcome .peacock {
        width: 80px;
    }
}

/* SECTION 8 (WEDDING COUNTDOWN & FAMILY WISHES) */
.countdown-card-container {
    position: absolute;
    left: 50%;
    top: 5vh;
    transform: translateX(-50%);
    width: 90%;
    max-width: 440px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    z-index: 5;
    pointer-events: auto;
    padding: 2vh 0;
}

.countdown-header-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.countdown-joy-cursive {
    font-family: var(--font-cursive);
    font-size: 2.10rem;
    font-weight: 400;
    color: var(--color-bg-dark);
    margin-bottom: 1.2vh;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.countdown-family-names {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold-dark);
    letter-spacing: 1.5px;
    line-height: 1.6;
    margin-bottom: 1.2vh;
}

.countdown-and-entire {
    font-family: var(--font-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    letter-spacing: 2px;
    margin-bottom: 0.4vh;
}

.countdown-family-cursive {
    font-family: var(--font-cursive);
    font-size: 2.30rem;
    font-weight: 400;
    color: var(--color-bg-dark);
    line-height: 1.1;
}

.countdown-title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.countdown-title-cursive {
    font-family: var(--font-cursive);
    font-size: 2.40rem;
    font-weight: 400;
    color: var(--color-bg-dark);
    line-height: 1.1;
    margin-top: 1.5vh;
    margin-bottom: 1.5vh;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 1vh;
    margin-bottom: 2vh;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
}

.countdown-interactive-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.76);
    border: 2px solid rgba(212, 175, 55, 0.55);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    overflow: hidden;
}

.countdown-heart-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62%;
    height: 62%;
    transform: translate(-50%, -50%);
    fill: #ff8da1;
    opacity: 0.32;
    filter: none;
    pointer-events: none;
    z-index: 0;
}

.countdown-number {
    font-family: var(--font-secondary);
    font-size: 1.70rem;
    font-weight: 700;
    color: #8c1d31;
    user-select: none;
    z-index: 1;
    position: relative;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.countdown-interactive-wrapper.glowing-active {
    border-color: rgba(212, 175, 55, 0.8);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.32), 0 10px 22px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.5s ease;
}

.countdown-interactive-wrapper.glowing-active .countdown-number {
    color: #8c1d31;
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.35);
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 2;
    touch-action: none;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    letter-spacing: 1px;
}

.countdown-footer-box {
    margin-top: 1.5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.countdown-with-love {
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    letter-spacing: 2px;
    margin-bottom: 0.5vh;
}

.countdown-couple-cursive {
    font-family: var(--font-cursive);
    font-size: 2.20rem;
    font-weight: 400;
    color: var(--color-bg-dark);
    line-height: 1.1;
}

/* SECTION 8 MOBILE ADJUSTMENTS */
@media screen and (max-width: 480px) {
    .countdown-card-container {
        top: 4vh;
        height: 92vh;
        padding: 1.5vh 0;
    }

    .countdown-joy-cursive {
        font-size: 2.5rem;
        margin-bottom: 1.5vh;
    }

    .countdown-family-names {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 2vh;
    }

    .countdown-and-entire {
        font-size: 1rem;
        margin-top: 3vh;
        margin-bottom: 2vh;
    }

    .countdown-family-cursive {
        font-size: 2.5rem;
    }

    .countdown-title-cursive {
        font-size: 2.5rem;
        margin-top: 1.0vh;
        margin-bottom: 1.0vh;
    }

    .countdown-grid {
        gap: 8px;
        margin-top: 0.5vh;
        margin-bottom: 1.5vh;
    }

    .countdown-block {
        width: 62px;
    }

    .countdown-interactive-wrapper {
        width: 58px;
        height: 58px;
        margin-bottom: 5px;
    }

    .countdown-number {
        font-size: 1.35rem;
    }

    .countdown-label {
        font-size: 0.46rem;
    }

    .countdown-with-love {
        font-size: 1rem;
        margin-bottom: 2vh;
    }

    .countdown-couple-cursive {
        font-size: 2.5rem;
    }
}

/* Aspect-ratio lock layout wrapper to keep text perfectly aligned to background graphics. */
.mobile-aspect-wrapper > * {
    pointer-events: auto;
}

/* Responsive scaling wrappers for inner board contents */
.broadway-inner-scale,
.polo-inner-scale,
.glitz-inner-scale,
.mela-inner-scale,
.wedding-inner-scale {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transform-origin: top center;
}

@media screen and (max-width: 440px) {
    .broadway-inner-scale,
    .polo-inner-scale,
    .glitz-inner-scale,
    .mela-inner-scale,
    .wedding-inner-scale {
        transform: scale(0.95);
    }
}

@media screen and (max-width: 400px) {
    .broadway-inner-scale,
    .polo-inner-scale,
    .glitz-inner-scale,
    .mela-inner-scale,
    .wedding-inner-scale {
        transform: scale(0.90);
    }
}

@media screen and (max-width: 370px) {
    .broadway-inner-scale,
    .polo-inner-scale,
    .glitz-inner-scale,
    .mela-inner-scale,
    .wedding-inner-scale {
        transform: scale(0.84);
    }
}

@media screen and (max-width: 340px) {
    .broadway-inner-scale,
    .polo-inner-scale,
    .glitz-inner-scale,
    .mela-inner-scale,
    .wedding-inner-scale {
        transform: scale(0.76);
    }
}

/* =====================================================
   DESKTOP/LAPTOP SCALING & LAYOUT SYSTEM (Screens > 768px)
   ===================================================== */
@media screen and (min-width: 769px) {
    :root {
        --invite-card-width: min(92vw, calc(100vh * 1920 / 3413));
    }

    html {
        /* Set root font size to scale fluidly with viewport height so all text adapts to screen height */
        font-size: clamp(11px, calc(100vh / 67.5), 24px) !important;
        /* Rich Royal Velvet Maroon background gradient for the side spaces */
        background: radial-gradient(circle at center, #5a0c1a 0%, #1a0105 100%) !important;
        background-color: #1a0105 !important;
    }

    body {
        /* Matching background */
        background: radial-gradient(circle at center, #5a0c1a 0%, #1a0105 100%) !important;
        background-color: #1a0105 !important;
    }

    /* Soft royal golden light overlay on desktop side spaces */
    .royal-bg-pattern {
        background-image:
            radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
            radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
            radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%) !important;
    }

    /* Enhancing the golden dots overlay to look premium on the maroon velvet */
    body::before {
        opacity: 0.12 !important;
    }

    .gate-container {
        width: var(--invite-card-width) !important;
        max-width: none !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
        border-left: 1.5px solid var(--color-gold-mid);
        border-right: 1.5px solid var(--color-gold-mid);
    }

    .main-invite {
        width: var(--invite-card-width) !important;
        max-width: none !important;
        margin: 0 auto !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
        border-left: 1.5px solid var(--color-gold-mid);
        border-right: 1.5px solid var(--color-gold-mid);
        background-color: var(--color-bg-base);
    }

    /* Scaling the scratch card in rem so it scales with viewport height */
    .scratch-card-header-wrapper {
        width: 20.625rem !important;
        height: 5.625rem !important;
        max-width: none !important;
        margin-top: 10vh !important;
    }

    /* Remove rigid pixel max-widths to allow percentage-based scaling elements to align perfectly with illustrated templates */
    .broadway-marquee-container {
        max-width: none !important;
        width: 100% !important;
    }

    .invitation-card-container {
        max-width: none !important;
        width: 100% !important;
    }

    .arch-content-box {
        max-width: none !important;
        width: 66.6% !important;
    }

    .countdown-card-container {
        max-width: none !important;
        width: 90% !important;
    }

    /* Scale countdown blocks and interactive wrappers */
    .countdown-block {
        width: 4.6875rem !important;
    }

    .countdown-interactive-wrapper {
        width: 4.375rem !important;
        height: 4.375rem !important;
    }

    /* Prevent long lines from spilling outside their designed boxes on desktop. */
    .arch-content-box,
    .marquee-board,
    .polo-board-container,
    .glitz-board-container,
    .mela-board-container,
    .wedding-board-container,
    .countdown-card-container {
        overflow-wrap: break-word;
    }
}

/* Tighter invitation copy so the anniversary lines stay inside the arch. */
#invitation .ganesh-icon-img {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
}

#invitation .ganesh-header {
    margin-bottom: 0.6vh;
}

/* Text sits in the full red arch, from the opening down to just above the flowers. */
#invitation .arch-content-box.invitation-arch-panel {
    position: absolute;
    top: 31.5%;
    left: 50%;
    width: 36%;
    max-width: 168px;
    height: 33%;
    max-height: none;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1% 2% 0;
    margin: 0;
    box-sizing: border-box;
    transform: translateX(-50%);
    overflow: hidden;
    gap: 0.35rem;
}

#invitation .request-text.invitation-request-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 0.25rem;
    width: 100%;
    margin: 0;
    text-align: center;
    flex: 1;
    min-height: 0;
}

#invitation .request-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    width: 100%;
}

#invitation .request-line {
    display: block;
    font-family: var(--font-body);
    font-size: 0.34rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
}

#invitation .request-line:empty {
    display: none;
}

#invitation .invitation-couple-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0;
    flex-shrink: 0;
    gap: 0;
}

#invitation .ganesh-text span {
    font-size: 0.58rem;
    font-weight: 700;
    color: #7a1528;
    letter-spacing: 1.2px;
    text-shadow: none;
}

#invitation .couple-name {
    font-size: 1.55rem;
    margin: 0;
    line-height: 0.95;
    color: #f0e2b8;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

#invitation .groom-name {
    margin-top: 0;
}

#invitation .parentage-text {
    margin-bottom: 0.2vh;
    letter-spacing: 1.4px;
}

#invitation .parentage-text:empty {
    display: none;
}

#invitation .with-text {
    margin: 0;
    font-size: 0.5rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    text-shadow: none;
}

@media screen and (max-width: 767px) {
    #invitation .arch-content-box.invitation-arch-panel {
        top: 31.5%;
        width: 36%;
        max-width: none;
        height: 33%;
    }

    #invitation .request-line {
        font-size: 1.4vw;
    }

    #invitation .couple-name {
        font-size: 5.4vw;
    }
}

/* Golden Jubilee details slide (copy of invitation arch layout) */
#celebration .celebration-ganesh-header {
    position: relative;
    z-index: 6;
    margin-bottom: 0.4vh;
    padding-top: 1vh;
}

#celebration .celebration-ganesh-header .ganesh-icon-img {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
}

#celebration .celebration-ganesh-text span {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.58rem;
    font-weight: 700;
    color: #7a1528;
    letter-spacing: 1.2px;
    text-shadow: none;
}

#celebration .celebration-arch-content {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 68%;
    flex-grow: 0;
    justify-content: flex-start;
    gap: 0.2rem;
    margin-bottom: 0;
    transform: translateX(-50%);
}

#celebration .celebration-intro-line,
#celebration .celebration-anniversary-line {
    font-family: var(--font-body);
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #ffffff;
    text-shadow: none;
    margin: 0;
    text-transform: uppercase;
}

#celebration .celebration-headline {
    font-family: var(--font-cursive);
    font-size: 1.65rem;
    font-weight: 400;
    color: #f0e2b8;
    text-shadow: none;
    margin: 0.1rem 0 0;
    line-height: 1.05;
    -webkit-font-smoothing: antialiased;
}

#celebration .celebration-milestone {
    font-family: var(--font-secondary);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: none;
    margin: 0.05rem 0;
}

#celebration .celebration-jubilee-title {
    font-family: var(--font-cursive);
    font-size: 1.55rem;
    color: #f0e2b8;
    text-shadow: none;
    margin: 0.15rem 0 0.1rem;
    line-height: 1.05;
    -webkit-font-smoothing: antialiased;
}

#celebration .celebration-couple-names {
    font-family: var(--font-cursive);
    font-size: clamp(2rem, 8.2vw, 2.65rem);
    font-weight: 400;
    color: #f0e2b8;
    text-shadow: none;
    margin: 0.15rem 0 0.4rem;
    line-height: 1.08;
    max-width: 96%;
    -webkit-font-smoothing: antialiased;
}

#celebration .celebration-field-label {
    font-family: var(--font-body);
    font-size: 0.46rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #f0e2b8;
    text-shadow: none;
    margin: 0.28rem 0 0.08rem;
    text-transform: uppercase;
}

#celebration .celebration-date-val,
#celebration .celebration-venue-val {
    font-family: var(--font-secondary);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.55;
    color: #ffffff;
    text-shadow: none;
    margin: 0 0 0.12rem;
    text-transform: uppercase;
    max-width: 250px;
}

#celebration .celebration-map-link {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-family: var(--font-body);
    font-size: 0.46rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #5c1220;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: none;
    background: #f0e2b8;
    border: 1px solid #d4af37;
    border-radius: 2px;
    box-shadow: none;
}

#celebration .celebration-map-link:hover,
#celebration .celebration-map-link:focus-visible {
    background: #fff;
    color: var(--color-bg-dark);
}

@media screen and (max-width: 480px) {
    #celebration .celebration-arch-content {
        top: 35%;
        width: 72%;
    }

    #celebration .celebration-headline {
        font-size: 1.45rem;
    }

    #celebration .celebration-milestone {
        font-size: 1.15rem;
    }

    #celebration .celebration-jubilee-title {
        font-size: 1.35rem;
    }

    #celebration .celebration-couple-names {
        font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    }
}

.countdown-family-names {
    font-size: 0.68rem;
    letter-spacing: 0.4px;
}

.revealed-venue-val {
    letter-spacing: 0.6px;
    font-size: 0.72rem;
}

.broadway-event-cursive {
    font-size: 1.85rem;
}

/* Reception (#glitz) — compact text inside right purple arch */
#glitz .invitation-bg-cover {
    background-size: 100% 100% !important;
    background-position: center top !important;
}

#glitz .glitz-canvas {
    display: none !important;
}

#glitz .glitz-board-container {
    position: absolute !important;
    left: 70% !important;
    top: 67% !important;
    width: 30% !important;
    height: 27% !important;
    transform: translateX(-50%) !important;
    padding: 3% 7% 5% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 1010 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
}

#glitz .glitz-board-container .shimmer-sheen {
    display: none !important;
}

#glitz .glitz-inner-scale {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    transform: none !important;
    container-type: inline-size;
}

#glitz .glitz-title-box,
#glitz .glitz-date-box,
#glitz .glitz-event-box,
#glitz .glitz-venue-box {
    width: 100%;
    max-width: 100%;
    align-items: center;
    flex-shrink: 0;
}

#glitz .glitz-date-box {
    margin: 0 !important;
    line-height: 1 !important;
}

#glitz .glitz-event-box {
    margin: 0 !important;
    gap: 0 !important;
}

#glitz .glitz-venue-box {
    margin: 0 !important;
    max-width: 100%;
    padding-top: 0.15rem !important;
}

#glitz .glitz-event-cursive {
    font-size: clamp(12px, 9.5cqw, 18px) !important;
    line-height: 1.05 !important;
    margin: 0 !important;
    color: #ffd700 !important;
    opacity: 1 !important;
}

#glitz .glitz-day {
    font-size: clamp(16px, 12cqw, 24px) !important;
    line-height: 0.95 !important;
    margin: 0 !important;
    color: #ffd700 !important;
    opacity: 1 !important;
}

#glitz .glitz-month-year {
    font-size: clamp(7px, 5.5cqw, 9px) !important;
    line-height: 1.15 !important;
    margin: 1px 0 0 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

#glitz .glitz-event-name {
    font-size: clamp(7px, 5.5cqw, 9px) !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

#glitz .glitz-at {
    font-size: clamp(7px, 5cqw, 8px) !important;
    margin: 0.1rem 0 0.08rem !important;
    line-height: 1 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

#glitz .glitz-venue {
    font-size: clamp(6.5px, 5cqw, 8.5px) !important;
    line-height: 1.25 !important;
    letter-spacing: 0.1px !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

@media screen and (max-width: 480px) {
    #glitz .glitz-board-container {
        left: 69.5% !important;
        top: 66.5% !important;
        width: 31% !important;
        height: 27.5% !important;
    }
}

/* Countdown — full viewport like Reception (prevents gap / scroll glitch between last slides) */
#countdown-section.full-screen-section,
#countdown-section.scroll-section {
    height: 100svh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
}

#countdown-section .mobile-aspect-wrapper {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    min-height: 100svh;
    margin: 0;
    aspect-ratio: auto;
}

#countdown-section .invitation-bg-cover {
    min-height: 100%;
    background-size: 100% 100%;
    background-position: center top;
}

#glitz + #countdown-section {
    margin-top: 0 !important;
}

/* Last slide: static layout — no shimmer sweep or GSAP transforms */
#countdown-section .shimmer-sheen {
    display: none !important;
    animation: none !important;
}

#countdown-section .countdown-card-container,
#countdown-section .countdown-card-container * {
    opacity: 1 !important;
    visibility: visible !important;
}

#countdown-section .countdown-interactive-wrapper.glowing-active {
    transition: none !important;
}

#countdown-section .countdown-card-container {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: clamp(0.45rem, 2dvh, 0.85rem) !important;
    padding: 2% 4% !important;
    box-sizing: border-box !important;
    z-index: 5 !important;
}

#countdown-section .countdown-header-box,
#countdown-section .countdown-middle-box,
#countdown-section .countdown-title-box,
#countdown-section .countdown-footer-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: min(96vw, 420px) !important;
    margin: 0 auto !important;
    gap: 0.35em !important;
}

#countdown-section .countdown-middle-box {
    gap: 0.45em !important;
}

#countdown-section .countdown-footer-box {
    margin-top: 0.15em !important;
    gap: 0.4em !important;
}

#countdown-section .countdown-joy-cursive {
    font-family: var(--font-cursive) !important;
    font-size: clamp(1.75rem, 6.8vw, 2.35rem) !important;
    font-weight: 400 !important;
    color: var(--color-bg-dark) !important;
    line-height: 1.15 !important;
    margin: 0 0 0.35em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

#countdown-section .countdown-family-names {
    font-family: var(--font-secondary) !important;
    font-size: clamp(0.62rem, 2.85vw, 0.82rem) !important;
    font-weight: 600 !important;
    color: var(--color-gold-dark) !important;
    letter-spacing: clamp(0.4px, 0.28vw, 1.2px) !important;
    line-height: 1.9 !important;
    margin: 0.15em 0 0.4em !important;
    width: 100% !important;
}

#countdown-section .countdown-and-entire {
    font-family: var(--font-secondary) !important;
    font-size: clamp(0.58rem, 2.4vw, 0.72rem) !important;
    font-weight: 700 !important;
    color: var(--color-gold-dark) !important;
    letter-spacing: 0.12em !important;
    margin: 0 0 0.15em !important;
}

#countdown-section .countdown-family-cursive {
    font-family: var(--font-cursive) !important;
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    color: var(--color-bg-dark) !important;
    line-height: 1.05 !important;
    margin: 0 0 0.15em !important;
}

#countdown-section .countdown-title-cursive {
    font-family: var(--font-cursive) !important;
    font-size: clamp(1.65rem, 6.2vw, 2.15rem) !important;
    font-weight: 400 !important;
    color: var(--color-bg-dark) !important;
    line-height: 1.15 !important;
    margin: 0.2em 0 0.45em !important;
}

#countdown-section .countdown-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: clamp(6px, 2.8vw, 14px) !important;
    width: 100% !important;
    max-width: min(96vw, 400px) !important;
    margin: 0 auto !important;
}

#countdown-section .countdown-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
}

#countdown-section .countdown-interactive-wrapper {
    position: relative !important;
    width: clamp(54px, 17vw, 72px) !important;
    height: clamp(54px, 17vw, 72px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border: 2px solid rgba(212, 175, 55, 0.6) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.25rem !important;
    overflow: hidden !important;
}

#countdown-section .countdown-heart-icon {
    width: 62% !important;
    height: 62% !important;
    fill: #ff8da1 !important;
    opacity: 0.35 !important;
}

#countdown-section .countdown-number {
    font-family: var(--font-secondary) !important;
    font-size: clamp(1.05rem, 4.6vw, 1.45rem) !important;
    font-weight: 700 !important;
    color: #8c1d31 !important;
    line-height: 1 !important;
}

#countdown-section .countdown-label {
    font-family: var(--font-body) !important;
    font-size: clamp(0.48rem, 2.1vw, 0.62rem) !important;
    font-weight: 700 !important;
    color: var(--color-gold-dark) !important;
    letter-spacing: 0.08em !important;
}

#countdown-section .countdown-with-love {
    font-family: var(--font-secondary) !important;
    font-size: clamp(0.58rem, 2.35vw, 0.74rem) !important;
    font-weight: 700 !important;
    color: var(--color-gold-dark) !important;
    letter-spacing: 0.14em !important;
    margin: 0 0 0.1em !important;
}

#countdown-section .countdown-couple-cursive {
    font-family: var(--font-cursive) !important;
    font-size: clamp(1.55rem, 5.8vw, 2.05rem) !important;
    font-weight: 400 !important;
    color: var(--color-bg-dark) !important;
    line-height: 1.05 !important;
    margin: 0 !important;
}

#countdown-section .countdown-interactive-wrapper.glowing-active {
    border-color: rgba(212, 175, 55, 0.85) !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

/* FIX: Keep every Glitz & Glam invitation line inside the purple floral arch.
   The mobile artwork uses a narrow arch, so the content is centered in that arch
   with a slightly wider, responsive text area and compact vertical spacing. */
#glitz .glitz-board-container {
    left: 50% !important;
    top: 59% !important;
    width: 46% !important;
    height: 36% !important;
    padding: 2.5% 4% 3% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#glitz .glitz-inner-scale {
    width: 100% !important;
    height: 100% !important;
    justify-content: space-evenly !important;
    gap: 0.15rem !important;
}

#glitz .glitz-title-box,
#glitz .glitz-date-box,
#glitz .glitz-event-box,
#glitz .glitz-venue-box {
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

#glitz .glitz-event-cursive {
    font-size: clamp(12px, 3.2vw, 19px) !important;
    overflow-wrap: anywhere !important;
}

#glitz .glitz-day {
    font-size: clamp(16px, 4.1vw, 24px) !important;
}

#glitz .glitz-month-year,
#glitz .glitz-event-name,
#glitz .glitz-at,
#glitz .glitz-venue {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    max-width: 100% !important;
}

#glitz .glitz-venue {
    font-size: clamp(6.5px, 1.8vw, 9px) !important;
    line-height: 1.18 !important;
}

@media screen and (max-width: 480px) {
    #glitz .glitz-board-container {
        left: 50% !important;
        top: 58% !important;
        width: 52% !important;
        height: 38% !important;
        padding: 2.5% 5% 3% !important;
    }

    #glitz .glitz-inner-scale {
        gap: 0.1rem !important;
    }

    #glitz .glitz-event-cursive {
        font-size: clamp(12px, 4vw, 17px) !important;
    }

    #glitz .glitz-day {
        font-size: clamp(16px, 5.2vw, 22px) !important;
    }

    #glitz .glitz-month-year,
    #glitz .glitz-event-name {
        font-size: clamp(7px, 2.4vw, 9px) !important;
    }

    #glitz .glitz-at {
        font-size: clamp(7px, 2.2vw, 8px) !important;
    }

    #glitz .glitz-venue {
        font-size: clamp(6.5px, 2.05vw, 8.5px) !important;
    }
}

