/* ==== Rise of the Knight interface: dark metal ===========================================================
   The last layer over the styles in index.html: cold forged iron panels with steel edges and rivets, bone
   lettering, aged bronze trim and ember light on what the mouse is over. Only colours, edges and shadows are
   set here - sizes and places stay as index.html gives them, on desktop and on phones.
   The ':is(#d4, html)' in front of a rule only makes it win over the rules in index.html. */
:root {
    --rk-gold: #d2c19a;
    --rk-gold-soft: #7f7a6c;
    --rk-gold-dark: #3c3a35;
    --rk-ink: #07080a;
    --rk-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --rk-panel: var(--rk-grain), linear-gradient(180deg, rgba(36, 38, 43, 0.97) 0%, rgba(15, 16, 19, 0.98) 100%);
    --rk-inset: linear-gradient(180deg, rgba(4, 5, 6, 0.88) 0%, rgba(20, 21, 25, 0.88) 100%);
    --rk-text: #dcd5c6;
    --rk-muted: #948f84;
    --d4-black: #08090b;
    --d4-iron: #23262b;
    --d4-iron-dark: #131518;
    --d4-steel: #7c828a;
    --d4-steel-dim: #454a51;
    --d4-bronze: #a8946a;
    --d4-bone: #dcd5c6;
    --d4-blood: #a3221a;
    --d4-ember: #d9541e;
    --d4-rivets: radial-gradient(circle at 10px 10px, #a7adb5 0 1.5px, #2b2e33 2px 4px, transparent 4.5px),
        radial-gradient(circle at calc(100% - 10px) 10px, #a7adb5 0 1.5px, #2b2e33 2px 4px, transparent 4.5px),
        radial-gradient(circle at 10px calc(100% - 10px), #a7adb5 0 1.5px, #2b2e33 2px 4px, transparent 4.5px),
        radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #a7adb5 0 1.5px, #2b2e33 2px 4px, transparent 4.5px);
    --d4-frame: 0 0 0 1px var(--d4-black), 0 0 0 3px #2b2e33, 0 0 0 4px #5f646c, 0 0 0 6px var(--d4-black),
        0 24px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 70px rgba(0, 0, 0, 0.65);
    --d4-plate: linear-gradient(180deg, #34373d 0%, #1a1c20 100%);
}

/* ---- panels: a plate of iron in a steel frame, a rivet in every corner */
:is(#d4, html) #inventoryPanel,
:is(#d4, html) #playerDetailsPanel,
:is(#d4, html) .quest-log,
:is(#d4, html) .npc-dialog,
:is(#d4, html) #settingsMenu,
:is(#d4, html) .menu-panel,
:is(#d4, html) .auth-container,
:is(#d4, html) #skillPanel,
:is(#d4, html) #tradeDialog,
:is(#d4, html) .map-interface-container,
:is(#d4, html) .deletion-dialog,
:is(#d4, html) .abandon-quest-dialog,
:is(#d4, html) #creditsPanel {
    background: var(--d4-rivets), var(--rk-panel) !important;
    border: 1px solid #6d7279 !important;
    border-radius: 4px !important;
    box-shadow: var(--d4-frame) !important;
    color: var(--rk-text) !important;
}

/* ---- the bar across the top of a panel: darker steel, a thread of blood red under it */
:is(#d4, html) #inventoryPanel .inventory-header,
:is(#d4, html) .details-header,
:is(#d4, html) .quest-log-header,
:is(#d4, html) .npc-dialog .dialog-header,
:is(#d4, html) .map-interface-header,
:is(#d4, html) .deletion-header,
:is(#d4, html) .chat-header {
    background: var(--rk-grain), linear-gradient(180deg, #30333a 0%, #16181b 100%) !important;
    border-bottom: 1px solid #5f646c !important;
    border-radius: 3px 3px 0 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 1px 0 #000, 0 2px 0 rgba(163, 34, 26, 0.6) !important;
}
:is(#d4, html) #inventoryPanel .inventory-header h3,
:is(#d4, html) .details-header h2,
:is(#d4, html) .quest-log-header h3,
:is(#d4, html) .npc-dialog .npc-dialog-name,
:is(#d4, html) .map-interface-header h2,
:is(#d4, html) .map-interface-header h3,
:is(#d4, html) .deletion-header h3,
:is(#d4, html) .chat-title,
:is(#d4, html) #settingsMenu h2,
:is(#d4, html) .menu-panel h2,
:is(#d4, html) .auth-container h2,
:is(#d4, html) #skillPanel h2,
:is(#d4, html) #skillPanel h3,
:is(#d4, html) #tradeDialog h2,
:is(#d4, html) #tradeDialog h3,
:is(#d4, html) #creditsPanel h2,
:is(#d4, html) .character-selection-title {
    font-family: var(--rk-serif) !important;
    color: var(--d4-bone) !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000, 0 0 14px rgba(217, 84, 30, 0.35) !important;
}
:is(#d4, html) #creditsPanel h3 {
    color: var(--d4-bronze) !important;
    font-family: var(--rk-serif);
    letter-spacing: 0.08em;
}

/* ---- the round close buttons: a dark red stud */
:is(#d4, html) #inventoryPanel .close-btn,
:is(#d4, html) .npc-dialog .dialog-close,
:is(#d4, html) .close-btn,
:is(#d4, html) .dialog-close {
    background: radial-gradient(circle at 35% 30%, #8e231b, #2a0806) !important;
    border: 1px solid #6d7279 !important;
    color: #f0dccb !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

/* ---- buttons: struck plates, bone lettering; ember light when the mouse is over one */
:is(#d4, html) .menu-button,
:is(#d4, html) .auth-button,
:is(#d4, html) .details-button,
:is(#d4, html) .confirm-btn,
:is(#d4, html) .cancel-btn,
:is(#d4, html) .sell-button,
:is(#d4, html) .sell-all-button,
:is(#d4, html) .crafting-button,
:is(#d4, html) .deletion-btn,
:is(#d4, html) .logout-button,
:is(#d4, html) .quest-abandon-button,
:is(#d4, html) #settingsMenu button,
:is(#d4, html) #creditsPanel button,
:is(#d4, html) #creditsButton {
    background: var(--rk-grain), var(--d4-plate) !important;
    border: 1px solid #6d7279 !important;
    border-radius: 3px !important;
    color: var(--d4-bone) !important;
    font-family: var(--rk-serif) !important;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 0 #000 !important;
    box-shadow: 0 0 0 2px var(--d4-black), inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 -3px 8px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.6) !important;
    transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, filter 0.15s;
}
:is(#d4, html) .menu-button:hover,
:is(#d4, html) .auth-button:hover,
:is(#d4, html) .details-button:hover,
:is(#d4, html) .confirm-btn:hover,
:is(#d4, html) .cancel-btn:hover,
:is(#d4, html) .sell-button:hover,
:is(#d4, html) .sell-all-button:hover,
:is(#d4, html) .crafting-button:hover,
:is(#d4, html) .deletion-btn:hover,
:is(#d4, html) .logout-button:hover,
:is(#d4, html) .quest-abandon-button:hover,
:is(#d4, html) #settingsMenu button:hover,
:is(#d4, html) #creditsPanel button:hover,
:is(#d4, html) #creditsButton:hover {
    border-color: var(--d4-bronze) !important;
    color: #fff3dc !important;
    filter: brightness(1.12);
    box-shadow: 0 0 0 2px var(--d4-black), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -3px 8px rgba(0, 0, 0, 0.6), 0 0 16px rgba(217, 84, 30, 0.45) !important;
}
/* Buttons that take something away keep a red plate */
:is(#d4, html) .cancel-btn,
:is(#d4, html) .quest-abandon-button,
:is(#d4, html) .logout-button,
:is(#d4, html) .deletion-btn.confirm {
    background: var(--rk-grain), linear-gradient(180deg, #5a1a15 0%, #2a0b09 100%) !important;
}

/* ---- settings: labels in bone, sliders of steel with a bronze knob */
:is(#d4, html) #settingsMenu label,
:is(#d4, html) #settingsMenu .setting-item,
:is(#d4, html) .auth-container label,
:is(#d4, html) .form-group label {
    color: var(--rk-text) !important;
    font-family: var(--rk-serif);
    letter-spacing: 0.04em;
}
:is(#d4, html) #settingsMenu span,
:is(#d4, html) #settingsMenu .setting-item span {
    color: var(--d4-bronze) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--d4-steel-dim) !important;
}
:is(#d4, html) #settingsMenu select,
:is(#d4, html) .auth-container input[type='text'],
:is(#d4, html) .auth-container input[type='password'],
:is(#d4, html) .auth-container input[type='email'],
:is(#d4, html) .chat-input {
    background: #0b0c0e !important;
    border: 1px solid var(--d4-steel-dim) !important;
    border-radius: 2px !important;
    color: var(--rk-text) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}
:is(#d4, html) .auth-container input:focus,
:is(#d4, html) .chat-input:focus,
:is(#d4, html) #settingsMenu select:focus {
    border-color: var(--d4-bronze) !important;
    outline: none !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(217, 84, 30, 0.3) !important;
}
:is(#d4, html) #settingsMenu input[type='range'],
:is(#d4, html) .transparency-slider {
    accent-color: var(--d4-bronze);
}
:is(#d4, html) #settingsMenu input[type='range']::-webkit-slider-thumb,
:is(#d4, html) .transparency-slider::-webkit-slider-thumb {
    background: radial-gradient(circle at 35% 30%, #e6d6ad, #7b6a45) !important;
    border: 1px solid #1a1a1a !important;
    box-shadow: 0 0 6px rgba(217, 84, 30, 0.5) !important;
}
:is(#d4, html) #settingsMenu input[type='checkbox'],
:is(#d4, html) .auth-container input[type='checkbox'] {
    accent-color: var(--d4-blood);
}
:is(#d4, html) .link-button,
:is(#d4, html) .auth-links a {
    color: var(--d4-bronze) !important;
}
:is(#d4, html) #creditsPanel a {
    color: #b7c3d4 !important;
}

/* ---- tabs: a lit one is a raised plate with a bronze edge */
:is(#d4, html) .skill-tab,
:is(#d4, html) .trade-tab {
    background: linear-gradient(180deg, #1e2024 0%, #111215 100%) !important;
    border: 1px solid var(--d4-steel-dim) !important;
    border-radius: 3px 3px 0 0 !important;
    color: var(--rk-muted) !important;
    font-family: var(--rk-serif) !important;
    letter-spacing: 0.1em;
}
:is(#d4, html) .skill-tab.active,
:is(#d4, html) .trade-tab.active,
:is(#d4, html) .skill-tab:hover,
:is(#d4, html) .trade-tab:hover {
    background: var(--d4-plate) !important;
    border-color: var(--d4-bronze) !important;
    color: #fff3dc !important;
    box-shadow: inset 0 2px 0 var(--d4-blood), 0 0 12px rgba(217, 84, 30, 0.25) !important;
}

/* ---- small windows: menus on a right click, notices, what the mouse is over */
:is(#d4, html) .npc-context-menu,
:is(#d4, html) .player-context-menu,
:is(#d4, html) .notification,
:is(#d4, html) .tooltip,
:is(#d4, html) .stat-tooltip,
:is(#d4, html) .enemy-hover-content {
    background: var(--rk-panel) !important;
    border: 1px solid #6d7279 !important;
    border-radius: 3px !important;
    color: var(--rk-text) !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}
:is(#d4, html) .npc-menu-item,
:is(#d4, html) .player-menu-item {
    color: var(--rk-text) !important;
    font-family: var(--rk-serif);
}
:is(#d4, html) .npc-menu-item:hover,
:is(#d4, html) .player-menu-item:hover {
    background: linear-gradient(90deg, rgba(163, 34, 26, 0.55), rgba(163, 34, 26, 0)) !important;
    color: #fff3dc !important;
}
:is(#d4, html) .item-tooltip,
:is(#d4, html) .comparison-tooltip {
    border-radius: 3px !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 0 0 3px #3b3e44, 0 12px 34px rgba(0, 0, 0, 0.85) !important;
}

/* ---- chat: the same iron, quieter */
:is(#d4, html) #chatWindow {
    border: 1px solid #5f646c !important;
    border-radius: 4px !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

/* ---- the title on the login page: forged letters lit from the fire below, no neon box */
:is(#d4, html) #gameTitle {
    color: #c9b48a !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 1px 0 #f3e3bd, 0 2px 0 #6e5a34, 0 4px 0 #2a2114, 0 6px 14px #000, 0 0 46px rgba(217, 84, 30, 0.55) !important;
}
:is(#d4, html) .auth-form,
:is(#d4, html) .auth-container .auth-form {
    border-color: var(--d4-steel-dim) !important;
    border-radius: 3px !important;
    background: rgba(0, 0, 0, 0.25) !important;
}

/* ---- character choice: slots of iron */
:is(#d4, html) .character-slot,
:is(#d4, html) .save-slot {
    background: var(--rk-grain), linear-gradient(180deg, #24272c 0%, #101114 100%) !important;
    border: 1px solid #5f646c !important;
    border-radius: 4px !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(0, 0, 0, 0.6) !important;
}
:is(#d4, html) .character-slot:hover,
:is(#d4, html) .save-slot:hover {
    border-color: var(--d4-bronze) !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 0 22px rgba(217, 84, 30, 0.45), inset 0 0 40px rgba(0, 0, 0, 0.6) !important;
}
:is(#d4, html) .character-name {
    color: var(--d4-bone) !important;
    font-family: var(--rk-serif) !important;
}

/* ---- inside the panels: sunk iron trays, sockets for the items (the item's own rarity colour stays) */
:is(#d4, html) #inventoryPanel .inventory-grid-container,
:is(#d4, html) #playerDetailsPanel .details-category,
:is(#d4, html) #playerDetailsPanel .details-frame,
:is(#d4, html) .quest-log .quest-item-log,
:is(#d4, html) .npc-dialog .dialog-message,
:is(#d4, html) .npc-dialog .sell-items-grid,
:is(#d4, html) .npc-dialog .sell-total,
:is(#d4, html) #inventoryPanel .money-display {
    border-color: #3d4147 !important;
    border-radius: 3px !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
:is(#d4, html) #inventoryPanel .inventory-slot,
:is(#d4, html) .npc-dialog .trade-item-slot,
:is(#d4, html) .equipment-slot,
:is(#d4, html) .belt-slot,
:is(#d4, html) .ring-slot {
    border-radius: 3px;
}
:is(#d4, html) #inventoryPanel .inventory-slot:not(:hover):not(.drag-over),
:is(#d4, html) .npc-dialog .trade-item-slot:not(:hover) {
    border-color: #3d4147;
    background-color: rgba(7, 8, 10, 0.94);
}
:is(#d4, html) #inventoryPanel .inventory-slot:hover,
:is(#d4, html) .npc-dialog .trade-item-slot.filled:hover,
:is(#d4, html) .equipment-slot:hover {
    border-color: var(--d4-bronze);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 12px rgba(217, 84, 30, 0.45);
}
:is(#d4, html) .npc-dialog .dialog-option,
:is(#d4, html) #npcActionBar .npc-action {
    background: var(--rk-grain), var(--d4-plate) !important;
    border: 1px solid #5f646c !important;
    border-radius: 3px !important;
    color: var(--d4-bone) !important;
}
:is(#d4, html) .npc-dialog .dialog-option:hover,
:is(#d4, html) #npcActionBar .npc-action:hover,
:is(#d4, html) #npcActionBar .npc-action.active {
    border-color: var(--d4-bronze) !important;
    color: #fff3dc !important;
    box-shadow: inset 0 2px 0 var(--d4-blood), 0 0 12px rgba(217, 84, 30, 0.3) !important;
}
:is(#d4, html) #npcActionBar {
    border-bottom-color: #3d4147;
}
:is(#d4, html) .npc-dialog .npc-portrait {
    border-color: #6d7279 !important;
    border-radius: 3px !important;
    box-shadow: 0 0 0 2px var(--d4-black), inset 0 0 18px rgba(0, 0, 0, 0.8) !important;
}

/* ---- quest tracker and progress bars: a red thread down the side, blood filling the bar */
:is(#d4, html) .active-quest-tracker {
    background: linear-gradient(90deg, rgba(9, 10, 12, 0.85), rgba(9, 10, 12, 0.3)) !important;
    border-left: 3px solid var(--d4-blood) !important;
    border-radius: 0 3px 3px 0 !important;
}
:is(#d4, html) .quest-progress-bar {
    background: #07080a !important;
    border: 1px solid #3d4147 !important;
    border-radius: 2px !important;
}
:is(#d4, html) .quest-progress-fill {
    background: linear-gradient(180deg, #c2392c 0%, #6e120d 100%) !important;
    border-radius: 1px !important;
}

/* ---- the bar along the bottom: an iron bracket between the two orbs */
:root:not(.is-mobile):is(#d4, html) #hudBarFrame {
    background: var(--rk-grain), linear-gradient(180deg, rgba(40, 43, 48, 0.96) 0%, rgba(10, 11, 13, 0.98) 100%);
    border: 1px solid #6d7279;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 0 2px var(--d4-black), 0 0 0 3px #3b3e44, 0 -8px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.65);
}
:is(#d4, html) .orb {
    border: 3px solid #71767e;
    box-shadow: 0 0 0 3px var(--d4-black), 0 0 0 4px #3b3e44, 0 0 0 6px var(--d4-black), 0 8px 22px rgba(0, 0, 0, 0.85), inset 0 0 22px rgba(0, 0, 0, 0.95);
}
:is(#d4, html) .hotbar-slot {
    background: radial-gradient(circle at 50% 35%, rgba(44, 47, 53, 0.95) 0%, rgba(6, 7, 9, 0.98) 80%);
    border: 1px solid #5f646c;
    border-radius: 3px;
}
:is(#d4, html) .hotbar-slot:hover,
:is(#d4, html) .hotbar-slot.active {
    border-color: var(--d4-bronze);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 14px rgba(217, 84, 30, 0.5);
}
:is(#d4, html) .potion-slot {
    border-radius: 3px;
    border-color: #7c2a26;
}
:root:not(.is-mobile):is(#d4, html) .inventory-button,
:root:not(.is-mobile):is(#d4, html) .town-portal-button {
    border-color: #71767e;
    box-shadow: 0 0 0 2px var(--d4-black), 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(0, 0, 0, 0.8);
}
:root:not(.is-mobile):is(#d4, html) .xp-bar {
    border: 1px solid #4a4e55;
    border-radius: 2px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ---- round buttons in the corner and the minimap: steel rims */
:is(#d4, html) #settingsGearBtn,
:is(#d4, html) #musicControlBtn {
    background: radial-gradient(circle at 40% 30%, #33363c, #0d0e10) !important;
    border: 2px solid #71767e !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
:is(#d4, html) #settingsGearBtn:hover,
:is(#d4, html) #musicControlBtn:hover {
    border-color: var(--d4-bronze) !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 0 16px rgba(217, 84, 30, 0.5) !important;
}
:is(#d4, html) #minimap canvas {
    box-shadow: 0 0 0 2px var(--d4-black), 0 0 0 5px #4a4e55, 0 0 0 6px #8d939b, 0 0 0 8px var(--d4-black), 0 6px 18px rgba(0, 0, 0, 0.8) !important;
}
:is(#d4, html) #minimap > div[style*='border-radius'] {
    background: radial-gradient(circle at 40% 30%, #33363c, #0d0e10) !important;
    border-color: #8d939b !important;
    color: var(--d4-bone) !important;
}
:is(#d4, html) #minimap > div:last-child {
    color: var(--d4-bone) !important;
    font-family: var(--rk-serif) !important;
    letter-spacing: 0.08em;
}

/* ---- quest log: the page is the iron itself; the fold button is a plate */
:is(#d4, html) .quest-log-content {
    background: transparent !important;
    border-radius: 0 0 3px 3px !important;
}
:is(#d4, html) .quest-log-content::before,
:is(#d4, html) .quest-log-content::after {
    display: none !important;
}
:is(#d4, html) .no-active-quests,
:is(#d4, html) .no-active-quests p {
    color: var(--rk-muted) !important;
    font-family: var(--rk-serif);
}
:is(#d4, html) .quest-log .quest-item-log {
    border-color: #3d4147 !important;
    border-left: 3px solid var(--d4-blood) !important;
    border-radius: 3px !important;
}
:is(#d4, html) .quest-log .quest-rewards {
    color: var(--d4-bronze) !important;
}
:is(#d4, html) .quest-log-toggle {
    background: var(--d4-plate) !important;
    border: 1px solid #6d7279 !important;
    border-radius: 3px !important;
    color: var(--d4-bone) !important;
    box-shadow: 0 0 0 2px var(--d4-black), inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
}
:is(#d4, html) .quest-log-toggle:hover {
    border-color: var(--d4-bronze) !important;
    box-shadow: 0 0 0 2px var(--d4-black), 0 0 14px rgba(217, 84, 30, 0.45) !important;
}
:is(#d4, html) #chatWindow {
    background: linear-gradient(180deg, rgba(22, 24, 27, 0.9) 0%, rgba(9, 10, 12, 0.92) 100%);
}

/* ---- skills: the same iron inside the frame, sockets for the skills */
:is(#d4, html) #skillPanel .inventory-frame {
    background: transparent !important;
    border: none !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}
:is(#d4, html) #skillPanel .inventory-header {
    background: var(--rk-grain), linear-gradient(180deg, #30333a 0%, #16181b 100%) !important;
    border: none !important;
    border-bottom: 1px solid #5f646c !important;
    border-radius: 3px 3px 0 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 1px 0 #000, 0 2px 0 rgba(163, 34, 26, 0.6) !important;
}
:is(#d4, html) #skillPanel .inventory-title {
    font-family: var(--rk-serif) !important;
    color: var(--d4-bone) !important;
    letter-spacing: 0.2em;
    text-shadow: 0 1px 0 #000, 0 0 14px rgba(217, 84, 30, 0.35) !important;
}
:is(#d4, html) #skillPanel .inventory-content {
    background: transparent !important;
}
:is(#d4, html) #skillPanel .skill-tabs {
    border-bottom-color: #3d4147 !important;
}
:is(#d4, html) #skillPanel .skill-instructions {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid #3d4147 !important;
    border-radius: 3px !important;
    color: var(--rk-muted) !important;
    font-family: var(--rk-serif);
}
:is(#d4, html) .skill-slot {
    border-radius: 3px !important;
}
:is(#d4, html) .skill-slot:not(.trained):not(:hover) {
    border-color: #3d4147 !important;
}
:is(#d4, html) .skill-slot:hover,
:is(#d4, html) .skill-slot.trained {
    border-color: var(--d4-bronze) !important;
    box-shadow: 0 0 12px rgba(217, 84, 30, 0.4) !important;
}

/* ---- character choice and account line: bone and bronze in place of yellow */
:is(#d4, html) .slot-number {
    color: var(--d4-bronze) !important;
    font-family: var(--rk-serif) !important;
}
:is(#d4, html) .create-character-text {
    color: var(--d4-bronze) !important;
}
:is(#d4, html) .empty-slot-text {
    color: var(--rk-muted) !important;
    font-family: var(--rk-serif) !important;
}
:is(#d4, html) .user-info,
:is(#d4, html) .user-info span {
    color: var(--d4-bone) !important;
    font-family: var(--rk-serif);
}
:is(#d4, html) .character-class,
:is(#d4, html) .character-level {
    color: var(--rk-muted) !important;
}
:is(#d4, html) .map-interface-instructions,
:is(#d4, html) .map-interface-instructions p {
    color: var(--rk-muted) !important;
    font-family: var(--rk-serif);
}

/* ---- quest offers in the NPC window: bone headings in place of yellow */
:is(#d4, html) .npc-dialog .dialog-content h2,
:is(#d4, html) .npc-dialog .dialog-content h3,
:is(#d4, html) .npc-dialog .dialog-content h4 {
    color: var(--rk-gold) !important;
    font-family: var(--rk-serif);
    letter-spacing: 0.04em;
}
