/* EndlessRPG Library - the in-client wiki look (mods/game_wiki/wiki.otui) on the website:
   dark panels, gold headings, blue-grey cards and rows; ice accents to match the Frost theme.
   The wiki draws its own dark surface, so it reads the same on the Frost and Classic themes. */

.el {
    --el-panel: #0b1322;
    --el-panel-2: #0f1a2d;
    --el-row: #111c30;
    --el-row-hover: #17284a;
    --el-card: #141f36;
    --el-line: rgba(130, 190, 255, .16);
    --el-line-2: rgba(130, 190, 255, .32);
    --el-text: #d6e2f1;
    --el-muted: #8ea2bd;
    --el-gold: #ffcc00;
    --el-gold-soft: #ecd38e;
    --el-ice: #7fd4ff;
    --el-good: #8fe39b;
    --el-bad: #ff8d8d;
    --el-ember: #ff4a55;
    font: 13px/1.5 Verdana, Arial, sans-serif;
    color: var(--el-text);
    text-align: left;
}
.el * { box-sizing: border-box; }
.el a { color: var(--el-ice); text-decoration: none; }
.el a:hover { color: #e2f7ff; }
.el .el-sprite, .el .el-outfit, .el-nav img { image-rendering: pixelated; }

/* ---- navigation: the client's WikiNavButton row --------------------------------------------- */
.el-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 4px;
    margin: 0 0 10px;
    background: #0a111d;
    border: 1px solid var(--el-line-2, rgba(130, 190, 255, .32));
    border-radius: 4px;
}
.el-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 4px;
    border: 1px solid rgba(130, 190, 255, .18);
    border-radius: 3px;
    background: linear-gradient(180deg, #1a2a45, #0f1a2e);
    color: #cfe0f5 !important;
    font: bold 11px Verdana, sans-serif;
    text-decoration: none !important;
    white-space: nowrap;
}
.el-nav-btn:hover { border-color: rgba(160, 215, 255, .55); color: #fff !important; box-shadow: 0 0 6px rgba(80, 160, 255, .35); }
.el-nav-btn.on { color: #ffcc00 !important; border-color: rgba(255, 204, 0, .55); background: linear-gradient(180deg, #2a2a18, #15130a); }
.el-nav-btn img { width: 24px; height: 24px; }

/* ---- page frame ------------------------------------------------------------------------------- */
.el-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
.el-head h2 { margin: 0; font: bold 17px Verdana, sans-serif; color: var(--el-gold) !important; background: none !important; -webkit-text-fill-color: currentColor; filter: none !important; animation: none !important; }
.el-head .el-sub { color: var(--el-muted); font-size: 12px; }
.el h3.el-h {
    margin: 16px 0 6px;
    font: bold 13px Verdana, sans-serif;
    color: var(--el-gold) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor;
    filter: none !important;
    animation: none !important;
    border-bottom: 1px solid var(--el-line);
    padding-bottom: 3px;
}
.el p { margin: 0 0 8px; }
.el-muted { color: var(--el-muted); }
.el-small { color: var(--el-muted); font-size: 11px; }

/* ---- filter bar ------------------------------------------------------------------------------- */
.el-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 7px;
    margin-bottom: 10px;
    background: var(--el-panel);
    border: 1px solid var(--el-line);
    border-radius: 4px;
}
.el-filter input[type="text"], .el-filter select {
    height: 26px;
    padding: 2px 7px;
    background: #050a13 !important;
    color: #e9f3ff !important;
    border: 1px solid rgba(120, 190, 255, .35) !important;
    border-radius: 3px;
    font: 12px Verdana, sans-serif;
}
.el-filter input[type="text"] { min-width: 200px; flex: 1 1 200px; }
.el-btn {
    height: 26px;
    padding: 0 12px;
    border: 1px solid rgba(255, 204, 0, .5);
    border-radius: 3px;
    background: linear-gradient(180deg, #3a3418, #1d1a0b);
    color: #ffdf6b !important;
    font: bold 12px Verdana, sans-serif;
    cursor: pointer;
}
.el-btn:hover { box-shadow: 0 0 8px rgba(255, 204, 0, .35); }
.el-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.el-tab {
    padding: 4px 10px;
    border: 1px solid var(--el-line-2);
    border-radius: 3px;
    background: var(--el-panel-2);
    color: #cfe0f5 !important;
    font: bold 11px Verdana, sans-serif;
}
.el-tab.on { color: var(--el-gold) !important; border-color: rgba(255, 204, 0, .55); }
.el-tab small { color: var(--el-muted); font-weight: normal; }

/* ---- list rows (WikiRow) ---------------------------------------------------------------------- */
.el-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 4px; }
.el-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 3px 8px 3px 3px;
    background: var(--el-row);
    border: 1px solid #1c2a44;
    border-radius: 3px;
    color: var(--el-text) !important;
    text-decoration: none !important;
}
.el-row:hover { background: var(--el-row-hover); border-color: #4a6a9a; }
.el-row .el-ico { position: relative; flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.el-row .el-ico .el-outfit { position: absolute; width: 64px; height: 64px; right: -6px; bottom: -6px; }
.el-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.el-txt b { color: #e8eef8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-txt small { color: var(--el-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-right { color: #aab8cc; font-size: 11px; text-align: right; white-space: nowrap; }
.el-boss { color: var(--el-ember) !important; font-weight: bold; }
.el-badge { display: inline-block; padding: 0 5px; border-radius: 3px; font: bold 9px/15px Verdana, sans-serif; vertical-align: middle; }
.el-badge.boss { background: #4a0f16; color: #ffb3b8; border: 1px solid #a3242f; }
.el-badge.prem { background: #3a3010; color: #ffe08a; border: 1px solid #8a6d1f; }
.el-badge.aug { background: #0f2c4a; color: #9fdcff; border: 1px solid #2d6aa8; }

/* ---- detail page ------------------------------------------------------------------------------ */
.el-hero {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: linear-gradient(180deg, var(--el-card), var(--el-panel));
    border: 1px solid #2b3d63;
    border-radius: 4px;
}
.el-hero > div:last-child { flex: 1; min-width: 0; }
.el-hero .el-pic { position: relative; flex: 0 0 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 30px 9px at 50% 82%, rgba(120, 170, 255, .3), transparent); }
.el-hero .el-pic .el-outfit { width: 64px; height: 64px; }
.el-hero .el-pic .el-sprite { width: 64px; height: 64px; }
.el-hero h2 { margin: 0 0 2px; font: bold 18px Verdana, sans-serif; color: var(--el-gold) !important; background: none !important; -webkit-text-fill-color: currentColor; filter: none !important; animation: none !important; }
.el-hero .el-desc { color: var(--el-muted); }
.el-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 3px 14px; margin-top: 8px; }
.el-kv div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px dotted rgba(130, 190, 255, .14); }
.el-kv span { color: var(--el-muted); }
.el-kv b { color: #eaf2ff; font-weight: bold; text-align: right; }
.el-box {
    padding: 9px 11px;
    margin: 8px 0;
    background: var(--el-card);
    border: 1px solid #2b3d63;
    border-radius: 4px;
}
.el-box.tip { background: #0f2218; border-color: #2f5a3a; }
.el-box.tip b { color: #a5ecb4; }
.el-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 3px; }
.el-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 1px 7px 1px 2px;
    background: #0e182b;
    border-radius: 3px;
    color: var(--el-text) !important;
}
a.el-line:hover { background: var(--el-row-hover); }
.el-line .el-sprite { width: 28px; height: 28px; flex: 0 0 28px; }
.el-line .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-line .r { color: #aab8cc; font-size: 11px; white-space: nowrap; }
.el-good { color: var(--el-good); }
.el-bad { color: var(--el-bad); }
.el-ice { color: var(--el-ice); }
.el ul, .el ol { margin: 4px 0 8px 18px; padding: 0; }
.el li { margin: 2px 0; }
.el-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.el-chip {
    padding: 2px 9px;
    border: 1px solid rgba(127, 212, 255, .35);
    border-radius: 11px;
    background: #0d1f36;
    font-size: 11px;
}
.el-chip:hover { border-color: #7fd4ff; box-shadow: 0 0 6px rgba(127, 212, 255, .35); }

/* elements bar list */
.el-elem { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; }
.el-elem div { display: flex; justify-content: space-between; padding: 2px 6px; background: #0e182b; border-radius: 3px; }

/* spells table */
.el-spell { display: inline-block; width: 32px; height: 32px; background-image: url('/item-images/ui/spells.png'); background-repeat: no-repeat; image-rendering: pixelated; vertical-align: middle; }
.el-spell-none { background: #0e182b; border: 1px dashed var(--el-line-2); }
.el-table { width: 100%; border-collapse: separate; border-spacing: 0 3px; }
.el-table th {
    padding: 5px 7px;
    text-align: left;
    font: bold 11px Verdana, sans-serif;
    color: #f4fbff !important;
    background: linear-gradient(180deg, #11426f, #061a30) !important;
    box-shadow: none !important;
    white-space: nowrap;
}
.el-table td { padding: 3px 7px; background: var(--el-row); color: var(--el-text) !important; vertical-align: middle; }
.el-table tr:hover td { background: var(--el-row-hover); }
.el-table td.el-ic { width: 42px; padding: 2px 4px; text-align: center; }
.el-table td.num { text-align: right; white-space: nowrap; }
.el-table .words { color: var(--el-gold-soft); font-family: Consolas, monospace; white-space: nowrap; }
.el-table td small { color: var(--el-muted); }

/* home cards */
.el-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.el-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(180deg, #17233d, #101a2e);
    border: 1px solid #2f4270;
    border-radius: 4px;
    color: var(--el-text) !important;
}
.el-card:hover { border-color: var(--el-gold); box-shadow: 0 0 10px rgba(255, 204, 0, .2); }
.el-card img { width: 32px; height: 32px; flex: 0 0 32px; }
.el-card b { display: block; color: var(--el-gold); font-size: 13px; }
.el-card small { color: #b7c4d6; font-size: 11px; }

/* faq accordion */
.el details { margin: 4px 0; background: var(--el-card); border: 1px solid #2b3d63; border-radius: 4px; }
.el summary { cursor: pointer; padding: 7px 10px; color: #ffdd77; font-weight: bold; list-style: none; }
.el summary::-webkit-details-marker { display: none; }
.el summary::before { content: '\25B8'; display: inline-block; width: 14px; color: var(--el-ice); transition: transform .15s; }
.el details[open] summary::before { transform: rotate(90deg); }
.el details > div { padding: 0 12px 9px 24px; }

/* pager */
.el-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 12px 0 4px; }
.el-pager a, .el-pager span { min-width: 28px; padding: 3px 8px; text-align: center; border: 1px solid var(--el-line-2); border-radius: 3px; background: var(--el-panel-2); font-size: 11px; }
.el-pager .cur { color: var(--el-gold); border-color: rgba(255, 204, 0, .55); }
.el-pager .off, .el-pager .gap { color: #4f5f78; border-color: transparent; background: none; }

/* quest steps */
.el-steps { counter-reset: step; list-style: none; margin-left: 0 !important; }
.el-steps li { counter-increment: step; position: relative; padding: 5px 8px 5px 34px; margin: 3px 0; background: #0e182b; border-radius: 3px; }
.el-steps li::before { content: counter(step); position: absolute; left: 6px; top: 5px; width: 20px; height: 20px; border-radius: 10px; background: #1f3d6b; color: #fff; font: bold 11px/20px Verdana, sans-serif; text-align: center; }

@media (max-width: 700px) {
    .el-grid, .el-lines { grid-template-columns: 1fr; }
    .el-filter input[type="text"] { min-width: 0; }
    .el-table .hide-sm { display: none; }
}

/* the Frost theme paints h1-h3 as an ice gradient (transparent text); the wiki keeps its gold headings */
.Content .BoxContent .el h2,
.Content .BoxContent .el h3 {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    color: #ffcc00 !important;
    filter: none !important;
    animation: none !important;
}

/* ---- 2026-11-23: items like the client wiki's itemView, Loot Finder ---- */
.el-line .r.el-rare, .el .el-rare { color: #cc99ff; }            /* drops under 1%, client colour */
.el-box.el-warn { color: #ff9966; border-color: rgba(255, 153, 102, .35); }
.el .el-noimg { opacity: .45; }                                  /* empty client sprite: the empty slot frame */
.el-itemdesc { margin-top: 6px; color: #bbbbbb; font-style: italic; }
/* monster pictures in a drop list: the walking GIF is 64px with the creature in the bottom-right corner */
.el-line .el-outfit { flex: 0 0 32px; width: 32px; height: 32px; object-fit: none; object-position: right bottom; overflow: hidden; }
.el-loot .el-line { min-height: 34px; }
a.el-btn { display: inline-block; text-decoration: none; }
/* whole creature, scaled down (the crop above cut big monsters like dragons) */
.el-line .el-outfit { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; object-position: center; image-rendering: auto; }
.el-loot .el-line { min-height: 42px; }

/* Markdown pages (VIP): paragraphs and lists from Parsedown inside the library boxes */
.el-md p { margin: 4px 0 8px; }
.el-md ul { margin: 4px 0 8px 18px; padding: 0; }
.el-md li { margin: 2px 0; }
.el-md strong { color: var(--el-gold-soft); }
.el-md .el-table { margin: 4px 0 8px; }

/* ---- VIP + Loyalty pages (2026-11-25) ------------------------------------------------------------- */
.el-banner { position: relative; padding: 16px 18px; margin-bottom: 12px; border: 1px solid rgba(255, 204, 0, .35); border-radius: 2px;
    background: radial-gradient(ellipse at 85% 0%, rgba(255, 204, 0, .14), transparent 55%), linear-gradient(135deg, #1a2440, #0a1120 70%); }
.el-banner.ice { border-color: rgba(127, 212, 255, .4); background: radial-gradient(ellipse at 85% 0%, rgba(127, 212, 255, .16), transparent 55%), linear-gradient(135deg, #142a44, #0a1120 70%); }
.el-banner h2 { margin: 0 0 6px; font: bold 22px Verdana, sans-serif; color: var(--el-gold) !important; background: none !important; -webkit-text-fill-color: currentColor; filter: none !important; animation: none !important; }
.el-banner.ice h2 { color: #bfe9ff !important; }
.el-banner p { margin: 0 0 6px; max-width: 640px; line-height: 1.55; }
.el-banner:has(> img.el-banner-icon) { padding-right: 96px; }
.el-banner img.el-banner-icon { position: absolute; right: 18px; top: 14px; width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(255, 204, 0, .45)); }
.el-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.el-tag { padding: 3px 9px; border: 1px solid var(--el-line-2); border-radius: 2px; background: rgba(8, 16, 30, .7); font-size: 11px; color: var(--el-text); }
.el-tag b { color: var(--el-gold); }

.el-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 6px; }
.el-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 12px; text-align: center;
    border: 1px solid var(--el-line-2); border-radius: 2px; background: linear-gradient(180deg, var(--el-panel-2), var(--el-panel)); }
.el-pack.best { border-color: rgba(255, 204, 0, .7); box-shadow: 0 0 14px rgba(255, 204, 0, .18); background: linear-gradient(180deg, #252414, #12110a); }
.el-pack .el-ribbon { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 9px; border-radius: 2px; background: #ffcc00; color: #1a1300 !important; font: bold 10px Verdana, sans-serif; white-space: nowrap; }
.el-pack .el-days { font: bold 30px Verdana, sans-serif; color: #fff; line-height: 1; }
.el-pack .el-days small { display: block; font-size: 11px; font-weight: normal; color: var(--el-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.el-pack .el-price { display: flex; align-items: center; gap: 5px; margin-top: 6px; font: bold 16px Verdana, sans-serif; color: var(--el-gold); }
.el-pack .el-price img { width: 16px; height: 16px; }
.el-pack .el-per { font-size: 11px; color: var(--el-muted); }
.el-pack .el-loy { margin-top: 6px; padding: 2px 8px; border-radius: 2px; font-size: 11px; background: rgba(142, 162, 189, .12); color: var(--el-muted); }
.el-pack .el-loy.yes { background: rgba(143, 227, 155, .14); color: var(--el-good); font-weight: bold; }

.el-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 4px; }
.el-benefit { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--el-line); border-radius: 2px; background: var(--el-card); transition: border-color .15s, background .15s; }
.el-benefit:hover { border-color: var(--el-line-2); background: var(--el-row-hover); }
.el-benefit img { flex: 0 0 32px; width: 32px; height: 32px; image-rendering: pixelated; }
.el-benefit .el-b-body { min-width: 0; }
.el-benefit .el-b-top { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.el-benefit .el-b-val { font: bold 14px Verdana, sans-serif; color: var(--el-gold); white-space: nowrap; }
.el-benefit .el-b-name { font-weight: bold; color: #fff; font-size: 12px; }
.el-benefit .el-b-txt { color: var(--el-muted); font-size: 11px; line-height: 1.4; }

.el-cmds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.el-cmd { padding: 9px 12px; border: 1px solid var(--el-line); border-radius: 2px; background: var(--el-card); }
.el-cmd code { display: inline-block; margin-bottom: 4px; padding: 1px 7px; border-radius: 2px; background: #050b16; border: 1px solid var(--el-line-2); color: var(--el-ice); font: bold 12px Consolas, monospace; }
.el-cmd div { color: var(--el-muted); font-size: 11px; line-height: 1.45; }

.el-facts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 14px; }
.el-facts li { position: relative; padding-left: 16px; line-height: 1.5; }
.el-facts li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--el-ice); }

.el-link-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(127, 212, 255, .4); border-radius: 2px; background: linear-gradient(90deg, rgba(127, 212, 255, .1), transparent); color: var(--el-text) !important; }
.el-link-card:hover { border-color: var(--el-ice); box-shadow: 0 0 10px rgba(127, 212, 255, .25); }
.el-link-card img { width: 32px; height: 32px; image-rendering: pixelated; }
.el-link-card b { color: #fff; } .el-link-card span { color: var(--el-muted); font-size: 11px; font-weight: normal; display: block; }
.el-link-card .el-go { margin-left: auto; color: var(--el-ice); font-weight: bold; white-space: nowrap; }

.el-howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; counter-reset: step; }
.el-howto-step { position: relative; padding: 12px 12px 10px 44px; border: 1px solid var(--el-line); border-radius: 2px; background: var(--el-card); line-height: 1.45; }
.el-howto-step::before { counter-increment: step; content: counter(step); position: absolute; left: 10px; top: 11px; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: #ffcc00; color: #1a1300; font: bold 12px Verdana, sans-serif; }
.el-howto-step b { color: #fff; display: block; margin-bottom: 2px; }
.el-howto-step span { color: var(--el-muted); font-size: 11px; }

.el-mine { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 12px 14px; margin-bottom: 12px; border: 1px solid rgba(255, 204, 0, .45); border-radius: 2px; background: linear-gradient(90deg, rgba(255, 204, 0, .1), rgba(8, 16, 30, .6)); }
.el-mine img { grid-row: span 3; width: 48px; height: 48px; image-rendering: pixelated; }
.el-mine .el-mine-title { font: bold 15px Verdana, sans-serif; color: var(--el-gold); }
.el-mine .el-mine-sub { color: var(--el-muted); font-size: 11px; }
.el-bar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .45); border: 1px solid var(--el-line); overflow: hidden; }
.el-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b8860b, #ffcc00); }

.el-ladder { display: flex; flex-direction: column; gap: 4px; }
.el-rank { display: grid; grid-template-columns: 34px 1fr 90px 130px; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--el-line); border-radius: 2px; background: var(--el-card); }
.el-rank .el-r-num { font: bold 12px Verdana, sans-serif; color: var(--el-muted); text-align: center; }
.el-rank .el-r-name { font-weight: bold; color: #fff; }
.el-rank .el-r-pts { color: var(--el-muted); font-size: 11px; text-align: right; }
.el-rank .el-r-pts b { color: var(--el-text); font-size: 12px; }
.el-pips { display: flex; align-items: center; gap: 3px; }
.el-pips i { width: 10px; height: 10px; transform: rotate(45deg) scale(.8); border: 1px solid rgba(255, 204, 0, .35); background: transparent; }
.el-pips i.on { background: #ffcc00; border-color: #ffcc00; box-shadow: 0 0 4px rgba(255, 204, 0, .6); }
.el-pips em { margin-left: 6px; font-style: normal; font: bold 12px Verdana, sans-serif; color: var(--el-gold); }
.el-rank.top { border-color: rgba(255, 204, 0, .6); background: linear-gradient(90deg, rgba(255, 204, 0, .12), var(--el-card)); }
.el-rank.reached { border-color: rgba(143, 227, 155, .45); }
.el-rank.reached .el-r-num { color: var(--el-good); }
.el-rank.current { border-color: var(--el-gold); box-shadow: 0 0 10px rgba(255, 204, 0, .3); }
.el-rank.current .el-r-name::after { content: 'YOU'; margin-left: 8px; padding: 0 5px; border-radius: 2px; background: #ffcc00; color: #1a1300; font-size: 9px; vertical-align: 1px; }

.el-vocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.el-voc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; text-align: center; border: 1px solid var(--el-line); border-radius: 2px; background: var(--el-card); }
.el-voc img { width: 32px; height: 32px; image-rendering: pixelated; }
.el-voc b { color: #fff; } .el-voc span { color: var(--el-muted); font-size: 11px; line-height: 1.4; }

@media (max-width: 600px) {
    .el-banner img.el-banner-icon { display: none; }
    .el-banner:has(> img.el-banner-icon) { padding-right: 18px; }
    .el-rank { grid-template-columns: 26px 1fr; }
    .el-rank .el-r-pts { text-align: left; grid-column: 2; }
    .el-rank .el-pips { grid-column: 2; }
}

/* ---- Weapon Proficiency (2026-11-26) --------------------------------------------------------------- */
.el-pf-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.el-pf-filter { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.el-pf-filter input { flex: 1 1 200px; min-width: 0; padding: 6px 9px; background: #020812; border: 1px solid var(--el-line-2); border-radius: 2px; color: var(--el-text); font: 12px Verdana, sans-serif; }
.el-pf-filter button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--el-line-2); border-radius: 2px; background: var(--el-panel-2); color: var(--el-text); font: bold 11px Verdana, sans-serif; cursor: pointer; }
.el-pf-filter button:hover { border-color: rgba(160, 215, 255, .55); }
.el-pf-filter button.on { color: #ffcc00; border-color: rgba(255, 204, 0, .55); background: linear-gradient(180deg, #2a2a18, #15130a); }
.el-pf-filter button img { image-rendering: pixelated; }
.el-pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 6px; }
.el-pf-w { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--el-line); border-radius: 2px; background: var(--el-card); color: var(--el-text) !important; }
.el-pf-w:hover { border-color: var(--el-line-2); background: var(--el-row-hover); }
.el-pf-w img { width: 32px; height: 32px; flex: 0 0 32px; image-rendering: pixelated; }
.el-pf-w span { font-size: 11px; line-height: 1.3; min-width: 0; }
.el-pf-w small { display: block; color: var(--el-muted); font-size: 10px; }
.el-pf-levels { display: flex; flex-direction: column; gap: 6px; }
.el-pf-level { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 10px; border: 1px solid var(--el-line); border-radius: 2px; background: var(--el-card); }
.el-pf-level.mastery { border-color: rgba(255, 204, 0, .5); background: linear-gradient(90deg, rgba(255, 204, 0, .1), var(--el-card)); }
.el-pf-lvl b { display: block; color: var(--el-gold); font-size: 13px; }
.el-pf-lvl span { color: var(--el-muted); font-size: 11px; }
.el-pf-perks { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.el-pf-perk { flex: 1 1 170px; padding: 6px 9px; border: 1px solid var(--el-line-2); border-radius: 2px; background: rgba(5, 11, 22, .6); }
.el-pf-perk b { display: block; color: #fff; font-size: 11px; margin-bottom: 2px; }
.el-pf-perk span { color: #cfe2f7; font-size: 11px; line-height: 1.4; }
.el-pf-perk.off { opacity: .55; }
.el-pf-or { flex: 0 0 100%; color: var(--el-muted); font-size: 10px; }
@media (max-width: 600px) { .el-pf-level { grid-template-columns: 1fr; gap: 4px; } }

/* ---- Changelog (pages/changelog.php, 2026-11-27) ---- */
.el-cl-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.el-cl-filter a { padding: 4px 12px; border: 1px solid var(--el-line-2); border-radius: 14px; color: var(--el-text); background: var(--el-panel-2); font-size: 11px; text-decoration: none; }
.el-cl-filter a:hover { background: var(--el-row-hover); }
.el-cl-filter a.on { background: linear-gradient(#3a6db5, #24497f); border-color: #7fb2ff; color: #fff; font-weight: bold; }
.el-cl-day { background: var(--el-panel); border: 1px solid var(--el-line); border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
.el-cl-date { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--el-panel-2); border-bottom: 1px solid var(--el-line); }
.el-cl-date b { color: #fff; font-size: 13px; }
.el-cl-date span { color: var(--el-muted); font-size: 10px; }
.el-cl-day ul { list-style: none; margin: 0; padding: 0; }
.el-cl-day li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-top: 1px solid var(--el-line); color: var(--el-text); line-height: 1.5; }
.el-cl-day li:first-child { border-top: 0; }
.el-cl-day li:nth-child(even) { background: var(--el-row); }
.el-cl-type { flex: 0 0 64px; text-align: center; padding: 2px 0; border-radius: 3px; font-size: 9px; font-weight: bold; letter-spacing: .5px; text-transform: uppercase; margin-top: 2px; }
.el-cl-type.new { background: #1f7a3f; color: #d9ffe6; }
.el-cl-type.changed { background: #24497f; color: #d6e8ff; }
.el-cl-type.fixed { background: #8a5a12; color: #ffefcf; }
.el-cl-type.removed { background: #7a2323; color: #ffdede; }
.el-cl-meta { display: flex; gap: 5px; margin-bottom: 2px; }
.el-cl-meta span { font-size: 9px; padding: 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: var(--el-muted); }
.el-cl-meta span.game { color: #f3d27a; }
.el-cl-meta span.web { color: #8fd0ff; }
@media (max-width: 560px) { .el-cl-day li { flex-direction: column; gap: 4px; } .el-cl-type { flex: none; padding: 2px 8px; } }
.el-cl-day.pre .el-cl-date { background: linear-gradient(90deg, #2a2440, var(--el-panel-2)); }
.el-cl-day.pre .el-cl-date span { color: #c8b8ff; }
/* changelog day label: BETA (open beta) / LAUNCH (official launch day), nothing for later updates */
.el-cl-phase { font-style: normal; font-weight: bold; letter-spacing: .5px; margin-right: 6px; padding: 1px 6px; border-radius: 3px; }
.el-cl-phase:empty { display: none; }
.el-cl-day.beta .el-cl-phase { color: #7fd4ff; border: 1px solid #2f6f8f; background: #0e2533; }
.el-cl-day.launch .el-cl-phase { color: #ffe08a; border: 1px solid #8a6d1f; background: #3a3010; }
.el-cl-day.launch { border-color: #8a6d1f; }

/* ---- Charms (2026-11-30): cards with the client's charm icons (img/charms/, game_cyclopedia monster-bonus-effects.png) ---- */
.el-ch-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 6px; }
.el-ch-steps div { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--el-line); border-radius: 2px; background: linear-gradient(135deg, #17223c, var(--el-card)); }
.el-ch-steps img { grid-row: span 2; width: 32px; height: 32px; image-rendering: pixelated; }
.el-ch-steps b { color: var(--el-gold); font-size: 13px; }
.el-ch-steps span { color: #b7c4d6; font-size: 11px; line-height: 1.45; } .el-ch-steps span b { font-size: 11px; color: #fff; }
.el-h small { color: var(--el-muted); font-weight: normal; font-size: 11px; margin-left: 6px; }
.el-ch-hicon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; image-rendering: pixelated; }
.el-ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.el-ch-card { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--el-line); border-left: 3px solid #c0444f; border-radius: 2px; background: var(--el-card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.el-ch-card.minor { border-left-color: #8a5cf0; }
.el-ch-card:hover { border-color: rgba(255, 204, 0, .55); box-shadow: 0 0 12px rgba(255, 204, 0, .18); transform: translateY(-1px); }
.el-ch-card.el-ch-phys { border-left-color: #c9b79c; } .el-ch-card.el-ch-fire { border-left-color: #ff7a2e; } .el-ch-card.el-ch-earth { border-left-color: #6fd05a; }
.el-ch-card.el-ch-ice { border-left-color: #7fd4ff; } .el-ch-card.el-ch-energy { border-left-color: #c77dff; } .el-ch-card.el-ch-death { border-left-color: #9c7a9e; }
.el-ch-card.el-ch-holy { border-left-color: #ffe27a; }
.el-ch-ic { flex: 0 0 46px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background-size: 46px 46px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(255, 204, 0, .25)); }
.el-ch-ic img { width: 32px; height: 32px; image-rendering: pixelated; }
.el-ch-card:hover .el-ch-ic img { animation: el-ch-pulse 1.2s ease-in-out infinite; }
@keyframes el-ch-pulse { 50% { transform: scale(1.12); filter: brightness(1.25); } }
.el-ch-body { min-width: 0; flex: 1; }
.el-ch-body > b { color: #fff; font-size: 13px; }
.el-ch-body p { margin: 2px 0 6px; color: #b7c4d6; font-size: 11px; line-height: 1.45; } .el-ch-body p b { color: var(--el-gold-soft); }
.el-ch-tiers { display: flex; gap: 4px; flex-wrap: wrap; }
.el-ch-tiers span { padding: 1px 6px; border-radius: 2px; font: bold 11px Verdana, sans-serif; color: #fff; background: #1b2a47; border: 1px solid var(--el-line-2); }
.el-ch-tiers span em { font-style: normal; color: var(--el-muted); margin-right: 4px; font-weight: normal; }
.el-ch-tiers .t2 { border-color: rgba(200, 200, 220, .45); } .el-ch-tiers .t3 { border-color: rgba(255, 204, 0, .6); color: var(--el-gold); }
.el-ch-cost { margin-top: 6px; color: var(--el-muted); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.el-ch-cost img, .el-ch-inl { width: 12px; height: 12px; image-rendering: pixelated; vertical-align: -1px; }
@media (prefers-reduced-motion: reduce) { .el-ch-card, .el-ch-card:hover .el-ch-ic img { transition: none; animation: none; transform: none; } }

/* ==== Card theme (2026-11-30): the Charms look for the whole wiki ==================================
   Left accent bar, soft gradient cards, framed icons, lift + gold glow on hover. Pure overrides of the
   classes above, so removing this block restores the old look. */
.el-row, .el-card, .el-box, .el-line, .el details, .el-hero {
    background: linear-gradient(135deg, #17223c, var(--el-card) 60%);
    border: 1px solid var(--el-line);
    border-left: 3px solid #3d6db0;
    border-radius: 2px;
}
.el-row, .el-card, a.el-line, .el details { transition: border-color .15s, box-shadow .15s, transform .15s; }
.el-row:hover, .el-card:hover, a.el-line:hover, .el details:hover {
    background: linear-gradient(135deg, #1c2a4a, #172440 60%);
    border-color: rgba(255, 204, 0, .55);
    box-shadow: 0 0 12px rgba(255, 204, 0, .18);
    transform: translateY(-1px);
}
.el-grid { gap: 6px; }
.el-row { min-height: 52px; padding: 5px 10px 5px 6px; gap: 10px; }
.el-row .el-ico, .el-card > img {
    flex: 0 0 42px; width: 42px; height: 42px;
    border: 1px solid rgba(255, 204, 0, .28); border-radius: 2px;
    background: radial-gradient(ellipse at 50% 40%, #243559, #0c1426 75%);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, .6);
}
/* creatures stand on a soft ground shadow instead of a frame (big sprites overflow it) */
.el-row .el-ico:has(> .el-outfit) { border: 0; box-shadow: none; background: radial-gradient(ellipse 20px 7px at 55% 85%, rgba(120, 170, 255, .35), transparent); }
.el-row:hover .el-ico:has(> .el-outfit) { background: radial-gradient(ellipse 22px 8px at 55% 85%, rgba(255, 204, 0, .4), transparent); }
.el-card > img { padding: 4px; object-fit: contain; image-rendering: pixelated; }
.el-row .el-ico > img:not(.el-outfit), .el-row .el-ico > .el-spell { transition: transform .2s; }
.el-row:hover .el-ico > img:not(.el-outfit), .el-row:hover .el-ico > .el-spell, .el-card:hover > img { animation: el-ch-pulse 1.2s ease-in-out infinite; }
.el-row:hover .el-ico { border-color: rgba(255, 204, 0, .6); }
.el-txt b { font-size: 13px; color: #fff; }
.el-txt small { font-size: 11px; color: #b7c4d6; }
/* boss / premium accents */
.el-row:has(.el-badge.boss), .el-line:has(.el-badge.boss) { border-left-color: #c0444f; }
.el-row:has(.el-badge.prem) { border-left-color: #d4a72c; }
.el-badge { border-radius: 2px; padding: 0 6px; }

.el-box { padding: 11px 13px; border-left-color: var(--el-gold-soft); }
.el-box.tip { background: linear-gradient(135deg, #13301f, #0f2218 60%); border-color: #2f5a3a; border-left-color: #5fcf7a; }
.el-card { padding: 11px; border-left-color: var(--el-gold); }
.el-card b { font-size: 13px; }
.el-line { min-height: 34px; padding: 2px 8px 2px 4px; border-left-width: 2px; }
.el-hero { padding: 14px; border-left-color: var(--el-gold); background: radial-gradient(ellipse at 85% 0%, rgba(255, 204, 0, .12), transparent 55%), linear-gradient(135deg, #1a2440, #0a1120 70%); border-color: rgba(255, 204, 0, .3); }
.el-hero .el-pic { flex: 0 0 80px; height: 80px; border: 1px solid rgba(255, 204, 0, .3); border-radius: 2px; background: radial-gradient(ellipse at 50% 45%, #2a3d66, #0c1426 75%); box-shadow: inset 0 0 12px rgba(0, 0, 0, .7), 0 0 10px rgba(255, 204, 0, .15); }
.el details { padding: 0; }
.el details[open] { border-left-color: var(--el-gold); }
.el summary::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; transform: rotate(45deg); background: var(--el-gold); vertical-align: 1px; transition: transform .15s; }
.el details[open] summary::before { transform: rotate(45deg) scale(1.3); box-shadow: 0 0 6px rgba(255, 204, 0, .7); }

/* section headings: gold diamond like the charm headers */
.el h3.el-h { display: flex; align-items: center; gap: 8px; }
.el h3.el-h::before { content: ''; flex: 0 0 8px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--el-gold); box-shadow: 0 0 6px rgba(255, 204, 0, .6); }
.el h3.el-h:has(> .el-ch-hicon)::before { display: none; }

/* tables: rows as slim cards */
.el-table td { background: linear-gradient(135deg, #17223c, var(--el-card) 60%); border-top: 1px solid var(--el-line); border-bottom: 1px solid var(--el-line); }
.el-table td:first-child { border-left: 3px solid #3d6db0; }
.el-table td:last-child { border-right: 1px solid var(--el-line); }
.el-table tr:hover td { background: linear-gradient(135deg, #1c2a4a, #172440 60%); border-color: rgba(255, 204, 0, .45); }
.el-table tr:hover td:first-child { border-left-color: var(--el-gold); }
.el-table th { background: linear-gradient(180deg, #1b2c4d, #0e182c) !important; color: var(--el-gold-soft) !important; border-bottom: 1px solid rgba(255, 204, 0, .35); }

/* tags and chips like the tier pills */
.el-tag, .el-chip { border-radius: 2px; }
.el-chip { background: #1b2a47; border-color: var(--el-line-2); }
.el-chip:hover { border-color: rgba(255, 204, 0, .6); color: var(--el-gold) !important; box-shadow: 0 0 6px rgba(255, 204, 0, .3); }
.el-tab:hover { border-color: rgba(255, 204, 0, .45); }

@media (prefers-reduced-motion: reduce) {
    .el-row, .el-card, a.el-line, .el details { transition: none; }
    .el-row:hover, .el-card:hover, a.el-line:hover, .el details:hover { transform: none; }
    .el-row:hover .el-ico > img, .el-row:hover .el-ico > .el-spell, .el-card:hover > img { animation: none; }
}
@media (max-width: 600px) {
    .el h3.el-h { flex-wrap: wrap; }
    .el h3.el-h small { flex-basis: 100%; margin-left: 0; }
}
