:root {
    --bg-0: #0b0509;
    --bg-1: #160a10;
    --bg-2: #210f18;
    --ink: #f6ede9;
    --ink-dim: rgba(246, 237, 233, .58);
    --ink-faint: rgba(246, 237, 233, .34);
    --accent: #1c58f0;
    --accent-2: #86d1ff;
    --accent-glow: rgba(28, 88, 240, .5);
    --card: rgba(255, 255, 255, .04);
    --card-border: rgba(255, 255, 255, .09);
    --serif: 'Playfair Display', serif;
    --sans: 'Jost', sans-serif;
    --radius: 22px;
}

html[data-theme="lavender"] {
    --accent: #a78bff;
    --accent-2: #d6c6ff;
    --accent-glow: rgba(167, 139, 255, .5);
    --bg-1: #100a19;
    --bg-2: #181026;
}

html[data-theme="amber"] {
    --accent: #ffab3d;
    --accent-2: #ffd58a;
    --accent-glow: rgba(255, 171, 61, .5);
    --bg-1: #170f08;
    --bg-2: #211609;
}

html[data-theme="wine"] {
    --accent: #ff4d4d;
    --accent-2: #ff9d9d;
    --accent-glow: rgba(255, 77, 77, .5);
    --bg-1: #150708;
    --bg-2: #210c0e;
}

html[data-theme="teal"] {
    --accent: #3ddad0;
    --accent-2: #9df3ec;
    --accent-glow: rgba(61, 218, 208, .45);
    --bg-1: #071414;
    --bg-2: #0a1e1d;
}


* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #000;
    font-family: var(--sans);
    color: var(--ink);
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* prevents scrolling past the lock screen before the PIN is entered */
body.locked {
    overflow: hidden;
    height: 100vh;
}

.app {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    isolation: isolate;
    background: radial-gradient(120% 60% at 50% -10%, var(--bg-2), transparent 60%), linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}

.petals {
    position: fixed;
    inset: 0;
    width: 100%;
    margin: 0 auto;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -5%;
    width: 9px;
    height: 11px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 70% 30% 65% 35%/60% 40% 60% 40%;
    opacity: .55;
    animation: fall linear infinite;
    filter: blur(.2px);
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(115vh) translateX(var(--drift, 20px)) rotate(320deg);
    }
}

/* position:fixed guarantees the lock screen always covers the whole
   viewport, regardless of how tall the page underneath grows */
.lock {
    position: fixed;
    inset: 0;
    z-index: 10;
    min-height: 100vh;
    background: radial-gradient(120% 60% at 50% -10%, var(--bg-2), transparent 60%), linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15vh 32px 40px;
    text-align: center;
    transition: opacity .7s ease, transform .7s ease;
    overflow-y: auto;
}

.lock.hidden {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
    visibility: hidden;
}

.heart {
    width: 56px;
    height: 56px;
    margin-bottom: 26px;
    filter: drop-shadow(0 0 22px var(--accent-glow));
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.names {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 2.1rem;
    letter-spacing: .02em;
    margin: 0 0 14px;
}

.names em {
    color: var(--accent-2);
    font-style: italic;
    font-weight: 500;
    padding: 0 6px;
}

.lock-sub {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    line-height: 1.9;
    margin-bottom: 30px;
}

.dots {
    display: flex;
    gap: 14px;
    margin-bottom: 44px;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid var(--ink-faint);
    transition: all .25s ease;
}

.dot.filled {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
}

.dots.shake {
    animation: shake .4s ease;
}

@keyframes shake {
    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 290px;
}

/* fixed: this rule previously had stray "min-height: calc(100vh - 48px)"
   and a duplicate border/border-radius accidentally merged in, which
   blew each keypad button up to almost full viewport height */
.key {
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.35rem;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, transform .1s ease;
}

.key:active {
    transform: scale(.92);
    background: rgba(255, 255, 255, .09);
}

.key.ghost {
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 1.1rem;
}

.key.empty {
    visibility: hidden;
}

.lock-hint {
    margin-top: 26px;
    font-size: .68rem;
    color: var(--ink-faint);
    letter-spacing: .08em;
}

/* ================= SITE ================= */
#site,
.site {
    position: relative;
    z-index: 3;
    display: none;
}

#site.show,
.site.show {
    display: block;
    animation: siteIn .8s ease both;
}

@keyframes siteIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.topbar {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    pointer-events: none;
}

.pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 6, 8, .55);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 8px 14px;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-dim);
    cursor: pointer;
}

.play-pill {
    padding: 6px;
    gap: 10px;
}

.play-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px var(--accent-glow);
    flex-shrink: 0;
}

.play-btn svg {
    width: 14px;
    height: 14px;
    fill: #1a0a0f;
}

.wave {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
}

.wave span {
    width: 2.5px;
    height: 10px;
    background: var(--ink-dim);
    border-radius: 2px;
    animation: wv 1s ease-in-out infinite;
}

.wave span:nth-child(2) {
    animation-delay: .15s;
}

.wave span:nth-child(3) {
    animation-delay: .3s;
}

.wave span:nth-child(4) {
    animation-delay: .45s;
}

@keyframes wv {

    0%,
    100% {
        height: 5px;
    }

    50% {
        height: 13px;
    }
}

.paused .wave span {
    animation-play-state: paused;
    height: 4px;
}

.kolor-pill svg {
    width: 13px;
    height: 13px;
}

section {
    position: relative;
    padding: 0 26px;
}

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

.reveal.in {
    opacity: 1;
    transform: none;
}

.eyebrow {
    font-size: .68rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 10px;
}

.eyebrow.center {
    text-align: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 0 30px 56px;
    background:
        linear-gradient(180deg, rgba(11, 5, 9, .15) 0%, rgba(11, 5, 9, .55) 55%, var(--bg-0) 96%),
        url("img/26.jpg") no-repeat,
        radial-gradient(90% 55% at 50% 20%, #3a2032 0%, #1c1018 45%, #0b0509 78%);
    background-position: center center;
    background-size: auto, cover, auto;
}

.hero-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 40% at 78% 18%, rgba(255, 201, 140, .35), transparent 60%),
        radial-gradient(70% 45% at 20% 10%, rgba(255, 120, 150, .22), transparent 65%);
}

.hero .names {
    font-size: 2.6rem;
    margin: 6px 0 22px;
}

.quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-dim);
    max-width: 300px;
    margin: 0 0 18px;
}

.date-tag {
    font-size: .72rem;
    letter-spacing: .24em;
    color: var(--ink-faint);
    margin-bottom: 34px;
}

.btn-primary {
    display: inline-block;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1a0810;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 16px 34px;
    border-radius: 40px;
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* STAT GRIDS (together counter + countdown) */
.together,
.togheterrev {
    padding: 80px 26px 30px;
}

.countdown {
    padding: 70px 26px 30px;
}

.together h2,
.togheterrev h2,
.countdown h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.7rem;
    margin: 6px 0 30px;
    text-align: center;
}

.together h2 em,
.togheterrev h2 em,
.countdown h2 em {
    color: var(--accent-2);
    font-style: italic;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.stat-box {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 4px 14px;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: transform .25s ease, color .25s ease;
}

.stat-num.tick {
    transform: scale(1.14);
    color: var(--accent-2);
}

.stat-label {
    display: block;
    margin-top: 5px;
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.cd-note {
    text-align: center;
    margin-top: 18px;
    font-size: .85rem;
    color: var(--ink-dim);
    font-style: italic;
    font-family: var(--serif);
}

/* CHAPTER */
.chapter,
.chaprev {
    padding: 80px 30px 80px;
}

.chapter-photo {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    background:
        radial-gradient(80% 60% at 70% 20%, rgba(255, 190, 140, .4), transparent 60%),
        linear-gradient(200deg, #2b1420, #150a12 70%);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.chapter-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.chapter-photo:after {
    content: '♥';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: rgba(255, 255, 255, .06);
}

.chapter h2,
.chaprev h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.7rem;
    margin: 0 0 18px;
}

.chapter h2 em,
.chaprev h2 em {
    color: var(--accent-2);
    font-style: italic;
}

.chapter p,
.chaprev p {
    font-size: .94rem;
    line-height: 1.85;
    color: var(--ink-dim);
    margin: 0 0 16px;
}

.chapter p b,
.chaprev p b {
    color: var(--ink);
    font-weight: 600;
}

.chapter .signoff,
.chaprev .signoff {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent-2);
    font-size: 1.05rem;
    margin-top: 8px;
}

/* GALLERY */
.gallery,
.galleryrev {
    padding: 70px 22px;
}

.gallery h2,
.galleryrev h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.7rem;
    margin: 6px 0 34px;
    text-align: center;
}

.gallery h2 em,
.galleryrev h2 em {
    color: var(--accent-2);
    font-style: italic;
}

.collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
    gap: 10px;
}

.collage .tile {
    border-radius: 16px;
    aspect-ratio: 3/4;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease;
}

.collage .tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.collage .tile:active {
    transform: scale(.96);
}

.collage .tile span {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: .62rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .75);
    text-transform: uppercase;
}

.collage .tile:after {
    content: '⤢';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

.swatch-1 {
    background: radial-gradient(90% 70% at 30% 20%, #ffb27a55, transparent 60%), linear-gradient(200deg, #2a1420, #150a10);
}

.swatch-2 {
    background: radial-gradient(90% 70% at 70% 30%, #ff7a9c55, transparent 60%), linear-gradient(220deg, #241018, #12080e);
}

.swatch-3 {
    background: radial-gradient(90% 70% at 40% 60%, #ffd18a4d, transparent 60%), linear-gradient(160deg, #20101a, #120910);
}

.swatch-4 {
    background: radial-gradient(90% 70% at 60% 40%, #b28aff4d, transparent 60%), linear-gradient(180deg, #161020, #0d0a16);
}

.swatch-5 {
    background: radial-gradient(90% 70% at 50% 70%, #7adfff40, transparent 60%), linear-gradient(200deg, #0e1a1c, #081012);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    max-width: 480px;
    margin: 0 auto;
    z-index: 60;
    background: rgba(6, 3, 5, .95);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    padding: 0 18px;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    background: transparent;
}

.lb-frame {
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.lb-photo {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    margin-bottom: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    overflow: hidden;
    background: var(--bg-1);
}

.lb-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.lb-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.lb-desc {
    font-size: .85rem;
    color: var(--ink-dim);
    line-height: 1.6;
    margin: 0;
}

.lb-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--ink);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-prev {
    left: 10px;
}

.lb-next {
    right: 10px;
}

.timeline-lightbox {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 3, 5, .84);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

.timeline-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.timeline-modal {
    width: min(100%, 620px);
    max-height: min(76vh, 620px);
    overflow-y: auto;
    padding: 34px 30px;
    background: linear-gradient(145deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.timeline-modal-title {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 4vw, 2rem);
    line-height: 1.25;
    margin: 8px 0 18px;
}

.timeline-modal-desc {
    color: var(--ink-dim);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    white-space: pre-wrap;
}

/* TIMELINE */
.timeline {
    padding: 80px 30px;
}

.timeline h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.9rem;
    margin: 8px 0 44px;
    text-align: center;
}

.timeline h2 em {
    color: var(--accent-2);
    font-style: italic;
}

.tl-item {
    display: flex;
    gap: 18px;
    margin-bottom: 34px;
}

.tl-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.tl-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.tl-line {
    width: 1px;
    flex: 1;
    background: linear-gradient(var(--accent-glow), transparent);
    margin-top: 6px;
}

.tl-item:last-child .tl-line {
    display: none;
}

.tl-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 6px;
    flex: 1;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.tl-card:hover,
.tl-card:focus-visible {
    background: rgba(255, 255, 255, .07);
    border-color: var(--accent);
    outline: none;
    transform: translateY(-2px);
}

.tl-date {
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 6px;
}

.tl-title {
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.tl-desc {
    font-size: .85rem;
    line-height: 1.6;
    color: var(--ink-dim);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* PLACES / MAP */
.places,
.placesRev {
    padding: 70px 26px 90px;
}

.places h2,
.placesRev h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.7rem;
    margin: 6px 0 14px;
    text-align: center;
}

.places h2 em,
.placesRev h2 em {
    color: var(--accent-2);
    font-style: italic;
}

.places-intro {
    text-align: center;
    font-size: .85rem;
    color: var(--ink-dim);
    line-height: 1.7;
    margin: 0 0 26px;
}

.map-wrap {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

#loveMap {
    width: 100%;
    height: 100%;
    filter: grayscale(.2) contrast(1.05) brightness(.95);
}

.leaflet-popup-content-wrapper {
    background: var(--bg-1);
    color: var(--ink);
    border-radius: 14px;
}

.leaflet-popup-tip {
    background: var(--bg-1);
}

.leaflet-popup-content {
    font-family: var(--sans);
    font-size: .78rem;
    margin: 10px 12px;
}

.leaflet-popup-content b {
    font-family: var(--serif);
    color: var(--accent-2);
    font-size: .92rem;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, .45) !important;
    color: var(--ink-faint) !important;
    font-size: .53rem !important;
}

.leaflet-control-attribution a {
    color: var(--ink-dim) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-1) !important;
    color: var(--ink) !important;
    border-color: var(--card-border) !important;
}

/* CLOSING QUOTE */
.closing,
.closingRev {
    padding: 50px 40px 20px;
    text-align: center;
}

.closing p,
.closingRev p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.5;
}

.closing p em {
    color: var(--accent-2);
    font-style: italic;
}

/* MUSIC */
.music {
    padding: 60px 26px 90px;
}

.music h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.7rem;
    margin: 6px 0 30px;
    text-align: center;
}

.music h2 em {
    color: var(--accent-2);
    font-style: italic;
}

.music-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 26px 24px;
    text-align: center;
}

.disc {
    width: 86px;
    height: 86px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--bg-1) 0 28%, var(--accent) 30% 32%, var(--bg-1) 33% 100%);
    border: 1px solid var(--card-border);
    animation: spin 6s linear infinite;
    animation-play-state: paused;
}

.disc.spinning {
    animation-play-state: running;
}

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

.track-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    margin: 0 0 4px;
}

.track-sub {
    font-size: .72rem;
    letter-spacing: .1em;
    color: var(--ink-faint);
    margin-bottom: 22px;
    text-transform: uppercase;
}

.m-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 26px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.m-play svg {
    width: 20px;
    height: 20px;
    fill: #1a0810;
}

.m-bar {
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
    margin-bottom: 8px;
}

.m-bar i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .25s linear;
}

.m-time {
    display: flex;
    justify-content: space-between;
    font-size: .65rem;
    color: var(--ink-faint);
}

.now-playing {
    margin-top: 16px;
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.now-playing.on {
    color: var(--accent-2);
}

/* LETTER */
.letter {
    padding: 20px 30px 110px;
    text-align: center;
}

.letter h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.8rem;
    margin: 6px 0 34px;
}

.letter h2 em {
    color: var(--accent-2);
    font-style: italic;
}

.envelope {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 5/3.4;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 16px 40px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform .4s ease, opacity .4s ease;
}

.envelope svg {
    width: 34px;
    height: 34px;
    fill: #fff;
    margin-bottom: 10px;
}

.envelope .tap {
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

.envelope.opened {
    transform: scale(.9);
    opacity: 0;
    pointer-events: none;
}

.letter-paper {
    max-width: 340px;
    margin: 24px auto 0;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 0 26px;
    text-align: left;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .6s ease;
}

.letter-paper.open {
    opacity: 1;
    max-height: 900px;
    padding: 30px 26px;
}

.letter-paper p {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ink-dim);
    margin: 0 0 14px;
}

.letter-paper .sign {
    text-align: right;
    font-style: italic;
    color: var(--accent-2);
    font-size: 1.05rem;
}

footer {
    text-align: center;
    padding: 40px 20px 60px;
    font-size: .66rem;
    letter-spacing: .16em;
    color: var(--ink-faint);
    text-transform: uppercase;
}

footer span {
    color: var(--accent-2);
}

@media (min-width: 769px) {
    .app {
        width: 100%;
    }

    .petals,
    .lightbox {
        width: 100%;
    }

    section:not(.hero) {
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero {
        min-height: 760px;
    }

    .chapter-photo {
        aspect-ratio: 16 / 7;
    }

    .map-wrap {
        height: 420px;
    }
}

@media (max-width: 360px) {
    .lock {
        padding-left: 20px;
        padding-right: 20px;
    }

    .keypad {
        gap: 12px;
    }

    .hero .names {
        font-size: 2.25rem;
    }

    .hero,
    .chaprev,
    .timeline {
        padding-left: 20px;
        padding-right: 20px;
    }

    .stat-grid {
        gap: 6px;
    }

    .stat-num {
        font-size: 1.25rem;
    }
}