:root {
    --gold: #D4AF37;
    --gold-bright: #FFD700;
    --gold-muted: #c9a24b;
    --xmas-crimson: #c81e3a;
    --xmas-crimson-deep: #7f1224;
    --xmas-pine: #0d3b2e;
    --xmas-emerald: #15803d;
    --xmas-snow: #f8fcff;
    --xmas-ice: #bae6fd;
    --black: #040a12;
    --dark-bg: #040a12;
    --charcoal: #08131e;
}

body {
    background:
        radial-gradient(ellipse 80% 50% at 15% 10%, rgba(16, 78, 59, 0.28), transparent 65%),
        radial-gradient(ellipse 70% 45% at 85% 18%, rgba(139, 21, 45, 0.22), transparent 65%),
        radial-gradient(ellipse 90% 60% at 50% 100%, rgba(14, 42, 68, 0.35), transparent 70%),
        linear-gradient(180deg, #030811 0%, #07131f 48%, #071214 100%) !important;
    background-attachment: fixed;
    background-color: var(--black);
}

/* Canvas Layering: Stars (-2) < 3D Scene (-1) < Snow (0) < Content (1) */
#christmas-stars-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

#christmas-snow-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

canvas#bg-canvas,
canvas#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

section,
footer,
.xmas-content-layer {
    position: relative;
    z-index: 1;
}

/* Translucent Festive Bands so Stars & Snowfall Remain Visible */
.xmas-section-alt {
    background: linear-gradient(180deg, rgba(6, 20, 24, 0.72), rgba(14, 10, 18, 0.72)) !important;
    border-top: 1px solid rgba(186, 230, 253, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.xmas-belt {
    background: rgba(5, 13, 22, 0.78) !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
    backdrop-filter: blur(8px);
}

footer {
    background: linear-gradient(180deg, rgba(4, 11, 18, 0.82), rgba(7, 16, 18, 0.92)) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
}

/* Navbar & Twinkling Fairy Lights (never overflow:hidden so dropdowns stay visible) */
.glass-navbar {
    position: relative;
    background: rgba(7, 18, 28, 0.82) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(224, 242, 254, 0.35) !important;
}

.xmas-lights-bar {
    position: absolute;
    top: -3px;
    left: 18px;
    right: 18px;
    height: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 20;
}

.xmas-bulb {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.45;
    animation: xmas-twinkle var(--twinkle-dur, 2.2s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
}

.xmas-bulb--gold {
    background-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.95), 0 0 14px rgba(255, 215, 0, 0.55);
}

.xmas-bulb--crimson {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.95), 0 0 14px rgba(200, 30, 58, 0.6);
}

.xmas-bulb--emerald {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.95), 0 0 14px rgba(21, 128, 61, 0.6);
}

.xmas-bulb--ice {
    background-color: #bae6fd;
    box-shadow: 0 0 8px rgba(186, 230, 253, 0.95), 0 0 14px rgba(125, 211, 252, 0.55);
}

@keyframes xmas-twinkle {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.85);
    }
    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

.dropdown-menu {
    background: rgba(7, 19, 26, 0.94) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(13, 59, 46, 0.25) !important;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(200, 30, 58, 0.16), rgba(212, 175, 55, 0.14)) !important;
    color: var(--gold-bright) !important;
}

/* Frosted Glass Tiles & Upper-Edge Snowdrifts */
.glass-card,
.widget-container,
.snow-tile {
    position: relative;
    background: linear-gradient(180deg, rgba(16, 30, 42, 0.72) 0%, rgba(10, 18, 26, 0.72) 100%) !important;
    border: 1px solid rgba(186, 230, 253, 0.22) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.glass-card:hover,
.widget-container:hover,
.snow-tile:hover {
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 28px rgba(200, 30, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.snow-tile-sm {
    position: relative;
    background: linear-gradient(180deg, rgba(14, 28, 40, 0.78) 0%, rgba(8, 15, 22, 0.78) 100%) !important;
    border: 1px solid rgba(186, 230, 253, 0.2) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.glass-card::before,
.widget-container::before,
.snow-tile::before,
.snow-tile-sm::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 22px;
    pointer-events: none;
    z-index: 15;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='sg1' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='55%25' stop-color='%23eef7ff'/%3E%3Cstop offset='100%25' stop-color='%23cde6ff' stop-opacity='0.88'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,0 L400,0 L400,11 C382,19 366,7 346,14 C324,22 308,9 286,13 C265,17 248,25 224,14 C204,5 186,21 162,15 C140,10 122,22 98,13 C76,5 58,19 34,12 C18,8 8,15 0,10 Z' fill='url(%23sg1)'/%3E%3Cpath d='M0,0 L400,0 L400,4 C340,6 270,3 200,5 C120,7 60,3 0,5 Z' fill='%23ffffff' fill-opacity='0.9'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 3px 6px rgba(186, 230, 253, 0.35));
}

.glass-card:nth-child(even)::before,
.snow-tile:nth-child(even)::before,
.snow-tile-sm:nth-child(even)::before {
    transform: scaleX(-1);
}

.glass-card:nth-child(3n)::before,
.snow-tile:nth-child(3n)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='sg2' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='60%25' stop-color='%23edf6ff'/%3E%3Cstop offset='100%25' stop-color='%23c7e2ff' stop-opacity='0.88'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,0 L400,0 L400,9 C376,14 358,23 334,13 C312,4 292,18 268,14 C244,10 226,6 202,16 C180,25 156,11 132,14 C108,17 88,6 64,15 C42,23 20,9 0,13 Z' fill='url(%23sg2)'/%3E%3Cpath d='M0,0 L400,0 L400,4 C320,3 250,6 180,4 C100,2 40,5 0,4 Z' fill='%23ffffff' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.snow-tile-sm::before {
    height: 12px;
}

.snow-tile-video::before {
    height: 14px;
}

/* Keep Logo Frost Glow & Interactive Accents */
.logo-coin {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45)) drop-shadow(0 0 14px rgba(186, 230, 253, 0.25)) !important;
}

.btn-gold {
    background: linear-gradient(45deg, #996515, #D4AF37, #e5c158);
    color: #050a10;
    font-weight: 600;
}

.btn-gold:hover {
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.45), 0 0 14px rgba(200, 30, 58, 0.25) !important;
    transform: scale(1.02);
}

.spacer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--xmas-crimson), var(--gold), var(--xmas-ice), transparent) !important;
    opacity: 0.45 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #040a12;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(200, 30, 58, 0.65), rgba(212, 175, 55, 0.7));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
