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

:root {
    --rose:       #C8637A;
    --rose-light: #F2C4CE;
    --rose-pale:  #FFF0F4;
    --gold:       #C9A044;
    --dark:       #3D2128;
    --text:       #5A3840;
    --card:       rgba(255, 255, 255, 0.88);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(242,196,206,0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(200,99,122,0.18) 0%, transparent 55%),
        linear-gradient(135deg, #FFF5F7 0%, #FEFAF8 50%, #FFF0F4 100%);
    background-attachment: fixed;
}

/* ── Floating hearts ── */
.hearts-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.heart-p {
    position: absolute;
    opacity: 0;
    animation: floatUp linear infinite;
    user-select: none;
}

@keyframes floatUp {
    0%   { transform: translateY(105vh) rotate(0deg);   opacity: 0; }
    10%  { opacity: .55; }
    90%  { opacity: .55; }
    100% { transform: translateY(-8vh)  rotate(360deg); opacity: 0; }
}

/* ── Pages ── */
.page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
    padding: env(safe-area-inset-top, 1rem) 1rem env(safe-area-inset-bottom, 1rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
/* Center vertically only when content fits without scrolling */
@supports (align-items: safe center) {
    .page { align-items: safe center; }
}
.page.active { opacity: 1; pointer-events: all; }

.content      { width: 100%; max-width: 520px; text-align: center; padding: 1rem 0; }
.content.wide { max-width: 580px; }

/* ── Card ── */
.card {
    background: var(--card);
    backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: 0 24px 60px rgba(200,99,122,.16);
    border: 1px solid rgba(242,196,206,.5);
}

/* ── Page 1 ── */
.label {
    font-size: .82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose);
    font-weight: 300;
    margin-bottom: .5rem;
}

.name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3.8rem;
    color: var(--dark);
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--rose-light), var(--rose), var(--rose-light));
    border-radius: 2px;
    margin: 1.2rem auto 1.4rem;
}

.typing-text {
    font-size: 1.08rem;
    line-height: 1.85;
    min-height: 3.8rem;
    margin-bottom: 2rem;
    color: var(--text);
}

/* ── Page 2 ── */
.envelope {
    font-size: 3.2rem;
    margin-bottom: .8rem;
    display: block;
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

.card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    line-height: 1.45;
    color: var(--dark);
    margin-bottom: 2rem;
}

.btn-row {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: .8rem;
}

.no-hint {
    font-size: .85rem;
    font-style: italic;
    color: #bbb;
    min-height: 1.3rem;
    transition: color .3s;
}

/* ── Buttons ── */
.btn-primary, .btn-yes {
    background: linear-gradient(135deg, var(--rose) 0%, #E8839A 100%);
    color: #fff;
    border: none;
    padding: .88rem 2.4rem;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(200,99,122,.36);
    transition: transform .2s, box-shadow .2s, opacity .5s;
}
.btn-primary:hover, .btn-yes:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px rgba(200,99,122,.46);
}

.btn-primary.hidden {
    opacity: 0;
    pointer-events: none;
}

.btn-no {
    display: none;
    margin: .8rem auto 0;
    background: #fff;
    color: var(--text);
    border: 1.5px solid #ccc;
    padding: .88rem 2.4rem;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: font-size .3s, padding .3s, transform .15s;
}

/* Zodra de knop wegvliegt: wordt fixed */
.btn-no.is-fleeing {
    position: fixed;
    z-index: 999;
    margin: 0;
    transition: left .65s ease,
                top  .65s ease,
                font-size .3s, padding .3s, transform .15s;
}

/* Na 3 pogingen: springerige snelle beweging */
.btn-no.is-fleeing.fast {
    transition: left .32s cubic-bezier(.34,1.56,.64,1),
                top  .32s cubic-bezier(.34,1.56,.64,1),
                font-size .3s, padding .3s, transform .15s;
}

.btn-no.scared {
    animation: scaredWiggle .35s ease;
}

@keyframes scaredWiggle {
    0%,100% { transform: rotate(0deg) scale(1); }
    20%      { transform: rotate(-8deg) scale(1.12); }
    40%      { transform: rotate(7deg)  scale(.92); }
    60%      { transform: rotate(-5deg) scale(1.06); }
    80%      { transform: rotate(4deg)  scale(.97); }
}

/* ── Meme overlay ── */
#memeOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}

#memeOverlay.show {
    opacity: 1;
    pointer-events: all;
}

#memeImg {
    max-width: min(80vw, 380px);
    max-height: 50vh;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
    transform: scale(.6) rotate(-4deg);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

#memeOverlay.show #memeImg {
    transform: scale(1) rotate(0deg);
}

/* ── PLEASE tekst ── */
#pleaseText {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 5.5vw, 3rem);
    font-weight: 700;
    font-style: italic;
    color: #fff;
    text-shadow:
        0 0 20px rgba(200,99,122,.9),
        0 0 60px rgba(200,99,122,.6),
        0 4px 16px rgba(0,0,0,.6);
    letter-spacing: .04em;
    margin-bottom: .6rem;
    max-width: min(86vw, 460px);
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    transform: scale(.4) skewX(-5deg);
    transition: none;
}

#memeOverlay.show #pleaseText {
    animation: pleaseIn .55s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes pleaseIn {
    0%   { opacity: 0; transform: scale(.3) skewX(-8deg); }
    60%  { opacity: 1; transform: scale(1.15) skewX(2deg); }
    80%  { transform: scale(.95) skewX(-1deg); }
    100% { opacity: 1; transform: scale(1) skewX(0deg); }
}

/* ── Schermschud ── */
@keyframes screenShake {
    0%,100% { transform: translateX(0); }
    15%      { transform: translateX(-8px) rotate(-.4deg); }
    30%      { transform: translateX(8px)  rotate(.4deg); }
    45%      { transform: translateX(-6px); }
    60%      { transform: translateX(6px); }
    75%      { transform: translateX(-3px); }
    90%      { transform: translateX(3px); }
}

body.shake { animation: screenShake .45s ease; }

/* ── Page 3 ── */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: .4rem;
}

.page-sub {
    color: var(--rose);
    font-size: 1rem;
    margin-bottom: 1.6rem;
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
    margin-bottom: 1.8rem;
}

.date-card {
    background: #fff;
    border: 2px solid var(--rose-light);
    border-radius: 18px;
    padding: 1.4rem .8rem;
    cursor: pointer;
    transition: all .22s;
    box-shadow: 0 4px 14px rgba(200,99,122,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
.date-card:hover   { border-color: var(--rose); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(200,99,122,.2); }
.date-card.picked  { border-color: var(--rose); background: linear-gradient(145deg,rgba(242,196,206,.3),rgba(200,99,122,.08)); box-shadow: 0 10px 24px rgba(200,99,122,.22); }

/* Foto-layout binnen datumkaartje */
.date-card {
    padding: 0;
    gap: 0;
    align-items: stretch;
    background: transparent;
}
.dc-photo {
    position: relative;
    width: 100%;
    height: 155px;
    overflow: hidden;
    border-radius: 14px;
    flex-shrink: 0;
}
.dc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .38s ease;
}
.date-card:hover .dc-photo img,
.date-card.picked .dc-photo img { transform: scale(1.06); }
.dc-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .18rem;
    padding: .38rem .5rem .42rem;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(255,255,255,.35);
}
.dc-body strong { font-size: .88rem; color: var(--dark); font-family: 'Playfair Display', serif; font-weight: 700; }

/* ── Page 4 ── */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1.5px solid var(--rose-light);
    border-radius: 14px;
    padding: 1rem 1.4rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(200,99,122,.07);
    transition: all .2s;
    text-align: left;
}
.contact-row:hover { transform: translateX(5px); border-color: var(--rose); box-shadow: 0 6px 18px rgba(200,99,122,.18); }
.contact-row .c-icon { font-size: 1.8rem; flex-shrink: 0; }
.contact-row div    { flex: 1; }
.contact-row strong { display: block; color: var(--dark); font-size: .95rem; }
.contact-row p      { font-size: .85rem; color: #aaa; margin: 0; }
.contact-row .arrow { font-size: 1.4rem; color: var(--rose-light); font-weight: 300; }

.picker-box {
    background: #fff;
    border: 1.5px solid var(--rose-light);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(200,99,122,.08);
}
.picker-box h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-size: 1.15rem;
    margin-bottom: .3rem;
}
.picker-box p { font-size: .88rem; color: #aaa; margin-bottom: 1rem; }

.date-input {
    display: block;
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--rose-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    color: var(--text);
    margin-bottom: 1rem;
    outline: none;
    transition: border-color .2s;
}
.date-input:focus { border-color: var(--rose); }
.date-input.error { border-color: #e05; }

/* ── Page 5 ── */
.confirm-card { padding: 3.5rem 2.5rem; }

.big-heart {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 1.2rem;
    animation: heartBeat .7s ease-in-out 3;
}

@keyframes heartBeat {
    0%,100% { transform: scale(1); }
    25%      { transform: scale(1.25); }
    50%      { transform: scale(1.05); }
    75%      { transform: scale(1.18); }
}

.confirm-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--rose);
    font-style: italic;
}

.confirm-sub {
    font-size: 1.05rem;
    color: #aaa;
    line-height: 1.7;
}

/* ══════════════════════════════════════════
   Pagina 3 – Keuze
══════════════════════════════════════════ */
.choice-card { padding: 2.5rem 2rem; }
.choice-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    color: var(--dark);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

/* ── Over mij — groot & flitsend ── */
.btn-about {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    background: linear-gradient(135deg, #C8637A 0%, #E8839A 35%, #C9A044 65%, #E8839A 85%, #C8637A 100%);
    background-size: 280% 280%;
    color: #fff;
    transition: transform .2s;
    animation: shimmerBg 3.5s ease infinite, glowPulse 2.2s ease-in-out infinite;
}
.btn-about:hover { transform: scale(1.04) translateY(-2px); }

@keyframes shimmerBg {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes glowPulse {
    0%,100% { box-shadow: 0 12px 38px rgba(200,99,122,.45), 0 0 0 0 rgba(200,99,122,.25); }
    50%      { box-shadow: 0 18px 50px rgba(200,99,122,.65), 0 0 28px 10px rgba(200,99,122,.18); }
}

.about-shine {
    position: absolute;
    top: -50%; left: -65%;
    width: 40%; height: 200%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
    animation: shineSwipe 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shineSwipe {
    0%   { left: -65%; }
    100% { left: 120%; }
}

.about-icon  { font-size: 2.2rem; line-height: 1; }
.about-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: .02em;
}
.about-sub {
    font-size: .82rem;
    opacity: .85;
    letter-spacing: .5px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

/* ── Get to business — klein & bescheiden ── */
.btn-business {
    background: transparent;
    color: #c0c0c0;
    border: 1.5px solid #e8e8e8;
    border-radius: 50px;
    padding: .55rem 1.6rem;
    font-family: 'Lato', sans-serif;
    font-size: .85rem;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    letter-spacing: .3px;
}
.btn-business:hover { color: var(--rose); border-color: var(--rose-light); }

/* ══════════════════════════════════════════
   Pagina 4 – Orbital timeline
══════════════════════════════════════════ */
.content-orbital {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    overflow-y: auto;
    max-height: 100vh;
}

.orbital-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    margin: .5rem 0;
}

/* Orbit ring */
.orbit-ring {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(200,99,122,.22);
    box-shadow:
        0 0 18px rgba(200,99,122,.08),
        inset 0 0 18px rgba(200,99,122,.05);
}

/* Center */
.orbit-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), #E8839A);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 28px rgba(200,99,122,.5), 0 0 56px rgba(200,99,122,.18);
    z-index: 2;
}

.center-label {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    z-index: 1;
}

.center-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(200,99,122,.4);
    animation: pulseRing 2.2s ease-out infinite;
}
.center-pulse.delay { animation-delay: 1.1s; }

@keyframes pulseRing {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Orbit nodes */
.orbit-node {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    z-index: 3;
}

.node-bubble {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--rose-light);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(200,99,122,.14);
    transition: border-color .2s, box-shadow .22s, transform .22s;
}
.node-bubble:hover,
.node-bubble.active {
    border-color: var(--rose);
    box-shadow: 0 6px 22px rgba(200,99,122,.38);
    transform: translate(-50%, -50%) scale(1.13);
}
.node-bubble span  { font-size: 1.3rem; line-height: 1; pointer-events: none; }
.node-bubble label {
    font-size: .55rem;
    font-weight: 700;
    color: var(--rose);
    letter-spacing: .5px;
    text-transform: uppercase;
    pointer-events: none;
}

/* Info panel */
.orbit-info {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1.5px solid var(--rose-light);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    min-height: 64px;
    max-height: 160px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 14px rgba(200,99,122,.09);
    transition: all .3s ease;
}

.orbit-hint {
    color: #c0c0c0;
    font-size: .85rem;
    text-align: center;
    line-height: 1.6;
    padding-top: .2rem;
}

.orbit-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: .4rem;
}

.orbit-info-text {
    font-size: .84rem;
    color: var(--text);
    line-height: 1.7;
}

/* ══════════════════════════════════════════
   Gallery modal
══════════════════════════════════════════ */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 800;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.gallery-modal.open {
    opacity: 1;
    pointer-events: all;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 8, 12, .72);
    backdrop-filter: blur(6px);
}

.gallery-sheet {
    position: relative;
    width: 100%;
    max-height: 92vh;
    background: #fff;
    border-radius: 28px 28px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.32,1,.32,1);
    box-shadow: 0 -20px 60px rgba(200,99,122,.18);
}
.gallery-modal.open .gallery-sheet {
    transform: translateY(0);
}

/* Top bar */
.gallery-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.6rem 0.8rem;
    flex-shrink: 0;
    border-bottom: 1px solid #f5e8eb;
}

.gallery-header-left {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.gallery-header-left span { font-size: 1.6rem; line-height: 1; }
.gallery-header-left h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--dark);
    font-style: italic;
}

/* Sluitknop */
.gallery-close-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: linear-gradient(135deg, var(--rose), #E8839A);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .5rem 1.2rem .5rem .9rem;
    font-family: 'Lato', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(200,99,122,.35);
    transition: transform .18s, box-shadow .18s;
    letter-spacing: .3px;
}
.gallery-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 26px rgba(200,99,122,.5);
}
.close-icon {
    width: 22px; height: 22px;
    background: rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    line-height: 1;
}

/* Tabs */
.gallery-tabs-row {
    display: flex;
    gap: .5rem;
    padding: .75rem 1.6rem .4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Foto grid */
.gallery-grid {
    flex: 1;
    overflow-y: auto;
    padding: .8rem 1.2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
    -webkit-overflow-scrolling: touch;
}
.gallery-grid::-webkit-scrollbar { width: 4px; }
.gallery-grid::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 2px; }

/* Kaartjes — standaard 3:4 */
.g-card {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    background: #f5e8eb;
}

/* Waarom-jou: 3 foto's naast elkaar, iets kleiner + vierkant */
.gallery-grid.grid-trio {
    grid-template-columns: repeat(3, 1fr);
    max-height: 36vh;
    overflow: hidden;
}
.gallery-grid.grid-trio .g-card {
    aspect-ratio: 3 / 4;
}
.g-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.g-card:hover img { transform: scale(1.06); }

.g-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61,33,40,.35) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .25s;
}
.g-card:hover::after { opacity: 1; }

.g-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: #ccc;
    font-style: italic;
    font-size: .9rem;
}

/* ── Scatter layout ── */
.gallery-scatter {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    padding: 1rem 1.4rem .6rem;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    /* override grid behaviour */
    grid-template-columns: unset;
}

.scatter-img {
    width: clamp(80px, 22vw, 130px);
    height: clamp(80px, 22vw, 130px);
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    cursor: pointer;
    transform: rotate(var(--rot, 0deg));
    transition: transform .22s ease, box-shadow .22s ease;
    flex-shrink: 0;
}
.scatter-img:hover {
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 10px 28px rgba(200,99,122,.35);
    z-index: 2;
}

/* Footer (caption + story) */
.gallery-footer {
    flex-shrink: 0;
    border-top: 1px solid #f5e8eb;
    padding: .9rem 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 38vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gallery-caption {
    font-size: .9rem;
    font-style: italic;
    font-weight: 700;
    color: var(--rose);
    line-height: 1.5;
    margin: 0;
}

.gallery-story {
    font-size: .85rem;
    color: var(--text);
    line-height: 1.72;
    margin: 0;
}
.gallery-story:empty { display: none; }

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    cursor: zoom-out;
}
#lightbox.open {
    opacity: 1;
    pointer-events: all;
}
#lightboxImg {
    max-width: 94vw;
    max-height: 90vh;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    transform: scale(.88);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
#lightbox.open #lightboxImg { transform: scale(1); }

/* ══════════════════════════════════════════
   Hobby gallery (orbital – hobbies node)
══════════════════════════════════════════ */
.hobby-tabs {
    display: flex;
    gap: .45rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.hobby-tab {
    background: var(--rose-pale);
    border: 1.5px solid var(--rose-light);
    border-radius: 50px;
    padding: .3rem .9rem;
    font-size: .8rem;
    font-family: 'Lato', sans-serif;
    color: var(--rose);
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
}
.hobby-tab.active {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}
.hobby-tab:hover:not(.active) { border-color: var(--rose); }

.hobby-gallery {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    margin-bottom: .65rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.hobby-gallery::-webkit-scrollbar { height: 3px; }
.hobby-gallery::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 2px; }

.hobby-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 2px solid var(--rose-light);
    transition: transform .2s, border-color .2s;
    cursor: pointer;
}
.hobby-img:hover {
    transform: scale(1.05);
    border-color: var(--rose);
}

.hobby-empty {
    width: 100%;
    padding: .8rem 0;
    text-align: center;
    color: #ccc;
    font-size: .85rem;
    font-style: italic;
}

.hobby-text {
    font-size: .85rem;
    color: var(--text);
    line-height: 1.65;
    font-style: italic;
    border-top: 1px solid var(--rose-light);
    padding-top: .55rem;
    margin-top: .1rem;
}

/* Orbit-info uitgebreid bij gallery */
.orbit-info.gallery-mode {
    min-height: 180px;
}

/* ── "Meer weten" knop op bevestigingspagina ── */
.btn-meer-info {
    display: inline-block;
    margin-top: 1.4rem;
    background: transparent;
    border: 1.5px solid var(--rose-light);
    color: var(--rose);
    border-radius: 50px;
    padding: .55rem 1.4rem;
    font-family: 'Lato', sans-serif;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-meer-info:hover { background: var(--rose-pale); border-color: var(--rose); }

/* ── Bevestigingsdialog ── */
.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(20,8,12,.55);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.confirm-dialog-overlay.open { opacity: 1; pointer-events: all; }

.confirm-dialog-box {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.8rem 1.6rem;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(200,99,122,.25);
    border: 1.5px solid var(--rose-light);
    transform: scale(.88) translateY(12px);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.confirm-dialog-overlay.open .confirm-dialog-box { transform: scale(1) translateY(0); }

.confirm-dialog-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.confirm-dialog-btns { display: flex; gap: .8rem; justify-content: center; }

.confirm-yes {
    background: linear-gradient(135deg, var(--rose), #E8839A);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .7rem 1.8rem;
    font-family: 'Lato', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(200,99,122,.35);
    transition: transform .18s, box-shadow .18s;
}
.confirm-yes:hover { transform: scale(1.04); box-shadow: 0 8px 26px rgba(200,99,122,.5); }

.confirm-no {
    background: transparent;
    border: 1.5px solid #e0e0e0;
    color: #bbb;
    border-radius: 50px;
    padding: .7rem 1.4rem;
    font-family: 'Lato', sans-serif;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .18s, color .18s;
}
.confirm-no:hover { border-color: var(--rose-light); color: var(--rose); }

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
══════════════════════════════════════════ */

/* Tablets en kleine laptops */
@media (max-width: 600px) {
    .name         { font-size: 3rem; }
    .card         { padding: 2.2rem 1.6rem; }
    .choice-card  { padding: 2rem 1.4rem; }

    .btn-about    { max-width: 100%; }
    .about-label  { font-size: 1.4rem; }

    /* Orbital */
    .orbital-wrapper  { width: 260px; height: 260px; }
    .content-orbital  { padding-top: .5rem; padding-bottom: 1rem; }

    /* Date cards: 2 kolommen */
    .date-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }

    /* Contact */
    .contact-row { padding: .85rem 1rem; }

    /* Gallery modal */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .gallery-topbar { padding: 1rem 1.1rem .7rem; }
    .gallery-header-left h3 { font-size: 1.05rem; }
    .gallery-close-btn { padding: .45rem .9rem .45rem .7rem; font-size: .82rem; }

    /* Bevestiging pagina */
    .confirm-card { padding: 2.5rem 1.5rem; }
    .confirm-card h2 { font-size: 1.35rem; }
}

/* Kleine telefoons */
@media (max-width: 400px) {
    .name         { font-size: 2.6rem; }
    .card         { padding: 1.8rem 1.2rem; border-radius: 20px; }

    .page-title   { font-size: 1.65rem; }

    /* Orbital kleiner */
    .orbital-wrapper  { width: 220px; height: 220px; }
    .orbit-center     { width: 58px; height: 58px; }
    .center-label     { font-size: .9rem; }
    .node-bubble      { width: 54px; height: 54px; }
    .node-bubble span { font-size: 1.1rem; }
    .node-bubble label { font-size: .5rem; }

    /* Date grid: 2 col maar kleiner */
    .date-card    { padding: .9rem .5rem; }
    .date-card span { font-size: 1.6rem; }
    .date-card strong { font-size: .88rem; }
    .date-card small  { font-size: .72rem; }

    /* Buttons */
    .btn-primary, .btn-yes { padding: .8rem 1.8rem; font-size: .92rem; }
    .about-label  { font-size: 1.25rem; }
    .about-icon   { font-size: 1.8rem; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
    .gallery-tabs-row { padding: .6rem 1rem .3rem; }
    .gallery-footer { padding: .75rem 1rem 1rem; }
}

/* Zeer kleine schermen (SE, fold) */
@media (max-width: 340px) {
    .orbital-wrapper { width: 190px; height: 190px; }
    .name { font-size: 2.2rem; }
    .date-grid { grid-template-columns: 1fr 1fr; gap: .4rem; }
}

/* Landscape mobiel */
@media (max-height: 500px) and (orientation: landscape) {
    .page { align-items: flex-start; padding-top: .5rem; }
    .orbital-wrapper { width: 180px; height: 180px; }
    .card { padding: 1.2rem 1.6rem; }
    .name { font-size: 2.4rem; }
    .envelope { font-size: 2rem; margin-bottom: .4rem; }
    .card h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
    .gallery-sheet { max-height: 96vh; }
}

/* ════════════════════════════════════════════
   WOW UPGRADE — visual polish & implode
════════════════════════════════════════════ */

/* ── Spotlight mouse glow ── */
.spotlight {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        700px circle at var(--mx, 50%) var(--my, 50%),
        rgba(200,99,122,.09) 0%,
        transparent 70%
    );
}

/* ── Premium glassmorphism cards ── */
.card {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow:
        0 32px 72px rgba(200,99,122,.17),
        0 0 0 1px rgba(242,196,206,.2) inset,
        0 2px 0 rgba(255,255,255,.95) inset;
}

/* ── Jelsey name shimmer ── */
.name {
    background: linear-gradient(
        120deg,
        var(--dark) 0%,
        var(--rose) 30%,
        #FFAFC0 50%,
        var(--rose) 70%,
        var(--dark) 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: nameShimmer 4s linear infinite;
}
@keyframes nameShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ── Ja-knop glow pulse ── */
.btn-yes {
    animation: jaGlow 2.2s ease-in-out infinite;
}
@keyframes jaGlow {
    0%,100% {
        box-shadow: 0 8px 26px rgba(200,99,122,.36);
    }
    50% {
        box-shadow:
            0 12px 42px rgba(200,99,122,.58),
            0 0 0 10px rgba(200,99,122,.07),
            0 0 0 22px rgba(200,99,122,.03);
    }
}

/* ── Card & page-title slide-up entrance ── */
.page.active .card {
    animation: cardIn .65s cubic-bezier(.34,1.56,.64,1) both;
}
.page.active .page-title {
    animation: cardIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.page.active .page-sub {
    animation: cardIn .5s cubic-bezier(.34,1.56,.64,1) .08s both;
}
@keyframes cardIn {
    0%   { transform: translateY(30px) scale(.97); opacity: 0; }
    100% { transform: none;                        opacity: 1; }
}

/* ── Orbital ring breathing glow ── */
.orbit-ring {
    animation: orbitGlow 3s ease-in-out infinite alternate;
}
@keyframes orbitGlow {
    0%   { border-color: rgba(200,99,122,.2);  box-shadow: 0 0 18px rgba(200,99,122,.08),  inset 0 0 18px rgba(200,99,122,.04); }
    100% { border-color: rgba(200,99,122,.42); box-shadow: 0 0 52px rgba(200,99,122,.26),  inset 0 0 40px rgba(200,99,122,.11); }
}

/* ── Heart glow ── */
.heart-p {
    filter: drop-shadow(0 0 5px rgba(200,99,122,.45));
    will-change: transform;
}

/* ════════ IMPLODE ════════ */

/* Vortex canvas overlay */
#vortexOverlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}
#vortexOverlay.active { opacity: 1; }
#vortexCanvas { display: block; width: 100%; height: 100%; }

/* Flash overlay */
#flashOverlay {
    position: fixed;
    inset: 0;
    z-index: 4500;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at center,
        #fff 0%,
        rgba(242,196,206,.92) 42%,
        rgba(200,99,122,.75) 100%);
}
#flashOverlay.flash { opacity: 1; transition: none; }
#flashOverlay.fade  { opacity: 0; transition: opacity .75s ease; }

/* Page 2 implode animation */
.page.imploding {
    animation: implodePage .78s cubic-bezier(.55,.06,.68,.19) forwards !important;
    pointer-events: none !important;
}
@keyframes implodePage {
    0%   { transform: scale(1)    rotate(0deg)    ; filter: blur(0)    brightness(1)  ; opacity: 1; }
    35%  { transform: scale(.72)  rotate(-8deg)   ; filter: blur(5px)  brightness(1.3); opacity: .85; }
    75%  { transform: scale(.16)  rotate(-380deg) ; filter: blur(22px) brightness(2.5); opacity: .3; }
    100% { transform: scale(0)    rotate(-520deg) ; filter: blur(45px) brightness(5)  ; opacity: 0; }
}

/* ════════ PAGE INTRO ANIMATIES ════════ */

/* Page 2 — hartjesregen */
@keyframes heartPop {
    0%   { opacity: 0; transform: scale(0) rotate(-20deg); }
    28%  { opacity: 1; transform: scale(1.45) rotate(6deg); }
    62%  { opacity: 1; transform: scale(1) rotate(0deg); }
    100% { opacity: 0; transform: scale(.5) translateY(-55px) rotate(12deg); }
}

/* Page 4 — sterrenburst */
@keyframes starOut {
    0%   { opacity: 1; transform: translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(var(--fx),var(--fy)) scale(.05); }
}

/* Page 5 — regenboogdrop */
@keyframes rainbowFall {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    80%  { opacity: .8; }
    100% { opacity: 0; transform: translateY(var(--fy)) rotate(var(--fr,360deg)) scale(.2); }
}

/* Page 6 — vriendschapsbellen */
@keyframes bubbleRise {
    0%   { opacity: 0; transform: translateY(0) scale(.3); }
    15%  { opacity: 1; transform: translateY(-25px) scale(1.1); }
    80%  { opacity: .6; }
    100% { opacity: 0; transform: translateY(var(--by,-320px)) scale(.9) rotate(var(--br,8deg)); }
}

/* Page 7 — vuurwerk */
@keyframes fwParticle {
    0%   { opacity: 1; transform: translate(0,0) scale(1); }
    100% { opacity: 0; transform: translate(var(--fx),var(--fy)) scale(.05); }
}

/* ════════ CONFETTI ════════ */
#confettiContainer {
    position: fixed;
    inset: 0;
    z-index: 3500;
    pointer-events: none;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    animation: confettiFly var(--dur,1s) cubic-bezier(.25,.46,.45,.94) forwards;
}
@keyframes confettiFly {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); opacity: 1; }
    80%  { opacity: .85; }
    100% { transform: translate(var(--tx),var(--ty)) rotate(var(--r,540deg)) scale(.08); opacity: 0; }
}
