.section-paper {
    position: relative;
    padding: 38px 26px;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.7), transparent 18%),
        radial-gradient(circle at 82% 42%, rgba(130, 80, 45, 0.06), transparent 20%),
        var(--paper);
}

.section-paper::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.36), transparent 23%),
        radial-gradient(circle at 70% 74%, rgba(92, 54, 31, 0.035), transparent 24%);
    mix-blend-mode: multiply;
}

.section-title {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
    color: #080604;
}

.hand-doodle { display: none; }

.cover-section {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: 0 20px 22px;
    overflow: hidden;
    color: #f8efe5;
    background: #1c0805;
}

.cover-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 64%, rgba(0, 0, 0, 0.48) 100%);
}

.cover-section__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cover-section__bottom {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 4px;
}

.cover-section__caption {
    margin: 0;
    font-family: var(--font-hand);
    font-size: 25px;
    line-height: 1;
    color: #fff8f0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.cover-section__arrow {
    font-size: 30px;
    color: #fff8f0;
    filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.72));
    animation: coverArrow 1.45s ease-in-out infinite;
}

.music-section {
    min-height: 390px;
    text-align: center;
    padding-top: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.music-section__image {
    position: relative;
    z-index: 1;
    width: min(82%, 286px);
    height: auto;
    margin: 0 auto 16px;
    object-fit: contain;
}

.record-player {
    position: relative;
    z-index: 1;
    width: 255px;
    margin: 0 auto;
    perspective: 800px;
}

.record-player__lid {
    height: 112px;
    border: 7px solid #a2573f;
    border-bottom: 0;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(145deg, #f7e6cf, #fdf7e9);
    box-shadow: inset 0 0 22px rgba(124, 62, 42, 0.16);
    display: grid;
    place-items: center;
    transform: rotateX(2deg);
}

.record-player__lid span {
    font-family: var(--font-display);
    font-size: 20px;
    font-style: italic;
}

.record-player__base {
    position: relative;
    height: 88px;
    border-radius: 8px;
    background: linear-gradient(160deg, #b96d45, #6e3222);
    box-shadow: var(--shadow);
}

.record-player__disc {
    position: absolute;
    width: 86px;
    height: 86px;
    left: 34px;
    top: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, #d7b071 0 6px, #231716 7px 18px, #050505 19px 100%);
    box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.02);
}

.record-player.is-playing .record-player__disc {
    animation: spin 2.4s linear infinite;
}

.record-player__arm {
    position: absolute;
    width: 82px;
    height: 6px;
    right: 48px;
    top: 18px;
    border-radius: 999px;
    background: #201513;
    transform: rotate(-14deg);
    transform-origin: right center;
}

.record-player__speaker {
    position: absolute;
    left: 19px;
    bottom: 15px;
    width: 54px;
    height: 28px;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, #3b1b14 0 3px, #8f5036 3px 6px);
}

.record-player__knob {
    position: absolute;
    right: 23px;
    bottom: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #23110d;
}

.music-section__hint {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 310px;
    margin: 0 auto 12px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.music-section__play {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 0;
    color: #050302;
    background: transparent;
    box-shadow: none;
    font-size: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.music-section__play::before,
.music-section__play::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1.5px solid rgba(107, 29, 15, 0.28);
    border-radius: 50%;
    transform: scale(0.72);
    opacity: 0;
    pointer-events: none;
    animation: playRipple 2.7s ease-out infinite;
}

.music-section__play::after {
    animation-delay: 1.15s;
    border-color: rgba(107, 29, 15, 0.18);
}

.music-section__play:hover {
    transform: scale(1.05);
    opacity: 0.78;
}

.music-section__play-icon {
    display: block;
    /* width: 0;
    height: 0; */
    font-size: 32px;
    color : #050302;
    /* margin-left: 5px; */
    /* border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 27px solid #050302; */
}

.music-section__progress-wrap {
    position: relative;
    z-index: 1;
    width: min(78%, 292px);
    margin: 14px auto 0;
}

.music-section__progress {
    position: relative;
    width: 100%;
    height: 18px;
    cursor: pointer;
}

.music-section__progress::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    border-radius: 999px;
    background: rgba(43, 25, 17, 0.22);
    transform: translateY(-50%);
}

.music-section__progress-fill {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0%;
    height: 2px;
    border-radius: 999px;
    background: #050302;
    transform: translateY(-50%);
    transition: width 0.2s linear;
}

.music-section__progress-fill::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #050302;
    transform: translateY(-50%);
    box-shadow: 0 1px 5px rgba(43, 25, 17, 0.25);
}

.music-section__times {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(43, 25, 17, 0.58);
}

.music-section__curve {
    display: none;
}

.music-section__arrow {
    position: absolute;
    right: 48px;
    bottom: 85px;
    z-index: 1;
    width: 126px;
    height: auto;
    pointer-events: none;
}

.message-section {
    padding-top: 28px;
    padding-bottom: 34px;
    text-align: center;
}

.message-section .section-title {
    margin-bottom: 20px;
}

.message-section__spark {
    position: relative;
    z-index: 1;
    width: 42px;
    height: auto;
    margin: 0 auto -1px -5px;
    pointer-events: none;
}

.message-section__body {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 330px;
    font-size: 20px;
    line-height: 1.45;
}

.message-section__name {
    position: relative;
    font-family: var(--font-hand);
    font-size: 25px;
    line-height: 1.1;
}

.message-section__scribble {
    position: relative;
    z-index: 1;
    display: block;
    width: 96px;
    height: auto;
    margin: 28px auto 0;
    pointer-events: none;
}

.countdown-section {
    padding-top: 30px;
    padding-bottom: 34px;
    text-align: center;
}

.countdown-section__eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown);
}

.countdown-section__timer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 6px;
    width: 100%;
    max-width: 350px;
    margin: 24px auto 0;
    padding: 18px 12px 16px;
    border: 1px solid rgba(107, 29, 15, 0.12);
    border-radius: 18px;
    background: rgba(255, 250, 241, 0.58);
    box-shadow: 0 12px 28px rgba(73, 38, 21, 0.08);
}

.countdown-section__unit {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 6px;
}

.countdown-section__value {
    font-family: var(--font-display);
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1;
    font-weight: 700;
    color: var(--brown);
    transition: transform 0.18s ease;
}

.countdown-section__label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.countdown-section__sep {
    padding-top: 2px;
    font-family: var(--font-display);
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1;
    color: rgba(107, 29, 15, 0.28);
}

.calendar-section {
    padding-top: 34px;
}

.calendar-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 365px;
    margin: 0 auto;
    padding: 34px 22px 24px;
    background: #eadac1;
    border: 1px solid rgba(111, 70, 38, 0.2);
    box-shadow: 0 8px 20px rgba(57, 33, 18, 0.14);
}

.calendar-card::before,
.calendar-card::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 64px;
    height: 28px;
    background: rgba(204, 181, 147, 0.82);
    transform: rotate(-10deg);
}

.calendar-card::before {
    left: -3px;
}

.calendar-card::after {
    right: -4px;
    transform: rotate(10deg);
}

.calendar-card__note {
    position: absolute;
    left: 16px;
    top: 12px;
    width: 78px;
    padding: 8px 6px;
    font-family: var(--font-hand);
    font-size: 17px;
    line-height: 0.95;
    color: #5a311f;
    background: #f9f0de;
    border: 1px solid rgba(111, 70, 38, 0.16);
    transform: rotate(-7deg);
}

.calendar-card__month {
    margin: 0 0 22px;
    padding-left: 82px;
    font-family: var(--font-display);
    font-size: 18px;
    text-align: center;
}

.calendar-card__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    font-family: var(--font-display);
    font-size: 13px;
    color: #4b3326;
}

.calendar-card__cell {
    min-height: 29px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid rgba(87, 54, 31, 0.1);
}

.calendar-card__cell--head {
    min-height: 24px;
    font-size: 11px;
    color: #6c574a;
}

.calendar-card__cell--event {
    position: relative;
    color: var(--red);
    font-weight: 700;
}

.calendar-card__cell--event::after {
    content: "";
    position: absolute;
    width: 27px;
    height: 24px;
    border: 1.5px solid var(--red);
    border-radius: 50%;
    transform: rotate(-10deg);
}

.location-section {
    text-align: center;
}

.location-section__address,
.location-section__label,
.location-section__map-text {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.location-section__venue {
    position: relative;
    z-index: 1;
    margin: 10px 0 2px;
    color: #b3382d;
    font-size: 20px;
    font-weight: 800;
}

.venue-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 354px;
    height: 178px;
    margin: 30px auto 22px;
    color: #6b625b;
    background: linear-gradient(#d9d4cc, #f0eee9);
    border: 1px solid #aaa097;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,0.42);
}

.venue-card__sign {
    height: 26px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 11px;
    color: #f3f0ea;
    background: #989188;
}

.venue-card__windows {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 24px 28px 0;
}

.venue-card__windows span {
    height: 92px;
    border: 3px double #777069;
    border-radius: 36px 36px 0 0;
    background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(120, 112, 103, 0.24) 14px 16px);
}

.venue-card__trees {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.venue-card__trees span {
    width: 16px;
    height: 34px;
    background: linear-gradient(160deg, transparent 0 18%, #8c9284 19% 100%);
    clip-path: polygon(50% 0, 100% 90%, 0 90%);
}

.map-button {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 66px;
    margin: 18px auto 0;
    border: 2px solid #b73528;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transform: rotate(-11deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-button:hover {
    transform: rotate(-7deg) scale(1.04);
    box-shadow: 0 8px 18px rgba(107, 29, 15, 0.18);
}

.map-button img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transform: rotate(11deg);
}

.rsvp-section {
    padding-top: 30px;
}

.sparkles {
    position: absolute;
    right: 22px;
    top: 26px;
    width: 32px;
    height: 62px;
}

.sparkles::before,
.sparkles::after {
    content: "✧";
    position: absolute;
    font-size: 26px;
    color: #2f2119;
}

.sparkles::after {
    right: 0;
    top: 30px;
    font-size: 18px;
}

.rsvp-form {
    position: relative;
    z-index: 1;
}

.rsvp-form__bot-field {
    display: none;
}

.rsvp-form__label,
.rsvp-form__choices legend,
.rsvp-form__counter span {
    display: block;
    font-size: 15px;
    line-height: 1.25;
}

.rsvp-form__label span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.rsvp-form__input {
    width: 100%;
    height: 42px;
    margin: 18px 0 20px;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1.5px solid var(--line);
    background: transparent;
    color: var(--ink);
    outline: none;
}

.rsvp-form__input:focus {
    border-bottom-color: var(--brown);
}

.rsvp-form__choices {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.rsvp-form__choices label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 13px;
    font-size: 15px;
}

.rsvp-form__choices input {
    width: 20px;
    height: 20px;
    accent-color: #130d09;
}

.rsvp-form__counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 24px;
}

.counter-control {
    display: inline-grid;
    grid-template-columns: 36px 48px 36px;
    height: 36px;
    border: 1px solid rgba(37, 23, 15, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

.counter-control button,
.counter-control input {
    border: 0;
    background: rgba(255, 252, 246, 0.55);
    color: var(--ink);
    text-align: center;
}

.counter-control button {
    font-size: 20px;
}

.counter-control input {
    width: 48px;
    border-left: 1px solid rgba(37, 23, 15, 0.13);
    border-right: 1px solid rgba(37, 23, 15, 0.13);
    outline: none;
}

.counter-control input::-webkit-inner-spin-button,
.counter-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.rsvp-form__toast {
    display: none;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.rsvp-form__toast.show {
    display: block;
}

.rsvp-form__toast--err {
    color: #8d291c;
    background: rgba(183, 56, 43, 0.09);
}

.rsvp-form__toast--ok {
    color: #37602a;
    background: rgba(76, 126, 54, 0.12);
}

.rsvp-form__input--error,
.wi2__input--error {
    border-color: var(--red) !important;
}

.rsvp-form__submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--brown);
    color: #fff8ef;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(107, 29, 15, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rsvp-form__submit:hover {
    background: var(--brown-2);
    transform: translateY(-1px);
}

.rsvp-form__submit::before {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -45%;
    width: 34%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.72),
        rgba(255, 255, 255, 0.18),
        transparent
    );
    transform: translateX(-120%) skewX(-22deg);
    animation: submitLightSweep 2.8s ease-in-out infinite;
    pointer-events: none;
}

.closing-section {
    min-height: 450px;
    text-align: center;
}

.closing-section__names {
    position: relative;
    z-index: 1;
    margin: 22px 0 26px;
    font-family: var(--font-hand);
    font-size: 31px;
    line-height: 1.1;
}


.closing-section__heart {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 70px;
    margin: 0 auto;
}


/* .closing-section__heart {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 70px;
    margin: 0 auto;
}

.closing-section__heart::before {
    content: "";
    position: absolute;
    inset: 8px 8px 0;
    border-left: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    border-radius: 0 0 0 34px;
    transform: rotate(-37deg);
}

.closing-section__heart::after {
    content: "";
    position: absolute;
    inset: 8px 8px 0;
    border-right: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    border-radius: 0 0 34px 0;
    transform: rotate(37deg);
} */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes coverArrow {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.95;
    }
    50% {
        transform: translateY(7px);
        opacity: 0.62;
    }
}

@keyframes submitLightSweep {
    0%, 42% {
        transform: translateX(-140%) skewX(-22deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    72%, 100% {
        transform: translateX(520%) skewX(-22deg);
        opacity: 0;
    }
}

@keyframes playRipple {
    0% {
        transform: scale(0.68);
        opacity: 0;
    }
    18% {
        opacity: 0.62;
    }
    72%, 100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media (max-width: 380px) {
    .section-paper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cover-section {
        min-height: 100svh;
    }

    .record-player {
        width: 238px;
    }

    .countdown-section__timer {
        gap: 4px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .calendar-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}
