/* Thème « Canneberge » par-dessus Bootstrap 5.3 : baie, prune et or sur fond crème. */
:root {
    --s-berry: #B8234A;
    --s-berry-dark: #8E1838;
    --s-wine: #7A1A44;
    --s-plum: #3B1530;
    --s-gold: #E8AE3C;
    --s-gold-light: #F6D58B;
    --s-gold-soft: #FFF3D6;
    --s-gold-ink: #7A4E00;
    --s-ink: #2A1721;
    --s-muted: #75606A;
    --s-bg: #FBF6F2;
    --s-surface: #FFFFFF;
    --s-line: #F0E4E2;
    --s-field: #E4D4D5;
    --s-tint: #FBE8EC;
    --s-bubble: #F6EDEC;
    --s-warn-bg: #FDEBDD;
    --s-warn: #8A3B0C;
    --s-avoid: #A3203F;

    --s-radius: 24px;
    --s-shadow: 0 1px 2px rgba(59, 21, 48, .05), 0 12px 32px -16px rgba(59, 21, 48, .18);
    --s-shadow-lift: 0 2px 4px rgba(59, 21, 48, .06), 0 22px 44px -20px rgba(59, 21, 48, .32);
    --s-ease: cubic-bezier(.2, .7, .2, 1);
    --s-display: Fraunces, Georgia, "Times New Roman", serif;

    --bs-body-font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-bg: var(--s-bg);
    --bs-body-color: var(--s-ink);
    --bs-secondary-color: var(--s-muted);
    --bs-secondary-rgb: 117, 96, 106;
    --bs-primary: var(--s-berry);
    --bs-primary-rgb: 184, 35, 74;
    --bs-link-color: var(--s-berry);
    --bs-link-color-rgb: 184, 35, 74;
    --bs-link-hover-color: var(--s-berry-dark);
    --bs-link-hover-color-rgb: 142, 24, 56;
    --bs-border-color: var(--s-field);
    --bs-border-radius: 12px;
    --bs-focus-ring-color: rgba(184, 35, 74, .22);
}

body {
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background:
        radial-gradient(900px 520px at 110% -10%, rgba(232, 174, 60, .20), transparent 60%),
        radial-gradient(800px 480px at -15% 10%, rgba(184, 35, 74, .10), transparent 60%),
        var(--s-bg);
    background-attachment: fixed;
}

::selection { background: var(--s-gold-light); color: var(--s-ink); }

.app-shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Les blocs de la page arrivent l'un après l'autre. */
.app-shell > * { animation: s-rise .55s var(--s-ease) backwards; }
.app-shell > :nth-child(2) { animation-delay: .06s; }
.app-shell > :nth-child(3) { animation-delay: .12s; }
.app-shell > :nth-child(4) { animation-delay: .18s; }
.app-shell > :nth-child(5) { animation-delay: .24s; }
.app-shell > :nth-child(6) { animation-delay: .30s; }
.app-shell > :nth-child(7) { animation-delay: .36s; }
.app-shell > :nth-child(n+8) { animation-delay: .42s; }

/* Barre de navigation */
.s-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-topbar .s-logo { width: 36px; height: 36px; border-radius: 12px; }
.s-topnav { display: flex; gap: 6px; }
.s-topnav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 999px;
    background: var(--s-surface); border: 1px solid var(--s-line);
    color: var(--s-ink); font-size: .8125rem; font-weight: 700; white-space: nowrap; text-decoration: none;
    transition: color .2s var(--s-ease), border-color .2s var(--s-ease), background .2s var(--s-ease);
}
.s-topnav-link:hover { color: var(--s-berry); border-color: var(--s-field); }
.s-topnav-link[aria-current="page"] { background: var(--s-tint); border-color: transparent; color: var(--s-berry-dark); }
.s-topnav-link svg { flex: none; }
/* Téléphone : le logo seul ramène à l'accueil, la place va aux deux liens. */
@media (max-width: 439.98px) { .s-topbar .s-brand-title { display: none; } }

/* Suppression d'un événement : discrète, repliée par défaut. */
.s-danger > summary { list-style: none; color: var(--s-muted); font-size: .875rem; text-decoration: underline; }
.s-danger > summary::-webkit-details-marker { display: none; }
.s-danger > summary:hover { color: var(--s-avoid); }
.s-danger[open] > summary { color: var(--s-avoid); }

/* En-tête */
.s-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.s-logo {
    width: 42px; height: 42px; flex: none; border-radius: 14px;
    background: linear-gradient(135deg, var(--s-berry), var(--s-plum)); color: var(--s-gold-light);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -8px rgba(184, 35, 74, .7);
    transition: transform .35s var(--s-ease);
}
a.s-brand:hover .s-logo { transform: rotate(-10deg) scale(1.06); }
.s-brand-title { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.s-brand-sub { font-size: .8125rem; color: var(--s-muted); }

/* Cartes */
.s-card {
    background: var(--s-surface);
    border: 1px solid var(--s-line);
    border-radius: var(--s-radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--s-shadow);
}
.s-card--raised { box-shadow: var(--s-shadow-lift); }
.s-card--interactive { transition: transform .3s var(--s-ease), box-shadow .3s var(--s-ease); }
.s-card--interactive:hover { transform: translateY(-3px); box-shadow: var(--s-shadow-lift); }
.s-card h2 { margin: 0; font-size: 1.125rem; font-weight: 800; }
.s-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s-berry); }

/* Bandeaux baie et prune, avec de la neige qui tombe */
.s-card--hero, .s-reveal-cover {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 0;
    color: #fff;
    background:
        radial-gradient(280px 180px at 100% 0%, rgba(232, 174, 60, .45), transparent 70%),
        linear-gradient(140deg, var(--s-berry) 0%, var(--s-wine) 55%, var(--s-plum) 100%);
    box-shadow: 0 20px 44px -20px rgba(122, 26, 68, .6);
}
.s-card--hero::before, .s-card--hero::after,
.s-reveal-cover::before, .s-reveal-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.s-card--hero::before, .s-reveal-cover::before {
    background-image:
        radial-gradient(circle at 20px 30px, rgba(255, 255, 255, .9) 1.5px, transparent 2.5px),
        radial-gradient(circle at 90px 110px, rgba(255, 255, 255, .7) 1px, transparent 2px),
        radial-gradient(circle at 150px 60px, rgba(255, 255, 255, .8) 1.5px, transparent 2.5px),
        radial-gradient(circle at 60px 170px, rgba(255, 255, 255, .6) 1px, transparent 2px),
        radial-gradient(circle at 180px 190px, rgba(255, 255, 255, .9) 1.2px, transparent 2.2px);
    background-size: 200px 200px;
    opacity: .65;
    animation: s-snow 14s linear infinite;
}
.s-card--hero::after, .s-reveal-cover::after {
    background-image:
        radial-gradient(circle at 40px 50px, rgba(255, 255, 255, .95) 2.5px, transparent 3.5px),
        radial-gradient(circle at 220px 160px, rgba(255, 255, 255, .8) 2px, transparent 3px),
        radial-gradient(circle at 130px 250px, rgba(255, 255, 255, .9) 2.5px, transparent 3.5px);
    background-size: 300px 300px;
    opacity: .5;
    animation: s-snow-big 24s linear infinite;
}
.s-card--hero .s-eyebrow { color: var(--s-gold-light); }
.s-card--hero .s-brand-sub, .s-hero-sub { color: rgba(255, 255, 255, .8); font-size: .875rem; }
.s-hero-title { margin: 0; font-family: var(--s-display); font-size: 1.5rem; line-height: 1.2; font-weight: 600; }
.s-hero-display { margin: 0; font-family: var(--s-display); font-size: clamp(2rem, 7vw, 2.625rem); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.s-hero-display em { font-style: italic; color: var(--s-gold-light); }
.s-hero-lead { color: rgba(255, 255, 255, .88); line-height: 1.55; }

/* Avatars */
.s-avatar {
    width: 56px; height: 56px; flex: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--s-gold), var(--s-berry)); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem; font-weight: 800;
    box-shadow: 0 0 0 4px var(--s-surface), 0 0 0 6px var(--s-tint);
}
.s-avatar--sm { width: 36px; height: 36px; font-size: .8125rem; box-shadow: none; }
.s-list > li:nth-child(4n+2) .s-avatar { background: linear-gradient(135deg, var(--s-berry), var(--s-plum)); }
.s-list > li:nth-child(4n+3) .s-avatar { background: linear-gradient(135deg, #D9703A, var(--s-wine)); }
.s-list > li:nth-child(4n+4) .s-avatar { background: linear-gradient(135deg, var(--s-gold-light), #D9703A); color: var(--s-plum); }

.s-receiver {
    margin: 0;
    font-family: var(--s-display);
    font-size: clamp(2rem, 7vw, 2.625rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.01em;
    background: linear-gradient(100deg, var(--s-berry) 0%, var(--s-plum) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.s-receiver:focus { outline: none; }

/* Chiffres clés */
.s-stats { display: flex; gap: 8px; }
.s-stat {
    flex: 1; min-width: 0;
    background: var(--s-bg); border-radius: 16px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 2px;
}
.s-stats--cards .s-stat { background: var(--s-surface); border: 1px solid var(--s-line); box-shadow: var(--s-shadow); }
.s-stat-label { font-size: .75rem; color: var(--s-muted); }
.s-stat-value { font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Pastilles */
.s-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.s-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-pill--ok { background: var(--s-gold-soft); color: var(--s-gold-ink); }
.s-pill--warn { background: var(--s-warn-bg); color: var(--s-warn); }
.s-pill--neutral { background: var(--s-bubble); color: var(--s-muted); }
.s-budget {
    font-size: .8125rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    background: var(--s-gold-soft); color: var(--s-gold-ink);
}

/* Listes */
.s-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.s-list > li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--s-line); }
.s-list > li:last-child { border-bottom: 0; }
.s-wish { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.s-wish li { display: flex; align-items: baseline; gap: 10px; }
.s-wish li::before { content: "✦"; flex: none; color: var(--s-gold); font-size: .875rem; }
.s-wish li.is-avoid { color: var(--s-avoid); }
.s-wish li.is-avoid::before { content: "✕"; color: var(--s-avoid); font-size: .75rem; }

.s-rule { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--s-bg); }
.s-rule-text { flex: 1; min-width: 0; }

/* Étapes de la création */
.s-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.s-steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--s-muted); }
.s-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--s-berry); }
.s-steps li[aria-current="step"] { color: var(--s-ink); }
.s-steps li[aria-current="step"]::before {
    background: linear-gradient(90deg, var(--s-berry), var(--s-gold), var(--s-berry));
    background-size: 200% 100%;
    animation: s-shimmer 2.4s linear infinite;
}

/* « Comment ça marche » */
.s-howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: howto; }
.s-howto li { display: flex; gap: 12px; align-items: flex-start; counter-increment: howto; }
.s-howto li::before {
    content: counter(howto);
    width: 30px; height: 30px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .875rem;
    background: var(--s-tint); color: var(--s-berry);
}

/* Discussion */
.s-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--s-line); }
.s-tab {
    position: relative;
    min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px;
    color: var(--s-muted); font-weight: 600; text-decoration: none;
    transition: color .2s;
}
.s-tab::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--s-berry), var(--s-gold));
    transform: scaleX(0); transition: transform .35s var(--s-ease);
}
.s-tab:hover { color: var(--s-ink); }
.s-tab:hover::after { transform: scaleX(.35); }
.s-tab[aria-current="page"] { color: var(--s-ink); font-weight: 800; }
.s-tab[aria-current="page"]::after { transform: scaleX(1); }

.s-messages { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; padding: 4px 2px; scroll-behavior: smooth; }
.s-msg { max-width: 80%; display: flex; flex-direction: column; gap: 3px; }
.s-msg--mine { align-self: flex-end; align-items: flex-end; transform-origin: bottom right; }
.s-msg--theirs { align-self: flex-start; transform-origin: bottom left; }
.s-msg:last-child { animation: s-pop .4s var(--s-ease) backwards; }
.s-msg-author { font-size: .75rem; color: var(--s-muted); }
.s-bubble { padding: 10px 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.s-msg--mine .s-bubble {
    background: linear-gradient(135deg, var(--s-berry), var(--s-wine)); color: #fff;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 8px 18px -12px rgba(184, 35, 74, .8);
}
.s-msg--theirs .s-bubble { background: var(--s-bubble); border-radius: 18px 18px 18px 4px; }
.s-empty { color: var(--s-muted); font-size: .9375rem; margin: 0; }

/* Formulaires */
.form-label { font-weight: 700; font-size: .875rem; }
.form-control, .form-select {
    min-height: 48px; background-color: var(--s-bg); border-color: var(--s-field); border-radius: 14px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea.form-control { min-height: 0; }
.form-control:hover, .form-select:hover { border-color: #D3BCBF; }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--s-berry); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-text { color: var(--s-muted); }

/* Boutons */
.btn {
    --bs-btn-font-weight: 700;
    min-height: 48px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .18s var(--s-ease), box-shadow .25s var(--s-ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 36px; border-radius: 10px; --bs-btn-font-size: .8125rem; }
.btn-lg { min-height: 56px; --bs-btn-font-size: 1rem; font-weight: 800; border-radius: 16px; }

.btn-primary {
    --bs-btn-bg: var(--s-berry); --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--s-berry-dark); --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--s-berry-dark); --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: var(--s-berry); --bs-btn-disabled-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 184, 35, 74;
    position: relative; overflow: hidden;
    background-image: linear-gradient(135deg, var(--s-berry), var(--s-berry-dark));
    box-shadow: 0 12px 24px -12px rgba(184, 35, 74, .8);
}
/* Reflet qui balaie le bouton au survol */
.btn-primary::after, .btn-gold::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform .7s var(--s-ease);
}
.btn-primary:hover, .btn-gold:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(184, 35, 74, .85); }
.btn-primary:hover::after, .btn-gold:hover::after { transform: translateX(110%); }
.btn-primary:active, .btn-gold:active { transform: scale(.97); }

.btn-gold {
    --bs-btn-color: var(--s-plum); --bs-btn-bg: var(--s-gold-light); --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--s-plum); --bs-btn-hover-bg: var(--s-gold); --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--s-plum); --bs-btn-active-bg: var(--s-gold); --bs-btn-active-border-color: transparent;
    position: relative; overflow: hidden;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45);
}
.btn-glass {
    --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .12); --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .22); --bs-btn-hover-border-color: rgba(255, 255, 255, .5);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .28); --bs-btn-active-border-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(4px);
}
.btn-dark {
    --bs-btn-bg: var(--s-plum); --bs-btn-border-color: var(--s-plum);
    --bs-btn-hover-bg: #2A0E22; --bs-btn-hover-border-color: #2A0E22;
    --bs-btn-active-bg: #2A0E22; --bs-btn-active-border-color: #2A0E22;
}
.btn-outline-secondary {
    --bs-btn-color: var(--s-ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--s-field);
    --bs-btn-hover-color: var(--s-berry); --bs-btn-hover-bg: var(--s-tint); --bs-btn-hover-border-color: #EFC3CD;
    --bs-btn-active-color: var(--s-berry); --bs-btn-active-bg: var(--s-tint); --bs-btn-active-border-color: #EFC3CD;
}
.btn-dashed { border: 1.5px dashed #DDBFC6; color: var(--s-berry); background: transparent; }
.btn-dashed:hover { background: var(--s-tint); color: var(--s-berry-dark); border-color: #D3A5B0; }
.s-icon-btn { width: 44px; min-height: 44px; padding: 0; color: var(--s-muted); background: transparent; border: 0; border-radius: 12px; }
.s-icon-btn:hover { color: var(--s-berry); background: var(--s-tint); }
.s-send { width: 48px; flex: none; padding: 0; }
.s-send svg { transition: transform .3s var(--s-ease); }
.s-send:hover svg { transform: translate(2px, -2px) rotate(-8deg); }

/* Bouton en cours d'envoi (attribut data-loading, cf. app.js) */
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
    content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: s-spin .7s linear infinite;
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > :not(summary) { animation: s-rise .4s var(--s-ease) backwards; }

.s-note { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--s-muted); text-align: center; }

/* Messages flash */
.alert { border-radius: 16px; margin: 0; border-width: 1px; font-weight: 600; }
.alert-success { --bs-alert-bg: var(--s-gold-soft); --bs-alert-color: var(--s-gold-ink); --bs-alert-border-color: #F3DDA6; }
.alert-danger { --bs-alert-bg: var(--s-tint); --bs-alert-color: var(--s-berry-dark); --bs-alert-border-color: #F2C4CF; }
.alert-warning { --bs-alert-bg: var(--s-warn-bg); --bs-alert-color: var(--s-warn); --bs-alert-border-color: #F6CDAF; }

.participant-row .mb-3 { margin-bottom: 0 !important; }
.participant-row { animation: s-rise .35s var(--s-ease) backwards; }
.participant-row.is-leaving { animation: s-leave .25s var(--s-ease) forwards; }

/* Révélation du tirage : un cadeau à ouvrir à la première visite */
.s-reveal { position: relative; }
.s-reveal.is-locked { min-height: 300px; }
.s-reveal.is-locked > :not(.s-reveal-cover) { visibility: hidden; }
.s-reveal-cover {
    position: absolute; inset: -1px; z-index: 2;
    border-radius: inherit; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 24px; text-align: center; font: inherit;
    transition: opacity .45s var(--s-ease), transform .45s var(--s-ease);
}
.s-reveal-cover:focus-visible { outline: 3px solid var(--s-gold-light); outline-offset: -6px; }
.s-reveal-cover.is-leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }
.s-reveal-title { font-family: var(--s-display); font-size: 1.625rem; font-weight: 700; line-height: 1.15; }
.s-reveal-hint { font-size: .875rem; color: rgba(255, 255, 255, .85); }
.s-gift { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3)); animation: s-wiggle 3.2s var(--s-ease) infinite; transform-origin: 50% 90%; }
.s-gift-lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s var(--s-ease), opacity .5s; }
.s-reveal-cover.is-opening .s-gift { animation: s-shake .45s ease-in-out; }
.s-reveal-cover.is-opening .s-gift-lid { transform: translateY(-14px) rotate(-16deg); opacity: 0; }
.s-reveal.is-revealed .s-receiver { animation: s-unblur .9s var(--s-ease) backwards; }
.s-reveal.is-revealed .s-avatar { animation: s-pop .6s var(--s-ease) .15s backwards; }

/* Confettis (cf. app.js) */
.s-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1080; overflow: hidden; }
.s-confetti i {
    position: absolute; width: 8px; height: 12px; border-radius: 2px;
    animation: s-confetti 1.4s cubic-bezier(.15, .6, .35, 1) forwards;
}

@keyframes s-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes s-leave { to { opacity: 0; transform: translateX(18px); } }
@keyframes s-pop { from { opacity: 0; transform: translateY(6px) scale(.94); } }
@keyframes s-spin { to { transform: rotate(360deg); } }
@keyframes s-snow { to { background-position: 0 200px; } }
@keyframes s-snow-big { to { background-position: 0 300px; } }
@keyframes s-shimmer { to { background-position: -200% 0; } }
@keyframes s-unblur { from { opacity: 0; filter: blur(14px); transform: scale(.92); } }
@keyframes s-wiggle {
    0%, 76%, 100% { transform: rotate(0); }
    80% { transform: rotate(-7deg); }
    85% { transform: rotate(6deg); }
    90% { transform: rotate(-4deg); }
    95% { transform: rotate(2deg); }
}
@keyframes s-shake {
    25% { transform: rotate(-10deg) scale(1.05); }
    50% { transform: rotate(9deg) scale(1.08); }
    75% { transform: rotate(-5deg) scale(1.05); }
}
@keyframes s-confetti {
    0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
    75% { opacity: 1; }
    100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 140px)) rotate(var(--r)); opacity: 0; }
}

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