:root {
    --night: #0a1035;
    --deep-b: #1a2878;
    --royal-b: #2848a0;
    --mid-b: #6090d0;
    --light-b: #a8cce0;
    --deep-v: #2d1860;
    --mid-v: #6040a8;
    --light-v: #b8a0e0;
    --pink: #c878b0;
    --rose: #e0a0c8;
    --beige: #d8c8a8;
    --brown: #8a6040;
    --gold: #d4a830;
    --copper: #b06830;
    --silver: #a8b0c0;
    --text: #1a1840;
    --text-m: #3a3070;
    --text-l: #7068a0;
    --white: #ffffff;
    --violet: #6040a8;
}

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

body {
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 15% 85%, #0d1a5a 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 88% 80%, #180d40 0%, transparent 55%),
        radial-gradient(ellipse 160% 120% at 50% 0%, #b8ccf0 0%, #ccd8ff 18%, #e8eeff 42%, #ede8ff 65%, #c8d8f8 85%, #a0b8e8 100%);
    font-family: 'Jost', sans-serif;
    cursor: default;
}

/* ── Stars & Nebula ── */

#stars-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.nebula {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
    mix-blend-mode: multiply;
}

#neb1 { width: 700px; height: 500px; top: -100px; left: -100px; background: rgba(160, 180, 255, 0.30); animation: nebdrift1 18s ease-in-out infinite alternate; }
#neb2 { width: 600px; height: 400px; top: 40%; right: -80px; background: rgba(200, 160, 255, 0.25); animation: nebdrift2 22s ease-in-out infinite alternate; }
#neb3 { width: 500px; height: 350px; bottom: -50px; left: 30%; background: rgba(100, 140, 240, 0.30); animation: nebdrift3 16s ease-in-out infinite alternate; }
#neb4 { width: 800px; height: 500px; bottom: -120px; left: -150px; background: rgba(30, 60, 180, 0.28); animation: nebdrift1 24s ease-in-out infinite alternate; filter: blur(110px); }
#neb5 { width: 600px; height: 400px; bottom: -80px; right: -100px; background: rgba(20, 50, 160, 0.22); animation: nebdrift2 20s ease-in-out infinite alternate; filter: blur(100px); }

@keyframes nebdrift1 { to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes nebdrift2 { to { transform: translate(-30px, 20px) scale(0.94); } }
@keyframes nebdrift3 { to { transform: translate(20px, -40px) scale(1.12); } }

/* ── Clouds ── */

.cloud {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: cloud-drift linear infinite;
}

.cloud svg { display: block; }

@keyframes cloud-drift {
    0%   { opacity: 0; transform: translateX(0); }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(var(--travel)); }
}

#c1 { top: 8%;  left: -320px; --travel: calc(100vw + 400px); animation-duration: 90s;  animation-delay: 0s; }
#c2 { top: 18%; left: -280px; --travel: calc(100vw + 360px); animation-duration: 120s; animation-delay: 18s; }
#c3 { top: 5%;  left: -400px; --travel: calc(100vw + 480px); animation-duration: 75s;  animation-delay: 42s; }
#c4 { top: 28%; left: -200px; --travel: calc(100vw + 280px); animation-duration: 105s; animation-delay: 60s; }
#c5 { top: 12%; left: -350px; --travel: calc(100vw + 430px); animation-duration: 85s;  animation-delay: 5s; }

/* ── Shooting Stars ── */

.shoot {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 230, 80, 0) 10%, rgba(255, 215, 60, 1) 45%, rgba(255, 240, 140, 0.9) 55%, rgba(255, 230, 80, 0) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 300;
}

.shoot.big {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 60, 0) 5%, rgba(255, 200, 40, 1) 40%, rgba(255, 255, 180, 1) 50%, rgba(255, 215, 60, 0.5) 65%, transparent 100%);
    filter: drop-shadow(0 0 4px rgba(255, 220, 80, 0.8));
}

/* ── Scene & Navigation ── */

#scene {
    position: fixed;
    inset: 0;
    z-index: 2;
    transform-origin: center center;
    transition: transform 1.05s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.nav-btn {
    position: fixed;
    z-index: 200;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(180, 160, 255, 0.4);
    color: var(--deep-v);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(100, 80, 200, 0.12);
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 24px rgba(100, 80, 200, 0.25);
    transform: scale(1.1);
}

.nav-btn.visible { opacity: 1; pointer-events: all; }

#btn-prev { bottom: 36px; left: 50%; transform: translateX(calc(-50% - 90px)); }
#btn-next { bottom: 36px; left: 50%; transform: translateX(calc(-50% + 90px)); }
#btn-prev:hover { transform: translateX(calc(-50% - 90px)) scale(1.1); }
#btn-next:hover { transform: translateX(calc(-50% + 90px)) scale(1.1); }

#dots {
    position: fixed;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 201;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(130, 110, 220, 0.25);
    border: 1px solid rgba(130, 110, 220, 0.45);
    transition: all 0.35s;
}

.dot.active {
    background: var(--violet);
    transform: scale(1.6);
    box-shadow: 0 0 7px var(--violet);
}

#btn-overview {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(180, 160, 255, 0.4);
    color: var(--deep-v);
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

#btn-overview:hover { background: rgba(255, 255, 255, 0.9); }

#title-strip {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    pointer-events: none;
    text-align: center;
}

#title-strip h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 15px;
    color: var(--deep-v);
    letter-spacing: 0.22em;
    opacity: 0.8;
}

/* ── Connections ── */

#connections {
    position: absolute;
    overflow: visible;
    pointer-events: none;
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
}

.conn {
    stroke: rgba(150, 130, 255, 0.18);
    stroke-width: 1;
    stroke-dasharray: 5 9;
    fill: none;
    animation: dash-flow 25s linear infinite;
}

@keyframes dash-flow { to { stroke-dashoffset: -140; } }

/* ── Bubbles ── */

.bubble {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(18px);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 48px rgba(100, 80, 200, 0.13);
    transition: box-shadow 0.4s, filter 0.4s;
    overflow: hidden;
    contain: layout style paint;
}

.bubble:hover {
    box-shadow: 0 16px 70px rgba(100, 80, 200, 0.28);
    filter: brightness(1.06) drop-shadow(0 0 18px rgba(150, 130, 255, 0.3));
}

.bubble .inner {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 70%;
    max-height: 70%;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.b-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-l);
    margin-bottom: 4px;
}

.b-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: var(--text);
    line-height: 1.22;
}

.b-body {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 300;
    color: var(--text-m);
    line-height: 1.55;
    letter-spacing: 0.02em;
}

/* ── Bubble Positions — R=820px, 40° intervals (9 satellites) ── */

#b-date {
    width: 480px; height: 480px;
    left: 50%; top: 50%;
    margin-left: -240px; margin-top: -240px;
    background: linear-gradient(135deg, rgba(210, 225, 255, 0.80), rgba(190, 168, 240, 0.68));
    box-shadow: 0 20px 90px rgba(40, 72, 160, 0.28);
}

#b-form {
    width: 520px; height: 520px;
    left: calc(50% + 820px); top: 50%;
    margin-left: -260px; margin-top: -260px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.70), rgba(215, 228, 255, 0.60));
}

#b-accommodation {
    width: 300px; height: 300px;
    left: calc(50% + 628px); top: calc(50% + 527px);
    margin-left: -150px; margin-top: -150px;
    background: linear-gradient(135deg, rgba(230, 238, 255, 0.70), rgba(210, 225, 252, 0.62));
}

#b-transport {
    width: 310px; height: 310px;
    left: calc(50% + 142px); top: calc(50% + 808px);
    margin-left: -155px; margin-top: -155px;
    background: linear-gradient(135deg, rgba(235, 245, 255, 0.70), rgba(215, 230, 252, 0.62));
}

#b-place {
    width: 280px; height: 280px;
    left: calc(50% - 410px); top: calc(50% + 710px);
    margin-left: -140px; margin-top: -140px;
    background: linear-gradient(135deg, rgba(235, 242, 255, 0.70), rgba(215, 225, 255, 0.62));
}

#b-highlights {
    width: 370px; height: 370px;
    left: calc(50% - 771px); top: calc(50% - 280px);
    margin-left: -185px; margin-top: -185px;
    background: linear-gradient(135deg, rgba(242, 238, 255, 0.70), rgba(225, 215, 255, 0.62));
}

#b-gifts {
    width: 340px; height: 340px;
    left: calc(50% - 771px); top: calc(50% + 280px);
    margin-left: -170px; margin-top: -170px;
    background: linear-gradient(135deg, rgba(245, 236, 255, 0.72), rgba(228, 214, 250, 0.64));
}

#b-dress {
    width: 390px; height: 390px;
    left: calc(50% - 410px); top: calc(50% - 710px);
    margin-left: -195px; margin-top: -195px;
    background: linear-gradient(160deg, rgba(210, 200, 240, 0.72), rgba(195, 215, 250, 0.65));
}

#b-photo {
    width: 370px; height: 370px;
    left: calc(50% + 628px); top: calc(50% - 527px);
    margin-left: -185px; margin-top: -185px;
    background: linear-gradient(135deg, rgba(210, 220, 255, 0.68), rgba(195, 210, 245, 0.60));
}

#b-schedule {
    width: 500px; height: 500px;
    left: calc(50% + 142px); top: calc(50% - 808px);
    margin-left: -250px; margin-top: -250px;
    background: linear-gradient(135deg, rgba(235, 242, 255, 0.70), rgba(220, 232, 255, 0.62));
}

/* ── CTA Button ── */

.cta-btn {
    display: inline-block;
    background: var(--violet);
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 30px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(100, 80, 200, 0.3);
    transition: all 0.3s;
    margin-top: 6px;
}

.cta-btn:hover {
    background: var(--deep-v);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(100, 80, 200, 0.4);
}

/* ── Form ── */

#b-form .inner { width: 76%; max-height: 84%; }
#b-form .b-title { font-size: 17px; margin-bottom: 2px; }
#b-form .b-eyebrow { margin-bottom: 10px; }

#form-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg { margin-bottom: 6px; text-align: left; }

.fg label {
    display: block;
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-l);
    margin-bottom: 2px;
}

.fg input,
.fg select,
.fg textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(170, 150, 255, 0.35);
    border-radius: 6px;
    color: var(--text);
    padding: 4px 8px;
    font-family: 'Jost', sans-serif;
    font-size: 10.5px;
    outline: none;
    transition: border-color 0.25s;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus { border-color: var(--violet); }

.fg select option { background: #f5f0ff; }
.fg textarea { resize: none; height: 36px; }

.rg { display: flex; gap: 10px; flex-wrap: wrap; }

/* Long option labels widen the row past the other fields — centre it instead */
.fg-center { text-align: center; }
.fg-center .rg { justify-content: center; }

.rg label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-m);
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
}

.rg input[type=radio] { accent-color: var(--violet); width: auto; }

.submit-btn {
    margin-top: 8px;
    background: linear-gradient(135deg, var(--violet), #8060c8);
    border: none;
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(100, 80, 200, 0.25);
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 26px rgba(100, 80, 200, 0.4);
}

.success-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px 30px;
    text-align: center;
}

.success-wrap.show { display: flex; }
.success-star { font-size: 44px; animation: pulse-s 2s ease-in-out infinite; }
@keyframes pulse-s { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.success-wrap .b-title { font-size: 22px; font-style: italic; }

/* ── Photo Grid ── */

#b-photo .inner { width: 74%; max-height: 80%; }
#b-photo .b-title { font-size: 13px; font-style: italic; margin-bottom: 8px; }

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.photo-slot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 175, 240, 0.15), rgba(175, 195, 255, 0.15));
    border: 1.5px dashed rgba(175, 145, 220, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 16px;
    color: rgba(175, 145, 220, 0.6);
}

.photo-slot picture,
.photo-slot-center picture,
.date-photo picture,
.icon-wrap picture { display: contents; }

.photo-slot img,
.photo-slot-center img { cursor: pointer; }

.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.photo-slot-center {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(200, 175, 240, 0.15), rgba(175, 195, 255, 0.15));
    border: 1.5px dashed rgba(175, 145, 220, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 18px;
    color: rgba(175, 145, 220, 0.6);
}

.photo-slot-center img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── Place ── */

#b-place .inner { width: 70%; max-height: 78%; }
#b-place .place-big { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.1; }
#b-place .b-body { font-size: 9.5px; }
#b-place .coords { font-family: monospace; font-size: 8px; color: var(--text-l); margin-top: 5px; letter-spacing: 0.08em; }

/* ── Date ── */

#b-date .inner { width: 70%; max-height: 82%; }
#b-date .day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 110px;
    font-weight: 600;
    color: transparent;
    background: linear-gradient(135deg, var(--gold), var(--copper));
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 0.95;
    margin-bottom: 2px;
}

#b-date .month-yr { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--text-m); letter-spacing: 0.25em; text-transform: uppercase; line-height: 1.6; margin-bottom: 10px; }
#b-date .date-time { font-family: 'Jost', sans-serif; font-size: 11px; color: var(--text-l); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px; }

#b-date .date-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(180, 160, 240, 0.18), rgba(160, 190, 255, 0.18));
    border: 1.5px dashed rgba(160, 140, 220, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(160, 140, 220, 0.55);
}

#b-date .date-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }

/* ── Schedule ── */

#b-schedule .inner { width: 76%; max-height: 86%; overflow-y: auto; }
#b-schedule .b-eyebrow { margin-bottom: 8px; }

.si { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; text-align: left; width: 100%; }
.si-time { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--violet); min-width: 44px; text-align: right; line-height: 1.1; }
.si-line { display: flex; flex-direction: column; align-items: center; padding-top: 3px; gap: 3px; }
.si-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); flex-shrink: 0; box-shadow: 0 0 5px rgba(123, 107, 232, 0.5); }
.si-bar { width: 1px; flex: 1; background: rgba(150, 130, 220, 0.2); min-height: 10px; }
.si-txt { font-size: 10px; color: var(--text); font-weight: 400; line-height: 1.25; }
.si-sub { font-size: 8.5px; color: var(--text-l); margin-top: 1px; font-style: italic; }

/* ── Dress Code ── */

#b-dress .inner { width: 74%; max-height: 82%; }
#b-dress .b-title { font-size: 14px; margin-bottom: 3px; }
#b-dress .dress-note { font-size: 9px; color: var(--text-m); line-height: 1.4; margin-bottom: 8px; font-style: italic; }

.palette { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }

.sw-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.sw { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 255, 255, 0.7) inset; transition: transform 0.2s; }
.sw-wrap:hover .sw { transform: scale(1.25); }
.sw-name { font-size: 6px; color: var(--text-l); letter-spacing: 0.04em; text-align: center; max-width: 40px; line-height: 1.2; transition: font-size 0.15s, color 0.15s; white-space: nowrap; }
.sw-wrap:hover .sw-name { font-size: 7.5px; color: var(--text-m); }

.divider-thin { width: 36px; height: 1px; background: rgba(150, 130, 220, 0.25); margin: 8px auto; }

/* ── Highlights ── */

#b-highlights .inner { width: 74%; max-height: 80%; }
#b-highlights .b-title { font-size: 16px; margin-bottom: 8px; }

.hi-list { list-style: none; text-align: left; width: 100%; }
.hi-list li { font-size: 9.5px; color: var(--text-m); padding: 3px 0; border-bottom: 1px solid rgba(150, 130, 220, 0.12); display: flex; align-items: center; gap: 6px; }
.hi-list li:last-child { border-bottom: none; }
.hi-list li::before { content: '\2726'; color: var(--violet); font-size: 8px; flex-shrink: 0; }

/* ── Transport ── */

#b-transport .inner { width: 74%; max-height: 80%; }
#b-transport .b-title { font-size: 15px; margin-bottom: 7px; }

.tr-item { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 7px; text-align: left; width: 100%; }
.tr-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.tr-text { font-size: 9.5px; color: var(--text-m); line-height: 1.4; }
.tr-label { font-size: 9px; font-weight: 400; color: var(--text); margin-bottom: 1px; }

/* ── Accommodation ── */

#b-accommodation .inner { width: 74%; max-height: 80%; }
#b-accommodation .b-title { font-size: 14px; margin-bottom: 6px; }

.ac-item { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; text-align: left; width: 100%; }
.ac-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.ac-text { font-size: 9px; color: var(--text-m); line-height: 1.4; }
.ac-label { font-size: 9px; font-weight: 400; color: var(--text); margin-bottom: 1px; }
.ac-note { font-size: 8px; color: var(--text-l); font-style: italic; margin-top: 6px; line-height: 1.4; text-align: center; }

/* ── Gifts ── */

#b-gifts .inner { width: 74%; max-height: 80%; }
#b-gifts .b-title { font-size: 16px; margin-bottom: 6px; }

.gi-item { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; text-align: left; width: 100%; }
.gi-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.gi-text { font-size: 9px; color: var(--text-m); line-height: 1.4; }
.gi-label { font-size: 9px; font-weight: 400; color: var(--text); margin-bottom: 1px; }
.gi-note { font-size: 8px; color: var(--text-l); font-style: italic; line-height: 1.4; text-align: center; margin-bottom: 8px; }
.gi-note:last-child { margin-bottom: 0; margin-top: 6px; }

/* ── Overview Mode ── */

body.overview #scene { cursor: default; }
body.overview .bubble {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body:not(.overview) .nebula {
    display: none;
}
body.overview .bubble:hover {
    box-shadow: 0 16px 70px rgba(100, 80, 200, 0.35) !important;
    filter: brightness(1.08) drop-shadow(0 0 24px rgba(150, 130, 255, 0.45));
}

/* ── Hint ── */

#hint {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 0.12em;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.6s;
    pointer-events: none;
    color: var(--text-m);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 12px rgba(100, 80, 200, 0.12);
}

/* ── Lightbox ── */

#lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 16, 53, 0.85);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    cursor: pointer;
}

#lightbox.open {
    opacity: 1;
    pointer-events: all;
}

#lightbox-img {
    max-width: 88vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#lightbox.open #lightbox-img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

#lightbox-close:hover {
    color: #fff;
}

/* ══════════════════════════════════════════════════
   Tablet – keep constellation, scale down ~15%
   ══════════════════════════════════════════════════ */

@media (max-width: 1024px) and (min-width: 769px) {
    #scene {
        transform-origin: center center;
    }

    #b-form           { width: 442px; height: 442px; left: calc(50% + 697px); top: 50%; margin-left: -221px; margin-top: -221px; }
    #b-accommodation  { width: 255px; height: 255px; left: calc(50% + 534px); top: calc(50% + 448px); margin-left: -127px; margin-top: -127px; }
    #b-transport      { width: 264px; height: 264px; left: calc(50% + 121px); top: calc(50% + 686px); margin-left: -132px; margin-top: -132px; }
    #b-place          { width: 238px; height: 238px; left: calc(50% - 348px); top: calc(50% + 604px); margin-left: -119px; margin-top: -119px; }
    #b-gifts          { width: 289px; height: 289px; left: calc(50% - 655px); top: calc(50% + 238px); margin-left: -144px; margin-top: -144px; }
    #b-highlights     { width: 314px; height: 314px; left: calc(50% - 655px); top: calc(50% - 238px); margin-left: -157px; margin-top: -157px; }
    #b-dress          { width: 332px; height: 332px; left: calc(50% - 349px); top: calc(50% - 604px); margin-left: -166px; margin-top: -166px; }
    #b-schedule       { width: 425px; height: 425px; left: calc(50% + 121px); top: calc(50% - 686px); margin-left: -212px; margin-top: -212px; }
    #b-photo          { width: 314px; height: 314px; left: calc(50% + 534px); top: calc(50% - 448px); margin-left: -157px; margin-top: -157px; }
}

/* ══════════════════════════════════════════════════
   Mobile – vertical card layout
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* 1. Body */
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
    }

    /* 2. Scene */
    #scene {
        position: relative;
        inset: auto;
        transform: none !important;
        will-change: auto;
        transition: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 80px 16px 40px;
        gap: 24px;
    }

    /* 3. Hide desktop-only elements (keep clouds & stars) */
    #connections,
    #btn-overview,
    #hint {
        display: none !important;
    }

    /* 4. Bubbles — rounded cards */
    .bubble {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        width: min(92vw, 420px) !important;
        height: auto !important;
        min-height: 0 !important;
        border-radius: 28px;
        padding: 32px 24px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* 5. Card ordering */
    #b-date          { order: 1; }
    #b-place         { order: 2; }
    #b-schedule      { order: 3; }
    #b-transport     { order: 4; }
    #b-accommodation { order: 5; }
    #b-highlights    { order: 6; }
    #b-dress         { order: 7; }
    #b-gifts         { order: 8; }
    #b-photo         { order: 9; }
    #b-form          { order: 10; }

    /* 6. Inner content — full width, no scroll */
    .bubble .inner {
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* 7. Typography scale-up */
    .b-eyebrow       { font-size: 11px; }
    .b-title          { font-size: 22px; }
    .b-body           { font-size: 14px; }

    #b-date .day      { font-size: 80px; }
    #b-date .month-yr { font-size: 20px; }
    #b-date .date-time { font-size: 14px; }

    .si-time          { font-size: 20px; }
    .si-txt           { font-size: 14px; }
    .si-sub           { font-size: 12px; }

    .tr-text,
    .ac-text,
    .gi-text          { font-size: 13px; }
    .tr-label,
    .ac-label,
    .gi-label         { font-size: 13px; }
    .tr-icon,
    .ac-icon,
    .gi-icon          { font-size: 18px; }

    .hi-list li       { font-size: 13px; padding: 6px 0; }
    .hi-list li::before { font-size: 11px; }

    .dress-note       { font-size: 13px; }
    .sw               { width: 36px; height: 36px; }
    .sw-name          { font-size: 9px; }

    .ac-note,
    .gi-note          { font-size: 11px; }

    #b-place .place-big { font-size: 26px; }
    #b-place .b-body    { font-size: 14px; }
    #b-place .coords    { font-size: 11px; }

    /* 8. Schedule — compact timeline */
    .si              { gap: 10px; margin-bottom: 10px; }
    .si-time         { font-size: 18px; min-width: 52px; }
    .si-txt          { font-size: 14px; }
    .si-sub          { font-size: 11px; }
    .si-dot          { width: 8px; height: 8px; }
    .si-bar          { min-height: 14px; }

    /* 9. Photos always circular */
    .photo-grid          { gap: 10px; }
    .photo-slot          { border-radius: 50%; }
    .photo-slot img      { border-radius: 50%; }
    #b-date .date-photo  { width: 140px; height: 140px; border-radius: 50%; }
    #b-date .date-photo img { border-radius: 50%; }

    /* 9. Form mobile fixes */
    .fg label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .fg input,
    .fg select,
    .fg textarea {
        font-size: 16px;
        padding: 10px 12px;
        border-radius: 10px;
    }
    .fg textarea       { height: 80px; }
    .rg label          { font-size: 14px; min-height: 44px; }
    .rg                { gap: 12px; }

    /* Wrapped options: centre the group, keep the radios on one axis */
    .fg-center .rg     { flex-direction: column; align-items: flex-start; width: max-content; margin: 0 auto; gap: 0; }
    .submit-btn,
    .cta-btn           { font-size: 14px; padding: 14px 32px; min-height: 48px; }
    #b-form .b-title   { font-size: 24px; }
    .fg                { margin-bottom: 12px; }

    /* 10. Touch targets */
    .nav-btn           { width: 48px; height: 48px; font-size: 20px; }
    .dot               { width: 10px; height: 10px; }

    /* 11. Hide nav on mobile — page scrolls naturally */
    nav {
        display: none !important;
    }

    /* 12. Title strip */
    #title-strip {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        z-index: 200;
        text-align: center;
        border-bottom: 1px solid rgba(180, 160, 255, 0.15);
    }
    #title-strip h1 { font-size: 13px; }

    /* 13. Bubble links */
    .bubble-link         { font-size: 13px !important; }

    /* 14. Nebulas — hide on mobile for performance */
    .nebula              { display: none; }

    /* 15. Overview mode overrides */
    body.overview #scene {
        transform: none !important;
    }
    body.overview .bubble {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}
