/* ════════════════════════════════════════════════════════════════
   LOVE OS — dreamy pastel retro desktop wedding invitation
   ════════════════════════════════════════════════════════════════ */
:root {
    --plum: #4b3f72;
    --plum-d: #342a55;
    --plum-s: rgba(75, 63, 114, .22);
    --ink: #3d3357;
    --muted: #7d7298;
    --cream: #fffaf3;
    --paper: #fffdf9;
    --lilac-l: #ede6ff;
    --lilac: #d4c6ff;
    --lilac-d: #a891ef;
    --pink-l: #ffe1ee;
    --pink: #ffc2da;
    --pink-d: #f28bb6;
    --rose: #e9659a;
    --butter: #ffe9a3;
    --butter-d: #f6c75a;
    --mint: #c4f0dc;
    --mint-d: #6ccaa1;
    --sky: #c9e7ff;
    --bar-h: 30px;
    --f-sys: 'Silkscreen', 'VT323', monospace;
    --f-lcd: 'VT323', monospace;
    --f-body: 'Nunito', system-ui, sans-serif;
    --f-name: 'Fraunces', Georgia, serif;
    --f-ar: 'Amiri', serif;
    --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='26' viewBox='0 0 20 26'%3E%3Cpath d='M2.5 2.5v18.5l4.8-4.3 3.3 7.3 3.4-1.5-3.2-7.1h6.5z' fill='%23ffc2da' stroke='%234b3f72' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M5 7v8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") 3 3, auto;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; overflow: hidden; }
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    font: 500 15px/1.6 var(--f-body);
    color: var(--ink);
    background: #d8c9fb;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
@media (pointer: fine) { body { cursor: var(--cursor); } }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.ic { display: block; overflow: visible; }
.px { display: inline-block; width: 1em; height: .86em; vertical-align: -.06em; image-rendering: pixelated; shape-rendering: crispEdges; }
[hidden] { display: none !important; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px;
    border: 2px solid var(--plum); border-radius: 12px;
    background: var(--butter);
    color: var(--plum-d);
    font: 800 13.5px/1.2 var(--f-body);
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--plum);
    transition: transform .12s, box-shadow .12s, background .2s;
    -webkit-user-select: none; user-select: none;
}
.btn:hover { background: #fff1c2; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--plum); }
.btn:disabled { opacity: .6; }
.btn-pink { background: linear-gradient(180deg, #ffd3e5, var(--pink-d)); }
.btn-pink:hover { background: linear-gradient(180deg, #ffe0ec, #f59cc2); }
.btn-ghost { background: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 10px; box-shadow: 2px 2px 0 var(--plum); }

/* ── Wallpaper ── */
.wall {
    position: absolute; inset: 0; overflow: hidden;
    background:
        radial-gradient(ellipse 60% 45% at 85% 12%, rgba(255, 255, 255, .55), transparent 70%),
        radial-gradient(ellipse 70% 50% at 10% 85%, rgba(255, 214, 196, .75), transparent 70%),
        linear-gradient(165deg, #c9b8ff 0%, #e4c4f4 38%, #ffc8dd 68%, #ffe2cc 100%);
}
.wall::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 70%, transparent);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 70%, transparent);
}
.os[data-wall="1"] .wall { background: radial-gradient(ellipse 70% 50% at 80% 10%, rgba(255, 255, 255, .6), transparent 70%), linear-gradient(170deg, #bfe9ff 0%, #d7d0ff 45%, #ffd0e6 100%); }
.os[data-wall="2"] .wall { background: radial-gradient(ellipse 70% 50% at 20% 15%, rgba(255, 255, 255, .6), transparent 70%), linear-gradient(170deg, #c8f2df 0%, #fff0b8 50%, #ffc9d9 100%); }
.cl {
    position: absolute; display: block; border-radius: 999px; background: #fff; opacity: .7;
    filter: blur(.5px);
}
.cl::before, .cl::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cl::before { width: 46%; height: 160%; left: 16%; bottom: 30%; }
.cl::after { width: 34%; height: 130%; left: 50%; bottom: 35%; }
.cl.c1 { width: 130px; height: 30px; top: 16%; left: -20px; animation: drift 46s linear infinite; }
.cl.c2 { width: 90px; height: 22px; top: 34%; right: 8%; opacity: .55; animation: drift 60s linear infinite reverse; }
.cl.c3 { width: 160px; height: 36px; bottom: 22%; left: 40%; opacity: .5; animation: drift 70s linear infinite; }
.cl.c4 { width: 70px; height: 18px; top: 58%; left: 6%; opacity: .45; animation: drift 54s linear infinite reverse; }
@keyframes drift { 0% { transform: translateX(-30px); } 50% { transform: translateX(40px); } 100% { transform: translateX(-30px); } }
.fh { position: absolute; width: 18px; height: 16px; opacity: .55; animation: floatH 9s ease-in-out infinite; }
.fh.h1 { top: 22%; left: 62%; }
.fh.h2 { top: 48%; left: 12%; width: 12px; height: 11px; animation-delay: -3s; }
.fh.h3 { top: 70%; right: 10%; width: 24px; height: 21px; animation-delay: -5s; }
.fh.h4 { bottom: 14%; left: 30%; width: 14px; height: 12px; animation-delay: -1.5s; }
.fh.h5 { top: 12%; right: 30%; width: 10px; height: 9px; animation-delay: -7s; }
@keyframes floatH { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

/* ════════ INTRO · boot & login ════════ */
.intro { position: fixed; inset: 0; z-index: 5000; overflow: hidden; }
.boot {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 50% 42%, #fff6fb 0%, #f1e6ff 45%, #d8c9fb 100%);
    transition: opacity .5s, visibility .5s;
}
.boot-grid {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(75, 63, 114, .045) 0 1px, transparent 1px 3px);
    pointer-events: none;
}
.boot-inner { position: relative; text-align: center; animation: bootIn .7s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes bootIn { from { opacity: 0; transform: scale(.85); } }
.boot-logo .ic { width: 96px; height: 96px; margin: 0 auto 6px; filter: drop-shadow(0 8px 18px rgba(168, 145, 239, .5)); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.boot-name { margin: 0; font: 700 40px/1 var(--f-sys); color: var(--plum); letter-spacing: 1px; }
.boot-name span { color: var(--rose); }
.boot-ver { margin: 8px 0 26px; font: 400 11px/1 var(--f-sys); color: var(--muted); letter-spacing: .5px; }
.boot-bar {
    width: 210px; height: 20px; margin: 0 auto; padding: 3px;
    border: 2px solid var(--plum); border-radius: 8px; background: #fff;
    box-shadow: 3px 3px 0 var(--plum-s);
}
.boot-bar i {
    display: block; height: 100%; width: 0; border-radius: 4px;
    background: repeating-linear-gradient(90deg, var(--pink-d) 0 10px, transparent 10px 13px);
    transition: width .16s;
}
.boot-msg { margin: 14px 0 0; font: 400 12px/1 var(--f-sys); color: var(--plum); min-height: 12px; }
.boot-foot { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); margin: 0; font: 400 10px/1 var(--f-sys); color: var(--muted); }
.intro.at-login .boot { opacity: 0; visibility: hidden; }

.login {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transition: opacity .6s .1s, visibility .6s .1s;
}
.intro.at-login .login { opacity: 1; visibility: visible; }
.lg-top {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: center;
    height: var(--bar-h); padding: 0 14px;
    font: 700 11px/1 var(--f-sys); color: var(--plum);
    background: rgba(255, 250, 243, .55);
    border-bottom: 2px solid rgba(75, 63, 114, .18);
}
.lg-brand .px { width: 13px; height: 11px; margin-right: 4px; }
.lg-main {
    position: relative; z-index: 1; flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 18px 20px 10px; text-align: center;
}
.lg-kicker { margin: 0 0 8px; }
.lg-kicker span {
    display: inline-block; padding: 5px 12px 4px;
    font: 400 10.5px/1 var(--f-sys); letter-spacing: .5px; color: var(--plum);
    background: rgba(255, 255, 255, .7); border: 2px solid var(--plum); border-radius: 999px;
}
.lg-couple {
    margin: 4px 0 6px; max-width: 360px;
    font: italic 500 clamp(34px, 10vw, 46px)/1.05 var(--f-name);
    color: var(--plum-d);
    text-shadow: 0 2px 0 rgba(255, 255, 255, .7);
}
.lg-couple i { display: block; font-size: .62em; color: var(--rose); margin: 2px 0; }
.lg-date { margin: 2px 0 62px; font: 800 13px/1.3 var(--f-body); color: var(--plum); }
.lg-date .px { width: 11px; height: 9.5px; margin: 0 4px; }
.lg-card {
    position: relative;
    width: min(320px, 100%);
    padding: 46px 20px 18px;
    background: rgba(255, 250, 243, .82);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 2px solid var(--plum); border-radius: 22px;
    box-shadow: 5px 6px 0 var(--plum-s), 0 24px 50px -16px rgba(75, 63, 114, .45);
}
.lg-avatar {
    position: absolute; left: 50%; top: -42px; transform: translateX(-50%);
    width: 84px; height: 84px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #ffd8ea, #c9b6ff);
    border: 3px solid var(--plum);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .8), 4px 5px 0 6px var(--plum-s);
    font: italic 600 38px/1 var(--f-name); color: var(--plum-d);
}
.lg-avatar .av-heart { position: absolute; right: -4px; bottom: 2px; width: 26px; height: 22px; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.lg-label { margin: 0; font: 700 12px/1.4 var(--f-body); color: var(--muted); }
.lg-guest { margin: 4px 0 14px; font: 800 21px/1.25 var(--f-body); color: var(--plum-d); overflow-wrap: anywhere; }
.lg-pass {
    display: flex; align-items: center; gap: 4px;
    height: 38px; margin: 0 auto 14px; padding: 0 12px;
    background: #fff; border: 2px solid var(--plum); border-radius: 11px;
    box-shadow: inset 2px 2px 0 rgba(75, 63, 114, .1);
}
.lp-dots { display: flex; gap: 5px; }
.lp-dots .px { width: 13px; height: 11px; }
.lp-caret { width: 2px; height: 18px; background: var(--plum); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.btn-login { width: 100%; padding: 12px; font-size: 15px; background: linear-gradient(180deg, #ffd3e5, var(--pink-d)); }
.btn-login b { font-size: 16px; }
.lg-hint { margin: 10px 0 0; font: 600 11.5px/1.3 var(--f-body); color: var(--muted); }
.lg-bottom {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
    font: 400 10px/1 var(--f-sys); color: var(--plum);
}
.lg-bottom span { display: inline-flex; align-items: center; gap: 5px; }
.lg-bottom svg { width: 15px; height: 15px; fill: none; stroke: var(--plum); stroke-width: 1.8; stroke-linecap: round; }
.intro.leaving .lg-card { animation: loginOut .6s cubic-bezier(.5, 0, .7, .3) forwards; }
.intro.leaving { animation: fadeOut .45s .3s forwards; }
@keyframes loginOut { to { transform: scale(.9) translateY(10px); opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

/* ════════ DESKTOP ════════ */
.os { position: fixed; inset: 0; overflow: hidden; }
.menubar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 4000;
    height: var(--bar-h);
    display: flex; align-items: center; gap: 2px;
    padding: 0 6px 0 4px;
    background: rgba(255, 250, 243, .86);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--plum);
    font: 400 11px/1 var(--f-sys);
    color: var(--plum-d);
}
.mb-item { height: 24px; padding: 0 8px; border: 0; background: none; border-radius: 6px; font: inherit; }
.mb-item:hover, .mb-item:active { background: var(--lilac); }
.mb-logo { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.mb-logo .px { width: 14px; height: 12px; }
.mb-sp { flex: 1; }
.mb-clock { padding: 0 4px 0 6px; white-space: pre; }
.music-toggle-btn {
    position: relative;
    width: 28px; height: 24px; border-radius: 7px;
    display: grid; place-items: center;
    border: 0; background: none; color: var(--plum);
}
.music-toggle-btn:hover { background: var(--lilac); }
.music-toggle-btn svg { width: 14px; height: 14px; }
.music-toggle-btn .eq { display: none; }

.desk {
    position: absolute; top: var(--bar-h); left: 0; right: 0; bottom: 52px;
    display: flex; flex-direction: column;
    padding: 14px 6px 0;
}
.icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 2px;
    align-content: start;
}
.ico {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 6px 2px 4px; border: 0; background: none; border-radius: 12px;
    -webkit-user-select: none; user-select: none;
    animation: icoIn .5s cubic-bezier(.2, .9, .3, 1.3) both paused;
}
.ico .ic { width: 46px; height: 46px; filter: drop-shadow(2px 3px 0 rgba(75, 63, 114, .22)); transition: transform .2s; }
.ico span {
    max-width: 88px; padding: 1px 6px 2px;
    font: 800 11px/1.25 var(--f-body); color: var(--plum-d); text-align: center;
    background: rgba(255, 250, 243, .7); border-radius: 6px;
    overflow-wrap: anywhere;
}
.ico:hover .ic { transform: translateY(-3px) rotate(-3deg); }
.ico:active .ic { transform: scale(.9); }
.ico.sel span { background: var(--plum); color: #fff; }
.ico.sel .ic { filter: drop-shadow(2px 3px 0 rgba(75, 63, 114, .22)) brightness(.92) sepia(.25) hue-rotate(210deg); }
body.opened .ico { animation-play-state: running; }
@keyframes icoIn { from { opacity: 0; transform: translateY(10px) scale(.8); } }
.icons .ico:nth-child(2) { animation-delay: .04s; } .icons .ico:nth-child(3) { animation-delay: .08s; }
.icons .ico:nth-child(4) { animation-delay: .12s; } .icons .ico:nth-child(5) { animation-delay: .16s; }
.icons .ico:nth-child(6) { animation-delay: .2s; } .icons .ico:nth-child(7) { animation-delay: .24s; }
.icons .ico:nth-child(8) { animation-delay: .28s; } .icons .ico:nth-child(9) { animation-delay: .32s; }
.icons .ico:nth-child(10) { animation-delay: .36s; } .icons .ico:nth-child(11) { animation-delay: .4s; }

/* widgets */
.widgets {
    flex: 1; position: relative;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 6px 16px;
    min-height: 0;
}
.w-polaroid {
    position: relative;
    width: 168px; padding: 9px 9px 0;
    border: 2px solid var(--plum); border-radius: 6px; background: #fff;
    box-shadow: 5px 6px 0 var(--plum-s);
    transform: rotate(-5deg);
    transition: transform .25s;
}
.w-polaroid:hover { transform: rotate(-2deg) translateY(-4px); }
.tape {
    position: absolute; top: -11px; left: 50%; width: 64px; height: 20px; margin-left: -32px;
    background: rgba(255, 233, 163, .85); border: 1px dashed rgba(75, 63, 114, .3);
    transform: rotate(3deg);
}
.pl-photo { display: block; aspect-ratio: 1 / 1.08; overflow: hidden; border: 2px solid var(--plum); border-radius: 3px; background: linear-gradient(145deg, #ffd8ea, #c9b6ff); }
.pl-photo img { width: 100%; height: 100%; object-fit: cover; }
.pl-mono { display: flex; height: 100%; align-items: center; justify-content: center; gap: 6px; font: italic 600 40px/1 var(--f-name); color: var(--plum-d); }
.pl-mono .px { width: 22px; height: 19px; }
.pl-cap { display: block; padding: 7px 0 10px; font: italic 600 18px/1.1 var(--f-name); color: var(--plum-d); }
.w-note {
    position: relative;
    width: 136px; padding: 18px 10px 14px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    border: 2px solid var(--plum); border-radius: 4px 4px 18px 4px;
    background: linear-gradient(160deg, #fff4c4, var(--butter));
    box-shadow: 4px 5px 0 var(--plum-s);
    transform: rotate(4deg) translateY(24px);
    transition: transform .25s;
}
.w-note:hover { transform: rotate(1deg) translateY(18px); }
.nt-pin { position: absolute; top: -8px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: var(--pink-d); border: 2px solid var(--plum); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .12); }
.nt-k { font: 400 9.5px/1 var(--f-sys); color: var(--plum); }
.nt-d { font: 400 36px/.9 var(--f-lcd); color: var(--plum-d); }
.nt-h { font: 800 12px/1 var(--f-body); color: var(--rose); }
.nt-h em { font-style: normal; }
.nt-h .px { width: 11px; height: 9.5px; }

/* taskbar */
.dock {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4000;
    height: calc(52px + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(237, 230, 255, .92));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 2px solid var(--plum);
}
.start {
    flex: none;
    height: 36px; padding: 0 12px 0 10px;
    display: inline-flex; align-items: center; gap: 6px;
    border: 2px solid var(--plum); border-radius: 12px;
    background: linear-gradient(180deg, #ffd8ea, var(--pink-d));
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 2px 2px 0 var(--plum);
    font: 700 12px/1 var(--f-sys); color: var(--plum-d);
}
.start .px { width: 16px; height: 14px; }
.start.on { transform: translate(1px, 1px); box-shadow: inset 2px 2px 0 rgba(75, 63, 114, .25); }
.tasks { flex: 1; min-width: 0; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.tasks::-webkit-scrollbar { display: none; }
.task {
    flex: none; max-width: 150px;
    height: 34px; padding: 0 10px 0 6px;
    display: inline-flex; align-items: center; gap: 5px;
    border: 2px solid var(--plum); border-radius: 10px; background: #fff;
    font: 800 11.5px/1 var(--f-body); color: var(--plum-d);
    box-shadow: 2px 2px 0 var(--plum-s);
    animation: taskIn .25s ease both;
}
.task .ic { width: 20px; height: 20px; flex: none; }
.task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.on { background: var(--lilac); box-shadow: inset 2px 2px 0 rgba(75, 63, 114, .2); }
.task.min { opacity: .65; border-style: dashed; }
@keyframes taskIn { from { opacity: 0; transform: translateY(8px); } }
.tray { display: none; flex: none; padding: 0 10px; height: 34px; align-items: center; border: 2px solid rgba(75, 63, 114, .35); border-radius: 10px; font: 400 11px/1 var(--f-sys); color: var(--plum); background: rgba(255, 255, 255, .6); }
body.has-qr .dock { padding-right: 168px; }
body.has-qr .tray { display: none !important; }

/* start menu */
.startmenu {
    position: absolute; left: 8px; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 4100;
    width: min(300px, calc(100vw - 16px));
    display: flex;
    background: var(--cream);
    border: 2px solid var(--plum); border-radius: 16px;
    box-shadow: 5px 6px 0 var(--plum-s), 0 20px 40px -14px rgba(75, 63, 114, .5);
    overflow: hidden;
    transform-origin: 0 100%;
    animation: smIn .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes smIn { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.sm-side {
    width: 30px; flex: none;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 12px;
    background: linear-gradient(0deg, var(--pink-d), var(--lilac-d));
}
.sm-side span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 13px/1 var(--f-sys); color: #fff; letter-spacing: 1px; }
.sm-side b { color: var(--butter); }
.sm-main { flex: 1; min-width: 0; padding: 10px 8px 8px; }
.sm-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; border-bottom: 2px dashed var(--lilac); }
.sm-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--plum); background: linear-gradient(145deg, #ffd8ea, #c9b6ff); font: italic 600 18px/1 var(--f-name); }
.sm-user small { display: block; font: 600 11px/1 var(--f-body); color: var(--muted); }
.sm-user b { display: block; font: 800 14px/1.2 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-list { list-style: none; margin: 6px 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.sm-list button, .sm-off {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; border: 0; border-radius: 9px; background: none;
    font: 700 13.5px/1.2 var(--f-body); color: var(--ink); text-align: left;
}
.sm-list .ic { width: 26px; height: 26px; flex: none; }
.sm-list button:hover, .sm-off:hover { background: var(--lilac-l); }
.sm-off { border-top: 2px dashed var(--lilac); border-radius: 0 0 9px 9px; padding-top: 9px; font-size: 12.5px; color: var(--muted); }
.sm-off svg { width: 16px; height: 16px; margin: 0 5px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* notification */
.notif {
    position: absolute; top: calc(var(--bar-h) + 8px); right: 8px; z-index: 4200;
    width: min(300px, calc(100vw - 16px));
    display: flex; gap: 10px; align-items: center;
    padding: 10px 12px;
    background: rgba(255, 250, 243, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 2px solid var(--plum); border-radius: 14px;
    box-shadow: 4px 5px 0 var(--plum-s);
    transform: translateX(calc(100% + 20px));
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);
    pointer-events: none;
}
.notif.show { transform: none; }
.nf-ic .ic { width: 32px; height: 32px; }
.nf-t { display: block; font: 700 10.5px/1.2 var(--f-sys); color: var(--rose); }
.nf-b { margin: 2px 0 0; font: 700 13px/1.35 var(--f-body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ════════ WINDOWS ════════ */
.win {
    position: absolute;
    display: flex; flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border: 2px solid var(--plum);
    border-radius: 14px;
    box-shadow: 5px 6px 0 var(--plum-s), 0 22px 46px -18px rgba(75, 63, 114, .55);
    overflow: hidden;
}
.win.win-in { animation: winIn .36s cubic-bezier(.2, .9, .25, 1.15); }
.win.win-out { animation: winOut .17s ease-in forwards; }
.win.win-min { animation: winMin .23s ease-in forwards; }
@keyframes winIn { from { opacity: 0; transform: scale(.12); } 55% { opacity: 1; } }
@keyframes winOut { to { opacity: 0; transform: scale(.92); } }
@keyframes winMin { to { opacity: 0; transform: scale(.06); } }
.win.max { left: 0 !important; top: var(--bar-h) !important; width: 100% !important; height: calc(100% - var(--bar-h) - 52px) !important; max-height: none !important; border-radius: 0; border-left: 0; border-right: 0; }
.win-bar {
    position: relative; flex: none;
    height: 34px;
    display: flex; align-items: center; gap: 7px;
    padding: 0 5px 0 8px;
    background: linear-gradient(180deg, #ece7f7, #ddd6ef);
    border-bottom: 2px solid var(--plum);
    touch-action: none;
    -webkit-user-select: none; user-select: none;
}
.win.focus .win-bar { background: linear-gradient(90deg, #b9a2f6 0%, #e7a6d6 60%, #ffb8d0 100%); }
.win-bar::after {
    content: ''; position: absolute; left: 4px; right: 4px; top: 3px; height: 11px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.win-ic .ic { width: 20px; height: 20px; }
.win-title {
    flex: 1; min-width: 0;
    font: 700 11px/1 var(--f-sys); color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win.focus .win-title { color: #fff; text-shadow: 1px 1px 0 var(--plum), -1px 0 0 var(--plum), 0 -1px 0 var(--plum), 1px 0 0 var(--plum), 0 1px 0 var(--plum); }
.win-btns { position: relative; z-index: 1; display: flex; gap: 4px; flex: none; }
.wb {
    width: 24px; height: 22px; padding: 0;
    display: grid; place-items: center;
    border: 2px solid var(--plum); border-radius: 7px;
    background: linear-gradient(180deg, #fff, #f0eafc);
    box-shadow: inset 0 -2px 0 rgba(75, 63, 114, .12);
}
.wb svg { width: 10px; height: 10px; fill: none; stroke: var(--plum); stroke-width: 1.8; stroke-linecap: round; }
.wb:active { transform: translateY(1px); }
.wb-close { background: linear-gradient(180deg, #ffd3e5, #f59cc2); }
.win-body {
    flex: 1; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px 18px 20px;
}
.win-body::-webkit-scrollbar { width: 12px; }
.win-body::-webkit-scrollbar-track { background: var(--lilac-l); border-left: 2px solid var(--lilac); }
.win-body::-webkit-scrollbar-thumb { background: var(--lilac-d); border: 2px solid var(--plum); border-radius: 6px; }
.win-foot {
    position: relative; flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px 10px;
    background: var(--lilac-l);
    border-top: 2px solid var(--plum);
}
.wf-step { font: 400 11px/1 var(--f-sys); color: var(--plum); display: flex; align-items: center; gap: 8px; }
.wf-step b { font-weight: 700; color: var(--rose); }
.wf-dots { display: inline-flex; gap: 3px; }
.wf-dots i { width: 6px; height: 6px; border-radius: 2px; background: rgba(75, 63, 114, .2); }
.wf-dots i.on { background: var(--pink-d); }
.btn-next { padding: 8px 14px; font-size: 13px; background: linear-gradient(180deg, #ffd3e5, var(--pink-d)); }
.btn-next b { font-size: 15px; transition: transform .2s; }
.btn-next:hover b { transform: translateX(3px); }
.win.drag { opacity: .94; }

/* first-run tip balloon */
.tip {
    position: absolute; right: 10px; bottom: 58px; z-index: 5;
    width: min(270px, calc(100% - 20px));
    display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start;
    padding: 12px 12px 10px;
    background: #fffbe0;
    border: 2px solid var(--plum); border-radius: 14px;
    box-shadow: 4px 5px 0 var(--plum-s);
    animation: tipIn .45s cubic-bezier(.2, .9, .3, 1.4) both;
}
.tip::after {
    content: ''; position: absolute; right: 36px; bottom: -10px;
    width: 16px; height: 16px; background: #fffbe0;
    border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum);
    transform: rotate(45deg);
}
.tip-mascot .px { width: 30px; height: 26px; animation: beat 1.4s ease-in-out infinite; }
.tip p { flex: 1; min-width: 0; margin: 0; font: 600 12.5px/1.45 var(--f-body); }
.tip-ok { margin-left: auto; padding: 4px 12px; border: 2px solid var(--plum); border-radius: 8px; background: var(--butter); font: 800 12px/1.2 var(--f-body); }
@keyframes tipIn { from { opacity: 0; transform: translateY(10px) scale(.9); } }

/* ── Undangan.txt ── */
.np-menu {
    flex: none; display: flex; gap: 14px;
    padding: 5px 12px;
    font: 600 12px/1.2 var(--f-body); color: var(--muted);
    border-bottom: 1px solid var(--lilac);
    background: #fff;
}
.np {
    background-color: #fff;
    background-image: linear-gradient(transparent 27px, #f1ebff 27px 28px);
    background-size: 100% 28px;
    background-attachment: local;
    line-height: 28px;
    padding-top: 10px;
}
.np p { margin: 0 0 14px; }
.bismillah { font: 700 26px/1.8 var(--f-ar); color: var(--plum-d); text-align: center; }
.salam { font-weight: 800; color: var(--rose); }
.ayat {
    margin: 6px 0 14px; padding: 12px 14px;
    background: var(--lilac-l);
    border: 2px solid var(--plum); border-radius: 12px;
    box-shadow: 3px 3px 0 var(--plum-s);
    line-height: 1.65;
}
.ayat p { margin: 0 0 6px !important; font-style: italic; font-size: 14.5px; }
.ayat cite { font: 400 10.5px/1 var(--f-sys); font-style: normal; color: var(--plum); }
.np-names { font: italic 600 26px/1.3 var(--f-name) !important; color: var(--plum-d); text-align: center; margin-top: 4px !important; }
.np-names i { color: var(--rose); }
.np-caret { margin: 0 !important; font: 400 20px/1 var(--f-lcd); color: var(--plum); animation: blink 1s steps(1) infinite; }
.np-status { flex: none; display: flex; justify-content: space-between; padding: 4px 12px; font: 400 10px/1.3 var(--f-sys); color: var(--muted); background: #fff; border-top: 1px solid var(--lilac); }

/* ── Mempelai ── */
.folder { background: linear-gradient(180deg, #fff, var(--pink-l)); }
.fd-path { display: flex; align-items: center; gap: 6px; margin: -6px 0 14px; font: 700 12px/1 var(--f-body); color: var(--muted); }
.fd-path .ic { width: 18px; height: 18px; }
.idcard {
    position: relative;
    background: #fff;
    border: 2px solid var(--plum); border-radius: 16px;
    box-shadow: 4px 5px 0 var(--plum-s);
    overflow: hidden;
}
.id-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 12px;
    background: repeating-linear-gradient(135deg, var(--lilac) 0 8px, #ddd2ff 8px 16px);
    border-bottom: 2px solid var(--plum);
    font: 700 10px/1 var(--f-sys); color: var(--plum-d);
}
.idcard.b .id-head { background: repeating-linear-gradient(135deg, var(--pink) 0 8px, #ffd2e4 8px 16px); }
.barcode { width: 54px; height: 14px; background: repeating-linear-gradient(90deg, var(--plum) 0 2px, transparent 2px 3px, var(--plum) 3px 4px, transparent 4px 7px); }
.id-main { display: flex; gap: 14px; align-items: center; padding: 14px 14px 6px; }
.id-av {
    position: relative; flex: none;
    width: 72px; height: 72px; border-radius: 50%;
    display: grid; place-items: center;
    border: 2px solid var(--plum);
    background: linear-gradient(145deg, #c9e7ff, #c9b6ff);
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--lilac);
    font: italic 600 34px/1 var(--f-name); color: var(--plum-d);
}
.id-av.b { background: linear-gradient(145deg, #ffe1ee, #ffb3cf); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--pink); }
.id-hb { position: absolute; right: -4px; bottom: -2px; width: 22px; height: 19px; }
.id-role { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--butter); border: 1.5px solid var(--plum); font: 700 9.5px/1 var(--f-sys); }
.id-name { margin: 6px 0 0; font: italic 600 25px/1.1 var(--f-name); color: var(--plum-d); overflow-wrap: anywhere; }
.id-rows { margin: 6px 14px 14px; padding: 0; }
.id-rows div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--lilac); font-size: 13.5px; line-height: 1.4; }
.id-rows dt { font: 400 10px/1.6 var(--f-sys); color: var(--muted); }
.id-rows dd { margin: 0; font-weight: 700; }
.id-rows dd.ok { color: var(--mint-d); }
.link-up { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.link-up i { flex: 1; border-top: 2px dashed var(--pink-d); }
.link-up span { font: 400 10.5px/1 var(--f-sys); color: var(--rose); display: inline-flex; gap: 5px; align-items: center; }
.link-up .px { width: 16px; height: 14px; animation: beat 1.4s ease-in-out infinite; }

/* ── Hitung Mundur ── */
.cdw { text-align: center; background: radial-gradient(ellipse at 50% 0%, #fff3f9, #fff 60%); }
.cd-k { margin: 0 0 12px; font: 400 11px/1 var(--f-sys); color: var(--plum); }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-box {
    padding: 10px 2px 8px;
    background: linear-gradient(180deg, #43376b, #2f2650);
    border: 2px solid var(--plum-d); border-radius: 12px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), 3px 4px 0 var(--plum-s);
}
.cd-box b { display: block; font: 400 46px/.9 var(--f-lcd); color: #c9ffe9; text-shadow: 0 0 10px rgba(140, 255, 210, .7); }
.cd-box span { display: block; margin-top: 4px; font: 400 9px/1 var(--f-sys); color: #ffc2da; }
.loadbar { margin: 18px 0 14px; text-align: left; }
.loadbar p { display: flex; justify-content: space-between; margin: 0 0 6px; font: 400 10.5px/1 var(--f-sys); color: var(--plum); }
.loadbar b { color: var(--rose); }
.lb-track { height: 22px; padding: 3px; border: 2px solid var(--plum); border-radius: 8px; background: #fff; }
.lb-track i { display: block; height: 100%; width: 0; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--pink-d) 0 10px, transparent 10px 13px); transition: width .3s; }
.cd-date { margin: 0 0 14px; font: 800 15px/1.4 var(--f-body); }
.cd-date .px { width: 13px; height: 11px; }

/* ── Acara.cal ── */
.calw { background: #fff; }
.cal { padding: 12px; border: 2px solid var(--plum); border-radius: 16px; background: var(--cream); box-shadow: 3px 4px 0 var(--plum-s); margin-bottom: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font: 700 12px/1 var(--f-sys); color: var(--plum-d); text-transform: capitalize; }
.cal-head span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--lilac-l); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-wd { font: 400 9px/2 var(--f-sys); color: var(--muted); }
.cal-d { position: relative; font: 700 13px/2.1 var(--f-body); border-radius: 8px; color: var(--ink); }
.cal-d.mk { color: #fff; background: var(--pink-d); border: 2px solid var(--plum); line-height: 1.85; animation: beat 1.8s ease-in-out infinite; }
.cal-d.mk-a { background: var(--lilac-d); }
.cal-d.mk::after { content: '♥'; position: absolute; top: -9px; right: -5px; font-size: 11px; color: var(--rose); }
.ev {
    display: flex; gap: 0; margin-bottom: 12px;
    border: 2px solid var(--plum); border-radius: 16px; overflow: hidden;
    box-shadow: 3px 4px 0 var(--plum-s);
    background: #fff;
}
.ev-time { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--lilac); border-right: 2px solid var(--plum); }
.ev.two .ev-time { background: var(--pink); }
.ev-time b { font: 400 28px/1 var(--f-lcd); color: var(--plum-d); }
.ev-time span { font: 400 18px/1 var(--f-lcd); color: var(--plum); opacity: .75; }
.ev-time span::before { content: '→ '; }
.ev-body { flex: 1; min-width: 0; padding: 12px 14px 14px; }
.ev-tag { font: 400 9.5px/1 var(--f-sys); color: var(--muted); }
.ev-body h3 { margin: 4px 0 2px; font: italic 600 23px/1.1 var(--f-name); color: var(--plum-d); }
.ev-date { margin: 0; font-weight: 800; font-size: 13.5px; }
.ev-loc { display: flex; gap: 5px; align-items: flex-start; margin: 4px 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.ic.mini { width: 18px; height: 18px; flex: none; }

/* ── Peta.app ── */
.mapw { background: #fff; padding-top: 12px; }
.map-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 10px; border: 2px solid var(--plum); border-radius: 999px; background: var(--cream); font: 700 13px/1.2 var(--f-body); }
.map-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; }
.map-frame { position: relative; height: 230px; border: 2px solid var(--plum); border-radius: 16px; overflow: hidden; box-shadow: 3px 4px 0 var(--plum-s); background: #f4f0ff; }
.leaflet-map { width: 100%; height: 100%; }
.os-marker { background: none; border: 0; }
.os-marker svg { width: 44px; height: 44px; filter: drop-shadow(2px 3px 0 rgba(75, 63, 114, .3)); }
.map-illu { position: absolute; inset: 0; display: block; }
.map-illu svg { width: 100%; height: 100%; display: block; }
.route { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.mi-pin { position: absolute; left: calc(262 / 320 * 100%); top: calc(52 / 200 * 100%); transform: translate(-50%, -88%); animation: bob 2s ease-in-out infinite; }
.mi-pin .ic { width: 48px; height: 48px; filter: drop-shadow(2px 4px 0 rgba(75, 63, 114, .28)); }
.mi-ring { position: absolute; left: calc(262 / 320 * 100%); top: calc(52 / 200 * 100%); width: 50px; height: 18px; margin: -9px 0 0 -25px; border-radius: 50%; border: 2px solid var(--pink-d); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.mi-you { position: absolute; left: calc(58 / 320 * 100%); top: calc(158 / 200 * 100%); transform: translate(-50%, 14px); padding: 2px 7px; border-radius: 6px; background: #fff; border: 1.5px solid var(--plum); font: 400 9px/1.2 var(--f-sys); }
.loc { padding: 14px 2px 0; }
.loc-k { font: 400 10px/1 var(--f-sys); color: var(--muted); }
.loc h3 { margin: 4px 0; font: italic 600 24px/1.15 var(--f-name); color: var(--plum-d); }
.loc p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.loc .loc-eta { font-weight: 800; color: var(--rose); font-size: 13px; }
.loc-eta .px { width: 12px; height: 10px; }

/* ── Galeri ── */
.galw { background: #2f2650; padding: 12px 12px 14px; color: #fff; }
.galw::-webkit-scrollbar-track { background: #3a3060; border-left-color: #463a73; }
.viewer { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid #120c26; background: #1d1636; }
.vw-main { display: block; width: 100%; padding: 0; border: 0; background: none; }
.vw-main img { width: 100%; aspect-ratio: 4 / 5; max-height: 54vh; object-fit: cover; }
.vw-main img.swap { animation: swap .45s ease; }
@keyframes swap { from { opacity: .2; transform: scale(1.03); } }
.vw-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    border: 2px solid var(--plum); background: rgba(255, 250, 243, .9); color: var(--plum);
    font: 800 22px/1 var(--f-body); padding-bottom: 3px;
}
.vw-nav.prev { left: 8px; } .vw-nav.next { right: 8px; }
.vw-count { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 7px; background: rgba(47, 38, 80, .75); font: 400 10px/1 var(--f-sys); }
.vw-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0; font: 400 10px/1.3 var(--f-sys); color: #cfc3f5; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.th { flex: none; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: #1d1636; opacity: .55; transition: opacity .2s, border-color .2s; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th.on { opacity: 1; border-color: var(--pink); }
.gal-empty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px 0; }
.ge-tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .25); background: #3a3060; }
.ge-tile .ic { width: 40px; height: 40px; opacity: .8; }
.ge-tile.b { background: #4a3265; } .ge-tile.c { background: #33456a; }
.gal-empty p { grid-column: 1 / -1; margin: 8px 0 0; text-align: center; font-size: 14px; color: #e5ddff; }

/* ── Hadiah.zip ── */
.giftw { padding: 14px 0 0; background: linear-gradient(180deg, var(--pink-l), #fff 40%); }
.zip-head { display: flex; gap: 12px; align-items: center; margin: 0 16px 4px; padding: 12px; border: 2px dashed var(--pink-d); border-radius: 14px; background: rgba(255, 255, 255, .7); }
.zip-head .ic { width: 44px; height: 44px; flex: none; }
.zip-head p { margin: 0; font-size: 13.5px; line-height: 1.5; font-weight: 600; }
.gift-wrap:not(:has(#gift-section)) { display: none; }
.gift-wrap #gift-section { background: transparent !important; padding: 16px 0 18px !important; font-family: var(--f-body) !important; }
.gift-wrap .gs-heading h2 { font-family: var(--f-name) !important; font-style: italic; font-weight: 600 !important; color: var(--plum-d) !important; }
.gift-wrap .gs-heading h2::after { background: var(--pink-d) !important; }
.gift-wrap .gs-heading p, .gift-wrap .gs-sub-label { font-family: var(--f-body) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border: 2px solid var(--plum) !important; border-radius: 14px !important; box-shadow: 3px 4px 0 var(--plum-s) !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 10px !important; font-family: var(--f-body) !important; font-weight: 800 !important; }

/* ── RSVP.exe ── */
.rsvpw { padding: 0; background: #fff; }
.wz-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(120deg, #c9b6ff, #ffc2da 70%, #ffe2cc);
    border-bottom: 2px solid var(--plum);
}
.wz-banner .ic { width: 50px; height: 50px; flex: none; filter: drop-shadow(2px 3px 0 rgba(75, 63, 114, .25)); animation: bob 2.6s ease-in-out infinite; }
.wz-banner b { display: block; font: italic 600 21px/1.15 var(--f-name); color: var(--plum-d); }
.wz-banner span { display: block; margin-top: 3px; font: 700 12.5px/1.3 var(--f-body); color: var(--plum); }
.wz-form { position: relative; padding: 14px 18px 18px; }
.f-l { display: block; margin: 10px 0 6px; font: 400 10.5px/1 var(--f-sys); color: var(--plum); }
.f-in {
    width: 100%; padding: 10px 12px;
    border: 2px solid var(--plum); border-radius: 11px;
    background: var(--cream);
    font: 600 15px/1.4 var(--f-body); color: var(--ink);
    box-shadow: inset 2px 2px 0 rgba(75, 63, 114, .08);
    resize: vertical;
}
.f-in:focus { outline: none; background: #fff; box-shadow: 0 0 0 3px var(--pink); }
.opts { display: grid; gap: 6px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 2px solid var(--lilac); border-radius: 11px; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt i { width: 20px; height: 20px; flex: none; border: 2px solid var(--plum); border-radius: 6px; background: #fff; display: grid; place-items: center; }
.opt:has(input:checked) { border-color: var(--plum); background: var(--pink-l); }
.opt input:checked + i { background: var(--pink-d); }
.opt input:checked + i::after { content: '✓'; color: #fff; font: 900 13px/1 var(--f-body); }
.opt input:focus-visible + i { box-shadow: 0 0 0 3px var(--lilac); }
.wz-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.install {
    position: absolute; inset: 0; z-index: 2;
    display: none; align-items: center; justify-content: center;
    padding: 20px; text-align: center;
    background: rgba(255, 253, 249, .96);
}
.install.show { display: flex; }
.install > div { display: none; width: 100%; max-width: 320px; }
.install.run .in-run, .install.done .in-done, .install.err .in-err { display: block; animation: tipIn .35s ease both; }
.in-ic { width: 56px; height: 56px; margin: 0 auto 10px; animation: bob 1s ease-in-out infinite; }
.in-t { margin: 0 0 10px; font: italic 600 22px/1.2 var(--f-name); color: var(--plum-d); }
.in-p { margin: 8px 0 0; font: 400 12px/1 var(--f-sys); color: var(--rose); }
.in-s { margin: -4px 0 6px; font-size: 14px; }
.in-check { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--plum); background: var(--mint); font: 900 30px/1 var(--f-body); color: var(--plum-d); box-shadow: 3px 4px 0 var(--plum-s); }
.in-check.err { background: var(--pink); }
.install .wz-btns { justify-content: center; }

/* ── Buku Tamu ── */
.msg-head { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--lilac); font: 700 13px/1 var(--f-body); color: var(--muted); }
.msg-head b { color: var(--plum-d); margin-right: auto; }
.mh-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-d); box-shadow: 0 0 0 3px rgba(108, 202, 161, .25); }
.chatw { background: linear-gradient(180deg, var(--lilac-l), #fff7fb); padding: 14px 12px; }
.wishes-list { display: flex; flex-direction: column; gap: 12px; }
.wish-item { display: flex; gap: 9px; align-items: flex-end; }
.wish-item.new { animation: tipIn .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.wish-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--plum); background: var(--av, var(--pink)); font: 800 15px/1 var(--f-body); color: var(--plum-d); text-transform: uppercase; }
.wish-body { position: relative; min-width: 0; max-width: calc(100% - 44px); padding: 9px 12px 7px; border: 2px solid var(--plum); border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 2px 3px 0 var(--plum-s); }
.wish-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wish-name { font: 800 13.5px/1.3 var(--f-body); color: var(--plum-d); }
.wish-badge { padding: 2px 6px; border-radius: 6px; font: 400 8.5px/1.3 var(--f-sys); border: 1.5px solid var(--plum); }
.wish-badge.hadir { background: var(--mint); }
.wish-badge.tidak { background: var(--pink); }
.wish-badge.ragu { background: var(--butter); }
.wish-message { margin: 4px 0 2px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.wish-time { font: 400 9px/1 var(--f-sys); color: var(--muted); }
.wish-empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.wish-empty .ic { width: 56px; height: 56px; margin: 0 auto 10px; }
.wish-empty p { margin: 0; font-weight: 700; }
.composer {
    flex: none; display: flex; align-items: center; gap: 8px;
    margin: 0; padding: 8px 10px; border: 0; border-top: 1px solid var(--lilac); background: #fff; text-align: left;
}
.composer span { flex: 1; padding: 9px 14px; border: 2px solid var(--lilac); border-radius: 999px; font: 600 13.5px/1.2 var(--f-body); color: var(--muted); }
.composer b { padding: 9px 14px; border: 2px solid var(--plum); border-radius: 999px; background: var(--pink-d); font: 800 13px/1 var(--f-body); color: var(--plum-d); }

/* ── Tentang / Terima Kasih ── */
.about { text-align: center; background: radial-gradient(ellipse at 50% 0, var(--pink-l), #fff 55%); }
.ab-logo .ic { width: 72px; height: 72px; margin: 0 auto; animation: bob 2.6s ease-in-out infinite; }
.about .ab-ver { margin: 4px 0 6px; font: 400 10px/1 var(--f-sys); color: var(--muted); }
.ab-title { margin: 0 0 8px; font: italic 600 36px/1.1 var(--f-name); color: var(--plum-d); }
.about > p { font-size: 14.5px; }
.ab-rows { margin: 14px 0; padding: 4px 12px; text-align: left; border: 2px solid var(--plum); border-radius: 14px; background: #fff; box-shadow: 3px 4px 0 var(--plum-s); }
.ab-rows div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--lilac); font-size: 13.5px; line-height: 1.4; }
.ab-rows div:first-child { border-top: 0; }
.ab-rows dt { font: 400 9.5px/1.7 var(--f-sys); color: var(--muted); }
.ab-rows dd { margin: 0; font-weight: 700; }
.about .ab-names { margin: 6px 0 2px; font: italic 600 32px/1.2 var(--f-name); color: var(--plum-d); }
.ab-names i { color: var(--rose); }
.about .ab-salam { font-weight: 800; color: var(--rose); }
.about .ab-credit { margin: 14px 0 0; font: 400 9.5px/1.4 var(--f-sys); color: var(--muted); }

/* ── dialogs ── */
.dialog { text-align: center; padding: 22px 20px; }
.dl-ic { width: 60px; height: 60px; margin: 0 auto 10px; }
.dialog p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; }

/* ── FX ── */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9600; }
.burst { position: absolute; display: block; margin: -10px 0 0 -10px; animation: burst 1.15s cubic-bezier(.2, .7, .3, 1) forwards; }
.burst svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 0; } }

/* ── Lightbox ── */
.gallery-lightbox {
    position: fixed; inset: 0; z-index: 9000;
    display: none; align-items: center; justify-content: center;
    background: rgba(47, 38, 80, .9);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .3s;
}
.lb-img-wrap { max-width: 92vw; max-height: 80vh; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border-radius: 12px; border: 3px solid var(--cream); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    border: 2px solid var(--plum); background: var(--cream); color: var(--plum);
    font: 800 20px/1 var(--f-body);
}
.lb-close { top: 18px; right: 18px; font-size: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font: 400 11px/1 var(--f-sys); }

/* ════════ WIDE SCREENS — a real desktop ════════ */
@media (min-width: 760px) {
    .desk { padding: 18px 14px 0; display: block; }
    .icons {
        position: absolute; top: 16px; left: 12px; bottom: 12px;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-template-rows: repeat(auto-fill, 96px);
        grid-auto-columns: 98px;
        gap: 4px 6px;
    }
    .ico-trash { grid-row: -2; }
    .widgets { position: absolute; top: 24px; right: 28px; flex-direction: column; align-items: flex-end; gap: 0; padding: 0; }
    .w-polaroid { width: 220px; }
    .w-note { width: 150px; margin-right: 150px; transform: rotate(5deg) translateY(4px); }
    .w-note:hover { transform: rotate(2deg) translateY(-2px); }
    .tray { display: inline-flex; }
    .win-body { padding: 20px 22px 22px; }
    .lg-couple { max-width: 560px; }
    .lg-couple i { display: inline; margin: 0 8px; font-size: .7em; }
}
@media (max-width: 370px) {
    .ico .ic { width: 40px; height: 40px; }
    .ico span { font-size: 10.5px; }
    .w-polaroid { width: 148px; }
    .w-note { width: 124px; }
    .cd-box b { font-size: 38px; }
    .mb-item { padding: 0 6px; }
}
@media (max-height: 700px) and (max-width: 759px) {
    .w-polaroid { width: 130px; }
    .w-note { width: 116px; padding: 14px 8px 10px; }
    .nt-d { font-size: 30px; }
    .lg-couple { font-size: 32px; }
    .lg-date { margin-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
