:root {
    --bg: #f3f1ea;
    --maroon: #6b0f14;
    --maroon-dark: #540b10;
    --gold: #dfc24a;
    --gold-deep: #c8a130;
    --gold-soft: #f2e1a8;
    --ink: #2f2418;
    --ink-soft: #4a3a28;
    --gold-text: #a67b12;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #1a0103;
    background-image: 
        radial-gradient(circle at center, rgba(138, 20, 27, 0.45) 0%, #0d0001 100%),
        repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.012) 0px, rgba(212, 175, 55, 0.012) 2px, transparent 2px, transparent 10px);
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 8px 24px;
}

.invitation-shell {
    position: relative;
    width: min(100%, 500px);
}

.invitation-card {
    position: relative;
    width: 100%;
    background-color: var(--bg);
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: 380px;
    border: 3px solid var(--gold-deep);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 34px 32px 24px;
    overflow: hidden;
}

.side-curtain {
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 28px;
    z-index: 10;
    pointer-events: none;
    display: grid;
    justify-items: center;
    align-content: start;
}

.side-curtain-left {
    left: 6px;
}

.side-curtain-right {
    right: 6px;
    transform: scaleX(-1);
}

.curtain-rod {
    width: 24px;
    height: 10px;
    border-radius: 99px;
    margin-top: 2px;
    background: linear-gradient(180deg, #f0d88b 0%, #c89b3c 100%);
    border: 1px solid #a87c17;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.curtain-panel {
    width: 22px;
    height: calc(100% - 18px);
    margin-top: 4px;
    border-radius: 12px;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255, 226, 138, 0.2) 0%, rgba(255, 226, 138, 0) 56%),
        linear-gradient(180deg, #7f0f16 0%, #5d0a11 100%);
    border: 1px solid rgba(216, 172, 70, 0.75);
    box-shadow: inset 3px 0 3px rgba(0, 0, 0, 0.28), inset -2px 0 2px rgba(255, 203, 79, 0.2);
}

.curtain-vine {
    position: absolute;
    left: -6px;
    width: 32px;
    opacity: 0.95;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.curtain-vine-top {
    top: 14px;
}

.curtain-vine-mid {
    top: 42%;
}

.curtain-tassel {
    position: absolute;
    width: 22px;
    bottom: 6px;
    left: 3px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.top-fold {
    display: none;
}

.content-border {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border: 2px solid rgba(212, 175, 55, 0.85);
    outline: 1px solid rgba(212, 175, 55, 0.4);
    outline-offset: -3px;
    border-radius: 32px;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
}

.invitation-card::before {
    display: none;
}

.corner {
    position: absolute;
    width: 56px;
    height: 56px;
    object-fit: contain;
    opacity: 0.95;
    z-index: 6;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.corner-top-left {
    top: 10px;
    left: 10px;
}

.corner-top-right {
    top: 10px;
    right: 10px;
}

.corner-bottom-left {
    bottom: 10px;
    left: 10px;
}

.corner-bottom-right {
    bottom: 10px;
    right: 10px;
}

.language-toggle {
    position: fixed;
    top: 50px;
    right: 24px;
    z-index: 40;
    display: inline-flex;
    gap: 2px;
    border: 1px solid #d4af37;
    border-radius: 99px;
    padding: 1.5px;
    background: linear-gradient(180deg, #7a171d 0%, #5c0d12 100%);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lang-btn {
    border: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    color: #f7e8c7;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn[data-language="guj"] {
    font-family: "Noto Serif Gujarati", serif;
}

.lang-btn.active {
    background: linear-gradient(180deg, #d4af37 0%, #c89b3c 100%);
    color: #3b090c;
}

.hidden {
    display: none;
}

.zone {
    position: relative;
    z-index: 2;
}

.hero-symbol {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2px;
}

.om-symbol-img {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0 auto;
}

.toran-banner {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: 52px;
    display: block;
    z-index: 20;
    pointer-events: none;
}

.toran-spacer {
    height: 42px;
    width: 100%;
    pointer-events: none;
}

h1 {
    margin: 0 0 10px;
    text-align: center;
    font-family: "Cinzel", "Noto Serif Gujarati", serif;
    font-size: 2.15rem;
    line-height: 1.1;
    color: var(--gold-text);
    text-shadow: 0 1px 1px rgba(87, 56, 5, 0.25), 0 0 1px rgba(255, 248, 200, 0.55);
}

.hero-frame {
    margin-top: 10px;
    border: 2px solid #d4af37;
    border-radius: 16px;
    padding: 3px;
    background: #6f1217;
}

.hero-img {
    width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #d4af37;
    aspect-ratio: 16/10;
}

.welcome-msg {
    margin: 14px 10px;
    text-align: center;
    line-height: 1.45;
    font-size: 0.92rem;
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
    font-family: "Inter", "Noto Serif Gujarati", sans-serif;
    text-shadow: none;
}

.micro-flourish {
    display: block;
    width: 64px;
    height: auto;
    margin: 6px auto 2px;
    opacity: 0.9;
}

.details-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.datetime-box {
    border: 1.5px solid #d4af37;
    border-radius: 14px;
    background: rgba(255, 252, 246, 0.72);
    backdrop-filter: blur(4px);
    overflow: hidden;
    max-width: 440px;
    margin: 15px auto 4px;
}

.datetime-row {
    text-align: center;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.35;
    padding: 10px 12px;
    font-weight: 500;
}

.datetime-row + .datetime-row {
    border-top: 1px solid rgba(212, 175, 55, 0.45);
}

.datetime-label {
    color: var(--gold-text);
    font-family: "Cinzel", "Noto Serif Gujarati", serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-right: 6px;
    line-height: 1;
    vertical-align: baseline;
}

.decor-divider {
    margin: 18px 0 10px;
    text-align: center;
    color: var(--maroon);
    font-family: "Cinzel", "Noto Serif Gujarati", serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(118, 89, 23, 0.22);
}

.decor-divider::before,
.decor-divider::after {
    content: "◆";
    margin: 0 8px;
    font-size: 0.65rem;
    color: #b28b1f;
    vertical-align: middle;
}

.timeline-grid {
    border: 1.5px solid #d4af37;
    border-radius: 14px;
    background: rgba(255, 252, 246, 0.72);
    backdrop-filter: blur(4px);
    padding: 8px 10px;
    display: grid;
    gap: 4px;
    max-width: 460px;
    margin: 0 auto;
}

.timeline-row {
    display: grid;
    grid-template-columns: 26px 1fr 26px;
    gap: 8px;
    align-items: center;
    padding: 4px 0;
}
.timeline-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.timeline-text {
    text-align: left;
    line-height: 1.35;
    font-size: 0.92rem;
    color: var(--ink-soft);
    font-weight: 500;
    text-align: center;
}

.timeline-time {
    color: var(--gold-text);
    font-weight: 700;
}

.venue-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--maroon);
    font-family: "Cinzel", "Noto Serif Gujarati", serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(118, 89, 23, 0.22);
}

.venue-heading::before,
.venue-heading::after {
    content: "◆";
    width: auto;
    height: auto;
    background: none;
    color: #b28b1f;
    font-size: 0.65rem;
}

.address {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0 auto 12px;
    padding: 12px;
    border: 1.5px solid #d4af37;
    border-radius: 14px;
    background: rgba(255, 252, 246, 0.72);
    backdrop-filter: blur(4px);
    max-width: 440px;
}

.navigate-btn {
    display: block;
    width: 100%;
    border: 1.5px solid #d4af37;
    border-radius: 999px;
    background: linear-gradient(180deg, #6b0f14 0%, #540b10 100%);
    color: #d4af37;
    text-decoration: none;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    padding: 10px 16px;
    font-size: 1.05rem;
    line-height: 1.15;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
    max-width: 340px;
    margin: 0 auto 15px;
    transition: all 0.2s ease;
}

.navigate-btn:hover {
    background: linear-gradient(180deg, #7c0f14 0%, #650b10 100%);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px rgba(0, 0, 0, 0.4);
}

.nav-sub-link {
    display: block;
    margin-top: 3px;
    font-size: 0.65rem;
    color: #fff;
    opacity: 0.85;
    word-break: break-all;
}

.qr-wrapper {
    margin: 15px auto 12px;
    width: 100%;
    max-width: 124px;
    border: 1.5px solid #d4af37;
    border-radius: 14px;
    background: rgba(255, 252, 246, 0.72);
    backdrop-filter: blur(4px);
    padding: 8px;
    text-align: center;
}

.qr-label {
    color: var(--gold-text);
    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-img {
    width: 100%;
    border-radius: 8px;
    display: block;
    border: 1px solid #d4af37;
    background: #fff;
}

.blessing {
    text-align: center;
    margin-top: 15px;
    color: #6a4d14;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.2;
    font-family: "Cinzel", "Noto Serif Gujarati", serif;
    text-shadow: none;
}

html.lang-guj,
html.lang-guj * {
    font-family: "Noto Serif Gujarati", serif !important;
}

@media (min-width: 460px) {
    .invitation-card {
        padding: 42px 38px 28px;
    }

    .side-curtain {
        width: 30px;
    }

    .curtain-panel {
        width: 24px;
    }

    .content-border {
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .welcome-msg {
        font-size: 1rem;
    }
}

@media (min-width: 900px) {
    body {
        padding: 32px 12px;
    }

    .invitation-shell {
        width: 480px;
    }

    h1 {
        font-size: 2.34rem;
    }
}

@media (max-width: 360px) {
    .invitation-card {
        padding: 30px 24px 20px;
    }

    .side-curtain {
        width: 22px;
    }

    .side-curtain-left {
        left: 4px;
    }

    .side-curtain-right {
        right: 4px;
    }

    .curtain-panel {
        width: 16px;
    }

    .curtain-vine {
        width: 24px;
        left: -4px;
    }

    .curtain-tassel {
        width: 18px;
        left: 2px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .decor-divider,
    .venue-heading {
        font-size: 1.45rem;
    }

    .datetime-label {
        font-size: 1.1rem;
    }

    .welcome-msg {
        font-size: 0.9rem;
    }

    .timeline-text {
        font-size: 0.86rem;
    }

    .nav-sub-link {
        font-size: 0.56rem;
    }
}
