:root {
    --bg: #edf2f8;
    --bg-soft: #e4ebf4;
    --surface: #ffffff;
    --surface-alt: #f7faff;
    --text: #0f1f33;
    --text-muted: #4b6077;
    --line: #c6d3e3;
    --accent: #0b5ea2;
    --accent-2: #1879c7;
    --accent-soft: #d7eafd;
    --success: #0d7a45;
    --danger: #ab1d36;
    --radius: 16px;
    --shadow: 0 18px 40px rgba(9, 29, 53, 0.12);
    --section-alt-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(228, 235, 244, 0.74));
    --header-bg: rgba(249, 252, 255, 0.82);
    --page-background:
        radial-gradient(circle at 10% 8%, rgba(11, 94, 162, 0.14), transparent 36%),
        radial-gradient(circle at 86% 18%, rgba(24, 121, 199, 0.11), transparent 30%),
        linear-gradient(150deg, #f5f8fc, #eaf0f7 62%, #f6f9fd);
}

html[data-theme="printemps"] {
    --surface: #fbfffd;
    --surface-alt: #f3fdf7;
    --line: #a6d8ba;
    --accent: #167944;
    --accent-2: #20a95d;
    --accent-soft: #cfeedd;
    --page-background:
        radial-gradient(circle at 10% 8%, rgba(32, 169, 93, 0.24), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(174, 232, 198, 0.34), transparent 32%),
        linear-gradient(150deg, #f3fff8, #e5f7ee 58%, #f8fffb);
}

html[data-theme="ete"] {
    --surface: #ffffff;
    --surface-alt: #f8fcff;
    --line: #9fc9e3;
    --accent: #0066a6;
    --accent-2: #00a2e8;
    --accent-soft: #c9e9fb;
    --page-background:
        radial-gradient(circle at 12% 8%, rgba(0, 162, 232, 0.24), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(255, 205, 107, 0.34), transparent 30%),
        linear-gradient(150deg, #f4fbff, #e3f1fb 58%, #fff5df);
}

html[data-theme="automne"] {
    --surface: #fffdfa;
    --surface-alt: #fff6ec;
    --line: #ddb99b;
    --accent: #8c3f0c;
    --accent-2: #d26a19;
    --accent-soft: #f2d8c1;
    --page-background:
        radial-gradient(circle at 9% 10%, rgba(210, 106, 25, 0.3), transparent 35%),
        radial-gradient(circle at 88% 15%, rgba(245, 183, 124, 0.34), transparent 29%),
        linear-gradient(150deg, #fff6ee, #f7e7d7 58%, #fffaf4);
}

html[data-theme="hiver"] {
    --surface: #fdfcff;
    --surface-alt: #f3f6fd;
    --line: #b7cdec;
    --accent: #1a4d9a;
    --accent-2: #5a8ad6;
    --accent-soft: #d5e2f8;
    --page-background:
        radial-gradient(circle at 12% 7%, rgba(90, 138, 214, 0.28), transparent 35%),
        radial-gradient(circle at 90% 16%, rgba(219, 236, 255, 0.4), transparent 32%),
        linear-gradient(150deg, #f4f8ff, #e4ebf8 58%, #f9fbff);
}

html[data-theme="saint-valentin"] {
    --surface: #fffafb;
    --surface-alt: #fff2f6;
    --line: #e6b2c8;
    --accent: #b6215d;
    --accent-2: #e54887;
    --accent-soft: #f5d4e3;
    --page-background:
        radial-gradient(circle at 11% 8%, rgba(229, 72, 135, 0.3), transparent 35%),
        radial-gradient(circle at 87% 18%, rgba(247, 188, 214, 0.35), transparent 30%),
        linear-gradient(150deg, #fff7fa, #fce9f1 58%, #fffbfd);
}

html[data-theme="fete-nationale"] {
    --surface: #ffffff;
    --surface-alt: #f9fbff;
    --line: #b8c9e6;
    --accent: #004b9d;
    --accent-2: #d5303a;
    --accent-soft: #d6e1f5;
    --page-background:
        radial-gradient(circle at 10% 9%, rgba(0, 75, 157, 0.28), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(213, 48, 58, 0.2), transparent 30%),
        linear-gradient(150deg, #f8fbff, #e9eef9 58%, #fff7f8);
}

html[data-theme="halloween"] {
    --surface: #221720;
    --surface-alt: #2b1d29;
    --text: #f5ebdf;
    --text-muted: #d8c6b4;
    --line: #5a3c35;
    --accent: #d26a19;
    --accent-2: #ff8a1d;
    --accent-soft: #54351f;
    --shadow: 0 18px 46px rgba(8, 4, 8, 0.5);
    --section-alt-bg: linear-gradient(180deg, rgba(34, 23, 32, 0.88), rgba(24, 16, 25, 0.92));
    --header-bg: rgba(22, 15, 24, 0.9);
    --page-background:
        radial-gradient(circle at 10% 10%, rgba(255, 138, 29, 0.26), transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(95, 55, 87, 0.34), transparent 31%),
        linear-gradient(150deg, #130e16, #1f1520 58%, #2a1b23);
}

html[data-theme="noel"] {
    --surface: #fafffb;
    --surface-alt: #eff9f3;
    --line: #b5d8c2;
    --accent: #19753b;
    --accent-2: #c4303c;
    --accent-soft: #d0ebd8;
    --section-alt-bg: linear-gradient(180deg, rgba(250, 255, 251, 0.82), rgba(231, 246, 236, 0.8));
    --header-bg: rgba(244, 253, 247, 0.88);
    --page-background:
        radial-gradient(circle at 10% 8%, rgba(25, 117, 59, 0.24), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(196, 48, 60, 0.2), transparent 32%),
        linear-gradient(150deg, #f4fff7, #e5f5eb 58%, #fff8f9);
}
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "IBM Plex Sans", "Segoe UI", "Trebuchet MS", sans-serif;
    line-height: 1.65;
    background: var(--page-background);
}

h1,
h2,
h3,
h4,
.brand {
    margin-top: 0;
    font-family: "Space Grotesk", "Aptos Display", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
}

h4 {
    margin: 16px 0 8px;
    font-size: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    color: var(--text);
}

.container {
    width: min(1160px, 92vw);
    margin-inline: auto;
}

section[id] {
    scroll-margin-top: 90px;
}


.section {
    padding: 82px 0;
}

.section-alt {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--section-alt-bg);
}

.eyebrow {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(198, 211, 227, 0.75);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-size: 1.03rem;
    color: var(--text);
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.theme-preview-menu {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 190;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.theme-preview-menu label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.theme-preview-menu select {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    padding: 6px 8px;
}

.hero {
    padding-top: 108px;
}

.hero-grid {
    display: grid;
    gap: 22px;
    align-items: center;
    grid-template-columns: 1.45fr 0.95fr;
}

.hero h1 {
    margin: 0;
    line-height: 1.08;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
}

.hero-role {
    margin: 14px 0 6px;
    font-weight: 700;
    color: var(--accent);
}

.hero-intro {
    margin: 8px 0;
    color: var(--text-muted);
    max-width: 68ch;
}

.theme-message {
    margin: 14px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 7px 12px;
}

.theme-message::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-cta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 11px 18px;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px rgba(11, 94, 162, 0.24);
}

.btn-secondary {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
}

.card {
    border: 1px solid rgba(198, 211, 227, 0.95);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface), var(--surface-alt));
    box-shadow: var(--shadow);
    padding: 22px;
}

.card-highlight {
    border-top: 4px solid var(--accent);
}

.cv-meta-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
}

.cv-meta-list li {
    margin-bottom: 8px;
}

body.modal-open {
    overflow: hidden;
}

.map-modal[hidden] {
    display: none !important;
}

.map-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: grid;
    place-items: center;
    padding: 22px;
}

.map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 22, 0.62);
    backdrop-filter: blur(2px);
}

.map-modal-panel {
    position: relative;
    margin: 0;
    width: min(1200px, 96vw);
    height: min(82vh, 760px);
    padding: 14px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    border-top: 4px solid var(--accent);
}

.map-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 2px 4px 0;
}

.map-modal-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.map-modal-close {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
}

.map-modal-close:hover {
    background: var(--surface-alt);
}

.map-modal-close:focus-visible {
    outline: 3px solid rgba(24, 121, 199, 0.22);
    outline-offset: 2px;
}

.map-modal-body {
    min-height: 0;
}

.map-modal-frame {
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #dfe7f2;
}

.metrics-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 18px;
}

.metric-value {
    margin: 0;
    color: var(--accent);
    font-family: "JetBrains Mono", "Cascadia Code", monospace;
    font-size: 1.22rem;
    font-weight: 700;
}

.metric-label {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.section-head {
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.cards-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mastery-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.7fr;
    gap: 18px;
    align-items: start;
}

.mastery-overview {
    position: sticky;
    top: 96px;
    background:
        radial-gradient(circle at 20% 10%, rgba(11, 94, 162, 0.2), transparent 48%),
        linear-gradient(150deg, #ffffff, #eef6ff 68%, #f8fbff);
}

.mastery-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.72rem;
}

.mastery-overview h3 {
    margin: 10px 0;
    font-size: 1.45rem;
}

.mastery-overview p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.mastery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mastery-card {
    border-top: 4px solid #9ec8ef;
    padding: 20px;
}

.mastery-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
}

.mastery-head h3 {
    margin: 0;
    font-size: 1.06rem;
}

.mastery-meter {
    margin-top: 10px;
    height: 8px;
    border-radius: 999px;
    background: #dde7f2;
    overflow: hidden;
}

.mastery-meter span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b5ea2, #2293e7);
}

.mastery-focus {
    margin: 12px 0 10px;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.mastery-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.mastery-list li {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--text-muted);
}

.mastery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e88d7, #0b5ea2);
    margin-top: 7px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bfd4e8;
    border-radius: 8px;
    background: #eef5fd;
    color: #184d78;
    font-size: 0.84rem;
    line-height: 1.2;
    font-weight: 700;
    padding: 2px 10px;
    text-decoration: none;
}

a.skill-chip:hover {
    background: #dcecff;
    text-decoration: none;
}

.competency-tags {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.competency-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bcd3ea;
    border-radius: 8px;
    background: #eef5fe;
    color: #174c79;
    padding: 4px 10px;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
}

.competency-tag:hover {
    background: #dcecff;
}

.competency-tag.is-active,
.competency-tag[aria-pressed="true"] {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.competency-filter-actions {
    margin-bottom: 14px;
}

.competency-clear[hidden] {
    display: none !important;
}
.competency-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.competency-card {
    scroll-margin-top: 96px;
}

.competency-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.competency-head h3 {
    margin: 0;
}

.competency-anchor {
    color: #7c93a9;
    font-weight: 700;
    text-decoration: none;
}

.competency-summary {
    margin: 10px 0 0;
    color: var(--text-muted);
}

.competency-block {
    margin-top: 14px;
}

.bullet-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
}

.bullet-list li {
    margin-bottom: 6px;
}

.bullet-list.compact li {
    margin-bottom: 4px;
}

.linked-exp-list {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.linked-exp-list a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.linked-exp-list a span {
    color: var(--text-muted);
    font-weight: 500;
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(var(--accent-soft), #8ab8e6);
}

.exp-period {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-family: "JetBrains Mono", "Cascadia Code", monospace;
}

.exp-company {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-weight: 600;
}

.exp-keywords {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-keywords a,
.exp-keywords span {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bcd3ea;
    border-radius: 8px;
    background: #eef5fe;
    color: #174c79;
    padding: 4px 10px;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

.exp-keywords a:hover {
    background: #dcecff;
    text-decoration: none;
}

.projects-grid p {
    margin: 9px 0 0;
    color: var(--text-muted);
}

.split-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edu-item + .edu-item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1.1fr;
}

.contact-list {
    padding-left: 18px;
    color: var(--text-muted);
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    font-size: 0.92rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #b7c6d8;
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 10px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(24, 121, 199, 0.2);
    border-color: var(--accent-2);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.honeypot {
    display: none;
}

.form-feedback {
    margin: 2px 0 0;
    min-height: 24px;
    font-weight: 700;
}

.form-feedback.success {
    color: var(--success);
}

.form-feedback.error {
    color: var(--danger);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(246, 249, 253, 0.86);
    padding: 24px 0 38px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.89rem;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1160px) {
    .mastery-layout {
        grid-template-columns: 1fr;
    }

    .mastery-overview {
        position: static;
    }
}

@media (max-width: 1040px) {
    .hero-grid,
    .cards-grid,
    .split-grid,
    .contact-grid,
    .mastery-grid,
    .competency-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .section {
        padding: 66px 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 4vw;
        min-width: 214px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #ffffff;
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .main-nav.open {
        display: flex;
    }

    .theme-preview-menu {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: space-between;
    }

    .theme-preview-menu select {
        min-width: 178px;
    }

    .map-modal {
        padding: 10px;
    }

    .map-modal-panel {
        width: 100%;
        height: 88vh;
        padding: 10px;
    }

    .map-modal-frame {
        min-height: 0;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.mastery-list li span:last-child,
.competency-summary,
.linked-exp-list a,
.exp-keywords a,
.exp-keywords span,
.skill-chip {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.skill-chip {
    max-width: 100%;
    text-align: left;
}

@media print {
    .site-header {
        position: static;
        backdrop-filter: none;
        background: #fff;
    }

    .menu-toggle,
    .theme-effects,
    #contact-form,
    #theme-preview-menu {
        display: none !important;
    }

    .section {
        padding: 26px 0;
    }

    .card {
        box-shadow: none;
        background: #fff;
    }

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









.theme-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 12;
    overflow: hidden;
    opacity: 0.48;
}

.theme-snowflake {
    position: absolute;
    top: -12vh;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(225, 241, 255, 0.92) 60%, rgba(195, 220, 242, 0.5));
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.78);
    opacity: 0;
    animation: snowfall linear infinite;
    will-change: transform, opacity;
}

.theme-frost {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 244, 255, 0.9), rgba(175, 208, 245, 0.35));
    box-shadow: 0 0 7px rgba(184, 225, 255, 0.6);
    opacity: 0;
    animation: frost-drift ease-in-out infinite;
    will-change: transform, opacity;
}

.theme-sunray {
    position: absolute;
    top: -24vh;
    width: 2px;
    height: var(--ray-len, 52vh);
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(255, 248, 210, 0.7), rgba(255, 218, 130, 0.1));
    opacity: 0;
    transform-origin: top center;
    animation: sunray-sweep ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 214, 120, 0.44));
    will-change: transform, opacity;
}

.theme-flower {
    position: absolute;
    top: -14vh;
    width: 20px;
    height: 20px;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23ffd5e8'%3E%3Cellipse cx='50' cy='22' rx='14' ry='21'/%3E%3Cellipse cx='77' cy='38' rx='14' ry='21' transform='rotate(55 77 38)'/%3E%3Cellipse cx='70' cy='70' rx='14' ry='21' transform='rotate(118 70 70)'/%3E%3Cellipse cx='30' cy='70' rx='14' ry='21' transform='rotate(-118 30 70)'/%3E%3Cellipse cx='23' cy='38' rx='14' ry='21' transform='rotate(-55 23 38)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='13' fill='%23ffd24d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 2px 3px rgba(165, 89, 121, 0.28));
    animation: flower-fall linear infinite;
    will-change: transform, opacity;
}

.theme-leaf {
    position: absolute;
    top: -14vh;
    width: 20px;
    height: 20px;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M82 17C52 19 20 45 18 76c-1 13 8 20 19 17 31-8 55-40 57-76 0-9-3-14-12-14z' fill='%23b56a23'/%3E%3Cpath d='M24 70c20-9 37-25 51-47' stroke='%23623a1f' stroke-width='6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 2px 3px rgba(68, 39, 21, 0.34));
    animation: leaf-fall linear infinite;
    will-change: transform, opacity;
}

.theme-heart {
    position: absolute;
    bottom: -12vh;
    width: 14px;
    height: 13px;
    opacity: 0;
    background: #f06195;
    transform: rotate(-45deg);
    border-radius: 3px;
    animation: heart-rise ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(240, 97, 149, 0.52));
    will-change: transform, opacity;
}

.theme-heart::before,
.theme-heart::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 13px;
    background: inherit;
    border-radius: 50%;
}

.theme-heart::before {
    left: 0;
    top: -6px;
}

.theme-heart::after {
    top: 0;
    left: 6px;
}

.theme-spark {
    position: absolute;
    bottom: -8vh;
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 252, 201, 0.9));
    opacity: 0;
    animation: spark-launch linear infinite;
    box-shadow: 0 0 10px rgba(255, 242, 158, 0.62);
    will-change: transform, opacity;
}

.theme-bat {
    position: absolute;
    left: -18vw;
    top: 10vh;
    width: 42px;
    height: 22px;
    opacity: 0;
    transform-origin: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 72'%3E%3Cpath fill='%23170f1b' d='M69 40c-5 0-9 6-9 12 0 8 5 14 10 14s10-6 10-14c0-6-4-12-11-12zm-7-7c4-7 11-13 17-13 7 0 13 6 17 13 7-10 18-18 37-20 1 12-2 23-10 31 8 5 12 11 13 22-16-2-28-9-40-20-5 9-11 15-17 15-5 0-11-6-16-15-12 11-24 18-40 20 1-11 5-17 13-22-8-8-11-19-10-31 19 2 30 10 36 20z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 2px 3px rgba(7, 4, 8, 0.52));
    animation: bat-flight linear infinite;
    will-change: transform, opacity;
}

.theme-bat::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-repeat: no-repeat;
    background-size: contain;
    transform-origin: center;
    animation: bat-flap var(--bat-flap-duration, 0.65s) ease-in-out infinite;
    opacity: 0.62;
}

@keyframes snowfall {
    0% {
        transform: translate3d(0, -12vh, 0) scale(var(--flake-scale, 1)) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: 0.62;
    }

    100% {
        transform: translate3d(var(--flake-drift, 20px), 115vh, 0) scale(var(--flake-scale, 1)) rotate(180deg);
        opacity: 0.08;
    }
}

@keyframes frost-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(var(--frost-scale, 1));
        opacity: 0;
    }

    30% {
        opacity: 0.32;
    }

    100% {
        transform: translate3d(6px, 26px, 0) scale(var(--frost-scale, 1));
        opacity: 0;
    }
}

@keyframes sunray-sweep {
    0% {
        transform: rotate(var(--ray-rot, 0deg)) scaleY(0.84);
        opacity: 0;
    }

    25% {
        opacity: 0.18;
    }

    55% {
        transform: rotate(calc(var(--ray-rot, 0deg) + 3deg)) scaleY(1);
        opacity: 0.24;
    }

    100% {
        transform: rotate(calc(var(--ray-rot, 0deg) - 4deg)) scaleY(0.88);
        opacity: 0;
    }
}

@keyframes flower-fall {
    0% {
        transform: translate3d(0, -14vh, 0) rotate(0deg) scale(var(--flower-scale, 1));
        opacity: 0;
    }

    10% {
        opacity: 0.52;
    }

    100% {
        transform: translate3d(var(--flower-drift, 36px), 116vh, 0) rotate(var(--flower-spin, 180deg)) scale(var(--flower-scale, 1));
        opacity: 0.12;
    }
}

@keyframes leaf-fall {
    0% {
        transform: translate3d(0, -14vh, 0) rotate(0deg) scale(var(--leaf-scale, 1));
        opacity: 0;
    }

    12% {
        opacity: 0.50;
    }

    100% {
        transform: translate3d(var(--leaf-drift, 50px), 114vh, 0) rotate(var(--leaf-spin, 360deg)) scale(var(--leaf-scale, 1));
        opacity: 0.08;
    }
}

@keyframes heart-rise {
    0% {
        transform: translate3d(0, 0, 0) rotate(-45deg) scale(var(--heart-scale, 1));
        opacity: 0;
    }

    22% {
        opacity: 0.62;
    }

    100% {
        transform: translate3d(var(--heart-drift, 14px), -74vh, 0) rotate(-45deg) scale(var(--heart-scale, 1));
        opacity: 0;
    }
}

@keyframes spark-launch {
    0% {
        transform: translate3d(0, 0, 0) scaleY(0.8);
        opacity: 0;
    }

    25% {
        opacity: 0.62;
    }

    100% {
        transform: translate3d(0, calc(-1 * var(--spark-rise, 40vh)), 0) scaleY(1.15);
        opacity: 0;
    }
}

@keyframes bat-flight {
    0% {
        transform: translate3d(-12vw, 0, 0) scale(var(--bat-scale, 1)) rotate(-7deg);
        opacity: 0;
    }

    12% {
        opacity: 0.35;
    }

    52% {
        transform: translate3d(58vw, var(--bat-rise, -22px), 0) scale(var(--bat-scale, 1)) rotate(5deg);
        opacity: 0.46;
    }

    100% {
        transform: translate3d(114vw, var(--bat-fall, 18px), 0) scale(var(--bat-scale, 1)) rotate(-6deg);
        opacity: 0;
    }
}

@keyframes bat-flap {
    0%,
    100% {
        transform: scaleX(1) scaleY(1);
    }

    50% {
        transform: scaleX(1.05) scaleY(0.84);
    }
}


