@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Great+Vibes&family=Playfair+Display:ital@0;1&family=Amiri&display=swap');

/* =========================================================
   «NIKOH» DIZAYNI
========================================================= */

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

:root {
    --cream: #f4ede2;
    --paper: #faf6ef;
    --gold: #b58a43;
    --gold-2: #ad8447;
    --gold-soft: #d7bc89;
    --ink: #806944;
    --shadow: rgba(86, 65, 38, 0.18);
    --script: "Great Vibes", cursive;
    --serif: "Cormorant Garamond", serif;
    --display: "Playfair Display", serif;
    --arabic: "Amiri", serif;
}

html {
    background: #f8f1e7;
}

body {
    min-height: 100vh;
    background: #f8f1e7;
    color: var(--ink);
    font-family: var(--serif);
    overflow-x: hidden;
}

button,
input,
textarea {
    font-family: inherit;
}

#app section {
    position: relative;
    overflow: hidden;
}

#app h2 {
    font-family: var(--script);
    font-size: clamp(55px, 12vw, 90px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--gold-2);
}

.section-kicker {
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 5px;
    color: #aa8449;
    margin-bottom: 15px;
}

.state-msg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    text-align: center;
    font-size: 18px;
}

/* =========================================================
   TIL VA MUSIQA
========================================================= */

.lang-switch {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 50;
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 20px;
    background: rgba(250, 246, 239, 0.82);
    border: 1px solid rgba(178, 138, 72, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lang-switch button {
    border: none;
    background: transparent;
    color: #9a7a4c;
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 5px 9px;
    border-radius: 14px;
    cursor: pointer;
}

.lang-switch button.active {
    background: #cda85b;
    color: #fff;
}

.music-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #cda85b;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 8px 25px rgba(80, 55, 25, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}

.music-toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 30px rgba(80, 55, 25, .25);
}

.music-toggle:active {
    transform: scale(.94);
}

/* =========================================================
   KONVERT (kirish)
========================================================= */

html.env-lock,
html.env-lock body {
    overflow: hidden;
}

.opening {
    --seal: #b58a43;
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fffdf9 0%, #f7f0e6 50%, #e9dfd2 100%);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.opening::before {
    content: "";
    position: absolute;
    inset: 18px 24px;
    border-left: 1px solid rgba(181, 138, 67, .15);
    border-right: 1px solid rgba(181, 138, 67, .15);
    pointer-events: none;
}

.opening.gone {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.envelope {
    position: relative;
    width: min(94vw, 560px);
    height: min(132vw, 750px);
    max-height: 82vh;
    perspective: 1600px;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(35px) scale(.82) rotateX(8deg);
    animation: envelopeEntrance 1.5s cubic-bezier(.16, .84, .25, 1) .25s forwards;
}

.envelope-body {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #fffdf9 0%, #f4ede3 48%, #e9dfd2 100%);
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(120, 90, 45, .12), inset 0 0 50px rgba(110, 80, 40, .08);
    z-index: 1;
}

.envelope-body::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(181, 138, 67, .18);
    pointer-events: none;
}

.envelope-body::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(25deg, #e9dfd2, #fffdf8);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    z-index: 8;
}

.flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(145deg, #fffefa 0%, #f3eadf 55%, #e7dbcc 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transform: rotateX(0deg);
    z-index: 20;
    backface-visibility: hidden;
    filter: drop-shadow(0 7px 6px rgba(75, 55, 30, .12));
    transition: transform 1.55s cubic-bezier(.18, .82, .22, 1);
}

.flower {
    position: absolute;
    color: rgba(181, 138, 67, .17);
    font-size: 65px;
    z-index: 4;
    text-shadow: 1px 2px 2px rgba(110, 80, 40, .08);
}

.flower-left-top { top: 35px; left: 25px; transform: rotate(-25deg); }
.flower-right-top { top: 35px; right: 25px; transform: rotate(25deg); }
.flower-left-bottom { bottom: 35px; left: 25px; transform: rotate(-20deg); }
.flower-right-bottom { bottom: 35px; right: 25px; transform: rotate(20deg); }

.seal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(125px, 27vw, 160px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) translateZ(100px);
    border: none;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fffefa 0%, #f5eee5 50%, #ded2c2 100%);
    box-shadow:
        0 18px 30px rgba(70, 50, 25, .22),
        inset 0 0 0 6px #f8f2e9,
        inset 0 0 0 8px color-mix(in srgb, var(--seal) 45%, #fff),
        inset 0 0 0 11px #fffaf3;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    opacity: 0;
    animation: sealEntrance 1s cubic-bezier(.16, .84, .25, 1) 1s forwards;
    transition: transform .45s ease, box-shadow .45s ease;
    -webkit-tap-highlight-color: transparent;
}

.seal::before {
    content: "";
    position: absolute;
    inset: -9px;
    z-index: -1;
    background: #eee5da;
    border-radius: 48% 52% 51% 49% / 53% 47% 54% 46%;
    box-shadow: 0 4px 7px rgba(70, 50, 25, .12);
}

.seal::after {
    content: "";
    position: absolute;
    inset: 17px;
    border: 1px solid color-mix(in srgb, var(--seal) 60%, transparent);
    border-radius: 50%;
}

.seal:focus-visible {
    outline: 2px solid var(--seal);
    outline-offset: 10px;
}

.seal .initial {
    position: relative;
    font-family: var(--script);
    font-size: clamp(53px, 12vw, 72px);
    line-height: 1;
    color: var(--seal);
    z-index: 2;
    text-shadow: 1px 1px 0 #ead7ad, 2px 3px 3px rgba(100, 70, 25, .18);
}

.seal .amp {
    position: relative;
    margin-top: 10px;
    font-size: 21px;
    color: color-mix(in srgb, var(--seal) 85%, #000);
    z-index: 2;
}

.open-text {
    position: absolute;
    bottom: 7vh;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9a7845;
    opacity: 0;
    animation: openTextEntrance 1s ease 1.35s forwards, breathe 2.2s ease-in-out 2.35s infinite;
    transition: opacity .5s ease;
}

.envelope.open .flap {
    transform: rotateX(-175deg);
}

.envelope.open .seal {
    animation: sealOut 1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.opening-now .open-text {
    animation: none;
    opacity: 0;
}

@keyframes envelopeEntrance {
    0% { opacity: 0; transform: translateY(35px) scale(.82) rotateX(8deg); filter: drop-shadow(0 10px 12px rgba(86, 65, 38, .08)); }
    60% { opacity: 1; transform: translateY(-5px) scale(1.025) rotateX(0deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); filter: drop-shadow(0 30px 30px var(--shadow)); }
}

@keyframes sealEntrance {
    0% { opacity: 0; transform: translate(-50%, -50%) translateZ(100px) scale(.65); }
    70% { opacity: 1; transform: translate(-50%, -50%) translateZ(100px) scale(1.08); }
    100% { opacity: 1; transform: translate(-50%, -50%) translateZ(100px) scale(1); }
}

@keyframes sealOut {
    0% { transform: translate(-50%, -50%) translateZ(100px) scale(1); opacity: 1; }
    40% { transform: translate(-50%, -50%) translateZ(160px) scale(1.08); }
    100% { transform: translate(-50%, -50%) translateZ(220px) scale(.35); opacity: 0; }
}

@keyframes openTextEntrance {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: .8; transform: translateY(0); }
}

@keyframes breathe {
    0%, 100% { opacity: .45; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* =========================================================
   BOSH QISM — ravoq ichida ismlar
========================================================= */

.hero-page {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5eadc;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 520px;
    padding: 70px 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--ink);
}

.hero-welcome {
    font-family: var(--display);
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.6;
    letter-spacing: 4px;
    color: #9d7c4c;
}

.hero-of {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px;
    color: #b18a4b;
    font-size: 16px;
}

.hero-of span {
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b18a4b, transparent);
}

.hero-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--script);
    font-size: clamp(54px, 13vw, 88px);
    font-weight: 400;
    line-height: .95;
    color: #9b7845;
    word-break: break-word;
}

.hero-names small {
    font-family: var(--script);
    font-size: .6em;
    line-height: 1;
    margin: 6px 0;
}

.hero-divider {
    margin-top: 22px;
    font-size: 18px;
    color: #b18a4b;
}

.hero-date {
    margin-top: 12px;
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: 5px;
    color: var(--ink);
}

.hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--ink);
}

.hero-scroll span {
    font-size: 12px;
    letter-spacing: 3px;
}

.hero-scroll b {
    font-size: 22px;
    font-weight: 400;
    animation: heroArrow 1.7s infinite;
}

@keyframes heroArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* =========================================================
   SANA KARTOCHKASI
========================================================= */

.date-section,
.nikkah-section,
.quote-section,
.program-section,
.countdown-section,
.location-section,
.rsvp-section,
.final-section {
    padding: 90px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.date-section {
    padding: 70px 20px 60px;
    background: linear-gradient(180deg, #fbf5ed 0%, #f8eee2 50%, #fbf5ed 100%);
}

.date-ornament,
.date-bottom-ornament {
    font-size: 14px;
    letter-spacing: 2px;
    color: #b18a4b;
    white-space: nowrap;
}

.date-kicker {
    margin-top: 28px;
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 5px;
    color: #aa8449;
}

#app .date-title {
    margin-top: 5px;
    font-size: clamp(50px, 12vw, 84px);
    color: var(--ink);
}

.date-subtitle {
    margin-top: 10px;
    font-size: clamp(18px, 4.5vw, 23px);
    font-style: italic;
    color: var(--gold-2);
}

.date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 40px;
}

.date-number,
.date-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--display);
    color: var(--gold-2);
}

.date-number {
    font-size: clamp(64px, 16vw, 96px);
    line-height: 1;
}

.date-number span,
.date-month span {
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--ink);
}

.date-month {
    font-size: clamp(22px, 5.5vw, 30px);
    font-style: italic;
}

.date-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #b18a4b;
}

.date-divider span {
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, transparent, #b18a4b, transparent);
}

.date-ornament-small {
    margin-top: 30px;
    color: #b18a4b;
}

.date-countdown {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 34px;
}

.date-countdown strong {
    font-family: var(--display);
    font-size: clamp(50px, 13vw, 80px);
    font-weight: 400;
    line-height: 1;
    color: #b28a48;
}

.date-countdown span {
    font-size: 18px;
    letter-spacing: 3px;
    color: #9c7947;
}

/* =========================================================
   NIKOH — ravoqli fon
========================================================= */

.nikkah-section {
    min-height: 100vh;
    background-color: #fbf5ed;
    background-image: url("assets/invitation-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ornament-frame {
    width: min(94vw, 560px);
    padding: 90px 44px 100px;
}

.nikkah-content {
    position: relative;
    z-index: 2;
}

.arabic {
    font-family: var(--arabic);
    color: #a9854c;
}

.arabic.large {
    font-size: 26px;
    margin-bottom: 26px;
}

.nikkah-title {
    font-family: var(--display);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 1.5px;
}

#app .nikkah-content h2 {
    font-size: clamp(54px, 13vw, 92px);
    margin: 14px 0 4px;
    word-break: break-word;
}

.mini-line,
.gold-rule {
    color: #b18a4b;
    margin: 10px auto;
}

.gold-rule {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b18a4b, transparent);
}

.with {
    font-family: var(--script);
    font-size: 42px;
    color: #a98147;
    margin: 10px 0;
}

.invitation-text {
    max-width: 420px;
    margin: 28px auto 0;
    font-size: 19px;
    line-height: 1.6;
}

/* =========================================================
   OYAT
========================================================= */

.quote-section {
    padding: 60px 24px 70px;
    background: radial-gradient(circle, #fffaf3, #f1e5d6);
}

.quote-decoration {
    font-size: 25px;
    color: #b18a4b;
    margin-bottom: 22px;
}

.arabic-quote {
    font-family: var(--arabic);
    font-size: clamp(28px, 8vw, 50px);
    color: var(--gold-2);
    margin-bottom: 22px;
}

.quote {
    font-family: var(--display);
    font-size: clamp(21px, 5vw, 30px);
    font-style: italic;
    color: var(--ink);
    max-width: 560px;
}

.quote-source {
    margin-top: 15px;
    font-size: 17px;
}

/* =========================================================
   KUN TARTIBI
========================================================= */

.program-section {
    background: #f8f1e7;
    padding-bottom: 60px;
}

.timeline {
    position: relative;
    width: min(94vw, 720px);
    margin-top: 40px;
    padding: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, #b28a48 8%, #b28a48 92%, transparent);
    transform: translateX(-50%);
}

.timeline-flower {
    position: absolute;
    top: 0;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fbf5ed;
    color: #b28a48;
    font-size: 32px;
    z-index: 10;
    box-shadow: 0 0 0 8px rgba(251, 245, 237, .85);
    transition: top .15s linear;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 35px 30px;
    z-index: 2;
}

.timeline-item.left {
    margin-right: auto;
    text-align: right;
}

.timeline-item.right {
    margin-left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 58px;
    width: 9px;
    height: 9px;
    background: #fbf5ed;
    border: 1px solid #b28a48;
    transform: rotate(45deg);
    z-index: 5;
}

.timeline-item.left::after { right: -5px; }
.timeline-item.right::after { left: -5px; }

.timeline-time {
    font-family: var(--script);
    font-size: 44px;
    line-height: 1;
    color: var(--gold-2);
}

.timeline-card h3 {
    margin-top: 8px;
    font-size: 23px;
    font-weight: 500;
    color: var(--ink);
}

.timeline-card p {
    margin-top: 6px;
    font-size: 17px;
    line-height: 1.45;
    color: var(--ink);
}

/* =========================================================
   SANOQ
========================================================= */

.countdown-section {
    padding: 60px 20px 65px;
    background: linear-gradient(135deg, #f3e8da, #fffaf4);
}

#app .countdown-section h2 {
    font-size: clamp(40px, 10vw, 70px);
    max-width: 640px;
}

.countdown {
    width: min(94vw, 700px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 40px;
}

.count-box {
    padding: 25px 8px;
    border: 1px solid rgba(178, 138, 72, .3);
}

.count-box strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(27px, 7vw, 50px);
    font-weight: 400;
    color: var(--gold-2);
}

.count-box span {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 2px;
}

/* =========================================================
   MANZIL
========================================================= */

.location-section {
    padding: 70px 18px 80px;
    background: radial-gradient(circle at top, #fffdf9 0%, #f7eee3 55%, #eee0cf 100%);
}

#app .location-section h2 {
    margin-bottom: 26px;
}

.location-venue-image {
    width: min(92vw, 520px);
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(178, 138, 72, .35);
    box-shadow: 0 18px 40px rgba(80, 55, 25, .16);
}

.location-venue-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.location-info {
    margin-top: 28px;
}

.city {
    letter-spacing: 5px;
    font-size: 13px;
}

.location-info h3 {
    margin-top: 8px;
    font-family: var(--script);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--gold-2);
}

.location-address {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.5;
}

.location-line {
    width: 100px;
    height: 1px;
    margin: 22px auto;
    background: #b28a48;
}

.location-time {
    font-family: var(--display);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 3px;
}

.map-box {
    width: min(92vw, 520px);
    height: 280px;
    margin: 32px auto 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(178, 138, 72, .45);
    background: linear-gradient(135deg, #eee9df, #dfe5e7);
    box-shadow: 0 15px 35px rgba(80, 55, 25, .12);
}

.map-box iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-button,
.gold-button {
    display: inline-block;
    margin-top: 25px;
    min-width: 220px;
    padding: 15px 28px;
    border: none;
    border-radius: 40px;
    background: #cda85b;
    color: white;
    font-family: var(--serif);
    font-size: 17px;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(100, 70, 30, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}

.map-button:hover,
.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(100, 70, 30, .25);
}

.gold-button:disabled {
    opacity: .6;
    cursor: default;
}

/* =========================================================
   TILAKLAR VA RSVP
========================================================= */

.rsvp-section {
    padding: 80px 22px;
    background: linear-gradient(180deg, #fbf5ed, #f3e8da);
}

#app .rsvp-section h2 {
    font-size: clamp(44px, 11vw, 72px);
}

.rsvp-text {
    max-width: 380px;
    margin: 14px auto 28px;
    font-size: 19px;
    line-height: 1.5;
}

.rsvp-form {
    width: 100%;
    max-width: 380px;
}

.guest-input {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(178, 138, 72, .45);
    border-radius: 12px;
    background: rgba(255, 255, 255, .55);
    color: var(--ink);
    font-size: 17px;
    outline: none;
    text-align: center;
    transition: border-color .25s ease, background .25s ease;
}

.guest-wish {
    min-height: 110px;
    resize: none;
    text-align: left;
}

.guest-input::placeholder {
    color: #b39a73;
}

.guest-input:focus {
    border-color: #b28a48;
    background: rgba(255, 255, 255, .85);
}

.rsvp-form .gold-button {
    margin-top: 6px;
}

.rsvp-question {
    margin: 34px 0 14px;
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 2px;
}

.rsvp-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rsvp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 1px solid rgba(178, 138, 72, .5);
    border-radius: 40px;
    background: rgba(255, 255, 255, .4);
    color: var(--ink);
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
}

.rsvp-button span {
    color: #b28a48;
    font-size: 18px;
}

.rsvp-button.active {
    background: #cda85b;
    border-color: #cda85b;
    color: #fff;
}

.rsvp-button.active span {
    color: #fff;
}

.rsvp-message {
    min-height: 22px;
    margin-top: 16px;
    font-size: 16px;
}

/* =========================================================
   YAKUNIY QISM
========================================================= */

.final-section {
    min-height: 90vh;
    background: radial-gradient(circle, #fffdf9, #eee1d1);
}

.final-flowers {
    font-size: 35px;
    color: #b28a48;
    margin-bottom: 26px;
}

.final-with {
    font-family: var(--script);
    font-size: 45px;
    color: var(--gold-2);
}

#app .final-section h2 {
    line-height: .95;
    word-break: break-word;
}

#app .final-section h2 span {
    display: block;
    font-family: var(--serif);
    font-size: 30px;
    margin: 12px;
}

.final-date {
    margin-top: 25px;
    letter-spacing: 6px;
    font-family: var(--display);
}

.final-message {
    max-width: 450px;
    margin-top: 28px;
    font-size: 20px;
    line-height: 1.5;
}

.final-heart {
    margin-top: 30px;
    font-size: 45px;
    color: #b28a48;
}

.credit {
    display: block;
    margin-top: 34px;
    font-size: 13px;
    letter-spacing: 1px;
    color: #9a7a4c;
    text-decoration: none;
    border-bottom: 1px solid rgba(154, 122, 76, .4);
    padding-bottom: 2px;
}

.credit-only {
    padding: 34px 20px 100px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.credit-only .credit {
    margin-top: 0;
}

/* =========================================================
   «NAMUNA» BELGISI (to'lov qilinmagan)
========================================================= */

.wm {
    position: fixed;
    inset: 0;
    z-index: 150;
    overflow: hidden;
    pointer-events: none;
}

.wm-words {
    position: absolute;
    inset: -60%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 70px 56px;
    transform: rotate(-30deg);
}

.wm-words span {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 40px;
    letter-spacing: 0.3em;
    color: rgba(150, 110, 50, 0.15);
    white-space: nowrap;
    user-select: none;
}

.wm-bar {
    position: fixed;
    left: 50%;
    bottom: 90px; /* musiqa tugmasi bilan ustma-ust tushmasin */
    transform: translateX(-50%);
    pointer-events: auto;
    background: rgba(128, 105, 68, 0.94);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 9px 16px;
    border-radius: 18px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   KO'RINISHGA KELGANDA PAYDO BO'LISH
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

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

body.embed .hero-page {
    height: 760px;
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .envelope, .seal, .open-text { animation-duration: .01s; animation-delay: 0s; }
}

/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 600px) {

    .envelope {
        width: 94vw;
        height: 132vw;
        max-height: 82vh;
    }

    .open-text {
        bottom: 4vh;
        font-size: 13px;
    }

    .flower {
        font-size: 48px;
    }

    .hero-content {
        padding: 60px 40px 40px;
    }

    .ornament-frame {
        padding: 80px 30px 90px;
    }

    .date-section {
        padding: 70px 16px 60px;
    }

    .date-ornament,
    .date-bottom-ornament {
        font-size: 11px;
    }

    /* kun tartibi — hammasi o'ng tomonda */
    .timeline {
        width: 100%;
        margin-top: 30px;
        padding: 10px 10px 30px 48px;
    }

    .timeline::before {
        left: 20px;
        transform: none;
        background: linear-gradient(180deg, transparent, #b28a48 6%, #b28a48 94%, transparent);
    }

    .timeline-flower {
        left: 20px;
        width: 42px;
        height: 42px;
        font-size: 27px;
        z-index: 20;
        box-shadow: 0 0 0 7px #fbf5ed, 0 5px 15px rgba(100, 70, 30, .15);
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        margin: 0;
        padding: 30px 5px 40px 30px;
        text-align: left;
    }

    .timeline-item::after,
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: -32px;
        right: auto;
        top: 44px;
        width: 8px;
        height: 8px;
    }

    .timeline-time {
        font-size: 45px;
        margin-bottom: 8px;
    }

    .countdown {
        gap: 5px;
    }

    .count-box {
        padding: 18px 4px;
    }

    .count-box span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .location-section {
        padding: 55px 15px 65px;
    }

    .location-venue-image,
    .map-box {
        width: 94vw;
    }

    .map-box {
        height: 250px;
    }

    .location-info h3 {
        font-size: 43px;
    }

    .music-toggle {
        width: 52px;
        height: 52px;
        font-size: 21px;
        right: 16px;
        bottom: 16px;
    }
}
