/* Shared module skin for the BattleWarsMU fantasy theme. */
:root {
    --module-panel-line: rgba(86, 136, 174, .26);
    --module-panel-line-strong: rgba(134, 189, 231, .55);
    --module-panel-bg: rgba(4, 8, 15, .82);
    --module-panel-bg-soft: rgba(10, 21, 34, .74);
    --module-panel-text: var(--bw-gold-bright);
    --module-panel-muted: #9b8a72;
    --module-panel-gold: var(--bw-gold);
}

.content-wrapper .panel,
.content-wrapper .panel-default,
.content-wrapper .panel-body,
.content-wrapper .table-responsive,
.content-wrapper .rankings-table,
.content-wrapper .module-panel,
.content-wrapper .buyzen-card,
.content-wrapper .buyvip-card,
.content-wrapper .market-wrapper,
.content-wrapper .roulette-wrapper{
    background:
        linear-gradient(180deg, rgba(9, 18, 29, .94), rgba(3, 7, 13, .96)) !important;
    border-color: var(--module-panel-line) !important;
    color: var(--module-panel-text) !important;
    box-shadow: 0 24px 54px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

.content-wrapper .panel-heading,
.content-wrapper .panel-title,
.content-wrapper .module-title,
.content-wrapper .section-title,
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: var(--module-panel-text) !important;
    letter-spacing: 1.4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .75), 0 0 14px rgba(67, 142, 200, .16);
}

.content-wrapper .table,
.content-wrapper table {
    color: #b4cfe4 !important;
    background: rgba(1, 5, 11, .62) !important;
}

.content-wrapper .table > tbody > tr > td,
.content-wrapper .table > tbody > tr > th,
.content-wrapper .table > thead > tr > th,
.content-wrapper table td,
.content-wrapper table th {
    border-color: rgba(86, 136, 174, .18) !important;
}

.content-wrapper .table > thead > tr > th,
.content-wrapper table thead th {
    color: var(--module-panel-gold) !important;
    background: linear-gradient(180deg, rgba(12, 26, 39, .90), rgba(4, 8, 12, .92)) !important;
}

.content-wrapper input[type="text"],
.content-wrapper input[type="password"],
.content-wrapper input[type="email"],
.content-wrapper input[type="number"],
.content-wrapper select,
.content-wrapper textarea,
.content-wrapper .form-control {
    min-height: 40px;
    padding: 0 14px !important;
    color: #e0ecf6 !important;
    background: linear-gradient(180deg, rgba(10, 7, 4, .95), rgba(5, 11, 18, .92)) !important;
    border: 1px solid rgba(67, 142, 200, .28) !important;
    border-radius: 5px !important;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .42), 0 0 0 rgba(67, 142, 200, 0) !important;
}

.content-wrapper input:focus,
.content-wrapper select:focus,
.content-wrapper textarea:focus,
.content-wrapper .form-control:focus {
    border-color: rgba(121, 183, 230, .72) !important;
    box-shadow: 0 0 18px rgba(67, 142, 200, .18), inset 0 0 18px rgba(0, 0, 0, .42) !important;
    outline: none !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 input[type="button"]:where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    color: var(--bw-gold-bright) !important;
    background:
        linear-gradient(180deg, rgba(22, 55, 92, .95), rgba(8, 19, 36, .96)) !important;
    border: 1px solid rgba(120, 181, 227, .58) !important;
    border-radius: 5px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 28px rgba(0, 0, 0, .35) !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .65);
}

.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 input[type="button"]:hover:where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    filter: brightness(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 22px rgba(67, 142, 200, .20) !important;
}

.content-wrapper .alert,
.content-wrapper .notice,
.content-wrapper .message {
    background: rgba(5, 10, 18, .9) !important;
    border: 1px solid rgba(67, 142, 200, .24) !important;
    color: #b4cfe4 !important;
}

.content-wrapper .alert-danger,
.content-wrapper .error {
    border-color: rgba(255, 104, 104, .45) !important;
    color: #ffc4c4 !important;
}

.content-wrapper .alert-success,
.content-wrapper .success {
    border-color: rgba(92, 225, 147, .45) !important;
    color: #c7ffd9 !important;
}

/* Legacy module color normalization. These rules sit after extracted legacy CSS. */
.content-wrapper :where(
    [class*="-panel"],
    [class*="_panel"],
    [class*="-card"],
    [class*="_card"],
    [class*="-box"],
    [class*="_box"],
    [class*="-window"],
    [class*="-frame"],
    [class*="-section"],
    [class*="module"]
):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    border-color: rgba(86, 136, 174, .24) !important;
    color: #b4cfe4 !important;
}

.content-wrapper :where(
    [class*="-panel"],
    [class*="_panel"],
    [class*="-card"],
    [class*="_card"],
    [class*="-box"],
    [class*="_box"],
    [class*="-window"],
    [class*="-frame"]
):not(.rankings-filter-link):not(.categoria_shop):not(.categoria_shop_item):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    background:
        radial-gradient(circle at 50% 0, rgba(67, 142, 200, .07), transparent 42%),
        linear-gradient(180deg, rgba(5, 10, 18, .92), rgba(5, 4, 3, .95)) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.content-wrapper :where(
    [class*="-header"],
    [class*="_header"],
    [class*="-heading"],
    [class*="_heading"],
    [class*="-title"],
    [class*="_title"]
):not(.bw-news-header):not(.buyzen-header):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    border-color: rgba(120, 178, 223, .34) !important;
    color: var(--bw-gold-bright) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .75), 0 0 14px rgba(67, 142, 200, .16);
}

.content-wrapper :where(
    a[class*="btn"],
    a[class*="button"],
    button[class*="btn"],
    button[class*="button"],
    input[type="submit"],
    input[type="button"],
    .button,
    .submit,
    [class*="-button"],
    [class*="_button"]
):not(.bw-news-toggle-btn):not(.buyzen-submit):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    color: var(--bw-gold-bright) !important;
    background: linear-gradient(180deg, rgba(22, 55, 92, .94), rgba(8, 19, 36, .96)) !important;
    border-color: rgba(120, 178, 223, .55) !important;
}

.content-wrapper :where(
    [style*="background: linear-gradient"],
    [style*="background:linear-gradient"],
    [style*="background-color"]
):not(.slot-particle):not(.resource-fill):not(.progress-bar):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    background:
        linear-gradient(180deg, rgba(5, 10, 18, .90), rgba(5, 4, 3, .94)) !important;
}

.content-wrapper :where(
    [style*="border: 1px solid"],
    [style*="border:1px solid"],
    [style*="border: 2px solid"],
    [style*="border:2px solid"]
):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    border-color: rgba(86, 136, 174, .26) !important;
}

.content-wrapper :where(
    [style*="var(--bw-gold-dim)"],
    [style*="var(--bw-gold-dim)"],
    [style*="var(--bw-gold-dim)"],
    [style*="var(--bw-gold-dim)"]
):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    color: var(--bw-gold-bright) !important;
}

.content-wrapper :where(.rankings-filter-link, .gr-switcher a, .lv-filter-wrap a):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    background: linear-gradient(180deg, rgba(12, 26, 39, .90), rgba(4, 8, 12, .94)) !important;
    border-color: rgba(86, 136, 174, .28) !important;
    color: #b4cfe4 !important;
}

.content-wrapper :where(.rankings-filter-link:hover, .gr-switcher a:hover, .lv-filter-wrap a:hover),
.content-wrapper :where(.rankings-filter-active, .gr-switcher a.active):where(:not(.bw-skin-off *):not(.bw-skin-off)) {
    background: linear-gradient(180deg, rgba(22, 55, 92, .90), rgba(8, 19, 36, .96)) !important;
    border-color: rgba(120, 178, 223, .58) !important;
    color: var(--bw-gold-bright) !important;
}

/* ===========================================================================
   SHARED MODULE HEADING

   Every module already emits <div class="page-title"><span>…</span></div>, but
   each one used to restyle it locally - inventory.css drew a header-bar image
   plus a gem, register/event/tos/chaos each had their own. This is the single
   definition, so every module (and every new one) gets the same heading with
   no extra CSS.

   module-skin.css is loaded after the per-module stylesheets, so this settles
   the ties without needing higher specificity.
   =========================================================================== */

.content-wrapper .page-title {
    position: relative !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    /* Clear space under the heading so the module body is not glued to it. */
    margin: 0 0 26px !important;
    padding: 0 30px 0 48px !important;
    text-align: left !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: auto !important;
}

/* Drop any plate, bar art or gem a module hung off the heading. */
.content-wrapper .page-title::before,
.content-wrapper .page-title::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.content-wrapper .page-title span {
    display: inline-block !important;
    color: var(--bw-gold) !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8) !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
}

/* An empty notification slot is still a .content-wrapper > div and picks up
   its 24px/28px padding, pushing every heading down. Collapse it until used. */
.content-wrapper .notification:empty {
    display: none !important;
}
