/*
 * Vamp Wars — Nightfall MMORPG UI
 * Site-wide dark, responsive, professional browser-game skin.
 * Loaded last so it safely refines the legacy MCCodes and public layouts.
 */

:root {
    color-scheme: dark;
    --night-0: #05070b;
    --night-1: #080b12;
    --night-2: #0d121c;
    --night-3: #121925;
    --night-4: #192233;
    --night-5: #222d40;
    --panel: rgba(14, 19, 29, .96);
    --panel-raised: rgba(20, 27, 40, .98);
    --panel-soft: rgba(27, 35, 51, .78);
    --line: rgba(163, 181, 207, .15);
    --line-strong: rgba(192, 208, 232, .25);
    --crimson: #a51f39;
    --crimson-bright: #d5415a;
    --crimson-deep: #5e1023;
    --violet: #7650a8;
    --blue: #4c94c7;
    --cyan: #60c7c9;
    --gold: #d4b16b;
    --gold-bright: #f2d696;
    --green: #4cc783;
    --orange: #d79b4a;
    --danger: #ef6575;
    --text: #eef3fb;
    --text-soft: #c4cfdd;
    --muted: #8f9bae;
    --faint: #677286;
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, .22);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, .34);
    --shadow-lg: 0 30px 90px rgba(0, 0, 0, .46);
    --glow-crimson: 0 0 34px rgba(184, 37, 64, .18);
    --radius-xs: 7px;
    --radius-sm: 11px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --content-width: 1380px;
}

html {
    min-height: 100%;
    background: var(--night-0);
    scrollbar-color: #35435a #090d14;
    scrollbar-width: thin;
}

body,
body.dark-body,
body.vw-public-body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 8% -10%, rgba(164, 31, 57, .22), transparent 31rem),
        radial-gradient(circle at 94% 2%, rgba(74, 89, 154, .17), transparent 34rem),
        radial-gradient(circle at 48% 105%, rgba(78, 33, 89, .16), transparent 38rem),
        linear-gradient(180deg, var(--night-1) 0, var(--night-0) 55%, #030407 100%) fixed !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: .002em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000, transparent 78%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18));
}

::selection {
    color: #fff;
    background: rgba(213, 65, 90, .72);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

a {
    color: #86bfe6;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
    color: #b9ddf5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(96, 199, 201, .56);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   Shared professional surfaces
--------------------------------------------------------- */

.vw-content-card,
.vw-side-card,
.vw-page-hero,
.vw-stat-strip,
.vw-feature-card,
.vw-profile-card,
.vw-list-card,
.vw-update-card,
.vw-profile-header,
.vw-profile-stat,
.vw-empty-state,
.block,
.info,
.success,
.error,
.theme-content table:not(.layout-table),
.dark-body .theme-content table:not(.layout-table) {
    color: var(--text-soft);
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent 80px),
        var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.vw-content-card,
.vw-side-card,
.vw-page-hero,
.vw-stat-strip,
.vw-feature-card,
.vw-profile-card,
.vw-list-card,
.vw-update-card,
.vw-profile-header,
.vw-profile-stat,
.vw-empty-state {
    border-radius: var(--radius-md);
}

.vw-content-card,
.vw-feature-card,
.vw-profile-card,
.vw-list-card,
.vw-update-card,
.vw-side-card {
    position: relative;
    overflow: hidden;
}

.vw-content-card::before,
.vw-feature-card::before,
.vw-profile-card::before,
.vw-list-card::before,
.vw-update-card::before,
.vw-side-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(213,65,90,.62), transparent);
    opacity: .62;
    pointer-events: none;
}

.vw-content-card h1,
.vw-content-card h2,
.vw-content-card h3,
.vw-feature-card h3,
.vw-profile-card h3,
.vw-side-card-title,
.vw-section-heading h2,
.vw-page-hero h1,
.theme-content h1,
.theme-content h2,
.theme-content h3,
.theme-content h4 {
    color: var(--text);
}

.vw-content-card h2,
.vw-section-heading h2,
.theme-content h3 {
    letter-spacing: -.018em;
}

.vw-content-card p,
.vw-feature-card p,
.vw-profile-card p,
.vw-list-card p,
.vw-page-hero p,
.vw-section-heading p,
.vw-side-card span,
.vw-update-card p {
    color: var(--text-soft);
}

.vw-content-card li,
.vw-content-card p {
    line-height: 1.78;
}

.vw-content-card strong,
.vw-feature-card strong,
.vw-profile-card strong,
.vw-list-card strong,
.vw-side-card strong {
    color: #f7f9fd;
}

/* ---------------------------------------------------------
   Public / discoverable shell
--------------------------------------------------------- */

body.vw-public-body {
    margin: 0;
    padding: 0;
    color: var(--text);
}

.vw-public-body a {
    color: #83bfe7;
}

.vw-public-width {
    width: min(var(--content-width), calc(100% - 38px));
}

.vw-public-utility {
    position: relative;
    color: #d5deea;
    background: rgba(4, 6, 10, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255,255,255,.02);
}

.vw-public-utility .vw-public-width {
    min-height: 38px;
}

.vw-public-utility i {
    color: var(--crimson-bright);
}

.vw-utility-stats {
    color: var(--muted);
}

.vw-utility-stats b {
    color: var(--gold-bright);
}

.vw-public-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: var(--text);
    background: rgba(8, 11, 18, .91);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(0,0,0,.30);
    backdrop-filter: blur(18px) saturate(125%);
}

.vw-brand-row {
    min-height: 88px;
    grid-template-columns: minmax(210px, auto) minmax(260px, 1fr) auto;
    gap: 26px;
}

.vw-public-brand {
    color: var(--text) !important;
}

.vw-brand-mark,
.mmorpg-appbar-mark {
    color: #fff;
    background:
        radial-gradient(circle at 26% 20%, rgba(255,255,255,.24), transparent 38%),
        linear-gradient(145deg, #c42d49, #6e1429 58%, #341020);
    border: 1px solid rgba(255,255,255,.34);
    outline: 1px solid rgba(213,65,90,.62);
    box-shadow: 0 11px 30px rgba(142, 22, 48, .34), inset 0 1px 0 rgba(255,255,255,.18);
}

.vw-public-brand strong {
    color: #f8f4ed;
    text-shadow: 0 2px 18px rgba(213,65,90,.20);
}

.vw-public-brand small {
    color: var(--muted);
}

.vw-header-search form {
    padding: 5px;
    background: rgba(21, 28, 41, .86);
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.42), 0 8px 24px rgba(0,0,0,.14);
}

.vw-header-search input {
    color: var(--text);
}

.vw-header-search input::placeholder {
    color: #728096;
}

.vw-header-search button {
    color: #fff;
    background: linear-gradient(180deg, #bd314d, #7b192f);
    box-shadow: 0 6px 16px rgba(150, 26, 51, .25);
}

.vw-button {
    min-height: 42px;
    border-radius: var(--radius-sm);
    letter-spacing: .01em;
    box-shadow: none;
}

.vw-button-primary,
input[type="submit"],
button[type="submit"],
.btn-primary {
    color: #fff !important;
    background: linear-gradient(180deg, #c32f4b, #7c182f) !important;
    border: 1px solid #d3445d !important;
    box-shadow: 0 8px 22px rgba(132, 23, 47, .26), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.vw-button-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.btn-primary:hover {
    filter: brightness(1.09);
    transform: translateY(-1px);
}

.vw-button-soft {
    color: #d9e5f2 !important;
    background: rgba(31, 40, 57, .88);
    border-color: var(--line-strong);
}

.vw-button-soft:hover {
    color: #fff !important;
    background: rgba(43, 54, 74, .96);
}

.vw-category-nav {
    background: rgba(10, 14, 22, .96);
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid var(--line);
}

.vw-category-nav .vw-public-width {
    gap: 7px;
    padding-block: 7px;
}

.vw-category-link {
    min-height: 67px;
    color: #aab6c6 !important;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.vw-category-link:hover,
.vw-category-link.is-active {
    color: #fff !important;
    background: linear-gradient(180deg, rgba(39, 49, 67, .95), rgba(22, 29, 42, .95));
    border-color: var(--line-strong);
}

.vw-category-link::after {
    left: 24%;
    right: 24%;
    bottom: -8px;
    height: 3px;
    background: transparent;
}

.vw-category-link.is-active::after {
    background: var(--crimson-bright);
    box-shadow: 0 0 18px rgba(213,65,90,.70);
}

.vw-category-icon {
    color: #c7d1df;
    background: rgba(30, 39, 55, .88);
    border: 1px solid var(--line);
}

.vw-category-link:hover .vw-category-icon,
.vw-category-link.is-active .vw-category-icon {
    color: #fff;
    background: linear-gradient(145deg, #b72945, #67152a);
    border-color: #cb3b55;
    box-shadow: 0 8px 20px rgba(133, 24, 48, .28);
}

.vw-public-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 26px;
    padding-top: 28px;
    padding-bottom: 44px;
}

.vw-public-sidebar {
    top: 170px;
    gap: 16px;
}

.vw-side-card {
    padding: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(119,80,168,.10), transparent 160px),
        var(--panel);
}

.vw-side-card-title {
    padding-bottom: 11px;
    margin-bottom: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.vw-side-card-title i {
    color: var(--crimson-bright);
}

.vw-side-link,
.vw-side-nav-link,
.vw-side-actions a {
    color: #9fc9e5 !important;
}

.vw-side-nav-link {
    border-color: var(--line) !important;
}

.vw-side-nav-link:hover {
    color: #fff !important;
    background: rgba(44, 56, 76, .56);
}

.vw-login-form input,
.vw-public-body input,
.vw-public-body select,
.vw-public-body textarea,
.theme-content input[type="text"],
.theme-content input[type="password"],
.theme-content input[type="email"],
.theme-content input[type="number"],
.theme-content input[type="search"],
.theme-content select,
.theme-content textarea,
.register-shell input,
.register-shell select,
.register-shell textarea,
.forgot-shell input,
.forgot-shell select,
.forgot-shell textarea,
.reset-shell input,
.reset-shell select,
.reset-shell textarea {
    color: var(--text) !important;
    background: #0b1018 !important;
    border: 1px solid #2a3548 !important;
    border-radius: 9px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.42) !important;
}

.vw-login-form input:focus,
.vw-public-body input:focus,
.vw-public-body select:focus,
.vw-public-body textarea:focus,
.theme-content input:focus,
.theme-content select:focus,
.theme-content textarea:focus,
.register-shell input:focus,
.register-shell select:focus,
.register-shell textarea:focus {
    border-color: rgba(96,199,201,.65) !important;
    box-shadow: 0 0 0 3px rgba(96,199,201,.11), inset 0 1px 2px rgba(0,0,0,.42) !important;
}

.vw-page-hero {
    min-height: 250px;
    padding: clamp(25px, 4.4vw, 54px);
    background:
        radial-gradient(circle at 80% 22%, rgba(95, 111, 182, .22), transparent 28%),
        radial-gradient(circle at 10% 10%, rgba(188, 40, 68, .25), transparent 35%),
        linear-gradient(135deg, #17111b, #0e1420 57%, #0a0e16);
    border-color: rgba(213,65,90,.24);
    box-shadow: var(--shadow-md), var(--glow-crimson);
}

.vw-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255,255,255,.035), transparent 35%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 13px);
}

.vw-page-hero-copy,
.vw-page-hero-mark {
    position: relative;
    z-index: 1;
}

.vw-page-hero h1 {
    max-width: 800px;
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.vw-page-hero p {
    max-width: 780px;
    color: #c5cfde;
    font-size: clamp(15px, 1.5vw, 18px);
}

.vw-page-hero-mark {
    color: rgba(213,65,90,.26);
    filter: drop-shadow(0 0 34px rgba(213,65,90,.22));
}

.vw-eyebrow {
    color: var(--gold-bright) !important;
    background: rgba(212,177,107,.08);
    border: 1px solid rgba(212,177,107,.24);
}

.vw-stat-strip {
    background: linear-gradient(180deg, rgba(26,34,48,.98), rgba(12,17,26,.98));
}

.vw-stat-strip > div + div {
    border-color: var(--line);
}

.vw-stat-strip strong,
.vw-realm-stat-grid strong,
.vw-profile-stat strong {
    color: var(--gold-bright);
}

.vw-stat-strip span,
.vw-realm-stat-grid span,
.vw-profile-stat span {
    color: var(--muted);
}

.vw-feature-card,
.vw-profile-card,
.vw-list-card {
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--card-accent, #a51f39) 13%, transparent), transparent 175px),
        linear-gradient(180deg, rgba(255,255,255,.018), transparent 90px),
        var(--panel);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .vw-feature-card,
    .vw-profile-card,
    .vw-list-card {
        background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 90px), var(--panel);
    }
}

.vw-feature-card:hover,
.vw-profile-card:hover,
.vw-list-card:hover {
    transform: translateY(-3px);
    border-color: rgba(213,65,90,.34);
    box-shadow: var(--shadow-md);
}

.vw-feature-icon,
.vw-category-icon {
    border-radius: 12px;
}

.vw-feature-icon {
    color: #fff;
    background: linear-gradient(145deg, var(--card-accent, #a51f39), #33121c);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.vw-badge {
    color: #d7e1ed;
    background: rgba(33, 43, 60, .92);
    border: 1px solid var(--line-strong);
}

.vw-badge-vampire {
    color: #ffccd4;
    background: rgba(136, 22, 45, .28);
    border-color: rgba(213,65,90,.36);
}

.vw-badge-lycan {
    color: #cfe5ff;
    background: rgba(55, 94, 139, .30);
    border-color: rgba(76,148,199,.38);
}

.vw-table,
.vw-public-body table {
    color: var(--text-soft);
    background: var(--panel);
    border-color: var(--line);
}

.vw-table th,
.vw-public-body table th {
    color: #dce5f0;
    background: #151d2a;
    border-color: var(--line);
}

.vw-table td,
.vw-public-body table td {
    border-color: var(--line);
}

.vw-table tbody tr:hover,
.vw-public-body table tbody tr:hover {
    background: rgba(50, 64, 86, .36);
}

.vw-breadcrumbs {
    color: var(--muted);
}

.vw-breadcrumbs a {
    color: #94c7e8;
}

.vw-faq details {
    background: rgba(20, 28, 41, .78);
    border-color: var(--line);
}

.vw-faq summary {
    color: var(--text);
}

.vw-public-footer {
    color: var(--text-soft);
    background:
        radial-gradient(circle at 10% 0, rgba(165,31,57,.12), transparent 260px),
        #06080d;
    border-top: 1px solid var(--line);
}

.vw-public-footer strong {
    color: #fff;
}

.vw-public-footer span,
.vw-public-footer small {
    color: var(--muted);
}

.vw-footer-links a {
    color: #9dcce9 !important;
}

.vw-trust-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vw-trust-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    color: #bdd8eb !important;
    background: rgba(27, 36, 52, .74);
    border: 1px solid var(--line);
    border-radius: 9px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}

.vw-trust-links a:hover {
    color: #fff !important;
    border-color: rgba(96,199,201,.35);
}

/* AdSense-safe ad container: content-only, never sticky or overlaid. */
.vw-ad-unit {
    position: relative;
    width: 100%;
    min-height: 110px;
    display: grid;
    place-items: center;
    margin: 24px 0;
    padding: 18px;
    overflow: hidden;
    color: var(--muted);
    background: rgba(10, 14, 21, .62);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: center;
}

.vw-ad-unit::before {
    content: "Advertisement";
    position: absolute;
    margin-top: -88px;
    color: #6f7a8b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.vw-ad-unit .adsbygoogle {
    width: 100%;
}

/* ---------------------------------------------------------
   Authenticated MMORPG client
--------------------------------------------------------- */

.theme-shell.dark-theme-shell {
    width: 100%;
    min-height: 100vh;
    background: transparent;
}

.theme-wrapper.dark-theme-wrapper {
    width: min(var(--content-width), calc(100% - 28px));
    margin-inline: auto;
}

.theme-header.dark-theme-header {
    margin: 14px 0;
    overflow: visible;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 0, rgba(190,42,69,.25), transparent 36%),
        radial-gradient(circle at 88% 6%, rgba(76,148,199,.16), transparent 33%),
        linear-gradient(135deg, #15111a, #0d1420 58%, #090d14);
    border: 1px solid rgba(213,65,90,.24);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--glow-crimson);
}

.header_bg {
    min-height: 142px;
    padding: 22px 26px;
}

.vw-game-brand-panel {
    min-width: 240px;
    color: var(--text) !important;
}

.vw-game-brand-panel strong {
    color: #fff !important;
    font-size: 27px;
}

.vw-game-brand-panel small {
    color: var(--muted) !important;
}

.player_stats {
    width: min(100%, 340px);
    padding: 14px;
    background: rgba(5, 8, 13, .62);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.player_name {
    padding-bottom: 9px;
    margin-bottom: 8px;
    color: #fff;
    border-bottom: 1px solid var(--line);
    font-weight: 900;
}

.player_stats table,
.player_stats td {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.player_stats_lbl {
    color: #9aa8ba;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.player_stats_bar {
    height: 8px;
    overflow: hidden;
    background: #080b11;
    border: 1px solid #283247;
    border-radius: 999px;
}

.player_stats_bar_value {
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 0 14px currentColor;
}

.player_stats_percent_value {
    color: #d6dfeb;
    font-variant-numeric: tabular-nums;
}

.header_meta_bar {
    padding: 10px 15px;
    background: rgba(6, 9, 14, .82);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.player_assets {
    display: grid;
    grid-template-columns: repeat(8, minmax(95px, 1fr));
    gap: 7px;
}

.player_assets .asset {
    min-height: 49px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7px 9px;
    background: rgba(26, 34, 49, .72);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.asset_label {
    color: #7f8b9e;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.asset_value {
    color: #edf3fa;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header_nav_bar {
    padding: 8px 10px 10px;
    background: rgba(9, 13, 20, .96);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.header_quicklinks {
    display: grid;
    grid-template-columns: repeat(11, minmax(72px, 1fr));
    gap: 6px;
}

.header_quicklink {
    position: relative;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 5px;
    color: #aeb9c8 !important;
    background: rgba(27, 35, 50, .72);
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 850;
}

.header_quicklink i {
    color: #d4dce7;
    font-size: 15px;
}

.header_quicklink:hover,
.header_quicklink.is-active {
    color: #fff !important;
    background: linear-gradient(180deg, #2b3548, #1a2230);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.header_quicklink:hover i,
.header_quicklink.is-active i {
    color: var(--crimson-bright);
}

.header_quicklink_count,
.mmorpg-appbar-badge {
    color: #fff;
    background: var(--crimson-bright);
    border: 2px solid #121824;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

.content-shell.dark-content-shell {
    padding-bottom: 34px;
}

.layout-table.dark-layout-table,
.dark-body .layout-table,
.dark-body .dark-layout-table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.layout-left.dark-layout-left {
    width: 260px !important;
    padding-right: 18px;
}

.layout-main.dark-layout-main {
    width: auto !important;
    min-width: 0;
}

.sidebar.dark-sidebar {
    position: sticky;
    top: 14px;
    width: 100%;
    color: var(--text-soft);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.menu-panel.dark-panel {
    padding: 8px;
}

.menu-group {
    overflow: hidden;
    margin: 0 0 7px;
    background: rgba(20, 27, 40, .72) !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
}

.menu-group > summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px !important;
    color: #e4ebf4 !important;
    background: linear-gradient(180deg, rgba(255,255,255,.025), transparent) !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
    cursor: pointer;
}

.menu-group > summary:hover {
    background: rgba(42, 53, 72, .72) !important;
}

.menu-group a,
.menu-item,
.sidebar a {
    color: #aebdce !important;
}

.menu-group a:hover,
.menu-item:hover,
.sidebar a:hover {
    color: #fff !important;
    background: rgba(50, 64, 86, .50) !important;
}

.dark-main-content,
.theme-content.main-content {
    min-height: 620px;
    overflow: hidden;
    color: var(--text-soft);
    background:
        radial-gradient(circle at 100% 0, rgba(76,148,199,.07), transparent 280px),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.content-inner.dark-content-inner {
    padding: clamp(17px, 2.4vw, 30px);
}

.theme-content h3:first-child,
.theme-content > .content-inner > h3:first-child {
    margin-top: 0;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
    color: #fff;
    font-size: clamp(22px, 3vw, 31px);
}

.theme-content hr {
    border: 0;
    border-top: 1px solid var(--line);
}

.theme-content .table,
.theme-content table:not(.layout-table) {
    width: 100%;
    overflow: hidden;
    color: var(--text-soft) !important;
    background: #101620 !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
}

.theme-content table:not(.layout-table) th,
.theme-content .table th {
    padding: 11px 12px;
    color: #e9eef6 !important;
    background: #182130 !important;
    border-color: var(--line) !important;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.theme-content table:not(.layout-table) td,
.theme-content .table td {
    padding: 10px 12px;
    color: #c7d1df !important;
    background: transparent !important;
    border-color: var(--line) !important;
}

.theme-content table:not(.layout-table) tr:nth-child(even) td,
.theme-content .table tr:nth-child(even) td {
    background: rgba(255,255,255,.014) !important;
}

.theme-content table:not(.layout-table) tr:hover td,
.theme-content .table tr:hover td {
    background: rgba(65, 82, 109, .23) !important;
}

.info,
.success,
.error,
.alert-box,
.block {
    border-radius: 10px;
}

.info {
    color: #d7e9fa !important;
    background: rgba(53, 107, 146, .18) !important;
    border-color: rgba(76,148,199,.34) !important;
}

.success {
    color: #d8f9e6 !important;
    background: rgba(40, 130, 82, .18) !important;
    border-color: rgba(76,199,131,.34) !important;
}

.error,
.alert-box {
    color: #ffe1e5 !important;
    background: rgba(147, 30, 55, .20) !important;
    border-color: rgba(239,101,117,.38) !important;
}

.dark-donate-banner {
    color: #f9ebc8 !important;
    background: linear-gradient(90deg, rgba(116,78,24,.30), rgba(64,42,16,.22)) !important;
    border: 1px solid rgba(212,177,107,.30) !important;
    border-radius: 10px;
}

.theme-footer.dark-theme-footer {
    margin: 0 0 90px;
    color: var(--faint);
    background: transparent;
    border: 0;
}

/* ---------------------------------------------------------
   Registration / recovery standalone pages
--------------------------------------------------------- */

.register-page,
.forgot-page,
.reset-page,
body:has(.register-shell),
body:has(.forgot-shell),
body:has(.reset-shell) {
    color: var(--text);
}

.register-shell,
.forgot-shell,
.reset-shell {
    width: min(1100px, calc(100% - 28px)) !important;
}

.register-card,
.forgot-card,
.reset-card,
.register-panel,
.forgot-form-shell,
.reset-form-shell {
    color: var(--text-soft) !important;
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
}

.register-title,
.forgot-title,
.reset-title {
    color: #fff !important;
}

.register-subtitle,
.forgot-subtitle,
.reset-subtitle,
.register-help,
.forgot-help,
.reset-help {
    color: var(--muted) !important;
}

/* ---------------------------------------------------------
   Loaders, toasts and mobile dock
--------------------------------------------------------- */

.mmorpg-page-loader {
    background: linear-gradient(90deg, transparent, var(--crimson-bright), var(--cyan), transparent);
    box-shadow: 0 0 18px rgba(213,65,90,.32);
}

.mmorpg-toast {
    color: var(--text);
    background: #121925;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-md);
}

.mmorpg-mobile-appbar,
.mmorpg-bottom-nav,
.vw-public-bottom-nav {
    color: var(--text);
    background: rgba(8, 11, 18, .95);
    border-color: var(--line);
    backdrop-filter: blur(18px) saturate(130%);
}

.mmorpg-bottom-link,
.vw-public-bottom-nav a {
    color: #98a6b8 !important;
}

.mmorpg-bottom-link:hover,
.mmorpg-bottom-link.is-active,
.vw-public-bottom-nav a:hover,
.vw-public-bottom-nav a.is-active {
    color: #fff !important;
}

.mmorpg-bottom-link-primary {
    color: #fff !important;
    background: linear-gradient(180deg, #c5304c, #79172e);
    border-color: #d6465f;
    box-shadow: 0 9px 24px rgba(131, 22, 46, .34);
}

/* ---------------------------------------------------------
   Responsive professional client
--------------------------------------------------------- */

@media (max-width: 1180px) {
    .player_assets {
        grid-template-columns: repeat(4, minmax(110px, 1fr));
    }

    .header_quicklinks {
        grid-template-columns: repeat(6, minmax(78px, 1fr));
    }

    .vw-public-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 920px) {
    .vw-public-header {
        position: relative;
    }

    .vw-public-layout {
        grid-template-columns: 1fr;
    }

    .vw-public-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .layout-left.dark-layout-left {
        padding-right: 0;
    }

    .dark-main-content,
    .theme-content.main-content {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    body.vw-public-body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }

    .vw-public-width,
    .theme-wrapper.dark-theme-wrapper {
        width: min(100% - 18px, var(--content-width));
    }

    .vw-public-utility .vw-public-width {
        justify-content: center;
    }

    .vw-utility-stats {
        display: none;
    }

    .vw-brand-row {
        min-height: 69px;
        grid-template-columns: 42px 1fr auto;
        gap: 10px;
    }

    .vw-account-actions .vw-button-soft {
        display: none;
    }

    .vw-public-brand strong {
        font-size: 20px;
    }

    .vw-public-brand small {
        display: none;
    }

    .vw-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 13px 13px 13px 5px;
    }

    .vw-header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        padding-bottom: 11px;
    }

    .vw-page-hero {
        min-height: 0;
        border-radius: 17px;
    }

    .vw-page-hero h1 {
        font-size: clamp(31px, 10vw, 45px);
    }

    .vw-page-hero-mark {
        opacity: .34;
    }

    .vw-public-sidebar {
        grid-template-columns: 1fr;
    }

    .vw-trust-links {
        grid-template-columns: 1fr 1fr;
    }

    .header_bg {
        min-height: 0;
        padding: 17px;
    }

    .player_assets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header_quicklinks {
        grid-template-columns: repeat(4, minmax(72px, 1fr));
    }

    .content-inner.dark-content-inner {
        padding: 14px;
    }

    .theme-content table:not(.layout-table) {
        min-width: 620px;
    }

    .theme-content .table-responsive,
    .theme-content:has(table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 520px) {
    .vw-public-width,
    .theme-wrapper.dark-theme-wrapper {
        width: min(100% - 12px, var(--content-width));
    }

    .vw-page-hero,
    .vw-content-card,
    .vw-side-card,
    .vw-feature-card,
    .vw-profile-card,
    .vw-list-card,
    .vw-update-card,
    .dark-main-content,
    .sidebar.dark-sidebar {
        border-radius: 13px;
    }

    .vw-trust-links {
        grid-template-columns: 1fr;
    }

    .header_quicklinks {
        grid-template-columns: repeat(3, minmax(70px, 1fr));
    }

    .player_stats {
        width: 100%;
    }

    .player_assets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player_assets .asset {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.vw-policy-date {
    margin: -10px 0 18px;
    color: var(--muted);
    font-size: 12px;
}
