body.event-valentine {
    --event-primary: #ff4f8f;
    --event-secondary: #ffd1dc;
    --event-accent: #ff8fb3;
    --event-text: #fff4f8;
    --event-muted: #ffd6e4;
    --event-panel: rgba(42, 12, 31, .72);
    --event-panel-strong: rgba(65, 18, 45, .84);
    --event-glow: rgba(255, 79, 143, .24);
    --event-bg: radial-gradient(circle at 20% 10%, rgba(255, 79, 143, .18), transparent 26%), linear-gradient(135deg, #190714 0%, #331025 44%, #0a101f 100%);
}

body.event-easter {
    --event-primary: #79d66b;
    --event-secondary: #ffe58a;
    --event-accent: #7ad7ff;
    --event-text: #f3fff0;
    --event-muted: #d9f7c8;
    --event-panel: rgba(9, 34, 26, .72);
    --event-panel-strong: rgba(18, 51, 31, .84);
    --event-glow: rgba(121, 214, 107, .22);
    --event-bg: radial-gradient(circle at 18% 12%, rgba(255, 229, 138, .18), transparent 25%), linear-gradient(135deg, #071a16 0%, #12331f 46%, #0a1626 100%);
}

body.event-halloween {
    --event-primary: #ff7a1a;
    --event-secondary: #7b3cff;
    --event-accent: #ffd166;
    --event-text: #fff1df;
    --event-muted: #ffcf9f;
    --event-panel: rgba(25, 12, 26, .66);
    --event-panel-strong: rgba(45, 19, 37, .78);
    --event-glow: rgba(255, 122, 26, .24);
    --event-bg: radial-gradient(circle at 18% 8%, rgba(255, 122, 26, .16), transparent 28%), linear-gradient(135deg, #100814 0%, #231129 44%, #070b13 100%);
}

body.event-christmas {
    --event-primary: #e3303f;
    --event-secondary: #1fb86a;
    --event-accent: #f4c95d;
    --event-text: #fff7ed;
    --event-muted: #d7f4d8;
    --event-panel: rgba(10, 31, 25, .72);
    --event-panel-strong: rgba(34, 44, 28, .84);
    --event-glow: rgba(244, 201, 93, .22);
    --event-bg: radial-gradient(circle at 18% 10%, rgba(244, 201, 93, .16), transparent 26%), linear-gradient(135deg, #0a1512 0%, #1d2e20 42%, #19090c 100%);
}

body.event-newyear {
    --event-primary: #f6d365;
    --event-secondary: #62d6ff;
    --event-accent: #ffffff;
    --event-text: #f8fbff;
    --event-muted: #c9e8ff;
    --event-panel: rgba(8, 14, 31, .72);
    --event-panel-strong: rgba(17, 27, 53, .84);
    --event-glow: rgba(246, 211, 101, .24);
    --event-bg: radial-gradient(circle at 20% 10%, rgba(98, 214, 255, .16), transparent 25%), linear-gradient(135deg, #060914 0%, #111b35 48%, #070b16 100%);
}

body.event-standard {
    --event-primary: #0087ff;
    --event-secondary: #00c8ff;
    --event-accent: #7ed5ff;
    --event-text: #e8f4ff;
    --event-muted: #9db6d3;
    --event-panel: rgba(8, 17, 32, .78);
    --event-panel-strong: rgba(8, 17, 32, .88);
    --event-glow: rgba(0, 157, 255, .22);
    --event-bg: linear-gradient(135deg, #050b16 0%, #081120 52%, #0c1d36 100%);
}

body.event-standard,
body.event-valentine,
body.event-easter,
body.event-halloween,
body.event-christmas,
body.event-newyear {
    position: relative;
    isolation: isolate;
    background: var(--event-bg), #050b16;
    color: var(--event-text);
}

body.event-standard .hero,
body.event-valentine .hero,
body.event-easter .hero,
body.event-halloween .hero,
body.event-christmas .hero,
body.event-newyear .hero,
body.event-valentine .news-ticker,
body.event-easter .news-ticker,
body.event-halloween .news-ticker,
body.event-christmas .news-ticker,
body.event-newyear .news-ticker,
body.event-valentine .main-grid,
body.event-easter .main-grid,
body.event-halloween .main-grid,
body.event-christmas .main-grid,
body.event-newyear .main-grid {
    position: relative;
    z-index: 1;
}

body.event-standard .hero,
body.event-valentine .hero,
body.event-easter .hero,
body.event-halloween .hero,
body.event-christmas .hero,
body.event-newyear .hero {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: rgba(7, 19, 37, .82);
}

body.event-standard .hero,
body.event-standard .news-ticker,
body.event-standard .main-grid {
    position: relative;
    z-index: 1;
}

body.event-standard .header,
body.event-valentine .header,
body.event-easter .header,
body.event-halloween .header,
body.event-christmas .header,
body.event-newyear .header {
    position: relative;
    z-index: 10000;
    overflow: visible;
}

body.event-standard .user-menu,
body.event-valentine .user-menu,
body.event-easter .user-menu,
body.event-halloween .user-menu,
body.event-christmas .user-menu,
body.event-newyear .user-menu {
    z-index: 10010;
}

body.event-standard .um-dropdown,
body.event-valentine .um-dropdown,
body.event-easter .um-dropdown,
body.event-halloween .um-dropdown,
body.event-christmas .um-dropdown,
body.event-newyear .um-dropdown {
    z-index: 10020;
}

body.event-standard .voting-tab,
body.event-valentine .voting-tab,
body.event-easter .voting-tab,
body.event-halloween .voting-tab,
body.event-christmas .voting-tab,
body.event-newyear .voting-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9300;
}

.event-page-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: .92;
}

.event-page-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 11, 22, .18), rgba(5, 11, 22, .42));
}

body.event-standard::before,
body.event-valentine::before,
body.event-easter::before,
body.event-halloween::before,
body.event-christmas::before,
body.event-newyear::before {
    content: none;
}

body.event-standard .header,
body.event-valentine .header,
body.event-easter .header,
body.event-halloween .header,
body.event-christmas .header,
body.event-newyear .header {
    background: linear-gradient(90deg, var(--event-panel-strong), rgba(5, 11, 22, .50));
    color: var(--event-text);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}

body.event-standard .header,
body.event-valentine .header,
body.event-easter .header,
body.event-halloween .header,
body.event-christmas .header,
body.event-newyear .header,
body.event-standard .card,
body.event-valentine .card,
body.event-easter .card,
body.event-halloween .card,
body.event-christmas .card,
body.event-newyear .card,
body.event-standard .footer,
body.event-valentine .footer,
body.event-easter .footer,
body.event-halloween .footer,
body.event-christmas .footer,
body.event-newyear .footer {
    border-color: var(--event-primary);
    box-shadow: 0 14px 36px var(--event-glow);
}

body.event-standard .footer,
body.event-valentine .footer,
body.event-easter .footer,
body.event-halloween .footer,
body.event-christmas .footer,
body.event-newyear .footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
}

body.event-standard .card,
body.event-valentine .card,
body.event-easter .card,
body.event-halloween .card,
body.event-christmas .card,
body.event-newyear .card,
body.event-standard .news-ticker,
body.event-valentine .news-ticker,
body.event-easter .news-ticker,
body.event-halloween .news-ticker,
body.event-christmas .news-ticker,
body.event-newyear .news-ticker,
body.event-standard .ticker-box,
body.event-valentine .ticker-box,
body.event-easter .ticker-box,
body.event-halloween .ticker-box,
body.event-christmas .ticker-box,
body.event-newyear .ticker-box,
body.event-standard input,
body.event-valentine input,
body.event-easter input,
body.event-halloween input,
body.event-christmas input,
body.event-newyear input,
body.event-standard textarea,
body.event-valentine textarea,
body.event-easter textarea,
body.event-halloween textarea,
body.event-christmas textarea,
body.event-newyear textarea,
body.event-standard select,
body.event-valentine select,
body.event-easter select,
body.event-halloween select,
body.event-christmas select,
body.event-newyear select {
    background: linear-gradient(135deg, var(--event-panel), rgba(255, 255, 255, .08));
    color: var(--event-text);
    border-color: var(--event-primary);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

body.event-standard .footer,
body.event-valentine .footer,
body.event-easter .footer,
body.event-halloween .footer,
body.event-christmas .footer,
body.event-newyear .footer,
body.event-standard .um-dropdown,
body.event-valentine .um-dropdown,
body.event-easter .um-dropdown,
body.event-halloween .um-dropdown,
body.event-christmas .um-dropdown,
body.event-newyear .um-dropdown,
body.event-standard .cookie-banner,
body.event-valentine .cookie-banner,
body.event-easter .cookie-banner,
body.event-halloween .cookie-banner,
body.event-christmas .cookie-banner,
body.event-newyear .cookie-banner {
    background: linear-gradient(135deg, var(--event-panel), rgba(255, 255, 255, .08));
    border-color: var(--event-primary);
    color: var(--event-text);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}

body.event-standard .um-dropdown,
body.event-valentine .um-dropdown,
body.event-easter .um-dropdown,
body.event-halloween .um-dropdown,
body.event-christmas .um-dropdown,
body.event-newyear .um-dropdown {
    background: linear-gradient(145deg, rgba(3, 8, 16, .97), rgba(8, 17, 32, .94));
    box-shadow: 0 22px 58px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
}

body.event-standard .um-dropdown-head,
body.event-valentine .um-dropdown-head,
body.event-easter .um-dropdown-head,
body.event-halloween .um-dropdown-head,
body.event-christmas .um-dropdown-head,
body.event-newyear .um-dropdown-head {
    background: rgba(0, 0, 0, .24);
}

body.event-standard p,
body.event-valentine p,
body.event-easter p,
body.event-halloween p,
body.event-christmas p,
body.event-newyear p,
body.event-standard .card span,
body.event-valentine .card span,
body.event-easter .card span,
body.event-halloween .card span,
body.event-christmas .card span,
body.event-newyear .card span,
body.event-standard .nav a,
body.event-valentine .nav a,
body.event-easter .nav a,
body.event-halloween .nav a,
body.event-christmas .nav a,
body.event-newyear .nav a,
body.event-standard .um-dropdown-body a,
body.event-valentine .um-dropdown-body a,
body.event-easter .um-dropdown-body a,
body.event-halloween .um-dropdown-body a,
body.event-christmas .um-dropdown-body a,
body.event-newyear .um-dropdown-body a {
    color: var(--event-muted);
}

body.event-standard h1,
body.event-valentine h1,
body.event-easter h1,
body.event-halloween h1,
body.event-christmas h1,
body.event-newyear h1,
body.event-standard h2,
body.event-valentine h2,
body.event-easter h2,
body.event-halloween h2,
body.event-christmas h2,
body.event-newyear h2,
body.event-standard h3,
body.event-valentine h3,
body.event-easter h3,
body.event-halloween h3,
body.event-christmas h3,
body.event-newyear h3,
body.event-standard .card-title,
body.event-valentine .card-title,
body.event-easter .card-title,
body.event-halloween .card-title,
body.event-christmas .card-title,
body.event-newyear .card-title,
body.event-standard .ticker-title,
body.event-valentine .ticker-title,
body.event-easter .ticker-title,
body.event-halloween .ticker-title,
body.event-christmas .ticker-title,
body.event-newyear .ticker-title,
body.event-standard #clock,
body.event-valentine #clock,
body.event-easter #clock,
body.event-halloween #clock,
body.event-christmas #clock,
body.event-newyear #clock,
body.event-standard .weather-temp,
body.event-valentine .weather-temp,
body.event-easter .weather-temp,
body.event-halloween .weather-temp,
body.event-christmas .weather-temp,
body.event-newyear .weather-temp,
body.event-standard .time,
body.event-valentine .time,
body.event-easter .time,
body.event-halloween .time,
body.event-christmas .time,
body.event-newyear .time {
    color: var(--event-accent);
}

body.event-standard .nav a.active,
body.event-valentine .nav a.active,
body.event-easter .nav a.active,
body.event-halloween .nav a.active,
body.event-christmas .nav a.active,
body.event-newyear .nav a.active,
body.event-standard .card-title i,
body.event-valentine .card-title i,
body.event-easter .card-title i,
body.event-halloween .card-title i,
body.event-christmas .card-title i,
body.event-newyear .card-title i {
    color: var(--event-accent);
}

body.event-standard .nav a:hover,
body.event-valentine .nav a:hover,
body.event-easter .nav a:hover,
body.event-halloween .nav a:hover,
body.event-christmas .nav a:hover,
body.event-newyear .nav a:hover,
body.event-standard .nav .active,
body.event-valentine .nav .active,
body.event-easter .nav .active,
body.event-halloween .nav .active,
body.event-christmas .nav .active,
body.event-newyear .nav .active,
body.event-standard .login-btn:hover,
body.event-valentine .login-btn:hover,
body.event-easter .login-btn:hover,
body.event-halloween .login-btn:hover,
body.event-christmas .login-btn:hover,
body.event-newyear .login-btn:hover {
    background: linear-gradient(135deg, var(--event-primary), var(--event-secondary));
    color: #06101f;
    box-shadow: 0 0 22px var(--event-glow);
}

body.event-standard .login-btn,
body.event-valentine .login-btn,
body.event-easter .login-btn,
body.event-halloween .login-btn,
body.event-christmas .login-btn,
body.event-newyear .login-btn,
body.event-standard .um-trigger,
body.event-valentine .um-trigger,
body.event-easter .um-trigger,
body.event-halloween .um-trigger,
body.event-christmas .um-trigger,
body.event-newyear .um-trigger,
body.event-standard .um-avatar,
body.event-valentine .um-avatar,
body.event-easter .um-avatar,
body.event-halloween .um-avatar,
body.event-christmas .um-avatar,
body.event-newyear .um-avatar,
body.event-standard .onair-avatar,
body.event-valentine .onair-avatar,
body.event-easter .onair-avatar,
body.event-halloween .onair-avatar,
body.event-christmas .onair-avatar,
body.event-newyear .onair-avatar {
    border-color: var(--event-primary);
    color: var(--event-accent);
}

body.event-standard .hero-overlay,
body.event-valentine .hero-overlay,
body.event-easter .hero-overlay,
body.event-halloween .hero-overlay,
body.event-christmas .hero-overlay,
body.event-newyear .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .03) 54%, var(--event-panel-strong) 100%);
}

body.event-standard .primary-btn,
body.event-valentine .primary-btn,
body.event-easter .primary-btn,
body.event-halloween .primary-btn,
body.event-christmas .primary-btn,
body.event-newyear .primary-btn,
body.event-standard .cookie-btn--primary,
body.event-valentine .cookie-btn--primary,
body.event-easter .cookie-btn--primary,
body.event-halloween .cookie-btn--primary,
body.event-christmas .cookie-btn--primary,
body.event-newyear .cookie-btn--primary {
    background: linear-gradient(90deg, var(--event-primary), var(--event-secondary));
    color: #06101f;
}

.event-design-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.event-design-flyer {
    position: absolute;
    top: -12vh;
    left: var(--event-x, 50vw);
    width: var(--event-size, 72px);
    height: var(--event-size, 72px);
    object-fit: contain;
    opacity: var(--event-opacity, .76);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .32));
    animation: event-float var(--event-duration, 18s) linear var(--event-delay, 0s) infinite;
    transform: translate3d(0, -12vh, 0) rotate(0deg);
}

.event-design-hexe {
    position: absolute;
    top: var(--event-y, 12vh);
    left: 50vw;
    width: var(--event-size, 170px);
    height: auto;
    max-height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .32)) drop-shadow(0 0 16px rgba(123, 60, 255, .45));
    opacity: var(--event-opacity, .9);
    transform-origin: center center;
}

.event-design-hexe--rtl {
    animation: event-hexe-fly-rtl 9s ease-in-out infinite;
}

.event-design-hexe--ltr {
    animation: event-hexe-fly-ltr 9s ease-in-out infinite;
}

@keyframes event-hexe-fly-rtl {
    0% {
        left: 110vw;
        transform: translate3d(0, 0, 0) scaleX(-1) scale(1);
        opacity: 0;
    }
    18% {
        opacity: 0.9;
    }
    50% {
        left: 50vw;
        transform: translate3d(0, 0, 0) scaleX(-1) scale(1.05);
        opacity: 1;
    }
    82% {
        opacity: 0.9;
    }
    100% {
        left: -24vw;
        transform: translate3d(0, 0, 0) scaleX(-1) scale(1.08);
        opacity: 0;
    }
}

@keyframes event-hexe-fly-ltr {
    0% {
        left: -24vw;
        transform: translate3d(0, 0, 0) scaleX(1) scale(1.08);
        opacity: 0;
    }
    18% {
        opacity: 0.9;
    }
    50% {
        left: 50vw;
        transform: translate3d(0, 0, 0) scaleX(1) scale(1.05);
        opacity: 1;
    }
    82% {
        opacity: 0.9;
    }
    100% {
        left: 110vw;
        transform: translate3d(0, 0, 0) scaleX(1) scale(1);
        opacity: 0;
    }
}

.event-design-heart {
    width: calc(var(--event-size, 72px) * .78);
    height: calc(var(--event-size, 72px) * .78);
    margin-top: 10px;
    border-radius: 4px 4px 10px 4px;
    background: #f04f75;
    box-shadow: 0 0 16px rgba(255, 88, 126, .58), 0 10px 18px rgba(0, 0, 0, .28);
    transform: translate3d(0, -12vh, 0) rotate(-45deg);
}

.event-design-heart::before,
.event-design-heart::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f04f75;
}

.event-design-heart::before {
    left: 0;
    top: -50%;
}

.event-design-heart::after {
    left: 50%;
    top: 0;
}

.event-design-egg {
    border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
    background: linear-gradient(135deg, #fff1a8 0 35%, #ff9cc1 36% 65%, #9edcff 66% 100%);
    box-shadow: 0 0 16px rgba(255, 220, 123, .5), 0 10px 18px rgba(0, 0, 0, .28);
}

.event-design-confetti {
    width: calc(var(--event-size, 72px) * .32);
    border-radius: 3px;
    background: #62d6ff;
    box-shadow: 0 0 12px rgba(98, 214, 255, .62);
    transform: translate3d(0, -12vh, 0) rotate(24deg);
}

.event-design-star {
    clip-path: polygon(50% 0%, 61% 37%, 100% 38%, 69% 60%, 79% 100%, 50% 75%, 21% 100%, 31% 60%, 0% 38%, 39% 37%);
    background: #f6d365;
    filter: drop-shadow(0 0 8px rgba(246, 211, 101, .78));
}

.event-design-snow {
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 10px rgba(255, 255, 255, .72);
    filter: none;
}

.event-design-gift {
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 0 42%, rgba(255, 238, 180, .95) 43% 57%, transparent 58% 100%),
        linear-gradient(0deg, transparent 0 42%, rgba(255, 238, 180, .95) 43% 57%, transparent 58% 100%),
        linear-gradient(135deg, #b3122c, #e3303f 52%, #871020);
    box-shadow: 0 12px 22px rgba(0, 0, 0, .3), inset 0 -8px 14px rgba(80, 0, 0, .22);
}

.event-design-gift::before,
.event-design-gift::after {
    content: "";
    position: absolute;
    top: -18%;
    width: 34%;
    height: 28%;
    border: 3px solid rgba(255, 238, 180, .95);
    border-radius: 50% 50% 0 50%;
}

.event-design-gift::before {
    left: 18%;
    transform: rotate(-24deg);
}

.event-design-gift::after {
    right: 18%;
    transform: rotate(24deg) scaleX(-1);
}

@keyframes event-float {
    0% {
        transform: translate3d(0, -14vh, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(var(--event-drift, 70px), 54vh, 0) rotate(180deg);
    }
    100% {
        transform: translate3d(calc(var(--event-drift, 70px) * -1), 116vh, 0) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-design-flyer {
        animation: none;
        opacity: .28;
    }
}

@media (max-width: 720px) {
    .event-design-flyer {
        width: calc(var(--event-size, 72px) * .72);
        height: calc(var(--event-size, 72px) * .72);
    }
}
