/*
 * Template "Y2K Chrome" (Pernikahan): glossy, fashion-forward Y2K desktop.
 * Colors from the variant (x-inv.head):
 *   --inv-primary   the one candy accent (buttons, orb, kickers, progress)
 *   --inv-accent    the electric glow of the desktop (aurora, wallpaper tint)
 *   --inv-background the near-black desktop
 *   --inv-deep      the deep band / obsidian window color
 *   --inv-text      text on pearl windows
 *   --inv-window    the pearl window body
 *   --inv-ink       text on the candy accent
 *   --inv-glow      icy highlight (LCD digits, ticker, chrome horizon)
 *   --inv-strong    the accent as readable text on pearl (kickers, labels)
 * Pearl windows/bands (light) alternate with obsidian glass windows and deep/photo bands (dark).
 */

:root {
    --inv-primary: #e0156f;
    --inv-accent: #6a2cff;
    --inv-background: #0b0618;
    --inv-deep: #1d0d42;
    --inv-text: #1a0f2e;
    --inv-window: #f6f2fc;
    --inv-ink: #ffffff;
    --inv-glow: #dcd2ff;
    --inv-radius: 12px;

    --yk-col: min(100%, 460px);
    --yk-light: #f5f1ff;
    --yk-light-soft: color-mix(in srgb, var(--yk-light) 82%, transparent);
    --yk-soft: color-mix(in srgb, var(--inv-text) 74%, var(--inv-window));
    --yk-line: color-mix(in srgb, var(--inv-text) 14%, transparent);
    --inv-strong: #b0105a;
    --yk-strong: var(--inv-strong);
    --yk-candy-hi: color-mix(in srgb, var(--inv-primary) 62%, #fff);
    --yk-lcd: color-mix(in srgb, var(--inv-background) 80%, #000);
    --yk-pearl: color-mix(in srgb, var(--inv-window) 88%, var(--inv-accent));

    --yk-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --yk-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --yk-pixel: 'VT323', ui-monospace, monospace;

    /* liquid chrome on dark grounds: bright silver, a dark horizon, an icy reflection */
    --yk-chrome: linear-gradient(180deg, #ffffff 0%, #f4f1fb 24%, #c8c0dc 43%, #5d5478 50%, #8f86ad 57%, color-mix(in srgb, var(--inv-glow) 70%, #fff) 76%, #ffffff 94%);
    /* gunmetal chrome on light grounds */
    --yk-chrome-dark: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 62%, #9a93b4) 0%, var(--inv-deep) 44%, color-mix(in srgb, var(--inv-deep) 70%, #000) 50%, color-mix(in srgb, var(--inv-deep) 62%, var(--inv-primary)) 72%, color-mix(in srgb, var(--inv-deep) 74%, #fff) 100%);
    /* the title bar of pearl windows */
    --yk-bar: linear-gradient(180deg, #ffffff 0%, #efebf7 44%, #d4cde3 54%, #f3f0f9 100%);
    /* the title bar of obsidian windows */
    --yk-bar-dark: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 55%, #8d84ab) 0%, color-mix(in srgb, var(--inv-deep) 82%, #fff) 46%, var(--inv-deep) 54%, color-mix(in srgb, var(--inv-deep) 80%, #000) 100%);
    --yk-holo: linear-gradient(125deg, var(--inv-deep), var(--inv-accent) 42%, var(--inv-primary) 72%, var(--inv-glow));
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 3rem; }

body.yk-body {
    min-height: 100vh;
    background: var(--inv-background);
    color: var(--yk-light);
    font-family: var(--yk-sans);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.yk-preview {
    position: fixed; top: 0; left: 50%; z-index: 60; transform: translateX(-50%);
    padding: .3rem .9rem; border-radius: 0 0 10px 10px; white-space: nowrap;
    background: var(--inv-glow); color: #111; font: 600 .72rem/1.3 var(--yk-sans);
}

/* ---------- shared pieces ---------- */
.yk-chrome {
    background: var(--yk-chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    filter: drop-shadow(0 2px 0 rgb(0 0 0 / .45)) drop-shadow(0 0 18px color-mix(in srgb, var(--inv-accent) 55%, transparent));
}
.yk-band--pearl .yk-chrome, .yk-win--pearl .yk-chrome {
    background-image: var(--yk-chrome-dark);
    filter: drop-shadow(0 1.5px 0 rgb(255 255 255 / .9)) drop-shadow(0 6px 12px color-mix(in srgb, var(--inv-accent) 22%, transparent));
}

/* a static four-point Y2K star (accent only) */
.yk-spark {
    position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: 1;
    width: calc(26px * var(--s, 1)); height: calc(26px * var(--s, 1));
    background: radial-gradient(circle at 50% 50%, #fff 0 18%, transparent 40%), linear-gradient(135deg, #fff 15%, var(--inv-glow) 50%, #fff 85%);
    clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--inv-glow) 80%, transparent));
    pointer-events: none;
}
.yk-band--pearl .yk-spark { background: linear-gradient(135deg, var(--inv-accent), var(--inv-primary)); filter: none; opacity: .75; }

.yk-kicker { font: 1.2rem/1.1 var(--yk-pixel); letter-spacing: .03em; color: var(--yk-candy-hi); }
.yk-win--pearl .yk-kicker, .yk-band--pearl .yk-kicker { color: var(--yk-strong); }
.yk-label { font: 800 .7rem/1.3 var(--yk-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--yk-strong); }
.yk-title { margin: .2rem 0 .1rem; font: 800 clamp(1.85rem, 8.6vw, 2.45rem)/1.08 var(--yk-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.yk-title--sm { font-size: clamp(1.4rem, 6.4vw, 1.7rem); margin-bottom: .45rem; }
.yk-lead { margin-bottom: 1.1rem; color: var(--yk-soft); font-size: .95rem; }
.yk-head { margin-bottom: 1.3rem; }

.yk-caret {
    display: inline-block; width: .5em; height: 1em; margin-left: 4px; vertical-align: -.12em;
    background: currentColor; animation: yk-blink 1.1s steps(1) infinite;
}
@keyframes yk-blink { 50% { opacity: 0; } }

.yk-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 1.85rem; line-height: 1.8; text-align: center; color: var(--yk-strong); margin-bottom: .7rem; }

/* ---------- windows ---------- */
.yk-win {
    position: relative; overflow: hidden; border-radius: 14px;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--inv-deep) 70%, transparent),
        inset 0 0 0 1px rgb(255 255 255 / .35),
        0 28px 60px -26px rgb(0 0 0 / .75),
        0 0 46px -18px color-mix(in srgb, var(--inv-accent) 70%, transparent);
}
.yk-win--pearl { background: var(--inv-window); color: var(--inv-text); }
.yk-win--glass {
    background: linear-gradient(170deg, color-mix(in srgb, var(--inv-deep) 72%, transparent), color-mix(in srgb, var(--inv-background) 86%, transparent));
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    color: var(--yk-light);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / .16),
        inset 0 1px 0 rgb(255 255 255 / .12),
        0 28px 60px -26px rgb(0 0 0 / .8),
        0 0 50px -16px color-mix(in srgb, var(--inv-accent) 75%, transparent);
}

.yk-win__bar {
    position: relative; display: flex; align-items: center; gap: .55rem;
    min-height: 2.25rem; padding: .3rem .4rem .3rem .65rem;
    background: var(--yk-bar); color: var(--inv-deep);
    border-bottom: 1px solid color-mix(in srgb, var(--inv-deep) 22%, transparent);
    font: 1.18rem/1 var(--yk-pixel); letter-spacing: .02em;
}
.yk-win--glass .yk-win__bar { background: var(--yk-bar-dark); color: var(--yk-light); border-bottom-color: rgb(255 255 255 / .12); }
.yk-win__orb {
    flex: none; width: .85rem; height: .85rem; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 14%, var(--yk-candy-hi) 30%, var(--inv-primary) 62%, color-mix(in srgb, var(--inv-primary) 60%, #000));
    box-shadow: 0 0 8px color-mix(in srgb, var(--inv-primary) 70%, transparent);
}
.yk-win__title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.yk-win__ctls { flex: none; display: flex; gap: 4px; }
.yk-ctl {
    position: relative; display: block; width: 1.25rem; height: 1.1rem; border-radius: 5px;
    background: linear-gradient(#ffffff, #d6d0e3); color: var(--inv-deep);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-deep) 30%, transparent), inset 0 1px 0 #fff;
}
.yk-win--glass .yk-ctl { background: linear-gradient(color-mix(in srgb, var(--inv-deep) 50%, #fff), color-mix(in srgb, var(--inv-deep) 85%, #fff)); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .2); }
.yk-ctl--min::before { content: ''; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 1.5px; background: currentColor; }
.yk-ctl--max::before { content: ''; position: absolute; inset: 3px 4px; border: 1.5px solid currentColor; border-top-width: 2.5px; }
.yk-ctl--close, .yk-win--glass .yk-ctl--close { background: linear-gradient(var(--yk-candy-hi), var(--inv-primary)); color: var(--inv-ink); }
.yk-ctl--close::before, .yk-ctl--close::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; border-radius: 1px;
    background: currentColor; transform: translate(-50%, -50%) rotate(45deg);
}
.yk-ctl--close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.yk-win__body { padding: 1.25rem 1.2rem 1.35rem; }
.yk-win__status {
    display: flex; justify-content: space-between; gap: 1rem; padding: .25rem .8rem;
    border-top: 1px solid var(--yk-line); background: color-mix(in srgb, var(--inv-text) 4%, var(--inv-window));
    font: 1.05rem/1.25 var(--yk-pixel); color: var(--yk-soft);
}
.yk-win--glass .yk-win__status { border-top-color: rgb(255 255 255 / .1); background: rgb(0 0 0 / .22); color: var(--yk-light-soft); }
.yk-menu {
    display: flex; gap: 1rem; padding: .25rem .85rem; border-bottom: 1px solid var(--yk-line);
    font: 1.1rem/1.2 var(--yk-pixel); color: var(--yk-soft);
}
.yk-win--glass .yk-menu { border-bottom-color: rgb(255 255 255 / .1); color: var(--yk-light-soft); }
.yk-menu span::first-letter { text-decoration: underline; }
.yk-menu--tools span::first-letter { text-decoration: none; }
.yk-menu__fill { flex: 1; }

/* ---------- glossy candy buttons (shared components too) ---------- */
.yk-body .inv-button {
    position: relative; isolation: isolate; overflow: hidden;
    padding: .78rem 1.4rem; border: 0; border-radius: 999px;
    background: linear-gradient(180deg, var(--yk-candy-hi), var(--inv-primary) 52%, color-mix(in srgb, var(--inv-primary) 78%, #000));
    color: var(--inv-ink); font: 800 .92rem/1.15 var(--yk-sans); letter-spacing: .03em; text-align: center;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 60%, #000), inset 0 -2px 0 rgb(0 0 0 / .15), 0 12px 24px -12px var(--inv-primary);
}
/* the glossy highlight on the top half */
.yk-body .inv-button::before {
    content: ''; position: absolute; z-index: -1; left: 10%; right: 10%; top: 2px; height: 45%;
    border-radius: 999px; background: linear-gradient(rgb(255 255 255 / .7), rgb(255 255 255 / .05)); pointer-events: none;
}
.yk-body .inv-button:active { transform: translateY(1px); }
.yk-body .inv-button--outline::before { display: none; }
.yk-body .inv-button--outline {
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--inv-window) 80%, var(--inv-accent)));
    color: var(--inv-deep); box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-deep) 30%, transparent), 0 8px 16px -12px var(--inv-deep);
}

/* ---------- cover: the desktop ---------- */
.yk-cover {
    position: fixed; inset: 0; z-index: 30;
    display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto;
    background: var(--inv-background);
}
.yk-cover--leave { transition: transform .5s cubic-bezier(.6, 0, .4, 1), opacity .5s ease; }
.yk-cover--gone { transform: scale(1.04); opacity: 0; }

/* the wallpaper: the couple photo graded into the deep color; without a photo a chrome/holographic gradient */
.yk-cover__wall {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(120% 60% at 85% 18%, color-mix(in srgb, var(--inv-primary) 55%, transparent), transparent 60%),
        radial-gradient(110% 70% at 10% 40%, color-mix(in srgb, var(--inv-accent) 70%, transparent), transparent 62%),
        conic-gradient(from 200deg at 60% 35%, var(--inv-deep), color-mix(in srgb, var(--inv-glow) 40%, var(--inv-deep)), var(--inv-deep) 40%, color-mix(in srgb, var(--inv-accent) 60%, var(--inv-deep)) 70%, var(--inv-deep)),
        var(--inv-background);
}
.yk-cover__wall--photo { background: var(--yk-photo) center 30% / cover no-repeat, var(--inv-deep); }
.yk-cover__wall::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 50%, transparent) 0%, transparent 16%, transparent 52%, color-mix(in srgb, var(--inv-deep) 45%, transparent) 78%, color-mix(in srgb, var(--inv-background) 85%, transparent) 100%),
        radial-gradient(90% 50% at 100% 0%, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 70%);
}
.yk-cover__wall--photo::before {
    /* a faint duotone tint so the photo belongs to the palette */
    content: ''; position: absolute; inset: 0; mix-blend-mode: soft-light;
    background: linear-gradient(160deg, var(--inv-accent), var(--inv-primary));
    opacity: .45;
}
html.inv-anim .yk-cover__wall { animation: yk-wall 1.9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes yk-wall { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }

.yk-cover > .yk-spark { position: absolute; }

.yk-cover__top {
    position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    width: min(100%, 460px); margin: 0 auto; padding: calc(.9rem + env(safe-area-inset-top)) 1rem 0;
}
.yk-desk { display: flex; gap: .4rem; }
.yk-desk__icon {
    display: grid; justify-items: center; gap: .3rem; width: 4.2rem;
    font: 1.02rem/1 var(--yk-pixel); color: #fff; text-align: center; text-shadow: 0 1px 3px rgb(0 0 0 / .8);
}
.yk-ico { position: relative; display: block; width: 2.2rem; height: 1.8rem; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .45)); }
.yk-ico--folder {
    margin-top: .3rem; border-radius: 2px 6px 6px 6px;
    background: linear-gradient(180deg, #fff 0%, #dcd5ea 45%, #a59cbd 55%, #ece8f5 100%);
}
.yk-ico--folder::before {
    content: ''; position: absolute; left: 0; top: -6px; width: 45%; height: 7px;
    border-radius: 4px 4px 0 0; background: #e6e1f0;
}
.yk-ico--disc {
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background:
        radial-gradient(circle, var(--inv-background) 0 14%, #fff 15% 20%, transparent 21%),
        conic-gradient(from 20deg, #f4f1fb, color-mix(in srgb, var(--inv-glow) 80%, #fff), #9d94b8, color-mix(in srgb, var(--inv-primary) 40%, #fff), #fff, #b9b1cf, #f4f1fb);
}
/* the chrome monogram badge */
.yk-badge {
    display: flex; align-items: center; justify-content: center; gap: 2px;
    width: 3.6rem; height: 3.6rem; border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgb(255 255 255 / .9), transparent 35%), linear-gradient(160deg, #fff, #c9c1dc 45%, #5d5478 52%, #e8e3f3 85%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / .6), 0 10px 24px -8px rgb(0 0 0 / .6), 0 0 26px -6px var(--inv-accent);
    color: var(--inv-deep); font: 800 1rem/1 var(--yk-display); letter-spacing: -.02em;
}
.yk-badge span + span::before { content: '·'; margin-right: 2px; color: var(--inv-primary); }

.yk-cover__stage {
    position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
    width: min(100%, 460px); margin: 0 auto; padding: 1rem .9rem 1.1rem;
}
html.inv-anim .yk-win--cover { animation: yk-boot 1s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes yk-boot { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

.yk-cover__body { display: grid; gap: .38rem; padding: .7rem .95rem .9rem; text-align: center; }
/* the cover window: clearer glass, so the photo glows through */
.yk-win--cover.yk-win--glass { background: linear-gradient(170deg, color-mix(in srgb, var(--inv-deep) 52%, transparent), color-mix(in srgb, var(--inv-background) 74%, transparent)); -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); }

.yk-load { display: grid; gap: .3rem; text-align: left; }
.yk-load__label { display: flex; justify-content: space-between; font: .92rem/1 var(--yk-pixel); color: var(--yk-light-soft); }
.yk-load__label b { font-weight: 400; color: var(--yk-candy-hi); }
.yk-load__bar { display: block; height: 4px; border-radius: 999px; background: rgb(255 255 255 / .12); overflow: hidden; }
.yk-load__fill {
    display: block; height: 100%; width: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--inv-accent), var(--inv-primary), var(--inv-glow));
}
html.inv-anim .yk-load__fill { animation: yk-fill 1.5s cubic-bezier(.4, 0, .2, 1) .45s both; }
@keyframes yk-fill { from { width: 0; } to { width: 100%; } }

.yk-cover__title { margin-top: .2rem; font: 800 .62rem/1.3 var(--yk-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--inv-glow); }
.yk-cover__couple {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .25em;
    font: 900 clamp(1.9rem, 9vw, 2.4rem)/1.05 var(--yk-display); letter-spacing: -.03em; text-transform: uppercase;
    overflow-wrap: anywhere;
}
.yk-cover__couple .yk-chrome { padding: 0 .06em; }
.yk-cover__amp {
    font: 1.3rem/1 var(--yk-pixel); color: var(--yk-candy-hi); text-transform: none;
    text-shadow: 0 0 14px color-mix(in srgb, var(--inv-primary) 80%, transparent);
}
.yk-cover__date { margin-top: .1rem; font: 1.2rem/1.1 var(--yk-pixel); letter-spacing: .04em; color: #fff; }
.yk-cover__quote { max-width: 34ch; margin: 0 auto; font-size: .76rem; line-height: 1.45; font-style: italic; color: var(--yk-light-soft); }

.yk-cover__guest {
    margin-top: .25rem; padding: .45rem .75rem; border-radius: 10px;
    background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.yk-cover__to { font: .92rem/1 var(--yk-pixel); color: var(--yk-light-soft); }
.yk-cover__name { margin-top: .15rem; font: 800 1rem/1.25 var(--yk-sans); color: #fff; overflow-wrap: anywhere; }
.yk-body .yk-ok { width: 100%; margin-top: .3rem; }

/* ---------- taskbars (cover and page) ---------- */
.yk-cover__taskbar, .yk-taskbar {
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 70%, #6d6490) 0%, color-mix(in srgb, var(--inv-deep) 88%, #fff) 8%, var(--inv-deep) 55%, color-mix(in srgb, var(--inv-deep) 80%, #000));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 -10px 30px -12px rgb(0 0 0 / .6);
}
.yk-cover__taskbar {
    position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: .4rem;
    min-height: 3rem; padding: .35rem .6rem calc(.35rem + env(safe-area-inset-bottom));
}
.yk-taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.yk-taskbar__in {
    display: flex; align-items: center; gap: .35rem; width: var(--yk-col); height: 3.2rem;
    margin: 0 auto; padding: 0 3.8rem 0 .55rem;
}
.yk-start {
    flex: none; display: inline-flex; align-items: center; gap: .4rem; height: 2.15rem; padding: 0 .95rem 0 .65rem;
    border-radius: 999px; text-decoration: none; color: var(--inv-ink);
    background: linear-gradient(180deg, var(--yk-candy-hi), var(--inv-primary) 55%, color-mix(in srgb, var(--inv-primary) 75%, #000));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 0 0 1px color-mix(in srgb, var(--inv-primary) 55%, #000), 0 0 16px -4px var(--inv-primary);
    font: 800 .82rem/1 var(--yk-sans); letter-spacing: .04em;
}
.yk-start__spark {
    width: .95rem; height: .95rem; background: currentColor;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.yk-task {
    min-width: 0; display: inline-flex; align-items: center; height: 2.1rem; padding: 0 .65rem;
    border-radius: 7px; background: rgb(0 0 0 / .25); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
    color: var(--yk-light); font: 1.12rem/1 var(--yk-pixel); text-decoration: none; white-space: nowrap;
}
.yk-task--active { background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.yk-clock {
    flex: none; margin-left: auto; display: inline-flex; align-items: center; height: 2.1rem; padding: 0 .55rem;
    font: 1.15rem/1 var(--yk-pixel); white-space: nowrap; color: var(--inv-glow);
}
/* the music button sits at the end of the taskbar, inside the column */
.yk-body .inv-music { right: max(.5rem, calc(50vw - 230px + .5rem)); bottom: calc(.3rem + env(safe-area-inset-bottom)); z-index: 25; }
.yk-body .inv-music__space { display: none; }
.yk-body .inv-music__button {
    width: 2.6rem; height: 2.6rem; border: 0; color: var(--inv-ink); font-weight: 700;
    background: radial-gradient(circle at 35% 28%, var(--yk-candy-hi), var(--inv-primary) 60%, color-mix(in srgb, var(--inv-primary) 70%, #000));
    box-shadow: 0 0 0 1px rgb(255 255 255 / .35), 0 0 18px -4px var(--inv-primary);
}

/* ---------- page ---------- */
.yk-page { position: relative; z-index: 1; }
.yk-ticker {
    position: sticky; top: 0; z-index: 10; overflow: hidden;
    background: var(--yk-lcd); box-shadow: inset 0 -1px 0 rgb(255 255 255 / .12);
    color: var(--inv-glow); font: 1.25rem/2rem var(--yk-pixel); white-space: nowrap;
}
.yk-ticker__track { display: flex; width: max-content; animation: yk-marquee 40s linear infinite; }
.yk-ticker__run { display: flex; gap: 1.6rem; padding-right: 1.6rem; }
.yk-ticker__run span { display: inline-flex; align-items: center; gap: 1.6rem; }
.yk-ticker__run span::before {
    content: ''; width: .6rem; height: .6rem; background: var(--yk-candy-hi);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
@keyframes yk-marquee { to { transform: translateX(-50%); } }

.yk-main { display: block; }

/* every section is a band of the desktop with one column of windows */
.yk-band { position: relative; overflow: hidden; isolation: isolate; padding: 3.6rem 0 3.8rem; }
.yk-col { position: relative; z-index: 1; width: var(--yk-col); margin: 0 auto; padding: 0 1.05rem; }

/* deep band: violet night with an aurora glow and a chrome horizon line */
.yk-band--deep {
    background:
        radial-gradient(90% 45% at 100% 0%, color-mix(in srgb, var(--inv-accent) 55%, transparent), transparent 70%),
        radial-gradient(80% 40% at 0% 100%, color-mix(in srgb, var(--inv-primary) 30%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-deep), var(--inv-background));
    color: var(--yk-light);
}
/* pearl band: a light iridescent desktop with a faint pixel grid */
.yk-band--pearl {
    background:
        radial-gradient(70% 35% at 100% 0%, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 70%),
        radial-gradient(70% 35% at 0% 100%, color-mix(in srgb, var(--inv-primary) 16%, transparent), transparent 70%),
        radial-gradient(60% 30% at 20% 30%, color-mix(in srgb, var(--inv-glow) 55%, transparent), transparent 70%),
        linear-gradient(color-mix(in srgb, var(--inv-deep) 6%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, color-mix(in srgb, var(--inv-deep) 6%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--yk-pearl);
    color: var(--inv-text);
}
.yk-band--pearl .yk-head { color: var(--inv-deep); }
/* photo-wallpaper band: a client photo graded into the deep color */
.yk-band--wall { background: var(--inv-deep); color: var(--yk-light); }
.yk-wall { position: absolute; inset: 0; z-index: -1; background: var(--yk-holo); }
.yk-wall img { position: absolute; inset: -40px 0; width: 100%; height: calc(100% + 80px); object-fit: cover; opacity: .85; }
.yk-wall::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 78%, transparent), color-mix(in srgb, var(--inv-deep) 30%, transparent) 30%, color-mix(in srgb, var(--inv-deep) 38%, transparent) 70%, color-mix(in srgb, var(--inv-background) 85%, transparent)),
        linear-gradient(120deg, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 55%, color-mix(in srgb, var(--inv-primary) 30%, transparent));
}

/* opening: notepad */
.yk-note { padding-left: 1.85rem; background: linear-gradient(90deg, transparent .95rem, color-mix(in srgb, var(--inv-primary) 40%, transparent) .95rem calc(.95rem + 1.5px), transparent 0); }
.yk-note__greeting { margin-bottom: .6rem; font: 700 1.15rem/1.35 var(--yk-display); letter-spacing: -.01em; color: var(--inv-deep); }
.yk-note__message { line-height: 1.75; color: color-mix(in srgb, var(--inv-text) 90%, var(--inv-window)); }
.yk-quote {
    position: relative; margin-top: 1.2rem; padding: 1.05rem 1.1rem 1rem; border-radius: 12px;
    background: linear-gradient(140deg, var(--inv-deep), color-mix(in srgb, var(--inv-deep) 70%, var(--inv-accent)));
    color: var(--yk-light);
}
.yk-quote::before {
    content: ''; position: absolute; right: .8rem; top: -.55rem; width: 1.2rem; height: 1.2rem;
    background: linear-gradient(135deg, #fff, var(--inv-glow));
    clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
}
.yk-quote blockquote { font-style: italic; font-weight: 500; line-height: 1.65; }
.yk-quote figcaption { margin-top: .5rem; font: 1.1rem/1.2 var(--yk-pixel); color: var(--yk-candy-hi); }

/* couple: two big profile windows, offset left and right */
.yk-profile--groom { margin-right: 1.6rem; }
.yk-profile--bride { margin-left: 1.6rem; }
.yk-profile__frame { position: relative; background: var(--yk-holo); }
.yk-profile__photo { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 26rem; object-fit: cover; }
.yk-profile__photo--empty { display: grid; place-items: center; font: 900 5rem/1 var(--yk-display); }
.yk-win--pearl .yk-profile__photo--empty .yk-chrome { background-image: var(--yk-chrome); filter: drop-shadow(0 2px 0 rgb(0 0 0 / .4)) drop-shadow(0 0 18px rgb(255 255 255 / .35)); }
.yk-profile__status {
    position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .35rem;
    padding: .1rem .55rem; border-radius: 999px; background: rgb(10 6 24 / .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #fff; font: 1.05rem/1.3 var(--yk-pixel);
}
.yk-profile__status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #5dff9e; box-shadow: 0 0 8px #5dff9e; }
.yk-profile__info { padding-top: 1.05rem; }
.yk-profile__name { margin: .3rem 0 .15rem; font: 800 1.3rem/1.2 var(--yk-display); letter-spacing: -.02em; color: var(--inv-deep); overflow-wrap: anywhere; }
.yk-profile__nick { font: 1.2rem/1.1 var(--yk-pixel); color: var(--yk-soft); }
.yk-profile__nick b { font-weight: 400; color: var(--yk-strong); }
.yk-profile__parents { margin-top: .7rem; padding-top: .65rem; border-top: 1px solid var(--yk-line); font-size: .9rem; line-height: 1.5; }
.yk-body .yk-profile__ig { margin-top: .85rem; padding: .45rem .95rem; font-size: .8rem; max-width: 100%; overflow-wrap: anywhere; }
.yk-amp { margin: .5rem 0; text-align: center; font: 900 3.4rem/1 var(--yk-display); }

/* countdown: one progress window */
.yk-countdown .yk-win__body { text-align: center; }
.yk-countdown__date { margin: .1rem 0 .9rem; font: 700 1.05rem/1.35 var(--yk-sans); color: #fff; }
.yk-progress { height: .7rem; margin-bottom: 1.15rem; padding: 2px; border-radius: 999px; background: rgb(0 0 0 / .35); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.yk-progress__fill {
    display: block; width: 74%; height: 100%; border-radius: 999px;
    background: repeating-linear-gradient(90deg, var(--inv-primary) 0 10px, var(--yk-candy-hi) 10px 12px);
    box-shadow: 0 0 12px color-mix(in srgb, var(--inv-primary) 70%, transparent);
}

.inv-countdown { gap: .5rem; }
.inv-countdown__item {
    flex: 1; min-width: 0; padding: .55rem .15rem .45rem; border-radius: 10px;
    background: var(--yk-lcd); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 8px 16px -10px color-mix(in srgb, var(--inv-glow) 40%, transparent);
}
.inv-countdown__value {
    font: 2.7rem/1 var(--yk-pixel); font-weight: 400; color: var(--inv-glow);
    text-shadow: 0 0 12px color-mix(in srgb, var(--inv-glow) 65%, transparent);
}
.inv-countdown__label { font: 800 .6rem/1.2 var(--yk-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--yk-light-soft); }
.inv-countdown__done { font-weight: 600; }
.inv-countdown__actions { gap: .55rem; margin-top: 1.15rem; }
.yk-body .inv-countdown__actions .inv-button { padding: .55rem 1rem; font-size: .78rem; }
.yk-body .yk-countdown .inv-countdown__actions .inv-button--outline { background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }

/* events: one pearl info window per event */
.yk-event + .yk-event { margin-top: 1.5rem; }
.yk-event__photo {
    position: relative; height: clamp(11rem, 52vw, 14rem);
    background: var(--yk-photo, var(--yk-holo)) center / cover no-repeat;
}
.yk-event__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--inv-deep) 45%, transparent)); }
.yk-event__head { display: flex; align-items: center; gap: .7rem; }
.yk-event__num {
    flex: none; padding: .1rem .5rem; border-radius: 7px; background: var(--inv-deep); color: var(--inv-glow);
    font: 1.55rem/1.1 var(--yk-pixel);
}
.yk-event__name { font: 800 1.3rem/1.15 var(--yk-display); letter-spacing: -.02em; color: var(--inv-deep); overflow-wrap: anywhere; }
.yk-event__rows { margin-top: .9rem; }
.yk-event__rows > div { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--yk-line); }
.yk-event__rows dt { font: 1.12rem/1.35 var(--yk-pixel); color: var(--yk-strong); }
.yk-event__rows dd { font-size: .94rem; overflow-wrap: anywhere; }
.inv-maps { margin-top: .9rem; }
.yk-body .inv-maps .inv-button { width: 100%; }

/* love story: one photo viewer window */
.yk-story__list { display: grid; gap: 1.6rem; }
.yk-moment + .yk-moment { padding-top: 1.6rem; border-top: 1px solid rgb(255 255 255 / .12); }
.yk-moment__frame {
    position: relative; overflow: hidden; border-radius: 10px; background: var(--yk-holo);
    box-shadow: 0 0 0 1px rgb(255 255 255 / .18), 0 16px 30px -18px rgb(0 0 0 / .8);
}
.yk-moment__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.yk-moment__photo--empty { aspect-ratio: 16 / 7; }
.yk-moment__file {
    position: absolute; left: .5rem; top: .5rem; padding: 0 .45rem; border-radius: 5px;
    background: rgb(10 6 24 / .62); color: #fff; font: 1rem/1.35 var(--yk-pixel);
}
.yk-moment__text { padding: .9rem .1rem 0; }
.yk-moment__date {
    display: inline-block; padding: .1rem .65rem; border-radius: 999px;
    background: var(--inv-primary); color: var(--inv-ink); font: 1.05rem/1.3 var(--yk-pixel);
}
.yk-moment__title { margin: .5rem 0 .3rem; font: 800 1.15rem/1.25 var(--yk-display); letter-spacing: -.01em; color: #fff; }
.yk-moment__story { font-size: .93rem; line-height: 1.7; color: var(--yk-light-soft); }

/* gallery: one folder window */
.yk-address {
    display: flex; align-items: center; gap: .5rem; padding: .4rem .75rem; border-bottom: 1px solid rgb(255 255 255 / .1);
    font: 1.05rem/1.3 var(--yk-pixel); color: var(--yk-light-soft);
}
.yk-address__path {
    flex: 1; min-width: 0; padding: 0 .5rem; border-radius: 6px; overflow-wrap: anywhere;
    background: rgb(0 0 0 / .3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); color: #fff;
}
.yk-folder .yk-win__body { padding: .85rem; }
.inv-gallery { gap: .55rem; }
.inv-gallery__item { border-radius: 9px; background: var(--yk-holo); box-shadow: 0 0 0 1px rgb(255 255 255 / .16); }

/* live streaming: a media player */
.yk-live__screen {
    position: relative; padding: 1.4rem 1rem; border-radius: 10px; text-align: center; color: #fff;
    background:
        repeating-linear-gradient(180deg, rgb(255 255 255 / .04) 0 2px, transparent 2px 4px),
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--inv-primary) 45%, transparent), transparent 70%),
        var(--yk-lcd);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.yk-live__badge {
    display: inline-flex; align-items: center; gap: .4rem; font: 800 .72rem/1 var(--yk-sans); letter-spacing: .2em; color: #fff;
    padding: .3rem .6rem; border-radius: 999px; background: var(--inv-primary);
}
.yk-live__badge::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: #fff; }
.yk-live__title { margin-top: .6rem; font: 700 1.1rem/1.3 var(--yk-display); }
.yk-live__host { font: 1.15rem/1.2 var(--yk-pixel); color: var(--inv-glow); }
.yk-live__text { margin-top: .95rem; text-align: center; font-size: .94rem; }
.yk-live__note { margin-top: .3rem; text-align: center; font-size: .86rem; color: var(--yk-light-soft); }
.yk-body .yk-live__button { width: 100%; margin-top: 1rem; }

/* gift: the accounts as small chrome cards, two per row; an odd last one spans the row */
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account {
    min-width: 0; padding: .9rem .75rem; border-radius: 12px; text-align: center;
    background: linear-gradient(170deg, #fff, color-mix(in srgb, var(--inv-window) 82%, var(--inv-accent)));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-deep) 16%, transparent), 0 12px 22px -16px var(--inv-deep);
}
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__address { margin-top: .8rem; }
.inv-gift__bank { margin: 0 0 .4rem; font: 800 .7rem/1.3 var(--yk-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--yk-strong); overflow-wrap: anywhere; }
.inv-gift__logo { height: 1.6rem; padding: .22rem .5rem; max-width: 100%; }
.inv-gift__logo img { max-width: 100%; }
.inv-gift__number { margin: .15rem 0 0; font: 1.35rem/1.05 var(--yk-pixel); letter-spacing: .03em; font-weight: 400; color: var(--inv-deep); overflow-wrap: anywhere; }
.inv-gift__holder { margin: .25rem 0 .6rem; font: 700 .64rem/1.35 var(--yk-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--yk-soft); overflow-wrap: anywhere; }
.inv-gift__address .inv-gift__holder { font-size: .7rem; }
.inv-gift__address p:not([class]) { margin: 0 0 .7rem; font-size: .92rem; }
.yk-body .inv-gift__account .inv-button { padding: .4rem .75rem; font-size: .7rem; }

/* forms: RSVP and wishes */
.yk-form .inv-form label, .yk-form .inv-form__choices legend { font-weight: 600; font-size: .88rem; }
.yk-form .inv-form input:not([type=radio]):not([type=checkbox]), .yk-form .inv-form select, .yk-form .inv-form textarea {
    border: 1px solid color-mix(in srgb, var(--inv-deep) 28%, transparent); border-radius: 10px; color: var(--inv-text);
    background: #fff; box-shadow: inset 0 2px 4px color-mix(in srgb, var(--inv-deep) 10%, transparent);
}
.yk-form .inv-form select option { background: #fff; color: var(--inv-text); }
.yk-form .inv-form input:focus, .yk-form .inv-form select:focus, .yk-form .inv-form textarea:focus { outline: 2px solid var(--inv-primary); outline-offset: 1px; }
.yk-form .inv-form__choices label {
    padding: .4rem .7rem; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-deep) 22%, transparent);
    background: color-mix(in srgb, var(--inv-accent) 6%, #fff);
}
.inv-form__notice { border: 1px solid color-mix(in srgb, var(--inv-accent) 40%, transparent); background: color-mix(in srgb, var(--inv-accent) 10%, var(--inv-window)); color: var(--inv-text); }
.inv-rsvp__deadline { margin: 0 0 .8rem; font: 1.15rem/1.2 var(--yk-pixel); color: var(--yk-strong); }

/* about three messages in the scroll box: messenger notes */
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes__list { gap: .7rem; margin-top: 1.3rem; padding: 0 .3rem .35rem 0; }
.inv-wish {
    padding: .7rem .85rem; border-radius: 14px 14px 14px 4px;
    background: linear-gradient(170deg, #fff, color-mix(in srgb, var(--inv-window) 85%, var(--inv-accent)));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-deep) 14%, transparent);
}
.inv-wish__name { font: 800 .88rem/1.3 var(--yk-sans); color: var(--yk-strong); }
.inv-wish__message { font-size: .9rem; line-height: 1.5; }
.inv-wish__time { margin-top: .3rem; font: .95rem/1 var(--yk-pixel); }

/* closing: the full-screen screensaver */
.yk-shutdown {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: min(40svh, 320px) 0 3.4rem; text-align: center; color: #fff;
    background:
        radial-gradient(90% 50% at 50% 20%, color-mix(in srgb, var(--inv-accent) 60%, transparent), transparent 70%),
        radial-gradient(70% 40% at 100% 70%, color-mix(in srgb, var(--inv-primary) 35%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-deep), var(--inv-background));
}
.yk-shutdown__photo { position: absolute; inset: 0 0 auto 0; height: min(62svh, 480px); z-index: -1; overflow: hidden; }
.yk-shutdown__photo img { position: absolute; inset: -40px 0; width: 100%; height: calc(100% + 80px); object-fit: cover; object-position: center 25%; }
.yk-shutdown__photo::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 45%, transparent) 0%, transparent 22%, color-mix(in srgb, var(--inv-deep) 35%, transparent) 45%, color-mix(in srgb, var(--inv-deep) 88%, transparent) 70%, var(--inv-background) 100%),
        linear-gradient(140deg, color-mix(in srgb, var(--inv-accent) 35%, transparent), transparent 60%);
}
.yk-shutdown--photo { background: linear-gradient(180deg, var(--inv-deep), var(--inv-background) 85%); }
.yk-shutdown__inner { position: relative; z-index: 1; width: var(--yk-col); margin: 0 auto; padding: 0 1.4rem; }
.yk-shutdown__kicker { font: 1.25rem/1.2 var(--yk-pixel); color: var(--inv-glow); letter-spacing: .04em; }
.yk-shutdown__thanks { margin-top: .35rem; font: 900 clamp(1.9rem, 8.5vw, 2.4rem)/1.02 var(--yk-display); letter-spacing: -.03em; text-transform: uppercase; }
.yk-shutdown__message { max-width: 32ch; margin: .9rem auto 0; font-size: .92rem; line-height: 1.6; color: rgb(255 255 255 / .9); }
.yk-shutdown__sign { margin-top: 1.1rem; font: 800 .7rem/1.4 var(--yk-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--yk-candy-hi); }
.yk-shutdown__names { margin-top: .35rem; font: 800 clamp(1.5rem, 7.4vw, 2rem)/1.15 var(--yk-display); letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.yk-shutdown__safe { margin-top: 1.2rem; font: 1.2rem/1.3 var(--yk-pixel); color: var(--inv-glow); }

/* platform credit and check-in, on the dark desktop after the screensaver */
/* page end: the last text ends 110-150px above the end of the document (taskbar, music button, "Gulir" live there) */
.yk-end { display: grid; justify-items: center; gap: 1rem; padding: 0 1rem 4.75rem; background: var(--inv-background); }
.yk-end:has(.yk-branding, .inv-checkin) { padding: 1.4rem 1rem 7.6rem; }
.yk-branding {
    padding: .35rem .95rem; border-radius: 999px; opacity: 1;
    background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); color: var(--yk-light);
    font: 1.05rem/1.3 var(--yk-pixel);
}
.yk-branding a { color: inherit; }
.inv-checkin { color: #1a1a1a; }

/* ---------- reveal: the windows rise a little (shared reveal) ---------- */

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
    .yk-band { padding: 4.6rem 0 4.8rem; }
}
@media (max-width: 399px) {
    .yk-taskbar .yk-clock { display: none; }
    .yk-profile--groom { margin-right: .9rem; }
    .yk-profile--bride { margin-left: .9rem; }
}

/* ---------- fit: the whole cover window (names, guest, OK button) above the taskbar on one phone screen ---------- */
@media (max-height: 760px) {
    .yk-cover__top { padding-top: calc(.6rem + env(safe-area-inset-top)); }
    .yk-desk { display: none; }
    .yk-badge { width: 3rem; height: 3rem; font-size: .85rem; }
    .yk-cover__stage { padding: .6rem .85rem .8rem; }
    .yk-cover__body { gap: .4rem; padding: .7rem .9rem .85rem; }
    .yk-cover__couple { font-size: clamp(1.8rem, 8.6vw, 2.2rem); }
    .yk-cover__guest { margin-top: .2rem; padding: .5rem .75rem; }
}
@media (max-height: 660px) {
    .yk-cover__top { display: none; }
    .yk-cover__stage { padding: .5rem .75rem .6rem; }
    .yk-cover__body { gap: .3rem; padding: .55rem .85rem .75rem; }
    .yk-load__label { font-size: .95rem; }
    .yk-cover__title { margin-top: .1rem; }
    .yk-cover__couple { font-size: clamp(1.65rem, 8vw, 2rem); }
    .yk-cover__date { font-size: 1.1rem; }
    .yk-cover__quote { font-size: .72rem; line-height: 1.38; }
    .yk-cover__to { font-size: .95rem; }
    .yk-cover__name { font-size: 1rem; }
    .yk-body .yk-ok { padding: .65rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .yk-caret, .yk-ticker__track, .yk-cover__wall, .yk-win--cover, .yk-load__fill { animation: none !important; }
}

/* ---------- intro scene "Klik Dua Kali" (scene.json + sections/_scene; the intro lives in <body>, outside .yk-page):
   on the holographic desktop a cursor double-clicks the chrome "undangan.exe" icon, the loading window opens into the card,
   and the desktop fills in from the edges: icons, a pearl message, the photo viewer, the spinning chrome CD, the taskbar ---------- */
.yk-scene-wall { position: absolute; animation: none !important; }
.yk-scene-grid { position: relative; width: 100%; height: 100%; perspective: 260px; overflow: hidden;
    -webkit-mask: linear-gradient(transparent, #000 45%); mask: linear-gradient(transparent, #000 45%); }
.yk-scene-grid span { position: absolute; inset: -120% 0 0; transform: rotateX(64deg); transform-origin: 50% 100%;
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--inv-glow) 55%, transparent) 0 1.5px, transparent 1.5px 34px),
        repeating-linear-gradient(0deg, color-mix(in srgb, var(--inv-glow) 55%, transparent) 0 1.5px, transparent 1.5px 34px);
    filter: drop-shadow(0 0 4px var(--inv-accent)); }
.yk-scene-grid::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1;
    background: linear-gradient(90deg, transparent, var(--inv-glow), transparent); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--inv-primary) 60%, transparent); }
.inv-scene__art > .yk-scene-icon { display: grid; justify-items: center; gap: .5rem; height: auto; }
.yk-scene-icon .yk-badge { width: min(26vw, 7rem); height: min(26vw, 7rem); font-size: min(6vw, 1.7rem); }
.yk-scene-icon__name { padding: .1rem .45rem; border-radius: 3px; background: color-mix(in srgb, var(--inv-primary) 75%, transparent);
    color: var(--inv-ink); font: 1.25rem/1.1 var(--yk-pixel); box-shadow: 0 0 0 1px rgb(255 255 255 / .4); }
.yk-scene-cursor { display: block; width: 100%; height: auto; overflow: visible; fill: #fff; stroke: #0b0618; stroke-width: 1.6; stroke-linejoin: round;
    filter: drop-shadow(0 3px 4px rgb(0 0 0 / .5)); }
.yk-scene-boot__body { display: grid; gap: .45rem; padding: 1rem 1rem 1.15rem; }
.yk-scene-boot .yk-load__label { font-size: 1.2rem; }
.yk-scene-boot .yk-load__bar { height: 9px; }
.inv-intro.is-playing .yk-scene-boot .yk-load__fill { animation: yk-fill 1.1s cubic-bezier(.4, 0, .2, 1) 2.4s both; }
.yk-scene-desk { display: flex; gap: .2rem; }
.yk-scene-popup .yk-win__bar, .yk-scene-viewer .yk-win__bar { min-height: 1.9rem; font-size: 1.05rem; }
.yk-scene-popup .yk-ctl, .yk-scene-viewer .yk-ctl { width: 1.05rem; height: .95rem; }
.yk-scene-popup .yk-ctl--min, .yk-scene-popup .yk-ctl--max, .yk-scene-viewer .yk-ctl--min { display: none; }
.yk-scene-popup__text { padding: .55rem .7rem .65rem; font: 1.3rem/1.1 var(--yk-pixel); color: var(--yk-strong); }
.yk-scene-viewer .yk-win__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yk-scene-viewer__photo { display: block; aspect-ratio: 4 / 3; max-height: 15svh; width: 100%;
    background: linear-gradient(160deg, color-mix(in srgb, var(--inv-accent) 30%, transparent), transparent 60%), var(--yk-photo) center 30% / cover no-repeat, var(--yk-holo); }
.yk-scene-viewer__eq { display: flex; align-items: flex-end; gap: 4px; height: 3.6rem; padding: .6rem .7rem .3rem; }
.yk-scene-viewer__eq i { flex: 1; height: 30%; border-radius: 2px; background: linear-gradient(0deg, var(--inv-accent), var(--inv-primary) 60%, var(--inv-glow)); }
.yk-scene-viewer > .yk-load__bar { margin: .3rem .7rem .7rem; }
.inv-intro.is-playing .yk-scene-viewer__eq i { animation: yk-scene-eq .7s ease-in-out infinite alternate; }
.yk-scene-viewer__eq i:nth-child(3n) { animation-delay: -.3s !important; }
.yk-scene-viewer__eq i:nth-child(3n + 1) { animation-delay: -.55s !important; animation-duration: .9s !important; }
.yk-scene-viewer__eq i:nth-child(even) { animation-duration: .5s !important; }
@keyframes yk-scene-eq { to { height: 100%; } }
.inv-scene__art > .yk-scene-disc { width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .55)) drop-shadow(0 0 22px color-mix(in srgb, var(--inv-accent) 60%, transparent)); }
.inv-intro.is-playing .yk-scene-disc { animation: yk-scene-spin 3.2s linear infinite; }
@keyframes yk-scene-spin { to { rotate: 1turn; } }
.yk-scene-sparks { position: absolute; inset: 0; }
.inv-intro.is-playing .yk-scene-sparks .yk-spark { animation: yk-scene-twinkle 1.8s ease-in-out infinite alternate; }
.yk-scene-sparks .yk-spark:nth-child(even) { animation-delay: -.9s !important; }
@keyframes yk-scene-twinkle { from { scale: .6; opacity: .5; } to { scale: 1.15; opacity: 1; } }
.yk-scene-taskbar { position: static; min-height: 3rem; }

/* the card: an obsidian glass window "undangan.exe" with a liquid-chrome title bar, the names in liquid chrome */
body.yk-body .inv-scene__card {
    -webkit-mask: none; mask: none; aspect-ratio: auto; top: 46%; width: min(var(--scene-card-w, 78vw), 22rem); padding: 3.6rem 1.3rem 1.7rem; border-radius: 14px; overflow: hidden;
    background: linear-gradient(170deg, color-mix(in srgb, var(--inv-deep) 82%, transparent), color-mix(in srgb, var(--inv-background) 90%, transparent));
    box-shadow: 0 0 0 1px rgb(255 255 255 / .2), inset 0 1px 0 rgb(255 255 255 / .12), 0 30px 60px -24px rgb(0 0 0 / .85), 0 0 60px -14px var(--inv-accent);
}
body.yk-body .inv-scene__card::before {
    content: 'undangan.exe'; position: absolute; left: 0; right: 0; top: 0; height: 2.2rem; padding-left: 2rem; text-align: left;
    background: radial-gradient(circle at 1.05rem 50%, #fff 0 .1rem, var(--yk-candy-hi) .2rem, var(--inv-primary) .38rem, transparent .45rem), var(--yk-bar-dark);
    border-bottom: 1px solid rgb(255 255 255 / .12); color: var(--yk-light); font: 1.15rem/2.2rem var(--yk-pixel);
}
body.yk-body .inv-scene__card::after {
    content: '✕'; position: absolute; right: .45rem; top: .5rem; width: 1.25rem; height: 1.15rem; border-radius: 5px;
    background: linear-gradient(var(--yk-candy-hi), var(--inv-primary)); color: var(--inv-ink); font: 700 .7rem/1.15rem var(--yk-sans);
}
body.yk-body .inv-scene__card .inv-intro__label { font: 1.25rem/1.1 var(--yk-pixel); letter-spacing: .04em; text-transform: none; color: var(--yk-candy-hi); }
body.yk-body .inv-scene__card .inv-intro__names {
    font-family: var(--yk-display) !important; font-weight: 900; font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; text-transform: uppercase;
    background: var(--yk-chrome); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .05em .08em; overflow-wrap: anywhere;
    filter: drop-shadow(0 2px 0 rgb(0 0 0 / .45)) drop-shadow(0 0 16px color-mix(in srgb, var(--inv-accent) 55%, transparent));
}
body.yk-body .inv-scene__card .inv-intro__rule { height: 6px; width: 70%; border-radius: 999px; background: linear-gradient(90deg, var(--inv-accent), var(--inv-primary), var(--inv-glow)); }
body.yk-body .inv-scene__card .inv-intro__date { font: 1.35rem/1.1 var(--yk-pixel); letter-spacing: .04em; color: #fff; }
