/* =====================================================
   LYRA JANE 18TH DEBUT — VINTAGE MODERN INVITATION
   Color Palette: Ivory · Gold · Forest Green · Blush Pink
   ===================================================== */

:root {
    --gold:        #c8a87a;
    --gold-light:  #e8d0a8;
    --gold-dark:   #a07848;
    --green-dark:  #2e4a28;
    --green-mid:   #4e7040;
    --green-light: #8aaa7a;
    --pink-blush:  #f4a0b8;
    --pink-rose:   #e07888;
    --cream:       #faf7f0;
    --cream-dark:  #f0eadc;
    --parchment:   #ede0c8;
    --text-dark:   #2a2218;
    --text-mid:    #5a4e3a;
    --text-light:  #f8f4ed;

    --font-display: 'Cinzel Decorative', cursive;
    --font-script:  'Pinyon Script', cursive;
    --font-serif:   'Cormorant Garamond', serif;
    --font-sans:    'Montserrat', sans-serif;

    --section-pad: 7rem 2rem;
    --radius-card: 2px;
    --transition:  0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-serif);
    background-color: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; }

/* ===== SPARKLE CANVAS ===== */
#sparkleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== BUTTERFLY LAYER ===== */
.butterfly-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.butterfly {
    position: absolute;
    animation: butterflyFly linear infinite;
    font-size: 1.5rem;
    opacity: 0.75;
    filter: drop-shadow(0 2px 4px rgba(100,150,80,0.4));
}

@keyframes butterflyFly {
    0%   { transform: translateY(0px) rotate(0deg) scaleX(1); }
    25%  { transform: translateY(-30px) rotate(8deg) scaleX(-1); }
    50%  { transform: translateY(-10px) rotate(-5deg) scaleX(1); }
    75%  { transform: translateY(-40px) rotate(10deg) scaleX(-1); }
    100% { transform: translateY(0px) rotate(0deg) scaleX(1); }
}

/* ===== PETAL LAYER ===== */
.petal-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, #fffbe0 0%, #d4b898 50%, transparent 100%) !important;
    box-shadow: 0 0 10px 2px rgba(200, 168, 122, 0.4);
    animation: petalFall linear infinite;
    opacity: 0.8;
}

@keyframes petalFall {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.9; }
    50% { transform: translate(15px, 50vh) scale(1.2); opacity: 0.7; }
    90% { opacity: 0; }
    100% { transform: translate(-10px, 100vh) scale(0.8); opacity: 0; }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}

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

.reveal-up:nth-child(2) { transition-delay: 0.15s; }
.reveal-up:nth-child(3) { transition-delay: 0.3s; }

/* ===========================
   HERO SECTION
=========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('image/1.jpg') center center / cover no-repeat;
    padding: 2rem;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(20, 35, 15, 0.55) 0%,
        rgba(30, 50, 20, 0.4)  40%,
        rgba(10, 20, 5, 0.75)  100%
    );
    z-index: 1;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

/* Botanical corner ornaments */
.corner-ornament {
    position: absolute;
    z-index: 3;
    opacity: 0.85;
}
.corner-ornament.top-left    { top: 10px; left: 10px; }
.corner-ornament.top-right   { top: 10px; right: 10px; transform: scaleX(-1); }
.corner-ornament.bottom-left { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner-ornament.bottom-right{ bottom: 10px; right: 10px; transform: scale(-1); }

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 750px;
    padding: 3rem 2rem;
    border: 1px solid rgba(200,168,122,0.3);
    background: rgba(0,0,0,0.12);
    backdrop-filter: blur(2px);
    animation: heroEntrance 1.4s ease forwards;
}

@keyframes heroEntrance {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-badge {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-to {
    font-size: 1.4rem;
    font-style: italic;
    color: rgba(255,255,255,0.88);
    margin-bottom: 0.3rem;
}

.hero-name {
    font-family: var(--font-script);
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--gold-light);
    line-height: 1;
    text-shadow: 0 0 40px rgba(200,168,122,0.5), 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { text-shadow: 0 0 30px rgba(200,168,122,0.4), 0 2px 8px rgba(0,0,0,0.5); }
    50%       { text-shadow: 0 0 60px rgba(220,190,140,0.7), 0 2px 8px rgba(0,0,0,0.5); }
}

.hero-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.divider-ornament { margin: 1rem 0 1.5rem; display: flex; justify-content: center; }

.hero-date-place {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 2.5rem;
}
.hero-date-place .venue {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold-light);
    margin-top: 0.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-light);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 3px;
    border: 1px solid rgba(200,168,122,0.5);
    padding: 0.9rem 2.5rem;
    transition: all 0.4s ease;
    animation: pulse-border 2.5s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(200,168,122,0.4); }
    50%       { border-color: rgba(200,168,122,1); box-shadow: 0 0 20px rgba(200,168,122,0.3); }
}

.hero-cta:hover {
    background: rgba(200,168,122,0.15);
    transform: translateY(-2px);
}

/* ===========================
   SHARED SECTION STYLES
=========================== */
section { 
    padding: var(--section-pad);
    position: relative;
    overflow: hidden;
}

.section-badge {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    background: transparent;
    -webkit-text-fill-color: unset;
    text-decoration: none;
}

.section-title.light { color: var(--text-light); background: transparent; }

.section-desc {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-mid);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.9;
}

.section-desc.light { color: rgba(255,255,255,0.8); }

/* ===========================
   COUNTDOWN SECTION
=========================== */
.countdown-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, #1a3018 50%, var(--green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.section-bg-leaves {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(138,170,122,0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(138,170,122,0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(200,168,122,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.countdown-section .section-badge { color: var(--gold-light); }
.countdown-section .section-title { color: var(--gold-light); font-size: clamp(1.2rem, 3.5vw, 2rem); }

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.countdown-unit {
    text-align: center;
    min-width: 130px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(200,168,122,0.3);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Inner shimmer */
.countdown-unit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,168,122,0.08) 0%, transparent 60%);
}

.countdown-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--gold-light);
    line-height: 1;
    text-shadow: 0 0 30px rgba(200,168,122,0.5);
    letter-spacing: 4px;
    transition: transform 0.3s ease;
}

.countdown-num.flip {
    animation: flipNum 0.3s ease;
}

@keyframes flipNum {
    0%   { transform: rotateX(0deg); }
    50%  { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(232,208,168,0.7);
    margin-top: 1rem;
    text-transform: uppercase;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold-light);
    opacity: 0.5;
    animation: blink 1s step-end infinite;
    padding-bottom: 1.5rem;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 0.1; }
}

/* ===========================
   LETTER SECTION
=========================== */
.letter-section {
    background-color: var(--cream-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(244,160,184,0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 50%, rgba(138,170,122,0.08) 0%, transparent 40%);
    display: flex;
    justify-content: center;
}

.letter-card {
    max-width: 700px;
    width: 100%;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    box-shadow:
        0 0 0 6px rgba(200,168,122,0.06),
        0 30px 80px rgba(0,0,0,0.08);
    padding: 1rem;
    position: relative;
}

.letter-rose {
    position: absolute;
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(220,100,120,0.3));
    animation: roseFloat 3s ease-in-out infinite;
}

.letter-rose.left-rose  { top: -1.5rem; left: 1rem; }
.letter-rose.right-rose { top: -1.5rem; right: 1rem; animation-delay: 1.5s; }

@keyframes roseFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-8px) rotate(5deg); }
}

.letter-inner {
    border: 1px solid rgba(200,168,122,0.4);
    padding: 4rem 3rem;
    text-align: center;
}

.letter-crest { margin-bottom: 2rem; display: flex; justify-content: center; }

.letter-salutation {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.letter-body {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
}

.letter-name {
    font-style: italic;
    font-weight: 600;
    color: var(--green-mid);
}

.letter-divider { display: flex; justify-content: center; margin: 2rem 0; }

.letter-closing {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.letter-signature {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--gold-dark);
}

/* ===========================
   FAIRY BANNER (PARALLAX)
=========================== */
.fairy-banner {
    position: relative;
    min-height: 450px;
    background: url('image/6.jpg') center 30% / cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.fairy-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(20,40,15,0.55), rgba(30,55,20,0.7));
}

.fairy-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
}

.fairy-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fairyFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(200,240,180,0.6));
}

@keyframes fairyFloat {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(200,240,180,0.6)); }
    50%       { transform: translateY(-15px) scale(1.1); filter: drop-shadow(0 0 30px rgba(200,240,180,0.9)); }
}

.fairy-banner-content h2 {
    font-family: var(--font-script);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ===========================
   EVENT DETAILS
=========================== */
.details-section {
    background: var(--cream);
    background-image: linear-gradient(
        to bottom,
        var(--cream) 0%,
        var(--cream-dark) 100%
    );
}

.details-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 3rem;
}

.detail-card {
    background: white;
    border: 1px solid var(--gold-light);
    padding: 3rem 2.5rem;
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.detail-card:hover::before { transform: scaleX(1); }

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(100,130,80,0.12);
}

.detail-card.featured {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(200,168,122,0.15);
}

.detail-card-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }

.detail-card-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.detail-card-value {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 500;
}

.detail-card-value.sub {
    font-size: 1rem;
    color: var(--text-mid);
    font-style: italic;
    font-weight: 400;
}

/* ===========================
   GALLERY SECTION
=========================== */
.gallery-section {
    background: var(--cream-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 240px 240px 240px;
    gap: 0.5rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 5px solid #f9f5f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(200,168,122,0.4);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover::after { border-color: rgba(200,168,122,1); inset: 2px; }

.gallery-item.g-tall { grid-row: span 2; }

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,50,20,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-light);
    font-size: 1.1rem;
}

/* ===========================
   PORTRAIT SPOTLIGHT
=========================== */
.spotlight-section {
    background: var(--cream);
    padding: var(--section-pad);
    position: relative;
    overflow: hidden;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(138,170,122,0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(200,168,122,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.spotlight-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-end;
    max-width: 1100px;
    margin: 3.5rem auto 0;
    flex-wrap: wrap;
}

.spotlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

.spotlight-center { flex: 1.2; max-width: 380px; }

.spotlight-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 5px solid #f9f5f0;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.12),
        0 0 0 4px rgba(200,168,122,0.15);
    border-radius: 2px;
    aspect-ratio: 3/4;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.spotlight-img-wrap::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(200,168,122,0.4);
    pointer-events: none;
    z-index: 2;
    transition: all 0.4s ease;
}

.spotlight-img-wrap.spotlight-featured {
    border: 6px solid #f9f5f0;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.18),
        0 0 0 6px rgba(200,168,122,0.25);
    aspect-ratio: 2/3;
}

.spotlight-img-wrap.spotlight-featured::after {
    border-width: 2px;
    border-color: rgba(200,168,122,0.6);
}

.spotlight-img-wrap:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 60px rgba(0,0,0,0.2),
        0 0 0 6px rgba(200,168,122,0.3);
}

.spotlight-img-wrap:hover::after {
    border-color: rgba(200,168,122,1);
    inset: 2px;
}

.spotlight-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.7s ease;
    display: block;
}

.spotlight-img-wrap:hover img { transform: scale(1.06); }

/* Soft shimmer overlay */
.spotlight-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0) 40%,
        rgba(255,255,255,0.12) 60%,
        rgba(255,255,255,0) 80%
    );
    pointer-events: none;
}

.spotlight-caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold-dark);
    letter-spacing: 0.5px;
    text-align: center;
}

/* Responsive spotlight */
@media (max-width: 768px) {
    .spotlight-grid { gap: 1.2rem; }
    .spotlight-card, .spotlight-center { max-width: 100%; min-width: 150px; }
}

@media (max-width: 480px) {
    .spotlight-grid { flex-direction: column; align-items: center; }
    .spotlight-card, .spotlight-center { max-width: 85%; }
}

/* ===========================
   DRESS CODE — UPGRADED
=========================== */

.dresscode-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.dresscode-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(244,160,184,0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138,170,122,0.07) 0%, transparent 50%);
}

.section-tip {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    font-style: normal;
}

.palette-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    position: relative;
}

.palette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform var(--transition);
}

.palette-item:hover { transform: translateY(-12px); }

.palette-swatch-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
}

.palette-swatch {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    box-shadow:
        inset 0 6px 18px rgba(255,255,255,0.55),
        inset 0 -4px 10px rgba(0,0,0,0.1),
        0 12px 35px rgba(0,0,0,0.12),
        0 0 0 8px rgba(200,168,122,0.1);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* Specular highlight shine layer */
.palette-swatch-shine {
    position: absolute;
    top: 12%;
    left: 18%;
    width: 35%;
    height: 28%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.7) 0%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
}

/* Hover glow */
.palette-item:hover .palette-swatch {
    box-shadow:
        inset 0 6px 18px rgba(255,255,255,0.55),
        inset 0 -4px 10px rgba(0,0,0,0.1),
        0 20px 50px rgba(0,0,0,0.2),
        0 0 0 14px rgba(200,168,122,0.15);
}

/* Zoom icon hover hint */
.palette-zoom-hint {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.palette-item:hover .palette-zoom-hint { opacity: 1; }

.palette-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-align: center;
    color: var(--text-dark);
    text-transform: uppercase;
}

.palette-hex {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    background: rgba(200,168,122,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

/* ===========================
   COLOR MODAL
=========================== */
.color-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30,30,20,0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.color-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.color-modal-box {
    background: white;
    max-width: 520px;
    width: 100%;
    border: 1px solid var(--gold-light);
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    transform: scale(0.88) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.color-modal-overlay.open .color-modal-box {
    transform: scale(1) translateY(0);
}

.color-modal-swatch {
    width: 100%;
    height: 260px;
    transition: background 0.3s ease;
}

.color-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.25);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.3s;
    z-index: 2;
}

.color-modal-close:hover { background: rgba(0,0,0,0.5); }

.color-modal-info {
    padding: 2rem 2.5rem;
    text-align: center;
    border-top: 1px solid var(--gold-light);
}

.color-modal-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.color-modal-hex {
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.color-modal-desc {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.color-modal-tip {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(100,100,80,0.5);
}

/* ===========================
   THE CLASSIC 18s RITUALS
=========================== */
.rituals-section {
    background: linear-gradient(180deg, #132412 0%, #1a2f18 50%, #112010 100%);
    padding: var(--section-pad);
    position: relative;
    overflow: hidden;
}

.rituals-section .section-title {
    color: var(--text-light);
}

.rituals-section .section-desc {
    color: rgba(244,237,216,0.75);
    max-width: 680px;
    margin: 0 auto;
}

/* --- Search Box --- */
.ritual-search-box {
    max-width: 520px;
    margin: 2.2rem auto 2.5rem;
    position: relative;
    z-index: 20;
}

.ritual-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 168, 122, 0.35);
    border-radius: 35px;
    padding: 0.7rem 1.3rem;
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ritual-search-input-wrap:focus-within {
    border-color: var(--gold-light);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 25px rgba(200, 168, 122, 0.3);
}

.ritual-search-input-wrap .search-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.ritual-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--cream);
    margin-left: 0.8rem;
}

.ritual-search-input::placeholder {
    color: rgba(200, 168, 122, 0.5);
    font-style: italic;
    font-size: 0.92rem;
}

.ritual-search-clear {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.3rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ritual-search-clear:hover {
    opacity: 1;
    color: #fff;
}

.ritual-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(18, 34, 18, 0.98);
    border: 1px solid rgba(200, 168, 122, 0.45);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    z-index: 100;
    max-height: 290px;
    overflow-y: auto;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    display: none;
}

.ritual-search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(200, 168, 122, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(200, 168, 122, 0.18);
    padding-left: 1.45rem;
}

.search-result-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.search-result-role {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    background: rgba(200, 168, 122, 0.15);
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(200, 168, 122, 0.3);
    white-space: nowrap;
}

.search-result-empty {
    padding: 1.2rem;
    text-align: center;
    color: rgba(232, 208, 168, 0.6);
    font-style: italic;
    font-size: 0.9rem;
    font-family: var(--font-serif);
}

/* --- Tabs --- */
.rituals-container {
    max-width: 1040px;
    margin: 0 auto;
}

.rituals-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.8rem;
}

.ritual-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 168, 122, 0.25);
    color: rgba(232, 208, 168, 0.8);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.7rem 1.35rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    backdrop-filter: blur(8px);
}

.ritual-tab:hover {
    border-color: rgba(200, 168, 122, 0.7);
    background: rgba(200, 168, 122, 0.12);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ritual-tab.active {
    background: linear-gradient(135deg, rgba(200, 168, 122, 0.28) 0%, rgba(200, 168, 122, 0.1) 100%);
    border-color: var(--gold-light);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(200, 168, 122, 0.25);
    transform: translateY(-2px);
}

.ritual-tab svg {
    transition: transform 0.3s ease;
}

.ritual-tab.active svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 5px rgba(200, 168, 122, 0.7));
}

/* --- Panes --- */
.ritual-pane {
    display: none;
}

.ritual-pane.active {
    display: block;
    animation: ritualFadeIn 0.45s ease forwards;
}

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

.ritual-pane-header {
    text-align: center;
    margin-bottom: 2.2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.ritual-pane-badge {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.ritual-pane-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--gold-light);
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.ritual-pane-subtitle {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    color: rgba(244, 237, 216, 0.8);
    font-style: italic;
    line-height: 1.6;
}

/* --- 18s Grid & Cards --- */
.ritual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    max-width: 1040px;
    margin: 0 auto;
}

.ritual-card {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(200, 168, 122, 0.2);
    border-radius: 8px;
    padding: 0.95rem 1.15rem;
    gap: 0.9rem;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    backdrop-filter: blur(8px);
}

.ritual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(200, 168, 122, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ritual-card:hover {
    background: rgba(200, 168, 122, 0.09);
    border-color: rgba(200, 168, 122, 0.65);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(200, 168, 122, 0.12);
}

.ritual-card:hover::before {
    opacity: 1;
}

.ritual-num {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 122, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 168, 122, 0.08);
    flex-shrink: 0;
    transition: all 0.3s;
}

.ritual-card:hover .ritual-num {
    background: rgba(200, 168, 122, 0.25);
    border-color: var(--gold-light);
    color: #fff;
    transform: scale(1.08);
}

.ritual-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--cream);
    font-weight: 500;
    letter-spacing: 0.3px;
    flex: 1;
    transition: color 0.3s;
}

.ritual-card:hover .ritual-name {
    color: #ffffff;
}

.ritual-sparkle {
    color: var(--gold);
    opacity: 0.35;
    font-size: 0.75rem;
    transition: all 0.35s;
    flex-shrink: 0;
}

.ritual-card:hover .ritual-sparkle {
    opacity: 1;
    transform: rotate(45deg) scale(1.3);
    color: #f4a0b8;
}

/* Highlighted state when found via Search */
.ritual-card.highlighted {
    border-color: #f4a0b8 !important;
    background: rgba(244, 160, 184, 0.2) !important;
    box-shadow: 0 0 30px rgba(244, 160, 184, 0.5), 0 0 15px rgba(200, 168, 122, 0.7) !important;
    animation: ritualHighlightPulse 2s ease-in-out infinite;
}

.ritual-card.highlighted .ritual-name {
    color: #fff !important;
    font-weight: 600;
}

.ritual-card.highlighted .ritual-num {
    border-color: #f4a0b8;
    background: rgba(244, 160, 184, 0.3);
    color: #fff;
}

@keyframes ritualHighlightPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(244, 160, 184, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 35px rgba(244, 160, 184, 0.7), 0 0 15px rgba(200, 168, 122, 0.9);
    }
}

/* --- Responsive Rituals Section --- */
@media (max-width: 900px) {
    .ritual-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }
    .ritual-tabs {
        gap: 0.5rem;
    }
    .ritual-tab {
        padding: 0.6rem 1.1rem;
        font-size: 0.74rem;
    }
}

@media (max-width: 580px) {
    .ritual-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .ritual-tab {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
        padding: 0.65rem 0.8rem;
    }
    .ritual-search-box {
        margin: 1.5rem auto 2rem;
    }
}

/* ===========================
   MAP SECTION
=========================== */
.map-section {
    background: var(--cream-dark);
}

.map-wrapper {
    max-width: 900px;
    margin: 3rem auto 0;
}

.map-glow-border {
    border: 3px solid var(--gold-light);
    padding: 6px;
    box-shadow:
        0 0 0 1px rgba(200,168,122,0.2),
        0 30px 80px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* Animated golden corner accents */
.map-glow-border::before,
.map-glow-border::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.map-glow-border::before {
    top: 0; left: 0;
    border-top: 3px solid var(--gold);
    border-left: 3px solid var(--gold);
}

.map-glow-border::after {
    bottom: 0; right: 0;
    border-bottom: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
}

.map-glow-border iframe {
    display: block;
    filter: sepia(20%) saturate(0.9) hue-rotate(20deg);
    transition: filter 0.4s;
}

.map-glow-border:hover iframe {
    filter: sepia(0%) saturate(1.1) hue-rotate(0deg);
}

.map-info-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green-dark);
    color: var(--gold-light);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 1px;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-link {
    color: var(--gold-light);
    border-bottom: 1px solid rgba(200,168,122,0.4);
    transition: border-color 0.3s;
}

.map-link:hover { border-color: var(--gold-light); }

/* ===========================
   RSVP SECTION
=========================== */
/* ===========================
   ENCHANTED CORNER SECTION
=========================== */
.enchanted-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, #1e3a16 50%, #0f2010 100%);
    position: relative;
    overflow: hidden;
}

.enchanted-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0% 100%, rgba(244,160,184,0.12) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(138,170,122,0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(200,168,122,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.enchanted-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.enchanted-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    max-width: 860px;
    margin: 3rem auto 0;
}

/* Floating music toggle */
.music-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(15, 32, 16, 0.88);
    border: 1px solid rgba(200,168,122,0.5);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 0 rgba(200,168,122,0.3);
    animation: musicPulse 3s ease-in-out infinite;
}

.music-toggle:hover {
    border-color: rgba(200,168,122,0.9);
    background: rgba(15, 32, 16, 0.98);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.5), 0 0 15px rgba(200,168,122,0.2);
}

.music-toggle.muted {
    border-color: rgba(200,168,122,0.25);
    opacity: 0.7;
    animation: none;
}

.music-label {
    font-size: 0.6rem;
    color: rgba(200,168,122,0.7);
    letter-spacing: 1px;
    font-family: var(--font-sans);
    line-height: 1;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 0 rgba(200,168,122,0.3); }
    50%       { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 8px rgba(200,168,122,0); }
}


/* Individual enchant cards */
.enchant-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200,168,122,0.25);
    padding: 2rem 1.8rem;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.enchant-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,168,122,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.enchant-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200,168,122,0.6);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(200,168,122,0.08);
}

.enchant-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.enchant-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.enchant-card-desc {
    font-size: 0.88rem;
    color: rgba(232,208,168,0.7);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* Calendar buttons */
.cal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cal-btn {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(200,168,122,0.5);
    color: var(--gold-light);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    text-align: center;
}

.cal-btn:hover {
    background: rgba(200,168,122,0.15);
    border-color: var(--gold);
    color: #fff;
}

/* Wishing Well */
.wish-input-wrap {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}

.wish-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,168,122,0.3);
    padding: 0.75rem 1rem;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-light);
    outline: none;
    transition: border-color 0.3s;
}

.wish-input:focus {
    border-color: rgba(200,168,122,0.8);
}

.wish-input::placeholder { color: rgba(200,168,122,0.4); font-style: italic; }

.wish-btn {
    background: rgba(200,168,122,0.2);
    border: 1px solid rgba(200,168,122,0.6);
    color: var(--gold-light);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wish-btn:hover {
    background: rgba(200,168,122,0.4);
    color: #fff;
}

.wish-stage {
    position: relative;
    height: 50px;
    margin-top: 0.6rem;
    overflow: hidden;
    pointer-events: none;
    border-radius: 4px;
}

.floating-wish {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gold-light);
    white-space: nowrap;
    animation: floatWish 3.5s ease-out forwards;
    text-shadow: 0 0 20px rgba(200,168,122,0.8);
    pointer-events: none;
}

@keyframes floatWish {
    0%   { bottom: 0; opacity: 0; transform: translateX(-50%) scale(0.7); }
    15%  { opacity: 1; transform: translateX(-50%) scale(1); }
    80%  { opacity: 0.9; }
    100% { bottom: 45px; opacity: 0; transform: translateX(-50%) scale(0.9); }
}

/* Fairy Name Result */
.fairy-result {
    position: relative;
    margin-top: 0.8rem;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: rgba(200, 168, 122, 0.06);
    border: 1px dashed rgba(200, 168, 122, 0.3);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.fairy-result-placeholder {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: rgba(200, 168, 122, 0.5);
    font-style: italic;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.fairy-result.revealed {
    border: 1px solid var(--gold-light);
    background: linear-gradient(135deg, rgba(200, 168, 122, 0.16) 0%, rgba(244, 160, 184, 0.09) 100%);
    box-shadow: 0 0 25px rgba(200, 168, 122, 0.25), 0 0 12px rgba(244, 160, 184, 0.2);
    animation: fairyGlowShimmer 2.5s ease-in-out infinite alternate;
}

@keyframes fairyGlowShimmer {
    0% {
        box-shadow: 0 0 15px rgba(200, 168, 122, 0.2);
        border-color: rgba(200, 168, 122, 0.5);
    }
    100% {
        box-shadow: 0 0 30px rgba(200, 168, 122, 0.45), 0 0 14px rgba(244, 160, 184, 0.35);
        border-color: var(--gold-light);
    }
}

.fairy-name-reveal {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(200, 168, 122, 0.85);
    animation: fairyNamePop 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fairy-title-reveal {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: #f4a0b8;
    font-style: italic;
    letter-spacing: 0.5px;
    animation: fairyTitleFade 0.75s ease-out 0.15s both;
}

@keyframes fairyNamePop {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(16px);
        filter: blur(10px);
    }
    70% {
        transform: scale(1.1) translateY(-2px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fairyTitleFade {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Soundtrack Player --- */
.soundtrack-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.soundtrack-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 22px;
}

.soundtrack-wave span {
    width: 3px;
    height: 6px;
    background: var(--gold-light);
    border-radius: 2px;
    opacity: 0.35;
    transition: height 0.2s ease, opacity 0.2s ease;
}

.soundtrack-wave.playing span {
    animation: stWaveBar 1.2s ease-in-out infinite alternate;
}

.soundtrack-wave.playing span:nth-child(1) { animation-delay: 0.0s; }
.soundtrack-wave.playing span:nth-child(2) { animation-delay: 0.2s; }
.soundtrack-wave.playing span:nth-child(3) { animation-delay: 0.4s; }
.soundtrack-wave.playing span:nth-child(4) { animation-delay: 0.1s; }
.soundtrack-wave.playing span:nth-child(5) { animation-delay: 0.5s; }
.soundtrack-wave.playing span:nth-child(6) { animation-delay: 0.3s; }
.soundtrack-wave.playing span:nth-child(7) { animation-delay: 0.25s; }

@keyframes stWaveBar {
    0%   { height: 4px; opacity: 0.4; }
    100% { height: 20px; opacity: 1; filter: drop-shadow(0 0 4px var(--gold-light)); }
}

.soundtrack-info {
    text-align: center;
}

.soundtrack-track-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold-light);
    display: block;
    letter-spacing: 0.5px;
}

.soundtrack-artist {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: rgba(244, 237, 216, 0.7);
    font-style: italic;
}

.soundtrack-controls {
    display: flex;
    justify-content: center;
    width: 100%;
}

.soundtrack-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(200, 168, 122, 0.3) 0%, rgba(200, 168, 122, 0.12) 100%);
    border: 1px solid var(--gold-light);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.75rem 1.6rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.soundtrack-play-btn:hover {
    background: linear-gradient(135deg, rgba(200, 168, 122, 0.5) 0%, rgba(200, 168, 122, 0.25) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 168, 122, 0.35);
}

.soundtrack-progress-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.soundtrack-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold) 0%, #f4a0b8 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.soundtrack-time-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: rgba(200, 168, 122, 0.6);
}

.spotify-alt-btn {
    font-size: 0.75rem;
    padding: 0.55rem 1rem;
    margin-top: 0.4rem;
    border-color: rgba(200, 168, 122, 0.3);
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spotify-alt-btn:hover {
    opacity: 1;
    border-color: var(--gold-light);
}

/* Equal height cards */
.enchant-card {
    display: flex;
    flex-direction: column;
}

.enchant-card-body {
    margin-top: auto;
    width: 100%;
}




/* ===========================
   FOOTER
=========================== */
.footer {
    background: var(--text-dark);
    text-align: center;
    padding: 5rem 2rem 3rem;
    position: relative;
}

.footer-top-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.footer-tagline {
    font-style: italic;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.footer-name {
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(200,168,122,0.3);
}

.footer-event, .footer-venue {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--gold);
}

.footer-save { color: var(--gold-light); }

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    font-family: var(--font-sans);
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(10, 10, 8, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 88vw;
    max-height: 88vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(200,168,122,0.3);
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
    display: block;
}

.lightbox-overlay.open .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption {
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(200,168,122,0.85);
    letter-spacing: 1px;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(200,168,122,0.35);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(200,168,122,0.35);
}

.lightbox-prev { left: 1.2rem; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next { right: 1.2rem; }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox-counter {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.45);
}

/* Make gallery & spotlight images show pointer cursor */
.gallery-item,
.spotlight-img-wrap {
    cursor: zoom-in;
}

/* ===========================
   RESPONSIVE — TABLET & MOBILE
=========================== */


/* Fix SVG icon size in detail cards */
.detail-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.detail-card-icon svg {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

/* ——— Tablet (≤ 900px) ——— */
@media (max-width: 900px) {
    .details-cards {
        gap: 1rem;
    }
    .detail-card {
        min-width: 180px;
        padding: 2rem 1.5rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px 220px;
    }
    .gallery-item.g-tall { grid-row: span 1; }

    .palette-swatch-wrap,
    .palette-swatch {
        width: 110px;
        height: 110px;
    }
}

/* ——— Mobile (≤ 768px) ——— */
@media (max-width: 768px) {
    :root { --section-pad: 4.5rem 1.2rem; }

    /* Hero */
    .hero-content { padding: 1.5rem 1.2rem; }
    .hero-name { font-size: 4rem; }
    .hero-to { font-size: 1.1rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-date-place { font-size: 1rem; }
    .corner-ornament { display: none; }

    /* Countdown */
    .countdown-container { gap: 0.4rem; }
    .countdown-unit { min-width: 72px; padding: 1.2rem 0.8rem; }
    .countdown-num { font-size: 2.2rem; letter-spacing: 2px; }
    .countdown-sep { font-size: 2rem; padding-bottom: 1rem; }

    /* Letter */
    .letter-inner { padding: 2.5rem 1.2rem; }
    .letter-salutation { font-size: 1.4rem; }
    .letter-signature { font-size: 2.5rem; }

    /* Details */
    .details-cards { flex-direction: column; align-items: center; gap: 1rem; }
    .detail-card { max-width: 100%; width: 100%; padding: 2rem; }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px 160px;
        gap: 0.35rem;
    }
    .gallery-item.g-tall { grid-row: span 1; }

    /* Dress code */
    .palette-row { gap: 1.5rem; }
    .palette-swatch-wrap, .palette-swatch { width: 100px; height: 100px; }
    .palette-label { font-size: 0.72rem; }

    /* Color modal */
    .color-modal-swatch { height: 200px; }
    .color-modal-info { padding: 1.5rem; }
    .color-modal-name { font-size: 1.1rem; }

    /* Map */
    .map-info-pill { flex-direction: column; text-align: center; gap: 0.5rem; }
    .map-glow-border iframe { height: 300px; }

    /* RSVP / Enchanted Corner */
    .enchanted-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .enchant-card { padding: 1.8rem 1.2rem; }

    /* Fairy banner */
    .fairy-banner { background-attachment: scroll; min-height: 300px; }
    .fairy-banner-content h2 { font-size: 1.7rem; }

    /* Footer */
    .footer-name { font-size: 3.5rem; }
}

/* ——— Small Mobile (≤ 480px) ——— */
@media (max-width: 480px) {
    .hero-name { font-size: 3rem; }
    .countdown-sep { display: none; }
    .countdown-unit { min-width: 60px; padding: 1rem 0.6rem; }
    .countdown-num { font-size: 1.8rem; }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
    }

    .palette-row { gap: 1rem; }
    .palette-swatch-wrap, .palette-swatch { width: 85px; height: 85px; }

    .details-grid {
        flex-direction: column;
        align-items: center;
    }
    .detail-divider { display: none; }

    .section-title { font-size: 1.3rem; }
    .footer-name { font-size: 3rem; }
    .footer-top-ornament svg { width: 240px; }
}
