/* =============================================================================
   Public surface stylesheet — guest-facing pages only.
   Bootstrap (grid + utilities ONLY) + the bespoke "Liquid Glass" design system.
   The admin (Filament) uses Tailwind separately; there is no overlap.
   ============================================================================= */

@import "bootstrap/dist/css/bootstrap-grid.css";
@import "bootstrap/dist/css/bootstrap-utilities.css";

/* -----------------------------------------------------------------------------
   Design tokens. Adaptive light/dark via prefers-color-scheme.
   Low-saturation, romantic palette with a single confident accent (warm gold).
   ----------------------------------------------------------------------------- */
:root {
    color-scheme: light dark;

    --lg-bg: #f3efe8;
    --lg-mesh-1: #e7d8d2;   /* dusty rose   */
    --lg-mesh-2: #d9e3dc;   /* soft sage    */
    --lg-mesh-3: #efe2c8;   /* warm sand    */

    --lg-ink: #2a2521;
    --lg-ink-soft: #6f675d;
    --lg-ink-faint: #9a9186;

    --lg-accent: #b0815a;          /* warm muted gold — the one accent */
    --lg-accent-strong: #97653f;
    --lg-accent-ink: #fffaf3;

    /* Glass surfaces */
    --lg-glass: rgba(255, 253, 250, 0.55);
    --lg-glass-strong: rgba(255, 253, 250, 0.74);
    --lg-glass-edge: rgba(255, 255, 255, 0.65);
    --lg-glass-edge-soft: rgba(255, 255, 255, 0.28);
    --lg-glass-line: rgba(120, 100, 80, 0.14);
    --lg-shadow: 0 30px 70px -34px rgba(58, 44, 30, 0.42);
    --lg-shadow-sm: 0 12px 30px -18px rgba(58, 44, 30, 0.40);
    --lg-blur: 30px;
    --lg-saturate: 180%;

    /* Geometry */
    --lg-radius-xl: 34px;
    --lg-radius: 26px;
    --lg-radius-sm: 16px;

    /* Type */
    --lg-display: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
    --lg-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

    /* Motion */
    --lg-spring: cubic-bezier(.2, .8, .2, 1);
    --lg-ease: cubic-bezier(.4, 0, .2, 1);

    --lg-maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --lg-bg: #12100e;
        --lg-mesh-1: #34222b;
        --lg-mesh-2: #16282a;
        --lg-mesh-3: #2f2516;

        --lg-ink: #f2ece2;
        --lg-ink-soft: #b8ac9c;
        --lg-ink-faint: #837767;

        --lg-accent: #d8a878;
        --lg-accent-strong: #e7bd92;
        --lg-accent-ink: #1b140d;

        --lg-glass: rgba(30, 26, 22, 0.52);
        --lg-glass-strong: rgba(34, 29, 24, 0.72);
        --lg-glass-edge: rgba(255, 255, 255, 0.16);
        --lg-glass-edge-soft: rgba(255, 255, 255, 0.06);
        --lg-glass-line: rgba(255, 240, 220, 0.10);
        --lg-shadow: 0 34px 80px -40px rgba(0, 0, 0, 0.78);
        --lg-shadow-sm: 0 14px 34px -20px rgba(0, 0, 0, 0.72);
    }
}

/* -----------------------------------------------------------------------------
   Reset & base (bootstrap-grid/utilities do not ship a reboot)
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100svh;
    font-family: var(--lg-body);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    line-height: 1.65;
    color: var(--lg-ink);
    background-color: var(--lg-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* The gradient mesh behind everything — gives the glass something to refract. */
body::before {
    content: "";
    position: fixed;
    inset: -20vmax;
    z-index: -3;
    background:
        radial-gradient(38vmax 38vmax at 12% 18%, var(--lg-mesh-1) 0%, transparent 60%),
        radial-gradient(42vmax 42vmax at 88% 12%, var(--lg-mesh-3) 0%, transparent 62%),
        radial-gradient(46vmax 46vmax at 72% 88%, var(--lg-mesh-2) 0%, transparent 64%),
        radial-gradient(40vmax 40vmax at 22% 86%, var(--lg-mesh-3) 0%, transparent 60%);
    filter: saturate(108%);
    animation: lg-drift 28s var(--lg-ease) infinite alternate;
}

/* Linear gradient mode — a simple static diagonal wash from the palette. */
body[data-gradient="linear"]::before {
    background: linear-gradient(135deg, var(--lg-bg) 0%, var(--lg-mesh-1) 55%, var(--lg-mesh-2) 100%);
    animation: none;
}

/* A whisper of grain so large glass fields never look flat. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

@keyframes lg-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(0, -3%, 0) scale(1.06); }
}

/* -----------------------------------------------------------------------------
   Typography
   ----------------------------------------------------------------------------- */
.lg-display {
    font-family: var(--lg-display);
    font-weight: 400;
    font-optical-sizing: auto;
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--lg-ink);
    text-wrap: balance;
}

.lg-eyebrow {
    font-family: var(--lg-body);
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lg-accent);
    margin: 0;
    padding-left: 0.42em;
}

.lg-lede {
    color: var(--lg-ink-soft);
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    line-height: 1.7;
    max-width: 46ch;
}

.lg-host {
    margin: 1.1rem 0 0;
    font-family: var(--lg-display);
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
    font-style: italic;
    color: var(--lg-ink-soft);
    line-height: 1.3;
}

.lg-host__label {
    display: block;
    font-family: var(--lg-body);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--lg-accent);
    margin-bottom: 0.4rem;
}

/* The "&" sitting on its own line between two hosts. */
.lg-host__amp {
    font-style: normal;
    font-size: 0.82em;
    line-height: 1;
    color: var(--lg-accent);
    margin: 0.08em 0;
}

.lg-section-title {
    font-family: var(--lg-display);
    font-weight: 400;
    font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
}

a {
    color: var(--lg-accent-strong);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

/* -----------------------------------------------------------------------------
   Glass primitives
   ----------------------------------------------------------------------------- */
.lg-glass,
.lg-card,
.lg-panel {
    position: relative;
    background: var(--lg-glass);
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
    backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
    border: 1px solid var(--lg-glass-line);
    border-radius: var(--lg-radius);
    box-shadow:
        inset 1px 1px 0 var(--lg-glass-edge),
        inset -1px -1px 0 var(--lg-glass-edge-soft),
        var(--lg-shadow-sm);
}

/* Specular sheen sweeping the top-left corner. */
.lg-glass::before,
.lg-card::before,
.lg-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, var(--lg-glass-edge) 0%, transparent 36%);
    opacity: 0.5;
}

.lg-panel {
    border-radius: var(--lg-radius-xl);
    box-shadow:
        inset 1px 1px 0 var(--lg-glass-edge),
        inset -1px -1px 0 var(--lg-glass-edge-soft),
        var(--lg-shadow);
}

.lg-card {
    border-radius: var(--lg-radius);
    transition: transform 0.5s var(--lg-spring), box-shadow 0.5s var(--lg-spring);
    will-change: transform;
}

.lg-card-interactive:hover {
    transform: translateY(-6px);
    box-shadow:
        inset 1px 1px 0 var(--lg-glass-edge),
        inset -1px -1px 0 var(--lg-glass-edge-soft),
        0 40px 80px -36px rgba(58, 44, 30, 0.5);
}

/* -----------------------------------------------------------------------------
   Navigation
   ----------------------------------------------------------------------------- */
.lg-nav {
    position: sticky;
    top: clamp(0.5rem, 2vw, 1.1rem);
    z-index: 50;
    margin: 0 auto;
    max-width: var(--lg-maxw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.8rem 0.7rem 1.4rem;
    background: var(--lg-glass-strong);
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
    backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
    border: 1px solid var(--lg-glass-line);
    border-radius: 100px;
    box-shadow:
        inset 1px 1px 0 var(--lg-glass-edge),
        var(--lg-shadow-sm);
}

.lg-nav__brand {
    font-family: var(--lg-display);
    font-size: 1.18rem;
    letter-spacing: -0.01em;
    color: var(--lg-ink);
    text-decoration: none;
    white-space: nowrap;
}

.lg-nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lg-nav__link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--lg-ink-soft);
    text-decoration: none;
    padding: 0.5rem 0.95rem;
    border-radius: 100px;
    transition: color 0.3s var(--lg-ease), background-color 0.3s var(--lg-ease);
}

.lg-nav__link:hover,
.lg-nav__link[aria-current="page"] {
    color: var(--lg-ink);
    background: var(--lg-glass-edge-soft);
}

.lg-langtoggle {
    align-items: center;
    gap: 0.1rem;
    margin-left: 0.25rem;
    padding: 0.2rem;
    border-radius: 100px;
    background: var(--lg-glass-edge-soft);
    border: 1px solid var(--lg-glass-line);
}

.lg-langtoggle__opt {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--lg-ink-faint);
    text-decoration: none;
    padding: 0.32rem 0.6rem;
    border-radius: 100px;
    transition: color 0.3s var(--lg-ease), background-color 0.3s var(--lg-ease);
}

.lg-langtoggle__opt.is-active {
    color: var(--lg-accent-ink);
    background: var(--lg-accent);
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.lg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--lg-body);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.95rem 1.6rem;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--lg-spring), box-shadow 0.4s var(--lg-spring), background-color 0.3s var(--lg-ease);
}

.lg-btn-primary {
    color: var(--lg-accent-ink);
    background: linear-gradient(180deg, var(--lg-accent) 0%, var(--lg-accent-strong) 100%);
    box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--lg-accent) 70%, transparent);
}

.lg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--lg-accent) 78%, transparent);
}

.lg-btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s var(--lg-ease);
    pointer-events: none;
}

.lg-btn-primary:hover::after {
    left: 140%;
}

.lg-btn:active {
    transform: translateY(0) scale(0.98);
}

.lg-btn-ghost {
    color: var(--lg-ink);
    background: var(--lg-glass-strong);
    -webkit-backdrop-filter: blur(14px) saturate(var(--lg-saturate));
    backdrop-filter: blur(14px) saturate(var(--lg-saturate));
    border-color: var(--lg-glass-line);
    box-shadow: inset 1px 1px 0 var(--lg-glass-edge), var(--lg-shadow-sm);
}

.lg-btn-ghost:hover {
    transform: translateY(-2px);
}

.lg-btn:disabled,
.lg-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* -----------------------------------------------------------------------------
   Badges & chips
   ----------------------------------------------------------------------------- */
.lg-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.34rem 0.72rem;
    border-radius: 100px;
    color: var(--lg-ink-soft);
    background: var(--lg-glass-edge-soft);
    border: 1px solid var(--lg-glass-line);
}

.lg-chip-accent {
    color: var(--lg-accent-strong);
    background: color-mix(in srgb, var(--lg-accent) 14%, transparent);
    border-color: color-mix(in srgb, var(--lg-accent) 24%, transparent);
}

.lg-chip-muted {
    color: var(--lg-ink-faint);
}

.lg-contact-groups {
    display: grid;
    gap: clamp(0.7rem, 2vw, 1rem);
}

.lg-contact-heading {
    margin-bottom: clamp(1rem, 3vw, 1.4rem);
}

.lg-contact-group {
    padding: clamp(0.8rem, 2.5vw, 1.1rem);
    border: 1px solid var(--lg-glass-line);
    border-radius: calc(var(--lg-radius) * 0.72);
    background: var(--lg-glass-soft);
    box-shadow: inset 1px 1px 0 var(--lg-glass-edge);
}

.lg-contact-group__label {
    display: flex;
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    margin: 0 auto 0.4rem;
    line-height: 1.2;
    text-align: center;
}

.lg-contact-group__people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg-contact-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: clamp(0.65rem, 2vw, 0.9rem) clamp(0.35rem, 1.5vw, 0.75rem);
}

.lg-contact-card:nth-child(even) {
    border-inline-start: 1px solid var(--lg-glass-line);
}

.lg-contact-card:nth-child(n + 3) {
    border-top: 1px solid var(--lg-glass-line);
}

.lg-contact-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-inline-start: 0;
}

.lg-contact-card__name {
    width: 100%;
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--lg-ink);
    font-family: var(--lg-display);
    font-size: clamp(1rem, 3.6vw, 1.25rem);
    line-height: 1.15;
    text-align: center;
}

.lg-contact-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.lg-contact-action {
    display: inline-grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid var(--lg-glass-line);
    border-radius: 50%;
    color: var(--lg-accent-strong);
    background: var(--lg-glass-edge-soft);
    box-shadow: inset 1px 1px 0 var(--lg-glass-edge);
    transition: transform 0.28s var(--lg-spring), color 0.28s var(--lg-ease), background-color 0.28s var(--lg-ease);
}

.lg-contact-action:hover {
    color: var(--lg-accent-ink);
    background: var(--lg-accent);
    transform: translateY(-2px);
}

.lg-contact-action svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* -----------------------------------------------------------------------------
   Segmented control (RSVP attendance, etc.)
   ----------------------------------------------------------------------------- */
.lg-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.35rem;
    background: var(--lg-glass-edge-soft);
    border: 1px solid var(--lg-glass-line);
    border-radius: 100px;
}

.lg-segment__opt {
    cursor: pointer;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lg-ink-soft);
    transition: color 0.3s var(--lg-ease), background-color 0.3s var(--lg-ease), box-shadow 0.3s var(--lg-ease);
}

.lg-segment__opt.is-active {
    color: var(--lg-accent-ink);
    background: linear-gradient(180deg, var(--lg-accent), var(--lg-accent-strong));
    box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--lg-accent) 70%, transparent);
}

.lg-segment__opt:has(input:focus-visible) {
    outline: 2px solid var(--lg-accent);
    outline-offset: 2px;
}

/* -----------------------------------------------------------------------------
   Layout helpers
   ----------------------------------------------------------------------------- */
.lg-shell {
    width: 100%;
    max-width: var(--lg-maxw);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.lg-section {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

/* -----------------------------------------------------------------------------
   Countdown
   ----------------------------------------------------------------------------- */
.lg-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.5rem, 1.6vw, 0.9rem);
}

.lg-count {
    text-align: center;
    padding: clamp(0.8rem, 2vw, 1.25rem) 0.4rem;
    border-radius: var(--lg-radius-sm);
    background: var(--lg-glass-edge-soft);
    border: 1px solid var(--lg-glass-line);
}

.lg-count__num {
    font-family: var(--lg-display);
    font-size: clamp(1.7rem, 1.1rem + 3vw, 2.9rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--lg-ink);
}

.lg-count__num.is-flip {
    animation: lg-count-flip 0.42s var(--lg-ease);
}

@keyframes lg-count-flip {
    0% { transform: translateY(-0.35em); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

.lg-count__label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--lg-ink-faint);
}

/* -----------------------------------------------------------------------------
   Gift registry — cards, progress, modal
   ----------------------------------------------------------------------------- */
.lg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: clamp(1rem, 2.4vw, 1.6rem);
}

.lg-gift {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.lg-gift__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.lg-gift__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--lg-spring);
}

.lg-card-interactive:hover .lg-gift__media img {
    transform: scale(1.04);
}

.lg-gift__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--lg-display);
    font-size: 3.4rem;
    color: color-mix(in srgb, var(--lg-accent) 55%, transparent);
    background:
        radial-gradient(80% 80% at 30% 20%, var(--lg-mesh-1), transparent 70%),
        radial-gradient(80% 80% at 75% 80%, var(--lg-mesh-3), transparent 70%);
}

.lg-gift__taken-tag {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
}

.lg-gift__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1;
}

.lg-gift__name {
    font-family: var(--lg-display);
    font-size: 1.32rem;
    line-height: 1.12;
    margin: 0;
}

.lg-gift__desc {
    color: var(--lg-ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lg-gift__price {
    font-weight: 700;
    color: var(--lg-ink);
}

.lg-gift__foot {
    margin-top: auto;
    padding-top: 0.6rem;
    display: grid;
    gap: 0.7rem;
}

.lg-gift--taken {
    opacity: 0.74;
}

.lg-gift--taken .lg-gift__media img {
    filter: grayscale(0.45);
}

.lg-progress {
    height: 6px;
    border-radius: 100px;
    background: var(--lg-glass-edge-soft);
    overflow: hidden;
}

.lg-progress__bar {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--lg-accent), var(--lg-accent-strong));
    transition: width 0.6s var(--lg-spring);
}

.lg-progress__bar--done {
    background: linear-gradient(90deg, #6f9e74, #4f7d5a);
}

.lg-remaining {
    font-size: 0.84rem;
    color: var(--lg-ink-soft);
}

/* Modal */
.lg-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(20, 15, 10, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: lg-fade 0.3s var(--lg-ease);
}

.lg-modal {
    width: 100%;
    max-width: 460px;
    padding: clamp(1.5rem, 4vw, 2.2rem);
    animation: lg-pop 0.45s var(--lg-spring);
}

@keyframes lg-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lg-pop {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .lg-modal,
    .lg-modal-backdrop {
        animation: none;
    }
}

/* Filter chips (registry) */
.lg-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lg-filter {
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    color: var(--lg-ink-soft);
    background: var(--lg-glass-edge-soft);
    border: 1px solid var(--lg-glass-line);
    transition: color 0.3s var(--lg-ease), background-color 0.3s var(--lg-ease);
}

.lg-filter.is-active {
    color: var(--lg-accent-ink);
    background: linear-gradient(180deg, var(--lg-accent), var(--lg-accent-strong));
}

/* Wishes wall — masonry columns */
.lg-masonry {
    columns: 3 280px;
    column-gap: clamp(1rem, 2.4vw, 1.6rem);
}

.lg-wish {
    break-inside: avoid;
    margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
    padding: 1.4rem 1.5rem;
}

.lg-wish__text {
    font-family: var(--lg-display);
    font-size: 1.12rem;
    line-height: 1.45;
    color: var(--lg-ink);
    margin: 0 0 1rem;
}

.lg-wish__from {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lg-accent-strong);
    font-weight: 600;
}

.lg-flash {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--lg-radius-sm);
    background: color-mix(in srgb, var(--lg-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--lg-accent) 28%, transparent);
    color: var(--lg-ink);
    font-size: 0.92rem;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.lg-footer {
    text-align: center;
    color: var(--lg-ink-faint);
    font-size: 0.86rem;
    padding-block: 3rem 2.5rem;
}

/* -----------------------------------------------------------------------------
   Forms (bespoke — no Bootstrap component styling)
   ----------------------------------------------------------------------------- */
.lg-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}

.lg-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--lg-ink-soft);
}

.lg-input,
.lg-textarea,
.lg-select {
    width: 100%;
    font-family: var(--lg-body);
    font-size: 1rem;
    color: var(--lg-ink);
    padding: 0.85rem 1.05rem;
    background: var(--lg-glass-strong);
    border: 1px solid var(--lg-glass-line);
    border-radius: var(--lg-radius-sm);
    box-shadow: inset 1px 1px 0 var(--lg-glass-edge-soft);
    transition: border-color 0.25s var(--lg-ease), box-shadow 0.25s var(--lg-ease);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lg-input::placeholder,
.lg-textarea::placeholder {
    color: var(--lg-ink-faint);
}

.lg-input:focus,
.lg-textarea:focus,
.lg-select:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--lg-accent) 55%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lg-accent) 16%, transparent);
}

.lg-textarea {
    resize: vertical;
    min-height: 7rem;
}

.lg-error {
    font-size: 0.82rem;
    color: #c0563b;
}

@media (prefers-color-scheme: dark) {
    .lg-error {
        color: #e89177;
    }
}

/* -----------------------------------------------------------------------------
   Accessibility & focus
   ----------------------------------------------------------------------------- */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 2px solid var(--lg-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.lg-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -----------------------------------------------------------------------------
   Motion: entrance reveals (staggered) — disabled for reduced-motion
   ----------------------------------------------------------------------------- */
.lg-reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: lg-reveal-in 1s var(--lg-spring) forwards;
}

@keyframes lg-reveal-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    body::before {
        animation: none;
    }

    .lg-reveal {
        opacity: 1;
        transform: none;
    }
}

/* -----------------------------------------------------------------------------
   Cover / intro overlay (home only)
   ----------------------------------------------------------------------------- */
.lg-cover {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
    background:
        radial-gradient(60vmax 60vmax at 50% 30%, var(--lg-mesh-1), transparent 70%),
        var(--lg-bg);
    transition: opacity 0.7s var(--lg-ease), visibility 0.7s var(--lg-ease);
}

.lg-cover.is-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lg-cover__inner {
    max-width: 32rem;
}

.lg-cover__eyebrow {
    font-family: var(--lg-body);
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lg-accent);
}

.lg-cover__names {
    font-family: var(--lg-display);
    font-size: clamp(2.4rem, 1.4rem + 6vw, 4rem);
    line-height: 1.05;
    margin: 1rem 0 0.4rem;
}

.lg-cover__date {
    color: var(--lg-ink-soft);
    margin-bottom: 2rem;
}

/* -----------------------------------------------------------------------------
   Cover reveals — selectable opening animations (Pillar 1).
   The overlay holds while the chosen choreography plays, then fades out.
   Colours track the active palette via the --lg-* custom properties.
   ----------------------------------------------------------------------------- */
.lg-cover__stage {
    position: relative;
    display: grid;
    place-items: center;
}

/* --- Classic: uses the base 0.7s opacity fade only (no overrides). --- */

/* --- Bloom (default): blur + zoom the card away, drift a few petals. --- */
.lg-cover--bloom.is-open {
    transition: opacity 0.9s var(--lg-ease), visibility 0.9s var(--lg-ease);
}

.lg-cover--bloom .lg-cover__inner {
    transition: transform 0.9s var(--lg-ease), opacity 0.9s var(--lg-ease);
}

.lg-cover--bloom.is-open .lg-cover__inner {
    transform: scale(1.18);
    opacity: 0;
}

.lg-cover__petal {
    position: absolute;
    top: -2rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 60% 0 60% 0;
    background: var(--lg-accent);
    opacity: 0;
    pointer-events: none;
}

.lg-cover__petal:nth-child(1) { left: 22%; }
.lg-cover__petal:nth-child(2) { left: 54%; }
.lg-cover__petal:nth-child(3) { left: 78%; }

.lg-cover--bloom.is-open .lg-cover__petal {
    animation: lg-cover-petal 1.1s var(--lg-ease) forwards;
}

.lg-cover--bloom.is-open .lg-cover__petal:nth-child(1) { animation-delay: 0.05s; }
.lg-cover--bloom.is-open .lg-cover__petal:nth-child(2) { animation-delay: 0.25s; }
.lg-cover--bloom.is-open .lg-cover__petal:nth-child(3) { animation-delay: 0.15s; }

@keyframes lg-cover-petal {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.9; }
    100% { transform: translateY(55vh) rotate(220deg); opacity: 0; }
}

/* --- Envelope: the card tucks into a pocket at its base; the flap unseals
   upward, then the card slides up and out. Graphics are pinned to the card's
   reserved bottom band so they never bisect the names regardless of card height. --- */
.lg-cover--envelope.is-open {
    transition: opacity 0.6s var(--lg-ease) 1s, visibility 0.6s var(--lg-ease) 1s;
}

.lg-cover--envelope .lg-cover__stage {
    perspective: 1000px;
}

.lg-cover--envelope .lg-cover__inner {
    position: relative;
    z-index: 2;
    width: 28rem;
    max-width: 88vw;
    background: var(--lg-bg);
    /* Extra bottom padding reserves the band the pocket and flap occupy. */
    padding: 1.4rem 1.4rem 6rem;
    border-radius: 0.75rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.8s var(--lg-ease) 0.45s;
}

/* Keep the envelope card compact so its pocket band stays on-screen. */
.lg-cover--envelope .lg-cover__names {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem);
    margin-top: 0.6rem;
}

.lg-cover--envelope .lg-cover__date {
    margin-bottom: 1.4rem;
}

.lg-cover--envelope.is-open .lg-cover__inner {
    transform: translateY(-2.5rem);
}

.lg-cover__env-body,
.lg-cover__env-flap {
    position: absolute;
    left: 50%;
    width: 28rem;
    max-width: 88vw;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Pocket: fills the reserved band, with a downward V at its top edge. */
.lg-cover__env-body {
    bottom: 0;
    height: 5.5rem;
    background: var(--lg-accent);
    border-radius: 0 0 0.75rem 0.75rem;
    z-index: 3;
    clip-path: polygon(0 0, 50% 42%, 100% 0, 100% 100%, 0 100%);
}

/* Flap: a downward triangle sealing the pocket, hinged at its top edge. */
.lg-cover__env-flap {
    bottom: 2.1rem;
    height: 3.7rem;
    background: var(--lg-mesh-1);
    transform-origin: top center;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 4;
    backface-visibility: hidden;
    transition: transform 0.6s var(--lg-ease);
}

.lg-cover--envelope.is-open .lg-cover__env-flap {
    transform: translateX(-50%) rotateX(168deg);
}

/* Curtains and doors are full-screen drapes that sit in front of the card; the
   invitation (and its tap target) must float above them, and the drapes must not
   swallow the tap that opens the cover. */
.lg-cover--curtains .lg-cover__stage,
.lg-cover--doors .lg-cover__stage {
    z-index: 6;
}

/* --- Curtains: two drapes slide apart. --- */
.lg-cover--curtains.is-open {
    transition: opacity 0.5s var(--lg-ease) 0.85s, visibility 0.5s var(--lg-ease) 0.85s;
}

.lg-cover__curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    z-index: 5;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 14px, rgba(255, 255, 255, 0.05) 14px 28px),
        linear-gradient(180deg, var(--lg-accent), var(--lg-mesh-1));
    transition: transform 0.9s var(--lg-ease);
}

.lg-cover__curtain--l { left: 0; }
.lg-cover__curtain--r { right: 0; }

.lg-cover--curtains.is-open .lg-cover__curtain--l { transform: translateX(-101%); }
.lg-cover--curtains.is-open .lg-cover__curtain--r { transform: translateX(101%); }

/* --- Doors: 3D double doors swing open. --- */
.lg-cover--doors { perspective: 1400px; }

.lg-cover--doors.is-open {
    transition: opacity 0.5s var(--lg-ease) 0.85s, visibility 0.5s var(--lg-ease) 0.85s;
}

.lg-cover__door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(180deg, var(--lg-mesh-1), var(--lg-bg));
    backface-visibility: hidden;
    transition: transform 1s var(--lg-ease);
}

.lg-cover__door::before {
    content: "";
    position: absolute;
    inset: 1.2rem;
    border: 1px solid var(--lg-accent);
    opacity: 0.5;
    border-radius: 0.3rem;
}

.lg-cover__door--l { left: 0; transform-origin: left center; }
.lg-cover__door--r { right: 0; transform-origin: right center; }

.lg-cover--doors.is-open .lg-cover__door--l { transform: rotateY(-105deg); }
.lg-cover--doors.is-open .lg-cover__door--r { transform: rotateY(105deg); }

/* -----------------------------------------------------------------------------
   Floating bottom nav (mobile only)
   ----------------------------------------------------------------------------- */
.lg-bottomnav {
    position: fixed;
    left: 50%;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    gap: 0.15rem;
    padding: 0.4rem;
    width: min(92vw, 26rem);
    justify-content: space-around;
    background: var(--lg-glass-strong);
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
    backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
    border: 1px solid var(--lg-glass-line);
    border-radius: 100px;
    box-shadow: inset 1px 1px 0 var(--lg-glass-edge), var(--lg-shadow-sm);
}

.lg-bottomnav__item {
    flex: 1;
    min-width: 2.75rem;
    min-height: 3rem;
    display: grid;
    place-items: center;
    align-items: center;
    padding: 0.625rem;
    border-radius: 100px;
    text-decoration: none;
    color: var(--lg-ink-faint);
    transition: color 0.3s var(--lg-ease), background-color 0.3s var(--lg-ease), transform 0.3s var(--lg-ease);
}

.lg-bottomnav__item svg {
    width: 1.45rem;
    height: 1.45rem;
}

.lg-bottomnav__item:hover {
    color: var(--lg-ink);
}

.lg-bottomnav__item:focus-visible {
    outline: 2px solid var(--lg-accent);
    outline-offset: 2px;
}

.lg-bottomnav__item[aria-current="page"] {
    color: var(--lg-accent-ink);
    background: linear-gradient(180deg, var(--lg-accent), var(--lg-accent-strong));
    transform: translateY(-0.08rem);
}

/* -----------------------------------------------------------------------------
   Music toggle (floating)
   ----------------------------------------------------------------------------- */
.lg-music {
    position: fixed;
    right: calc(0.9rem + env(safe-area-inset-right, 0px));
    bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--lg-glass-line);
    border-radius: 100px;
    cursor: pointer;
    color: var(--lg-ink);
    background: var(--lg-glass-strong);
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
    backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
    box-shadow: inset 1px 1px 0 var(--lg-glass-edge), var(--lg-shadow-sm);
}

.lg-music svg {
    width: 1.25rem;
    height: 1.25rem;
}

.lg-music__bars span {
    display: inline-block;
    width: 2px;
    height: 0.5rem;
    margin: 0 1px;
    background: currentColor;
    border-radius: 2px;
    animation: lg-eq 0.9s var(--lg-ease) infinite alternate;
}

.lg-music__bars span:nth-child(2) { animation-delay: 0.2s; }
.lg-music__bars span:nth-child(3) { animation-delay: 0.4s; }

.lg-music[aria-pressed="false"] .lg-music__bars span {
    animation-play-state: paused;
    height: 0.35rem;
}

@keyframes lg-eq {
    from { height: 0.3rem; }
    to { height: 0.85rem; }
}

@media (min-width: 576px) {
    .lg-music {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* -----------------------------------------------------------------------------
   Order of the Day timeline
   ----------------------------------------------------------------------------- */
.lg-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lg-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--lg-glass-line);
}

.lg-timeline__item:last-child {
    border-bottom: 0;
}

.lg-timeline__time {
    font-family: var(--lg-display);
    font-size: 1.1rem;
    color: var(--lg-accent-strong);
    font-variant-numeric: tabular-nums;
}

.lg-timeline__title {
    color: var(--lg-ink);
    font-weight: 500;
}

/* -----------------------------------------------------------------------------
   Explore cards (links into RSVP / Registry / Wishes)
   ----------------------------------------------------------------------------- */
.lg-explore {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: clamp(1rem, 2.4vw, 1.5rem);
}

.lg-explore__card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.6rem 1.5rem;
    text-decoration: none;
    color: var(--lg-ink);
}

.lg-explore__card .lg-explore__title {
    font-family: var(--lg-display);
    font-size: 1.4rem;
}

.lg-explore__card .lg-explore__hint {
    color: var(--lg-ink-soft);
    font-size: 0.9rem;
}

.lg-explore__arrow {
    margin-top: 0.4rem;
    color: var(--lg-accent-strong);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Scroll-reveal (IntersectionObserver-driven). Base state visible so that
   no-JS / observer-less environments never hide content.
   ----------------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--lg-spring), transform 0.8s var(--lg-spring);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
/* "up" is the default translateY(24px); listed for explicitness in markup. */
.js [data-reveal="up"] { transform: translateY(24px); }

/* Keep content clear of the floating bottom nav on mobile. */
@media (max-width: 575.98px) {
    body {
        padding-bottom: 5.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-cover,
    .lg-music__bars span {
        transition: none;
        animation: none;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-cover[class*="lg-cover--"].is-open {
        transition-delay: 0s;
    }

    .lg-cover__curtain,
    .lg-cover__door,
    .lg-cover__env-body,
    .lg-cover__env-flap,
    .lg-cover__petal {
        display: none;
    }

    .lg-cover__inner {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* -----------------------------------------------------------------------------
   Mobile: centre the home invitation content. Desktop keeps its left-aligned
   layout untouched (this only applies below the phone breakpoint).
   ----------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .lg-home {
        text-align: center;
    }

    /* The eyebrow has a small left optical padding for left-aligned layouts. */
    .lg-home .lg-eyebrow {
        padding-left: 0;
    }

    /* Constrained measure blocks are auto-centred instead of left-hugging. */
    .lg-home .lg-lede,
    .lg-home .lg-host {
        margin-inline: auto;
    }

    /* Button rows and link groups centre under their text. */
    .lg-home .d-flex {
        justify-content: center;
    }

    /* Stack each Order-of-the-Day row (time over title), centred. */
    .lg-home .lg-timeline__item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        text-align: center;
    }
}

/* -----------------------------------------------------------------------------
   Corner florals — faint botanical decoration behind every public page.
   Diagonal pair: top-left + a mirrored bottom-right copy. Decorative only:
   pointer-events:none and a negative z-index keep it behind all content but
   above the background mesh/grain (which now sit at -3 / -2).
   ----------------------------------------------------------------------------- */
.lg-corner-florals {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    color: var(--lg-accent);
}

.lg-corner-florals__bouquet {
    position: absolute;
    width: clamp(120px, 18vw, 230px);
    height: auto;
    opacity: 0.14;
}

/* The bouquet artwork emanates from the top-left; mirror it per corner. */
.lg-corner-florals__bouquet--tl {
    top: 0;
    left: 0;
}

.lg-corner-florals__bouquet--tr {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.lg-corner-florals__bouquet--bl {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.lg-corner-florals__bouquet--br {
    bottom: 0;
    right: 0;
    transform: scaleX(-1) scaleY(-1);
}

@media (prefers-color-scheme: dark) {
    .lg-corner-florals__bouquet {
        opacity: 0.16;
    }
}

/* Colour artwork (roses / colourful) reads as a soft corner spray — a touch
   more present than the faint line styles, but still decorative. */
.lg-corner-florals--roses .lg-corner-florals__bouquet,
.lg-corner-florals--colourful .lg-corner-florals__bouquet {
    opacity: 0.6;
}

/* Realistic watercolor corner spray — a touch larger than the line art, but
   kept modest so it frames the content rather than crowding it. */
.lg-corner-florals--watercolor-floral .lg-corner-florals__bouquet {
    width: min(28.5vw, 315px);
    opacity: 0.7;
}

@media (max-width: 575.98px) {
    /* Keep the floral on mobile (the global rule hides bl/br) but fade the
       bottom corners so the RSVP fields over them stay legible. */
    .lg-corner-florals--watercolor-floral .lg-corner-florals__bouquet {
        width: 34.5vw;
    }

    .lg-corner-florals--watercolor-floral .lg-corner-florals__bouquet--bl,
    .lg-corner-florals--watercolor-floral .lg-corner-florals__bouquet--br {
        display: block;
        opacity: 0.3;
    }
}

/* Full-bleed watercolor wash — sits above the mesh/grain, below all content. */
.lg-bg-wash {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.lg-bg-wash img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
    .lg-bg-wash img {
        opacity: 0.32;
    }
}

@media (prefers-color-scheme: dark) {
    .lg-corner-florals--roses .lg-corner-florals__bouquet,
    .lg-corner-florals--colourful .lg-corner-florals__bouquet {
        opacity: 0.5;
    }
}

/* Keep the bottom bouquets clear of the mobile bottom nav + music toggle. */
@media (max-width: 575.98px) {
    .lg-corner-florals__bouquet--bl,
    .lg-corner-florals__bouquet--br {
        display: none;
    }
}

/* ============================================================
   Ambient effect overlay — couple-selectable, decorative only.
   Markup: resources/views/components/public/ambient-effect.blade.php
   Tints to --lg-ambient-color (set inline; defaults to the accent).
   ============================================================ */
.lg-ambient {
    position: fixed;
    inset: 0;
    z-index: -1; /* behind in-flow content, above the page background */
    overflow: hidden;
    pointer-events: none;
    color: var(--lg-ambient-color, var(--lg-accent));
}

.lg-ambient__p {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--size, 12px);
    height: var(--size, 12px);
    opacity: 0;
    will-change: transform, opacity;
}

/* Falling family (petals, snow, hearts) start above the viewport */
.lg-ambient--petals .lg-ambient__p,
.lg-ambient--snow .lg-ambient__p,
.lg-ambient--hearts .lg-ambient__p {
    top: -12%;
}

@keyframes lg-fall-sway {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: var(--peak, 0.6);
    }
    92% {
        opacity: var(--peak, 0.6);
    }
    100% {
        transform: translate(var(--drift, 30px), 120vh) rotate(480deg);
        opacity: 0;
    }
}

/* Bubbles — rise from the bottom and fade out near the top */
.lg-ambient--bubbles .lg-ambient__p {
    top: auto;
    bottom: -12%;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.7), currentColor 72%);
    animation: lg-bubble-rise var(--dur, 13s) linear var(--delay, 0s) infinite;
}
@keyframes lg-bubble-rise {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    12% {
        opacity: 0.4;
    }
    88% {
        opacity: 0.4;
    }
    100% {
        transform: translate(var(--drift, 0), -120vh) scale(1);
        opacity: 0;
    }
}

/* Petals / leaves — fall, sway and rotate */
.lg-ambient--petals .lg-ambient__p {
    border-radius: 80% 0 80% 0;
    background: currentColor;
    --peak: 0.6;
    animation: lg-fall-sway var(--dur, 13s) linear var(--delay, 0s) infinite;
}

/* Snow — soft white regardless of palette, falls slower */
.lg-ambient--snow {
    color: #fff;
}
.lg-ambient--snow .lg-ambient__p {
    border-radius: 50%;
    background: currentColor;
    --peak: 0.85;
    filter: blur(0.3px);
    animation: lg-fall-sway calc(var(--dur, 13s) * 1.5) linear var(--delay, 0s) infinite;
}

/* Hearts — glyph, falls and sways */
.lg-ambient--hearts .lg-ambient__p {
    width: auto;
    height: auto;
    --peak: 0.55;
    animation: lg-fall-sway var(--dur, 13s) linear var(--delay, 0s) infinite;
}
.lg-ambient--hearts .lg-ambient__p::before {
    content: "\2665";
    font-size: var(--size, 14px);
    line-height: 1;
}

/* Fireflies — drift gently and twinkle in place */
.lg-ambient--fireflies .lg-ambient__p {
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px 2px currentColor;
    animation:
        lg-firefly-float var(--dur, 10s) ease-in-out var(--delay, 0s) infinite,
        lg-firefly-twinkle calc(var(--dur, 10s) / 3) ease-in-out var(--delay, 0s) infinite;
}
@keyframes lg-firefly-float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(var(--drift, 24px), -28px);
    }
    50% {
        transform: translate(calc(var(--drift, 24px) * -1), -8px);
    }
    75% {
        transform: translate(12px, -36px);
    }
}
@keyframes lg-firefly-twinkle {
    0%,
    100% {
        opacity: 0.12;
    }
    50% {
        opacity: 0.9;
    }
}

/* Sparkles — twinkle and spin in place */
.lg-ambient--sparkles .lg-ambient__p {
    width: auto;
    height: auto;
    animation: lg-sparkle var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}
.lg-ambient--sparkles .lg-ambient__p::before {
    content: "\2726";
    font-size: var(--size, 12px);
    line-height: 1;
}
@keyframes lg-sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg);
    }
    50% {
        opacity: 0.9;
        transform: scale(1) rotate(90deg);
    }
}

/* Respect reduced-motion: no ambient animation at all */
@media (prefers-reduced-motion: reduce) {
    .lg-ambient {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-count__num.is-flip {
        animation: none;
    }

    .lg-btn-primary::after {
        display: none;
    }

    .lg-btn:active {
        transform: none;
    }

    [data-parallax] {
        transform: none !important;
    }
}

/* -----------------------------------------------------------------------------
   Configurable content sections — gallery, love-story, map (Pillar 3)
   ----------------------------------------------------------------------------- */
.lg-gallery--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: clamp(0.5rem, 1.4vw, 0.9rem);
}

.lg-gallery--masonry {
    columns: 3 220px;
    column-gap: clamp(0.5rem, 1.4vw, 0.9rem);
}

.lg-gallery--masonry .lg-gallery__item {
    break-inside: avoid;
    margin-bottom: clamp(0.5rem, 1.4vw, 0.9rem);
    width: 100%;
}

.lg-gallery--carousel {
    display: flex;
    gap: clamp(0.5rem, 1.4vw, 0.9rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.lg-gallery--carousel .lg-gallery__item {
    flex: 0 0 78%;
    scroll-snap-align: center;
}

.lg-gallery__item {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--lg-shadow-sm);
}

.lg-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.5s var(--lg-ease);
}

.lg-gallery__item:hover img {
    transform: scale(1.05);
}

.lg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(0, 0, 0, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lg-lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lg-lightbox__close,
.lg-lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 100px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lg-lightbox__close {
    top: 1rem;
    right: 1.2rem;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.6rem;
}

.lg-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
}

.lg-lightbox__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lg-lightbox__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }

/* Love-story timeline (distinct from the schedule's .lg-timeline). */
.lg-story {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    position: relative;
}

.lg-story::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0.5rem;
    width: 2px;
    background: var(--lg-glass-line);
}

.lg-story__item {
    position: relative;
    padding: 0 0 1.8rem 2rem;
}

.lg-story__item::before {
    content: "";
    position: absolute;
    left: 0.05rem;
    top: 0.35rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: var(--lg-accent);
    box-shadow: 0 0 0 4px var(--lg-bg);
}

.lg-story__media {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    max-width: 22rem;
}

.lg-story__media img {
    display: block;
    width: 100%;
    height: auto;
}

.lg-story__date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lg-accent-strong);
    font-weight: 600;
}

.lg-story__title {
    font-family: var(--lg-display);
    font-size: 1.3rem;
    margin: 0.2rem 0 0.3rem;
    color: var(--lg-ink);
}

.lg-story__text {
    margin: 0;
    color: var(--lg-ink-soft);
}

.lg-map__frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.lg-map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .lg-gallery__item img,
    .lg-gallery__item:hover img {
        transition: none;
        transform: none;
    }
}

/* -----------------------------------------------------------------------------
   Wish reaction button (❤) — Pillar 4
   ----------------------------------------------------------------------------- */
.lg-wish__react {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    border: 1px solid var(--lg-glass-line);
    background: var(--lg-glass-strong);
    color: var(--lg-ink-soft);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.3s var(--lg-spring), color 0.3s var(--lg-ease), border-color 0.3s var(--lg-ease);
}

.lg-wish__react:hover {
    transform: translateY(-1px);
    color: var(--lg-accent-strong);
    border-color: var(--lg-accent);
}

.lg-wish__heart {
    color: var(--lg-accent);
    transition: transform 0.3s var(--lg-spring);
}

.lg-wish__react.is-reacted {
    color: var(--lg-accent-strong);
    border-color: var(--lg-accent);
    cursor: default;
}

.lg-wish__react.is-reacted .lg-wish__heart {
    transform: scale(1.25);
}

/* -----------------------------------------------------------------------------
   Confetti burst — Pillar 4
   ----------------------------------------------------------------------------- */
.lg-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 400;
}

.lg-confetti__p {
    position: absolute;
    top: -5vh;
    width: 0.55rem;
    height: 0.9rem;
    border-radius: 1px;
    opacity: 0;
    animation-name: lg-confetti-fall;
    animation-timing-function: ease-in;
    animation-iteration-count: 1;
}

@keyframes lg-confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(108vh) rotate(540deg); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-confetti {
        display: none;
    }
}

/* ============================================================
   Home wishes preview (#3) — a contained, scrollable region so a
   long list of guest wishes never stretches the page. Uses the
   existing .lg-wish card styling.
   ============================================================ */
.lg-wishes-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
    margin-inline: -0.5rem;
    border-radius: var(--lg-radius);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.lg-wishes-scroll:focus-visible {
    outline: 2px solid var(--lg-accent);
    outline-offset: 2px;
}

.lg-wishes-scroll::-webkit-scrollbar {
    width: 8px;
}

.lg-wishes-scroll::-webkit-scrollbar-thumb {
    background: var(--lg-accent);
    border-radius: 99px;
    opacity: 0.6;
}

@media (max-width: 575.98px) {
    .lg-wishes-scroll {
        grid-template-columns: 1fr;
        max-height: 56vh;
    }
}

/* ============================================================
   Apple-glass RSVP popup (#4). Bottom-sheet on mobile, centred
   glass card on desktop. x-show toggles display; the keyframes
   below replay each time the sheet/backdrop appears.
   ============================================================ */
[x-cloak] { display: none !important; }

/* NOTE: named .lg-sheetmodal — NOT .lg-modal, which is already taken by the
   gift-registry reserve modal (max-width:460px) and would constrain this one. */
.lg-sheetmodal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.lg-sheetmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 14, 0.46);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: lg-sheetmodal-fade 0.25s var(--lg-ease) both;
}

.lg-sheetmodal__sheet {
    position: relative;
    width: min(540px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: clamp(1.6rem, 4vw, 2.4rem);
    border-radius: 24px;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: lg-sheetmodal-pop 0.32s var(--lg-ease) both;
}

/* Fallback when backdrop-filter is unsupported — use a more opaque surface. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lg-sheetmodal__sheet {
        background: var(--lg-bg);
        border-color: var(--lg-glass-line, rgba(0, 0, 0, 0.1));
    }
    .lg-sheetmodal__backdrop {
        background: rgba(20, 16, 14, 0.6);
    }
}

@media (prefers-color-scheme: dark) {
    .lg-sheetmodal__sheet {
        background: rgba(40, 34, 30, 0.42);
        border-color: rgba(255, 255, 255, 0.16);
    }
}

.lg-sheetmodal__close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--lg-ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s var(--lg-ease);
}

.lg-sheetmodal__close:hover {
    background: rgba(255, 255, 255, 0.45);
}

.lg-back {
    border: 0;
    background: transparent;
    color: var(--lg-accent-strong);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.2rem 0;
    margin-bottom: 0.4rem;
}

/* Smooth cross-step transition inside the RSVP popup (Yes/No → form). The
   wrapper is keyed by step, so Livewire swaps the node and this enter
   animation replays — a gentle fade + lift like OneUI / Material shared-axis. */
.lg-step {
    animation: lg-step-in 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    will-change: transform, opacity;
}

@keyframes lg-step-in {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .lg-step {
        animation: none;
    }
}

@keyframes lg-sheetmodal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lg-sheetmodal-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile: a floating bottom sheet — docked to the bottom but with consistent
   left/right/bottom gaps (matching the floating bottom nav) and fully rounded. */
@media (max-width: 575.98px) {
    .lg-sheetmodal {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }
    .lg-sheetmodal__sheet {
        width: calc(100% - 24px);
        margin-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        max-height: 84vh;
        border-radius: 24px;
        animation-name: lg-sheet-up;
    }
}

@keyframes lg-sheet-up {
    from { opacity: 0.6; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .lg-sheetmodal__sheet,
    .lg-sheetmodal__backdrop {
        animation: none;
    }
}
/* Guest Media — mobile camera, resumable upload queue, and private-success flow. */
.lg-media {
    min-height: calc(100svh - 5rem);
    padding: clamp(3.5rem, 9vw, 7rem) 0 calc(7rem + env(safe-area-inset-bottom));
}

.lg-media__hero {
    max-width: 48rem;
    text-align: center;
}

.lg-media__title {
    margin: .55rem 0 1rem;
    font-size: clamp(2.6rem, 10vw, 5.4rem);
    line-height: .96;
}

.lg-media__intro {
    max-width: 38rem;
    margin: 0 auto;
    color: var(--lg-ink-soft);
    font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.lg-media__privacy,
.lg-media__limit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: 1.1rem auto 0;
    color: var(--lg-ink-soft);
    font-size: .86rem;
}

.lg-media__privacy svg,
.lg-media-action svg,
.lg-camera__tool svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.lg-media__workspace,
.lg-media__closed {
    width: min(100% - 1.5rem, 48rem);
    margin-top: clamp(2rem, 6vw, 3.5rem);
}

.lg-media__closed .lg-card {
    padding: clamp(1.6rem, 5vw, 2.6rem);
    text-align: center;
}

.lg-media__identity {
    margin-bottom: 1rem;
    color: var(--lg-ink-soft);
    text-align: center;
}

.lg-media__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    text-align: left;
}

.lg-media__fields label,
.lg-media__code,
.lg-media-preview label {
    display: grid;
    gap: .4rem;
    color: var(--lg-ink-soft);
    font-size: .86rem;
    text-align: left;
}

.lg-media__code {
    max-width: 24rem;
    margin: 1rem auto 0;
}

.lg-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--lg-glass-line);
    border-radius: var(--lg-radius-sm);
    padding: .75rem .9rem;
    background: color-mix(in srgb, var(--lg-glass-strong) 82%, transparent);
    color: var(--lg-ink);
    font: inherit;
    outline: none;
    transition: border-color .2s var(--lg-ease), box-shadow .2s var(--lg-ease);
}

.lg-input:focus-visible {
    border-color: var(--lg-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lg-accent) 24%, transparent);
}

.lg-media__actions {
    display: grid;
    gap: .85rem;
}

.lg-media-action {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 74px;
    border: 1px solid var(--lg-glass-edge);
    border-radius: var(--lg-radius);
    padding: .9rem 1rem;
    background: var(--lg-glass-strong);
    color: var(--lg-ink);
    box-shadow: inset 0 1px 0 var(--lg-glass-edge-soft), var(--lg-shadow-sm);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .3s var(--lg-spring), border-color .25s var(--lg-ease);
}

.lg-media-action:hover {
    transform: translateY(-2px) scale(1.005);
    border-color: color-mix(in srgb, var(--lg-accent) 38%, var(--lg-glass-edge));
}

.lg-media-action:focus-visible,
.lg-camera button:focus-visible,
.lg-media-carousel button:focus-visible,
.lg-media-upload button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lg-accent) 58%, transparent);
    outline-offset: 3px;
}

.lg-media-action--primary {
    background: var(--lg-accent);
    color: var(--lg-accent-ink);
    border-color: color-mix(in srgb, var(--lg-accent) 70%, white);
}

.lg-media-action__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 11%, transparent);
}

.lg-media-action__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lg-media-action strong,
.lg-media-action small {
    display: block;
}

.lg-media-action small {
    margin-top: .1rem;
    color: currentColor;
    opacity: .7;
}

.lg-camera {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100svh;
    padding: max(.75rem, env(safe-area-inset-top)) .75rem max(.75rem, env(safe-area-inset-bottom));
    background: #090807;
    color: #fff;
}

.lg-camera__viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: clamp(1.25rem, 5vw, 2.25rem);
    background: #151311;
}

.lg-camera__viewport video,
.lg-camera__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lg-camera__frame {
    z-index: 2;
    pointer-events: none;
}

.lg-camera__filter-tint,
.lg-camera__filter-vignette,
.lg-camera__filter-grain {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
}

.lg-camera__filter-vignette,
.lg-camera-filter__vignette {
    background: radial-gradient(circle at 50% 46%, transparent 38%, rgba(0, 0, 0, .9) 100%);
}

.lg-camera__filter-grain,
.lg-camera-filter__grain {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.lg-camera__countdown {
    position: absolute;
    z-index: 3;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    font-family: var(--lg-display);
    font-size: clamp(5rem, 25vw, 10rem);
    text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}

.lg-camera__timer {
    position: absolute;
    z-index: 3;
    top: 1rem;
    left: 50%;
    translate: -50% 0;
    border-radius: 999px;
    padding: .35rem .75rem;
    background: rgba(0, 0, 0, .48);
    font-variant-numeric: tabular-nums;
}

.lg-camera__timer-picker {
    position: absolute;
    z-index: 4;
    top: .75rem;
    left: 50%;
    display: flex;
    align-items: center;
    gap: .2rem;
    translate: -50% 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: .25rem;
    background: rgba(18, 16, 14, .64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 24px rgba(0, 0, 0, .22);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.lg-camera__timer-picker svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: rgba(255, 255, 255, .78);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.lg-camera__timer-picker-label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding-inline: .4rem .3rem;
    color: rgba(255, 255, 255, .82);
    font: 700 .64rem/1 var(--lg-body);
    letter-spacing: .11em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lg-camera__timer-picker button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 0;
    border-radius: 999px;
    padding: .35rem .6rem;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font: 700 .76rem/1 var(--lg-body);
    letter-spacing: .02em;
    cursor: pointer;
    transition: color .2s var(--lg-spring), background .2s var(--lg-spring), scale .2s var(--lg-spring);
}

.lg-camera__timer-picker button:hover,
.lg-camera__timer-picker button:focus-visible {
    color: #fff;
}

.lg-camera__timer-picker button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lg-camera__timer-picker button.is-active {
    background: #fff;
    color: #171411;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

.lg-camera__timer-picker button:active {
    scale: .94;
}

.lg-camera__timer-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: .05rem;
    font-variant-numeric: tabular-nums;
}

.lg-camera__timer-value strong {
    font-size: .9rem;
}

.lg-camera__timer-value small {
    font-size: .62rem;
    font-weight: 700;
    opacity: .78;
}

.lg-camera__toolbar {
    display: grid;
    grid-template-columns: 52px 82px 52px;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: min(100%, 28rem);
    margin: .85rem auto .4rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .5rem .7rem;
    background: rgba(30, 27, 24, .58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 15px 45px rgba(0, 0, 0, .35);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.lg-camera__tool,
.lg-camera__shutter {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.lg-camera__tool {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, .12);
    font-size: 2rem;
}

.lg-camera__shutter {
    width: 74px;
    height: 74px;
    border: 5px solid #fff;
    background: #fff;
    box-shadow: inset 0 0 0 5px #171411;
    transition: border-radius .25s var(--lg-spring), scale .2s var(--lg-spring), background .2s;
}

.lg-camera__shutter:active {
    scale: .92;
}

.lg-camera__shutter:disabled {
    cursor: wait;
    opacity: .7;
}

.lg-camera__shutter.is-recording {
    border-radius: 24px;
    background: #ed4c4c;
}

.lg-media-carousel {
    display: flex;
    gap: .5rem;
    width: 100%;
    overflow-x: auto;
    padding: .35rem .15rem;
    scrollbar-width: none;
}

.lg-media-carousel::-webkit-scrollbar {
    display: none;
}

.lg-media-carousel button {
    flex: 0 0 auto;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: .55rem .9rem;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
}

.lg-media-carousel button.is-active {
    background: #fff;
    color: #171411;
}

.lg-media-carousel .lg-camera-filter {
    display: grid;
    justify-items: center;
    gap: .32rem;
    min-width: 70px;
    min-height: 82px;
    border-color: transparent;
    border-radius: 18px;
    padding: .25rem .3rem .35rem;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    transition: color .22s var(--lg-ease), transform .22s var(--lg-spring);
}

.lg-media-carousel .lg-camera-filter.is-active {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.lg-camera-filter__thumb {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 18px;
    background: #312b27;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .3);
    transition: border-color .22s var(--lg-ease), transform .22s var(--lg-spring), box-shadow .22s var(--lg-ease);
}

.lg-camera-filter.is-active .lg-camera-filter__thumb {
    border-color: #fff;
    transform: scale(1.06);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .18), 0 9px 24px rgba(0, 0, 0, .42);
}

.lg-camera-filter__image,
.lg-camera-filter__tint,
.lg-camera-filter__vignette,
.lg-camera-filter__grain {
    position: absolute;
    inset: 0;
}

.lg-camera-filter__image {
    background-position: center;
    background-size: cover;
    transform: scale(1.08);
}

.lg-camera-filter__label {
    max-width: 70px;
    overflow: hidden;
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .lg-media-carousel .lg-camera-filter,
    .lg-camera-filter__thumb {
        transition: none;
    }

    .lg-media-carousel .lg-camera-filter.is-active,
    .lg-camera-filter.is-active .lg-camera-filter__thumb {
        transform: none;
    }
}

.lg-media-preview {
    display: grid;
    gap: 1rem;
}

.lg-media-preview > img,
.lg-media-preview > video {
    width: 100%;
    max-height: 65svh;
    border-radius: var(--lg-radius-xl);
    object-fit: contain;
    background: #111;
    box-shadow: var(--lg-shadow);
}

.lg-media-preview__actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: .75rem;
}

.lg-media-queue {
    display: grid;
    gap: .7rem;
    margin-top: 1.2rem;
}

.lg-media-upload {
    position: relative;
    border: 1px solid var(--lg-glass-edge);
    border-radius: var(--lg-radius-sm);
    padding: .85rem 1rem;
    background: var(--lg-glass-strong);
    box-shadow: inset 0 1px 0 var(--lg-glass-edge-soft);
}

.lg-media-upload__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .84rem;
}

.lg-media-upload__top strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lg-media-upload__bar {
    height: 5px;
    margin-top: .65rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--lg-glass-line);
}

.lg-media-upload__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--lg-accent);
    transition: width .25s var(--lg-ease);
}

.lg-media-upload p {
    margin: .55rem 0 0;
    color: #b33d36;
    font-size: .82rem;
}

.lg-media-upload__cancel,
.lg-media-upload__buttons button {
    min-height: 44px;
    border: 0;
    padding: .4rem 0;
    background: transparent;
    color: var(--lg-accent-strong);
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
}

.lg-media-success {
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
}

.lg-media-success__mark {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--lg-accent);
    color: var(--lg-accent-ink);
    font-size: 2rem;
    box-shadow: 0 18px 45px color-mix(in srgb, var(--lg-accent) 30%, transparent);
}

.lg-media__error {
    margin: .5rem 0 0;
    color: #ffb5ad;
    text-align: center;
}

@media (max-width: 575.98px) {
    .lg-media__fields {
        grid-template-columns: 1fr;
    }

    .lg-media__workspace {
        width: min(100% - 1rem, 48rem);
    }
}

@supports not (backdrop-filter: blur(1px)) {
    .lg-camera__toolbar,
    .lg-camera__timer-picker,
    .lg-media-action,
    .lg-media-upload {
        background: var(--lg-glass-strong);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .lg-camera__toolbar,
    .lg-media-action,
    .lg-media-upload,
    .lg-input {
        background: var(--lg-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .lg-camera__toolbar {
        background: #211e1a;
    }

    .lg-camera__timer-picker {
        background: #211e1a;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-media-action,
    .lg-camera__shutter,
    .lg-camera__timer-picker button,
    .lg-media-upload__bar span {
        transition: none;
    }
}
