html.theme-winter {
    --box-content-color: rgba(22, 32, 45, 0.95);
    --table-color: rgb(32, 45, 60);
    --box-selected: rgb(45, 75, 105);
    /*--link-color: rgb(130, 205, 255);*/
    --box-header: rgb(16, 26, 38);
    --sender-bubble: rgb(38, 54, 72);
    --receiver-bubble: rgb(28, 65, 85);
    --border-gold: rgb(90, 155, 210);
}

html.theme-winter::before {
    background: url("../images/winter/background.jpg") no-repeat center center !important;
    background-size: 100% 100% !important;
}

html.theme-winter .landing-hero {
    background: linear-gradient(rgba(10, 20, 35, 0.65), rgba(10, 20, 35, 0.65)), url("../images/landing_bg.jpg") center !important;
    background-size: cover !important;
    border-color: var(--border-gold) !important;
}

html.theme-winter .box-header {
    background: linear-gradient(180deg, #2b455e 0%, #152433 100%) !important;
    border-bottom: 2px solid var(--border-gold) !important;
    color: var(--link-color) !important;
}

html.theme-winter .big-box-header {
    border-bottom: 2px solid var(--border-gold) !important;
    color: var(--link-color) !important;
}

html.theme-winter .td-gradient {
    background: linear-gradient(180deg, #283e54 0%, #1a2938 100%) !important;
}

html.theme-winter ::selection {
    background-color: #2b628f;
    color: #ffffff;
}

html.theme-winter .header.img img {
    content: url("../images/winter/header.png");
}

html.theme-winter .box-content-bg {
    background-color: rgb(24, 35, 48) !important;
}

html.theme-winter select:not(:disabled) {
    background-color: var(--table-color) !important;
    border-color: var(--border-gold) !important;
    color: rgb(235, 245, 255) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2382cdff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #2b455e 0%, #152433 100%) !important;
}

html.theme-winter .overlay-modal {
    background-color: rgba(20, 30, 42, 0.98) !important;
    border-color: var(--box-selected) !important;
}

html.theme-winter .overlay-header {
    background: linear-gradient(180deg, #2b455e 0%, #152433 100%) !important;
    border-bottom: 2px solid var(--border-gold) !important;
    color: var(--link-color) !important;
}

html.theme-winter input[type=text],
html.theme-winter input[type=password],
html.theme-winter input[type=email],
html.theme-winter textarea,
html.theme-winter .box-content form input[type="text"],
html.theme-winter .box-content form textarea {
    background-color: #14202d !important;
    border-color: #0b141d !important;
    color: rgb(235, 245, 255) !important;
}

html.theme-winter .popupbox {
    background: linear-gradient(135deg, #1b2c3d 0%, #0d1620 100%) !important;
    border-color: var(--border-gold) !important;
    color: rgb(230, 240, 255) !important;
}

html.theme-winter .info-box-overlay {
    background-color: rgb(18, 28, 38) !important;
    border-color: var(--border-gold) !important;
}

html.theme-winter .mobile-trigger,
html.theme-winter .mobile-nav-arrow,
html.theme-winter .mobile-kingdom-display {
    background: linear-gradient(180deg, #2b455e 0%, #152433 100%) !important;
    border-color: var(--border-gold) !important;
}

html.theme-winter .msg-button {
    background: linear-gradient(180deg, #1e3347 0%, #101c27 100%) !important;
    border-color: var(--box-header) !important;
    border-bottom-color: var(--border-gold) !important;
}

html.theme-winter .msg-button:hover {
    background: linear-gradient(180deg, #2b455e 0%, #152433 100%) !important;
    border-color: var(--border-gold) !important;
}

html.theme-winter .arena-power-sticky {
    background: rgba(18, 28, 38, 0.98) !important;
    border-color: var(--border-gold) !important;
}

/* --- BUTTONS --- */
html.theme-winter input[type=submit]:not(:disabled):not(.btn-delete):not(.btn-accept),
html.theme-winter input[type=button]:not(:disabled):not(.btn-delete):not(.btn-accept),
html.theme-winter button:not(:disabled):not(.btn-accept):not(.btn-logout):not(.btn-stepper):not(.btn-vote-up):not(.btn-vote-down) {
    background: linear-gradient(0deg, #16324a 0%, #25527a 100%) !important;
    border: 2px solid rgba(0, 0, 0, 0.63) !important;
}

html.theme-winter input[type=submit]:focus,
html.theme-winter input[type=button]:focus,
html.theme-winter button:focus {
    outline: none !important;
}

html.theme-winter input[type=submit]:focus-visible,
html.theme-winter input[type=button]:focus-visible,
html.theme-winter button:focus-visible {
    outline: none !important;
    border-color: var(--link-color) !important;
}

/* BUTTON EFFECTS */
html.theme-winter input[type=submit]:not(:disabled):not(.btn-delete):not(.btn-accept):active,
html.theme-winter input[type=button]:not(:disabled):not(.btn-delete):not(.btn-accept):active,
html.theme-winter button:not(:disabled):not(.btn-accept):not(.btn-logout):not(.btn-stepper):not(.btn-vote-up):not(.btn-vote-down):active {
    background: linear-gradient(180deg, #12283b 0%, #1c3e5c 100%) !important;
    border-top-width: 2px !important;
    border-bottom-width: 2px !important;
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    transition: none !important;
    color: rgba(240, 240, 240, 0.8) !important;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px -1px 0 rgba(0, 0, 0, 0.5), -1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5) !important;
}

html.theme-winter .map-viewport,
html.theme-winter #map-container,
html.theme-winter .minimap-container {
    background-color: #0d1620 !important;
}

html.theme-winter #map-loader {
    background-image: radial-gradient(circle, #1e2e40 0%, #0d1620 100%) !important;
}

html.theme-winter .key-badge {
    background: linear-gradient(180deg, #2b455e 0%, #152433 100%) !important;
    border-color: var(--border-gold) !important;
}

html.theme-winter input:-webkit-autofill,
html.theme-winter input:-webkit-autofill:hover,
html.theme-winter input:-webkit-autofill:focus,
html.theme-winter input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #14202d inset !important;
    box-shadow: 0 0 0 1000px #14202d inset !important;
}

html.theme-winter .maintenance-box {
    background: rgba(22, 32, 45, 0.95) !important;
    border-color: var(--border-gold) !important;
}

@media (hover: none) {
    html.theme-winter input[type=submit]:focus,
    html.theme-winter input[type=button]:focus,
    html.theme-winter button:focus {
        border-color: rgba(0, 0, 0, 0.63) !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    html.theme-winter input[type=submit]:not(:disabled):not(.btn-delete):not(.btn-accept):hover,
    html.theme-winter input[type=button]:not(:disabled):not(.btn-delete):not(.btn-accept):hover,
    html.theme-winter button:not(:disabled):not(.btn-accept):not(.btn-logout):not(.btn-stepper):not(.btn-vote-up):not(.btn-vote-down):hover {
        background: #2e6698 !important;
    }

    html.theme-winter input[type=submit]:not(:disabled):not(.btn-delete):not(.btn-accept):active,
    html.theme-winter input[type=button]:not(:disabled):not(.btn-delete):not(.btn-accept):active,
    html.theme-winter button:not(:disabled):not(.btn-accept):not(.btn-logout):not(.btn-stepper):not(.btn-vote-up):not(.btn-vote-down):active {
        background: #193f63 !important;
    }

    html.theme-winter input.btn-delete:not(:disabled):hover {
        background-color: #d12c2c !important;
    }

    html.theme-winter input.btn-accept:not(:disabled):hover {
        background-color: #1ca34c !important;
    }
}

@media screen and (max-width: 600px) {
    html.theme-winter::before {
        background-size: cover !important;
        background-position: 35% 65% !important;
    }

    html.theme-winter input[type=submit]:not(:disabled):not(.btn-delete):not(.btn-accept):active,
    html.theme-winter input[type=button]:not(:disabled):not(.btn-delete):not(.btn-accept):active,
    html.theme-winter button:not(:disabled):not(.btn-accept):not(.btn-logout):not(.btn-stepper):not(.btn-vote-up):not(.btn-vote-down):active {
        background: linear-gradient(180deg, #1e3e5c 0%, #25527a 100%) !important;
        border-top-width: 2px !important;
        border-bottom-width: 2px !important;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
        transform: none;
        -webkit-appearance: none;
        transition: box-shadow 0.01s ease, background 0.01s ease !important;
    }
}