/*
 * Template "Putri Duyung" (Ulang Tahun): an under-the-sea party for a little mermaid.
 * Colors from the variant (<x-inv.head>): --inv-primary (the sea), --inv-deep (deep water, also buttons),
 * --inv-accent (coral: the cover button, ribbons, shells), --inv-background (sand), --inv-text (ink on light
 * water), --inv-pearl (cards and ink on deep water).
 * The page is one dive: sunlit shallow water at the top (dark ink), a reef drop-off, then deep water (pearl ink)
 * down to the sandy seabed. Text always sits on calm water or on a pearl card, so it stays readable.
 * Pacifico only for names and section titles; Nunito for everything else.
 * Motion only under html.inv-anim (off with "reduce motion"); scroll-driven parts inside @supports.
 */

:root {
    --inv-primary: #2bb3b1;
    --inv-deep: #0f4c6b;
    --inv-accent: #ff8f87;
    --inv-background: #fdf3e4;
    --inv-text: #123a4f;
    --inv-pearl: #fffaf3;
}

.putri-duyung-body {
    --pd-w: 460px;
    --pd-display: 'Pacifico', 'Nunito', cursive;
    --pd-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pd-pearl: var(--inv-pearl);
    --pd-ink-soft: color-mix(in srgb, var(--inv-text) 84%, var(--inv-pearl));
    --pd-shallow-1: color-mix(in srgb, var(--inv-primary) 12%, var(--inv-pearl));
    --pd-shallow-2: color-mix(in srgb, var(--inv-primary) 30%, var(--inv-pearl));
    --pd-mid: color-mix(in srgb, var(--inv-primary) 42%, var(--inv-deep));
    --pd-abyss: color-mix(in srgb, var(--inv-deep) 72%, #040812);
    --pd-on-deep: var(--inv-pearl);
    --pd-on-deep-soft: color-mix(in srgb, var(--inv-pearl) 84%, var(--inv-deep));
    --pd-sand: color-mix(in srgb, var(--inv-background) 80%, #c9a271);
    --pd-sand-deep: color-mix(in srgb, var(--pd-sand) 70%, var(--inv-deep));
    --pd-button-ink: color-mix(in srgb, var(--inv-deep) 72%, #000);
    --pd-card-shadow: 0 18px 36px -24px color-mix(in srgb, var(--inv-deep) 80%, transparent);
    --inv-radius: 1.2rem;

    margin: 0;
    background: var(--pd-sand);
    color: var(--inv-text);
    font: 600 1rem/1.6 var(--pd-body);
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
p, figure, blockquote { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.putri-duyung-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.putri-duyung-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
svg { overflow: visible; }

/* ---------- column and backdrop ---------- */

.putri-duyung-backdrop {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(circle, rgb(255 255 255 / .16) 0 2px, transparent 2.5px) 0 0 / 70px 90px,
        radial-gradient(circle, transparent 0 7px, rgb(255 255 255 / .12) 7.5px 8.6px, transparent 9px) 30px 40px / 140px 160px,
        repeating-conic-gradient(from 160deg at 50% -10%, rgb(255 255 255 / .06) 0 3deg, transparent 3deg 11deg),
        linear-gradient(180deg, var(--pd-mid), var(--inv-deep) 55%, var(--pd-abyss));
}
@media (max-width: 519px) { .putri-duyung-backdrop { display: none; } }

.putri-duyung-page {
    position: relative; z-index: 1;
    width: min(100%, var(--pd-w)); min-height: 100vh; margin: 0 auto;
    overflow-x: clip;
    background: var(--pd-sand);
}
@media (min-width: 520px) {
    .putri-duyung-page { box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 30px 80px -10px rgb(0 0 0 / .5); }
}

.putri-duyung-preview {
    position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: .45rem 1rem;
    background: var(--inv-accent); color: var(--pd-button-ink); text-align: center;
    font: 800 .8rem/1.4 var(--pd-body);
}

/* ---------- buttons ---------- */

.putri-duyung-body .inv-button {
    min-height: 3rem; padding: .7rem 1.4rem; gap: .5rem;
    border: 0; border-radius: 999px;
    background: var(--inv-deep); color: #fff;
    font: 800 .98rem/1.2 var(--pd-body); letter-spacing: .01em; text-align: center;
    box-shadow: 0 4px 0 color-mix(in srgb, var(--inv-deep) 55%, #000), 0 12px 20px -12px rgb(0 0 0 / .55);
}
.putri-duyung-body .inv-button--outline {
    background: transparent; color: var(--inv-deep);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--inv-deep) 45%, transparent);
}
.putri-duyung-body .inv-button:focus-visible { outline: 3px solid var(--inv-accent); outline-offset: 3px; }
html.inv-anim .putri-duyung-body .inv-button:active { transform: translateY(2px); }
.putri-duyung-body .putri-duyung-btn--small { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .9rem; }

/* on deep water (outside the pearl cards) the buttons turn coral, outlines pearl */
.putri-duyung-zone--deep .inv-button { background: var(--inv-accent); color: var(--pd-button-ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--inv-accent) 50%, #000), 0 12px 20px -12px rgb(0 0 0 / .6); }
.putri-duyung-zone--deep .inv-button--outline { background: transparent; color: var(--pd-on-deep); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pd-on-deep) 50%, transparent); }
.putri-duyung-zone--deep :is(.putri-duyung-rsvp__card, .inv-wishes .inv-form, .inv-gift__account, .putri-duyung-wishlist__item) .inv-button {
    background: var(--inv-deep); color: #fff;
    box-shadow: 0 4px 0 color-mix(in srgb, var(--inv-deep) 55%, #000), 0 12px 20px -12px rgb(0 0 0 / .55);
}
.putri-duyung-zone--deep :is(.putri-duyung-rsvp__card, .inv-wishes .inv-form, .inv-gift__account, .putri-duyung-wishlist__item) .inv-button--outline {
    background: transparent; color: var(--inv-deep); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--inv-deep) 45%, transparent);
}

/* ---------- zones: the sea gets deeper ---------- */

.putri-duyung-zone { position: relative; }
.putri-duyung-zone--shallow {
    color: var(--inv-text);
    background:
        repeating-conic-gradient(from 165deg at 50% -6%, rgb(255 255 255 / .38) 0 2.5deg, transparent 2.5deg 9deg) top / 100% 34rem no-repeat,
        linear-gradient(180deg, var(--pd-shallow-1), var(--pd-shallow-2));
}
.putri-duyung-zone--deep {
    color: var(--pd-on-deep);
    background: linear-gradient(180deg, var(--pd-mid) 0, var(--inv-deep) 40%, var(--pd-abyss) 100%);
    padding-bottom: 0;
}

/* the water surface at the very top of the page (seen from below) */
.putri-duyung-surface { position: relative; height: 2.6rem; }
.putri-duyung-surface__waves { position: absolute; inset: 0 0 auto; width: 100%; height: 2.6rem; }
.putri-duyung-surface__wave { fill: color-mix(in srgb, var(--inv-primary) 45%, var(--inv-pearl)); }
.putri-duyung-surface__wave--back { fill: color-mix(in srgb, var(--inv-primary) 22%, var(--inv-pearl)); opacity: .9; }
.putri-duyung-surface__rays { position: absolute; inset: 0; }

/* the reef drop-off */
.putri-duyung-reef {
    position: relative; height: 9.5rem; overflow: hidden;
    background: linear-gradient(180deg, var(--pd-shallow-2) 0%, color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)) 55%, var(--pd-mid) 100%);
}
.putri-duyung-reef__ledge { position: absolute; left: 0; bottom: 0; width: 100%; height: 5.6rem; }
.putri-duyung-reef__rock { fill: color-mix(in srgb, var(--inv-deep) 70%, var(--inv-primary)); opacity: .55; }
.putri-duyung-reef__rock--front { fill: var(--pd-mid); opacity: 1; }
.putri-duyung-reef__coral { position: absolute; bottom: 2.6rem; width: 3.6rem; fill: none; stroke: var(--inv-accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.putri-duyung-reef__coral--1 { left: 12%; }
.putri-duyung-reef__coral--2 { right: 18%; width: 2.8rem; bottom: 2.2rem; stroke: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-pearl)); }
.putri-duyung-reef__weed { position: absolute; bottom: 1.6rem; width: 2.2rem; height: 6.4rem; color: color-mix(in srgb, var(--inv-primary) 60%, var(--inv-deep)); transform-origin: 50% 100%; }
.putri-duyung-reef__weed--1 { left: 3%; }
.putri-duyung-reef__weed--2 { left: 30%; height: 4.6rem; width: 1.7rem; }
.putri-duyung-reef__weed--3 { right: 4%; height: 7rem; }
.putri-duyung-reef__shell { position: absolute; bottom: 1.6rem; right: 34%; width: 2.3rem; height: 1.9rem; --pd-shell: color-mix(in srgb, var(--inv-accent) 75%, var(--inv-pearl)); }
.putri-duyung-reef__star { position: absolute; bottom: 1.3rem; left: 48%; width: 1.9rem; height: 1.9rem; --pd-star: var(--inv-accent); transform: rotate(-14deg); }
.putri-duyung-reef__fish { position: absolute; top: 1.6rem; right: 10%; width: 2.2rem; height: 1.4rem; color: var(--inv-accent); }

/* the seabed at the end of the deep water: the page paper below it is sand */
.putri-duyung-seabed { position: relative; height: 3.6rem; }
.putri-duyung-seabed__sand { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100%; fill: var(--pd-sand); }
.putri-duyung-seabed__shell { position: absolute; bottom: .6rem; left: 22%; width: 2.6rem; height: 2.2rem; --pd-shell: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-pearl)); }
.putri-duyung-seabed__star { position: absolute; bottom: .5rem; right: 24%; width: 2.1rem; height: 2.1rem; --pd-star: var(--inv-accent); transform: rotate(18deg); }
.putri-duyung-seabed__weed { position: absolute; bottom: 1rem; width: 1.6rem; height: 4.2rem; color: color-mix(in srgb, var(--inv-primary) 40%, var(--inv-deep)); transform-origin: 50% 100%; }
.putri-duyung-seabed__weed--1 { left: 2%; }
.putri-duyung-seabed__weed--2 { right: 3%; height: 3.6rem; }

/* ---------- sections and headings ---------- */

.putri-duyung-section { position: relative; padding: 3rem 1.5rem; text-align: center; }
.putri-duyung-zone--shallow > .putri-duyung-section:first-of-type { padding-top: 1.5rem; }

.putri-duyung-heading { margin-bottom: 1.6rem; }
.putri-duyung-heading__eyebrow {
    font: 900 .72rem/1.3 var(--pd-body); letter-spacing: .18em; text-transform: uppercase;
    color: var(--inv-deep);
}
.putri-duyung-heading__title { margin-top: .3rem; font: 400 1.85rem/1.3 var(--pd-display); color: var(--inv-deep); text-wrap: balance; }
.putri-duyung-heading__ornament { display: block; width: 9.5rem; height: 1.45rem; margin: .45rem auto 0; --pd-shell: var(--inv-accent); --pd-rib: rgb(255 255 255 / .7); }
.putri-duyung-heading__wave { fill: none; stroke: color-mix(in srgb, var(--inv-primary) 75%, var(--inv-deep)); stroke-width: 2.2; stroke-linecap: round; }
.putri-duyung-heading__bead { fill: var(--inv-accent); }
.putri-duyung-zone--deep .putri-duyung-heading__eyebrow { color: var(--inv-accent); }
.putri-duyung-zone--deep .putri-duyung-heading__title { color: var(--pd-on-deep); }
.putri-duyung-zone--deep .putri-duyung-heading__wave { stroke: color-mix(in srgb, var(--pd-on-deep) 55%, transparent); }

/* ---------- cover ---------- */

.putri-duyung-cover {
    position: fixed; inset: 0; z-index: 50;
    display: flex; flex-direction: column; min-height: 100svh; overflow: hidden auto;
    color: var(--pd-on-deep); text-align: center;
    background:
        radial-gradient(90% 38% at 50% 0%, color-mix(in srgb, var(--inv-primary) 60%, #fff) 0%, transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 82%, var(--inv-deep)) 0%, color-mix(in srgb, var(--inv-primary) 46%, var(--inv-deep)) 40%, var(--inv-deep) 74%, var(--pd-abyss) 100%);
}
.putri-duyung-cover__scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.putri-duyung-cover__rays {
    position: absolute; inset: 0 0 35% 0;
    background: repeating-conic-gradient(from 160deg at 50% -12%, rgb(255 255 255 / .13) 0 3deg, transparent 3deg 10deg);
    -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent);
    mask-image: linear-gradient(180deg, #000 10%, transparent);
    transform-origin: 50% 0;
}
.putri-duyung-cover__surface { position: absolute; top: 0; left: 0; width: 100%; height: clamp(1.8rem, 5svh, 2.8rem); }
.putri-duyung-cover__surface-back { fill: color-mix(in srgb, var(--inv-pearl) 40%, transparent); }
.putri-duyung-cover__surface-front { fill: color-mix(in srgb, var(--inv-pearl) 78%, var(--inv-primary)); }

.putri-duyung-cover__bubbles { position: absolute; bottom: 0; width: 2rem; height: 75%; }
.putri-duyung-cover__bubbles--left { left: 5%; }
.putri-duyung-cover__bubbles--right { right: 6%; }
.putri-duyung-cover__bubbles i {
    position: absolute; bottom: 8%; left: 30%; width: .7rem; height: .7rem; border-radius: 50%;
    border: 1.5px solid rgb(255 255 255 / .6);
    background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / .7) 0 18%, transparent 24%);
}
.putri-duyung-cover__bubbles i:nth-child(2) { left: 0; bottom: 30%; width: .45rem; height: .45rem; }
.putri-duyung-cover__bubbles i:nth-child(3) { left: 55%; bottom: 52%; width: .95rem; height: .95rem; }
.putri-duyung-cover__bubbles i:nth-child(4) { left: 15%; bottom: 76%; width: .55rem; height: .55rem; }

.putri-duyung-cover__fish { position: absolute; width: 2.4rem; height: 1.5rem; color: var(--inv-accent); opacity: .9; }
.putri-duyung-cover__fish--1 { top: 25svh; left: 4%; }
.putri-duyung-cover__fish--2 { top: 36svh; right: 4%; width: 1.9rem; height: 1.2rem; transform: scaleX(-1); color: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-pearl)); }

.putri-duyung-cover__sand { position: absolute; left: 0; bottom: 0; width: 100%; height: 8svh; fill: color-mix(in srgb, var(--pd-sand) 45%, var(--inv-deep)); }
.putri-duyung-cover__weed { position: absolute; bottom: 2svh; width: 8svh; height: 24svh; color: color-mix(in srgb, var(--inv-primary) 50%, var(--inv-deep)); transform-origin: 50% 100%; }
.putri-duyung-cover__weed--1 { left: -1.6rem; }
.putri-duyung-cover__weed--2 { left: 1rem; height: 14svh; width: 5svh; color: color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep)); }
.putri-duyung-cover__weed--3 { right: -1.4rem; height: 20svh; width: 7svh; }
.putri-duyung-cover__star { position: absolute; bottom: 1.2svh; right: 15%; width: 2rem; height: 2rem; --pd-star: var(--inv-accent); transform: rotate(16deg); }
.putri-duyung-cover__shellbit { position: absolute; bottom: 1.4svh; left: 19%; width: 2rem; height: 1.7rem; --pd-shell: color-mix(in srgb, var(--inv-accent) 60%, var(--inv-pearl)); }

.putri-duyung-cover__ripples { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.putri-duyung-cover__ripples i { grid-area: 1 / 1; width: 40vmax; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgb(255 255 255 / .7); opacity: 0; }

.putri-duyung-cover__inner {
    position: relative; z-index: 2; flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
    width: min(100%, 26rem); margin: 0 auto;
    padding: calc(clamp(2.2rem, 7svh, 3.6rem) + env(safe-area-inset-top)) 1.5rem calc(2.6rem + env(safe-area-inset-bottom));
}
.putri-duyung-cover__title {
    max-width: 100%; padding: .38rem .95rem; border-radius: 999px;
    background: color-mix(in srgb, var(--inv-deep) 50%, transparent); border: 1px solid rgb(255 255 255 / .35);
    font: 900 .72rem/1.35 var(--pd-body); letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.putri-duyung-cover__art { position: relative; height: 28svh; aspect-ratio: 150 / 124; max-width: 78vw; margin-top: .3rem; }
.putri-duyung-cover__art .putri-duyung-shellframe { width: 100%; height: 100%; }
.putri-duyung-cover__name {
    margin-top: .35rem; max-width: 100%;
    font: 400 clamp(2.5rem, 7.4svh, 3.5rem)/1.25 var(--pd-display); color: #fff; overflow-wrap: anywhere;
    text-shadow: 0 3px 0 color-mix(in srgb, var(--inv-deep) 45%, transparent), 0 8px 24px rgb(0 0 0 / .3);
}
.putri-duyung-cover__date { font: 800 .98rem/1.35 var(--pd-body); letter-spacing: .02em; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .3); }
.putri-duyung-cover__quote { max-width: 21rem; font: 600 .92rem/1.5 var(--pd-body); color: var(--pd-on-deep-soft); text-wrap: balance; }
.putri-duyung-cover__guest {
    margin-top: .25rem; padding: .55rem 1.3rem .65rem; border-radius: 1.3rem; max-width: 100%;
    background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .3);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.putri-duyung-cover__guest p { font: 800 .7rem/1.4 var(--pd-body); letter-spacing: .16em; text-transform: uppercase; color: var(--pd-on-deep-soft); }
.putri-duyung-cover__guest-name { display: block; font: 900 1.08rem/1.35 var(--pd-body); color: #fff; overflow-wrap: anywhere; }
.putri-duyung-body .putri-duyung-cover__open {
    margin-top: .35rem; min-height: 3.15rem; padding: .75rem 1.7rem;
    background: var(--inv-accent); color: var(--pd-button-ink); font-weight: 900; font-size: 1.02rem;
    box-shadow: 0 5px 0 color-mix(in srgb, var(--inv-accent) 45%, #000), 0 16px 28px -12px rgb(0 0 0 / .6);
}
.putri-duyung-body .putri-duyung-cover__open:focus-visible { outline-color: #fff; }
/* "Ayo menyelam" breathes with a ring of light (instead of the shared pulse) */
html.inv-anim .putri-duyung-body .putri-duyung-cover__open.inv-enter {
    animation:
        inv-enter 1.1s cubic-bezier(.2, .7, .2, 1) var(--enter-delay, 0s) both,
        putri-duyung-ring 2.6s ease-out calc(var(--enter-delay, 0s) + 1.4s) infinite;
}
@keyframes putri-duyung-ring {
    0% { box-shadow: 0 5px 0 color-mix(in srgb, var(--inv-accent) 45%, #000), 0 0 0 0 rgb(255 255 255 / .4); }
    70%, 100% { box-shadow: 0 5px 0 color-mix(in srgb, var(--inv-accent) 45%, #000), 0 0 0 16px rgb(255 255 255 / 0); }
}

@media (max-height: 760px) {
    .putri-duyung-cover__inner { gap: .45rem; padding-bottom: calc(2.4rem + env(safe-area-inset-bottom)); }
    .putri-duyung-cover__art { height: 25svh; }
    .putri-duyung-cover__name { font-size: clamp(2.3rem, 7svh, 3rem); }
}
@media (max-height: 660px) {
    .putri-duyung-cover__inner { gap: .35rem; padding-top: calc(2rem + env(safe-area-inset-top)); }
    .putri-duyung-cover__art { height: 24svh; }
    .putri-duyung-cover__name { font-size: 2.2rem; margin-top: .2rem; }
    .putri-duyung-cover__quote { font-size: .85rem; line-height: 1.42; }
    .putri-duyung-cover__guest { padding: .45rem 1.1rem .5rem; }
    .putri-duyung-body .putri-duyung-cover__open { min-height: 2.95rem; }
}

/* the dive: ripples, the surface slides away, the text drifts up, the scene zooms in and fades */
html.inv-anim .putri-duyung-cover--leave { transition: transform 1.05s cubic-bezier(.55, 0, .6, 1), opacity .6s ease .42s; pointer-events: none; }
html.inv-anim .putri-duyung-cover--gone { transform: scale(1.16); opacity: 0; }
html.inv-anim .putri-duyung-cover--leave .putri-duyung-cover__surface { transform: translateY(-120%); transition: transform .55s ease-in; }
html.inv-anim .putri-duyung-cover--leave .putri-duyung-cover__inner { opacity: 0; transform: translateY(-2.5rem) scale(.96); filter: blur(3px); transition: opacity .5s ease-in, transform .6s ease-in, filter .5s ease-in; }
html.inv-anim .putri-duyung-cover--leave .putri-duyung-cover__ripples i { animation: putri-duyung-ripple .95s cubic-bezier(.2, .7, .3, 1) both; }
html.inv-anim .putri-duyung-cover--leave .putri-duyung-cover__ripples i:nth-child(2) { animation-delay: .14s; }
html.inv-anim .putri-duyung-cover--leave .putri-duyung-cover__ripples i:nth-child(3) { animation-delay: .28s; }
@keyframes putri-duyung-ripple {
    0% { opacity: .9; transform: scale(.1); }
    100% { opacity: 0; transform: scale(1.4); border-width: 1px; }
}

/* the cover's idle life */
html.inv-anim .putri-duyung-cover__bubbles i { animation: putri-duyung-rise 7s linear infinite; }
html.inv-anim .putri-duyung-cover__bubbles i:nth-child(2) { animation-duration: 9s; animation-delay: -3s; }
html.inv-anim .putri-duyung-cover__bubbles i:nth-child(3) { animation-duration: 8s; animation-delay: -5s; }
html.inv-anim .putri-duyung-cover__bubbles i:nth-child(4) { animation-duration: 10s; animation-delay: -1.5s; }
@keyframes putri-duyung-rise {
    0% { translate: 0 0; opacity: 0; }
    10% { opacity: 1; }
    50% { translate: 6px -35svh; }
    90% { opacity: 1; }
    100% { translate: -4px -70svh; opacity: 0; }
}
html.inv-anim .putri-duyung-cover__rays { animation: putri-duyung-rays 9s ease-in-out infinite alternate; }
@keyframes putri-duyung-rays { from { transform: rotate(-3deg); opacity: .75; } to { transform: rotate(3deg); opacity: 1; } }
html.inv-anim :is(.putri-duyung-cover__weed, .putri-duyung-reef__weed, .putri-duyung-seabed__weed) { animation: putri-duyung-sway 5s ease-in-out infinite alternate; }
html.inv-anim :is(.putri-duyung-cover__weed--2, .putri-duyung-reef__weed--2, .putri-duyung-seabed__weed--2) { animation-duration: 4s; animation-delay: -2s; }
@keyframes putri-duyung-sway { from { transform: rotate(-4deg) skewX(-3deg); } to { transform: rotate(4deg) skewX(3deg); } }
html.inv-anim .putri-duyung-cover__fish--1 { animation: putri-duyung-idle 4.5s ease-in-out infinite; }
html.inv-anim .putri-duyung-cover__fish--2 { animation: putri-duyung-idle-flip 5.5s ease-in-out infinite; }
@keyframes putri-duyung-idle { 0%, 100% { translate: 0 0; } 50% { translate: 8px -6px; } }
@keyframes putri-duyung-idle-flip { 0%, 100% { translate: 0 0; } 50% { translate: -8px 5px; } }
html.inv-anim .putri-duyung-surface__wave { animation: putri-duyung-wave 6s ease-in-out infinite alternate; }
html.inv-anim .putri-duyung-surface__wave--back, html.inv-anim .putri-duyung-cover__surface-back { animation: putri-duyung-wave 7s ease-in-out -3s infinite alternate-reverse; }
html.inv-anim .putri-duyung-cover__surface-front { animation: putri-duyung-wave 6s ease-in-out infinite alternate; }
@keyframes putri-duyung-wave { from { transform: translateX(-12px) scaleY(.9); } to { transform: translateX(12px) scaleY(1.08); } }

/* ---------- shell frame and pearl ---------- */

.putri-duyung-shellframe { position: relative; }
.putri-duyung-shellframe__svg { display: block; width: 100%; height: 100%; }
.putri-duyung-shellframe__shadow { fill: color-mix(in srgb, var(--inv-deep) 40%, transparent); transform: translate(0, 5px); }
.putri-duyung-shellframe__ribs { fill: none; stroke: rgb(255 255 255 / .12); stroke-width: 1.2; stroke-linecap: round; }
.putri-duyung-shellframe--empty .putri-duyung-shellframe__ribs { stroke: rgb(255 255 255 / .32); stroke-width: 2.2; }
.putri-duyung-shellframe__edge { fill: none; stroke: var(--pd-shell-edge, var(--inv-pearl)); stroke-width: 4; stroke-linejoin: round; }
.putri-duyung-shellframe__ears { fill: color-mix(in srgb, var(--inv-accent) 28%, var(--inv-pearl)); stroke: var(--pd-shell-edge, var(--inv-pearl)); stroke-width: 3; stroke-linejoin: round; }
.putri-duyung-shellframe__hinge { fill: none; stroke: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-pearl)); stroke-width: 2.6; stroke-linecap: round; }
.putri-duyung-shellframe__initial { font: 400 46px/1 var(--pd-display); fill: #fff; paint-order: stroke; stroke: color-mix(in srgb, var(--inv-deep) 40%, transparent); stroke-width: 3px; }

.putri-duyung-pearl {
    position: absolute; display: grid; place-content: center; justify-items: center;
    width: 4.4rem; aspect-ratio: 1; border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, #fff 0 12%, transparent 30%),
        radial-gradient(circle at 50% 50%, var(--inv-pearl) 0 45%, color-mix(in srgb, var(--inv-pearl) 72%, var(--inv-primary)) 100%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-accent) 85%, #fff), 0 10px 18px -8px rgb(0 0 0 / .5), inset -4px -6px 10px color-mix(in srgb, var(--inv-primary) 30%, transparent);
    color: var(--inv-deep); line-height: 1;
}
.putri-duyung-pearl__small { font: 900 .68rem/1 var(--pd-body); letter-spacing: .06em; }
.putri-duyung-pearl__number { font: 900 1.85rem/1 var(--pd-body); }
.putri-duyung-pearl__number--long { font-size: 1.4rem; }
.putri-duyung-pearl__initial { font: 400 1.7rem/1 var(--pd-display); }
.putri-duyung-pearl--cover { right: 2%; bottom: -4%; width: clamp(3.4rem, 9svh, 4.4rem); }
.putri-duyung-pearl--cover .putri-duyung-pearl__number { font-size: clamp(1.4rem, 3.8svh, 1.85rem); }
html.inv-anim .putri-duyung-pearl { animation: putri-duyung-bob 3.6s ease-in-out infinite; }
@keyframes putri-duyung-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* ---------- opening ---------- */

.putri-duyung-opening__fish { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-bottom: .9rem; }
.putri-duyung-opening__fish svg { width: 2.4rem; height: 1.5rem; color: var(--inv-accent); }
.putri-duyung-opening__fish-b { transform: scaleX(-1); color: color-mix(in srgb, var(--inv-primary) 80%, var(--inv-deep)) !important; }
.putri-duyung-opening__dots { display: flex; gap: .25rem; }
.putri-duyung-opening__dots i { width: .4rem; height: .4rem; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--inv-primary) 80%, var(--inv-deep)); }
.putri-duyung-opening__dots i:nth-child(2) { width: .55rem; height: .55rem; }
.putri-duyung-opening__greeting { font: 900 1.45rem/1.3 var(--pd-body); color: var(--inv-deep); }
.putri-duyung-opening__message { max-width: 22rem; margin: .6rem auto 0; color: var(--pd-ink-soft); }
.putri-duyung-pearls { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 1.3rem; }
.putri-duyung-pearls i { width: .7rem; height: .7rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 25%, var(--inv-pearl) 45%, color-mix(in srgb, var(--inv-pearl) 70%, var(--inv-primary)) 100%); box-shadow: 0 2px 4px color-mix(in srgb, var(--inv-deep) 30%, transparent); }
.putri-duyung-pearls i:nth-child(3) { width: 1rem; height: 1rem; }
.putri-duyung-pearls i:nth-child(2), .putri-duyung-pearls i:nth-child(4) { width: .85rem; height: .85rem; }
html.inv-anim .putri-duyung-opening__fish-a { animation: putri-duyung-idle 4s ease-in-out infinite; }

/* ---------- celebrant ---------- */

.putri-duyung-profile { position: relative; width: min(100%, 18.5rem); margin: 0 auto; padding-bottom: 1.6rem; }
.putri-duyung-profile__glow { position: absolute; inset: 8% -8% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .85), transparent); }
.putri-duyung-shellframe--profile { aspect-ratio: 150 / 124; }
.putri-duyung-pearl--profile { right: -2%; bottom: .8rem; width: 4.6rem; z-index: 2; }
.putri-duyung-profile__star { position: absolute; left: 2%; bottom: .6rem; width: 2.6rem; height: 2.6rem; --pd-star: var(--inv-accent); transform: rotate(-16deg); z-index: 2; }
.putri-duyung-profile__sand { position: absolute; left: -10%; bottom: 0; width: 120%; height: 2.4rem; fill: var(--inv-background); }
.putri-duyung-celebrant__title { margin-top: 1rem; }
.putri-duyung-celebrant__title span {
    position: relative; display: inline-block; padding: .35rem 1.3rem; border-radius: .4rem;
    background: var(--inv-accent); color: var(--pd-button-ink);
    font: 900 .78rem/1.3 var(--pd-body); letter-spacing: .14em; text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - .55rem) 50%, 100% 100%, 0 100%, .55rem 50%);
}
.putri-duyung-celebrant__name { margin-top: .7rem; font: 400 1.75rem/1.35 var(--pd-display); color: var(--inv-deep); text-wrap: balance; }
.putri-duyung-celebrant__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .9rem; margin-top: .45rem; font-weight: 800; color: var(--pd-ink-soft); }
.putri-duyung-celebrant__meta span + span::before { content: ''; display: inline-block; width: .38rem; height: .38rem; margin-right: .9rem; border-radius: 50%; background: var(--inv-accent); vertical-align: .15em; }
.putri-duyung-celebrant__parents {
    margin: 1.3rem auto 0; max-width: 21rem; padding: 1rem 1.2rem;
    border-radius: 1.6rem .9rem 1.6rem .9rem;
    background: color-mix(in srgb, var(--inv-pearl) 80%, transparent); box-shadow: var(--pd-card-shadow);
    border: 1px solid color-mix(in srgb, var(--inv-primary) 25%, transparent);
}
.putri-duyung-celebrant__parents-label { font: 800 .82rem/1.4 var(--pd-body); color: var(--pd-ink-soft); }
.putri-duyung-celebrant__parents-names { display: grid; gap: .1rem; margin-top: .25rem; font: 900 1.06rem/1.4 var(--pd-body); color: var(--inv-deep); }
.putri-duyung-amp { font: 400 1rem/1.4 var(--pd-display); color: color-mix(in srgb, var(--inv-accent) 60%, var(--inv-deep)); }
.putri-duyung-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.putri-duyung-bubblechip {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem 1rem;
    border-radius: 999px; color: var(--inv-deep); text-decoration: none; font: 800 .9rem/1.2 var(--pd-body);
    background: radial-gradient(circle at 18% 22%, #fff 0 10%, transparent 30%), color-mix(in srgb, var(--inv-primary) 16%, var(--inv-pearl));
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-primary) 45%, transparent);
}
.putri-duyung-bubblechip:focus-visible { outline: 3px solid var(--inv-accent); outline-offset: 2px; }

/* ---------- message ---------- */

.putri-duyung-message__bubble {
    position: relative; max-width: 21rem; margin: 0 auto; padding: 2rem 1.7rem;
    border-radius: 48% 52% 46% 54% / 42% 44% 56% 58%;
    background: radial-gradient(circle at 24% 20%, #fff 0 6%, transparent 18%), radial-gradient(circle at 50% 50%, var(--inv-pearl) 55%, color-mix(in srgb, var(--inv-primary) 22%, var(--inv-pearl)) 100%);
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / .9), inset -10px -14px 24px color-mix(in srgb, var(--inv-primary) 20%, transparent), var(--pd-card-shadow);
    font: 700 1.04rem/1.6 var(--pd-body); color: var(--inv-text);
}
.putri-duyung-message__trail { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin-top: .4rem; }
.putri-duyung-message__trail i { display: block; border-radius: 50%; background: var(--inv-pearl); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-primary) 45%, transparent); }
.putri-duyung-message__trail i:nth-child(1) { width: 1rem; height: 1rem; }
.putri-duyung-message__trail i:nth-child(2) { width: .7rem; height: .7rem; translate: -.3rem 0; }
.putri-duyung-message__trail i:nth-child(3) { width: .45rem; height: .45rem; translate: -.1rem 0; }
.putri-duyung-message__from { display: inline-flex; align-items: center; gap: .55rem; margin-top: .45rem; }
.putri-duyung-message__avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--inv-accent); color: var(--pd-button-ink); font: 400 1.15rem/1 var(--pd-display); }
.putri-duyung-message__from cite { font: 900 1rem/1.3 var(--pd-body); font-style: normal; color: var(--inv-deep); }
html.inv-anim .putri-duyung-message__bubble { animation: putri-duyung-wobble 7s ease-in-out infinite; }
@keyframes putri-duyung-wobble {
    0%, 100% { border-radius: 48% 52% 46% 54% / 42% 44% 56% 58%; }
    50% { border-radius: 53% 47% 52% 48% / 46% 40% 60% 54%; }
}

/* ---------- events: porthole cards ---------- */

.putri-duyung-events__list { display: grid; gap: 3.6rem; padding-top: 3.2rem; }
.putri-duyung-porthole {
    position: relative; padding: 5.6rem 1.25rem 1.4rem; border-radius: 1.8rem;
    background: var(--inv-pearl); box-shadow: var(--pd-card-shadow), inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 22%, transparent);
    text-align: center;
}
.putri-duyung-porthole__window {
    position: absolute; top: -3.4rem; left: 50%; width: 8.4rem; aspect-ratio: 1; translate: -50% 0;
    display: grid; place-items: center; border-radius: 50%; overflow: hidden;
    background:
        radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--inv-primary) 60%, var(--inv-deep)) 0 40%, transparent 41%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 55%, #fff), var(--inv-deep));
    box-shadow: 0 0 0 .6rem color-mix(in srgb, var(--inv-accent) 55%, #d9b26a), 0 0 0 .75rem color-mix(in srgb, var(--inv-deep) 35%, transparent), 0 16px 26px -12px rgb(0 0 0 / .55);
}
.putri-duyung-porthole__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.putri-duyung-porthole__date { position: relative; display: grid; justify-items: center; line-height: 1; color: #fff; text-shadow: 0 2px 8px rgb(0 0 0 / .35); }
.putri-duyung-porthole__day { font: 900 2.6rem/1 var(--pd-body); }
.putri-duyung-porthole__month { margin-top: .2rem; font: 900 .8rem/1 var(--pd-body); letter-spacing: .2em; text-transform: uppercase; }
/* with a venue photo the date moves onto a small pearl tag at the bottom of the window */
.putri-duyung-porthole__window--photo .putri-duyung-porthole__date {
    position: absolute; bottom: .5rem; left: 50%; translate: -50% 0; padding: .25rem .65rem; border-radius: 999px;
    grid-auto-flow: column; gap: .3rem; align-items: baseline;
    background: var(--inv-pearl); color: var(--inv-deep); text-shadow: none;
}
.putri-duyung-porthole__window--photo .putri-duyung-porthole__day { font-size: 1rem; }
.putri-duyung-porthole__window--photo .putri-duyung-porthole__month { font-size: .68rem; letter-spacing: .12em; }
.putri-duyung-porthole__glass { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgb(255 255 255 / .45) 0 18%, transparent 30%); pointer-events: none; }
.putri-duyung-porthole__rivets { position: absolute; inset: -.6rem; width: calc(100% + 1.2rem); height: calc(100% + 1.2rem); pointer-events: none; }
.putri-duyung-porthole__rivets circle { fill: none; stroke: color-mix(in srgb, var(--inv-deep) 55%, #fff); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 12; }
.putri-duyung-porthole__window { overflow: visible; }
.putri-duyung-porthole__window > :is(.putri-duyung-porthole__photo, .putri-duyung-porthole__glass) { border-radius: 50%; }
.putri-duyung-porthole__name { font: 400 1.5rem/1.35 var(--pd-display); color: var(--inv-deep); text-wrap: balance; }
.putri-duyung-porthole__weekday { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; font-weight: 900; color: var(--inv-text); }
.putri-duyung-porthole__weekday .putri-duyung-icon { color: color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep)); }
.putri-duyung-porthole__rows { display: grid; gap: .7rem; margin-top: 1rem; padding-top: 1rem; text-align: left; border-top: 2px dotted color-mix(in srgb, var(--inv-primary) 45%, transparent); }
.putri-duyung-porthole__rows li { display: flex; gap: .75rem; align-items: flex-start; }
.putri-duyung-porthole__icon { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: color-mix(in srgb, var(--inv-primary) 18%, var(--inv-pearl)); color: var(--inv-deep); }
.putri-duyung-porthole__rows li > span:last-child { padding-top: .25rem; }
.putri-duyung-porthole__venue { display: block; font-weight: 900; color: var(--inv-deep); }
.putri-duyung-porthole__address { display: block; color: var(--pd-ink-soft); font-size: .94rem; }
.putri-duyung-porthole .inv-maps { margin-top: 1.1rem; }
.putri-duyung-porthole .inv-maps__frame { height: 200px; border-radius: 1.1rem; margin-top: 1rem; }

/* ---------- countdown: bubbles ---------- */

.putri-duyung-countdown .inv-countdown { align-items: flex-end; gap: .5rem; min-height: 7.4rem; }
.putri-duyung-countdown .inv-countdown__item {
    display: grid; place-content: center; flex: none; width: 4.9rem; min-width: 0; aspect-ratio: 1; padding: 0; border-radius: 50%;
    background:
        radial-gradient(circle at 30% 26%, #fff 0 9%, rgb(255 255 255 / .55) 10% 15%, transparent 22%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--inv-primary) 8%, #fff) 40%, color-mix(in srgb, var(--inv-primary) 34%, #fff) 100%);
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / .95), inset -6px -9px 14px color-mix(in srgb, var(--inv-primary) 26%, transparent), 0 12px 20px -12px color-mix(in srgb, var(--inv-deep) 80%, transparent);
    color: var(--inv-deep);
}
.putri-duyung-countdown .inv-countdown__item:nth-child(1) { width: 5.4rem; }
.putri-duyung-countdown .inv-countdown__item:nth-child(2) { width: 4.8rem; margin-bottom: 1.6rem; }
.putri-duyung-countdown .inv-countdown__item:nth-child(3) { width: 4.4rem; margin-bottom: .4rem; }
.putri-duyung-countdown .inv-countdown__item:nth-child(4) { width: 4rem; margin-bottom: 2rem; }
.putri-duyung-countdown .inv-countdown__value { font: 900 1.55rem/1 var(--pd-body); }
.putri-duyung-countdown .inv-countdown__item:nth-child(1) .inv-countdown__value { font-size: 1.8rem; }
.putri-duyung-countdown .inv-countdown__label { margin-top: .15rem; font: 900 .62rem/1 var(--pd-body); letter-spacing: .12em; text-transform: uppercase; opacity: 1; color: var(--pd-ink-soft); }
@media (max-width: 370px) {
    .putri-duyung-countdown .inv-countdown { gap: .35rem; }
    .putri-duyung-countdown .inv-countdown__item:nth-child(1) { width: 4.9rem; }
    .putri-duyung-countdown .inv-countdown__item:nth-child(2) { width: 4.4rem; }
    .putri-duyung-countdown .inv-countdown__item:nth-child(3) { width: 4rem; }
    .putri-duyung-countdown .inv-countdown__item:nth-child(4) { width: 3.7rem; }
}
html.inv-anim .putri-duyung-countdown .inv-countdown__item { animation: putri-duyung-bob 3.4s ease-in-out infinite; }
html.inv-anim .putri-duyung-countdown .inv-countdown__item:nth-child(2) { animation-duration: 4s; animation-delay: -1s; }
html.inv-anim .putri-duyung-countdown .inv-countdown__item:nth-child(3) { animation-duration: 3.7s; animation-delay: -2s; }
html.inv-anim .putri-duyung-countdown .inv-countdown__item:nth-child(4) { animation-duration: 4.4s; animation-delay: -.5s; }
.putri-duyung-countdown .inv-countdown__done { font-weight: 800; color: var(--inv-deep); }
.putri-duyung-countdown .inv-countdown__actions { margin-top: 1.5rem; gap: .6rem; }
.putri-duyung-countdown .inv-countdown__actions .inv-button { min-height: 2.75rem; padding: .5rem 1.05rem; font-size: .86rem; }
.putri-duyung-countdown .inv-cal {
    --inv-cal-bg: color-mix(in srgb, var(--inv-background) 60%, #fff);
    --inv-cal-text: var(--inv-text);
    --inv-cal-mark: var(--inv-deep);
    margin-top: 2.2rem; border-radius: 1.5rem; box-shadow: var(--pd-card-shadow), inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 20%, transparent);
}
.putri-duyung-countdown .inv-cal__month { font-family: var(--pd-display); color: var(--inv-deep); }
.putri-duyung-countdown .inv-cal__circle { color: var(--inv-accent); }
.putri-duyung-countdown .inv-cal__circle path { stroke-width: 2.6; }

/* ---------- party ---------- */

.putri-duyung-party__label { display: block; font: 900 .7rem/1.3 var(--pd-body); letter-spacing: .16em; text-transform: uppercase; color: var(--pd-ink-soft); }
.putri-duyung-party__theme {
    position: relative; max-width: 21rem; margin: 0 auto; padding: 1.1rem 1.4rem 1.2rem;
    border-radius: 2rem 1rem 2rem 1rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--inv-primary) 30%, var(--inv-pearl)), color-mix(in srgb, var(--inv-accent) 22%, var(--inv-pearl)));
    box-shadow: var(--pd-card-shadow), inset 0 0 0 2px rgb(255 255 255 / .7);
}
.putri-duyung-party__theme-name { margin-top: .2rem; font: 400 1.5rem/1.35 var(--pd-display); color: var(--inv-deep); }
.putri-duyung-party__dress {
    display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: 1rem; align-items: center;
    max-width: 21rem; margin: 1rem auto 0; padding: 1rem 1.1rem; text-align: left;
    border-radius: 1.5rem; background: var(--inv-pearl); box-shadow: var(--pd-card-shadow);
    --putri-duyung-pick: var(--inv-primary);
}
.putri-duyung-party__dress:not([x-data]) { grid-template-columns: 4.4rem minmax(0, 1fr); }
.putri-duyung-tail { width: 100%; height: auto; filter: drop-shadow(0 6px 6px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.putri-duyung-tail__body { fill: var(--putri-duyung-pick); transition: fill .35s ease; stroke: color-mix(in srgb, var(--inv-deep) 30%, transparent); stroke-width: 1.2; }
.putri-duyung-tail__scales { fill: url(#putri-duyung-scales); }
.putri-duyung-tail__fin { fill: none; stroke: rgb(255 255 255 / .6); stroke-width: 1.4; stroke-linecap: round; }
.putri-duyung-tail__belt circle { fill: var(--inv-pearl); stroke: color-mix(in srgb, var(--inv-deep) 25%, transparent); stroke-width: .8; }
html.inv-anim .putri-duyung-tail { transform-origin: 50% 10%; animation: putri-duyung-swish 3.2s ease-in-out infinite; }
@keyframes putri-duyung-swish { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
.putri-duyung-party__dress-name { margin-top: .1rem; font: 900 1.1rem/1.35 var(--pd-body); color: var(--inv-deep); }
.putri-duyung-necklace {
    position: relative; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; padding-top: .2rem;
}
.putri-duyung-necklace::before { content: ''; position: absolute; left: 0; right: 0; top: 1.55rem; height: 1rem; border-bottom: 1.5px solid color-mix(in srgb, var(--inv-deep) 30%, transparent); border-radius: 0 0 50% 50%; }
.putri-duyung-necklace__pearl {
    position: relative; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: radial-gradient(circle at 34% 28%, #fff 0 14%, transparent 32%), radial-gradient(circle at 50% 55%, var(--putri-duyung-swatch) 55%, color-mix(in srgb, var(--putri-duyung-swatch) 70%, #000) 100%);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--inv-deep) 22%, transparent), 0 6px 10px -6px rgb(0 0 0 / .5);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.putri-duyung-necklace__pearl[aria-pressed="true"] { transform: scale(1.14) translateY(-2px); box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--inv-deep), 0 8px 12px -6px rgb(0 0 0 / .5); }
.putri-duyung-necklace__pearl:focus-visible { outline: 3px solid var(--inv-accent); outline-offset: 4px; }
.putri-duyung-party__hint { margin-top: .5rem; font-size: .8rem; font-weight: 700; color: var(--pd-ink-soft); }
.putri-duyung-party__note {
    display: flex; gap: .65rem; align-items: flex-start; max-width: 21rem; margin: 1rem auto 0; padding: .95rem 1.1rem;
    border-radius: 1.2rem; background: color-mix(in srgb, var(--inv-background) 80%, #fff); text-align: left; font-weight: 700;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-accent) 45%, transparent);
}
.putri-duyung-party__note .putri-duyung-icon { margin-top: .2rem; color: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-deep)); }
.putri-duyung-party__hashtag {
    display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; margin-top: 1.1rem; padding: .3rem .3rem .3rem 1.1rem;
    border-radius: 999px; background: var(--inv-deep); color: #fff;
}
.putri-duyung-party__hashtag-text { font: 900 1rem/1.3 var(--pd-body); overflow-wrap: anywhere; }
.putri-duyung-party__copy {
    min-height: 2.75rem; padding: .4rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--inv-accent); color: var(--pd-button-ink); font: 900 .85rem/1 var(--pd-body);
}
.putri-duyung-party__copy:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- rundown: the dive line ---------- */

.putri-duyung-rundown__dive { position: relative; max-width: 21rem; margin: 0 auto; text-align: left; }
.putri-duyung-rundown__anchor { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-left: 3.65rem; border-radius: 50%; background: var(--inv-deep); color: #fff; position: relative; z-index: 1; }
.putri-duyung-rundown__list { position: relative; display: grid; gap: 1.15rem; padding: 1rem 0 .2rem; }
.putri-duyung-rundown__list::before {
    content: ''; position: absolute; top: -.4rem; bottom: 0; left: 4.85rem; width: 3px; border-radius: 3px;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 70%, transparent) 0 6px, transparent 6px 10px);
    transform-origin: top;
}
.putri-duyung-rundown__item { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.7rem; align-items: start; }
.putri-duyung-rundown__item::before {
    content: ''; position: absolute; left: 4.37rem; top: .45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff 0 22%, color-mix(in srgb, var(--inv-primary) 30%, #fff) 60%);
    box-shadow: inset 0 0 0 2px var(--inv-deep);
}
.putri-duyung-rundown__time {
    justify-self: end; padding: .25rem .55rem; border-radius: .7rem .7rem .7rem .2rem;
    background: var(--inv-accent); color: var(--pd-button-ink); font: 900 .88rem/1.3 var(--pd-body); font-variant-numeric: tabular-nums;
}
.putri-duyung-rundown__body { padding: .65rem .9rem; border-radius: 1rem; background: color-mix(in srgb, var(--inv-pearl) 82%, transparent); box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--inv-deep) 80%, transparent); }
.putri-duyung-rundown__body h3 { font: 900 1rem/1.35 var(--pd-body); color: var(--inv-deep); }
.putri-duyung-rundown__body p { margin-top: .15rem; font-size: .9rem; color: var(--pd-ink-soft); }

/* ---------- story: a string of pearls ---------- */

.putri-duyung-story__list { position: relative; display: grid; gap: 1.6rem; max-width: 22rem; margin: 0 auto; }
.putri-duyung-story__list::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -50% 0;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--inv-pearl) 70%, transparent) 0 4px, transparent 4px 9px);
    transform-origin: top;
}
.putri-duyung-story__item { position: relative; display: grid; justify-items: center; gap: .55rem; }
.putri-duyung-story__pearl {
    position: relative; z-index: 1; display: grid; place-items: center; min-width: 3.6rem; height: 3.6rem; padding: 0 .6rem; border-radius: 999px;
    background: radial-gradient(circle at 34% 28%, #fff 0 12%, transparent 30%), radial-gradient(circle at 50% 50%, var(--inv-pearl) 45%, color-mix(in srgb, var(--inv-pearl) 70%, var(--inv-primary)) 100%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-accent) 80%, #fff), 0 8px 16px -8px rgb(0 0 0 / .6);
    color: var(--inv-deep); font: 900 .95rem/1 var(--pd-body);
}
.putri-duyung-story__pearl--plain { min-width: 1.6rem; height: 1.6rem; }
.putri-duyung-story__card {
    position: relative; z-index: 1; width: min(100%, 19rem); padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 1.4rem 1.4rem 1.8rem 1.8rem; background: var(--inv-pearl); color: var(--inv-text);
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .7); rotate: -1.6deg;
}
.putri-duyung-story__item--right .putri-duyung-story__card { rotate: 1.6deg; }
.putri-duyung-shellframe--story { --pd-shell-edge: color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep)); width: min(100%, 12rem); aspect-ratio: 150 / 124; margin: 0 auto .7rem; }
.putri-duyung-story__card h3 { font: 900 1.08rem/1.35 var(--pd-body); color: var(--inv-deep); }
.putri-duyung-story__card p { margin-top: .3rem; font-size: .94rem; color: var(--pd-ink-soft); }

/* ---------- gallery: photos in shells ---------- */

.putri-duyung-gallery .inv-gallery { gap: 1rem .7rem; align-items: center; }
.putri-duyung-gallery .inv-gallery__item {
    aspect-ratio: 142 / 110; border-radius: 0; overflow: visible; background: none;
    filter: drop-shadow(0 0 1.2px var(--inv-pearl)) drop-shadow(0 0 1.2px var(--inv-pearl)) drop-shadow(0 10px 12px rgb(0 0 0 / .45));
}
.putri-duyung-gallery .inv-gallery__item:nth-child(odd) { rotate: -2.5deg; }
.putri-duyung-gallery .inv-gallery__item:nth-child(even) { rotate: 2.5deg; }
.putri-duyung-gallery .inv-gallery__item :is(img, video) {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 -6 142 110' preserveAspectRatio='none'%3E%3Cpath d='M67 99Q28 80 8.3 38.9Q4.3 21.1 21 28.6Q20.1 10.4 35.3 20.6Q37.5 2.5 50.7 15.1Q56 -2.4 66.8 12.3Q75 -4 83.2 12.3Q94 -2.4 99.3 15.1Q112.5 2.5 114.7 20.6Q129.9 10.4 129 28.6Q145.7 21.1 141.7 38.9Q122 80 83 99Q75 104 67 99Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 -6 142 110' preserveAspectRatio='none'%3E%3Cpath d='M67 99Q28 80 8.3 38.9Q4.3 21.1 21 28.6Q20.1 10.4 35.3 20.6Q37.5 2.5 50.7 15.1Q56 -2.4 66.8 12.3Q75 -4 83.2 12.3Q94 -2.4 99.3 15.1Q112.5 2.5 114.7 20.6Q129.9 10.4 129 28.6Q145.7 21.1 141.7 38.9Q122 80 83 99Q75 104 67 99Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* every third photo floats in a round bubble window instead */
.putri-duyung-gallery .inv-gallery__item:nth-child(3n) { aspect-ratio: 1; width: 86%; justify-self: center; }
.putri-duyung-gallery .inv-gallery__item:nth-child(3n) :is(img, video) { -webkit-mask: none; mask: none; border-radius: 50%; }
.putri-duyung-gallery .inv-gallery__item:focus-visible { outline: 3px solid var(--inv-accent); outline-offset: 4px; }

/* ---------- live streaming: a porthole screen ---------- */

.putri-duyung-stream__card {
    display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 1rem; align-items: center; max-width: 22rem; margin: 0 auto;
    padding: 1.2rem; border-radius: 1.6rem; text-align: left;
    background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
}
.putri-duyung-stream__window {
    display: grid; place-items: center; width: 4.6rem; aspect-ratio: 1; border-radius: 50%; font-size: 2rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 60%, #fff), var(--inv-deep)); color: #fff;
    box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--inv-accent) 55%, #d9b26a);
}
.putri-duyung-stream__title { font: 400 1.35rem/1.35 var(--pd-display); color: var(--pd-on-deep); }
.putri-duyung-stream__card p { margin-top: .2rem; font-size: .92rem; color: var(--pd-on-deep-soft); }
.putri-duyung-stream__note { font-weight: 800; color: var(--pd-on-deep) !important; }
.putri-duyung-stream__card .inv-button { margin-top: .75rem; }

/* ---------- forms (RSVP and wishes) ---------- */

.putri-duyung-body .inv-form { gap: .9rem; }
.putri-duyung-body .inv-form label { gap: .35rem; font: 800 .9rem/1.35 var(--pd-body); color: var(--inv-text); }
.putri-duyung-body .inv-form input:not([type=radio]):not([type=checkbox]),
.putri-duyung-body .inv-form select,
.putri-duyung-body .inv-form textarea {
    min-height: 3rem; padding: .7rem .95rem; border: 2px solid color-mix(in srgb, var(--inv-primary) 40%, transparent);
    border-radius: 1rem; background: #fff; color: var(--inv-text); font: 700 1rem/1.4 var(--pd-body);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.putri-duyung-body .inv-form textarea { min-height: 6.5rem; resize: vertical; }
.putri-duyung-body .inv-form :is(input, select, textarea):focus { outline: none; border-color: var(--inv-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-primary) 30%, transparent); }
.putri-duyung-body .inv-form .inv-button { width: 100%; margin-top: .2rem; }
.putri-duyung-body .inv-form__notice { border-radius: 1rem; background: color-mix(in srgb, var(--inv-primary) 16%, #fff); color: var(--inv-text); font-weight: 700; }
.putri-duyung-body .inv-rsvp__deadline { margin-bottom: .9rem; font-size: .86rem; font-weight: 800; color: var(--pd-ink-soft); text-align: center; }

.putri-duyung-rsvp__card {
    position: relative; max-width: 22rem; margin: 1.2rem auto 0; padding: 1.8rem 1.2rem 1.4rem;
    border-radius: 0 0 1.8rem 1.8rem; background: var(--inv-pearl); color: var(--inv-text); text-align: left;
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / .7);
}
/* the scalloped top edge, like the rim of a shell */
.putri-duyung-rsvp__card::before {
    content: ''; position: absolute; left: 0; right: 0; top: -.95rem; height: 1rem;
    background: radial-gradient(circle at 50% 100%, var(--inv-pearl) 69%, transparent 71%) 0 0 / 1.6rem 2rem repeat-x;
}
.putri-duyung-rsvp__intro { margin-bottom: 1rem; text-align: center; font-weight: 800; color: var(--pd-ink-soft); }
.putri-duyung-rsvp__card .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.putri-duyung-rsvp__card .inv-form__choices legend { grid-column: 1 / -1; padding: 0; margin-bottom: .5rem; font: 800 .9rem/1.35 var(--pd-body); }
.putri-duyung-rsvp__card .inv-form__choices label {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0;
    min-height: 6.3rem; padding: 3.2rem .3rem .75rem; cursor: pointer; text-align: center;
    border-radius: 1.6rem 1.6rem 1rem 1rem; border: 2px solid color-mix(in srgb, var(--inv-primary) 30%, transparent);
    background: color-mix(in srgb, var(--inv-primary) 9%, #fff); color: var(--inv-deep);
    font: 900 .86rem/1.2 var(--pd-body);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.putri-duyung-rsvp__card .inv-form__choices label::before {
    content: ''; position: absolute; top: .85rem; left: 50%; width: 2.1rem; height: 2.1rem; translate: -50% 0;
    background: currentColor;
    -webkit-mask: var(--pd-choice-icon) center / contain no-repeat; mask: var(--pd-choice-icon) center / contain no-repeat;
}
.putri-duyung-rsvp__card .inv-form__choices label:nth-of-type(1) { --pd-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5 9.8 18.8C5 15.5 3 12 3.6 8.6 6 5 9 3.5 12 3.5s6 1.5 8.4 5.1c.6 3.4-1.4 6.9-6.2 10.2Z'/%3E%3Cpath d='M12 20V4M12 20 7 5.4M12 20l5-14.6M12 20 4.2 9.5M12 20l7.8-10.5'/%3E%3C/svg%3E"); }
.putri-duyung-rsvp__card .inv-form__choices label:nth-of-type(2) { --pd-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M8.8 8.8l6.4 6.4M15.2 8.8l-6.4 6.4'/%3E%3C/svg%3E"); }
.putri-duyung-rsvp__card .inv-form__choices label:nth-of-type(3) { --pd-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 17c2 0 2-1.5 4-1.5s2 1.5 4 1.5 2-1.5 4-1.5 2 1.5 4 1.5 2-1.5 3-1.5'/%3E%3Cpath d='M9.6 6.5a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .8-1 1.5v.4M12 13.2h.01'/%3E%3C/svg%3E"); }
.putri-duyung-rsvp__card .inv-form__choices input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.putri-duyung-rsvp__card .inv-form__choices label:has(input:checked) {
    background: var(--inv-deep); border-color: var(--inv-deep); color: #fff; transform: translateY(-3px);
    box-shadow: 0 12px 20px -12px color-mix(in srgb, var(--inv-deep) 90%, transparent);
}
.putri-duyung-rsvp__card .inv-form__choices label:has(input:checked)::after {
    content: ''; position: absolute; top: -.4rem; right: -.3rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fff 0 15%, var(--inv-accent) 45%); box-shadow: 0 0 0 2px #fff;
}
.putri-duyung-rsvp__card .inv-form__choices label:has(input:focus-visible) { outline: 3px solid var(--inv-accent); outline-offset: 3px; }
.putri-duyung-rsvp__sent { display: grid; justify-items: center; gap: .3rem; margin-bottom: 1rem; text-align: center; }
.putri-duyung-rsvp__bubble { width: 7.5rem; height: auto; }
.putri-duyung-rsvp__bubble-ring { fill: color-mix(in srgb, var(--inv-primary) 14%, #fff); stroke: color-mix(in srgb, var(--inv-primary) 60%, var(--inv-deep)); stroke-width: 3; }
.putri-duyung-rsvp__bubble-shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.putri-duyung-rsvp__check { fill: none; stroke: var(--inv-deep); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.putri-duyung-rsvp__mini { fill: none; stroke: color-mix(in srgb, var(--inv-primary) 60%, var(--inv-deep)); stroke-width: 2; }
.putri-duyung-rsvp__spark { fill: var(--inv-accent); }
.putri-duyung-rsvp__thanks { font: 400 1.45rem/1.35 var(--pd-display); color: var(--inv-deep); }
.putri-duyung-rsvp__line { font-weight: 700; color: var(--pd-ink-soft); }
html.inv-anim .putri-duyung-rsvp__sent .putri-duyung-rsvp__bubble { animation: putri-duyung-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .putri-duyung-rsvp__sent .putri-duyung-rsvp__check { stroke-dasharray: 1; animation: putri-duyung-check .5s .35s ease-out both; }
html.inv-anim .putri-duyung-rsvp__sent .putri-duyung-rsvp__mini { animation: putri-duyung-bob 2.6s ease-in-out infinite; }
@keyframes putri-duyung-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes putri-duyung-check { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* wishes: messages in a bottle */
.putri-duyung-bottle { position: relative; width: 11rem; margin: -.4rem auto .3rem; }
.putri-duyung-bottle__art { display: block; width: 100%; height: auto; }
.putri-duyung-bottle__glass-group { transform-box: view-box; transform-origin: 75px 50px; rotate: -10deg; }
.putri-duyung-bottle__glass { fill: color-mix(in srgb, var(--inv-primary) 35%, rgb(255 255 255 / .2)); stroke: rgb(255 255 255 / .75); stroke-width: 2; }
.putri-duyung-bottle__cork { fill: #b98653; stroke: #8a5d33; stroke-width: 1.2; }
.putri-duyung-bottle__note { fill: var(--inv-background); stroke: color-mix(in srgb, #c9a271 70%, var(--inv-deep)); stroke-width: 1; }
.putri-duyung-bottle__ribbon { stroke: var(--inv-accent); stroke-width: 3; }
.putri-duyung-bottle__shine { stroke: rgb(255 255 255 / .8); stroke-width: 2.4; stroke-linecap: round; }
.putri-duyung-bottle__wave { display: block; width: 100%; height: 1rem; margin-top: -1.6rem; fill: color-mix(in srgb, var(--inv-primary) 45%, transparent); }
html.inv-anim .putri-duyung-bottle__art { animation: putri-duyung-float 3.8s ease-in-out infinite; }
@keyframes putri-duyung-float { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -6px; rotate: 3deg; } }
html.inv-anim .putri-duyung-bottle.is-sailing .putri-duyung-bottle__art { animation: putri-duyung-sail 2.4s cubic-bezier(.5, 0, .5, 1) both; }
@keyframes putri-duyung-sail {
    0% { translate: 0 0; opacity: 1; }
    45% { translate: 9rem -3.5rem; rotate: 14deg; opacity: 0; }
    55% { translate: -9rem 0; rotate: -6deg; opacity: 0; }
    100% { translate: 0 0; rotate: -2deg; opacity: 1; }
}
.putri-duyung-wishes__intro { max-width: 20rem; margin: 0 auto 1.3rem; font-size: .95rem; color: var(--pd-on-deep-soft); }
.putri-duyung-wishes .inv-wishes { --inv-wishes-height: 24rem; }
.putri-duyung-wishes .inv-form {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 1.5rem 1.2rem 1.3rem;
    border-radius: .5rem; color: var(--inv-text);
    background:
        repeating-linear-gradient(180deg, transparent 0 1.7rem, color-mix(in srgb, #c9a271 18%, transparent) 1.7rem calc(1.7rem + 1px)),
        var(--inv-background);
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / .7);
}
/* the rolled ends of the parchment */
.putri-duyung-wishes .inv-form::before, .putri-duyung-wishes .inv-form::after {
    content: ''; position: absolute; left: -.5rem; right: -.5rem; height: 1rem; border-radius: 999px;
    background: linear-gradient(180deg, color-mix(in srgb, #c9a271 55%, var(--inv-background)), var(--inv-background) 45%, color-mix(in srgb, #c9a271 70%, var(--inv-background)));
    box-shadow: 0 3px 6px -3px rgb(0 0 0 / .4);
}
.putri-duyung-wishes .inv-form::before { top: -.5rem; }
.putri-duyung-wishes .inv-form::after { bottom: -.5rem; }
.putri-duyung-wishes .inv-wishes__list { max-width: 22rem; margin: 2rem auto 0; padding: .6rem .7rem .6rem .4rem; gap: 1rem; }
.putri-duyung-wishes .inv-wishes__empty { color: var(--pd-on-deep-soft); opacity: 1; text-align: center; }
.putri-duyung-wishes .inv-wish {
    position: relative; padding: 1rem 1rem .85rem 1.1rem; border-radius: .35rem; color: var(--inv-text);
    background: var(--inv-background); rotate: -.8deg; box-shadow: 0 10px 18px -12px rgb(0 0 0 / .7);
}
.putri-duyung-wishes .inv-wish:nth-child(even) { rotate: .8deg; }
.putri-duyung-wishes .inv-wish::before {
    content: ''; position: absolute; left: -.25rem; right: -.25rem; top: -.35rem; height: .7rem; border-radius: 999px;
    background: linear-gradient(180deg, color-mix(in srgb, #c9a271 55%, var(--inv-background)), var(--inv-background) 50%, color-mix(in srgb, #c9a271 70%, var(--inv-background)));
}
.putri-duyung-wishes .inv-wish__name { font: 900 .98rem/1.35 var(--pd-body); color: var(--inv-deep); }
.putri-duyung-wishes .inv-wish__message { font-weight: 600; }
.putri-duyung-wishes .inv-wish__time { opacity: 1; color: var(--pd-ink-soft); font-weight: 700; }
.putri-duyung-wishes .inv-wish__reply { border-left-color: var(--inv-accent); background: color-mix(in srgb, var(--inv-accent) 14%, transparent); }
.putri-duyung-wishes .inv-wishes__list { scrollbar-color: color-mix(in srgb, var(--inv-pearl) 45%, transparent) transparent; }
.putri-duyung-wishes .inv-wishes__more { width: auto; }
.putri-duyung-wishes .inv-wishes__pager { color: var(--pd-on-deep); }

/* ---------- gift: the treasure clam ---------- */

.putri-duyung-clam {
    display: grid; justify-items: center; gap: .2rem; width: min(15rem, 72%); margin: 0 auto .8rem; padding: 0;
    border: 0; background: none; color: var(--pd-on-deep-soft); cursor: pointer; font: 800 .8rem/1.3 var(--pd-body);
}
.putri-duyung-clam:focus-visible { outline: 3px solid var(--inv-accent); outline-offset: 4px; border-radius: 1rem; }
.putri-duyung-clam__art { width: 100%; height: auto; }
.putri-duyung-clam__glow { fill: color-mix(in srgb, var(--inv-accent) 40%, #fff); filter: blur(10px); opacity: 0; transition: opacity .6s ease .2s; }
.putri-duyung-clam__bowl { fill: color-mix(in srgb, var(--inv-accent) 65%, var(--inv-pearl)); stroke: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-deep)); stroke-width: 2; stroke-linejoin: round; }
.putri-duyung-clam__lid-shell { fill: var(--inv-accent); stroke: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-deep)); stroke-width: 2; stroke-linejoin: round; }
.putri-duyung-clam__ribs { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 2.4; stroke-linecap: round; }
.putri-duyung-clam__pearl { fill: url(#putri-duyung-pearl-shine); transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .15s; transform: scale(.6); }
.putri-duyung-clam__pearl-shine { fill: #fff; opacity: .85; }
.putri-duyung-clam__lid { transform-box: view-box; transform-origin: 18px 92px; transition: transform .7s cubic-bezier(.34, 1.4, .64, 1); }
.putri-duyung-clam.is-open .putri-duyung-clam__lid { transform: rotate(-34deg); }
.putri-duyung-clam.is-open .putri-duyung-clam__glow { opacity: .9; }
.putri-duyung-clam.is-open .putri-duyung-clam__pearl { transform: scale(1); }
.putri-duyung-gift__intro { max-width: 20rem; margin: 0 auto 1.2rem; font-size: .95rem; color: var(--pd-on-deep-soft); }
.putri-duyung-gift .inv-gift { display: grid; gap: .8rem; max-width: 23rem; margin: 0 auto; text-align: center; }
.putri-duyung-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .7rem; }
.putri-duyung-gift .inv-gift__account {
    display: grid; justify-items: center; align-content: start; gap: .3rem; margin: 0; padding: 1rem .75rem;
    border-radius: 1.4rem 1.4rem 1rem 1rem; color: var(--inv-text);
    background: linear-gradient(170deg, var(--inv-pearl) 55%, color-mix(in srgb, var(--inv-accent) 22%, var(--inv-pearl)));
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--inv-accent) 55%, transparent), 0 16px 26px -16px rgb(0 0 0 / .7);
}
.putri-duyung-gift .inv-gift__account + .inv-gift__account { margin-top: 0; }
.putri-duyung-gift .inv-gift__bank { font: 900 .95rem/1.3 var(--pd-body); color: var(--inv-deep); min-height: 2.25rem; display: grid; place-items: center; }
.putri-duyung-gift .inv-gift__number { font: 900 1.05rem/1.3 var(--pd-body); letter-spacing: .03em; color: var(--inv-deep); overflow-wrap: anywhere; }
.putri-duyung-gift .inv-gift__holder { font-size: .86rem; font-weight: 700; color: var(--pd-ink-soft); }
.putri-duyung-gift .inv-gift__account .inv-button { width: 100%; min-height: 2.75rem; margin-top: .35rem; padding: .45rem .7rem; font-size: .86rem; }
.putri-duyung-gift .inv-gift__address p:not(.inv-gift__bank):not(.inv-gift__holder) { font-weight: 700; font-size: .94rem; }
.putri-duyung-gift .inv-gift__address .inv-button { width: auto; padding-inline: 1.3rem; }

/* ---------- wishlist: treasure chests ---------- */

.putri-duyung-wishlist__intro { margin: -.6rem 0 1.1rem; font-size: .92rem; color: var(--pd-on-deep-soft); }
.putri-duyung-wishlist__list { display: grid; gap: .75rem; max-width: 22rem; margin: 0 auto; text-align: left; }
.putri-duyung-wishlist__item { border-radius: 1.2rem; background: var(--inv-pearl); color: var(--inv-text); box-shadow: 0 14px 24px -16px rgb(0 0 0 / .7); }
.putri-duyung-wishlist__head {
    display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 3.6rem; padding: .7rem .95rem;
    border: 0; border-radius: 1.2rem; background: none; color: inherit; cursor: pointer; text-align: left; font: inherit;
}
.putri-duyung-wishlist__head:focus-visible { outline: 3px solid var(--inv-accent); outline-offset: 2px; }
.putri-duyung-chest { flex: none; width: 2.8rem; height: 2.6rem; }
.putri-duyung-chest__base, .putri-duyung-chest__lid-shape { fill: color-mix(in srgb, var(--inv-accent) 35%, #9a6234); stroke: #6d4421; stroke-width: 1.4; stroke-linejoin: round; }
.putri-duyung-chest__band { fill: none; stroke: #e2b24a; stroke-width: 2.6; }
.putri-duyung-chest__lock { fill: #e2b24a; }
.putri-duyung-chest__glow { fill: none; stroke: #f2c95a; stroke-width: 2.2; stroke-linecap: round; opacity: 0; transition: opacity .3s ease .15s; }
.putri-duyung-chest__lid { transform-box: view-box; transform-origin: 6px 22px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.putri-duyung-wishlist__item.is-open .putri-duyung-chest__lid { transform: rotate(-24deg); }
.putri-duyung-wishlist__item.is-open .putri-duyung-chest__glow { opacity: 1; }
.putri-duyung-wishlist__label { display: grid; flex: 1; min-width: 0; }
.putri-duyung-wishlist__number { font: 900 .68rem/1.3 var(--pd-body); letter-spacing: .14em; text-transform: uppercase; color: var(--pd-ink-soft); }
.putri-duyung-wishlist__name { font: 900 1rem/1.35 var(--pd-body); color: var(--inv-deep); }
.putri-duyung-wishlist__toggle { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: color-mix(in srgb, var(--inv-primary) 16%, #fff); color: var(--inv-deep); transition: transform .3s ease; }
.putri-duyung-wishlist__item.is-open .putri-duyung-wishlist__toggle { transform: rotate(180deg); }
.putri-duyung-wishlist__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.putri-duyung-wishlist__item.is-closed .putri-duyung-wishlist__body { grid-template-rows: 0fr; }
.putri-duyung-wishlist__inner { display: grid; gap: .6rem; justify-items: start; min-height: 0; overflow: hidden; padding: 0 1rem; }
.putri-duyung-wishlist__inner > :first-child { margin-top: .1rem; }
.putri-duyung-wishlist__inner > :last-child { margin-bottom: 1rem; }
.putri-duyung-wishlist__photo { width: 100%; max-height: 12rem; object-fit: cover; border-radius: .9rem; }
.putri-duyung-wishlist__note { font-weight: 700; color: var(--pd-ink-soft); }

/* ---------- co-hosts, contacts, protocol, vendors ---------- */

.putri-duyung-cohosts__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; max-width: 22rem; margin: 0 auto; }
.putri-duyung-cohosts__list li {
    padding: .6rem 1.15rem; border-radius: 999px; color: var(--pd-on-deep); font: 800 .95rem/1.3 var(--pd-body);
    position: relative; background: rgb(255 255 255 / .1);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45), inset -4px -6px 10px rgb(255 255 255 / .06);
}
/* the bubble's shine sits on the rim, never over the name */
.putri-duyung-cohosts__list li::before { content: ''; position: absolute; top: .22rem; left: .55rem; width: .7rem; height: .28rem; border-radius: 50%; background: rgb(255 255 255 / .65); rotate: -18deg; }
html.inv-anim .putri-duyung-cohosts__list li { animation: putri-duyung-bob 4s ease-in-out infinite; animation-delay: var(--pd-bob, 0s); }

.putri-duyung-contacts__list { display: grid; gap: .8rem; max-width: 22rem; margin: 0 auto; }
.putri-duyung-contact {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .9rem; align-items: center; padding: 1rem 1.1rem;
    border-radius: 1.6rem 1rem 1.6rem 1rem; text-align: left; color: var(--pd-on-deep);
    background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22);
}
.putri-duyung-contact__avatar { position: relative; display: grid; place-items: center; width: 3.4rem; height: 2.9rem; }
.putri-duyung-contact__avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; --pd-shell: var(--inv-accent); --pd-rib: rgb(255 255 255 / .45); }
.putri-duyung-contact__avatar span { position: relative; margin-top: -.1rem; font: 400 1.15rem/1 var(--pd-display); color: var(--pd-button-ink); }
.putri-duyung-contact__name { font: 900 1.02rem/1.35 var(--pd-body); }
.putri-duyung-contact__role { font-size: .88rem; font-weight: 700; color: var(--pd-on-deep-soft); }
.putri-duyung-contact__button, .putri-duyung-contact__phone { grid-column: 1 / -1; }
.putri-duyung-contact__phone { font-weight: 800; }

.putri-duyung-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.putri-duyung-protocol__list li { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); font-weight: 800; font-size: .9rem; }
.putri-duyung-protocol__list .putri-duyung-icon { color: var(--inv-accent); }
.putri-duyung-protocol__note { margin-top: .9rem; color: var(--pd-on-deep-soft); font-weight: 700; }

.putri-duyung-vendors__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; max-width: 22rem; margin: 0 auto; }
.putri-duyung-vendor {
    display: grid; align-content: start; gap: .15rem; padding: .85rem .8rem; color: var(--pd-on-deep);
    border-radius: 1.4rem .8rem 1.6rem 1rem;
    background: color-mix(in srgb, var(--inv-primary) 24%, transparent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
}
.putri-duyung-vendor:nth-child(even) { border-radius: .9rem 1.6rem 1rem 1.5rem; background: rgb(255 255 255 / .1); }
.putri-duyung-vendor__role { font: 900 .66rem/1.3 var(--pd-body); letter-spacing: .14em; text-transform: uppercase; color: var(--inv-accent); }
.putri-duyung-vendor:nth-child(even) .putri-duyung-vendor__role { color: var(--pd-on-deep-soft); }
.putri-duyung-vendor__name { font: 900 .98rem/1.3 var(--pd-body); overflow-wrap: anywhere; }
.putri-duyung-vendor__link { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; color: var(--pd-on-deep-soft); font-size: .82rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.putri-duyung-vendor__link:focus-visible { outline: 2px solid var(--inv-accent); outline-offset: 2px; }

/* ---------- closing ---------- */

.putri-duyung-closing { padding-bottom: .4rem; }
.putri-duyung-closing__art { position: relative; width: min(100%, 17rem); margin: 0 auto 1.4rem; }
.putri-duyung-closing__light {
    position: absolute; left: 50%; top: -3rem; width: 150%; height: 140%; translate: -50% 0;
    background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgb(255 255 255 / .16) 14deg, rgb(255 255 255 / .05) 26deg, transparent 40deg);
    pointer-events: none;
}
.putri-duyung-shellframe--closing { aspect-ratio: 150 / 124; }
.putri-duyung-closing__message { max-width: 21rem; margin: 0 auto; font: 700 1.04rem/1.65 var(--pd-body); color: var(--pd-on-deep); }
.putri-duyung-closing__with { margin-top: 1.3rem; font-size: .9rem; font-weight: 700; color: var(--pd-on-deep-soft); }
.putri-duyung-closing__signature { margin-top: .2rem; font: 400 1.8rem/1.4 var(--pd-display); color: #fff; text-wrap: balance; }

/* ---------- menu, music, ambient, branding ---------- */

.putri-duyung-body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-deep) 88%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-pearl) 82%, transparent);
    --inv-nav-active: var(--inv-accent);
    border-color: rgb(255 255 255 / .18);
}
.putri-duyung-body .inv-nav__item.is-active { color: var(--pd-button-ink); }
.putri-duyung-body .inv-music__button { background: var(--inv-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 6px 14px rgb(0 0 0 / .3); }
.putri-duyung-body .inv-autoscroll { color: var(--inv-deep); border-color: color-mix(in srgb, var(--inv-deep) 35%, transparent); }
.putri-duyung-body .inv-autoscroll--running { background: var(--inv-deep); color: #fff; }
.putri-duyung-body .inv-ambient { --inv-ambient-1: #ffffff; --inv-ambient-2: color-mix(in srgb, var(--inv-primary) 65%, #fff); }
.putri-duyung-body .putri-duyung-branding { opacity: 1; color: color-mix(in srgb, var(--inv-text) 85%, var(--pd-sand)); font-weight: 700; padding-top: .4rem; }
body.putri-duyung-body:has(.inv-nav) .putri-duyung-branding { padding-bottom: 2.8rem; }
.putri-duyung-body .inv-checkin { margin-top: 0; }

/* the depth gauge: a pearl slides down a thin line on the left while the guest scrolls */
.putri-duyung-gauge { display: none; }
@supports (animation-timeline: scroll()) {
    html.inv-anim.inv-opened .putri-duyung-gauge {
        position: fixed; z-index: 30; top: 24vh; height: 44vh; width: 3px; border-radius: 3px; display: block;
        left: max(.35rem, calc(50% - var(--pd-w) / 2 + .35rem));
        background: linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 45%, #fff), var(--inv-deep));
        opacity: .65; pointer-events: none;
    }
    .putri-duyung-gauge__pearl {
        position: absolute; left: 50%; top: 0; width: .75rem; height: .75rem; margin: -.375rem 0 0 -.375rem; border-radius: 50%;
        background: radial-gradient(circle at 34% 28%, #fff 0 20%, var(--inv-pearl) 50%, color-mix(in srgb, var(--inv-pearl) 65%, var(--inv-primary)));
        box-shadow: 0 0 0 2px var(--inv-accent);
        animation: putri-duyung-depth linear both; animation-timeline: scroll(root);
    }
    @keyframes putri-duyung-depth { from { top: 0; } to { top: 100%; } }
}

/* ---------- reveal ("swim") and scroll-drawn details ---------- */

html.inv-anim [data-reveal="swim"] { transform: translateY(34px) scale(.97); filter: blur(5px); transition-property: opacity, transform, filter; }
html.inv-anim [data-reveal="swim"].is-revealed { transform: none; filter: none; }

@supports (animation-timeline: view()) {
    html.inv-anim .putri-duyung-heading__wave { stroke-dasharray: 1; animation: putri-duyung-draw linear both; animation-timeline: view(); animation-range: entry 10% cover 32%; }
    html.inv-anim :is(.putri-duyung-rundown__list, .putri-duyung-story__list)::before { animation: putri-duyung-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    html.inv-anim .putri-duyung-reef__fish { animation: putri-duyung-swim-by linear both; animation-timeline: view(); }
    @keyframes putri-duyung-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes putri-duyung-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    @keyframes putri-duyung-swim-by { from { translate: 3rem 0; } to { translate: -14rem 1rem; } }
}

@media (prefers-reduced-motion: reduce) {
    .putri-duyung-body *, .putri-duyung-body *::before, .putri-duyung-body *::after { animation: none !important; transition: none !important; }
}
