/* =====================================================================
   ARCANE — post-landing reskin for Valyria (www)
   Ports the "Arcane" visual language + pointer/UX effects from www1
   onto the EXISTING 3-column layout of www. Loads LAST so it wins the
   cascade. The marketing landing (landing.php / landing.css) is NOT
   affected — this file is only linked from layout/overall/header.php.

   Strategy:
     §1  Re-map www's :root design tokens to the Arcane palette
         (most of style.css / library.css read these vars, so this
          single block re-skins the bulk of the site).
     §2  Page base — Inter typography + layered violet background.
     §3  Targeted overrides for hard-coded gold/red surfaces that the
         variables don't reach (header, sidebar frames, footer, hero).
     §4  Effect chrome + pointer/background FX (scroll progress, back to
         top, command palette, ember particles, spotlight, brush trail).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------------
   §1  PALETTE TOKENS — remap every gold/red token to the Arcane palette
   --------------------------------------------------------------------- */
:root {
    /* backgrounds — near-black violet */
    --bg-primary:    #160d0f;
    --bg-secondary:  #1c1012;
    --bg-dark:       #0c0708;
    --bg-color:      #0c0708;
    --bg-surface:    #160d0f;
    --bg-elevated:   #1c1012;
    --bg-highlight:  rgba(183,139,81,0.10);

    /* "gold" accent slots now hold the magenta family */
    --gold-primary:  #d7b383;
    --gold-light:    #e4be8b;
    --gold-dark:     #b78b51;
    --gold-border:   rgba(183,139,81,0.40);

    --primary-color:    #b78b51;
    --primary-hover:    #d7b383;
    --secondary-color:  #977343;
    --secondary-hover:  #b78b51;
    --accent-color:     #b78b51;

    /* "paper" stone surfaces -> violet panels */
    --paper-bg:      #1c1012;
    --paper-shadow:  #0c0708;
    --paper-border:  rgba(255,255,255,0.08);

    /* "red" accent -> magenta-red */
    --red-dark:   #866437;
    --red-bright: #b78b51;
    --red-glow:   rgba(183,139,81,0.40);

    /* text — cool ink on violet */
    --text-primary:   #cdcdcd;
    --text-secondary: #cdcdcd;
    --text-inverse:   #cdcdcd;
    --text-muted:     #cdcdcd;

    --success: #5a9e72;
    --warning: #d9a44e;
    --error:   #b78b51;
    --info:    #977343;

    --border-thin:  rgba(255,255,255,0.08);
    --border-thick: rgba(183,139,81,0.32);
    --border-gold:  rgba(183,139,81,0.40);
    --border-color: rgba(255,255,255,0.08);

    --shadow-gold:  0 0 18px rgba(183,139,81,0.25);

    --gradient-primary:   linear-gradient(180deg, #d7b383, #b78b51);
    --gradient-secondary: linear-gradient(180deg, #b78b51, #866437);
    --gradient-accent:    linear-gradient(135deg, #d7b383, #b78b51);
    --gradient-dark:      linear-gradient(135deg, #1c1012, #0c0708);
    --gradient-gold:      linear-gradient(180deg, #e4be8b, #b78b51, #866437);

    --border:       var(--gold-dark);
    --anchor:       #d7b383;
    --anchor-hover: #e4be8b;
    --third:        #38202a;

    /* typography -> Inter + JetBrains Mono */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-ui:      'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

    /* rv-* aliases used by newer pages */
    --vy-bg:          #0c0708;
    --vy-bg-2:        #160d0f;
    --vy-bg-3:        #1c1012;
    --vy-bg-card:     #170c0f;
    --vy-bg-header:   #0a0607;
    --vy-red:         #866437;
    --vy-red-2:       #b78b51;
    --vy-red-3:       #d7b383;
    --vy-gold:        #866437;
    --vy-gold-2:      #b78b51;
    --vy-gold-3:      #d7b383;
    --vy-text:        #cdcdcd;
    --vy-text-2:      #cdcdcd;
    --vy-text-3:      #cdcdcd;
    --vy-border:      rgba(255,255,255,0.08);
    --vy-border-2:    rgba(183,139,81,0.28);
    --vy-border-gold: rgba(183,139,81,0.40);
    --vy-font-display:'Inter', system-ui, sans-serif;
    --vy-font-heading:'Inter', system-ui, sans-serif;
    --vy-font-body:   'Inter', system-ui, sans-serif;
    --vy-font-ui:     'Inter', system-ui, sans-serif;
    --vy-font-mono:   'JetBrains Mono', ui-monospace, monospace;
}

/* ---------------------------------------------------------------------
   §2  PAGE BASE — Inter typography + layered violet background
   --------------------------------------------------------------------- */

/* the legacy stylesheet sets a serif on the universal selector; re-point
   bare elements to Inter (class-based mono rules keep higher specificity) */
body, body * { font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif; }

body {
    background-color: #0c0708 !important;
    background:
        radial-gradient(1000px 620px at 50% -8%, rgba(183,139,81,0.12), transparent 60%),
        radial-gradient(900px 560px at 50% 116%, rgba(183,139,81,0.08), transparent 62%),
        linear-gradient(180deg, #0d0809 0%, #0a0608 45%, #0c080a 72%, #0a0607 100%) !important;
    background-size: cover, cover, cover !important;
    background-position: center top, center top, center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    color: var(--text-primary);
    letter-spacing: -0.011em;
}
@media (max-width: 768px) { body { background-attachment: scroll !important; } }

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }
h1, h2, h3, h4, h5, h6 { color: #cdcdcd; }

a { color: #d7b383; }
a:hover { color: #e4be8b; }

::selection { background: rgba(183,139,81,0.38); color: #dbbc94; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #0a0607; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(#866437, #513c21);
    border-radius: 8px; border: 3px solid #0a0607;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#b78b51, #5c4425); }
:focus-visible { outline: 2px solid rgba(183,139,81,0.6); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   §3  TARGETED OVERRIDES — hard-coded gold/red surfaces
   --------------------------------------------------------------------- */

/* — sticky navbar — */
.main-header {
    background: rgba(12,10,16,0.88) !important;
    border-bottom: 1px solid rgba(183,139,81,0.22) !important;
    box-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 1px 0 rgba(183,139,81,0.15) !important;
}
.main-header.is-scrolled {
    background: rgba(12,10,16,0.95) !important;
    border-bottom-color: rgba(183,139,81,0.42) !important;
}
.site-logo, .vly-nav-logo-link {
    filter: drop-shadow(0 0 14px rgba(183,139,81,0.45)) !important;
}

/* header: drop the right actions column; align the remaining items to the
   page container width and center that band (so the header lines up with
   the body columns below) */
.header-actions { display: none !important; }
.main-header .header-content {
    max-width: var(--container-width) !important;
    margin: 0 auto !important;
}
/* logo (+login) sit at the left, server status at the right of the centered band */
.main-header .server-status-bar { margin-left: auto !important; }

/* header inline login + action chips: gold borders -> magenta */
.header-field {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(183,139,81,0.30) !important;
    color: #cdcdcd !important;
}
.header-field:focus {
    border-color: rgba(183,139,81,0.65) !important;
    background: rgba(255,255,255,0.05) !important;
    box-shadow: 0 0 0 2px rgba(183,139,81,0.22) !important;
}
.header-login-btn {
    background: linear-gradient(180deg, #b78b51 0%, #97703c 60%, #866437 100%) !important;
    color: #ffffff !important;
}
.header-lost-link:hover { color: #e4be8b !important; }

/* captcha panel below the header login form; opened by header.php on focus or a blocked submit */
.header-login-area { position: relative; }
.header-captcha-pop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1200;
    padding: 10px;
    background: #140b0d;
    border: 1px solid rgba(183,139,81,.35);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(0,0,0,.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
}
.header-login-area.captcha-open .header-captcha-pop {
    opacity: 1;
    visibility: visible;
}
.header-captcha-hint {
    display: none;
    margin: 0 0 8px;
    font-size: 12px;
    color: #e4be8b;
}
.header-login-area.captcha-needed .header-captcha-hint { display: block; }
.header-login-area.captcha-needed .header-captcha-pop { border-color: rgba(183,139,81,.8); }
.header-action-link {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(183,139,81,0.25) !important;
}
.header-action-link:hover {
    background: rgba(183,139,81,0.14) !important;
    border-color: rgba(183,139,81,0.55) !important;
    color: #fff !important;
}
.header-action-link.discord i { color: #d7b383 !important; }

/* server status bar */
.server-status-bar {
    background: rgba(28,16,18,0.6) !important;
    border: 1px solid rgba(183,139,81,0.30) !important;
}
.status-icon { color: #d7b383 !important; }
.status-divider { background: rgba(183,139,81,0.35) !important; }
.server-status-bar .status-item:first-child .status-label { color: #7bbd92 !important; }
.server-status-bar .status-item--launch .status-value { color: #e4be8b !important; }
.server-status-bar .status-item--launch .status-label { color: #d7b383 !important; }

/* burger */
.vly-burger span { background: #cdcdcd !important; }

/* countdown strip under the nav */
.main-header .countdown-container { border-top: 1px solid rgba(183,139,81,0.18) !important; }
.main-header #countDownTimer {
    color: #e4be8b !important;
    background: rgba(10,8,13,0.7) !important;
}

/* — hero banner — the art is already crimson, just dim it so the logo reads — */
.vly-hero-bg {
    filter: brightness(0.78) !important;
}
.vly-hero-logo-wrap { filter: drop-shadow(0 0 18px rgba(183,139,81,0.40)); }

/* — content column + sidebars — */
.container_mid,
.container_left,
.container_right {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.container_mid::before,
.container_left::before,
.container_right::before { display: none !important; }
.container_left::before {
    background: linear-gradient(90deg, rgba(183,139,81,0.85) 0%, rgba(183,139,81,0.40) 55%, transparent 100%) !important;
    box-shadow: 0 2px 10px rgba(183,139,81,0.20) !important;
}
.container_right::before {
    background: linear-gradient(90deg, transparent 0%, rgba(183,139,81,0.40) 45%, rgba(183,139,81,0.85) 100%) !important;
    box-shadow: 0 2px 10px rgba(183,139,81,0.20) !important;
}

/* de-box the sidebar widgets: drop the PNG frames -> clean crimson-tinted panels */
.left_box .box-header,
.right_box .box-header,
.box-header {
    background-image: none !important;
    background: linear-gradient(180deg, rgba(183,139,81,0.18), rgba(183,139,81,0.06)), linear-gradient(180deg, #24121580, #1c1012) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    margin-bottom: 0 !important;
    border: 1px solid rgba(183,139,81,0.22) !important;
    border-bottom: 1px solid rgba(183,139,81,0.38) !important;
    border-radius: 12px 12px 0 0 !important;
    text-shadow: none !important;
}
.box-content {
    background-image: none !important;
    background: linear-gradient(180deg, rgba(183,139,81,0.06), rgba(183,139,81,0.02)), rgba(31,27,21,0.78) !important;
    border: 1px solid rgba(183,139,81,0.16) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    margin-top: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 8px !important;
}
.box-content::after { display: none !important; }   /* drop bottom.png cap */
.left_box { margin-bottom: 12px !important; }
.box-header h3 { color: #f2c44d !important; text-shadow: none !important; }
.box-header i, .box-header .toggle-arrow { color: #d7b383 !important; text-shadow: none !important; }

/* the inline gold SVG glyphs in the box headers */
.box-header svg [stroke="#c9a227"] { stroke: #d7b383 !important; }
.box-header svg [fill="#c9a227"]   { fill: #d7b383 !important; }

/* the inline brown divider strips between boxes */
.container_left div[style*="rgba(45,26,26"] {
    background: linear-gradient(90deg, rgba(183,139,81,0.45), rgba(183,139,81,0.15), transparent) !important;
}

/* sidebar nav links */
.nav-menu a:hover, .nav-menu a.active {
    background: rgba(183,139,81,0.12) !important;
    color: #cdcdcd !important;
}
.nav-menu i { color: #d7b383 !important; }

/* right sidebar wells */
.container_right .well:not(.loginContainer) .header {
    background-image: none !important;
    background: linear-gradient(180deg, rgba(183,139,81,0.16), rgba(183,139,81,0.05)), linear-gradient(180deg, #211c15, #1c1012) !important;
    border-bottom: 1px solid rgba(183,139,81,0.32) !important;
}

/* — site footer — */
.vly-site-footer {
    background: linear-gradient(180deg, #160d0f, #0c0708) !important;
    border-top: 1px solid rgba(183,139,81,0.22) !important;
}
.vly-footer-logo { filter: drop-shadow(0 0 8px rgba(183,139,81,0.30)) !important; }
.vly-footer-tagline, .vly-footer-copy, .vly-footer-disclaimer { color: #cdcdcd !important; }
.vly-footer-col h4 {
    color: #f2c44d !important;
    border-bottom: 1px solid rgba(183,139,81,0.22) !important;
}
.vly-footer-col a { color: #cdcdcd !important; }
.vly-footer-col a:hover { color: #d7b383 !important; }
.vly-footer-bottom { border-top: 1px solid rgba(183,139,81,0.22) !important; }
.vly-footer-creator a { color: rgba(197,155,101,0.55) !important; }
.vly-footer-creator a:hover { color: rgba(197,155,101,0.95) !important; text-shadow: 0 0 12px rgba(183,139,81,0.35) !important; }

/* — content form controls — */
.container_mid select,
.container_mid input[type=text],
.container_mid input[type=password],
.container_mid input[type=email],
.container_mid input[type=number],
.container_mid input[type=search],
.container_mid textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    color: #cdcdcd;
    border-radius: 8px;
}
.container_mid select:focus,
.container_mid input:focus,
.container_mid textarea:focus {
    outline: none;
    border-color: rgba(183,139,81,0.55);
    box-shadow: 0 0 0 2px rgba(183,139,81,0.25);
}

/* faint hard-coded gold tints in the library design system */
.lib-count-badge { background: rgba(183,139,81,0.12) !important; }
.lib-tab:hover { border-color: rgba(183,139,81,0.25) !important; }
.lib-tab.active, .lib-tab[aria-current="page"] { background: rgba(183,139,81,0.10) !important; }
.lib-table tbody tr:hover { background: rgba(183,139,81,0.08) !important; }

/* — right-sidebar widgets carry their gold styling inline; override (!important
     needed because the inline <style> blocks come later in source order) — */

/* Download Client button -> magenta */
.download-button {
    background: linear-gradient(160deg, #b78b51 0%, #866437 55%, #b78b51 100%) !important;
    border: 1px solid rgba(183,139,81,0.55) !important;
    border-bottom: 3px solid #4c381e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.7), 0 0 18px rgba(183,139,81,0.18) !important;
}
.download-button:hover {
    background: linear-gradient(160deg, #c2955a 0%, #97703c 55%, #c2955a 100%) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.75), 0 0 28px rgba(183,139,81,0.32) !important;
    color: #fff !important;
}

/* generic widget shell + titles */
.vly-widget {
    border: 1px solid rgba(183,139,81,0.16) !important;
    border-top: 2px solid rgba(183,139,81,0.45) !important;
    background: linear-gradient(180deg, rgba(183,139,81,0.07), rgba(183,139,81,0.02)), linear-gradient(160deg, #211c15 0%, #140b0c 100%) !important;
}
.vly-widget-head { border-bottom: 1px solid rgba(183,139,81,0.22) !important; }
.vly-widget-title { color: #f2c44d !important; }
.vly-widget-btn {
    background: linear-gradient(135deg, rgba(183,139,81,0.28), rgba(183,139,81,0.1)) !important;
    border: 1px solid rgba(183,139,81,0.4) !important;
    color: #cdcdcd !important;
}
.vly-widget-btn:hover {
    background: rgba(183,139,81,0.38) !important;
    border-color: rgba(183,139,81,0.65) !important;
    color: #fff !important;
}

/* Top 5 players widget */
.vly-t5-head { border-bottom: 1px solid rgba(183,139,81,0.22) !important; }
.vly-t5-picker-btn {
    border: 1px solid rgba(183,139,81,0.42) !important;
    color: #e4be8b !important;
}
.vly-t5-picker-btn:hover,
.vly-t5-picker.is-open .vly-t5-picker-btn {
    border-color: rgba(183,139,81,0.75) !important;
    box-shadow: 0 0 0 2px rgba(183,139,81,0.12) !important;
}
.vly-t5-picker-globe, .vly-t5-picker-caret { color: rgba(183,139,81,0.6) !important; }
.vly-t5-picker-drop { border: 1px solid rgba(183,139,81,0.35) !important; }
.vly-t5-picker-opt:hover { background: rgba(183,139,81,0.16) !important; color: #e4be8b !important; }
.vly-t5-picker-opt.is-active { color: #d7b383 !important; background: rgba(183,139,81,0.12) !important; }
.vly-t5-row:hover { background: rgba(183,139,81,0.1) !important; }
.vly-t5-bar-fill { background: linear-gradient(90deg, #b78b51, rgba(183,139,81,0.25)) !important; }
.vly-t5-lv { color: rgba(197,155,101,0.75) !important; }

/* =====================================================================
   §4  EFFECT CHROME + POINTER / BACKGROUND FX  (ported from www1)
   ===================================================================== */

/* drifting ember particles (canvas) — behind the UI */
.vy-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* radial spotlight that follows the pointer */
.vy-spotlight {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(460px circle at var(--mx,50%) var(--my,28%), rgba(183,139,81,0.13), rgba(146,114,72,0.05) 40%, transparent 66%);
    transition: opacity 0.5s ease;
}
.vy-spotlight.is-active { opacity: 1; }

/* brush-stroke trail that follows the pointer and fades away */
.vy-trail { position: fixed; inset: 0; z-index: 9998; pointer-events: none; mix-blend-mode: screen; }

/* click ripple */
.vy-ripple {
    position: fixed; z-index: 9997; pointer-events: none; width: 14px; height: 14px; border-radius: 9999px;
    border: 2px solid rgba(222,188,144,0.7); transform: translate(-50%,-50%) scale(0); opacity: 0.9;
    animation: vyRipple 0.6s ease-out forwards;
}
@keyframes vyRipple { to { transform: translate(-50%,-50%) scale(7); opacity: 0; } }

/* scroll progress bar */
.vy-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1001;
    background: linear-gradient(90deg, #977343, #b78b51, #e4be8b);
    box-shadow: 0 0 10px rgba(183,139,81,0.6);
    transition: width 0.08s linear;
}

/* back to top */
.vy-totop {
    position: fixed; right: 18px; bottom: 18px; z-index: 1002;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; cursor: pointer; color: #dbbc94;
    border: 1px solid #5c4425; background: linear-gradient(180deg, #b78b51, #866437);
    box-shadow: 0 8px 26px -6px rgba(183,139,81,0.6);
    opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vy-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.vy-totop:hover { background: #d7b383; box-shadow: 0 12px 34px 0 rgba(183,139,81,0.7); transform: translateY(-2px); }

/* command palette */
.vy-palette-overlay {
    position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center;
    padding: 13vh 16px 16px; background: rgba(8,6,10,0.7);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity 0.18s ease, visibility 0.18s ease;
}
.vy-palette-overlay.is-open { opacity: 1; visibility: visible; }
.vy-palette {
    width: 100%; max-width: 560px; border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(183,139,81,0.3); background: rgba(28,16,18,0.98);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.03);
    transform: translateY(-8px) scale(0.98); transition: transform 0.18s ease;
}
.vy-palette-overlay.is-open .vy-palette { transform: none; }
.vy-palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); color: #cdcdcd; }
.vy-palette-input input { flex: 1; background: transparent; border: 0; outline: 0; color: #cdcdcd; font-size: 15px; font-family: inherit; }
.vy-palette-input input::placeholder { color: #cdcdcd; }
.vy-palette-input kbd { border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; padding: 2px 6px; font-size: 10px; color: #cdcdcd; font-family: 'JetBrains Mono', monospace; }
.vy-palette-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.vy-palette-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; border-left: 2px solid transparent; }
.vy-palette-item.is-sel { background: rgba(183,139,81,0.14); border-left-color: #b78b51; }
.vy-pi-label { color: #cdcdcd; font-size: 14px; font-weight: 500; }
.vy-palette-item.is-sel .vy-pi-label { color: #cdcdcd; }
.vy-pi-group { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #cdcdcd; }
.vy-palette-empty { padding: 26px; text-align: center; color: #cdcdcd; font-size: 14px; }

/* nav search trigger (added to header actions) */
.vy-search-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 3px; cursor: pointer;
    border: 1px solid rgba(183,139,81,0.25); background: rgba(255,255,255,0.03); color: #cdcdcd;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.vy-search-btn:hover { border-color: rgba(183,139,81,0.55); color: #cdcdcd; background: rgba(183,139,81,0.12); }

/* page loader overlay */
.site-page-loader {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8,6,10,0.45);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}
.site-page-loader.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.site-page-loader__spinner {
    width: 34px; height: 34px;
    border: 3px solid rgba(183,139,81,0.25);
    border-top-color: #d7b383;
    border-radius: 999px;
    animation: sitePageLoaderSpin 0.8s linear infinite;
}
@keyframes sitePageLoaderSpin { to { transform: rotate(360deg); } }

/* disable pointer flourishes where they don't belong */
@media (pointer: coarse) { .vy-trail, .vy-spotlight { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
    .vy-trail, .vy-spotlight, .vy-particles, .vy-ripple { display: none !important; }
}

/* =====================================================================
   §5  MODERN UX / UI POLISH  (global, layout-preserving)
   Consistent motion, accessible focus, tactile buttons, refined tables,
   modern inputs, hover-lift cards, reveal-on-scroll. Applies across both
   component systems (lib-* and the per-page .btn/.card/.table styles).
   ===================================================================== */

/* — consistent, calm interaction timing — */
a, button, .btn, [class*="btn-"], [class*="btn--"], .lib-btn, .lib-pg-link, .lib-tab,
input, select, textarea, .card, .box-header, .box-content, .vly-widget,
.lib-table tbody tr, .nav-menu a, .header-action-link, .vy-search-btn {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease,
                box-shadow .22s ease, transform .2s cubic-bezier(.22,1,.36,1), opacity .18s ease;
}

/* — skip-to-content link (keyboard / screen-reader a11y) — */
.vy-skip {
    position: fixed; top: -64px; left: 12px; z-index: 3000;
    padding: 10px 16px; border-radius: 10px;
    background: linear-gradient(180deg, #b78b51, #866437); color: #dbbc94;
    font-weight: 700; font-size: 13px; text-decoration: none;
    box-shadow: 0 8px 26px -6px rgba(183,139,81,.6);
    transition: top .2s ease;
}
.vy-skip:focus { top: 12px; color: #fff; }

/* — accessible focus rings everywhere — */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, [class*="btn-"]:focus-visible, [class*="btn--"]:focus-visible,
.lib-btn:focus-visible, .lib-pg-link:focus-visible {
    outline: 2px solid rgba(197,155,101,.7) !important;
    outline-offset: 2px !important;
    border-radius: 8px;
}

/* — smooth in-page anchoring under the sticky header — */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 84px; }
[id] { scroll-margin-top: 84px; }

/* — tactile press + hover for every button flavour — */
.btn, .btn-primary, .btn-outline, [class*="btn--"], .lib-btn, .lib-pg-link,
.header-login-btn, .download-button, .vly-widget-btn,
button[type="submit"], input[type="submit"], input[type="button"] {
    cursor: pointer;
}
.btn:active, .btn-primary:active, .btn-outline:active, [class*="btn--"]:active,
.lib-btn:active, .header-login-btn:active, .download-button:active,
.vly-widget-btn:active, button[type="submit"]:active, input[type="submit"]:active {
    transform: translateY(1px);
}

/* primary global button -> modern magenta with glow + shine sweep */
.btn-primary {
    background: linear-gradient(180deg, #b78b51 0%, #a17336 55%, #866437 100%) !important;
    border: 1px solid #5c4425 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 0 18px -4px rgba(183,139,81,.5), inset 0 1px 0 rgba(255,255,255,.12) !important;
    position: relative; overflow: hidden;
}
.btn-primary:hover {
    background: linear-gradient(180deg, #c2955a 0%, #97703c 100%) !important; color: #fff !important;
    box-shadow: 0 0 26px 0 rgba(183,139,81,.6), inset 0 1px 0 rgba(255,255,255,.18) !important;
    transform: translateY(-1px);
}
.btn-outline {
    border-radius: 10px !important;
    border: 1px solid rgba(183,139,81,.4) !important;
    color: #cdcdcd !important;
}
.btn-outline:hover {
    background: rgba(183,139,81,.12) !important;
    border-color: rgba(183,139,81,.65) !important;
    color: #fff !important;
}

/* shine sweep on the primary CTAs */
.btn-primary::before, .download-button::before {
    content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
    transform: skewX(-20deg); pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
}
.btn-primary:hover::before, .download-button:hover::before { animation: vyShine .85s ease; }
@keyframes vyShine { from { left: -130%; } to { left: 150%; } }

/* lib-btn -> rounded, gentle lift */
.lib-btn { border-radius: 9px !important; }
.lib-btn:not(.lib-btn-back):hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(183,139,81,.6); }

/* — refined data tables — */
.lib-table { border-collapse: separate !important; border-spacing: 0 !important; }
.lib-table tbody tr { position: relative; }
.lib-table tbody tr:hover {
    background: rgba(183,139,81,.1) !important;
    box-shadow: inset 3px 0 0 0 #b78b51;
}
.lib-table td, .lib-table th { padding: 11px 14px !important; }

/* generic .table system (guilds, myaccount, …) — modern hover */
.table.table-hover tbody tr:hover,
.table-hover tbody tr:hover { background: rgba(183,139,81,.10) !important; }
.table-striped tbody tr:nth-child(odd) { background: rgba(255,255,255,.015) !important; }

/* — pagination pills — */
.lib-pagination { gap: 6px !important; }
.lib-pg-link { border-radius: 9px !important; padding: 5px 11px !important; }
.lib-pg-link:hover { border-color: rgba(183,139,81,.4) !important; }
.lib-pg-link.active { box-shadow: 0 0 0 1px rgba(183,139,81,.45), 0 0 14px -4px rgba(183,139,81,.6) !important; }

/* — modern inputs everywhere (broaden the container_mid rules globally) — */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], input[type="tel"],
input[type="url"], input[type="date"], select, textarea {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.12);
    color: #cdcdcd;
    border-radius: 10px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(183,139,81,.55) !important;
    box-shadow: 0 0 0 3px rgba(183,139,81,.2) !important;
}
::placeholder { color: #cdcdcd; }

/* — hover-lift for cards & panels (subtle glow, no transform conflict) — */
.card:hover, .lib-card:hover {
    border-color: rgba(183,139,81,.32) !important;
    box-shadow: 0 16px 40px -22px rgba(0,0,0,.9), 0 0 22px -10px rgba(183,139,81,.45) !important;
}
.vly-widget, .box-content { will-change: auto; }
.left_box:hover .box-header { border-bottom-color: rgba(183,139,81,.55) !important; }
.left_box:hover .box-header h3 { color: #ffd86a !important; }

/* sidebar nav links: animated left accent + slide */
.nav-menu a { border-left: 2px solid transparent; border-radius: 0 8px 8px 0; }
.nav-menu a:hover, .nav-menu a.active {
    border-left-color: #b78b51 !important;
    padding-left: 18px !important;
}

/* — reveal-on-scroll (class is added by JS, so no-JS keeps content visible) — */
.vy-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.vy-reveal.in { opacity: 1; transform: none; }

/* — cursor-follow glow on panels/cards (var set by JS) — */
.vy-glow { position: relative; }
.vy-glow::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    z-index: 0; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(240px circle at var(--gx,50%) var(--gy,50%), rgba(183,139,81,.16), transparent 60%);
}
.vy-glow:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .vy-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .btn-primary:hover::before, .download-button:hover::before { animation: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* =====================================================================
   §6  TYPOGRAPHY SCALE + LEFT SIDEBAR REDESIGN  (layout-preserving)
   Larger, more readable type throughout, and a cohesive modern nav menu.
   ===================================================================== */

/* — readability: slightly larger body + comfortable rhythm — */
body { font-size: 15.5px; line-height: 1.72; }

/* content text sizes (these read too small in the legacy theme) */
.container_mid { font-size: 15px; }
.container_mid p,
.box-content p,
.news-item p,
.PageBody-module__OAJIWq__content p { font-size: 15px; line-height: 1.75; }

/* heading hierarchy — clear, tight, Inter */
.container_mid h1 { font-size: 1.7rem; }
.container_mid h2 { font-size: 1.4rem; }
.container_mid h3 { font-size: 1.16rem; }
.container_mid h4 { font-size: 1rem; }

/* library page header title — stronger presence */
.lib-page-header { padding: 20px 22px 16px !important; }
.lib-page-header h1 { font-size: 1.3rem !important; letter-spacing: .02em !important; color: #cdcdcd !important; }
.lib-count-badge { font-size: .72rem !important; padding: 3px 11px !important; }

/* data tables — bump cell text from 0.875rem so it's comfortable to scan */
.lib-table th { font-size: .72rem !important; letter-spacing: .12em !important; color: #cdcdcd !important; }
.lib-table td { font-size: .95rem !important; }
.lib-table .lib-td-name a { font-size: .95rem !important; letter-spacing: .01em !important; }
.lib-table .lib-td-stat { font-size: .9rem !important; }

/* generic table system */
.table td, .table th { font-size: .95rem; }

/* form controls a touch larger for usability */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], input[type="tel"],
input[type="url"], select, textarea { font-size: 14.5px; padding: 9px 12px; }
.header-field { font-size: 13px !important; }

/* ---------------------------------------------------------------------
   LEFT SIDEBAR — modern nav menu redesign
   --------------------------------------------------------------------- */

/* hide the now-redundant inline divider strips between the de-boxed panels */
.container_left div[style*="rgba(45,26,26"] { display: none !important; }

/* the gold accent rail above the column -> subtle, or remove for a cleaner head */
.container_left::before {
    height: 2px !important;
    background: linear-gradient(90deg, rgba(183,139,81,.7) 0%, rgba(183,139,81,.18) 60%, transparent 100%) !important;
    box-shadow: none !important;
    margin-bottom: 10px !important;
}

/* each section becomes a clean rounded panel with a mono "eyebrow" header */
.left_box .box-header {
    padding: 12px 14px !important;
    gap: 9px;
    border-radius: 12px 12px 0 0 !important;
}
.left_box .box-header h3 {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: .2em !important;
    text-transform: uppercase !important;
    color: #f2c44d !important;
    text-shadow: none !important;
}
.left_box .box-header svg { width: 15px; height: 15px; }
.left_box .box-header .toggle-arrow {
    color: #cdcdcd !important;
    font-size: 11px !important;
    transition: transform .25s ease, color .2s ease;
}
.left_box .box-header:hover { background: linear-gradient(180deg, #1c1813, #180d10) !important; }
.left_box .box-header:hover .toggle-arrow { color: #d7b383 !important; }

/* menu rows — roomier, icon-aligned, animated left accent + active state */
.nav-menu { padding: 6px !important; }
.nav-menu a {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px !important;
    margin: 1px 0;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #cdcdcd !important;
    border-radius: 9px !important;
    border-left: 2px solid transparent !important;
    letter-spacing: .005em;
}
.nav-menu a:hover {
    background: rgba(183,139,81,.1) !important;
    color: #cdcdcd !important;
    padding-left: 14px !important;
    border-left-color: #b78b51 !important;
}
.nav-menu i {
    width: 20px; text-align: center; flex-shrink: 0;
    font-size: 14px !important;
    color: #cdcdcd !important;
    transition: color .15s ease, transform .15s ease;
}
.nav-menu a:hover i { color: #d7b383 !important; transform: scale(1.08); }

/* "you are here" — current page highlight (class added by footer JS) */
.nav-menu a.is-current {
    background: rgba(183,139,81,.16) !important;
    color: #cdcdcd !important;
    font-weight: 600 !important;
    border-left-color: #d7b383 !important;
    box-shadow: inset 0 0 22px -12px rgba(197,155,101,.8);
}
.nav-menu a.is-current i { color: #e4be8b !important; }

/* the box content panel padding */
.left_box .box-content { padding: 5px 6px 8px !important; }

/* per-world save/clean blocks in the header bar */
.main-header .server-status-bar { height: 40px; padding-top: 0; padding-bottom: 0; }
.server-status-bar .status-item--world { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; line-height: 1; }
.server-status-bar .status-item--world .status-label { font-size: 9px !important; font-weight: 700; letter-spacing: 1.2px; line-height: 1; color: #d7b383 !important; opacity: 1; }
.status-world-times { display: flex; align-items: center; gap: 10px; line-height: 1; }
.status-world-times > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.status-world-times .status-icon { font-size: 11px; }
.status-world-times .status-value { font-variant-numeric: tabular-nums; }

/* per-world list in the mobile status widget */
.world-schedule { margin-top: 10px; border-top: 1px solid rgba(183,139,81,0.2); }
.world-schedule-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 2px; border-bottom: 1px solid rgba(183,139,81,0.12); font-size: 12px; }
.world-schedule-name { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #d7b383; }
.world-schedule-row i { color: #d7b383; }
.world-schedule-row b { font-variant-numeric: tabular-nums; color: #fff; }
