/* ==========================================================================
   BrowserKal - Fantasy UI layer (War of Gods)
   Loaded AFTER styles.css. Pure visual skin: colors, borders, shadows, fonts.
   It does not change layout, sizes or behaviour.
   To switch it off: remove the <link> to assets/ui-fantasy.css in
   src/Web/Layout/Document.php.
   ========================================================================== */
:root {
    --fx-gold: #e2bc71;
    --fx-gold-hi: #ffe7a6;
    --fx-gold-lo: #8a6a2c;
    --fx-bronze: #5a3d17;
    --fx-ink: #07090f;
    --fx-stone-1: rgba(20, 34, 78, 0.93);
    --fx-stone-2: rgba(7, 12, 33, 0.97);
    --fx-glow: 0 0 18px rgba(226, 188, 113, 0.14);
    --fx-frame:
        0 0 0 1px #020611,
        0 0 0 2px #2a62b8,
        0 0 0 3px #04122e,
        0 0 12px 2px rgba(64, 150, 255, 0.38),
        0 10px 26px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(140, 200, 255, 0.4),
        inset 0 0 0 3px rgba(4, 8, 24, 0.85),
        inset 0 0 0 4px rgba(90, 170, 255, 0.22),
        inset 0 0 34px rgba(40, 110, 230, 0.2);
}
/* ---- Page container: no big frame, just a light veil ----------------------- */
html body:not([data-page="inventory"]) .content-panel,
html body[data-page]:not([data-page="inventory"]) .content-panel {
    background: rgba(6, 12, 34, 0.34) !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
/* ---- Panels / cards ---------------------------------------------------- */
html body .panel,
html body[data-page] .panel,
html body .cardish,
html body[data-page] .cardish,
html body .landing-card,
html body[data-page] .landing-card,
html body .settings-modal-card,
html body[data-page] .settings-modal-card,
html body .dashboard-buffbar-wrap,
html body[data-page] .dashboard-buffbar-wrap {
    border: 0 !important;
    border-radius: 10px !important;
    background:
        linear-gradient(180deg, rgba(255, 231, 166, 0.045) 0, rgba(255, 231, 166, 0) 38px),
        radial-gradient(120% 90% at 0% 0%, rgba(120, 90, 40, 0.10), transparent 55%),
        linear-gradient(180deg, var(--fx-stone-1), var(--fx-stone-2)) !important;
    box-shadow: var(--fx-frame) !important;
}
html body .dashboard-buffbar-wrap,
html body[data-page] .dashboard-buffbar-wrap {
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(10, 18, 46, 0.8), rgba(5, 9, 26, 0.86)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(226, 188, 113, 0.26),
        inset 0 0 0 3px rgba(0, 0, 0, 0.55) !important;
}
/* ---- Headings ---------------------------------------------------------- */
html body .panel h1,
html body[data-page] .panel h1,
html body .panel h2,
html body[data-page] .panel h2,
html body .panel h3,
html body[data-page] .panel h3,
html body:not([data-page="inventory"]) .content-panel h1,
html body[data-page]:not([data-page="inventory"]) .content-panel h1,
html body:not([data-page="inventory"]) .content-panel h2,
html body[data-page]:not([data-page="inventory"]) .content-panel h2,
html body:not([data-page="inventory"]) .content-panel h3,
html body[data-page]:not([data-page="inventory"]) .content-panel h3,
html body .settings-modal-card h2,
html body[data-page] .settings-modal-card h2,
html body .settings-modal-card h3,
html body[data-page] .settings-modal-card h3 {
    font-family: "Cinzel", serif !important;
    letter-spacing: 0.04em !important;
    color: var(--fx-gold-hi) !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 14px rgba(226, 188, 113, 0.22) !important;
}
html body .panel h2,
html body[data-page] .panel h2,
html body:not([data-page="inventory"]) .content-panel h2,
html body[data-page]:not([data-page="inventory"]) .content-panel h2 {
    padding-bottom: 8px !important;
    border-bottom: 1px solid transparent !important;
    border-image: linear-gradient(90deg, rgba(226, 188, 113, 0.65), rgba(226, 188, 113, 0.08) 70%, transparent) 1 !important;
}
html body .eyebrow,
html body[data-page] .eyebrow,
html body .landing-kicker,
html body[data-page] .landing-kicker {
    color: var(--fx-gold) !important;
    letter-spacing: 0.24em !important;
    text-shadow: 0 0 10px rgba(226, 188, 113, 0.3) !important;
}
/* ---- Buttons ----------------------------------------------------------- */
button,
input[type="button"],
input[type="submit"],
.btn,
a.button {
    border: 1px solid #0a0704;
    border-radius: 6px;
    color: #fff1cc;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    background:
        linear-gradient(180deg, rgba(255, 231, 166, 0.28) 0, rgba(255, 231, 166, 0) 48%),
        linear-gradient(180deg, #7b5420 0%, #4a3012 52%, #2e1d0a 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 130, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.35),
        0 2px 5px rgba(0, 0, 0, 0.55);
    transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
button:hover:not(:disabled),
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover,
a.button:hover {
    filter: brightness(1.18) saturate(1.1);
    border-color: #0a0704;
    box-shadow:
        inset 0 0 0 1px rgba(255, 231, 166, 0.8),
        inset 0 -2px 0 rgba(0, 0, 0, 0.35),
        0 0 14px rgba(226, 188, 113, 0.35),
        0 2px 5px rgba(0, 0, 0, 0.55);
}
button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 130, 0.35),
        inset 0 2px 5px rgba(0, 0, 0, 0.6);
}
/* small round / icon buttons keep the gold coin look */
.menu-toggle,
.sidebar-collapse-handle {
    background: radial-gradient(circle at 32% 24%, #ffe7a6, #a8782e 48%, #4a3012 100%);
    border: 1px solid #0a0704;
    box-shadow: inset 0 0 0 1px rgba(255, 231, 166, 0.6), 0 2px 6px rgba(0, 0, 0, 0.6);
}
/* ---- Inputs ------------------------------------------------------------ */
select,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea {
    border: 1px solid rgba(226, 188, 113, 0.32);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(6, 11, 30, 0.75));
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    color: #f6ead0;
}
select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 220, 140, 0.85);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(226, 188, 113, 0.22);
}
/* ---- Sidebar ----------------------------------------------------------- */
html body .sidebar,
html body[data-page] .sidebar {
    border: 0 !important;
    border-radius: 10px !important;
    background:
        linear-gradient(90deg, rgba(226, 188, 113, 0.07), transparent 22%),
        linear-gradient(180deg, rgba(18, 31, 72, 0.96), rgba(6, 10, 28, 0.98)) !important;
    box-shadow: var(--fx-frame) !important;
}
html body .sidebar-brand strong,
html body[data-page] .sidebar-brand strong,
html body .sidebar-brand-row strong,
html body[data-page] .sidebar-brand-row strong {
    background: linear-gradient(180deg, #fff2c4, #d7ad64 55%, #9a6f2a) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8)) !important;
}
html body .sidebar-link,
html body[data-page] .sidebar-link {
    border: 1px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 6px !important;
    color: #eadfc6 !important;
    background: linear-gradient(180deg, rgba(30, 50, 110, 0.7), rgba(10, 18, 46, 0.88)) !important;
    box-shadow: inset 0 0 0 1px rgba(226, 188, 113, 0.14), inset 0 1px 0 rgba(255, 231, 166, 0.08) !important;
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease !important;
}
html body .sidebar-link:hover,
html body[data-page] .sidebar-link:hover {
    color: #fff3d0 !important;
    filter: brightness(1.18) !important;
    transform: translateX(2px) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 220, 140, 0.55), 0 0 12px rgba(226, 188, 113, 0.22) !important;
}
html body .sidebar-link::before,
html body[data-page] .sidebar-link::before {
    color: var(--fx-gold) !important;
    text-shadow: 0 0 8px rgba(226, 188, 113, 0.7) !important;
}
html body .sidebar-link.active,
html body[data-page] .sidebar-link.active {
    color: #fff6dc !important;
    background: radial-gradient(120% 140% at 50% 0%, rgba(255, 170, 90, 0.38), rgba(60, 90, 180, 0.35) 55%, rgba(14, 24, 60, 0.85)) !important;
    border-color: #0a0704 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 220, 140, 0.75), 0 0 16px rgba(226, 188, 113, 0.3) !important;
}
html body .sidebar-sublink,
html body[data-page] .sidebar-sublink {
    border-radius: 5px !important;
}
/* ---- Bars (HP / MP / EXP) ---------------------------------------------- */
html body .bar,
html body[data-page] .bar,
html body .travel-line,
html body[data-page] .travel-line {
    height: 15px !important;
    border-radius: 4px !important;
    border: 1px solid #000 !important;
    background: linear-gradient(180deg, #03050f, #0f1a3a) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(226, 188, 113, 0.28) !important;
}
html body .bar span,
html body[data-page] .bar span,
html body .travel-line span,
html body[data-page] .travel-line span {
    border-radius: 3px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 5px rgba(0, 0, 0, 0.3) !important;
}
html body .bar span::after,
html body[data-page] .bar span::after,
html body .travel-line span::after,
html body[data-page] .travel-line span::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 52% 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)) !important;
    border-radius: inherit !important;
    pointer-events: none !important;
}
html body .bar.hp span,
html body[data-page] .bar.hp span {
    background: linear-gradient(180deg, #ff6a5c, #c21f2a 60%, #7d0f18) !important;
}
html body .bar.mp span,
html body[data-page] .bar.mp span {
    background: linear-gradient(180deg, #6ec6ff, #2670d6 60%, #123f8c) !important;
}
html body .bar.exp span,
html body[data-page] .bar.exp span,
html body .travel-line span,
html body[data-page] .travel-line span {
    background: linear-gradient(180deg, #ffe08a, #d9a21f 60%, #8a5d0c) !important;
}
html body .bar-label,
html body[data-page] .bar-label {
    font-family: "Cinzel", serif !important;
    letter-spacing: 0.06em !important;
    text-shadow: 0 1px 3px #000 !important;
}
/* ---- Skill bar / buff slots -------------------------------------------- */
html body .dashboard-skill-slot,
html body[data-page] .dashboard-skill-slot {
    border-radius: 8px !important;
    border: 1px solid #000 !important;
    background: radial-gradient(circle at 50% 30%, rgba(40, 62, 130, 0.5), rgba(7, 12, 33, 0.92)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(226, 188, 113, 0.4),
        inset 0 0 0 3px rgba(0, 0, 0, 0.7),
        0 3px 6px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.12s ease, box-shadow 0.15s ease !important;
}
html body .dashboard-skill-slot:not(.empty):hover,
html body[data-page] .dashboard-skill-slot:not(.empty):hover {
    transform: translateY(-2px) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 231, 166, 0.85),
        inset 0 0 0 3px rgba(0, 0, 0, 0.7),
        0 0 16px rgba(226, 188, 113, 0.4) !important;
}
html body .dashboard-skill-slot.empty,
html body[data-page] .dashboard-skill-slot.empty {
    opacity: 0.55 !important;
}
html body .dashboard-buff-slot,
html body[data-page] .dashboard-buff-slot {
    border: 1px solid #000 !important;
    border-radius: 7px !important;
    box-shadow: inset 0 0 0 1px rgba(226, 188, 113, 0.5), 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}
/* ---- Top info strip ----------------------------------------------------- */
html body .dashboard-event-timer,
html body[data-page] .dashboard-event-timer,
html body .dashboard-notice-time,
html body[data-page] .dashboard-notice-time {
    color: var(--fx-gold) !important;
    text-shadow: 0 0 8px rgba(226, 188, 113, 0.35) !important;
    font-variant-numeric: tabular-nums !important;
}
html body .dashboard-community-btn,
html body[data-page] .dashboard-community-btn {
    border-radius: 7px !important;
}
/* ---- Extra surfaces that were navy via page-specific rules ------------- */
html body .dashboard-monster-card,
html body[data-page] .dashboard-monster-card,
html body .dashboard-current-quests-card,
html body[data-page] .dashboard-current-quests-card,
html body .combat-feedback,
html body[data-page] .combat-feedback,
html body .global-feedback-item,
html body[data-page] .global-feedback-item,
html body .stats-card,
html body[data-page] .stats-card,
html body .mmx-card,
html body[data-page] .mmx-card,
html body .mmx-hero,
html body[data-page] .mmx-hero {
    border: 0 !important;
    border-radius: 9px !important;
    background:
        linear-gradient(180deg, rgba(255, 231, 166, 0.05), rgba(255, 231, 166, 0) 34px),
        linear-gradient(180deg, var(--fx-stone-1), var(--fx-stone-2)) !important;
    box-shadow: var(--fx-frame) !important;
}
/* inner cards: flatter, thin gold line, warm leather tone */
html body .dashboard-event-card,
html body[data-page] .dashboard-event-card,
html body .dashboard-notice-card,
html body[data-page] .dashboard-notice-card,
html body .dashboard-shoutbox-card,
html body[data-page] .dashboard-shoutbox-card,
html body .dashboard-community-card,
html body[data-page] .dashboard-community-card,
html body .mini-card,
html body[data-page] .mini-card,
html body .empty-state,
html body[data-page] .empty-state,
html body .party-buffs-line,
html body[data-page] .party-buffs-line,
html body .dashboard-skillbar,
html body[data-page] .dashboard-skillbar,
html body .dashboard-player-bars,
html body[data-page] .dashboard-player-bars,
html body .dashboard-travel-strip,
html body[data-page] .dashboard-travel-strip,
html body .dashboard-monster-card-wrap,
html body[data-page] .dashboard-monster-card-wrap,
html body .dashboard-right-combat-stack,
html body[data-page] .dashboard-right-combat-stack {
    border: 1px solid rgba(110, 180, 255, 0.34) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(26, 44, 100, 0.62), rgba(8, 14, 38, 0.88)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 231, 166, 0.08), inset 0 0 0 2px rgba(0, 0, 0, 0.35) !important;
}
html body .global-feedback-item,
html body[data-page] .global-feedback-item {
    color: #f1e4c6 !important;
}
html body .global-feedback-item strong,
html body[data-page] .global-feedback-item strong,
html body .global-feedback-item h4,
html body[data-page] .global-feedback-item h4 {
    font-family: "Cinzel", serif !important;
    color: var(--fx-gold-hi) !important;
    letter-spacing: 0.04em !important;
}
/* labels / small caps in the cards */
html body .dashboard-topbar .eyebrow,
html body[data-page] .dashboard-topbar .eyebrow,
html body .dashboard-topbar small,
html body[data-page] .dashboard-topbar small,
html body .dashboard-event-card small,
html body[data-page] .dashboard-event-card small {
    color: #b9c8ee !important;
}
/* ---- Window title bands (blue band, gold underline, chamfered ends) ------ */
html body body:not([data-page="dashboard"]) .panel-head h2,
html body[data-page] body:not([data-page="dashboard"]) .panel-head h2,
html body .dashboard-right-combat-stack .panel-head h3,
html body[data-page] .dashboard-right-combat-stack .panel-head h3,
html body .panel-head h3,
html body[data-page] .panel-head h3,
html body .floating-chat-head strong,
html body[data-page] .floating-chat-head strong,
html body .settings-modal-head h2,
html body[data-page] .settings-modal-head h2 {
    display: inline-block !important;
    padding: 6px 26px !important;
    color: #f4f8ff !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(110, 180, 255, 0.45) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 50%),
        linear-gradient(180deg, #1f4aa0 0%, #123578 55%, #0a1f52 100%) !important;
    border: 0 !important;
    border-bottom: 2px solid #d9b35f !important;
    border-radius: 2px !important;
    box-shadow: inset 0 0 0 1px rgba(150, 205, 255, 0.45) !important;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%) !important;
}
/* ---- Tabs ----------------------------------------------------------------- */
html body .floating-chat-tab,
html body[data-page] .floating-chat-tab,
html body .auction-tab,
html body[data-page] .auction-tab,
html body .guild-subtab,
html body[data-page] .guild-subtab,
html body .guild-top-tab,
html body[data-page] .guild-top-tab,
html body .mixmaster-tab,
html body[data-page] .mixmaster-tab,
html body .party-window-tab,
html body[data-page] .party-window-tab,
html body .npc-blacksmith-mode-tab,
html body[data-page] .npc-blacksmith-mode-tab,
html body .dashboard-combat-view-button,
html body[data-page] .dashboard-combat-view-button {
    color: #cfe0ff !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    border: 1px solid #0a1a44 !important;
    border-radius: 5px 5px 0 0 !important;
    background: linear-gradient(180deg, #1a3c86 0%, #0e2559 55%, #091a42 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(110, 180, 255, 0.42), inset 0 1px 0 rgba(200, 230, 255, 0.25) !important;
    text-shadow: 0 1px 2px #000 !important;
}
html body .floating-chat-tab.active,
html body[data-page] .floating-chat-tab.active,
html body .auction-tab.active,
html body[data-page] .auction-tab.active,
html body .guild-subtab.active,
html body[data-page] .guild-subtab.active,
html body .guild-top-tab.active,
html body[data-page] .guild-top-tab.active,
html body .mixmaster-tab.active,
html body[data-page] .mixmaster-tab.active,
html body .party-window-tab.active,
html body[data-page] .party-window-tab.active,
html body .npc-blacksmith-mode-tab.active,
html body[data-page] .npc-blacksmith-mode-tab.active,
html body .dashboard-combat-view-button[aria-pressed="true"],
html body[data-page] .dashboard-combat-view-button[aria-pressed="true"] {
    color: #fff4d0 !important;
    border-color: #05102c !important;
    background: linear-gradient(180deg, #3d7be0 0%, #1d4fae 50%, #123a85 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 225, 150, 0.85), 0 0 12px rgba(80, 160, 255, 0.5) !important;
}
/* ---- Compact top info strip: no outer frame, slimmer cards ---------------- */
html body .panel.dashboard-topbar,
html body[data-page] .panel.dashboard-topbar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 8px !important;
}
html body .dashboard-topbar .dashboard-topbar-grid,
html body[data-page] .dashboard-topbar .dashboard-topbar-grid {
    gap: 8px !important;
}
html body .dashboard-topbar .mini-card,
html body[data-page] .dashboard-topbar .mini-card {
    padding: 8px 14px !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background:
        linear-gradient(180deg, rgba(255, 231, 166, 0.05), rgba(255, 231, 166, 0) 34px),
        linear-gradient(180deg, var(--fx-stone-1), var(--fx-stone-2)) !important;
    box-shadow: var(--fx-frame) !important;
}
html body .dashboard-topbar .mini-card .meta-label,
html body[data-page] .dashboard-topbar .mini-card .meta-label,
html body .dashboard-topbar .mini-card > span:first-child,
html body[data-page] .dashboard-topbar .mini-card > span:first-child {
    font-family: "Cinzel", serif !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: none !important;
    color: var(--fx-gold-hi) !important;
}
html body .dashboard-topbar .dashboard-community-card,
html body[data-page] .dashboard-topbar .dashboard-community-card {
    gap: 5px !important;
}
/* ---- Invisible click targets must stay invisible (town map hotspots) ------- */
html body .npc-town-hotspot,
html body[data-page] .npc-town-hotspot {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    clip-path: none !important;
}
html body .npc-town-hotspot:hover,
html body[data-page] .npc-town-hotspot:hover {
    box-shadow: none !important;
    filter: none !important;
}
/* ==========================================================================
   FORUM
   ========================================================================== */
html body .bk-forum-hero,
html body[data-page] .bk-forum-hero {
    border: 0 !important;
    border-radius: 10px !important;
    background:
        radial-gradient(ellipse at 78% 46%, rgba(70, 130, 255, 0.22), transparent 42%),
        linear-gradient(112deg, rgba(14, 26, 66, 0.96) 0%, rgba(8, 15, 40, 0.97) 55%, rgba(18, 22, 44, 0.97) 100%) !important;
    box-shadow: var(--fx-frame) !important;
}
html body .bk-forum-hero h1,
html body[data-page] .bk-forum-hero h1,
html body .bk-forum-hero h2,
html body[data-page] .bk-forum-hero h2 {
    font-family: "Cinzel", serif !important;
    color: var(--fx-gold-hi) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 18px rgba(110, 180, 255, 0.35) !important;
}
html body .bk-forum-boards,
html body[data-page] .bk-forum-boards {
    border-radius: 10px !important;
    background: linear-gradient(180deg, rgba(14, 26, 66, 0.9), rgba(6, 11, 30, 0.94)) !important;
    box-shadow: inset 0 0 0 1px rgba(110, 180, 255, 0.28), inset 0 0 0 3px rgba(2, 6, 17, 0.7) !important;
}
html body .bk-forum-board,
html body[data-page] .bk-forum-board {
    border-radius: 6px !important;
    border: 1px solid rgba(110, 180, 255, 0.16) !important;
    background: linear-gradient(180deg, rgba(30, 50, 110, 0.55), rgba(10, 18, 46, 0.7)) !important;
    color: #dbe8ff !important;
    transition: filter 0.15s ease, box-shadow 0.15s ease !important;
}
html body .bk-forum-board:hover,
html body[data-page] .bk-forum-board:hover {
    filter: brightness(1.2) !important;
    box-shadow: 0 0 10px rgba(80, 160, 255, 0.35) !important;
}
/* Unread boards keep the gold blink; only the colours are retuned to the blue theme. */
html body .bk-forum-board.has-unread-posts,
html body[data-page] .bk-forum-board.has-unread-posts {
    border-color: rgba(255, 214, 120, 0.75) !important;
    background: linear-gradient(90deg, rgba(239, 191, 100, 0.28), rgba(30, 50, 110, 0.55)) !important;
    color: #ffe6ad !important;
}
html body .bk-forum-board.active,
html body[data-page] .bk-forum-board.active,
html body .bk-forum-board.is-active,
html body[data-page] .bk-forum-board.is-active,
html body .bk-forum-board[aria-current="page"],
html body[data-page] .bk-forum-board[aria-current="page"] {
    border-color: #d9b35f !important;
    background: linear-gradient(180deg, rgba(61, 123, 224, 0.75), rgba(18, 58, 133, 0.9)) !important;
    color: #fff4d0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 225, 150, 0.6), 0 0 12px rgba(80, 160, 255, 0.4) !important;
}
html body .bk-forum-thread-section-heading,
html body[data-page] .bk-forum-thread-section-heading {
    background: linear-gradient(180deg, #1f4aa0 0%, #123578 60%, #0a1f52 100%) !important;
    border-bottom: 2px solid #d9b35f !important;
    color: #f4f8ff !important;
    font-family: "Cinzel", serif !important;
    letter-spacing: 0.08em !important;
}
html body .bk-forum-thread-entry,
html body[data-page] .bk-forum-thread-entry {
    border-bottom: 1px solid rgba(110, 180, 255, 0.16) !important;
}
/* New / updated threads keep their own green / blue blinking (animation in styles.css). */
html body .bk-forum-thread-entry:not(.is-new-thread):not(.has-new-replies),
html body[data-page] .bk-forum-thread-entry:not(.is-new-thread):not(.has-new-replies) {
    background: linear-gradient(90deg, rgba(30, 55, 125, 0.4), rgba(8, 14, 38, 0.55) 55%) !important;
    transition: background 0.15s ease !important;
}
html body .bk-forum-thread-entry:not(.is-new-thread):not(.has-new-replies):hover,
html body[data-page] .bk-forum-thread-entry:not(.is-new-thread):not(.has-new-replies):hover {
    background: linear-gradient(90deg, rgba(55, 100, 200, 0.5), rgba(12, 22, 60, 0.6) 60%) !important;
}
html body .bk-forum-thread-view,
html body[data-page] .bk-forum-thread-view,
html body .bk-forum-reply,
html body[data-page] .bk-forum-reply {
    border: 1px solid rgba(110, 180, 255, 0.28) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, rgba(22, 40, 94, 0.62), rgba(7, 13, 36, 0.82)) !important;
    box-shadow: inset 0 1px 0 rgba(200, 230, 255, 0.1), inset 0 0 0 2px rgba(2, 6, 17, 0.45) !important;
}
html body .bk-forum-post-actions,
html body[data-page] .bk-forum-post-actions,
html body .bk-forum-post-meta,
html body[data-page] .bk-forum-post-meta {
    border-color: rgba(110, 180, 255, 0.18) !important;
}
html body .bk-forum-compose-dialog,
html body[data-page] .bk-forum-compose-dialog {
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, rgba(20, 34, 78, 0.98), rgba(7, 12, 33, 0.99)) !important;
    box-shadow: var(--fx-frame), 0 0 80px rgba(60, 130, 255, 0.18) !important;
}
html body .bk-forum-compose-dialog::backdrop,
html body[data-page] .bk-forum-compose-dialog::backdrop {
    background: radial-gradient(ellipse at center, rgba(6, 10, 28, 0.7), rgba(0, 0, 0, 0.88)) !important;
}
html body .bk-forum-dialog-close,
html body[data-page] .bk-forum-dialog-close {
    border: 1px solid #0a1a44 !important;
    border-radius: 6px !important;
    background: linear-gradient(180deg, #7b2a2a, #4a1414) !important;
    color: #ffe6e6 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 170, 170, 0.35) !important;
}
html body .bk-forum-rich-quote,
html body[data-page] .bk-forum-rich-quote {
    border-left: 3px solid #d9b35f !important;
    background: rgba(40, 70, 150, 0.25) !important;
    border-radius: 0 6px 6px 0 !important;
}
html body .bk-forum-rich-heading,
html body[data-page] .bk-forum-rich-heading {
    color: var(--fx-gold-hi) !important;
    font-family: "Cinzel", serif !important;
    border-bottom: 1px solid rgba(217, 179, 95, 0.35) !important;
}
/* ---- Spoiler + inline code (shown in posts and in the editor) ---------------- */
html body .bk-forum-spoiler,
html body[data-page] .bk-forum-spoiler {
    padding: 0 4px !important;
    border-radius: 4px !important;
    background: rgba(110, 180, 255, 0.18) !important;
    filter: blur(5px) !important;
    cursor: pointer !important;
    transition: filter 0.2s ease !important;
}
html body .bk-forum-spoiler:hover,
html body[data-page] .bk-forum-spoiler:hover,
html body .bk-forum-spoiler:focus,
html body[data-page] .bk-forum-spoiler:focus,
html body .bk-forum-spoiler:focus-within,
html body[data-page] .bk-forum-spoiler:focus-within,
html body .bk-forum-rich-surface .bk-forum-spoiler,
html body[data-page] .bk-forum-rich-surface .bk-forum-spoiler {
    filter: none !important;
    outline: none !important;
}
html body .bk-forum-code,
html body[data-page] .bk-forum-code {
    padding: 1px 6px !important;
    border: 1px solid rgba(110, 180, 255, 0.3) !important;
    border-radius: 4px !important;
    background: rgba(2, 8, 24, 0.75) !important;
    color: #bfe6ff !important;
    font: 0.92em Consolas, "Courier New", monospace !important;
}
/* ---- Editor: toolbar on top, surface, footer ------------------------------------- */
html body .bk-forum-rich-editor,
html body[data-page] .bk-forum-rich-editor {
    position: relative !important;
    display: block !important;
    overflow: visible !important;
    border: 1px solid rgba(110, 180, 255, 0.4) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, rgba(4, 9, 28, 0.95), rgba(8, 16, 42, 0.95)) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55) !important;
}
html body .bk-forum-rich-editor:focus-within,
html body[data-page] .bk-forum-rich-editor:focus-within {
    border-color: rgba(150, 210, 255, 0.85) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(80, 160, 255, 0.25) !important;
}
html body .bk-forum-editor-toolbar,
html body[data-page] .bk-forum-editor-toolbar {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
    max-height: none !important;
    padding: 7px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(110, 180, 255, 0.3) !important;
    border-radius: 8px 8px 0 0 !important;
    background: linear-gradient(180deg, rgba(30, 60, 140, 0.7), rgba(12, 24, 64, 0.85)) !important;
    overflow: visible !important;
}
html body .bk-forum-editor-tool,
html body[data-page] .bk-forum-editor-tool,
html body .bk-forum-editor-select,
html body[data-page] .bk-forum-editor-select,
html body .bk-forum-editor-color,
html body[data-page] .bk-forum-editor-color {
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 32px !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    border: 1px solid #0a1a44 !important;
    border-radius: 5px !important;
    background: linear-gradient(180deg, #2a55b0 0%, #17388a 55%, #0e2562 100%) !important;
    color: #e6f0ff !important;
    box-shadow: inset 0 0 0 1px rgba(150, 205, 255, 0.4) !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
}
html body .bk-forum-editor-tool:hover,
html body[data-page] .bk-forum-editor-tool:hover,
html body .bk-forum-editor-select:hover,
html body[data-page] .bk-forum-editor-select:hover {
    filter: brightness(1.25) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 225, 150, 0.8) !important;
}
html body .bk-forum-editor-select,
html body[data-page] .bk-forum-editor-select {
    grid-column: auto !important;
    display: inline-block !important;
    max-width: 120px !important;
}
html body .bk-forum-editor-color,
html body[data-page] .bk-forum-editor-color {
    flex: 0 0 auto !important;
    color: var(--fx-gold-hi) !important;
}
html body .bk-forum-editor-sep,
html body[data-page] .bk-forum-editor-sep {
    flex: 0 0 1px !important;
    align-self: stretch !important;
    margin: 3px 3px !important;
    background: rgba(150, 205, 255, 0.35) !important;
}
html body .bk-forum-rich-surface,
html body[data-page] .bk-forum-rich-surface {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: min(52vh, 520px) !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    padding: 12px 14px !important;
    color: #eef4ff !important;
    font: 14px/1.75 "Space Grotesk", Arial, sans-serif !important;
}
html body .bk-forum-rich-surface:focus,
html body[data-page] .bk-forum-rich-surface:focus {
    box-shadow: none !important;
}
html body .bk-forum-rich-surface a,
html body[data-page] .bk-forum-rich-surface a {
    color: #8fd0ff !important;
}
html body .bk-forum-editor-foot,
html body[data-page] .bk-forum-editor-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 5px 10px 7px !important;
    border-top: 1px solid rgba(110, 180, 255, 0.18) !important;
    border-radius: 0 0 8px 8px !important;
}
html body .bk-forum-editor-hint,
html body[data-page] .bk-forum-editor-hint {
    display: block !important;
    padding: 0 !important;
    color: #8aa3d6 !important;
    font-size: 11px !important;
}
html body .bk-forum-editor-counter,
html body[data-page] .bk-forum-editor-counter {
    flex: 0 0 auto !important;
    color: #8aa3d6 !important;
    font-size: 11px !important;
    font-variant-numeric: tabular-nums !important;
}
html body .bk-forum-editor-counter.is-over,
html body[data-page] .bk-forum-editor-counter.is-over {
    color: #ff8a8a !important;
    font-weight: 700 !important;
}
html body .bk-forum-editor-pop,
html body[data-page] .bk-forum-editor-pop {
    position: absolute !important;
    z-index: 40 !important;
    display: flex !important;
    gap: 6px !important;
    max-width: calc(100% - 8px) !important;
    padding: 8px !important;
    border: 1px solid rgba(150, 205, 255, 0.55) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, rgba(20, 40, 100, 0.99), rgba(6, 12, 34, 0.99)) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 16px rgba(70, 150, 255, 0.3) !important;
}
html body .bk-forum-editor-pop[hidden],
html body[data-page] .bk-forum-editor-pop[hidden] {
    display: none !important;
}
html body .bk-forum-editor-pop.is-emoji,
html body[data-page] .bk-forum-editor-pop.is-emoji {
    display: grid !important;
    grid-template-columns: repeat(8, 34px) !important;
    gap: 4px !important;
}
html body .bk-forum-editor-pop-input,
html body[data-page] .bk-forum-editor-pop-input {
    min-width: 240px !important;
    height: 30px !important;
    padding: 0 10px !important;
}
html body .bk-forum-editor-pop-input.is-invalid,
html body[data-page] .bk-forum-editor-pop-input.is-invalid {
    border-color: #ff7a7a !important;
    box-shadow: 0 0 0 2px rgba(255, 122, 122, 0.3) !important;
}
html body .bk-forum-emoji,
html body[data-page] .bk-forum-emoji {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid rgba(110, 180, 255, 0.25) !important;
    border-radius: 6px !important;
    background: rgba(10, 20, 54, 0.8) !important;
    font-size: 19px !important;
    line-height: 1 !important;
}
html body .bk-forum-emoji:hover,
html body[data-page] .bk-forum-emoji:hover {
    background: rgba(61, 123, 224, 0.6) !important;
}
html body .bk-forum-mention-menu,
html body[data-page] .bk-forum-mention-menu {
    border: 1px solid rgba(150, 205, 255, 0.5) !important;
    background: linear-gradient(180deg, rgba(20, 40, 100, 0.99), rgba(6, 12, 34, 0.99)) !important;
}
html body .bk-forum-mention-option.is-active,
html body[data-page] .bk-forum-mention-option.is-active {
    background: rgba(61, 123, 224, 0.45) !important;
    border-color: #d9b35f !important;
}
html body .bk-forum-editor-tool.is-active,
html body[data-page] .bk-forum-editor-tool.is-active {
    background: linear-gradient(180deg, #e7c26c 0%, #b88a2c 100%) !important;
    border-color: #4a3410 !important;
    color: #1a1204 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 245, 200, 0.7), 0 0 8px rgba(230, 190, 100, 0.55) !important;
}
html body .bk-forum-editor-draft,
html body[data-page] .bk-forum-editor-draft {
    margin-right: auto !important;
    padding: 1px 7px !important;
    border: 1px solid rgba(217, 179, 95, 0.5) !important;
    border-radius: 10px !important;
    color: #f0d398 !important;
    font-size: 11px !important;
}
html body .bk-forum-rich-surface:empty::before,
html body[data-page] .bk-forum-rich-surface:empty::before,
html body .bk-forum-rich-surface[data-empty="1"]::before,
html body[data-page] .bk-forum-rich-surface[data-empty="1"]::before {
    content: attr(data-placeholder) !important;
    color: #6f86b8 !important;
    pointer-events: none !important;
}
html body .bk-forum-rich-surface[data-empty="1"],
html body[data-page] .bk-forum-rich-surface[data-empty="1"] {
    box-shadow: inset 0 0 0 2px rgba(255, 122, 122, 0.55) !important;
}
/* ---- @mentions inside posts --------------------------------------------------- */
html body .bk-forum-mention,
html body[data-page] .bk-forum-mention {
    padding: 0 5px !important;
    border-radius: 4px !important;
    background: rgba(217, 179, 95, 0.16) !important;
    color: #ffd98a !important;
    font-weight: 700 !important;
}
html body .bk-forum-reply.is-target,
html body[data-page] .bk-forum-reply.is-target,
html body .bk-forum-reply:target,
html body[data-page] .bk-forum-reply:target {
    animation: bkForumTarget 2.4s ease-out 1 !important;
}


@keyframes bkForumTarget {html body 0%,
html body[data-page] 0%,
html body 35%,
html body[data-page] 35% {
    box-shadow: 0 0 0 2px #d9b35f, 0 0 26px rgba(255, 214, 120, 0.55) !important;
}
html body 100%,
html body[data-page] 100% {
    box-shadow: inset 0 1px 0 rgba(200, 230, 255, 0.1), inset 0 0 0 2px rgba(2, 6, 17, 0.45) !important;
}

}/* ---- per-post quick actions ------------------------------------------------------ */
html body .bk-forum-mini-actions,
html body[data-page] .bk-forum-mini-actions {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-left: auto !important;
}
html body .bk-forum-mini-action,
html body[data-page] .bk-forum-mini-action {
    min-height: 26px !important;
    padding: 0 9px !important;
    border: 1px solid rgba(110, 180, 255, 0.35) !important;
    border-radius: 5px !important;
    background: rgba(14, 30, 78, 0.8) !important;
    color: #cfe2ff !important;
    font-size: 11px !important;
    cursor: pointer !important;
}
html body .bk-forum-mini-action:hover,
html body[data-page] .bk-forum-mini-action:hover {
    background: rgba(61, 123, 224, 0.55) !important;
    color: #fff !important;
}
html body .bk-forum-post-actions,
html body[data-page] .bk-forum-post-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}
html body .bk-forum-dock,
html body[data-page] .bk-forum-dock {
    position: sticky !important;
    bottom: 14px !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: max-content !important;
    margin: 10px 4px 0 auto !important;
}
html body .bk-forum-dock .bk-forum-mini-action,
html body[data-page] .bk-forum-dock .bk-forum-mini-action {
    width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border-color: #d9b35f !important;
    background: linear-gradient(180deg, #2a55b0, #0e2562) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), 0 0 10px rgba(80, 160, 255, 0.4) !important;
    font-size: 16px !important;
}
html body .bk-forum-filter,
html body[data-page] .bk-forum-filter {
    margin: 0 0 10px !important;
}
html body .bk-forum-filter input,
html body[data-page] .bk-forum-filter input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(110, 180, 255, 0.4) !important;
    border-radius: 6px !important;
    background: linear-gradient(180deg, rgba(4, 9, 28, 0.95), rgba(10, 20, 52, 0.95)) !important;
    color: #eef4ff !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55) !important;
}
html body .bk-forum-filter input::placeholder,
html body[data-page] .bk-forum-filter input::placeholder {
    color: #6f86b8 !important;
}
html body .bk-forum-thread-entry[hidden],
html body[data-page] .bk-forum-thread-entry[hidden],
html body .bk-forum-thread-section-heading[hidden],
html body[data-page] .bk-forum-thread-section-heading[hidden] {
    display: none !important !important;
}
/* ---- Alert pop-ups (@mention / reply) ------------------------------------------- */
html body .bk-forum-alert-stack,
html body[data-page] .bk-forum-alert-stack {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 100000 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 10px !important;
    width: min(360px, calc(100vw - 28px)) !important;
    pointer-events: none !important;
}
html body .bk-forum-alert,
html body[data-page] .bk-forum-alert {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 4px 12px !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    background:
        radial-gradient(ellipse at 100% 0, rgba(80, 160, 255, 0.28), transparent 55%),
        linear-gradient(180deg, rgba(24, 42, 98, 0.99), rgba(7, 12, 33, 0.99)) !important;
    color: #e8f1ff !important;
    box-shadow: 0 0 0 1px #2a62b8, 0 0 0 3px #060b1e, 0 0 0 4px rgba(217, 179, 95, 0.75), 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 28px rgba(70, 150, 255, 0.35) !important;
    pointer-events: auto !important;
    transform-origin: 100% 100% !important;
    animation: bkForumAlertIn 0.42s cubic-bezier(0.2, 1.2, 0.35, 1) both !important;
}
html body .bk-forum-alert.is-leaving,
html body[data-page] .bk-forum-alert.is-leaving {
    animation: bkForumAlertOut 0.22s ease-in both !important;
}


@keyframes bkForumAlertIn {html body 0%,
html body[data-page] 0% {
    opacity: 0 !important;
    transform: scale(0.35) translate(30px, 30px) !important;
}
html body 100%,
html body[data-page] 100% {
    opacity: 1 !important;
    transform: none !important;
}

}

@keyframes bkForumAlertOut {html body to,
html body[data-page] to {
    opacity: 0 !important;
    transform: scale(0.6) translate(20px, 20px) !important;
}

}html body .bk-forum-alert-icon,
html body[data-page] .bk-forum-alert-icon {
    grid-row: 1 / 3 !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid #d9b35f !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 30%, #3d7be0, #0e2562) !important;
    color: #fff1c4 !important;
    font: 800 20px/1 "Cinzel", serif !important;
    box-shadow: 0 0 12px rgba(80, 160, 255, 0.6) !important;
}
html body .bk-forum-alert.is-reply .bk-forum-alert-icon,
html body[data-page] .bk-forum-alert.is-reply .bk-forum-alert-icon {
    background: radial-gradient(circle at 35% 30%, #43c07a, #0d4a2a) !important;
}
html body .bk-forum-alert-copy,
html body[data-page] .bk-forum-alert-copy {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}
html body .bk-forum-alert-copy strong,
html body[data-page] .bk-forum-alert-copy strong {
    color: #ffe6ad !important;
    font-size: 13px !important;
}
html body .bk-forum-alert-title,
html body[data-page] .bk-forum-alert-title {
    overflow: hidden !important;
    color: #cfe2ff !important;
    font-size: 12px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
html body .bk-forum-alert-copy em,
html body[data-page] .bk-forum-alert-copy em {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #9db4e0 !important;
    font-size: 11px !important;
    font-style: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}
html body .bk-forum-alert-actions,
html body[data-page] .bk-forum-alert-actions {
    grid-column: 2 !important;
    display: flex !important;
    gap: 8px !important;
    margin-top: 6px !important;
}
html body .bk-forum-alert-actions .primary-btn,
html body[data-page] .bk-forum-alert-actions .primary-btn,
html body .bk-forum-alert-actions .ghost-btn,
html body[data-page] .bk-forum-alert-actions .ghost-btn {
    padding: 6px 12px !important;
    font-size: 11px !important;
    text-decoration: none !important;
}


/* ---- Corner ornaments ---------------------------------------------------- */
html body .panel,
html body[data-page] .panel,
html body .cardish,
html body[data-page] .cardish,
html body .settings-modal-card,
html body[data-page] .settings-modal-card,
html body .sidebar,
html body[data-page] .sidebar,
html body .dashboard-monster-card,
html body[data-page] .dashboard-monster-card,
html body .dashboard-current-quests-card,
html body[data-page] .dashboard-current-quests-card,
html body .combat-feedback,
html body[data-page] .combat-feedback,
html body .mmx-card,
html body[data-page] .mmx-card {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='14' viewBox='0 0 34 14'%3E%3Cpath d='M1 7H9M25 7H33' stroke='%23d9b35f' stroke-width='1' stroke-opacity='.7'/%3E%3Cpath d='M17 1L25 7L17 13L9 7Z' fill='%230c2152' stroke='%23d9b35f' stroke-width='1.3'/%3E%3Cpath d='M17 4.2L21.2 7L17 9.8L12.8 7Z' fill='%23ffe7a6'/%3E%3C/svg%3E") center 1px top 0 / 34px 14px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='rotate(0 17 17)' fill='none' stroke='%23d9b35f' stroke-linecap='round'%3E%3Cpath d='M2 31V11Q2 2 11 2H31' stroke-width='1.7'/%3E%3Cpath d='M6.5 31V13Q6.5 6.5 13 6.5H31' stroke-width='.9' stroke-opacity='.5'/%3E%3Cpath d='M11 11Q16 9 18 14M11 11Q9 16 14 18' stroke-width='1.1' stroke-opacity='.85'/%3E%3Crect x='0' y='0' width='6' height='6' transform='translate(3 -2.5) rotate(45 0 0)' fill='%23ffe7a6' stroke='%237a5a22' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") left 5px top 5px / 34px 34px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='rotate(90 17 17)' fill='none' stroke='%23d9b35f' stroke-linecap='round'%3E%3Cpath d='M2 31V11Q2 2 11 2H31' stroke-width='1.7'/%3E%3Cpath d='M6.5 31V13Q6.5 6.5 13 6.5H31' stroke-width='.9' stroke-opacity='.5'/%3E%3Cpath d='M11 11Q16 9 18 14M11 11Q9 16 14 18' stroke-width='1.1' stroke-opacity='.85'/%3E%3Crect x='0' y='0' width='6' height='6' transform='translate(3 -2.5) rotate(45 0 0)' fill='%23ffe7a6' stroke='%237a5a22' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") right 5px top 5px / 34px 34px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='rotate(270 17 17)' fill='none' stroke='%23d9b35f' stroke-linecap='round'%3E%3Cpath d='M2 31V11Q2 2 11 2H31' stroke-width='1.7'/%3E%3Cpath d='M6.5 31V13Q6.5 6.5 13 6.5H31' stroke-width='.9' stroke-opacity='.5'/%3E%3Cpath d='M11 11Q16 9 18 14M11 11Q9 16 14 18' stroke-width='1.1' stroke-opacity='.85'/%3E%3Crect x='0' y='0' width='6' height='6' transform='translate(3 -2.5) rotate(45 0 0)' fill='%23ffe7a6' stroke='%237a5a22' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") left 5px bottom 5px / 34px 34px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='rotate(180 17 17)' fill='none' stroke='%23d9b35f' stroke-linecap='round'%3E%3Cpath d='M2 31V11Q2 2 11 2H31' stroke-width='1.7'/%3E%3Cpath d='M6.5 31V13Q6.5 6.5 13 6.5H31' stroke-width='.9' stroke-opacity='.5'/%3E%3Cpath d='M11 11Q16 9 18 14M11 11Q9 16 14 18' stroke-width='1.1' stroke-opacity='.85'/%3E%3Crect x='0' y='0' width='6' height='6' transform='translate(3 -2.5) rotate(45 0 0)' fill='%23ffe7a6' stroke='%237a5a22' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E") right 5px bottom 5px / 34px 34px no-repeat,
        radial-gradient(110% 80% at 50% 0%, rgba(110, 90, 220, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(255, 231, 166, 0.04) 0, rgba(255, 231, 166, 0) 38px),
        linear-gradient(180deg, var(--fx-stone-1), var(--fx-stone-2)) !important;
}

/* ---- Dashboard scene panels (id-selectors in the original CSS) ---------- */
html body #dashboard-root.has-scene-background > .panel,
html body[data-page] #dashboard-root.has-scene-background > .panel {
    background: linear-gradient(180deg, rgba(14, 26, 66, 0.66), rgba(5, 9, 26, 0.78)) !important;
    box-shadow: var(--fx-frame) !important;
    border: 0 !important;
    border-radius: 10px !important;
}

@media (prefers-reduced-motion: reduce) {
    .bk-forum-alert { animation: none; }
}


/* ---- Forum forms / profile / management surfaces ---------------------------------- */
.bk-forum-form,
.bk-forum-profile-card,
.bk-forum-management,
.bk-forum-reported-post,
.bk-forum-report-card,
.bk-forum-admin-target,
.bk-forum-sidebar-note {
    border: 1px solid rgba(110, 180, 255, 0.28);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 40, 94, 0.62), rgba(7, 13, 36, 0.82));
    box-shadow: inset 0 1px 0 rgba(200, 230, 255, 0.1), inset 0 0 0 2px rgba(2, 6, 17, 0.45);
}

.bk-forum-profile-card {
    background:
        radial-gradient(ellipse at 82% 8%, rgba(70, 130, 255, 0.2), transparent 40%),
        linear-gradient(180deg, rgba(24, 44, 104, 0.8), rgba(6, 11, 32, 0.92));
}

.bk-forum-form input[type="text"],
.bk-forum-form input[type="search"],
.bk-forum-form select,
.bk-forum-form textarea,
.bk-forum-search input,
.bk-forum-admin-action input,
.bk-forum-admin-action select {
    border: 1px solid rgba(110, 180, 255, 0.4);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(4, 9, 28, 0.95), rgba(10, 20, 52, 0.95));
    color: #eef4ff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

.bk-forum-notification-option {
    border-color: rgba(110, 180, 255, 0.28);
    background: rgba(40, 80, 170, 0.14);
}

.bk-forum-role-chip {
    border-color: rgba(217, 179, 95, 0.55);
    background: rgba(217, 179, 95, 0.12);
}

/* ---- Tables ------------------------------------------------------------ */
table th {
    font-family: "Cinzel", serif;
    letter-spacing: 0.05em;
    color: var(--fx-gold);
    background: linear-gradient(180deg, rgba(90, 61, 23, 0.55), rgba(40, 27, 10, 0.55));
    border-bottom: 1px solid rgba(226, 188, 113, 0.45);
}

table td {
    border-color: rgba(226, 188, 113, 0.09);
}

table tbody tr:hover td {
    background: rgba(226, 188, 113, 0.07);
}

/* ---- Modals ------------------------------------------------------------ */
.settings-modal {
    background: radial-gradient(ellipse at center, rgba(10, 8, 6, 0.78), rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(6px);
}

.settings-modal-card {
    box-shadow:
        var(--fx-frame),
        0 0 80px rgba(226, 188, 113, 0.08);
}

/* ---- Scrollbars -------------------------------------------------------- */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track {
    background: linear-gradient(90deg, #040a22, #0b1a4a 50%, #040a22);
    border: 1px solid #1d4a96;
    border-radius: 7px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #8a6a2c, #f0d28a 50%, #8a6a2c);
    border: 1px solid #2a1a06;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255, 244, 205, 0.45);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #a98035, #ffe7a6 50%, #a98035); }
::-webkit-scrollbar-corner { background: #040a22; }
::-webkit-scrollbar-button:single-button {
    display: block;
    width: 14px;
    height: 14px;
    background-color: #0b1a4a;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #1d4a96;
    border-radius: 4px;
}
::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1 7L5 2L9 7Z' fill='%23e8c36c'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1 3L5 8L9 3Z' fill='%23e8c36c'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M7 1L2 5L7 9Z' fill='%23e8c36c'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M3 1L8 5L3 9Z' fill='%23e8c36c'/%3E%3C/svg%3E");
}

/* checkboxes, radios, sliders, progress */
input[type="checkbox"],
input[type="radio"],
input[type="range"],
progress {
    accent-color: #e2bc71;
}

/* ---- Text selection / focus -------------------------------------------- */
::selection { background: rgba(226, 188, 113, 0.35); color: #fff; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(255, 220, 140, 0.9);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-link, button, .dashboard-skill-slot { transition: none; }
}
