/* =========================================================
   TIMELESS V2 — WebEngine CMS theme
   Dark fantasy / metallic / hourglass identity
   ========================================================= */
:root {
    --bg: #050609;
    --bg-soft: #090b0f;
    --panel: rgba(12, 14, 19, .96);
    --panel-2: #11141b;
    --panel-3: #171b23;
    --line: rgba(214, 171, 83, .22);
    --line-bright: rgba(239, 203, 126, .48);
    --line-soft: rgba(255,255,255,.07);
    --gold: #d7ad58;
    --gold-2: #f0d48e;
    --gold-3: #946629;
    --ice: #89d2df;
    --text: #eeeae1;
    --muted: #8f939c;
    --muted-2: #686d77;
    --success: #69d69a;
    --danger: #de6868;
    --discord: #8997ff;
    --shadow: 0 30px 90px rgba(0,0,0,.56);
}

* { box-sizing: border-box; }
html { min-width: 0 !important; background: var(--bg); scroll-behavior: smooth; }
body.timeless {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, #202a35 0, #0d1117 27%, #06080c 55%, #040507 100%);
    font: 14px/1.65 Inter, "Segoe UI", Arial, sans-serif;
}
body.timeless::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(25deg, rgba(215,173,88,.012) 1px, transparent 1px);
    background-size: 90px 90px, 135px 135px;
}

#timelessParticles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: .72;
}
.fx-noise {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .027;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.fx-vignette {
    position: fixed;
    inset: 0;
    z-index: 98;
    pointer-events: none;
    box-shadow: inset 0 0 170px rgba(0,0,0,.52);
}
.fx-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .07;
    pointer-events: none;
    z-index: -2;
}
.fx-orb-a { background: #af7936; top: 170px; left: -330px; }
.fx-orb-b { background: #3a8394; right: -330px; top: 610px; }

.shell { width: min(1220px, calc(100% - 44px)); margin: 0 auto; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease; }
a:hover, a:focus { color: var(--gold-2); text-decoration: none; outline: none; }
img { max-width: 100%; }
.row { margin-left: -12px; margin-right: -12px; }
.row > [class*="col-"] { padding-left: 12px; padding-right: 12px; }

/* Utility */
.utility-bar {
    position: relative;
    z-index: 40;
    min-height: 38px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(3,4,7,.88);
    backdrop-filter: blur(16px);
}
.utility-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #8f939b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.25px;
}
.utility-left, .utility-right { display: flex; align-items: center; gap: 10px; }
.utility-right a { color: #a9acb2; }
.utility-right a:hover { color: #fff; }
.utility-right .sep { color: #343741; }
.realm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 13px var(--success), 0 0 24px rgba(105,214,154,.28);
    animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot { 50% { opacity: .45; transform: scale(.75); } }
.danger-link { color: #cc7676 !important; }
.language-switcher { position: relative; margin-left: 8px; }
.language-switcher button {
    height: 28px;
    padding: 0 7px;
    border: 0;
    background: transparent;
    color: #858a94;
    font-size: 9px;
    letter-spacing: 1px;
}
.language-switcher button img, .language-switcher a img { width: 16px; margin-right: 5px; }
.language-switcher ul {
    display: none;
    position: absolute;
    left: 0;
    top: 27px;
    z-index: 80;
    min-width: 145px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #0c0f14;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.language-switcher:hover ul { display: block; }
.language-switcher li a { display: block; padding: 6px 9px; color: #aaa; font-size: 9px; }
.language-switcher li a:hover { color: white; background: rgba(215,173,88,.07); }

/* Header + nav */
.site-header {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);

    background:
        radial-gradient(circle at 75% 42%, rgba(73,151,168,.15), transparent 21%),
        radial-gradient(circle at 34% 31%, rgba(209,158,72,.12), transparent 19%),
        linear-gradient(180deg, rgba(6,8,11,.25), rgba(6,7,10,.78) 72%, #06070a 100%),
        url("../img/hero-bg.png") center center / cover no-repeat;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,.52), transparent 40%, transparent 68%, rgba(0,0,0,.35)),
        linear-gradient(180deg, transparent 55%, rgba(4,5,7,.74));
    z-index: 1;
}
.hero-grid {
    position: absolute;
    inset: 72px 0 0;
    z-index: 0;
    opacity: .3;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 75%);
}
.hero-rune {
    position: absolute;
    z-index: 0;
    width: 680px;
    height: 680px;
    right: -80px;
    top: 105px;
    opacity: .22;
    animation: runeSpin 80s linear infinite;
    filter: drop-shadow(0 0 45px rgba(215,173,88,.08));
}
@keyframes runeSpin { to { transform: rotate(360deg); } }

.nav-wrap {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, rgba(8,9,12,.84), rgba(8,9,12,.58));
    backdrop-filter: blur(16px);
}
.nav-shell { display: flex; align-items: center; min-height: 76px; }
.brand-mini {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
    margin-right: 24px;
    color: #efede6 !important;
    font: 700 13px Cinzel, serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.brand-mini img { width: 38px; height: 38px; filter: drop-shadow(0 0 12px rgba(215,173,88,.25)); }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav li a {
    display: block;
    padding: 29px 16px 25px;
    border-bottom: 2px solid transparent;
    color: #9da1a9 !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}
.primary-nav li a:hover, .primary-nav li.active a {
    color: #f2ead7 !important;
    border-color: var(--gold);
    background: linear-gradient(0deg, rgba(215,173,88,.07), transparent 65%);
}
.nav-toggle { display: none; margin-left: auto; padding: 10px; border: 0; background: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: #c9cbd0; }

/* Hero */
.hero {
    position: relative;
    z-index: 5;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 75px;
    align-items: center;
    padding-top: 42px;
    padding-bottom: 90px;
}
.hero-copy { position: relative; z-index: 6; max-width: 710px; padding: 34px 0; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #969aa3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.6px;
}
.eyebrow span { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-logo-link { display: inline-block; width: min(520px, 92%); margin: 0 0 4px; }
.hero-logo { width: 100%; filter: drop-shadow(0 8px 30px rgba(0,0,0,.75)); }
.hero h1 {
    margin: 3px 0 16px 4px;
    color: #f1eee7;
    font: 600 clamp(34px, 4.6vw, 62px)/1.04 Cinzel, serif;
    letter-spacing: -.8px;
    text-shadow: 0 12px 38px rgba(0,0,0,.8);
}
.hero h1 span { color: var(--gold-2); text-shadow: 0 0 24px rgba(215,173,88,.12); }
.hero-desc { max-width: 610px; margin: 0 0 26px 4px; color: #9c9fa7; font-size: 13px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: 4px; }
.btn-rune {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px 21px;
    border: 1px solid rgba(215,173,88,.4);
    border-radius: 2px;
    background: rgba(7,9,13,.82);
    color: #dcdad5 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 8px 28px rgba(0,0,0,.18);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.btn-rune::before {
    content: "";
    position: absolute;
    width: 38%;
    height: 160%;
    left: -60%;
    top: -30%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transform: skewX(-24deg);
    transition: left .45s ease;
}
.btn-rune:hover { border-color: var(--gold); background: #17130d; transform: translateY(-2px); }
.btn-rune:hover::before { left: 125%; }
.btn-rune span { position: relative; z-index: 1; }
.btn-rune-primary {
    border-color: #efcf83;
    background: linear-gradient(135deg, #a87531, #ddaf55 56%, #f1d17f);
    color: #171108 !important;
    text-shadow: 0 1px rgba(255,255,255,.25);
    box-shadow: 0 10px 34px rgba(170,119,43,.2), inset 0 1px rgba(255,255,255,.26);
}
.btn-rune-primary:hover { color: #100c06 !important; background: linear-gradient(135deg,#bd893d,#ebbf67 56%,#f7df9a); }
.btn-rune-discord { border-color: rgba(137,151,255,.35); }
.btn-rune-discord:hover { border-color: var(--discord); background: rgba(90,103,206,.12); color: #cdd3ff !important; }
.btn-rune-small { min-height: 34px; padding: 7px 13px; font-size: 8px; }
.btn-block { width: 100%; }

.hero-rates {
    width: min(620px, 100%);
    display: flex;
    flex-wrap: wrap;
    margin: 25px 0 0 4px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.hero-rates > div {
    min-width: 115px;
    padding: 12px 18px 0 0;
    margin-right: 22px;
}
.hero-rates small { display: block; color: #686c75; font-size: 7px; font-weight: 800; letter-spacing: 1.35px; }
.hero-rates strong { display: block; margin-top: 3px; color: #d6d4cf; font: 700 13px Cinzel, serif; }

.realm-card {
    position: relative;
    z-index: 8;
    align-self: center;
    padding: 22px;
    border: 1px solid var(--line);
    transform: translateX(-20px);
    background: linear-gradient(155deg, rgba(19,22,29,.94), rgba(8,10,14,.97));
    box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 0 50px rgba(255,255,255,.012);
    backdrop-filter: blur(13px);
}
.realm-card::before, .realm-card::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--gold);
    opacity: .78;
}
.realm-card::before { left: -1px; top: -1px; border-left: 1px solid; border-top: 1px solid; }
.realm-card::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.realm-card-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.realm-card-top > img { width: 43px; opacity: .7; filter: drop-shadow(0 0 12px rgba(215,173,88,.18)); }
.realm-status { display: flex; align-items: center; gap: 11px; }
.realm-status small { display: block; color: #6b7079; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }
.realm-status strong { display: block; color: #79d7a2; font-size: 10px; letter-spacing: 1.2px; }
.status-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 13px var(--success); }
.online-number { padding: 22px 0 13px; color: #fff; font: 700 48px/1 Cinzel, serif; }
.online-number small { display: block; margin-top: 7px; color: #6d7179; font: 700 8px Inter, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.online-track { height: 4px; overflow: hidden; border: 1px solid #252a33; background: #050609; }
.online-track i { display: block; height: 100%; background: linear-gradient(90deg,#815924,var(--gold-2)); box-shadow: 0 0 12px var(--gold); }
.online-cap { display: flex; justify-content: space-between; margin-top: 7px; color: #666b74; font-size: 8px; letter-spacing: .75px; text-transform: uppercase; }
.online-cap b { color: #9da1a8; }
.realm-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 18px -22px 0;
    background: var(--line-soft);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.realm-metrics > div { min-width: 0; padding: 11px 9px; background: #0a0c11; text-align: center; }
.realm-metrics small { display: block; overflow: hidden; color: #60656e; font-size: 7px; font-weight: 800; letter-spacing: .9px; text-overflow: ellipsis; }
.realm-metrics strong { display: block; margin-top: 3px; overflow: hidden; color: #c8c7c3; font: 700 11px Cinzel, serif; text-overflow: ellipsis; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 -22px; background: var(--line-soft); }
.time-grid > div { padding: 12px 21px; background: #0b0d12; }
.time-grid small { display: block; color: #626771; font-size: 7px; font-weight: 800; letter-spacing: 1.15px; }
.time-grid time { display: block; margin: 2px 0; color: #dedcd6; font: 600 17px Cinzel, serif; }
.time-grid span { color: #60646c; font-size: 7px; text-transform: uppercase; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -22px -22px; border-top: 1px solid var(--line-soft); }
.quick-links a { padding: 13px 20px; color: #858992; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.quick-links a:first-child { border-right: 1px solid var(--line-soft); }
.quick-links a b { float: right; color: var(--gold); }
.quick-links a:hover { color: #d9d7d0; background: rgba(215,173,88,.035); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 130px; background: linear-gradient(transparent, var(--bg)); }

/* Home quick portals */
.portal-strip {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: -72px;
    margin-bottom: 30px;
    padding: 1px;
    background: var(--line);
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.portal-card {
    position: relative;
    min-height: 118px;
    display: grid;
    grid-template-columns: 40px 1fr 18px;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    color: #c9c8c4 !important;
    background: linear-gradient(145deg, #11141b, #0b0e13);
    overflow: hidden;
}
.portal-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,.02), transparent 70%); opacity: 0; transition: .25s; }
.portal-card:hover { background: linear-gradient(145deg,#151921,#0d1016); transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0,0,0,.32); }
.portal-card:hover::after { opacity: 1; }
.portal-gold { background: linear-gradient(145deg, #1d1810, #0d0e12 74%); }
.portal-index { color: rgba(215,173,88,.44); font: 600 25px Cinzel, serif; }
.portal-card small { display: block; color: #686d76; font-size: 7px; font-weight: 800; letter-spacing: 1.2px; }
.portal-card strong { display: block; margin: 2px 0; color: #e5e2db; font: 700 14px Cinzel, serif; }
.portal-card p { margin: 0; color: #777b84; font-size: 9px; }
.portal-card > b { color: var(--gold); font-size: 18px; }

/* Main frame */
.main-shell { position: relative; z-index: 10; margin-bottom: 72px; }
.content-frame {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15,18,24,.97), rgba(8,10,14,.98));
    box-shadow: var(--shadow);
}
.frame-corner { position: absolute; width: 25px; height: 25px; border-color: #bc9145; opacity: .8; }
.frame-corner.tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.frame-corner.tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.frame-corner.bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.frame-corner.br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.content-kicker { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -3px 0 23px; color: #626771; font-size: 7px; letter-spacing: 2px; }
.content-kicker span { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, rgba(215,173,88,.6)); }
.content-kicker span:last-child { background: linear-gradient(90deg, rgba(215,173,88,.6), transparent); }
#content { min-height: 420px; }
.module-column { min-width: 0; }

/* Typography + common WebEngine modules */
.page-title {
    margin: 0 0 25px;
    color: #ece9e2 !important;
    font: 700 30px Cinzel, serif !important;
    text-align: center;
    letter-spacing: .35px;
}
.page-title::after { content: ""; display: block; width: 58px; height: 1px; margin: 10px auto 0; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.alt { color: var(--gold) !important; }
.panel { color: var(--text); background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 2px; box-shadow: none; }
.panel-default > .panel-heading, .panel-heading { color: #e9e6de; background: linear-gradient(180deg,#191d25,#10131a); border-bottom: 1px solid var(--line) !important; border-radius: 0; }
.panel-title { color: inherit; font: 700 13px Cinzel, serif; letter-spacing: .4px; }
.panel-body { color: #b9bbc1; }
.panel-footer { color: #757983; background: #0d1015; border-top: 1px solid var(--line-soft); }
.panel-news { margin-bottom: 30px; border: 1px solid rgba(255,255,255,.045); background: linear-gradient(145deg, rgba(18,21,28,.75), rgba(9,11,15,.55)); }
.panel-news .panel-heading { padding: 18px 20px 12px; background: transparent; border-bottom: 1px solid var(--line-soft) !important; }
.panel-news .panel-title { color: #eeeae1; font: 600 22px Cinzel, serif; }
.panel-news .panel-body { padding: 20px; color: #b9bbc1; line-height: 1.85; }
.panel-news .panel-footer { padding: 10px 20px; color: #70747d; background: rgba(0,0,0,.17); font-size: 9px; }

/* Sidebar */
.panel-sidebar { margin-bottom: 18px; overflow: hidden; }
.panel-sidebar .panel-heading { padding: 13px 15px; }
.panel-sidebar .panel-body { padding: 15px; }
.tiny-link { float: right; font: 700 8px Inter, sans-serif; letter-spacing: .55px; text-transform: uppercase; }
.sidebar-cta { display: block; margin-top: 13px; padding: 12px; border: 1px solid var(--line); background: rgba(215,173,88,.045); }
.sidebar-cta span, .sidebar-cta strong { display: block; }
.sidebar-cta span { color: #727681; font-size: 7px; letter-spacing: 1px; }
.sidebar-cta strong { margin-top: 2px; color: #dedbd3; font-size: 9px; }
.download-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px;
    color: #ddd !important;
    background: linear-gradient(135deg,rgba(215,173,88,.14),rgba(215,173,88,.025));
    border: 1px solid var(--line);
}
.download-card:hover { transform: translateY(-2px); border-color: var(--line-bright); }
.download-card .download-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(215,173,88,.34); color: var(--gold); font-size: 20px; }
.download-card div { flex: 1; }
.download-card small, .download-card strong { display: block; }
.download-card small { color: #767a83; font-size: 7px; letter-spacing: 1px; }
.download-card strong { margin-top: 2px; font: 700 10px Cinzel, serif; }
.download-card > b { color: var(--gold); }
.server-info-table { margin: 0; }
.server-info-table td { padding: 8px 2px !important; }
.server-info-table td:first-child { color: #777b84; }
.server-info-table td:last-child { color: #d7d5cf; text-align: right; font-weight: 700; }
.online-text { color: var(--success) !important; font-weight: 700; }

/* Forms */
.form-control, input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
    height: 40px;
    color: #dad9d5 !important;
    background: #0a0d12 !important;
    border: 1px solid #292e37 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}
.form-control:focus, input:focus, select:focus, textarea:focus { border-color: #9b7639 !important; box-shadow: 0 0 0 2px rgba(215,173,88,.055) !important; }
textarea.form-control, textarea { min-height: 110px; }
.input-group-addon { color: #9598a0; background: #171a21; border-color: #2b2f38; }
.btn, .btn-primary, .btn-default, .btn-success, .btn-info, .btn-warning, .btn-danger { border-radius: 2px; font-size: 10px; font-weight: 700; letter-spacing: .3px; }
.btn-primary { color: #151008; background: #a47a38; border-color: #cb9e50; }
.btn-primary:hover, .btn-primary:focus { color: #111; background: #ce9f4c; border-color: #e5c078; }
.btn-default { color: #c7c8ca; background: #171a21; border-color: #343944; }
.btn-success { background: #326e52; border-color: #438b69; }
.btn-danger { background: #743b3b; border-color: #995050; }
.alert { color: #bfc1c5; background: #11141a; border: 1px solid var(--line-soft); border-radius: 2px; }
.alert-success { border-left: 3px solid var(--success); }
.alert-danger { border-left: 3px solid var(--danger); }
.alert-info { border-left: 3px solid #5c8ea1; }
.well { background: #0b0e13; border: 1px solid var(--line-soft); box-shadow: none; }

/* Tables + rankings */
.table { color: #c5c6c8; }
.table > thead > tr > th, .table > tbody > tr > td { border-color: var(--line-soft) !important; vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #0d1016; }
.table-hover > tbody > tr:hover { background: rgba(215,173,88,.045); }
.general-table-ui, .myaccount-table, .rankings-table { width: 100%; border-collapse: collapse; background: #0c0f14; border: 1px solid var(--line-soft); }
.general-table-ui td, .myaccount-table td, .rankings-table td { padding: 12px !important; border: 1px solid var(--line-soft) !important; }
.general-table-ui tr:nth-child(even), .myaccount-table tr:nth-child(even), .rankings-table tr:nth-child(even) { background: rgba(255,255,255,.012); }
.rankings-table tr:first-child td { color: var(--gold-2); font-weight: 700; border-bottom: 1px solid var(--gold) !important; }
.rankings-table-place { color: var(--gold); font: 700 20px Cinzel, serif; }
.rankings-class-image, .general-table-ui img { max-width: 46px; height: auto; border-radius: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.rankings-update-time { padding: 8px 0; color: #696d76; text-align: right; font-size: 8px; }
.rankings_menu { margin: 0 0 20px; text-align: center; }
.rankings_menu span { display: block; margin-bottom: 8px; font: 600 18px Cinzel, serif; }
.rankings_menu a { display: inline-block; margin: 3px; padding: 7px 13px; color: #999da5; background: #11141a; border: 1px solid #292e37; }
.rankings_menu a.active, .rankings_menu a:hover { color: #e4c57c; border-color: #876730; }
/* =========================================================
   RANKINGS CLASS FILTER
   ========================================================= */

.rankings-class-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;

    margin: 22px auto 28px;
    padding: 0;

    list-style: none;
}

.rankings-class-filter li {
    display: block;
    margin: 0;
    padding: 0;
}

.rankings-class-filter-selection {
    width: 92px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 8px 7px;

    color: #a5a8ae !important;

    background:
        linear-gradient(
            145deg,
            rgba(18,21,28,.86),
            rgba(8,10,14,.92)
        );

    border: 1px solid rgba(255,255,255,.07);

    cursor: pointer;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;

    text-align: center;

    transition:
        .2s ease;
}

.rankings-class-filter-selection:hover {
    color: var(--gold-2) !important;

    border-color: rgba(215,173,88,.45);

    background:
        linear-gradient(
            145deg,
            rgba(37,31,20,.92),
            rgba(10,12,16,.96)
        );

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0,0,0,.28);
}

.rankings-class-filter-image {
    width: 76px !important;
    height: 76px !important;

    display: block;

    margin: 0 auto 7px;

    object-fit: cover;

    border: 1px solid rgba(215,173,88,.16);

    transition:
        filter .2s ease,
        opacity .2s ease,
        transform .2s ease;
}

/* Unselected classes */
.rankings-class-filter-grayscale img {
    opacity: .36;
    filter: grayscale(1);
}

/* Selected class */
.rankings-class-filter-selection:not(.rankings-class-filter-grayscale) {
    color: var(--gold-2) !important;

    border-color: rgba(215,173,88,.55);

    background:
        linear-gradient(
            145deg,
            rgba(45,35,19,.85),
            rgba(12,14,18,.96)
        );
}

.rankings-class-filter-selection:not(.rankings-class-filter-grayscale) img {
    opacity: 1;
    filter: none;

    box-shadow:
        0 0 18px rgba(215,173,88,.16);
}


/* Mobile */
@media (max-width: 600px) {

    .rankings-class-filter {
        gap: 6px;
    }

    .rankings-class-filter-selection {
        width: 76px;
        padding: 6px;
        font-size: 8px;
    }

    .rankings-class-filter-image {
        width: 62px !important;
        height: 62px !important;
    }

}

/* Bootstrap misc */
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs > li > a { color: #8d9199; border-radius: 0; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover { color: #eee; background: #151821; border: 1px solid var(--line); border-bottom-color: #151821; }
.pagination > li > a, .pagination > li > span { color: #aaa; background: #10131a; border-color: #2a2e37; }
.pagination > .active > a, .pagination > .active > span { color: #111; background: #9c7436; border-color: #c39951; }

/* UserCP list */
.panel-usercp ul { margin: 0; padding: 0; list-style: none; }
.panel-usercp li { border-bottom: 1px solid var(--line-soft); }
.panel-usercp li:last-child { border-bottom: 0; }
.panel-usercp li a { display: flex; align-items: center; min-height: 42px; padding: 9px 4px; color: #aeb0b5; }
.panel-usercp li a:hover { color: #fff; transform: translateX(3px); }
.panel-usercp li img { width: 24px; height: 24px; object-fit: contain; margin-right: 10px; opacity: .75; }

/* Events */
.event-schedule-open { color: var(--success); font-weight: 700; }
.event-schedule-inprogress { color: var(--gold-2); font-weight: 700; }

/* Footer */
.footer { position: relative; z-index: 10; padding: 40px 0 24px; color: #777b83; background: #050609; border-top: 1px solid var(--line-soft); }
.footer-shell { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 42px; opacity: .8; }
.footer-brand strong { display: block; color: #dcd9d1; font: 700 14px Cinzel, serif; text-transform: uppercase; }
.footer-brand span { display: block; margin-top: 3px; font-size: 7px; letter-spacing: 1.5px; }
.footer-links { text-align: center; }
.footer-links a { display: inline-block; margin: 4px 9px; color: #777b83; font-size: 8px; letter-spacing: .6px; text-transform: uppercase; }
.footer-links a:hover { color: #d8d6d0; }
.footer-socials { display: flex; gap: 7px; }
.footer-socials a { width: 31px; height: 31px; display: grid; place-items: center; color: #878b94; border: 1px solid #2a2e36; border-radius: 50%; font-weight: 700; }
.footer-socials a:hover { color: var(--gold); border-color: #82632f; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 17px; color: #565a63; border-top: 1px solid var(--line-soft); font-size: 8px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #73777f; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 38px; height: 38px; color: var(--gold); background: #0b0e13; border: 1px solid var(--line); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }

/* Responsive */
@media (max-width: 1100px) {
    .hero-warrior { right: -40px; opacity: .52; }
    .hero { grid-template-columns: minmax(0, 1fr) 340px; gap: 35px; }
}
@media (max-width: 991px) {
    .shell { width: min(calc(100% - 30px), 860px); }
    .site-header { min-height: 0; }
    .hero { grid-template-columns: 1fr; gap: 25px; padding-top: 50px; padding-bottom: 130px; }
    .hero-copy { max-width: 680px; }
    .hero-warrior { width: 500px; right: -80px; bottom: -110px; opacity: .25; }
    .hero-rune { right: -240px; opacity: .14; }
    .realm-card { width: min(520px, 100%); }
    .brand-mini { min-width: 0; }
    .brand-mini span { display: none; }
    .nav-toggle { display: block; }
    .primary-nav { display: none; position: absolute; top: 76px; left: 15px; right: 15px; z-index: 90; background: #0a0d12; border: 1px solid var(--line); box-shadow: var(--shadow); }
    .primary-nav.open { display: block; }
    .primary-nav ul { display: block; padding: 6px; }
    .primary-nav li a { padding: 13px 14px; border: 0 !important; border-left: 2px solid transparent !important; }
    .primary-nav li.active a { border-left-color: var(--gold) !important; }
    .portal-strip { grid-template-columns: 1fr; margin-top: -75px; }
    .portal-card { min-height: 94px; }
    .content-frame { padding: 20px; }
    .sidebar-column { margin-top: 25px; }
    .footer-shell { grid-template-columns: 1fr; text-align: center; }
    .footer-brand, .footer-socials { justify-content: center; }
    .footer-bottom { display: block; text-align: center; }
    .footer-bottom > div { margin-top: 10px; }
}
@media (max-width: 600px) {
    .shell { width: calc(100% - 20px); }
    .utility-inner { padding: 7px 0; align-items: flex-start; }
    .realm-label { display: none; }
    .utility-right { gap: 8px; }
    .utility-right .sep { display: none; }
    .utility-right a { font-size: 7px; }
    .language-switcher { margin-left: 0; }
    .hero { padding-top: 36px; padding-bottom: 120px; }
    .hero-copy { padding-top: 10px; }
    .hero-logo-link { width: 100%; }
    .hero h1 { margin-left: 0; font-size: 32px; }
    .hero-desc { margin-left: 0; font-size: 12px; }
    .hero-actions { margin-left: 0; }
    .hero-actions .btn-rune { flex: 1 1 47%; min-width: 0; padding: 9px 10px; }
    .hero-rates { margin-left: 0; }
    .hero-rates > div { min-width: 48%; margin-right: 0; padding-right: 12px; }
    .hero-warrior { width: 360px; right: -100px; bottom: -60px; opacity: .18; }
    .realm-card { padding: 18px; }
    .realm-metrics { margin-left: -18px; margin-right: -18px; }
    .time-grid { margin-left: -18px; margin-right: -18px; }
    .quick-links { margin-left: -18px; margin-right: -18px; margin-bottom: -18px; }
    .portal-strip { width: calc(100% - 20px); }
    .portal-card { grid-template-columns: 34px 1fr 16px; padding: 14px; }
    .portal-card p { display: none; }
    .content-frame { padding: 15px; }
    .page-title { font-size: 24px !important; }
    .rankings-table { font-size: 11px; }
    .rankings-table td { padding: 8px 5px !important; }
    .footer { padding-top: 30px; }
    .footer-links a { margin: 4px 5px; }
    .to-top { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    #timelessParticles { display: none; }
}
.discord-card { border-color: rgba(137,151,255,.18); background: linear-gradient(135deg,rgba(102,116,224,.11),rgba(102,116,224,.02)); }
.discord-card .download-icon { color: #aab3ff; border-color: rgba(137,151,255,.28); font: 800 13px Inter,sans-serif; }
.discord-card:hover { border-color: rgba(137,151,255,.55); }


.primary-nav li a {
    display: flex;
    align-items: center;
    gap: 7px;
}

.primary-nav .nav-icon {
    color: var(--gold);
    font-size: 12px;
    opacity: .75;
    transition: .2s ease;
}

.primary-nav .nav-title {
    display: inline-block;
}

.primary-nav li a:hover .nav-icon,
.primary-nav li.active a .nav-icon {
    color: var(--gold-2);
    opacity: 1;
    transform: translateY(-1px);
}

/* =========================================================
   PLAYER PROFILE
   ========================================================= */

.profiles_player_card {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;

    padding: 34px;

    border: 1px solid var(--line);
    border-radius: 3px;

    background:
        linear-gradient(
            90deg,
            rgba(5, 6, 9, .25) 0%,
            rgba(5, 6, 9, .55) 42%,
            rgba(5, 6, 9, .94) 68%,
            rgba(5, 6, 9, .98) 100%
        ),
        #080a0e;

    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        inset 0 0 60px rgba(255,255,255,.015);

    color: var(--text);
}

/* Character backgrounds */
.DW.profiles_player_card,
.SM.profiles_player_card,
.GM.profiles_player_card {
    background:
        linear-gradient(90deg, rgba(5,6,9,.18), rgba(5,6,9,.95) 70%),
        url("../img/profiles/wiz.jpg") left center / cover no-repeat;
}

.DK.profiles_player_card,
.BK.profiles_player_card,
.BM.profiles_player_card {
    background:
        linear-gradient(90deg, rgba(5,6,9,.18), rgba(5,6,9,.95) 70%),
        url("../img/profiles/knight.jpg") left center / cover no-repeat;
}

.ELF.profiles_player_card,
.ME.profiles_player_card,
.HE.profiles_player_card {
    background:
        linear-gradient(90deg, rgba(5,6,9,.18), rgba(5,6,9,.95) 70%),
        url("../img/profiles/elf.jpg") left center / cover no-repeat;
}

.MG.profiles_player_card,
.DM.profiles_player_card {
    background:
        linear-gradient(90deg, rgba(5,6,9,.18), rgba(5,6,9,.95) 70%),
        url("../img/profiles/mg.jpg") left center / cover no-repeat;
}

.DL.profiles_player_card,
.LE.profiles_player_card {
    background:
        linear-gradient(90deg, rgba(5,6,9,.18), rgba(5,6,9,.95) 70%),
        url("../img/profiles/dl.jpg") left center / cover no-repeat;
}

.SUM.profiles_player_card,
.BS.profiles_player_card {
    background:
        linear-gradient(90deg, rgba(5,6,9,.18), rgba(5,6,9,.95) 70%),
        url("../img/profiles/sum.jpg") left center / cover no-repeat;
}

.RF.profiles_player_card,
.FM.profiles_player_card {
    background:
        linear-gradient(90deg, rgba(5,6,9,.18), rgba(5,6,9,.95) 70%),
        url("../img/profiles/rf.jpg") left center / cover no-repeat;
}

/* Right side information panel */
.profiles_player_content {
    position: relative;
    z-index: 2;

    width: 46%;
    margin-left: auto;

    padding: 22px 24px;

    border: 1px solid rgba(215,173,88,.16);

    background:
        linear-gradient(
            145deg,
            rgba(15,18,24,.94),
            rgba(7,9,13,.88)
        );

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);

    backdrop-filter: blur(7px);
}

/* Tables */
.profiles_player_table {
    width: 100%;
    border-collapse: collapse;
}

.profiles_player_table .cname {
    padding: 4px 0 0;

    color: var(--gold-2);

    font: 700 28px Cinzel, serif;

    text-align: center;
    letter-spacing: .5px;

    text-shadow:
        0 2px 16px rgba(0,0,0,.8),
        0 0 18px rgba(215,173,88,.12);
}

.profiles_player_table .cclass {
    padding-bottom: 18px;

    color: #858a93;

    text-align: center;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.profiles_player_table_info {
    table-layout: fixed;
    margin-top: 5px;
}

.profiles_player_table_info tr {
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.profiles_player_table_info tr:last-child {
    border-bottom: 0;
}

.profiles_player_table_info td {
    padding: 9px 10px;
}

.profiles_player_table_info td:first-child {
    color: #737881;

    text-align: left;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.profiles_player_table_info td:last-child {
    color: #e0ddd6;

    text-align: right;

    font-family: Cinzel, serif;
    font-size: 13px;
    font-weight: 700;
}

/* Online status */
.profiles_player_table .isonline {
    color: var(--success) !important;

    text-shadow:
        0 0 10px rgba(105,214,154,.25);
}

.profiles_player_table .isoffline {
    color: var(--danger) !important;
}

/* Decorative corners */
.profiles_player_card::before,
.profiles_player_card::after {
    content: "";

    position: absolute;

    width: 35px;
    height: 35px;

    pointer-events: none;
}

.profiles_player_card::before {
    left: -1px;
    top: -1px;

    border-left: 1px solid var(--gold);
    border-top: 1px solid var(--gold);
}

.profiles_player_card::after {
    right: -1px;
    bottom: -1px;

    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

/* Responsive */
@media (max-width: 768px) {

    .profiles_player_card {
        min-height: 0;
        padding: 18px;

        background-position: center top;
    }

    .profiles_player_content {
        width: 100%;
        margin-top: 190px;

        padding: 18px;
    }

    .profiles_player_table .cname {
        font-size: 23px;
    }

}