/* Christmas theme: full-viewport winter gradient background & falling snowflakes. Decorative only. */
html {
    min-height: 100%;
    background:
        radial-gradient(90% 60% at 12% 8%, rgba(56, 189, 248, .11), transparent 65%),
        radial-gradient(75% 55% at 88% 12%, rgba(239, 68, 68, .08), transparent 65%),
        radial-gradient(85% 60% at 50% 92%, rgba(16, 185, 129, .08), transparent 68%),
        linear-gradient(155deg, #0a101b 0%, #0d1626 50%, #090f1a 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

html body,
[data-ship-theme="dark"] body.graphite-client,
[data-ship-theme="dark"] body:has(.ship-home),
.ship-home,
.td-home,
.inner-section,
.profile-part {
    background: transparent !important;
}

html body,
[data-ship-theme="dark"] body.graphite-client {
    min-height: 100vh;
}

/* Blue Santa hat perched on the Ship Xu logo icon */
.graphite-client .td-brand-icon {
    position: relative;
    overflow: visible;
}

.graphite-client .td-brand-icon::after {
    content: "";
    position: absolute;
    top: -12px;
    left: -7px;
    width: 26px;
    height: 22px;
    pointer-events: none;
    z-index: 5;
    transform: rotate(-18deg);
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 30'%3E%3Cpath d='M7,21 C8,10 17,4 28,6 C25,11 25,15 26,21 Z' fill='%230284c7' stroke='%2338bdf8' stroke-width='1.2'/%3E%3Cpath d='M16,6 C21,4 27,5 30,8' fill='none' stroke='%237dd3fc' stroke-width='1.6' stroke-linecap='round'/%3E%3Crect x='4' y='19' width='24' height='6' rx='3' fill='%23f8fafc'/%3E%3Ccircle cx='30' cy='8.5' r='3.5' fill='%23f8fafc'/%3E%3C/svg%3E");
    filter: drop-shadow(0 2px 4px rgba(2, 6, 23, .55));
}

/* Order button icon: Santa Claus riding reindeer sleigh in blue/cyan web style */
.td-home .ship-submit::before {
    content: "" !important;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M3,19 Q8,22 19,20 L22,17' fill='none' stroke='%237dd3fc' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M4,13 L18,13 L16,18 L6,18 Z' fill='%230284c7' stroke='%2338bdf8' stroke-width='.7'/%3E%3Crect x='5' y='9' width='5' height='4' rx='1' fill='%2338bdf8'/%3E%3Cpath d='M7.5,9 V13 M5,11 H10' stroke='%23f8fafc' stroke-width='.9'/%3E%3Ccircle cx='13' cy='9' r='2.5' fill='%23bae6fd'/%3E%3Cpath d='M10.5,13 C10.5,10.5 15.5,10.5 15.5,13 Z' fill='%230ea5e9'/%3E%3Cpath d='M11,7.5 L13,4 L15.5,7.5 Z' fill='%230284c7'/%3E%3Ccircle cx='15.5' cy='4.5' r='1.1' fill='%23f8fafc'/%3E%3Cline x1='17' y1='13' x2='28' y2='12' stroke='%23bae6fd' stroke-width='.9'/%3E%3Cellipse cx='33' cy='14' rx='5.5' ry='3' fill='%230369a1' stroke='%2338bdf8' stroke-width='.7'/%3E%3Ccircle cx='39' cy='10' r='2.3' fill='%230369a1' stroke='%2338bdf8' stroke-width='.7'/%3E%3Ccircle cx='41.3' cy='10' r='1' fill='%237dd3fc'/%3E%3Cpath d='M38,8 L36,4 M38,6 L39.5,4 M40,8 L41.5,4.5' fill='none' stroke='%23e0f2fe' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M29,16 L27,21 M31,16 L31,21 M36,16 L36,21 M38,16 L41,20' stroke='%2338bdf8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.td-home .ship-submit:not(:disabled)::before {
    filter: brightness(.45) contrast(1.25) drop-shadow(0 1px 0 rgba(255, 255, 255, .35));
}

/* Falling snow & snowflakes canvas (sits over viewport, ignores clicks) */
#xmas-snow {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

/* Small toggle to turn snow on/off */
.xmas-toggle {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 10000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, .35);
    background: rgba(15, 23, 42, .75);
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.xmas-toggle:hover { border-color: #38bdf8; }

@media (max-width: 575.98px) {
    .xmas-toggle { bottom: 76px; }
}
