:root {
    --bg-main: #07030b;
    --bg-secondary: #12051f;
    --ink-strong: #f7efe4;
    --ink-soft: rgba(247, 239, 228, 0.76);
    --gold-1: #f7de9b;
    --gold-2: #c79a44;
    --line: rgba(255, 255, 255, 0.14);
    --line-gold: rgba(247, 210, 125, 0.5);
    --glass: rgba(20, 10, 34, 0.62);
    --glass-strong: rgba(16, 7, 28, 0.85);
    --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink-strong);
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 190, 110, 0.14), transparent 20%),
        radial-gradient(circle at 88% 22%, rgba(201, 136, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #050209 0%, #12051f 45%, #05020a 100%);
    overflow-x: hidden;
}

body.no-scroll {
    height: 100vh;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    background-image:
        radial-gradient(circle at 18% 16%, rgba(255, 220, 145, 0.14), transparent 18%),
        radial-gradient(circle at 75% 65%, rgba(197, 131, 255, 0.1), transparent 22%);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.04em;
}

p {
    color: var(--ink-soft);
}

.main-content {
    opacity: 0;
    position: relative;
    z-index: 1;
    transition: opacity 0.8s ease;
}

.main-content.is-live {
    opacity: 1;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top, rgba(248, 219, 154, 0.09), transparent 22%);
}

.section::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    width: min(280px, 50vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent 0%, var(--line-gold) 50%, transparent 100%);
    opacity: 0.4;
}

.section .container {
    position: relative;
    z-index: 1;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(246, 218, 151, 0.9);
}

h2 {
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    margin-bottom: 0.9rem;
    color: var(--ink-strong);
}

h2::after {
    content: '';
    display: block;
    width: 5rem;
    height: 2px;
    margin-top: 0.75rem;
    background: linear-gradient(90deg, rgba(247, 210, 125, 0.95), rgba(255, 255, 255, 0.3));
}

.text-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

.btn-gold,
.btn-gold:hover,
.btn-gold:focus {
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
    color: #1c0d12;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 16px 38px rgba(199, 154, 68, 0.35);
}

.btn-outline-light,
.btn-outline-light:hover,
.btn-outline-light:focus {
    border-radius: 999px;
    color: var(--ink-strong);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-gold:hover,
.btn-outline-light:hover {
    transform: translateY(-2px);
}

.lux-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(7, 3, 11, 0.62);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.lux-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease;
}

.lux-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 214, 138, 0.12), transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(205, 135, 255, 0.1), transparent 20%),
        linear-gradient(135deg, rgba(7, 2, 11, 0.96), rgba(20, 6, 32, 0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.preloader-content {
    width: min(460px, 100%);
    padding: 2.1rem;
    border-radius: 2rem;
    border: 1px solid var(--line);
    background: var(--glass-strong);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-xl);
}

.preloader-frame {
    padding: 0.55rem;
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 228, 168, 0.82), rgba(135, 83, 31, 0.78));
    box-shadow: var(--shadow-xl);
}

.preloader-card {
    position: relative;
    min-height: 320px;
    border-radius: 1.6rem;
    background: url('../images/inicio.png') center center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.4);
}

.preloader-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
}

.guest-welcome-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--ink-strong);
}

.guest-welcome-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.preloader .btn {
    min-width: 240px;
    padding: 0.9rem 1.35rem;
}

.intro-envelope {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 38%, rgba(199, 154, 68, 0.1), rgba(5, 2, 10, 0.96) 58%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-envelope.is-active {
    opacity: 1;
    visibility: visible;
}

.intro-envelope-stage {
    position: relative;
    width: min(78vw, 420px);
    aspect-ratio: 1.35;
    display: grid;
    place-items: center;
}

.intro-envelope.is-entering .intro-envelope-stage {
    animation: stageEnterZoom 1.35s cubic-bezier(0.22, 0.7, 0, 1) forwards;
}

.intro-envelope-rain {
    position: absolute;
    inset: -42% -48% -42%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.envelope-shell {
    position: relative;
    width: 100%;
    max-width: 370px;
    height: 245px;
    transform: translateY(-120vh);
    animation: envelopeDrop 2.1s cubic-bezier(0.16, 0.78, 0.24, 1) forwards;
    z-index: 5;
}

.envelope-back {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(165deg, #111217 0%, #1c1c24 52%, #0f1016 100%);
    border: 1px solid rgba(247, 210, 125, 0.55);
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(255, 220, 145, 0.08);
}

.envelope-letter {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 14%;
    height: 64%;
    border-radius: 0.7rem;
    background: linear-gradient(180deg, #f9ecd0 0%, #ecd2a0 100%);
    box-shadow: inset 0 0 0 1px rgba(122, 86, 37, 0.25);
    transform-origin: bottom center;
    transform: translateY(0) scaleY(1);
}

.envelope-flap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 58%;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: linear-gradient(170deg, #1b1c24 0%, #0f1118 100%);
    border-top: 1px solid rgba(247, 210, 125, 0.65);
    transform-origin: top center;
    transform: rotateX(0deg);
}

.envelope-seal {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f7e0a7 0%, #c79843 68%, #7b5720 100%);
    box-shadow: 0 0 0 3px rgba(12, 10, 14, 0.95), 0 10px 20px rgba(0, 0, 0, 0.45), 0 0 18px rgba(247, 210, 125, 0.45);
    opacity: 1;
}

.envelope-glow {
    position: absolute;
    width: 48%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 228, 163, 0.7) 0%, rgba(255, 214, 129, 0.28) 42%, transparent 72%);
    filter: blur(2px);
    opacity: 0;
    transform: scale(0.55);
    z-index: 3;
}

.intro-envelope.is-opening .envelope-flap {
    animation: flapOpen 2.45s cubic-bezier(0.31, 0.95, 0.66, 1) forwards;
}

.intro-envelope.is-opening .envelope-letter {
    animation: letterLift 2.7s cubic-bezier(0.3, 0.86, 0.32, 1) forwards;
}

.intro-envelope.is-opening .envelope-seal {
    animation: sealFade 1.15s ease forwards;
}

.intro-envelope.is-opening .envelope-glow {
    animation: glowPulse 2.2s ease forwards;
}

.intro-envelope-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.rain-envelope {
    position: absolute;
    width: var(--re-w, 24px);
    height: calc(var(--re-w, 24px) * 0.72);
    left: var(--re-left, 50%);
    top: -14%;
    border-radius: 4px;
    border: 1px solid rgba(250, 227, 166, 0.78);
    background: linear-gradient(155deg, rgba(50, 46, 62, 0.98), rgba(20, 17, 28, 0.98));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 18px rgba(246, 210, 129, 0.28);
    opacity: 0;
    transform: rotate(var(--re-rot, 0deg));
    animation: rainEnvelopeFall var(--re-dur, 2200ms) linear infinite;
    animation-delay: var(--re-delay, 0ms);
}

.rain-envelope::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 60%;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: rgba(252, 228, 164, 0.34);
}

.intro-envelope-particle {
    position: absolute;
    left: 50%;
    top: 56%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 187, 0.95) 0%, rgba(247, 210, 125, 0.65) 68%, transparent 100%);
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: particleFloat var(--particle-duration, 900ms) ease-out forwards;
    animation-delay: var(--particle-delay, 0ms);
}

.intro-light-spark {
    position: absolute;
    left: 50%;
    top: 52%;
    width: var(--spark-size, 10px);
    height: var(--spark-size, 10px);
    pointer-events: none;
    opacity: 0;
    z-index: 7;
    background:
        linear-gradient(90deg, transparent 43%, rgba(255, 236, 180, 0.95) 50%, transparent 57%),
        linear-gradient(0deg, transparent 43%, rgba(255, 236, 180, 0.95) 50%, transparent 57%);
    transform: translate(-50%, -50%) rotate(var(--spark-rot, 0deg));
    filter: drop-shadow(0 0 8px rgba(255, 223, 145, 0.72));
    animation: sparkleBurst var(--spark-dur, 1100ms) ease-out forwards;
    animation-delay: var(--spark-delay, 0ms);
}

.intro-envelope.is-leaving {
    animation: introFadeOut 0.9s ease forwards;
}

@keyframes envelopeDrop {
    0% {
        transform: translateY(-120vh) scale(0.96);
    }
    72% {
        transform: translateY(10px) scale(1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes flapOpen {
    0% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(-172deg);
    }
}

@keyframes letterLift {
    0% {
        transform: translateY(0) scaleY(1);
    }
    100% {
        transform: translateY(-24px) scaleY(1.01);
    }
}

@keyframes sealFade {
    to {
        opacity: 0;
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        transform: scale(0.55);
    }
    55% {
        opacity: 1;
        transform: scale(1.04);
    }
    100% {
        opacity: 0.2;
        transform: scale(1.2);
    }
}

@keyframes introFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes stageEnterZoom {
    0% {
        transform: scale(1);
        filter: blur(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.48);
        filter: blur(2px);
        opacity: 0;
    }
}

@keyframes rainEnvelopeFall {
    0% {
        transform: translateY(0) rotate(var(--re-rot, 0deg));
        opacity: 0;
    }
    12% {
        opacity: 0.82;
    }
    85% {
        opacity: 0.56;
    }
    100% {
        transform: translateY(125vh) rotate(calc(var(--re-rot, 0deg) + 16deg));
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    12% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -80px))) scale(0.15);
    }
}

@keyframes sparkleBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--spark-rot, 0deg)) scale(0.25);
    }
    24% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--spark-x, 0px)), calc(-50% + var(--spark-y, -40px))) rotate(var(--spark-rot, 0deg)) scale(1.35);
    }
}

.welcome {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.welcome .overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(5, 2, 8, 0.32), rgba(5, 2, 8, 0.84)),
        radial-gradient(circle at 20% 12%, rgba(251, 217, 141, 0.15), transparent 24%);
}

.welcome .content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 4.25rem 2rem 5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-banner {
    position: relative;
    width: min(100%, 760px);
    margin: 0 auto 0;
    text-align: center;
    z-index: 2;
}

.hero-animated {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 4.2vw, 3.9rem);
    line-height: 1.02;
    color: #f6ebd3;
}

.hero-animated-accent {
    color: transparent;
    background: linear-gradient(90deg, #ffe5ae 0%, #ddb06d 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-protagonist {
    width: min(560px, 48vw);
    margin: 3rem auto 1.4rem;
    padding: 0.55rem;
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 228, 168, 0.82), rgba(135, 83, 31, 0.78));
    box-shadow: var(--shadow-xl);
}

.hero-protagonist img {
    width: 100%;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: block;
}

.welcome p.lead {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(247, 239, 228, 0.9);
}

.hero-cta-btn {
    font-size: 0.9rem;
    padding: 0.62rem 1.05rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.2rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.countdown-item {
    background: linear-gradient(180deg, rgba(24, 12, 39, 0.95), rgba(9, 5, 18, 0.92));
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    padding: 1.8rem 1rem;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.36);
}

.countdown-item h3 {
    font-size: clamp(2.6rem, 4.1vw, 3.7rem);
    margin: 0;
    color: #f6dfaa;
}

.countdown-item p {
    margin: 0.3rem 0 0;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.story-frame,
.card-detail,
.dress-card,
.gallery-card,
.wish-composer,
.rsvp-experience,
.qr-box {
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.story-copy p {
    line-height: 1.85;
}

.story-frame {
    overflow: hidden;
}

.story-video-card {
    border: 1px solid rgba(247, 210, 125, 0.35);
    border-radius: 1.5rem;
    background: linear-gradient(170deg, rgba(17, 9, 30, 0.94), rgba(8, 5, 16, 0.95));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    padding: 0.7rem;
}

.story-media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1.1rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.story-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 3, 11, 0.32), rgba(7, 3, 11, 0.75));
    z-index: 1;
    transition: opacity 0.25s ease;
}

.story-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    border: 1px solid rgba(247, 210, 125, 0.75);
    border-radius: 999px;
    background: rgba(8, 4, 14, 0.75);
    color: #f7e7c2;
    padding: 0.55rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.story-video-play-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7de9b, #c79a44);
    color: #1c0d12;
    font-size: 0.78rem;
}

.story-video-play-text {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.story-video-play:hover {
    transform: translate(-50%, -50%) scale(1.03);
}

.story-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    position: relative;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-media.is-playing::before,
.story-media.is-playing .story-video-play {
    opacity: 0;
    pointer-events: none;
}

.story-media.is-playing iframe {
    opacity: 1;
    z-index: 2;
}

.card-detail {
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.card-detail:hover,
.dress-card:hover {
    transform: translateY(-4px);
}

.card-detail .card-body {
    padding: 2rem 1.8rem;
}

.details .card-detail {
    position: relative;
    background:
        linear-gradient(165deg, rgba(27, 13, 45, 0.92), rgba(10, 6, 20, 0.92));
    border-color: rgba(247, 210, 125, 0.34);
}

.details .card-detail::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(247, 210, 125, 0.95), transparent);
}

.details .card-detail h3 {
    color: #f7e4b1;
}

.detail-value {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: #fff7e2;
}

.detail-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-gold);
    color: var(--gold-1);
    background: rgba(255, 255, 255, 0.05);
}

.detail-icon svg {
    width: 28px;
    height: 28px;
}

.card-detail h3 {
    margin: 0.85rem 0;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
}

.dress-card {
    overflow: hidden;
    height: 100%;
    position: relative;
    border: 1px solid rgba(247, 210, 125, 0.28);
    background: linear-gradient(175deg, rgba(20, 10, 35, 0.95), rgba(10, 6, 18, 0.95));
}

.dress-card::before {
    content: attr(data-type);
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    background: rgba(12, 7, 20, 0.64);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dresscode-head p {
    max-width: 620px;
    margin: 0.25rem auto 0;
}

.dress-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.dress-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 56%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.42));
}

.dress-chip {
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    z-index: 4;
    border: 1px solid rgba(247, 210, 125, 0.65);
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fef0cb;
    background: rgba(9, 5, 16, 0.72);
}

.dress-card .card-body {
    padding: 1.25rem 1.2rem 1.3rem;
    background: linear-gradient(180deg, rgba(11, 7, 18, 0.38), rgba(7, 4, 12, 0.96));
    position: relative;
    z-index: 3;
}

.dress-card .card-title {
    font-size: 2rem;
    margin-bottom: 0.45rem;
    color: #f8e4b5;
}

.dress-card .card-text {
    margin-bottom: 0.65rem;
}

.dress-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.36rem;
}

.dress-meta li {
    font-size: 0.84rem;
    color: rgba(247, 239, 228, 0.88);
    padding-left: 1rem;
    position: relative;
}

.dress-meta li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.48rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe0a0, #b78335);
}

.dresscode-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.dresscode-premium .container {
    max-width: 980px;
}

.dresscode-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(150deg, rgba(7, 3, 13, 0.52), rgba(7, 3, 13, 0.84)),
        radial-gradient(circle at 12% 8%, rgba(247, 212, 128, 0.2), transparent 30%);
}

.dresscode-shell {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(247, 210, 125, 0.45);
    border-radius: 1.8rem;
    background: rgba(10, 6, 18, 0.6);
    backdrop-filter: blur(7px);
    padding: 2.2rem 1.6rem;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.dresscode-shell h2 {
    margin-bottom: 0.3rem;
    letter-spacing: 0.14em;
}

.dresscode-subtitle {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    color: #f7e4b6;
}

.dresscode-description {
    max-width: 640px;
    margin: 0.95rem auto 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(247, 239, 228, 0.9);
}

.dresscode-divider {
    width: min(86%, 640px);
    height: 1px;
    margin: 1.35rem auto;
    background: linear-gradient(90deg, transparent, rgba(247, 210, 125, 0.95), transparent);
}

.dresscode-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

.dresscode-column {
    border: 1px solid rgba(247, 210, 125, 0.32);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.1rem 0.85rem;
}

.dresscode-icon {
    margin-bottom: 0.55rem;
    color: #f6dba0;
    font-size: 1.5rem;
}

.dresscode-column h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    letter-spacing: 0.09em;
    color: #fff6df;
}

.dresscode-column p {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    color: rgba(247, 239, 228, 0.9);
    letter-spacing: 0.02em;
}

.section.rsvp {
    background: radial-gradient(circle at 80% 16%, rgba(247, 215, 147, 0.09), transparent 22%);
}

.experience-notes {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.experience-note {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
}

.experience-note span {
    color: #f2d389;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 1.9rem;
}

.experience-note p {
    margin: 0;
    font-size: 0.9rem;
}

.rsvp-experience {
    padding: 1.3rem;
}

.rsvp-stage-head {
    margin-bottom: 1rem;
}

.stage-title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stage-subtitle {
    margin: 0.2rem 0 0;
    color: var(--ink-soft);
}

.field-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f3dca2;
}

.rsvp-name-input,
.rsvp-message-row textarea,
.wish-name,
.wish-text {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-strong);
    padding: 0.7rem 0.9rem;
    outline: none;
}

.rsvp-name-input:focus,
.rsvp-message-row textarea:focus,
.wish-name:focus,
.wish-text:focus {
    border-color: var(--line-gold);
    box-shadow: 0 0 0 3px rgba(247, 210, 125, 0.12);
}

.rsvp-choice-grid {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.rsvp-choice {
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-strong);
    padding: 0.75rem 0.9rem;
    transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.rsvp-choice strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.rsvp-choice span {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.rsvp-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(247, 210, 125, 0.54);
}

.rsvp-choice.is-active {
    background: linear-gradient(150deg, rgba(247, 210, 125, 0.2), rgba(255, 255, 255, 0.05));
    border-color: rgba(247, 210, 125, 0.86);
}

.companions-control {
    margin-top: 0.95rem;
}

.companions-shell {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
}

.companions-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink-strong);
    font-size: 1.1rem;
}

.companions-value {
    min-width: 1.6rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffe6ae;
}

.rsvp-message-row {
    margin-top: 0.95rem;
}

.experience-status {
    margin-top: 0.85rem;
    border-radius: 0.9rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
}

.status-ok {
    border: 1px solid rgba(107, 228, 168, 0.35);
    background: rgba(46, 176, 118, 0.16);
    color: #d6ffe8;
}

.status-error {
    border: 1px solid rgba(255, 130, 130, 0.38);
    background: rgba(180, 38, 57, 0.2);
    color: #ffe4e4;
}

.wish-composer {
    padding: 1.2rem;
}

.wish-top {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(190px, 1fr) auto;
    align-items: center;
}

.wish-moods {
    display: inline-flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wish-mood {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-soft);
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wish-mood.is-active {
    background: rgba(247, 210, 125, 0.22);
    border-color: rgba(247, 210, 125, 0.8);
    color: #fff;
}

.wish-text {
    margin-top: 0.9rem;
}

.wish-wall {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wish-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
}

.wish-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.wish-card strong {
    font-size: 1rem;
    color: #fff;
}

.wish-card span {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f6d99e;
}

.wish-card p {
    margin: 0;
    font-size: 0.9rem;
}

.gallery-card {
    min-height: 260px;
    background-size: cover;
    background-position: center;
}

.qr-box {
    width: 260px;
    margin: 0 auto;
    padding: 1.3rem;
    background: rgba(255, 255, 255, 0.93);
}

.qr-box img {
    display: block;
    width: 100%;
    border-radius: 1rem;
}

.audio-toggle-bar {
    position: fixed;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 10000;
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(9, 4, 16, 0.88);
    backdrop-filter: blur(9px);
}

.audio-toggle-label,
.audio-toggle-state {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
}

.audio-switch {
    position: relative;
    width: 46px;
    height: 24px;
}

.audio-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.audio-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.messages-book-page {
    background:
        radial-gradient(circle at 12% 16%, rgba(242, 205, 134, 0.14), transparent 24%),
        radial-gradient(circle at 84% 12%, rgba(182, 138, 255, 0.1), transparent 22%),
        linear-gradient(180deg, #09040f 0%, #160a22 48%, #08030d 100%);
}

.messages-book-page .messages {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.book-hero p {
    max-width: 640px;
    margin: 0.2rem auto 0;
}

.guestbook-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 250px) 16px minmax(0, 1fr);
    gap: 0;
    border-radius: 1.6rem;
    border: 1px solid rgba(247, 210, 125, 0.34);
    background: linear-gradient(160deg, rgba(18, 11, 30, 0.94), rgba(9, 5, 16, 0.96));
    box-shadow: 0 34px 84px rgba(0, 0, 0, 0.46);
    overflow: hidden;
}

.guestbook-cover {
    position: relative;
    min-height: 520px;
    padding: 2rem 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(247, 210, 125, 0.08), rgba(247, 210, 125, 0.02)),
        linear-gradient(170deg, rgba(16, 10, 28, 0.95), rgba(9, 5, 16, 0.96));
    border-right: 1px solid rgba(247, 210, 125, 0.2);
}

.cover-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 224, 150, 0.18), transparent 36%),
        radial-gradient(circle at 50% 78%, rgba(255, 224, 150, 0.1), transparent 32%);
}

.cover-kicker {
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.66rem;
    color: rgba(248, 222, 156, 0.85);
}

.cover-title {
    margin: 0.5rem 0 0;
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: #f7e8c1;
}

.cover-subtitle {
    margin: 0.25rem 0 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(247, 239, 228, 0.74);
}

.guestbook-spine {
    background:
        linear-gradient(180deg, rgba(247, 210, 125, 0.35), rgba(121, 86, 33, 0.45), rgba(247, 210, 125, 0.25));
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2), inset -1px 0 0 rgba(0, 0, 0, 0.35);
}

.guestbook-pages {
    position: relative;
    min-height: 520px;
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(247, 235, 208, 0.98), rgba(240, 222, 190, 0.98));
}

.guestbook-pages::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(90deg, rgba(90, 60, 23, 0.15), rgba(90, 60, 23, 0));
    pointer-events: none;
}

.guestbook-wall {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.guestbook-card {
    border: 1px solid rgba(116, 84, 38, 0.28);
    border-radius: 1rem;
    padding: 0.95rem;
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.95), rgba(248, 238, 217, 0.96));
    box-shadow: 0 12px 24px rgba(83, 58, 22, 0.14);
}

.guestbook-card header {
    border-bottom: 1px solid rgba(134, 98, 44, 0.2);
    padding-bottom: 0.45rem;
    margin-bottom: 0.55rem;
}

.guestbook-card strong {
    color: #2d1e11;
}

.guestbook-card span {
    color: #8a642c;
    font-weight: 700;
}

.guestbook-card p {
    color: #3d2b19;
    line-height: 1.65;
}

@media (max-width: 991.98px) {
    .guestbook-shell {
        grid-template-columns: 1fr;
    }

    .guestbook-cover {
        min-height: 210px;
        border-right: 0;
        border-bottom: 1px solid rgba(247, 210, 125, 0.2);
    }

    .guestbook-spine {
        height: 10px;
        width: 100%;
    }

    .guestbook-pages {
        min-height: auto;
    }
}

.audio-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.audio-switch input:checked + .audio-slider {
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
}

.audio-switch input:checked + .audio-slider::before {
    transform: translateX(22px);
}

.audio-play-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink-strong);
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
    font-size: 0.72rem;
}

.reveal-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@media (max-width: 1200px) {
    .hero-banner {
        width: min(100%, 700px);
    }
}

@media (max-width: 992px) {
    .lux-nav {
        display: flex;
        top: calc(0.6rem + env(safe-area-inset-top));
        left: 50%;
        bottom: auto;
        width: calc(100vw - 1rem);
        max-width: 560px;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.35rem;
    }

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

    .lux-nav a {
        flex: 0 0 auto;
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        padding: 0.42rem 0.62rem;
    }

    .welcome {
        align-items: flex-start;
    }

    .welcome .content {
        padding-top: calc(3.2rem + env(safe-area-inset-top));
        padding-bottom: 5rem;
    }

    .hero-banner {
        position: relative;
        width: min(92vw, 680px);
        margin: 0 auto 0.85rem;
        text-align: center;
    }

    .hero-protagonist {
        width: min(430px, 82vw);
        margin-top: 0.9rem;
    }

    .wish-top {
        grid-template-columns: 1fr;
    }

    .wish-moods {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .countdown-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.55rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    .countdown-item {
        padding: 0.75rem 0.35rem;
        border-radius: 1rem;
    }

    .countdown-item h3 {
        font-size: clamp(1.25rem, 6vw, 1.7rem);
        line-height: 1;
    }

    .countdown-item p {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }

    .preloader-content {
        padding: 1.4rem;
    }

    .preloader-card {
        min-height: 220px;
    }

    .envelope-shell {
        max-width: 300px;
        height: 205px;
    }

    .envelope-seal {
        width: 34px;
        height: 34px;
    }

    .story-video-card {
        padding: 0.5rem;
        border-radius: 1.1rem;
    }

    .story-media {
        border-radius: 0.9rem;
    }

    .story-video-play {
        padding: 0.45rem 0.75rem;
    }

    .story-video-play-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.68rem;
    }

    .story-video-play-text {
        font-size: 0.64rem;
    }

    .dresscode-premium {
        min-height: auto;
    }

    .dresscode-shell {
        padding: 1.5rem 0.9rem;
        border-radius: 1.25rem;
    }

    .dresscode-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .dresscode-column {
        padding: 0.9rem 0.55rem;
        border-radius: 0.9rem;
    }

    .dresscode-column h3 {
        font-size: 1.12rem;
    }

    .dresscode-column p {
        font-size: 0.77rem;
        line-height: 1.45;
    }

    .dresscode-description {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-top: 0.7rem;
    }

    .dresscode-divider {
        margin: 1rem auto;
    }

    .dress-card img {
        height: 220px;
    }

    .dress-card .card-body {
        padding: 1.05rem 0.95rem 1.1rem;
    }

    .dress-card .card-title {
        font-size: 1.7rem;
    }

    .dress-meta li {
        font-size: 0.79rem;
    }

    .dress-chip {
        font-size: 0.56rem;
        padding: 0.24rem 0.5rem;
    }

    .details .row {
        margin-left: 0;
        margin-right: 0;
        row-gap: 0.8rem !important;
    }

    .details .col-md-4 {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .details .card-detail .card-body {
        padding: 1.15rem 0.95rem;
    }

    .details .card-detail h3 {
        font-size: 1.52rem;
        margin: 0.55rem 0 0.35rem;
    }

    .detail-value {
        font-size: 1rem;
    }

    .details .btn {
        font-size: 0.68rem;
        padding: 0.38rem 0.72rem;
        letter-spacing: 0.06em;
    }

    .preloader .btn {
        width: 100%;
        min-width: auto;
    }

    .hero-protagonist {
        width: min(320px, 84vw);
        margin: 1.1rem auto 1rem;
    }

    .audio-toggle-bar {
        right: 0.6rem;
        bottom: 0.6rem;
    }
}

@media (max-width: 520px) {
    .countdown-grid {
        grid-template-columns: 1fr;
    }

    .hero-animated {
        font-size: clamp(1.45rem, 6.5vw, 2rem);
    }

    .hero-protagonist {
        width: min(260px, 82vw);
    }

    .rsvp-experience,
    .wish-composer {
        padding: 0.95rem;
    }
}
