/* ==========================================================================
   BOSSRO THEME - design system
   "Royal boss-hunt": ink surfaces, crown-gold highlights, arcane-violet actions
   Loaded AFTER css/style.css (legacy module styles, palette-remapped) so it
   owns the look of the shell, the home page and the shared module skin.
   ========================================================================== */

/* ---------- 1. tokens ---------------------------------------------------- */
:root {
    --bx-bg: #07070f;
    --bx-bg-2: #0b0b16;
    --bx-panel: #12111d;
    --bx-panel-2: #181729;
    --bx-panel-3: #201f36;
    --bx-line: rgba(255, 255, 255, .08);
    --bx-line-2: rgba(255, 255, 255, .15);

    --bx-text: #ebe9f7;
    --bx-muted: #9a98b8;
    --bx-dim: #6f6d8c;

    --bx-gold: #f5b82e;
    --bx-gold-2: #ffd978;
    --bx-gold-deep: #b9810f;
    --bx-violet: #7c5cff;
    --bx-violet-2: #a78bfa;
    --bx-violet-deep: #4a2fd1;
    --bx-green: #35e08a;
    --bx-red: #ff4d6d;

    --bx-font-ui: 'Chakra Petch', 'Inter', system-ui, sans-serif;
    --bx-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* legacy variables still referenced by style.css */
    --themeTextColor: #ebe9f7;
    --themeColor: #7c5cff;
    --themeHover: #f5b82e;
}

/* ---------- 2. base ------------------------------------------------------ */
html { scroll-behavior: smooth; background: var(--bx-bg); }

body.bx-body {
    background: var(--bx-bg);
    color: var(--bx-text);
    font-family: var(--bx-font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

/* faint grid + glow that stays behind everything */
body.bx-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 12% -5%, rgba(124, 92, 255, .16), transparent 65%),
        radial-gradient(700px 480px at 100% 100%, rgba(245, 184, 46, .07), transparent 65%);
}

body.bx-body > header,
body.bx-body > main,
body.bx-body > footer { position: relative; z-index: 2; }

main { background: transparent !important; }

::selection { background: var(--bx-gold); color: #1a1204; }
* { scrollbar-width: thin; scrollbar-color: #3a3860 #0b0b16; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #0b0b16; }
*::-webkit-scrollbar-thumb { background: #3a3860; border-radius: 6px; border: 2px solid #0b0b16; }
*::-webkit-scrollbar-thumb:hover { background: #55528a; }

a { color: var(--bx-gold-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }

.bx-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- 3. preloader + embers --------------------------------------- */
#load { background: var(--bx-bg) !important; display: grid; place-items: center; }
#load .bx-preloader {
    margin: 0; max-width: none; max-height: none; height: auto; width: auto;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
#load .bx-preloader img.bx-preloader-logo { width: 170px !important; animation: bxPulse 1.8s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(245, 184, 46, .35)); }
.bx-preloader-bar { width: 180px; height: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; border-radius: 3px; }
.bx-preloader-bar span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--bx-gold), transparent); animation: bxSlide 1.1s ease-in-out infinite; }
.bx-preloader small { font: 600 11px var(--bx-font-ui); letter-spacing: .4em; color: var(--bx-dim); }
@keyframes bxPulse { 0%, 100% { transform: scale(.96); opacity: .85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes bxSlide { from { transform: translateX(-120%); } to { transform: translateX(320%); } }

#fire_sparks { z-index: 1 !important; opacity: .55; }
.spark { width: 4px !important; height: 4px !important; }
.spark_inner { background: var(--bx-gold) !important; box-shadow: 0 0 10px 2px rgba(245, 184, 46, .55) !important; }

/* ---------- 4. buttons --------------------------------------------------- */
.bx-btn {
    --cut: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 42px; padding: 0 20px; border: 0; cursor: pointer;
    font: 700 13px var(--bx-font-ui); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
    text-decoration: none !important;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.bx-btn i { font-size: 13px; }
.bx-btn:hover { transform: translateY(-2px); }
.bx-btn-lg { height: 54px; padding: 0 30px; font-size: 14px; --cut: 12px; }
.bx-btn-icon { width: 42px; padding: 0; }
.bx-btn-gold { background: linear-gradient(135deg, #ffe08a, #f5b82e 48%, #d9971a); color: #1a1204 !important; }
.bx-btn-gold:hover { filter: brightness(1.08); }
.bx-btn-violet { background: linear-gradient(135deg, #8f73ff, #6a47f0); color: #fff !important; }
.bx-btn-violet:hover { filter: brightness(1.12); }
.bx-btn-ghost { background: rgba(255, 255, 255, .06); color: #e7e5f6 !important; box-shadow: inset 0 0 0 1px var(--bx-line-2); }
.bx-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }

/* ---------- 5. header ---------------------------------------------------- */
.bx-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(8, 8, 17, .86);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bx-line);
}
.bx-topbar {
    background: linear-gradient(90deg, rgba(124, 92, 255, .18), rgba(245, 184, 46, .07) 60%, transparent);
    border-bottom: 1px solid var(--bx-line);
}
.bx-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 36px; }
.bx-topbar-group { display: flex; align-items: center; flex-wrap: wrap; }
.bx-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 36px;
    font: 600 11.5px var(--bx-font-ui); letter-spacing: .1em; text-transform: uppercase;
    color: var(--bx-muted); border-left: 1px solid var(--bx-line);
}
.bx-topbar-group .bx-pill:first-child { border-left: 0; padding-left: 0; }
.bx-pill i.fas, .bx-pill i.far { color: var(--bx-gold); font-size: 11px; }
.bx-pill b { color: #fff; font-weight: 700; }
a.bx-pill-cash:hover b { color: var(--bx-gold-2); }
.bx-pill-state.is-online b { color: var(--bx-green); }
.bx-pill-state.is-offline b { color: var(--bx-red); }

.bx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bx-dim); }
.bx-dot.online { background: var(--bx-green); box-shadow: 0 0 0 0 rgba(53, 224, 138, .6); animation: bxPing 2s infinite; }
.bx-dot.offline { background: var(--bx-red); box-shadow: 0 0 8px rgba(255, 77, 109, .7); }
@keyframes bxPing { 0% { box-shadow: 0 0 0 0 rgba(53, 224, 138, .55); } 70% { box-shadow: 0 0 0 8px rgba(53, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 224, 138, 0); } }

.bx-nav { padding: 0 !important; background: transparent !important; }
.bx-nav-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.bx-brand { display: flex; align-items: center; flex: none; }
.bx-brand img { height: 52px; width: auto; filter: drop-shadow(0 4px 14px rgba(245, 184, 46, .28)); transition: transform .25s; }
.bx-brand:hover img { transform: scale(1.05); }

.bx-collapse { flex: 1 1 auto; display: flex !important; align-items: center; justify-content: space-between; gap: 20px; }
.bx-menu { display: flex; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.bx-menu-item { position: relative; }
.bx-menu-link {
    display: flex !important; align-items: center; gap: 8px; padding: 26px 13px !important;
    font: 600 13px var(--bx-font-ui); letter-spacing: .08em; text-transform: uppercase;
    color: #cfcde6 !important; position: relative; white-space: nowrap;
}
.bx-menu-link i { color: var(--bx-gold); font-size: 12px; opacity: .85; }
.bx-menu-link::after { /* bootstrap caret */
    margin-left: 4px; border-top-color: var(--bx-dim); vertical-align: 0;
}
.bx-menu-link::before {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 14px; height: 2px;
    background: linear-gradient(90deg, var(--bx-gold), var(--bx-gold-2));
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.bx-menu-item:hover > .bx-menu-link, .bx-menu-link.show, .bx-menu-link:focus { color: #fff !important; }
.bx-menu-item:hover > .bx-menu-link::before, .bx-menu-link.show::before { transform: scaleX(1); }

.bx-dropdown {
    min-width: 230px; margin-top: 0 !important; padding: 8px !important;
    background: #0f0e1c !important; border: 1px solid var(--bx-line-2) !important;
    border-top: 2px solid var(--bx-gold) !important; border-radius: 0 0 8px 8px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
.bx-dropdown-item {
    display: block; padding: 10px 14px !important; border-radius: 4px; position: relative;
    font: 500 13.5px var(--bx-font-body); color: #cfcde6 !important; transition: background .15s, padding .15s;
}
.bx-dropdown-item:hover, .bx-dropdown-item:focus {
    background: rgba(124, 92, 255, .2) !important; color: #fff !important; padding-left: 20px !important;
}
.bx-dropdown-item:hover::before {
    content: ""; position: absolute; left: 8px; top: 50%; width: 4px; height: 4px; margin-top: -2px;
    background: var(--bx-gold); transform: rotate(45deg);
}
@media (min-width: 992px) {
    .bx-menu-item.dropdown:hover > .dropdown-menu,
    .bx-menu-item.dropdown:focus-within > .dropdown-menu { display: block; }
}

.bx-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.bx-toggler {
    display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--bx-line-2) !important;
    background: rgba(255, 255, 255, .05); color: #fff; border-radius: 6px; font-size: 18px; box-shadow: none !important;
}

/* ---------- 6. hero ------------------------------------------------------ */
.bx-hero { position: relative; padding: 78px 0 0; overflow: hidden; isolation: isolate; }
.bx-hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(760px 420px at 80% 32%, rgba(245, 184, 46, .17), transparent 62%),
        radial-gradient(820px 520px at 8% 0%, rgba(124, 92, 255, .30), transparent 62%),
        linear-gradient(180deg, #0c0b1c, #07070f 92%);
}
.bx-hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 72%);
}
.bx-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: 470px; }

.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bx-chip {
    font: 700 11px var(--bx-font-ui); letter-spacing: .15em; padding: 6px 12px; border-radius: 2px;
    color: #cfcde6; background: rgba(255, 255, 255, .05); border: 1px solid var(--bx-line-2);
}
.bx-chip-gold { color: #1a1204; background: var(--bx-gold); border-color: transparent; }
.bx-chip-violet { color: #ddd5ff; background: rgba(124, 92, 255, .2); border-color: rgba(124, 92, 255, .55); }

.bx-hero-title {
    font: 700 clamp(40px, 6vw, 78px)/1.02 var(--bx-font-ui); text-transform: uppercase;
    letter-spacing: -.01em; margin: 0 0 20px; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
}
.bx-hero-title em, .bx-section-head h2 em, .bx-card-head h2 em, .bx-banner h2 em {
    font-style: normal;
    background: linear-gradient(180deg, #fff1c0 0%, #f5b82e 58%, #c98a12 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bx-hero-sub { font-size: 18px; color: var(--bx-muted); max-width: 520px; margin: 0 0 32px; }
.bx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.bx-hero-points { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.bx-hero-points li { font: 600 12.5px var(--bx-font-ui); letter-spacing: .1em; text-transform: uppercase; color: #b8b6d4; }
.bx-hero-points i { color: var(--bx-gold); margin-right: 8px; }

.bx-hero-emblem { position: relative; display: grid; place-items: center; min-height: 380px; }
.bx-hero-emblem img { position: relative; width: 100%; max-width: 520px; filter: drop-shadow(0 24px 60px rgba(245, 184, 46, .28)); animation: bxFloat 6s ease-in-out infinite; }
.bx-emblem-ring { position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(245, 184, 46, .35); animation: bxSpin 50s linear infinite; }
.bx-emblem-ring-2 { width: 104%; border: 1px solid rgba(124, 92, 255, .28); animation-duration: 80s; animation-direction: reverse; }
@keyframes bxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bxSpin { to { transform: rotate(360deg); } }

.bx-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 54px;
    background: var(--bx-line); border: 1px solid var(--bx-line); border-bottom: 0;
    border-radius: 10px 10px 0 0; overflow: hidden;
}
.bx-stat { background: rgba(11, 10, 22, .94); padding: 20px 26px; }
.bx-stat-label { display: block; font: 600 11px var(--bx-font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bx-dim); }
.bx-stat-value { display: flex; align-items: center; gap: 10px; font: 700 28px/1.2 var(--bx-font-ui); color: #fff; }
.bx-stat.is-online .bx-stat-value { color: var(--bx-green); font-size: 22px; }
.bx-stat.is-offline .bx-stat-value { color: var(--bx-red); font-size: 22px; }

/* ---------- 7. home sections -------------------------------------------- */
.bx-section { position: relative; padding: 84px 0; }
.bx-section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.bx-eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 700 11.5px var(--bx-font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--bx-gold); }
.bx-eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--bx-gold); transform: rotate(45deg); }
.bx-section-head h2, .bx-card-head h2 { font: 700 clamp(30px, 4vw, 46px)/1.1 var(--bx-font-ui); text-transform: uppercase; margin: 12px 0; color: #fff; letter-spacing: -.005em; }
.bx-section-head p { color: var(--bx-muted); font-size: 16.5px; margin: 0; }

.bx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bx-step {
    position: relative; overflow: hidden; padding: 32px 30px 28px; border-radius: 8px;
    background: linear-gradient(180deg, var(--bx-panel-2), var(--bx-panel)); border: 1px solid var(--bx-line);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.bx-step::before { content: ""; position: absolute; left: 30px; top: -1px; width: 54px; height: 2px; background: var(--bx-gold); }
.bx-step:hover { transform: translateY(-5px); border-color: rgba(245, 184, 46, .45); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.bx-step-no { position: absolute; right: 20px; top: 8px; font: 700 88px/1 var(--bx-font-ui); color: rgba(255, 255, 255, .045); pointer-events: none; }
.bx-step h3 { font: 700 21px var(--bx-font-ui); color: #fff; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .02em; border: 0; }
.bx-step p { color: var(--bx-muted); margin: 0 0 20px; font-size: 14.5px; }
.bx-link { font: 700 12.5px var(--bx-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bx-gold) !important; }
.bx-link i { margin-left: 6px; transition: transform .2s; }
.bx-link:hover i { transform: translateX(5px); }

/* dashboard */
.bx-dashboard { padding-top: 30px; }
.bx-dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr); gap: 28px; align-items: start; }
.bx-dash-side { display: grid; gap: 20px; }
.bx-card {
    position: relative; padding: 22px 22px 14px; border-radius: 8px;
    background: linear-gradient(180deg, var(--bx-panel-2), var(--bx-panel)); border: 1px solid var(--bx-line);
}
.bx-card::before { content: ""; position: absolute; left: 22px; top: -1px; width: 54px; height: 2px; background: var(--bx-gold); }
.bx-card-head { margin-bottom: 14px; }
.bx-dash-main > .bx-card-head { margin-bottom: 18px; }
.bx-card-head h3 { font: 700 20px var(--bx-font-ui); text-transform: uppercase; color: #fff; margin: 6px 0 0; border: 0; letter-spacing: .02em; }
.bx-card-head-sm .bx-eyebrow { font-size: 10.5px; }
.bx-card-head h2 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 36px); }

/* news (discordnews.php markup) */
.bx-news { background: linear-gradient(180deg, var(--bx-panel-2), var(--bx-panel)); border: 1px solid var(--bx-line); border-radius: 8px; overflow: hidden; position: relative; }
.bx-news::before { content: ""; position: absolute; left: 22px; top: -1px; width: 54px; height: 2px; background: var(--bx-gold); z-index: 1; }
.bossro-discord-news-wrap { display: block; }
.bossro-discord-slide { display: none; }
.bossro-discord-slide.bossro-discord-active { display: block; animation: bxFade .4s ease; }
@keyframes bxFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bossro-discord-card { padding: 28px 30px 24px; }
.bossro-discord-badge {
    display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 2px;
    font: 700 10.5px var(--bx-font-ui); letter-spacing: .18em; text-transform: uppercase;
    color: #ddd5ff; background: rgba(124, 92, 255, .2); border: 1px solid rgba(124, 92, 255, .5);
}
.bossro-discord-title { font: 700 26px var(--bx-font-ui); color: #fff; margin: 14px 0 4px; text-transform: uppercase; border: 0; }
.bossro-discord-meta { display: block; margin-bottom: 18px; font-size: 12.5px; letter-spacing: .05em; color: var(--bx-dim); }
.bossro-discord-body {
    max-height: 400px; overflow-y: auto; padding-right: 12px;
    font-size: 14.5px; line-height: 1.75; color: #cfcde6; overflow-wrap: anywhere; font-variant-ligatures: none;
}
.bossro-discord-footer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bx-line); }
.bossro-discord-button {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 4px;
    font: 700 12.5px var(--bx-font-ui); letter-spacing: .06em; color: var(--bx-gold) !important;
    border: 1px solid rgba(245, 184, 46, .4); background: rgba(245, 184, 46, .07); transition: background .2s;
}
.bossro-discord-button:hover { background: rgba(245, 184, 46, .18); color: #fff !important; }
.bossro-discord-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--bx-line); background: rgba(0, 0, 0, .22); }
.bossro-discord-nav {
    height: 38px; padding: 0 18px; border-radius: 4px; cursor: pointer;
    font: 700 12px var(--bx-font-ui); letter-spacing: .08em; text-transform: uppercase;
    color: #e7e5f6; background: rgba(255, 255, 255, .06); border: 1px solid var(--bx-line-2);
}
.bossro-discord-nav:hover:not(:disabled) { background: var(--bx-violet); border-color: var(--bx-violet); color: #fff; }
.bossro-discord-nav:disabled { opacity: .35; cursor: not-allowed; }
.bossro-discord-page { font: 600 12.5px var(--bx-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bx-muted); }
.bossro-discord-page span { color: var(--bx-gold); }

/* world boss */
.bx-wb-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 0; }
.bx-wb-status > strong { font: 700 15px var(--bx-font-ui); letter-spacing: .04em; }
.worldboss-active { color: var(--bx-green) !important; }
.worldboss-inactive { color: var(--bx-red) !important; }
.bx-wb-kills { text-align: right; }
.worldboss-kill-label { display: block; font: 600 10px var(--bx-font-ui); letter-spacing: .2em; color: var(--bx-dim); }
#wb-kill-left { font: 700 26px/1.1 var(--bx-font-ui); color: #fff; }
.bx-hpbar { position: relative; height: 14px; margin: 16px 0 6px; background: #080811; border: 1px solid var(--bx-line-2); border-radius: 2px; overflow: hidden; }
.bx-hpbar span { display: block; height: 100%; background: linear-gradient(90deg, #ff4d6d, #ff8a4d 55%, #f5b82e); box-shadow: 0 0 16px rgba(255, 110, 80, .55); transition: width .6s; }
.bx-hpbar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0, 0, 0, .55) 22px 24px); }
.bx-hp-caption { display: flex; justify-content: space-between; font: 600 10.5px var(--bx-font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--bx-dim); margin-bottom: 8px; }
.bx-hp-caption b { color: var(--bx-gold-2); }

/* rank lists */
.bx-rank-list { margin: 4px 0 8px; }
.bx-rank-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.bx-rank-row:last-child { border-bottom: 0; }
.bx-rank-no { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font: 700 12.5px var(--bx-font-ui); color: var(--bx-muted); background: rgba(255, 255, 255, .06); }
.bx-rank-row:nth-child(1) .bx-rank-no { background: linear-gradient(135deg, #ffe08a, #d9971a); color: #1a1204; }
.bx-rank-row:nth-child(2) .bx-rank-no { background: linear-gradient(135deg, #eef0fa, #9ea3b8); color: #15161f; }
.bx-rank-row:nth-child(3) .bx-rank-no { background: linear-gradient(135deg, #f0b07a, #b06a35); color: #1d0f05; }
.bx-rank-name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-rank-val { font: 700 14px var(--bx-font-ui); color: var(--bx-gold-2); }
.bx-rank-val small { color: var(--bx-dim); font-weight: 500; }
.bx-rank-empty { padding: 14px 0; color: var(--bx-dim); font-size: 13.5px; }

.bx-table-wrap { overflow-x: auto; }
.bx-mini-table { width: 100%; font-size: 13.5px; border-collapse: collapse; background: transparent; }
.bx-mini-table th { font: 600 10.5px var(--bx-font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--bx-dim); padding: 6px 6px 10px; border-bottom: 1px solid var(--bx-line-2); background: transparent; }
.bx-mini-table td { padding: 10px 6px; color: #e0def0; border-bottom: 1px solid rgba(255, 255, 255, .05); background: transparent; }
.bx-mini-table tbody tr:last-child td { border-bottom: 0; }
.bx-mini-table tbody td:first-child { color: var(--bx-gold-2); font-family: var(--bx-font-ui); font-weight: 700; }

/* castles */
.bx-castle-card { padding: 28px; }
.bx-castle-tabs { justify-content: center; gap: 8px; margin-bottom: 26px; border: 0; flex-wrap: wrap; }
.bx-castle-tabs .nav-link {
    padding: 10px 24px; border-radius: 2px; border: 1px solid var(--bx-line-2); background: transparent;
    font: 700 12.5px var(--bx-font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--bx-muted);
}
.bx-castle-tabs .nav-link:hover { color: #fff; border-color: rgba(245, 184, 46, .5); }
.bx-castle-tabs .nav-link.active { background: var(--bx-gold); border-color: var(--bx-gold); color: #1a1204; }
.bx-flags { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; }
.bx-flags .bx-flag.flag { width: auto !important; max-width: none; float: none; flex: none; aspect-ratio: 1; display: grid; place-items: center; padding: 14px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid var(--bx-line); transition: transform .2s, border-color .2s; }
.bx-flags .bx-flag.flag:hover { transform: translateY(-4px); border-color: rgba(245, 184, 46, .5); }
.bx-flags .bx-flag img { max-width: 100%; max-height: 100%; image-rendering: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.bx-flag-empty { color: rgba(255, 255, 255, .12); font-size: 30px; }

/* gallery */
.bx-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bx-gallery-item { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--bx-line); aspect-ratio: 16 / 10; background: var(--bx-panel); }
.bx-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bx-gallery-item:hover img { transform: scale(1.06); }

/* support banner */
.bx-support { padding-top: 20px; }
.bx-banner {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 48px; border-radius: 12px;
    background: radial-gradient(520px 240px at 88% 0%, rgba(245, 184, 46, .24), transparent 70%), linear-gradient(135deg, #1d1745, #110e26);
    border: 1px solid rgba(245, 184, 46, .28);
}
.bx-banner h2 { font: 700 clamp(28px, 3.4vw, 40px)/1.1 var(--bx-font-ui); text-transform: uppercase; color: #fff; margin: 10px 0; }
.bx-banner p { color: #b9b6dc; max-width: 560px; margin: 0; }
.bx-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- 8. footer ---------------------------------------------------- */
footer.bx-footer { margin-top: 0; padding: 64px 0 26px; background: linear-gradient(180deg, transparent, #05050c 35%); border-top: 1px solid var(--bx-line); color: var(--bx-muted); font-size: 14px; }
.bx-footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1fr; gap: 40px; }
.bx-footer-brand img { height: 58px; width: auto; margin-bottom: 16px; }
.bx-footer-brand p { max-width: 340px; margin: 0 0 18px; }
.bx-footer h6 { font: 700 12px var(--bx-font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bx-gold); margin: 0 0 16px; }
.bx-footer ul { list-style: none; margin: 0; padding: 0; }
.bx-footer ul li { display: block; margin-bottom: 10px; }
footer.bx-footer a { color: var(--bx-muted); }
footer.bx-footer a:hover { color: #fff; }
.bx-social { display: flex; gap: 10px; }
.bx-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--bx-line-2); color: #cfcde6 !important; transition: all .2s; }
.bx-social a:hover { background: var(--bx-gold); border-color: var(--bx-gold); color: #1a1204 !important; transform: translateY(-3px); }
.bx-footer .input-group-text { background: var(--bx-panel-2); border: 1px solid var(--bx-line-2); color: var(--bx-muted); font-size: 12px; }
.bx-footer .form-select { background-color: #0b0b16; border: 1px solid var(--bx-line-2); color: var(--bx-text); }
.bx-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--bx-line); font-size: 12.5px; color: var(--bx-dim); }
.bx-footer-bottom p { margin: 0; }

#btn-back-to-top {
    right: 22px !important; bottom: 22px !important; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; z-index: 1000;
    background: linear-gradient(135deg, #ffe08a, #f5b82e 50%, #d9971a) !important; color: #1a1204 !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

/* ---------- 9. login modal (markup + JS hooks unchanged) ---------------- */
.slayer-login-backdrop { background: rgba(5, 5, 12, .8) !important; backdrop-filter: blur(8px); }
.slayer-login-dialog {
    background: linear-gradient(180deg, #181729, #0f0e1c) !important; color: var(--bx-text) !important;
    border: 1px solid var(--bx-line-2) !important; border-top: 3px solid var(--bx-gold) !important; border-radius: 10px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .7) !important;
}
.slayer-login-close { color: var(--bx-muted) !important; }
.slayer-login-close:hover { color: #fff !important; }
.slayer-login-logo img { max-height: 90px; width: auto; filter: drop-shadow(0 8px 24px rgba(245, 184, 46, .3)); }
.slayer-login-title-wrap span { font: 700 11px var(--bx-font-ui) !important; letter-spacing: .24em; color: var(--bx-gold) !important; }
.slayer-login-title-wrap h2 { font: 700 26px var(--bx-font-ui) !important; text-transform: uppercase; color: #fff !important; }
.slayer-login-title-wrap p { color: var(--bx-muted) !important; }
.slayer-field label { font: 600 11px var(--bx-font-ui) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--bx-muted) !important; }
.slayer-field-wrap input { background: #0a0a14 !important; border: 1px solid var(--bx-line-2) !important; color: var(--bx-text) !important; border-radius: 4px !important; }
.slayer-field-wrap input:focus { border-color: var(--bx-gold) !important; box-shadow: 0 0 0 3px rgba(245, 184, 46, .15) !important; outline: 0; }
.slayer-field-wrap > i:first-child, .slayer-password-toggle { color: var(--bx-dim) !important; }
.slayer-submit-btn {
    background: linear-gradient(135deg, #ffe08a, #f5b82e 50%, #d9971a) !important; color: #1a1204 !important;
    font: 700 14px var(--bx-font-ui) !important; letter-spacing: .12em; border: 0 !important; border-radius: 4px !important;
}
.slayer-login-links a { color: var(--bx-gold) !important; }
.slayer-login-links span { color: var(--bx-muted) !important; }
.slayer-login-error { background: rgba(255, 77, 109, .1) !important; border: 1px solid rgba(255, 77, 109, .4) !important; color: #ff9db0 !important; }

/* ---------- 10. shared module skin (FluxCP pages inside .global-container) */
.global-container {
    position: relative; max-width: 1180px; margin: 36px auto 60px !important; padding: 32px 34px !important;
    background: linear-gradient(180deg, var(--bx-panel-2), var(--bx-panel)) !important;
    border: 1px solid var(--bx-line); border-radius: 10px; color: var(--bx-text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.global-container::before { content: ""; position: absolute; left: 34px; top: -1px; width: 70px; height: 3px; background: var(--bx-gold); }
.global-container:empty { display: none; }
.global-container h2 { font: 700 28px var(--bx-font-ui); text-transform: uppercase; letter-spacing: .01em; color: #fff; margin: 0 0 18px; }
.global-container h3 { font: 700 15px var(--bx-font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--bx-gold-2); border-bottom: 1px solid var(--bx-line-2); padding-bottom: 8px; margin: 26px 0 14px; }
.global-container h3::first-letter { font-weight: 700; }
.global-container h4 { font: 700 15px var(--bx-font-ui); color: #fff; }
.global-container p { color: #cfcde6; }
.global-container a { color: var(--bx-gold-2); }
.global-container a:hover { color: #fff; }

.global-container input[type=text], .global-container input[type=password], .global-container input[type=file],
.global-container input[type=number], .global-container input[type=email], .global-container textarea, .global-container select {
    background: #0a0a14 !important; color: var(--bx-text) !important; border: 1px solid var(--bx-line-2) !important;
    border-radius: 4px; padding: 7px 10px; font: 14px var(--bx-font-body); outline: 0; transition: border-color .15s, box-shadow .15s;
}
.global-container input:focus, .global-container textarea:focus, .global-container select:focus {
    border-color: var(--bx-gold) !important; box-shadow: 0 0 0 3px rgba(245, 184, 46, .14);
}
.global-container button, .global-container input[type=submit], .global-container input[type=button], .global-container .submit_button {
    display: inline-block; padding: 9px 20px; border: 0; border-radius: 4px; cursor: pointer;
    font: 700 12.5px var(--bx-font-ui); letter-spacing: .08em; text-transform: uppercase; color: #fff !important;
    background: linear-gradient(135deg, #8f73ff, #6a47f0) !important; transition: filter .15s, transform .15s;
}
.global-container button:hover, .global-container input[type=submit]:hover, .global-container .submit_button:hover { filter: brightness(1.15); transform: translateY(-1px); }
.global-container input[type=checkbox], .global-container input[type=radio] { accent-color: var(--bx-gold); }

.global-container .horizontal-table, .global-container .vertical-table, .global-container .generic-form-table {
    width: 100%; border-collapse: separate !important; border-spacing: 0; background: rgba(0, 0, 0, .18);
    border: 1px solid var(--bx-line); border-radius: 8px; overflow: hidden;
}
.global-container .vertical-table { width: auto; min-width: 50%; }
.global-container .horizontal-table th, .global-container .vertical-table th {
    background: rgba(245, 184, 46, .08) !important; color: var(--bx-gold-2) !important;
    font: 700 11.5px var(--bx-font-ui); letter-spacing: .12em; text-transform: uppercase;
    padding: 11px 14px; border: 0 !important; border-bottom: 1px solid var(--bx-line-2) !important; text-align: left;
}
.global-container .vertical-table th { border-bottom: 1px solid var(--bx-line) !important; border-right: 1px solid var(--bx-line) !important; }
.global-container .horizontal-table td, .global-container .vertical-table td {
    padding: 10px 14px; background: transparent !important; color: var(--bx-text); border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
}
.global-container .horizontal-table tr:hover > td { background: rgba(124, 92, 255, .09) !important; }
.global-container .horizontal-table tr:last-child > td, .global-container .vertical-table tr:last-child > td, .global-container .vertical-table tr:last-child > th { border-bottom: 0 !important; }
.global-container .top-ranked td { background: rgba(245, 184, 46, .08) !important; color: #fff; }
.global-container .horizontal-table .not-applicable, .global-container .not-applicable { color: var(--bx-dim); }
.global-container .sortable { color: var(--bx-gold-2) !important; text-decoration: none; }
.global-container .generic-form, .global-container .generic-form-div {
    background: rgba(0, 0, 0, .18) !important; border: 1px solid var(--bx-line) !important; border-radius: 8px; padding: 18px;
}
.global-container .generic-form-table { background: transparent; border: 0; }
.global-container .generic-form-table th label { color: var(--bx-muted); }
.global-container .generic-form-table td p, .global-container .note { color: var(--bx-muted); background: transparent; }

.global-container .message, .message {
    display: block; margin: 0 0 18px; padding: 12px 16px; border-radius: 6px; font: 600 14px var(--bx-font-body);
    color: #fff; background: rgba(124, 92, 255, .18); border: 1px solid rgba(124, 92, 255, .5); border-left: 4px solid var(--bx-violet);
}
.notice { border-radius: 6px; color: var(--bx-gold-2) !important; background: rgba(245, 184, 46, .08) !important; border: 1px solid rgba(245, 184, 46, .3) !important; padding: 12px 16px; }
.red { border-radius: 6px; background: rgba(255, 77, 109, .14) !important; border: 1px solid rgba(255, 77, 109, .4); color: #ffb3c1 !important; }
.green { border-radius: 6px; background: rgba(53, 224, 138, .12) !important; border: 1px solid rgba(53, 224, 138, .35); color: #9af0c4 !important; }
.info-text { background: rgba(0, 0, 0, .2) !important; border: 1px solid var(--bx-line) !important; color: var(--bx-muted) !important; border-radius: 6px; }
.info-text-total, .info-text-results { color: var(--bx-gold-2); }
.up { color: var(--bx-green) !important; } .down { color: var(--bx-red) !important; }
.state-pending { color: var(--bx-gold) !important; } .state-banned, .state-permanently-banned { color: var(--bx-red) !important; }

.global-container .pages { border-top: 1px solid var(--bx-line); color: var(--bx-dim); }
.global-container .pages a, .global-container .pages .page-num { color: var(--bx-muted); border-radius: 3px; }
.global-container .pages .current-page { color: #1a1204 !important; background: var(--bx-gold); padding: 1px 8px; border-radius: 3px; font-weight: 700; }

#submenu, #pagemenu { color: var(--bx-dim); border-color: var(--bx-line) !important; }
#submenu a, #pagemenu a { color: var(--bx-muted) !important; text-decoration: none; }
#submenu a:hover, #pagemenu a:hover { color: var(--bx-gold) !important; }
.current-sub-menu { color: var(--bx-gold) !important; }
.search-form, .search-form2 { border-color: var(--bx-line) !important; }
.search-form label, .search-form2 label { color: var(--bx-muted) !important; }
.search-form p, .search-form2 p { color: var(--bx-dim) !important; border-color: var(--bx-line) !important; }
.toggler a { color: var(--bx-gold) !important; }
.character-stats .stat-name { color: var(--bx-dim); } .character-stats .stat-value { color: #fff; }
.credit-balance { background: rgba(245, 184, 46, .08) !important; border: 1px solid rgba(245, 184, 46, .3) !important; color: #fff; }
.shop-table td { background: rgba(0, 0, 0, .2) !important; border-color: var(--bx-line) !important; color: var(--bx-text); }
.shop-item-name { color: #fff; border-color: var(--bx-line) !important; }
.keyword { color: var(--bx-gold) !important; }

/* ---------- 11. responsive ---------------------------------------------- */
@media (max-width: 1199.98px) {
    .bx-menu-link { padding-left: 9px !important; padding-right: 9px !important; font-size: 12px; letter-spacing: .05em; }
    .bx-menu-link i { display: none; }
}
@media (max-width: 991.98px) {
    .bx-toggler { display: inline-flex; align-items: center; justify-content: center; }
    .bx-nav-inner { flex-wrap: wrap; gap: 12px; min-height: 62px; }
    .bx-collapse { display: none !important; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 18px; }
    .bx-collapse.show, .bx-collapse.collapsing { display: flex !important; }
    .bx-menu { flex-direction: column; align-items: stretch; }
    .bx-menu-link { padding: 14px 6px !important; border-bottom: 1px solid var(--bx-line); }
    .bx-menu-link i { display: inline-block; }
    .bx-menu-link::before { display: none; }
    .bx-dropdown { position: static !important; transform: none !important; margin: 0 0 6px !important; border-radius: 6px !important; }
    .bx-actions { padding-top: 14px; }
    .bx-actions .bx-btn { flex: 1; }
    .bx-actions .bx-btn-icon { flex: none; }

    .bx-hero { padding-top: 44px; }
    .bx-hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; gap: 16px; }
    .bx-hero-emblem { order: -1; min-height: 0; }
    .bx-hero-emblem img { max-width: 300px; }
    .bx-hero-sub { margin-left: auto; margin-right: auto; }
    .bx-chips, .bx-hero-cta, .bx-hero-points { justify-content: center; }
    .bx-stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
    .bx-steps { grid-template-columns: 1fr; }
    .bx-dash-grid { grid-template-columns: 1fr; }
    .bx-footer-grid { grid-template-columns: 1fr 1fr; }
    .bx-banner { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
    .bx-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .global-container { margin: 20px 12px 40px !important; padding: 22px 18px !important; overflow-x: auto; }
}
@media (max-width: 575.98px) {
    .bx-wrap { padding: 0 16px; }
    .bx-hide-sm { display: none !important; }
    .bx-pill { padding: 0 9px; letter-spacing: .06em; font-size: 10.5px; }
    .bx-section { padding: 56px 0; }
    .bx-hero-cta .bx-btn { flex: 1 1 100%; }
    .bx-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .bx-flags { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .bx-gallery-grid { grid-template-columns: 1fr; }
    .bossro-discord-card { padding: 22px 18px; }
    .bx-brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 12. fixes from visual review -------------------------------- */
footer.bx-footer, #footer-section { background-image: none !important; background-color: transparent; }
footer.bx-footer { background: linear-gradient(180deg, transparent, #05050c 35%) !important; }
.bx-hero-bg { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.bx-brand img { height: 50px; }
.bx-nav .bx-wrap, .bx-topbar .bx-wrap { max-width: 1400px; }
.bx-nav-inner { gap: 20px; }
.bx-menu-link { padding-left: 10px !important; padding-right: 10px !important; font-size: 12.5px; letter-spacing: .06em; }
.bx-menu-link::before { left: 10px; right: 10px; }
.bx-menu-link i { display: none; }
@media (max-width: 991.98px) { .bx-menu-link i { display: inline-block; } }
html, body { overflow-x: hidden; }
@media (max-width: 575.98px) {
    .bx-topbar-inner { flex-wrap: nowrap; }
    .bx-topbar-group { flex-wrap: nowrap; }
    .bx-clock { white-space: nowrap; font-size: 0; gap: 0; }
    .bx-clock i { font-size: 11px !important; margin-right: 6px; }
    .bx-clock b { font-size: 11px; }
    .bx-pill-cash { font-size: 0; } .bx-pill-cash b { font-size: 11px; } .bx-pill-cash i { margin-right: 5px; }
    .bx-stat { padding: 16px 16px; } .bx-stat-value { font-size: 22px; }
}
.slayer-manual-balance__amount, .slayer-donate-title .keyword, .slayer-donate-note strong { color: var(--bx-gold-2) !important; }
.slayer-donate-note { border-left-color: var(--bx-gold) !important; background: rgba(245,184,46,.07) !important; }

/* ---------- 13. dropdown stacking fix ----------------------------------- */
body.bx-body > header.bx-header { position: sticky !important; top: 0; z-index: 1030 !important; }
body.bx-body > main { z-index: 1 !important; }
.bx-hero, .bx-hero-bg { z-index: auto; }
.bx-hero-bg { z-index: -1; }
.bx-dropdown { z-index: 1040; }

/* ---------- 14. anime characters ---------------------------------------- */
.bx-hero-emblem { display: block; position: relative; height: 470px; min-height: 0; }
.bx-hero-emblem img.bx-emblem-logo { position: absolute; left: 50%; top: 0; width: 86%; max-width: 470px; margin-left: -43%; animation: bxFloat 6s ease-in-out infinite; }
.bx-emblem-ring { left: 50%; top: 24px; margin-left: -42%; }
.bx-emblem-ring-2 { margin-left: -52%; top: -8px; }
.bx-hero-emblem img.bx-char { position: absolute; bottom: 0; width: auto; height: 300px; max-width: none; z-index: 3; filter: drop-shadow(0 14px 26px rgba(0,0,0,.65)) drop-shadow(0 0 22px rgba(245,184,46,.25)); animation: bxBob 4.2s ease-in-out infinite; }
.bx-char-l { left: 0; }
.bx-char-r { right: 0; animation-delay: -2.1s !important; }
@keyframes bxBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.bx-hero-emblem::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -6px; height: 26px; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); z-index: 2; }

.bx-banner img.bx-banner-char { position: absolute; right: 360px; bottom: 0; height: 235px; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)) drop-shadow(0 0 20px rgba(245,184,46,.3)); animation: bxBob 4.6s ease-in-out infinite; }
.bx-banner-copy { position: relative; z-index: 2; max-width: 52%; }

@media (max-width: 991.98px) {
    .bx-hero-emblem { height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
    .bx-hero-emblem img.bx-char { height: 210px; }
    .bx-banner img.bx-banner-char { display: none; }
    .bx-banner-copy { max-width: none; }
}
@media (max-width: 575.98px) {
    .bx-hero-emblem { height: 330px; }
    .bx-hero-emblem img.bx-char { height: 175px; }
}
.bx-banner img.bx-banner-char { right: 440px; }

/* ---------- 15. image slots (replace files in img/slots/) --------------- */
.bx-head-art { position: relative; }
.bx-head-art .bx-head-img { position: absolute; top: 50%; width: 190px; height: auto; transform: translateY(-50%); pointer-events: none; z-index: 0; }
.bx-head-img-l { left: -240px; }
.bx-head-img-r { right: -240px; }
.bx-news-art { margin-top: 26px; text-align: center; }
.bx-news-art img { width: 100%; max-width: 640px; max-height: 340px; object-fit: contain; filter: drop-shadow(0 12px 28px rgba(0,0,0,.5)); }
.bx-dash-side { gap: 70px; }
.bx-card > img.bx-peek { position: absolute; right: 12px; top: -62px; width: 112px; height: auto; pointer-events: none; z-index: 3; filter: drop-shadow(0 8px 18px rgba(0,0,0,.6)); animation: bxBob 4.4s ease-in-out infinite; }
.bx-card > img.bx-peek ~ .bx-card-head { padding-right: 100px; }

/* castle flags: hanging banner back, emblem sits on it */
.bx-flags { grid-template-columns: repeat(5, 121px); justify-content: center; gap: 22px; max-width: none; }
.bx-flags .bx-flag.flag {
    position: relative; width: 121px !important; height: 135px !important; aspect-ratio: auto; display: block; padding: 0 !important; margin: 0 !important;
    background: url(../img/flag.png) no-repeat center / 100% 100% !important; border: 0 !important; border-radius: 0; transition: transform .25s;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.55));
}
.bx-flags .bx-flag.flag:hover { transform: translateY(-5px) rotate(-1.5deg); border: 0; }
.bx-flags .bx-flag img { position: absolute; left: 48px; top: 52px; width: 24px; height: 24px; max-width: none; max-height: none; filter: none; }
.bx-flags .bx-flag-empty { display: none; }
.bx-flags .bx-flag:not(:has(img)) { opacity: .42; filter: grayscale(.6) drop-shadow(0 10px 14px rgba(0,0,0,.5)); }

@media (max-width: 1399.98px) { .bx-head-art .bx-head-img { display: none; } }
@media (max-width: 991.98px) {
    .bx-dash-side { gap: 64px; }
    .bx-flags { grid-template-columns: repeat(5, 84px); gap: 10px; }
    .bx-flags .bx-flag.flag { width: 84px !important; height: 94px !important; }
    .bx-flags .bx-flag img { left: 33px; top: 36px; width: 18px; height: 18px; }
}
@media (max-width: 575.98px) { .bx-flags { grid-template-columns: repeat(3, 84px); row-gap: 18px; } .bx-card > img.bx-peek { width: 90px; top: -50px; } }

/* news-art: same width as the Discord news box */
.bx-news-art { text-align: left; }
.bx-news-art img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--bx-line);
    filter: none;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

/* ---------- 16. daily attendance reward --------------------------------- */
.bx-daily { margin-top: 26px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--bx-panel-2), var(--bx-panel)); border: 1px solid var(--bx-line); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.bx-daily-ribbon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 20px 12px; text-align: center; background: linear-gradient(135deg, #2a1d63 0%, #17142e 55%, #2d2310 100%); border-bottom: 2px solid var(--bx-gold); }
.bx-daily-title { font: 700 18px var(--bx-font-ui); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.bx-daily-period { font: 600 10.5px var(--bx-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--bx-gold-2); }
.bx-daily-body { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 20px; padding: 20px; }
.bx-daily-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bx-day { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 4px 6px; border-radius: 8px; background: rgba(255,255,255,.035); border: 1px solid var(--bx-line); transition: transform .2s, border-color .2s; }
.bx-day:hover { transform: translateY(-3px); border-color: rgba(245,184,46,.45); }
.bx-day-icon { position: relative; width: 48px; height: 48px; display: grid; place-items: center; }
.bx-day-icon img { max-width: 40px; max-height: 40px; image-rendering: pixelated; }
.bx-day-zeny { font-size: 26px; color: var(--bx-gold); }
.bx-day-qty { position: absolute; right: -2px; bottom: -2px; padding: 0 4px; border-radius: 3px; font: 700 11px/16px var(--bx-font-ui); color: #fff; background: rgba(0,0,0,.65); text-shadow: 0 1px 0 #000; }
.bx-day-label { margin-top: 4px; font: 700 11px var(--bx-font-ui); letter-spacing: .06em; color: var(--bx-muted); }
.bx-day.is-claimed { background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.4); }
.bx-day.is-claimed .bx-day-icon > img, .bx-day.is-claimed .bx-day-zeny { opacity: .35; }
.bx-day-check { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7), 0 0 14px rgba(167,139,250,.9); }
.bx-day.is-today { border-color: var(--bx-gold); background: rgba(245,184,46,.12); animation: bxGlow 1.8s ease-in-out infinite; }
.bx-day.is-today .bx-day-label { color: var(--bx-gold-2); }
@keyframes bxGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(245,184,46,.0); } 50% { box-shadow: 0 0 18px 2px rgba(245,184,46,.45); } }

.bx-daily-side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bx-bubble { position: relative; width: 100%; padding: 12px 14px; border-radius: 10px; font: 600 13px/1.4 var(--bx-font-body); color: #fff; background: rgba(124,92,255,.18); border: 1px solid rgba(124,92,255,.5); }
.bx-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: #1c1840; border-right: 1px solid rgba(124,92,255,.5); border-bottom: 1px solid rgba(124,92,255,.5); }
.bx-bubble.is-ok { background: rgba(53,224,138,.12); border-color: rgba(53,224,138,.5); } .bx-bubble.is-ok::after { background: #10261f; border-color: rgba(53,224,138,.5); }
.bx-bubble.is-err { background: rgba(255,77,109,.12); border-color: rgba(255,77,109,.5); } .bx-bubble.is-err::after { background: #2a1420; border-color: rgba(255,77,109,.5); }
.bx-daily-char { height: 150px; width: auto; margin-top: 4px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)) drop-shadow(0 0 16px rgba(245,184,46,.2)); animation: bxBob 4.4s ease-in-out infinite; }
.bx-daily-form { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.bx-daily-select { width: 100%; height: 36px; padding: 0 10px; border-radius: 4px; background: #0a0a14; color: var(--bx-text); border: 1px solid var(--bx-line-2); font: 600 13px var(--bx-font-body); }
.bx-daily-btn { width: 100%; }
.bx-daily-btn[disabled] { opacity: .75; cursor: default; transform: none; }
.bx-daily-note { margin: 0; font-size: 12.5px; color: var(--bx-muted); }
.bx-daily-counter { width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 10px; border-radius: 8px; border: 1px dashed rgba(245,184,46,.5); background: rgba(245,184,46,.06); }
.bx-daily-counter-label { font: 700 11px var(--bx-font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--bx-muted); }
.bx-daily-counter b { font: 700 30px/1 var(--bx-font-ui); color: var(--bx-gold-2); }
.bx-daily-counter small { font: 600 13px var(--bx-font-ui); color: var(--bx-dim); }
.bx-daily-total { font: 600 11px var(--bx-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bx-dim); }
@media (max-width: 767.98px) { .bx-daily-body { grid-template-columns: 1fr; padding: 14px; } .bx-daily-grid { gap: 7px; } .bx-day-icon { width: 40px; height: 40px; } .bx-day-icon img { max-width: 34px; max-height: 34px; } .bx-daily-title { font-size: 15px; } }

/* ---------- 17. fixed news size + aligned columns ----------------------- */
/* news: every update uses the same box size; long text scrolls inside */
.bossro-discord-slide.bossro-discord-active { height: 332px; }
.bossro-discord-card { height: 332px; display: flex; flex-direction: column; padding: 24px 28px 18px; }
.bossro-discord-badge { align-self: flex-start; flex: none; }
.bossro-discord-title { flex: none; margin: 12px 0 4px; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bossro-discord-meta { flex: none; margin-bottom: 12px; }
.bossro-discord-body { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; padding-bottom: 4px; }
.bossro-discord-footer { flex: none; margin-top: 14px; padding-top: 14px; }

/* columns: left (news + daily) and right (boards) end at the same line */
.bx-dash-grid { align-items: stretch; }
.bx-dash-main { display: flex; flex-direction: column; min-width: 0; }
.bx-dash-main > .bx-news { flex: none; }
.bx-dash-side { display: flex; flex-direction: column; justify-content: space-between; gap: 70px; }
.bx-daily { flex: 1 1 auto; display: flex; flex-direction: column; margin-top: 26px; }
.bx-daily-body { flex: 1 1 auto; padding: 16px 18px; gap: 18px; }
.bx-daily-grid { grid-auto-rows: 1fr; gap: 8px; }
.bx-day { padding: 6px 4px 5px; justify-content: center; }
.bx-day-icon { width: 42px; height: 42px; }
.bx-day-icon img { max-width: 36px; max-height: 36px; }
.bx-daily-char { height: 118px; }
.bx-daily-side { justify-content: space-between; }

@media (max-width: 991.98px) {
    .bx-dash-side { gap: 64px; justify-content: flex-start; }
    .bossro-discord-slide.bossro-discord-active, .bossro-discord-card { height: 350px; }
}