/* Responsive page-width value kept as a variable (it changes at breakpoints below);
   all colours/fonts are now literal values on each element. */
:root { --wrapper-w: 1400px; }

html, body {
    padding: 0;
    color: #d8ccba;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: #609dcb;
    text-decoration: none;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

a:hover { color: #87c0ec; text-shadow: 0 0 10px rgba(135, 192, 236, 0.45); }
a:focus, a:active { outline: 0; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    color: #87c0ec;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}

h1 { display: none; }
p { margin: 0 0 14px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
input, button, select, textarea { font-family: inherit; font-size: inherit;  }

.flex { display: flex; }
.flex-s { display: flex; justify-content: space-between; }
.flex-s-c { display: flex; justify-content: space-between; align-items: center; }
.flex-c-c { display: flex; justify-content: center; align-items: center; }
.show2 { display: inline-block !important; }
.hidden { display: none !important; visibility: hidden !important; }

#navbar {
    width: 100%;
    position: relative;
    height: 60px;
    background: linear-gradient(180deg, rgba(8, 6, 12, 0.95), rgba(14, 11, 18, 0.85));
    border-bottom: 1px solid rgba(96, 157, 203, 0.18);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
    z-index: 30;
}

#navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 157, 203, 0.35), transparent);
    pointer-events: none;
}

#navbar .menu,
#navbar > ul,
#navbar nav > ul {
    max-width: var(--wrapper-w);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

#navbar li { list-style: none; }

#navbar a, #navbar .menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    color: #d8ccba;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

#navbar a::after, #navbar .menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #609dcb, transparent);
    transition: width 0.25s ease;
}

#navbar a:hover, #navbar .menu a:hover { color: #87c0ec; }
#navbar a:hover::after, #navbar .menu a:hover::after { width: 70%; }
#navbar .active a, #navbar a.active, #navbar .menu a.active { color: #87c0ec; }
#navbar .active a::after, #navbar a.active::after, #navbar .menu a.active::after { width: 70%; }

.wrapper_web {
    margin: 0 auto;
    position: relative;
}

.header_web {
    position: relative;
}

.header_web::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.logo a {
    top: auto !important;
    left: auto !important;
    text-align: center;
}

.logo a img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    animation: hero-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

#gGST_Wrap {
    position: absolute !important;
    left: 30px !important;
    top: 20px !important;
    width: 280px;
    height: 50px;
    z-index: 6;
    background: linear-gradient(180deg, rgba(8, 6, 12, 0.9), rgba(14, 11, 18, 0.7));
    border: 1px solid rgba(96, 157, 203, 0.18);
    border-radius: 2px;
    font: normal 11px/1.4 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #609dcb !important;
    padding: 4px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

#gGST_Wrap span {
    float: none !important;
    width: auto !important;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #6b6358;
    text-transform: uppercase;
}

#gGST_Wrap [id^="tLocal"],
#gGST_Wrap [id^="tServer"] {
    color: #87c0ec !important;
    font-weight: 600;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    letter-spacing: 0.04em;
}

.embers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.embers-1, .embers-2, .embers-3 {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(135, 192, 236, 0.8) 0%, rgba(135, 192, 236, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    animation: ember-rise 7s linear infinite;
}

.embers-1 { left: 20%; bottom: 0; animation-delay: 0s; }
.embers-2 { left: 45%; bottom: 0; animation-delay: 2s; }
.embers-3 { left: 70%; bottom: 0; animation-delay: 4s; }
.embers-d-1 { left: 32%; animation-delay: 1.4s; }
.embers-d-2 { left: 58%; animation-delay: 3.2s; }
.embers-d-3 { left: 82%; animation-delay: 5s; }

@keyframes ember-rise {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    15% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(-380px) translateX(40px) scale(1.4); }
}

.container_web {
    min-height: 700px;
    display: flex;
    background: transparent !important;
    position: relative;
}

.container_web::before { display: none !important; }

.left-sidebar.sidebar {  flex-shrink: 0; }
.right-sidebar.sidebar {  flex-shrink: 0; }
.content {  min-width: 0; }
.content.fullwidth { width: 100%; }
.container_web.no-sidebars { flex-direction: column; }
.container_web.no-sidebars .content.fullwidth { width: 100%; }

.download-block {
    position: relative;
    background: url(../img/bwm/buttons/btn-large-red-glow.png) center / 100% 100% no-repeat;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7));
    transition: filter 0.25s ease, transform 0.12s ease;
}

.download-block:hover { filter: drop-shadow(0 8px 24px rgba(226, 130, 58, 0.45)) brightness(1.1); }

.download-block a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #87c0ec;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
    text-decoration: none;
}

.download-block a span { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.download-block a b {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.16em;
    color: #d8ccba;
    opacity: 0.78;
    text-transform: uppercase;
    margin-top: 4px;
}

.widget {
    margin-bottom: 22px;
    border-top: 1px solid rgba(96, 157, 203, 0.45);
}

.widget::before, .widget::after {
    position: absolute;
    width: 28px;
    height: 28px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.widget::before { top: -3px; left: -3px; background-image: url(../img/bwm/decorations/deco-corner-tl-01.png); }
.widget::after { bottom: -3px; right: -3px; background-image: url(../img/bwm/decorations/deco-corner-bl-01.png); transform: rotate(180deg); }

.widget-title {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 14px;
}

.widget-title span {
    display: block;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.widget-title a {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.widget-title a:hover { color: #87c0ec; }

.login-block .widget-title { margin-bottom: 18px; }

.login-block .l-input {
    position: relative;
    padding: 0;
}

.login-block .l-input input:focus {
    outline: 0;
}

.login-block .login.l-input::before,
.login-block .pass.l-input::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

.login-block .login.l-input::before { background-image: url(../img/bwm/icons/icon-profile.png); }
.login-block .pass.l-input::before { background-image: url(../img/bwm/icons/icon-lock.png); }

.login-block .buttons {
    justify-content: space-between;
}

.login-block .lost { font-size: 11px;  letter-spacing: 0.06em; text-decoration: none; }

.button-border,
.cont.button-border,
button.button-border,
a.button-border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 130px;
    padding: 0 22px;
    background: url(../img/bwm/buttons/btn-mini-dark-plain-2.png) center / 100% 100% no-repeat;
    border: 0;
    color: #87c0ec;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.12s ease;
}

.button-border:hover,
.cont.button-border:hover,
button.button-border:hover,
a.button-border:hover {
    filter: brightness(1.2) drop-shadow(0 0 12px rgba(135, 192, 236, 0.35));
    background-image: url(../img/bwm/buttons/btn-mini-dark-glow-2.png);
    color: #87c0ec;
}

.button-border:after { display: none; }

.bw-remember-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.bw-remember-input { position: absolute; opacity: 0; pointer-events: none; }

.bw-remember-box {
    width: 16px;
    height: 16px;
    background: url(../img/bwm/ui/ui-checkbox-empty.png) center / contain no-repeat;
    flex-shrink: 0;
    transition: background-image 0.15s ease;
}

.bw-remember-input:checked + .bw-remember-box {
    background-image: url(../img/bwm/ui/ui-checkbox-check-glow.png);
}

.bw-remember-text {
    font-size: 11px;
    color: #6b6358;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bw-remember-label:hover .bw-remember-text { color: #d8ccba; }

.lk-title { padding: 0 4px 16px !important; text-align: center; }
.lk-title .username { font-family: 'Cinzel', 'Trajan Pro', Georgia, serif !important; color: #87c0ec !important; }

.bw-vip-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 9px;
    padding: 4px 10px 4px 9px;
    background: rgba(4, 10, 18, .55);
    border: 1px solid rgba(180, 140, 80, .22);
    border-left-width: 2px;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.bw-vip-tag[hidden] { display: none; }

.bw-vip-tag-name {
    font-style: normal;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.bw-vip-tag-count {
    color: #93a7b8;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    font-variant-numeric: tabular-nums;
}

.bw-vip-tag-count::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 6px;
    vertical-align: middle;
    background: currentColor;
    border-radius: 50%;
    opacity: .45;
}

.bw-vip-tag-soon .bw-vip-tag-count {
    color: #e0a04a;
}

.bw-vip-tag-soon .bw-vip-tag-count::before {
    opacity: 1;
    animation: bw-vip-pulse 1.6s ease-in-out infinite;
}

@keyframes bw-vip-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .2; }
}

.bw-vip-tag-1 { border-left-color: #c07a2c; }
.bw-vip-tag-2 { border-left-color: #a8bccc; }
.bw-vip-tag-3 { border-left-color: #d4af37; }

.bw-vip-tag-1 .bw-vip-tag-name { color: #c8874a; }
.bw-vip-tag-2 .bw-vip-tag-name { color: #b6c8d8; }
.bw-vip-tag-3 .bw-vip-tag-name { color: #e0bc5a; }

.lk-coins { padding: 0 4px 14px; }
.lk-coins .coins { color: #e2823a; font-weight: 700; font-size: 14px; font-family: 'Cinzel', 'Trajan Pro', Georgia, serif; }

.lk-form { margin: 0; padding: 0; list-style: none; }
.lk-form li { position: relative; list-style: none; }

.lk-form li a {
    display: block;
    color: #d8ccba;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-top: 1px solid rgba(96, 157, 203, 0.18);
    transition: background 0.18s ease, color 0.18s ease;
    position: relative;
}

.lk-form li:first-child a { border-top: none; }

.lk-form li a:before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: none;
    border-right: 1px solid #609dcb;
    border-top: 1px solid #609dcb;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.5;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.lk-form li a:hover:before { opacity: 1; transform: translateY(-50%) translateX(2px) rotate(45deg); }
.lk-form li b { font-weight: 400; color: #4ad26b; }
.lk-form li span { float: right; }

.widget table.table { width: 100%; margin: 4px 0 0; border-collapse: collapse; }

.widget table.table tr td {
    padding: 9px 4px !important;
    color: #d8ccba !important;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.widget table.table tr:last-child td { border-bottom: none; }

.widget table.table tr td:first-child {
    color: #6b6358 !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 10px;
    font-weight: 500;
}

.widget table.table tr td:last-child {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    color: #87c0ec !important;
    text-align: right;
}

/* Compact ranking table (Top Resets / Top PVP) — header row + data rows,
   matches the SERVER INFO table. Single source of truth (no inline overrides). */
.widget.bw-rank-widget { padding: 16px 14px 12px !important; }
.widget.bw-rank-widget .widget-title { margin-bottom: 8px !important; padding-bottom: 10px !important; }

.bw-rank { width: 100%; border-collapse: collapse; table-layout: fixed; }

.bw-rank thead th {
    font-size: 8px;
    color: #6b6358;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 2px 2px 5px;
    border-bottom: 1px solid rgba(96, 157, 203, 0.35);
    text-align: center;
    white-space: nowrap;
}
.bw-rank thead th.bw-c-rank { width: 20px; }
.bw-rank thead th.bw-c-name { text-align: left; padding-left: 4px; }
.bw-rank thead th.bw-c-stat { width: 34px; }

.bw-rank tbody td {
    padding: 5px 2px;
    border-bottom: 1px solid rgba(96, 157, 203, 0.18);
    text-align: center;
    color: #609dcb;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    font-size: 11.5px;
    line-height: 1;
}
.bw-rank tbody tr:last-child td { border-bottom: none; }

.bw-rank td.bw-c-rank { color: #6b6358; font-size: 10px; }
.bw-rank td.bw-c-name {
    text-align: left;
    color: #d8ccba;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
}
.bw-rank td.bw-c-name a { color: inherit; text-decoration: none; }
.bw-rank td.bw-c-name a:hover { color: #87c0ec; }
.bw-rank .bw-c-name img {
    width: 15px;
    height: auto;
    max-height: 11px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.bw-rank tbody tr.r1 td { color: #87c0ec; }
.bw-rank tbody tr.r1 td.bw-c-rank { color: #87c0ec; }
.bw-rank tbody tr.r1 td.bw-c-name { color: #87c0ec; }

.bw-events col.bw-col-time { width: 54px; }
.bw-events col.bw-col-left { width: 58px; }
.bw-events tr.bw-ev-head th {
    font-size: 8px;
    color: #6b6358;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 2px 2px 5px;
    border-bottom: 1px solid rgba(96, 157, 203, 0.35);
    text-align: center;
    white-space: nowrap;
}
.bw-events tr.bw-ev-head th.bw-c-name { text-align: left; padding-left: 4px; color: #a9a091; }
.bw-events tr.bw-ev-head th.bw-c-left { text-align: right; }
.bw-events .bw-ev-now:not([hidden]) + .bw-ev-next tr.bw-ev-head th { padding-top: 14px; }
.bw-events .bw-ev-now tr.bw-ev-head th { border-bottom-color: rgba(74, 222, 128, 0.35); }
.bw-events .bw-ev-now tr:last-child td { border-bottom: none; }
.bw-events td.bw-c-time { font-size: 11px; white-space: nowrap; }
.bw-events td.bw-c-time small { display: block; margin-bottom: 3px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #8fb8e8; cursor: help; }
.bw-events td.bw-c-left { text-align: right; padding-right: 2px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 11px; font-variant-numeric: tabular-nums; color: #a9a091; white-space: nowrap; }
.bw-events tr.is-soon td.bw-c-left { color: #f5d27e; }
.bw-events tr.is-live td.bw-c-name { color: #87c0ec; }
.bw-ev-live { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: #7ee2a8; text-transform: uppercase; }
.bw-ev-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; animation: bw-ev-pulse 1.4s ease-in-out infinite; }
.bw-events tr.is-live td.bw-c-left { color: #7ee2a8; }
.bw-events tr[data-bw-event] { cursor: default; outline: none; }
.bw-events tr[data-bw-event].is-hover td,
.bw-events tr[data-bw-event]:focus-visible td { background: rgba(56, 120, 190, 0.12); }
.bw-ev-tip {
    position: fixed;
    z-index: 9999;
    width: 264px;
    padding: 12px 14px 10px;
    background: var(--bw-surface, linear-gradient(180deg, rgba(9, 18, 27, .97), rgba(3, 8, 13, .97)));
    background-color: #070f18;
    border: 1px solid var(--bw-line-strong, rgba(67, 142, 200, .44));
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--bw-text, #dce8f1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11.5px;
    line-height: 1.35;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(2px) scale(0.98);
    transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}
.bw-ev-tip.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .14s ease, transform .14s ease; }
.bw-ev-tip::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #08121c;
    border: 1px solid var(--bw-line-strong, rgba(67, 142, 200, .44));
    transform: rotate(45deg);
}
.bw-ev-tip[data-side="right"]::before { left: -6px; top: calc(var(--bw-ev-arrow, 20px) - 5px); border-top: 0; border-right: 0; }
.bw-ev-tip[data-side="left"]::before { right: -6px; top: calc(var(--bw-ev-arrow, 20px) - 5px); border-bottom: 0; border-left: 0; }
.bw-ev-tip[data-side="below"]::before { top: -6px; left: calc(var(--bw-ev-arrow, 20px) - 5px); border-bottom: 0; border-right: 0; }
.bw-ev-tip[data-side="above"]::before { bottom: -6px; left: calc(var(--bw-ev-arrow, 20px) - 5px); border-top: 0; border-left: 0; }
.bw-ev-tip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--bw-line, rgba(86, 136, 174, .22)); }
.bw-ev-tip-name { font-family: 'Cinzel', 'Trajan Pro', Georgia, serif; font-size: 13px; font-weight: 700; color: #87c0ec; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-ev-tip-dur { flex-shrink: 0; padding: 2px 7px; font-size: 10px; font-weight: 700; color: #9fc3ea; background: rgba(56, 120, 190, 0.16); border: 1px solid rgba(96, 160, 230, 0.3); border-radius: 999px; }
.bw-ev-tip-live { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; padding: 6px 8px; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.25); border-radius: 4px; }
.bw-ev-tip-live-text { flex: 1; color: #c9e8d4; font-size: 11px; }
.bw-ev-tip-live b { color: #7ee2a8; font-variant-numeric: tabular-nums; }
.bw-ev-tip-label { margin-bottom: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a97a8; }
.bw-ev-tip-list { list-style: none; margin: 0; padding: 0; }
.bw-ev-tip-list li { display: grid;  align-items: baseline; column-gap: 8px; padding: 5px 6px; border-radius: 4px; }
.bw-ev-tip-list { display: grid; grid-template-columns: max-content max-content max-content minmax(0, 1fr); }
.bw-ev-tip-list li { grid-column: 1 / -1; grid-template-columns: subgrid; }
.bw-ev-tip-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.bw-ev-tip-list li.is-next { background: rgba(67, 142, 200, 0.09); box-shadow: inset 2px 0 0 #438ec8; }
.bw-ev-tip-day { color: #d8ccba; font-weight: 600; white-space: nowrap; }
.bw-ev-tip-date { color: #8a97a8; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.bw-ev-tip-time { color: #87c0ec; font-family: 'Cinzel', 'Trajan Pro', Georgia, serif; font-weight: 700; font-size: 12px; }
.bw-ev-tip-in { text-align: right; color: #a9a091; font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bw-ev-tip-list li.is-next .bw-ev-tip-in { color: #87c0ec; }
@media (prefers-reduced-motion: reduce) { .bw-ev-tip, .bw-ev-tip.is-visible { transition: none; } }
@keyframes bw-ev-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .bw-ev-live::before { animation: none; } }

.content { background: transparent; padding: 0; }

.content-wrapper {
    border-top: 1px solid rgba(96, 157, 203, 0.45);
}

.content-wrapper::before, .content-wrapper::after {
    position: absolute;
    width: 36px;
    height: 36px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.content-wrapper::before { top: -4px; left: -4px; background-image: url(../img/bwm/decorations/deco-corner-tl-large.png); }
.content-wrapper::after { bottom: -4px; right: -4px; background-image: url(../img/bwm/decorations/deco-corner-tl-large.png); transform: rotate(180deg); }

.content-page p { color: #d8ccba; line-height: 1.65; margin-bottom: 14px; }
.content-page a { color: #609dcb; }
.content-page a:hover { color: #87c0ec; }

.content-page ul { list-style: none; padding: 0; margin: 0 0 16px; }

.content-page ul li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: #d8ccba;
}

.content-page ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: #609dcb;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(96, 157, 203, 0.5);
}

.content-page img { max-width: 100%; height: auto; border-radius: 2px; }

.content-title{
    margin-bottom: 22px;
    padding-bottom: 12px;
}

.content-title h1, .content-title h2, .content-title h3{
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #87c0ec;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    display: block;
}

.content-page table,
.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.content-page table thead tr,
.content-wrapper table thead tr {
    border-bottom: 1px solid rgba(96, 157, 203, 0.55);
}

.content-page table thead th,
.content-wrapper table thead th{
    color: #87c0ec !important;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 12px 10px !important;
    text-align: left;
    background: linear-gradient(180deg, rgba(28, 22, 36, 0.9), rgba(18, 15, 22, 0.85)) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(96, 157, 203, 0.35) !important;
}

.content-page table tbody td,
.content-wrapper table tbody td {
    padding: 10px;
    border-bottom: 1px solid rgba(96, 157, 203, 0.18);
    color: #d8ccba;
    font-size: 12px;
}

.online {  font-weight: 700; }
.offline {  font-weight: 700; }
.lGold { color: #87c0ec; }
.red-text { color: #c54040; }

.btn {
    border: 1px solid rgba(0, 0, 0, 0.4);
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    color: #87c0ec;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.btn-primary {
    background: linear-gradient(180deg, #d2782e, #8c3010);
    border-color: rgba(96, 157, 203, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #e2823a, #a03c14);
    color: #87c0ec;
}

.btn-danger { background: linear-gradient(180deg, #c54040, #7a2020); border-color: rgba(197, 64, 64, 0.4); }

.form-control,
input[type="text"]:not(.bw-remember-input),
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
    background: rgba(14, 12, 18, 0.85);
    border: 1px solid rgba(96, 157, 203, 0.18);
    color: #d8ccba;
    border-radius: 2px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: #609dcb;
    box-shadow: 0 0 0 1px rgba(96, 157, 203, 0.15), inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

textarea.form-control { resize: vertical; }

.footer {
    position: relative;
}

.footer-block-t {
    padding: 0 4px 18px;
    border-bottom: 1px solid rgba(96, 157, 203, 0.18);
    margin-bottom: 18px;
}

.f-menu { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.f-menu li { list-style: none; }

.f-menu li a {
    color: #d8ccba;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
}

.f-menu li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #609dcb;
    transition: width 0.25s ease;
}

.f-menu li a:hover { color: #87c0ec; }
.f-menu li a:hover::after { width: 80%; }

.copyright p {
    margin: 0;
    color: #6b6358;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.copyright p a { color: #609dcb; }
.copyright p a:hover { color: #87c0ec; }

.lenguage { margin-top: 8px; display: flex; gap: 8px; }

.lenguage a {
    display: inline-block;
    opacity: 0.6;
    transition: opacity 0.18s ease;
}

.lenguage a:hover { opacity: 1; }

.lenguage img {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#toTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    background:
        url(../img/bwm/icons/icon-arrow-up.png) center / 26px 26px no-repeat,
        linear-gradient(180deg, rgba(28, 22, 36, 0.95), rgba(14, 11, 18, 0.95));
    border: 1px solid rgba(96, 157, 203, 0.18);
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
    z-index: 99;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

#toTop:hover { opacity: 1; box-shadow: 0 6px 18px rgba(226, 130, 58, 0.3); }

.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
}

.pagination li { list-style: none; }

.pagination > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: linear-gradient(180deg, rgba(28, 22, 36, 0.85), rgba(14, 11, 18, 0.85));
    border: 1px solid rgba(96, 157, 203, 0.18) !important;
    color: #d8ccba !important;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    border-radius: 2px;
}

.pagination > li > a:hover {
    background: linear-gradient(180deg, rgba(40, 32, 50, 0.85), rgba(20, 15, 26, 0.85)) !important;
    border-color: #609dcb !important;
    color: #87c0ec !important;
}

.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(180deg, #d2782e, #8c3010) !important;
    border-color: rgba(135, 192, 236, 0.5) !important;
    color: #87c0ec !important;
    box-shadow: 0 0 12px rgba(226, 130, 58, 0.3);
}

iframe {
    border-radius: 2px;
    border: 1px solid rgba(96, 157, 203, 0.18) !important;
    background: rgba(10, 8, 14, 0.5);
}

.alert, .alerts, .messages {
    border-radius: 2px;
    border: 1px solid rgba(96, 157, 203, 0.18);
    background: linear-gradient(180deg, rgba(28, 22, 36, 0.85), rgba(14, 11, 18, 0.85));
    padding: 12px 16px;
    color: #d8ccba;
    margin-bottom: 14px;
}

.alert-success { border-color: rgba(74, 210, 107, 0.4); color: #4ad26b; }
.alert-danger, .alert-error { border-color: rgba(197, 64, 64, 0.4); color: #c54040; }
.alert-warning { border-color: rgba(226, 130, 58, 0.4); color: #e2823a; }
.alert-info { border-color: rgba(90, 161, 230, 0.4); color: #5aa1e6; }

@media (max-width: 1240px) {
    :root { --wrapper-w: 100%; }
    .wrapper_web {  padding: 0 16px; }
    
}

@media (max-width: 992px) {

    #gGST_Wrap{ display: none; }
}

@media (max-width: 640px) {
    #navbar { height: auto; }
    #navbar .menu, #navbar > ul, #navbar nav > ul {
        flex-wrap: wrap;
        height: auto;
        padding: 6px 12px;
        gap: 0;
        justify-content: flex-start;
    }
    #navbar a, #navbar .menu a { padding: 0 10px; height: 44px; font-size: 11px; letter-spacing: 0.14em; }

    .content-title h1, .content-title h2, .content-title h3{ font-size: 18px; }
}
/* Scrolling background: the image moves with the page (no fixed layer, no
   will-change), so scrolling stays smooth and cheap — a fixed/attachment:fixed
   background forces a repaint every scroll frame, which caused the jank.
   The image sits at the top and the dark base colour fills everything below. */

.wrapper_web {
    width: min(var(--wrapper-w), calc(100vw - 70px)) !important;
}

.header_web {
    height: 335px !important;
}

.header_web::before {
    background:
        radial-gradient(ellipse 45% 45% at 50% 38%, rgba(226,130,58,0.18), transparent 64%),
        linear-gradient(90deg, rgba(0,0,0,0.65), transparent 18%, transparent 82%, rgba(0,0,0,0.65)) !important;
    z-index: 1 !important;
}

.header_web::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 90px;
    background: linear-gradient(180deg, transparent, #050609 88%);
    pointer-events: none;
    z-index: 2;
}

.logo a img {
    width: 100% !important;
    max-height: 285px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 16px 30px rgba(0,0,0,0.95)) drop-shadow(0 0 38px rgba(226,130,58,0.22)) !important;
}

.container_web {
    padding: 0 0 70px !important;
    margin-top: -8px !important;
    gap: 24px !important;
    align-items: flex-start !important;
}

.left-sidebar.sidebar,
.right-sidebar.sidebar {
    width: 310px !important;
}

.content {
    flex: 1 1 auto !important;
}

.download-block {
    height: 84px !important;
    margin-bottom: 16px !important;
    background-size: 100% 100% !important;
}

.download-block a {
    font-size: 15px !important;
    letter-spacing: 0.18em !important;
}

.widget,
.content-wrapper {
    border-top-color: rgba(87, 165, 224, 0.62) !important;
}

.widget.red-light,
.widget.red-dark {
    background:
        linear-gradient(180deg, rgba(14,16,18,0.94), rgba(7,8,11,0.93)) !important;
}

.content-page,
.content-wrapper > div,
.content-wrapper > form,
.content-wrapper > table {
    padding: 24px 10px !important;
}

.content-title h1,
.content-title h2,
.content-title h3{
    margin: 0 !important;
}

.lk-form li a{
    min-height: 42px !important;
    padding: 12px 34px 12px 46px !important;
    background: rgba(10,12,14,0.42) !important;
    border-bottom: 1px solid rgba(96, 157, 203,0.12) !important;
}

.lk-form li a:hover,
.lk-form li.active a{
    background: linear-gradient(90deg, rgba(35, 104, 156,0.42), rgba(15,25,34,0.34)) !important;
    color: #a8d1f1 !important;
}

.widget table.table tr td {
    background: transparent !important;
    border-bottom: 1px solid rgba(96, 157, 203,0.13) !important;
}

button,
.button,
input[type="submit"] {
    background: linear-gradient(180deg, #15335e, #070d1b) !important;
    border: 1px solid rgba(76, 154, 214,0.75) !important;
    color: #9acaef !important;
    border-radius: 3px !important;
    box-shadow: inset 0 1px 0 rgba(165, 208, 240,0.18), 0 0 14px rgba(226,130,58,0.16) !important;
}

input,
textarea,
select {
    background: rgba(5,7,10,0.88) !important;
    border: 1px solid rgba(96, 157, 203,0.25) !important;
    border-radius: 3px !important;
    color: #b3cfe6 !important;
}

iframe[src*="discord"] {
    border: 1px solid rgba(68, 133, 183,0.38) !important;
    box-shadow: 0 18px 34px rgba(0,0,0,0.55) !important;
}

@media (max-width: 1450px) {
    :root { --wrapper-w: 1260px; }
    .left-sidebar.sidebar,
    .right-sidebar.sidebar { width: 285px !important; }
    
}

@media (max-width: 1200px) {
    .wrapper_web { width: calc(100vw - 32px) !important; }
    .container_web { flex-direction: column !important; }
    .left-sidebar.sidebar,
    .right-sidebar.sidebar,
    .content { width: 100% !important; }
    .header_web { height: 285px !important; }
    
}

/* === BattleWarsMU active theme start === */
/*
  BattleWarsMU theme layer for templates/test.
  This file intentionally overrides the legacy template skin with a clean
  fantasy layout while keeping the module markup intact.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: #020407 !important;
  overflow-x: hidden !important;
}

body {
  min-height: 100vh !important;
  color: #d2e2ef !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  /* 2026-11-28: three pictures that follow each other down the page, all full width and scrolling with it:
       1 castle + dragon (top), 2 ruins + river (right under it), 3 river + ruins (stuck to the page bottom,
       behind the footer, so the footer always has its picture; it covers the lower part of picture 2 on a
       normal page and its near-black bottom is the page colour).
     Where two pictures meet, a 260px band of dark mist hides the seam. --bgw = the width they are drawn at;
     heights follow the files (all three 1671x941; second set bg2-*, the first set bg-part-* is kept).
     Layers (top first): side vignette / mist 1|2 / mist 2|3 / picture 3 / picture 2 / picture 1.
     (Earlier pictures of the same day: background-valley-tall / -castle-wide / -valley-ruins .webp.) */
  --bgw: max(1680px, 100vw);
  --bgh1: calc(var(--bgw) * 941 / 1671);
  --bgh3: calc(var(--bgw) * 941 / 1671);
  background-color: #040b13 !important;
  background-image:
    linear-gradient(90deg, rgba(2, 4, 7, 0.7) 0, rgba(2, 4, 7, 0.3) 50px, rgba(2, 4, 7, 0.08) 120px, rgba(2, 4, 7, 0) 180px, rgba(2, 4, 7, 0) calc(100% - 180px), rgba(2, 4, 7, 0.08) calc(100% - 120px), rgba(2, 4, 7, 0.3) calc(100% - 50px), rgba(2, 4, 7, 0.7) 100%),
    linear-gradient(180deg, rgba(22, 27, 36, 0) 0, rgba(22, 27, 36, 0.93) 42%, rgba(22, 27, 36, 0.93) 58%, rgba(22, 27, 36, 0) 100%),
    linear-gradient(180deg, rgba(24, 27, 36, 0) 0, rgba(24, 27, 36, 0.93) 42%, rgba(24, 27, 36, 0.93) 58%, rgba(24, 27, 36, 0) 100%),
    url("../img/theme/bg2-part-3-river.webp"),
    url("../img/theme/bg2-part-2-river.webp"),
    url("../img/theme/bg2-part-1-castle.webp") !important;
  background-size: 100% 100%, 100% 260px, 100% 260px, var(--bgw) auto, var(--bgw) auto, var(--bgw) auto !important;
  background-position:
    top center,
    center top calc(var(--bgh1) - 130px),
    center bottom calc(var(--bgh3) - 130px),
    center bottom,
    center top var(--bgh1),
    center top !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

.mu-video-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  object-position: top center !important;
  pointer-events: none !important;
  background: #040b13 url("../img/theme/bg2-part-1-castle.webp") top center / cover no-repeat !important;
}
  .logo {
  position: absolute !important;
  z-index: 3 !important;
  top: 42px !important;
  left: 50% !important;
  width: min(620px, 52vw) !important;
  max-width: min(620px, 52vw) !important;
  transform: translateX(-50%) !important;
  transform-origin: 50% 38% !important;
  animation: muLogoMysticReveal 1.45s cubic-bezier(0.18, 0.88, 0.22, 1) 0.12s both !important;
  will-change: opacity, transform, filter !important;
}

.logo::before {
  content: "" !important;
  position: absolute !important;
  inset: -42px -58px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(140, 194, 236, 0.28), rgba(140, 194, 236, 0.08) 28%, transparent 62%),
    radial-gradient(ellipse at 42% 52%, rgba(78, 182, 255, 0.18), transparent 58%) !important;
  filter: blur(18px) !important;
  mix-blend-mode: screen !important;
  animation: muLogoAuraRelease 1.9s ease-out 0.05s both !important;
}

.logo a,
.logo img {
  display: block !important;
}

.logo a {
  position: relative !important;
  z-index: 2 !important;
}

.logo img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 290px !important;
  margin: 0 auto !important;
  filter:
    drop-shadow(0 22px 30px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 18px rgba(214, 126, 54, 0.2)) !important;
}

@keyframes muLogoMysticReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.92);
    filter: blur(9px) brightness(0.78) saturate(0.75);
  }

  46% {
    opacity: 1;
    transform: translateX(-50%) translateY(3px) scale(1.035);
    filter: blur(1px) brightness(1.16) saturate(1.08);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0) brightness(1) saturate(1);
  }
}

@keyframes muLogoAuraRelease {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }

  34% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo::before {
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .logo {
    top: 66px !important;
    width: min(330px, 86vw) !important;
    max-width: min(330px, 86vw) !important;
  }

  .logo img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  #gGST_Wrap {
    top: 12px !important;
    left: 50% !important;
    width: min(260px, calc(100vw - 38px)) !important;
    transform: translateX(-50%) !important;
  }

  .container_web,
  .content,
  .content-wrapper,
  .left-sidebar.sidebar,
  .right-sidebar.sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .container_web {
    padding-bottom: 36px !important;
    gap: 14px !important;
  }

  .content-wrapper {
    min-height: 420px !important;
  }

  .widget-title {
    margin-left: -12px !important;
    margin-right: -12px !important;
  }

  #toTop {
    display: none !important;
  }
}

/* Final BattleWarsMU panel polish */
.header_web {
  background: transparent !important;
  overflow: visible !important;
}

.header_web::before,
.header_web::after {
  display: none !important;
  content: none !important;
}

.widget::before,
.widget::after,
.content-wrapper::before,
.content-wrapper::after{
  opacity: 0.95 !important;
  filter: drop-shadow(0 0 10px rgba(78, 152, 209, 0.28));
}

.widget-title,
.content-title{
  position: relative !important;
  border-bottom: 1px solid rgba(107, 174, 226, 0.34) !important;
}

.widget-title::before,
.content-title::before{
  position: absolute !important;
  left: 50% !important;
  top: -15px !important;
  width: 74px !important;
  height: 32px !important;
  transform: translateX(-50%) !important;
  background: url("../img/bwm/decorations/deco-gem-wing-gold.png") center / contain no-repeat !important;
  pointer-events: none !important;
}

.widget-title::after,
.content-title::after{
  position: absolute !important;
  left: 50% !important;
  bottom: -10px !important;
  width: min(220px, 78%) !important;
  height: 19px !important;
  transform: translateX(-50%) !important;
  background: url("../img/bwm/ui/ui-ornament-divider-01.png") center / contain no-repeat !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
}

.login-block .l-input input {
  padding-left: 52px !important;
  text-indent: 0 !important;
  background-position: center !important;
}

.login-block .login.l-input::before,
.login-block .pass.l-input::before {
  left: 17px !important;
  width: 17px !important;
  height: 17px !important;
}

/* Module readability and gold/brown harmonization */
.widget-title,
.content-title{
  font-size: clamp(11px, 0.86vw, 13px) !important;
  line-height: 1.16 !important;
  letter-spacing: 0.16em !important;
  text-align: center !important;
  overflow: visible !important;
}

.widget-title span,
.content-title span{
  color: #89a8c0 !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.15em !important;
  margin-top: 5px !important;
}

.right-sidebar .widget-title::before,
.left-sidebar .widget-title::before {
  display: none !important;
}

.widget-title.flex-s-c {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.widget-title.flex-s-c a {
  flex: 0 0 auto !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
}

.right-sidebar .widget,
.left-sidebar .widget,
.content-wrapper,
.myaccount-section,
.bonus-card,
.chr-card,
.twofa-modal,
.rrc-card,
.rrc-hist-event,
.rrc-inactive,
.warehouse,
.warehouse-panel{
  background:
    linear-gradient(180deg, rgba(12, 18, 26, 0.94), rgba(4, 8, 13, 0.94)) padding-box,
    linear-gradient(135deg, rgba(96, 157, 203, 0.34), rgba(116, 179, 227, 0.24), rgba(10, 24, 42, 0.7)) border-box !important;
  border-color: rgba(86, 136, 174, 0.25) !important;
}

.content-wrapper [style*="rgba(50,35,20"],
.content-wrapper [style*="rgba(35,25,15"],
.content-wrapper [style*="#110d00"],
.content-wrapper [style*="#0d0900"],
.content-wrapper [style*="#221800"],
.content-wrapper [style*="#1a1200"],
.content-wrapper [style*="#3a291b"],
.content-wrapper [style*="#22170f"] {
  background:
    linear-gradient(180deg, rgba(12, 20, 29, 0.95), rgba(5, 10, 16, 0.96)) !important;
  border-color: rgba(96, 176, 232, 0.28) !important;
  color: #dcebf4 !important;
}

.content-wrapper,
.content-page,
.myaccount-wrapper,
.myaccount-section,
.myaccount-table,
.myaccount-table td,
.content-wrapper table,
.content-wrapper table td,
.content-wrapper table th {
  color: #dbe7ee !important;
}

.content-page table,
.content-wrapper table,
.myaccount-table {
  border-radius: 7px !important;
  overflow: hidden !important;
}

.content-page table thead tr,
.content-wrapper table thead tr,
.content-wrapper table tbody tr:first-child,
.myaccount-table tr:first-child {
  background: linear-gradient(90deg, rgba(17, 42, 62, 0.92), rgba(8, 14, 22, 0.9)) !important;
}

.content-page table tbody tr,
.content-wrapper table tbody tr,
.myaccount-table tr {
  background: rgba(5, 10, 16, 0.62) !important;
}

.content-page table tbody tr:nth-child(even),
.content-wrapper table tbody tr:nth-child(even),
.myaccount-table tr:nth-child(even) {
  background: rgba(10, 18, 27, 0.68) !important;
}

.content-page table tbody tr:hover,
.content-wrapper table tbody tr:hover,
.myaccount-table tr:hover {
  background: rgba(37, 83, 118, 0.18) !important;
}

.content-page table td,
.content-wrapper table td,
.myaccount-table td {
  border-color: rgba(96, 176, 232, 0.14) !important;
}

.content-page table td:first-child,
.content-wrapper table td:first-child,
.myaccount-table td:first-child {
  color: #91a6b8 !important;
}

.content-page table td:last-child,
.content-wrapper table td:last-child,
.myaccount-table td:last-child {
  color: #96c6ea !important;
}

.badge,
.vip-badge,
.btn,
.content-wrapper button,
.content-wrapper input[type="submit"],
.content-wrapper .submit-btn,
.discord-link-btn,
.btn-twofa-enable,
.btn-twofa-confirm,
.btn-twofa-disable,
.btn-twofa-disable-sm {
  border-radius: 6px !important;
}

.content-wrapper .btn:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper button:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper input[type="submit"]:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper .submit-btn:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper .btn-primary:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper .discord-link-btn:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper .btn-twofa-enable:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper .btn-twofa-confirm:where(:not(.bw-skin-off *):not(.bw-skin-off)){
  background: linear-gradient(180deg, rgba(22, 55, 92, 0.96), rgba(8, 19, 36, 0.96)) !important;
  border: 1px solid rgba(232, 193, 111, 0.55) !important;
  color: #fff3d7 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 180, 0.16),
    0 0 18px rgba(212, 166, 87, 0.16) !important;
}

.content-wrapper .btn:hover:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper button:hover:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper input[type="submit"]:hover:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper .submit-btn:hover:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper .discord-link-btn:hover:where(:not(.bw-skin-off *):not(.bw-skin-off)) {
  background: linear-gradient(180deg, rgba(28, 78, 126, 0.98), rgba(8, 23, 44, 0.98)) !important;
  border-color: rgba(136, 193, 236, 0.74) !important;
  color: #ffffff !important;
}

.badge.green,
.online,
.twofa-protection-text,
.rrc-card-rew,
.rrc-hist-rew {
  color: #62e59a !important;
}

.badge.red,
.offline,
.btn-twofa-disable,
.btn-twofa-disable-sm {
  color: #ff827d !important;
}

.badge.gray,
.vip-timer-inline,
.rrc-card-date,
.rrc-card-wait,
.rrc-history-hd,
.rrc-hist-event-meta,
.rrc-hist-date,
.legend {
  color: #86a1b7 !important;
}

.bonus-card {
  box-shadow: inset 0 1px 0 rgba(185, 218, 244, 0.07), 0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

.bonus-card-label,
.chr-card__level-label,
.twofa-manual-label {
  color: #91a6b8 !important;
}

.bonus-card-value,
.chr-card__name,
.chr-card__level-value,
.twofa-manual-key,
.rrc-card-name,
.rrc-hist-name {
  color: #a0cced !important;
}

.lk-form li.active a{
  background: linear-gradient(90deg, rgba(14, 55, 92, 0.72), rgba(7, 14, 24, 0.38)) !important;
  border-color: rgba(67, 142, 200, 0.42) !important;
  color: #bbdaf1 !important;
}

@media (max-width: 700px) {

  .login-block .l-input input {
    padding-left: 48px !important;
  }
}

/* Panel art: each panel is one whole picture (header band, body and footer
   band together), drawn on ::before as a 9-slice border-image. Corners keep
   their real size, the middle stretches with the content. */
.widget,
.left-sidebar .widget,
.right-sidebar .widget,
.content-wrapper{
  position: relative !important;
  isolation: isolate !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.widget{
  padding: 0 20px 66px !important;
}

.left-sidebar .widget,
.right-sidebar .widget{
  padding: 0 20px 52px !important;
}

.content-wrapper {
  padding: 30px 30px 62px !important;
}

.widget::before,
.content-wrapper::before{
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none !important;
  background: none !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 62px 28px 44px !important;
  border-image: url("../img/theme/panels/bw-sidebar-left.webp") 62 28 44 fill / 62px 28px 44px stretch !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.right-sidebar .widget::before{
  border-image-source: url("../img/theme/panels/bw-sidebar-right.webp") !important;
}

.content-wrapper::before{
  border-width: 66px 30px 50px !important;
  border-image: url("../img/theme/panels/bw-news.webp") 66 30 50 fill / 66px 30px 50px stretch !important;
}

/* Boxes inside a module get no panel art: only the main panel and the sidebars are framed. */
.widget::after,
.content-wrapper::after,
.myaccount-section::before,
.myaccount-section::after,
.twofa-modal::before,
.twofa-modal::after,
.rrc-card::before,
.rrc-card::after,
.rrc-hist-event::before,
.rrc-hist-event::after,
.rrc-inactive::before,
.rrc-inactive::after{
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Top menu bar */
#navbar .navbar-inner{
  position: relative;
  isolation: isolate;
}

#navbar .navbar-inner::before{
  content: "";
  position: absolute;
  inset: -8px 0;
  z-index: -1;
  pointer-events: none;
  border-style: solid;
  border-color: transparent;
  border-width: 0 48px;
  border-image: url("../img/theme/panels/bw-top-bar.webp") 0 48 fill / 0 48px stretch;
}

.widget > *,
.content-wrapper > *,
.myaccount-section > *,
.twofa-modal > *,
.rrc-card > *,
.rrc-hist-event > *,
.rrc-inactive > *,
.webshop-container > *,
.webshop-panel > *,
.warehouse-container > *,
.warehouse-panel > *{
  position: relative;
  z-index: 1;
}

.widget-title,
.content-title{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-height: 70px !important;
  margin: 0 -10px 15px !important;
  padding: 20px 18px 18px !important;
  color: #c6ddee !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.92), 0 0 16px rgba(87, 174, 238, 0.18) !important;
}

.widget-title::before,
.widget-title::after,
.content-title::before,
.content-title::after{
  display: none !important;
  content: none !important;
}

.widget-title.flex-s-c {
  flex-direction: row !important;
  justify-content: space-between !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.widget-title a {
  color: #82bbe7 !important;
  text-shadow: 0 0 10px rgba(130, 187, 231, 0.22) !important;
}

.widget table.table,
.content-page table,
.content-wrapper table,
.myaccount-table {
  background: rgba(4, 8, 13, 0.44) !important;
  border: 1px solid rgba(92, 174, 232, 0.2) !important;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.38) !important;
}

.content-wrapper [style*="background:"],
.content-wrapper [style*="background: "],
.content-wrapper [style*="border:"],
.content-wrapper [style*="border: "] {
  border-color: rgba(92, 174, 232, 0.28) !important;
}

.content-wrapper [style*="#2e1c10"],
.content-wrapper [style*="#2c1810"],
.content-wrapper [style*="#3d2418"],
.content-wrapper [style*="#1a0f08"],
.content-wrapper [style*="#2c1810"],
.content-wrapper [style*="#1a1410"],
.content-wrapper [style*="#0f0b08"],
.content-wrapper [style*="#080604"],
.content-wrapper [style*="rgba(30,15,5"],
.content-wrapper [style*="rgba(20,10,3"],
.content-wrapper [style*="rgba(50, 35, 20"],
.content-wrapper [style*="rgba(40, 28, 18"],
.content-wrapper [style*="rgba(60, 45, 30"],
.content-wrapper [style*="rgba(20, 16, 12"],
.content-wrapper [style*="rgba(10, 8, 6"] {
  background: linear-gradient(180deg, rgba(9, 18, 27, 0.96), rgba(3, 8, 13, 0.96)) !important;
  border-color: rgba(92, 174, 232, 0.28) !important;
  color: #dce8f1 !important;
}

.content-wrapper [style*="#ffd700"],
.content-wrapper [style*="#ffcc00"],
.content-wrapper [style*="#daa520"],
.content-wrapper [style*="#d4af37"],
.content-wrapper [style*="#d4a574"],
.content-wrapper [style*="#c9935c"],
.content-wrapper [style*="#f4d03f"] {
  color: #97c7ec !important;
}

/* Modules carrying .bw-skin-off style their own buttons; the :where() wrapper
   keeps this exclusion at zero specificity so nothing else shifts. */
.content-wrapper .btn:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper button:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper input[type="submit"]:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.content-wrapper .submit-btn:where(:not(.bw-skin-off *):not(.bw-skin-off)),
.button-border:where(:not(.bw-skin-off *):not(.bw-skin-off)),
input[type="submit"]:where(:not(.bw-skin-off *):not(.bw-skin-off)) {
  background:
    linear-gradient(180deg, rgba(22, 55, 92, 0.98), rgba(8, 19, 36, 0.98)) !important;
  border-color: rgba(120, 178, 223, 0.58) !important;
  color: #e0ecf6 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75) !important;
}

@media (max-width: 700px) {
  .widget,
  .myaccount-section{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .content-wrapper {
    padding: 18px 12px 48px !important;
  }

  .widget-title,
  .content-title{
    min-height: 66px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

}

/* === Fantasy login form === */

/* Engraved dark input fields with a gold rim and a warm focus glow */
.login-block .l-input input {
  background: linear-gradient(180deg, rgba(4,10,17,0.95), rgba(9,18,28,0.95)) !important;
  border: 1px solid rgba(96,176,232,0.26) !important;
  border-radius: 4px !important;
  color: #c9dfef !important;
  letter-spacing: 0.03em !important;
  box-shadow: inset 0 2px 7px rgba(0,0,0,0.65) !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.login-block .l-input input:focus {
  border-color: #75b0dd !important;
  background: linear-gradient(180deg, rgba(7,15,24,0.97), rgba(12,24,36,0.97)) !important;
  box-shadow: inset 0 2px 7px rgba(0,0,0,0.6),
              0 0 0 1px rgba(117, 176, 221,0.40),
              0 0 16px rgba(226,130,58,0.30) !important;
}
.login-block .login.l-input::before,
.login-block .pass.l-input::before {
  opacity: 0.92 !important;
  filter: drop-shadow(0 0 5px rgba(226,130,58,0.40)) !important;
}

/* "REGISTRATION" link in the title — glowing ember-gold */
.login-block .widget-title a {
  color: #65aee5 !important;
  text-shadow: 0 0 10px rgba(226,130,58,0.45) !important;
}
.login-block .widget-title a:hover { color: #9acaef !important; }

/* SIGN IN — ornate fantasy gold button */

.login-block button.button-border,
.login-block .cont.button-border {
  height: 46px !important;
  min-width: 140px !important;
  padding: 0 24px !important;
  background: linear-gradient(180deg, #96c8ee 0%, #5da2d7 44%, #3477aa 100%) !important;
  border: 1px solid #1c4564 !important;
  border-radius: 5px !important;
  color: #2c1c07 !important;
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.24em !important;
  text-shadow: 0 1px 0 rgba(216, 232, 244,0.55) !important;
  box-shadow: inset 0 1px 0 rgba(228, 239, 247,0.85),
              inset 0 -2px 6px rgba(28, 76, 113,0.5),
              0 4px 12px rgba(0,0,0,0.55),
              0 0 0 1px rgba(0,0,0,0.35) !important;
  transition: filter .18s ease, transform .1s ease, box-shadow .2s ease, background .2s ease !important;
}
.login-block button.button-border:hover,
.login-block .cont.button-border:hover {
  background: linear-gradient(180deg, #b2d7f3 0%, #6bafe3 44%, #3a82b9 100%) !important;
  filter: brightness(1.04) !important;
  box-shadow: inset 0 1px 0 rgba(234, 242, 249,0.9),
              inset 0 -2px 6px rgba(28, 76, 113,0.5),
              0 6px 18px rgba(0,0,0,0.6),
              0 0 20px rgba(101, 174, 229,0.45),
              0 0 0 1px rgba(0,0,0,0.35) !important;
}

.login-block .bw-login-submit {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
.login-block .bw-login-submit::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.34) 44%, rgba(205, 225, 240,0.55) 50%, transparent 58%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}
.login-block .bw-login-submit span {
  position: relative;
  z-index: 1;
}
.login-block .bw-login-btn-text,
.login-block .bw-login-btn-state {
  transition: opacity .18s ease, transform .18s ease;
}
.login-block .bw-login-btn-state {
  position: absolute !important;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.login-block .bw-login-btn-loader {
  position: absolute !important;
  right: 14px;
  top: 50%;
  display: inline-flex;
  gap: 3px;
  opacity: 0;
  transform: translateY(-50%) scale(0.86);
  transition: opacity .18s ease, transform .18s ease;
}
.login-block .bw-login-btn-loader i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #08253b;
  box-shadow: 0 0 7px rgba(205, 225, 240,0.75);
}
.login-block #login_form.bw-login-loading .bw-login-submit {
  cursor: progress !important;
  pointer-events: none;
  filter: brightness(1.08) !important;
  box-shadow: inset 0 1px 0 rgba(234, 242, 249,0.95),
              inset 0 -2px 6px rgba(28, 76, 113,0.5),
              0 8px 22px rgba(0,0,0,0.62),
              0 0 24px rgba(101, 174, 229,0.62),
              0 0 0 1px rgba(0,0,0,0.35) !important;
}
.login-block #login_form.bw-login-loading .bw-login-submit::before {
  opacity: 1;
}
.login-block #login_form.bw-login-loading .bw-login-btn-text {
  opacity: 0;
  transform: translateY(-8px);
}
.login-block #login_form.bw-login-loading .bw-login-btn-state {
  opacity: 1;
  transform: translateY(0);
}
.login-block #login_form.bw-login-loading .bw-login-btn-loader {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.login-block #login_form.bw-login-loading .bw-login-btn-loader i {
  animation: bwLoginDot .62s ease-in-out infinite;
}
.login-block #login_form.bw-login-loading .bw-login-btn-loader i:nth-child(2) { animation-delay: .1s; }
.login-block #login_form.bw-login-loading .bw-login-btn-loader i:nth-child(3) { animation-delay: .2s; }
.login-block #login_form.bw-login-loading .l-input input {
  border-color: rgba(135, 192, 236,0.58) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.85), 0 0 14px rgba(226,130,58,0.25) !important;
}

@keyframes bwLoginSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes bwLoginDot {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.login-form.bw-login-loading .submit-btn {
  cursor: progress;
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(36, 140, 219, 0.45), inset 0 -2px 0 rgba(0,0,0,0.2), 0 0 18px rgba(101, 174, 229,0.35);
}
.login-form.bw-login-loading .submit-btn::before {
  left: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .login-block #login_form.bw-login-loading .bw-login-submit::before,
  .login-block #login_form.bw-login-loading .bw-login-btn-loader i {
    animation: none;
  }
}

.login-block {
    padding: 27px 20px 24px !important;
}

.login-block form {
    margin: 0 !important;
}

.login-block .widget-title.flex-s-c {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 72px;
    margin-bottom: 16px;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.login-block .widget-title a {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 10px;
    letter-spacing: .09em;
    white-space: nowrap;
}

.login-block .l-input {
    width: 100%;
    margin: 0 0 11px !important;
    box-sizing: border-box;
}

.login-block .l-input input {
    width: 100% !important;
    height: 45px !important;
    box-sizing: border-box !important;
    padding: 0 14px 0 50px !important;
    font-size: 12.5px !important;
}

.login-block .bw-remember-label {
    margin: 1px 0 15px !important;
}

.login-block .buttons {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: stretch !important;
    margin-top: 0 !important;
}

.login-block .bw-login-submit {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
    justify-self: stretch !important;
    letter-spacing: .2em !important;
}

.login-block .bw-login-btn-state {
    padding-right: 32px;
}

.login-block .lost {
    justify-self: center;
    max-width: 100%;
    padding: 3px 0 0;
    line-height: 1.3;
    text-align: center;
}

/* Remember me + lost password — subtle, warmer */
.login-block .bw-remember-text { color: #8a7d64 !important; }
.login-block .bw-remember-label:hover .bw-remember-text { color: #adcbe1 !important; }
.login-block .lost { color: #6b6358 !important; }
.login-block .lost:hover { color: #9acaef !important; text-shadow: 0 0 8px rgba(226,130,58,0.35) !important; }

/* BattleWarsMU server info compact polish */
.right-sidebar .bw-server-info-widget {
    padding: 0 24px 52px !important;
    margin-bottom: 18px !important;
}

.right-sidebar .bw-server-info-widget .bw-server-info-title {
    min-height: 74px !important;
    margin: 0 -8px 8px !important;
    padding: 17px 14px 13px !important;
    font-size: 12.5px !important;
    letter-spacing: .18em !important;
}

/* Server Info isolated from legacy .table styles */

/* BattleWarsMU login panel compact polish */
.login-block #login_form {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.login-block #login_form .widget-title.flex-s-c {
    width: 100%;
    min-height: 64px;
    margin-bottom: 13px !important;
}

.login-block #login_form .l-input {
    width: min(232px, calc(100% - 20px)) !important;
    max-width: 232px;
    margin: 0 0 12px !important;
}

.login-block #login_form .l-input input {
    height: 43px !important;
    padding-left: 48px !important;
    padding-right: 13px !important;
    letter-spacing: .04em !important;
}

.login-block #login_form .login.l-input::before,
.login-block #login_form .pass.l-input::before {
    left: 15px !important;
}

.login-block #login_form .bw-login-options {
    width: min(232px, calc(100% - 20px));
    max-width: 232px;
    display: flex;
    justify-content: flex-start;
    align-self: center;
    margin: 2px 0 18px !important;
}

.login-block #login_form .bw-remember-label {
    margin: 0 !important;
    transform: translateX(2px);
}

.login-block #login_form .buttons {
    width: 100% !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

.login-block #login_form .bw-login-submit {
    width: 176px !important;
    min-width: 176px !important;
    max-width: 176px !important;
    height: 45px !important;
    padding: 0 20px !important;
    justify-self: center !important;
    letter-spacing: .22em !important;
    transition: width .22s ease, max-width .22s ease, transform .16s ease, filter .2s ease, box-shadow .24s ease, background .24s ease !important;
}

.login-block #login_form .bw-login-submit::after {
    content: "";
    display: block !important;
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 7px;
    height: 1px;
    z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(8, 30, 58, .7), transparent);
    opacity: .55;
    transform: scaleX(.52);
    transform-origin: center;
    transition: opacity .2s ease, transform .2s ease;
}

.login-block #login_form .lost {
    padding-top: 0 !important;
    font-size: 10.5px !important;
    letter-spacing: .08em !important;
}

.login-block #login_form.bw-login-loading .bw-login-submit {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    background: linear-gradient(180deg, #b1d6f2 0%, #67aade 40%, #296694 100%) !important;
    transform: translateY(-1px) scale(1.015) !important;
    animation: bwLoginButtonPulse 1.05s ease-in-out infinite;
}

.login-block #login_form.bw-login-loading .bw-login-submit::before {
    animation: bwLoginSweep 1s ease-in-out infinite !important;
}

.login-block #login_form.bw-login-loading .bw-login-submit::after {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(217, 232, 244, .9), transparent);
    animation: bwLoginProgress 1.05s ease-in-out infinite;
}

.login-block #login_form.bw-login-loading .bw-login-btn-state {
    padding-right: 32px !important;
    letter-spacing: .16em;
}

@keyframes bwLoginButtonPulse {
    0%, 100% {
        outline: 1px solid rgba(135, 192, 236, 0.08);
        outline-offset: 0;
    }
    50% {
        outline: 1px solid rgba(135, 192, 236, 0.45);
        outline-offset: 4px;
    }
}

@keyframes bwLoginProgress {
    0% { transform: scaleX(.18); opacity: .45; }
    48% { transform: scaleX(.92); opacity: 1; }
    100% { transform: scaleX(.18); opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
    .login-block #login_form.bw-login-loading .bw-login-submit,
    .login-block #login_form.bw-login-loading .bw-login-submit::after {
        animation: none !important;
    }
}
/* === BattleWarsMU active theme end === */
/* Generated BattleWarsMU footer background scene. */
.footer {
    min-height: 360px !important;
    margin-top: 72px !important;
    padding: 172px 34px 38px !important;
    overflow: hidden !important;
    /* 2026-11-28: no picture of its own any more: the page background (the river picture) shows through;
       only a soft shade at the bottom keeps the copyright line readable. */
    background: linear-gradient(180deg, rgba(5, 6, 9, 0) 0%, rgba(5, 6, 9, .18) 45%, rgba(5, 6, 9, .62) 100%) !important;
    /* 2026-11-28: no top line / shadows any more: over the page picture they drew a line across the river */
    border-top: 0 !important;
    box-shadow: none !important;
}

.footer::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -54px !important;
    height: 96px !important;
    background: none !important; /* 2026-11-28: was a fade to solid black above the footer (a dark band over the page background) */
    pointer-events: none !important;
    z-index: 1 !important;
}

.footer::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    height: 1px !important;
    background: none !important; /* 2026-11-28: was a blue line at the top of the footer */
    pointer-events: none !important;
    z-index: 2 !important;
}

.footer-block-t,
.footer-block-b {
    position: relative !important;
    z-index: 3 !important;
}

.footer-block-t {
    padding-bottom: 16px !important;
    border-bottom-color: rgba(107, 174, 226, .24) !important;
}

.footer .f-menu li a {
    color: #b9d3e6 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .86), 0 0 16px rgba(92, 174, 232, .18) !important;
}

.footer .f-menu li a:hover {
    color: #afd5f2 !important;
}

.footer .copyright p {
    color: #a99b85 !important;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .9) !important;
}

@media (max-width: 700px) {
    .footer {
        min-height: 300px !important;
        margin-top: 48px !important;
        padding: 132px 18px 28px !important;
        background-position: center 70% !important;
    }

    .footer .f-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px 18px !important;
    }
}

/* Gold rollback for vote action buttons. */
.content-wrapper .vote-btn-active,
.content-wrapper a.vote-btn-active,
.content-wrapper button.vote-btn-active {
  background: linear-gradient(180deg, rgba(22, 55, 92, .98), rgba(8, 19, 36, .98)) !important;
  border: 1px solid rgba(120, 178, 223, .62) !important;
  color: #e0ecf6 !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(197, 220, 238, .14) !important;
  transform: none !important;
  filter: none !important;
}
.content-wrapper .vote-btn-active:hover,
.content-wrapper a.vote-btn-active:hover,
.content-wrapper button.vote-btn-active:hover {
  background: linear-gradient(180deg, rgba(31, 80, 126, .98), rgba(13, 34, 62, .98)) !important;
  border-color: rgba(136, 193, 236, .74) !important;
  color: #e4eff7 !important;
  transform: none !important;
  filter: brightness(1.05) !important;
}
.content-wrapper .vote-btn-active:active,
.content-wrapper a.vote-btn-active:active,
.content-wrapper button.vote-btn-active:active {
  transform: none !important;
}
#navbar .navbar-inner { max-width: var(--wrapper-w); height: 60px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
#navbar .navbar-inner .menu { grid-column: 2; max-width: none; margin: 0; padding: 0; height: 60px; }
#navbar .navbar-panel-actions { grid-column: 3; justify-self: end; height: 60px; display: flex; align-items: center; }
#navbar .navbar-panel-button { height: 34px !important; padding: 0 14px !important; border: 1px solid rgba(67, 142, 200,.48); border-radius: 4px; background: linear-gradient(180deg, rgba(18,52,86,.96), rgba(7,14,22,.98)); box-shadow: inset 0 1px 0 rgba(197, 220, 238,.10), 0 0 14px rgba(67, 142, 200,.12); color: #438ec8 !important; font-size: 11px !important; letter-spacing: .12em !important; }
#navbar .navbar-panel-button::after { display: none !important; }
#navbar .navbar-panel-button:hover { color: #dbe9f4 !important; border-color: rgba(136, 193, 236,.72); box-shadow: inset 0 1px 0 rgba(197, 220, 238,.16), 0 0 18px rgba(67, 142, 200,.24); }
#navbar .navbar-burger { display: none; }

@media (max-width: 1100px) {
    #navbar { height: 56px; }
    #navbar .navbar-inner { display: flex; justify-content: space-between; height: 56px; padding: 0 14px; }
    #navbar .navbar-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 40px; padding: 0 10px; cursor: pointer; background: rgba(12, 22, 36, .85); border: 1px solid rgba(67, 142, 200,.38); border-radius: 4px; }
    #navbar .navbar-burger span { display: block; height: 2px; background: #438ec8; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
    #navbar.is-open .navbar-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #navbar.is-open .navbar-burger span:nth-child(2) { opacity: 0; }
    #navbar.is-open .navbar-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    #navbar .navbar-inner .menu { display: none; position: absolute; top: 56px; left: 0; right: 0; height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; background: linear-gradient(180deg, rgba(8, 12, 20, .98), rgba(6, 9, 15, .98)); border-bottom: 1px solid rgba(67, 142, 200,.28); box-shadow: 0 14px 30px rgba(0,0,0,.55); }
    #navbar.is-open .navbar-inner .menu { display: flex; }
    #navbar .navbar-inner .menu li { width: 100%; }
    #navbar .navbar-inner .menu a { width: 100%; height: 46px; padding: 0 22px; justify-content: flex-start; border-top: 1px solid rgba(255,255,255,.04); font-size: 12px; letter-spacing: .16em; }
    #navbar .navbar-inner .menu a::after { left: 22px; bottom: 10px; transform: none; }
    #navbar .navbar-inner .menu a:hover::after { width: 40px; }
    #navbar .navbar-panel-actions { height: 56px; }
    #navbar .navbar-panel-button { height: 32px !important; }
}

@media (max-width: 640px) {
    .wrapper_web { width: calc(100vw - 16px) !important; padding: 0 !important; margin-left: auto !important; margin-right: auto !important; }
    .content-page,
    .content-wrapper > div,
    .content-wrapper > form,
    .content-wrapper > table { padding: 16px 10px !important; }
}

@media (max-width: 992px) {
  .widget, .left-sidebar .widget, .right-sidebar .widget, .content-wrapper, .myaccount-section, .twofa-modal, .rrc-card, .rrc-hist-event, .rrc-inactive, .webshop-container, .webshop-panel, .warehouse-container, .warehouse-panel{
    background-size: 113.8% 74px, 113.8% 60px, 113.8% calc(100% - 16px) !important;
    background-position: 50% 0, 50% 100%, 50% 10px !important;
  }
}

@media (min-width: 1101px) and (max-width: 1500px) {
    #navbar .navbar-inner .menu a { padding: 0 11px; letter-spacing: .12em; white-space: nowrap; }
}

@media (max-width: 992px) {
    .content-wrapper {
        --bw-ph: max(56px, calc((100vw - 64px) * .169));
        padding-top: calc(var(--bw-ph) * .62) !important;
        background-size: 113.8% var(--bw-ph), 113.8% 60px, 113.8% calc(100% - 16px) !important;
        background-position: 50% 0, 50% 100%, 50% 10px !important;
    }
    .content-wrapper:has(> .page-title) { padding-top: 0 !important; }
    body .content-wrapper > .page-title {
        display: flex !important;
        align-items: center !important;
        height: calc(var(--bw-ph) * .76) !important;
        margin-bottom: calc(var(--bw-ph) * -.14) !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 640px) {
    .content-wrapper { --bw-ph: max(52px, calc((100vw - 16px) * .169)); }
}

@media (max-width: 640px) {
    .myaccount-table, .myaccount-table tbody, .myaccount-table tr, .myaccount-table td { display: block; width: 100% !important; }
    .myaccount-table td { overflow-wrap: anywhere; }
    .myaccount-table td:first-child { padding-bottom: 2px !important; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 0 !important; }
    .myaccount-table td:last-child { padding-top: 4px !important; }
    .myaccount-wrapper .twofa-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
}

@media (max-width: 640px) {
    .myaccount-table .vip-level-row { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 992px) {
    .container_web { flex-direction: row !important; flex-wrap: wrap !important; justify-content: center; align-items: flex-start; gap: 18px !important; }
    .container_web > main.content { order: -1; flex: 0 0 100%; width: 100% !important; }
    .container_web > .sidebar { display: contents !important; }
    .container_web > .sidebar > * { flex: 0 0 min(100%, 300px); width: min(100%, 300px) !important; margin: 0 !important; min-width: 0; }
    .container_web > .sidebar > style,
    .container_web > .sidebar > br { display: none !important; }
    .container_web > .sidebar > .download-block { flex: 0 0 min(100%, 300px); margin: 0 calc((100% - min(100%, 300px)) / 2) !important; }
    .container_web > .sidebar > iframe { flex-basis: min(100%, 350px); width: min(100%, 350px) !important; }
}

@media (max-width: 992px) {
    .container_web > .sidebar > .widget {
        background-size: 100% 108px, 100% 74px, 100% calc(100% - 16px) !important;
        background-position: top center, bottom center, center 10px !important;
    }
}

#navbar .navbar-ucp,
.bw-ucp-backdrop { display: none; }

@media (max-width: 992px) {
    #navbar .navbar-panel-actions { gap: 8px; }
    #navbar .navbar-ucp { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; color: #438ec8; font-family: 'Cinzel', Georgia, serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; background: linear-gradient(180deg, rgba(18,52,86,.96), rgba(7,14,22,.98)); border: 1px solid rgba(67, 142, 200,.48); border-radius: 4px; }
    #navbar .navbar-ucp i { font-size: 15px; }
    html.bw-ucp-open #navbar .navbar-ucp { color: #dbe9f4; border-color: rgba(136, 193, 236,.8); }

    body .container_web .sidebar .widget.bw-ucp-panel {
        position: fixed !important;
        top: 56px;
        right: 0;
        width: min(320px, calc(100vw - 24px)) !important;
        max-height: calc(100vh - 56px);
        overflow-y: auto !important;
        margin: 0 !important;
        transform: translateX(110%) !important;
        transition: transform .25s ease;
        box-shadow: -12px 0 30px rgba(0, 0, 0, .55);
    }
    html.bw-ucp-open body .container_web .sidebar .widget.bw-ucp-panel { transform: none !important; }
    html.bw-ucp-open .bw-ucp-backdrop { display: block; position: fixed; inset: 56px 0 0 0; z-index: 55; background: rgba(2, 6, 12, .6); }
}

@media (max-width: 1100px) {
    #navbar { position: fixed !important; top: 0; left: 0; right: 0; z-index: 70; }
    body { padding-top: 56px !important; }
}
@media (max-width: 992px) {
    body .container_web .sidebar .widget.bw-ucp-panel { z-index: 80 !important; }
}

.content-wrapper:not(:has(> .page-title)):has(> .alert:first-child) { padding-top: 64px !important; }
body .content-wrapper .alert {
  position: relative;
  display: block;
  line-height: 1.45;
}
body .content-wrapper .alert::before {
  content: "i";
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 900 13px/1 Georgia, serif;
  color: #0b1420;
  border-radius: 50%;
}
body .content-wrapper .alert::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}
body .content-wrapper .alert-danger::before { content: "!";   }

body .content-wrapper .alert-success::before { content: "\2713";   }

body .content-wrapper .alert-warning::before { content: "!";   }

body .content-wrapper .alert strong { color: #fff; }
@media (max-width: 992px) {
  .content-wrapper:not(:has(> .page-title)):has(> .alert:first-child) { padding-top: calc(var(--bw-ph) * .62) !important; }
}

body .content-wrapper .alert {
  --al: #438ec8;
  width: fit-content;
  max-width: min(460px, calc(100% - 68px));
  min-height: 0;
  margin: 4px auto 14px !important;
  padding: 9px 16px 9px 42px !important;
  color: #b4cfe4 !important;
  font-size: 12px;
  letter-spacing: .02em;
  text-align: left;
  background: linear-gradient(180deg, rgba(14, 24, 36, .96), rgba(5, 10, 17, .98)) !important;
  border: 1px solid rgba(67, 142, 200, .28) !important;
  border-radius: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
body .content-wrapper .alert::before {
  left: 13px;
  width: 19px;
  height: 19px;
  margin-top: -9.5px;
  font-size: 11px;
  background: var(--al);
  box-shadow: none;
}
body .content-wrapper .alert::after {
  inset: 0;
  width: auto;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--al) calc(50% - 1px), var(--al) calc(50% + 1px), transparent calc(50% + 1px)) top left / 10px 10px no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--al) calc(50% - 1px), var(--al) calc(50% + 1px), transparent calc(50% + 1px)) bottom right / 10px 10px no-repeat,
    linear-gradient(90deg, var(--al), transparent 55%) 10px 0 / 60% 1px no-repeat,
    linear-gradient(270deg, var(--al), transparent 55%) right 10px bottom 0 / 60% 1px no-repeat;
  pointer-events: none;
}
body .content-wrapper .alert-danger { --al: #e05252; }
body .content-wrapper .alert-success { --al: #3ecf7a; }
body .content-wrapper .alert-warning { --al: #f0a33a; }
body .content-wrapper .alert-info { --al: #5aa1e6; }
body .content-wrapper .alert-danger::before,
body .content-wrapper .alert-success::before,
body .content-wrapper .alert-warning::before,
body .content-wrapper .alert-info::before { background: var(--al); box-shadow: none; }
body .content-wrapper .alert-danger::after,
body .content-wrapper .alert-success::after,
body .content-wrapper .alert-warning::after,
body .content-wrapper .alert-info::after {
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--al) calc(50% - 1px), var(--al) calc(50% + 1px), transparent calc(50% + 1px)) top left / 10px 10px no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--al) calc(50% - 1px), var(--al) calc(50% + 1px), transparent calc(50% + 1px)) bottom right / 10px 10px no-repeat,
    linear-gradient(90deg, var(--al), transparent 55%) 10px 0 / 60% 1px no-repeat,
    linear-gradient(270deg, var(--al), transparent 55%) right 10px bottom 0 / 60% 1px no-repeat;
}
@media (max-width: 992px) {
  body .content-wrapper .alert { max-width: calc(100% - 8px); margin: 4px auto 12px !important; }
}
body .content-wrapper > .page-title + .alert { margin-top: 52px !important; margin-bottom: 34px !important; }

.bw-dc-widget .bw-dc {
    padding: 4px 4px 4px;
}
.bw-dc-head {
    display: flex;
    justify-content: flex-end;
    padding: 2px 8px 10px;
}
.bw-dc-count {
    color: #74b3e3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.bw-dc-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    min-height: 40px;
}
.bw-dc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(110,190,245,.1);
}
.bw-dc-list li:last-child {
    border-bottom: none;
}
.bw-dc-list img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(116, 179, 227,.35);
    flex: 0 0 auto;
    background: #0b1520;
}
.bw-dc-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bw-dc-name {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #d9e4ee;
    font-size: 12px;
    font-weight: 600;
}
.bw-dc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ba55c;
    box-shadow: 0 0 6px rgba(59,165,92,.7);
    flex: 0 0 auto;
}
i.bw-dc-idle {
    background: #3695de;
    box-shadow: 0 0 6px rgba(54, 149, 222,.7);
}
i.bw-dc-dnd {
    background: #ed4245;
    box-shadow: 0 0 6px rgba(237,66,69,.7);
}
.bw-dc-join {
    display: block;
    margin: 0 4px;
    padding: 10px 12px;
    text-align: center;
    border-radius: 3px;
    border: 1px solid rgba(116, 179, 227,.35);
    background: linear-gradient(180deg, #1b3550, #0f2238);
    color: #74b3e3 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-decoration: none;
}
.bw-dc-join:hover {
    border-color: rgba(116, 179, 227,.7);
    color: #fff !important;
}
.bw-dc-status {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #3ba55c;
}
.bw-dc-status.bw-dc-idle { color: #3695de; }
.bw-dc-status.bw-dc-dnd { color: #ed4245; }
/* Keep translated desktop navigation labels on a single line. */
@media (min-width: 1101px) {
    #navbar .navbar-inner {
        display: flex;
        justify-content: center;
        gap: 16px;
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }
    #navbar .navbar-inner .menu {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        gap: 2px;
    }
    #navbar .navbar-inner .menu li { flex: 0 0 auto; }
    #navbar .navbar-inner .menu a {
        white-space: nowrap;
        padding: 0 12px;
        letter-spacing: .14em;
    }
    #navbar .navbar-panel-actions { flex: 0 0 auto; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
    #navbar .navbar-inner { gap: 10px; }
    #navbar .navbar-inner .menu a {
        padding: 0 7px;
        font-size: 11px;
        letter-spacing: .09em;
    }
}

/* === Browser autofill ===
   Chrome/Edge paint saved logins with their own light background. Keep our dark
   field: cover it with an inset shadow and keep the text gold-white. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #c9dfef !important;
  caret-color: #c9dfef;
  -webkit-box-shadow: 0 0 0 1000px #070f18 inset !important;
  box-shadow: 0 0 0 1000px #070f18 inset !important;
  transition: background-color 600000s 0s, color 600000s 0s !important;
}
input:autofill { -webkit-text-fill-color: #c9dfef !important; box-shadow: 0 0 0 1000px #070f18 inset !important; }

.login-block .l-input input:-webkit-autofill,
.login-block .l-input input:-webkit-autofill:hover {
  border-color: rgba(96,176,232,0.26) !important;
  -webkit-box-shadow: 0 0 0 1000px #070f18 inset, inset 0 2px 7px rgba(0,0,0,0.65) !important;
  box-shadow: 0 0 0 1000px #070f18 inset, inset 0 2px 7px rgba(0,0,0,0.65) !important;
}
.login-block .l-input input:-webkit-autofill:focus {
  border-color: #75b0dd !important;
  -webkit-box-shadow: 0 0 0 1000px #0a1520 inset, 0 0 0 1px rgba(117, 176, 221,0.40), 0 0 16px rgba(226,130,58,0.30) !important;
  box-shadow: 0 0 0 1000px #0a1520 inset, 0 0 0 1px rgba(117, 176, 221,0.40), 0 0 16px rgba(226,130,58,0.30) !important;
}

/* AdminCP button: Revolut requests waiting for a confirmation */
.navbar-panel-admin { position: relative; }

/* Discord widget: role group headers (AdminCP > Discord with a bot token) */
.bw-dc-group { --dc-role: #438ec8; display: flex; align-items: center; gap: 8px; margin: 10px 2px 2px; padding: 0 2px 4px; border-bottom: 1px solid rgba(255,255,255,.06);
    font: 700 10px/1.2 Georgia, serif; letter-spacing: .16em; text-transform: uppercase; color: var(--dc-role); }
.bw-dc-group span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-dc-group em { font: 600 9px/1 Arial, sans-serif; font-style: normal; letter-spacing: 0; color: #9fb3c8; background: rgba(255,255,255,.06); border-radius: 8px; padding: 3px 6px; }
.bw-dc-group:first-of-type { margin-top: 2px; }
