/*
 * Dark theme with a nebula sky. Loaded after style.css and overrides it.
 * The sky is one still picture of a violet nebula with stars (images/nebula.*).
 */

:root {
    --bg: #09060e;
    --panel: rgba(13, 8, 22, 0.86);
    --panel-solid: #16141f;
    --line: rgba(160, 110, 230, 0.18);
    --text: #e4e0ee;
    --muted: #9b94ad;
    --accent: #a56bff;
    --accent-strong: #430274;
    --accent-pink: #6d16c0;
    --heading: #f4f0ff;
}

/* ------------------------------------------------------------------ sky */

/* the page colour sits on <html>; <body> stays see-through so the sky shows */
html { background: var(--bg) !important; }
body {
    background: transparent !important;
    background-image: none !important;
    color: var(--text);
}

.sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

/*
 * The nebula is a pre-rendered picture (images/nebula.webp, ~40 KB) instead of
 * live CSS gradients, and it stands still. Firefox in particular repaints big
 * radial gradients slowly, and a constantly moving full-screen layer made
 * every frame expensive on PCs without good graphics acceleration. A still
 * picture is drawn once and then costs nothing.
 */
.cosmos {
    position: absolute;
    inset: 0;
    background-color: var(--bg);
    background-image: url(../images/nebula.jpg);
    background-image: image-set(url(../images/nebula.webp) type("image/webp"), url(../images/nebula.jpg) type("image/jpeg"));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --------------------------------------------------------------- basics */

a { color: #c4a7ff; }
a:hover { color: #e6d9ff; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); }
hr { border-top-color: var(--line); }
code { color: #f0abfc; }
.text-muted { color: var(--muted) !important; }

.main-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 28px rgba(67, 2, 116, 0.3);
    overflow: hidden;
}

footer {
    background: rgba(9, 8, 15, 0.75);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- tabs */

nav > .nav.nav-tabs {
    background: rgba(9, 8, 15, 0.7);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    justify-content: center;
}
nav > div a.nav-item.nav-link,
nav > div a.nav-item.nav-link.active {
    background: transparent;
    color: #cfc8e0;
    padding: 15px 16px;
    border-bottom: 2px solid transparent;
    flex-grow: 0;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
nav > div a.nav-item.nav-link:hover,
nav > div a.nav-item.nav-link:focus {
    background: rgba(167, 123, 255, 0.10);
    color: #fff;
    border-bottom: 2px solid rgba(167, 123, 255, 0.5);
}
nav > div a.nav-item.nav-link.active,
nav > div a.nav-item.nav-link.active:hover {
    background: linear-gradient(180deg, rgba(167, 123, 255, 0.05), rgba(167, 123, 255, 0.22));
    color: #fff;
    border-bottom: 2px solid var(--accent);
}

.tab-content, .page-box {
    background: rgba(13, 11, 21, 0.72);
    border: none;
    border-top: 1px solid var(--line);
    border-bottom: none;
    color: var(--text);
}
.page-box { border-radius: 8px; border: 1px solid var(--line); }

/* -------------------------------------------------------------- tables */

.table { color: var(--text); }
.table td, .table th { border-top-color: var(--line); }
.table thead th { border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(255, 255, 255, 0.035); }
.table-hover tbody tr:hover { background: rgba(167, 123, 255, 0.08); color: var(--text); }

/* --------------------------------------------------------------- forms */

.form-control,
.form-control:focus {
    background: rgba(7, 6, 13, 0.75);
    color: var(--text);
    border: 1px solid rgba(170, 150, 230, 0.25);
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(167, 123, 255, 0.22);
}
.form-control::placeholder { color: #6f6880; }
.input-group span { color: #cfc8e0; }

.btn-danger, .btn-primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent-pink));
    border: none;
    color: #fff;
    box-shadow: 0 4px 18px rgba(67, 2, 116, 0.55);
}
.btn-danger:hover, .btn-primary:hover,
.btn-danger:focus, .btn-primary:focus {
    background: linear-gradient(135deg, #5a0896, #8424d8);
    color: #fff;
}
.btn-info, .btn-secondary {
    background: rgba(167, 123, 255, 0.16);
    border: 1px solid rgba(167, 123, 255, 0.35);
    color: #e6dcff;
}
.btn-info:hover, .btn-secondary:hover { background: rgba(167, 123, 255, 0.28); color: #fff; }
.btn-outline-secondary { color: #cfc8e0; border-color: rgba(207, 200, 224, 0.4); }
.btn-outline-secondary:hover { background: rgba(207, 200, 224, 0.12); color: #fff; }
.btn-outline-danger { color: #ff8fa3; border-color: rgba(255, 143, 163, 0.5); }
.btn-outline-danger:hover { background: rgba(255, 143, 163, 0.15); color: #fff; }

/* ------------------------------------------------ cards, modals, alerts */

.card {
    background: rgba(12, 10, 20, 0.8);
    border: 1px solid var(--line);
    color: var(--text);
}
.card-header,
.lb-card .card-header,
.acc-card .card-header {
    background: linear-gradient(90deg, rgba(67, 2, 116, 0.75), rgba(67, 2, 116, 0.15));
    color: #fff;
    border-bottom: 1px solid var(--line);
}

.modal-content {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    color: var(--text);
}
.modal-header, .modal-footer { border-color: var(--line); }
.close, .close:hover { color: #fff; text-shadow: none; }

.alert-success { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); color: #9ff0bd; }
.alert-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fcb0b0; }
.alert-warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); color: #fcd88a; }
.alert-info { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.35); color: #9fdcfa; }

.badge-light { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.badge-dark { background: #050409; color: #d8d3e6; border: 1px solid #3a3550; }
.badge-danger { background: #b4234a; }
.badge-success { background: #198754; }

.progress { background: rgba(255, 255, 255, 0.08); }
.progress-bar,
.arm-prof .progress-bar { background: linear-gradient(90deg, var(--accent-strong), var(--accent-pink)); }

/* -------------------------------------------------------- front page */

.register-col { padding-top: 6px; }
.register-account-link { color: var(--muted); margin-top: 18px; margin-bottom: 0; }

/* -------------------------------------------------------- status strip */

.status-strip {
    background: rgba(7, 6, 13, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.status-links a { color: #e6dcff; }
.status-links a:hover { color: var(--accent); }
.fac-a { color: #7fb2f0; }
.fac-h { color: #f08a80; }

/* ------------------------------------------------- shared character bits */

.char-link { color: #f1edfa; }
.char-link:hover { color: var(--accent); }
.lb-list li { border-bottom-color: var(--line); }
.lb-value { color: #fff; }
.lb-rank, .lb-level { color: var(--muted); }

/* --------------------------------------------------------------- armory */

.arm-header { background: rgba(255, 255, 255, 0.04); }
.arm-name, .arm-fact { color: #fff; }
.arm-guild { color: #cfc8e0; }
.arm-facts { color: var(--muted); }
.arm-h { border-bottom: 1px solid var(--line); position: relative; }
.arm-h::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.arm-slot { border-bottom-color: var(--line); }
.arm-slot-icon { border-color: #3a3550; background: #000; }
.arm-ilvl { color: var(--muted); }
.arm-stats dt { color: var(--muted); }
.arm-spec-tabs .nav-link { color: #cfc8e0; }
.arm-spec-tabs .nav-link.active { background: linear-gradient(135deg, var(--accent-strong), var(--accent-pink)); color: #fff; }
.arm-tree { background: rgba(4, 3, 9, 0.65); border: 1px solid var(--line); }
.arm-ach li { border-bottom-color: var(--line); }
.arm-ach-pts { background: rgba(67, 2, 116, 0.8); }
.arm-ach-date { color: var(--muted); }

/* ------------------------------------------------- older tabs' accents */

.fallen-stat { color: #f0abfc; }

/* ------------------------------------------------------- account extras */
.acc-inline { display: inline-block; margin: 0 4px 4px 0; }
.acc-charlist { padding: 4px 0; }
.acc-char { border-bottom: 1px solid var(--line); }
.acc-char:last-child { border-bottom: none; }
.acc-char > summary { display: grid; grid-template-columns: 1fr 40px 1.1fr 110px 70px; align-items: center; gap: 8px;
    padding: 9px 14px; cursor: pointer; list-style: none; }
.acc-char > summary::-webkit-details-marker { display: none; }
.acc-char > summary:hover { background: rgba(165, 107, 255, 0.06); }
.acc-char-level { text-align: center; font-weight: bold; }
.acc-char-where small { display: block; color: var(--muted); }
.acc-char-gold { text-align: right; font-size: 13px; color: #ffd76e; white-space: nowrap; }
.acc-char-toggle { text-align: right; font-size: 13px; color: var(--accent); }
.acc-char[open] .acc-char-toggle { color: #fff; }
.acc-char-body { padding: 4px 14px 14px; background: rgba(67, 2, 116, 0.10); }
.acc-actions { margin: 6px 0 10px; }
.acc-actions .btn { margin: 0 4px 4px 0; }
.acc-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
.acc-service { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: rgba(9, 6, 14, 0.5); }
.acc-service .acc-inline { margin-top: 6px; }
.acc-price { float: right; color: #ffd76e; font-size: 13px; }
.acc-daily select { margin-bottom: 8px; }
.acc-items { max-height: 520px; overflow-y: auto; padding: 4px 0; }
.acc-item { display: flex; align-items: center; gap: 8px; padding: 5px 12px; margin: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.acc-item:hover { background: rgba(165, 107, 255, 0.06); }
.acc-item.refused { opacity: 0.45; cursor: default; }
.acc-item-icon { width: 22px; height: 22px; border-radius: 3px; }
.acc-item-name { flex: 1; font-weight: 600; }
.acc-item-where { font-size: 12px; color: var(--muted); }
.acc-card label.small { display: block; margin: 6px 0 2px; }
@media (max-width: 767px) {
    .acc-char > summary { grid-template-columns: 1fr 34px 70px; }
    .acc-char-where, .acc-char-gold { display: none; }
}

/* ---------------------------------------------- auction, achievements, compare */
.ah-head, .ach-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ah-head h4, .ach-head h4 { margin: 0; }
.ah-houses, .ach-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ach-cats { margin-bottom: 12px; }
.ah-house { padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; color: #cfc8e0; font-size: 14px; }
.ah-house span { color: var(--muted); margin-left: 4px; }
.ah-house:hover { text-decoration: none; color: #fff; background: rgba(165, 107, 255, 0.1); }
.ah-house.active { background: linear-gradient(135deg, var(--accent-strong), var(--accent-pink)); color: #fff; border-color: transparent; }
.ah-house.active span { color: #e6d9ff; }
.ah-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.ah-filters .form-control { width: auto; flex: 0 1 auto; }
.ah-filters input[name=q] { flex: 1 1 200px; }
.ah-lvl { width: 70px !important; }
.ah-table td, .ah-table th { vertical-align: middle; white-space: nowrap; }
.ah-item { white-space: normal !important; }
.ah-icon { width: 20px; height: 20px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.ah-count { color: var(--muted); margin-left: 4px; }
.ah-tag { font-size: 11px; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.ah-alliance.ah-tag { color: #7fb2f0; }
.ah-horde.ah-tag { color: #f08a80; }
.ah-pages { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 10px; }
.coin-g { color: #ffd76e; }
.coin-s { color: #d6d9e0; }
.coin-c { color: #e0a170; }

.ach-all { margin: 0 6px; font-size: 14px; color: #cfc8e0; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.ach-card { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(9, 6, 14, 0.55); color: var(--text); }
.ach-card:hover { text-decoration: none; color: var(--text); border-color: rgba(165, 107, 255, 0.5); background: rgba(67, 2, 116, 0.18); }
.ach-card.unearned { opacity: 0.55; }
.ach-icon { width: 40px; height: 40px; border-radius: 5px; flex: 0 0 auto; }
.ach-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ach-name { font-weight: 600; color: #fff; }
.ach-name .arm-ach-pts { margin-left: 6px; }
.ach-desc { font-size: 12px; color: var(--muted); }
.ach-meta { font-size: 12px; color: #cfc8e0; }
.ach-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); margin-top: 3px; }
.ach-bar span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent-strong), var(--accent-pink)); }
.ach-hero { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.ach-hero-icon { width: 64px; height: 64px; border-radius: 8px; border: 2px solid var(--line); }
.ach-hero h3 { margin: 0 0 4px; }

.arm-compare { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.arm-compare .form-control { width: 200px; }
.cmp-head { display: flex; align-items: stretch; gap: 14px; margin-bottom: 14px; }
.cmp-who { flex: 1; padding: 12px 16px; background: rgba(255, 255, 255, 0.04); border-left: 5px solid; border-radius: 4px; }
.cmp-who:last-child { border-left: none; border-right: 5px solid; text-align: right; }
.cmp-who h3 { margin: 0; }
.cmp-who h3 a { color: #fff; }
.cmp-vs { align-self: center; font-size: 22px; font-weight: bold; color: var(--accent); }
.cmp-table td, .cmp-table th, .cmp-gear td, .cmp-gear th { vertical-align: middle; }
.cmp-table th, .cmp-gear th { width: 160px; text-align: center; color: var(--muted); font-weight: normal; }
.cmp-table td:first-child, .cmp-gear .cmp-left { text-align: right; }
.cmp-table td:last-child, .cmp-gear td:last-child { text-align: left; }
.cmp-up { color: #7ee2a8; font-weight: bold; }
.cmp-down { color: #f08a80; }
.cmp-ilvl { font-size: 12px; color: var(--muted); margin: 0 4px; }
.cmp-ilvl.cmp-up { color: #7ee2a8; }
.cmp-ilvl.cmp-down { color: #f08a80; }
.cmp-item:hover { text-decoration: none; filter: brightness(1.2); }

/* ------------------------------------------------------------------ admin */
.adm-chart-head { display: flex; justify-content: space-between; align-items: center; }
.adm-ranges a { color: #cfc8e0; margin-left: 10px; font-weight: normal; padding: 2px 8px; border-radius: 10px; }
.adm-ranges a.active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.adm-tiles { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.adm-tile-num { display: block; font-size: 24px; font-weight: bold; color: #fff; line-height: 1.1; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; margin-bottom: 4px; }
.adm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.adm-down-swatch { background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(255, 255, 255, 0.3); }
.adm-chart { position: relative; }
.adm-chart svg { width: 100%; height: auto; display: block; }
.adm-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.adm-axis { fill: var(--muted); font-size: 11px; }
.adm-area-a { fill: #4a8fe0; fill-opacity: 0.32; }
.adm-area-h { fill: #e2604f; fill-opacity: 0.32; }
.adm-line-a, .adm-line-h { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adm-line-a { stroke: #4a8fe0; }
.adm-line-h { stroke: #e2604f; }
.adm-down { fill: rgba(255, 255, 255, 0.06); }
.adm-direct { fill: #e4e0ee; font-size: 12px; }
.adm-cross { stroke: rgba(255, 255, 255, 0.45); stroke-width: 1; display: none; pointer-events: none; }
.adm-hit { fill: transparent; cursor: crosshair; }
.adm-tip { position: absolute; top: 8px; display: none; pointer-events: none; background: #16101f; border: 1px solid var(--line);
    border-radius: 6px; padding: 6px 10px; font-size: 12px; line-height: 1.5; color: var(--text); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); min-width: 130px; }
.adm-tip .t-a, .adm-tip .t-h { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.adm-tip .t-a { background: #4a8fe0; }
.adm-tip .t-h { background: #e2604f; }
.adm-table { margin-top: 8px; font-size: 13px; }
.adm-table summary { color: var(--accent); cursor: pointer; }
.adm-table table { margin-top: 6px; }
.adm-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.adm-row .form-control { width: auto; flex: 1 1 140px; }
.adm-row .adm-num { flex: 0 0 80px; }
.adm-row .adm-type { flex: 0 0 120px; }
.adm-cancel { margin-top: 8px; }
.adm-tools form { margin-bottom: 12px; }
.adm-list td, .adm-list th { vertical-align: middle; font-size: 13px; }
.adm-audit { max-height: 420px; overflow-y: auto; padding: 6px 12px; font-size: 13px; }
.adm-audit > div { padding: 4px 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------- armory: dungeons & raids */
.dr-rows { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.dr-row + .dr-row { border-top: 1px solid var(--line); }
.dr-row summary { display: flex; align-items: center; gap: 12px; padding: 7px 12px; cursor: pointer; list-style: none; }
.dr-row summary:hover { background: rgba(255, 255, 255, 0.03); }
.dr-row summary::-webkit-details-marker { display: none; }
.dr-row summary::before { content: '\25B8'; color: var(--muted); font-size: 11px; width: 10px; transition: transform 0.15s; }
.dr-row[open] summary::before { transform: rotate(90deg); }
.dr-row[open] summary { background: rgba(255, 255, 255, 0.03); }
.dr-name { flex: 1 1 auto; min-width: 0; color: var(--muted); }
.dr-started .dr-name { color: var(--heading); font-weight: 600; }
.dr-parts { flex: 0 0 auto; display: flex; gap: 18px; }
.dr-part { display: flex; align-items: center; gap: 6px; width: 170px; }
.dr-size { font-size: 11px; color: var(--muted); width: 16px; text-align: right; }
.dr-bar { flex: 1 1 auto; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dr-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.dr-count { font-size: 12px; color: var(--muted); width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
    .dr-row summary { flex-wrap: wrap; }
    .dr-name { flex-basis: calc(100% - 30px); }
    .dr-parts { width: 100%; padding-left: 22px; gap: 12px; }
    .dr-part { width: auto; flex: 1 1 0; }
}
.dr-list { list-style: none; margin: 0; padding: 4px 12px 10px; columns: 2 300px; column-gap: 24px; }
.dr-list li { break-inside: avoid; display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.dr-list li a { flex: 1 1 auto; }
.dr-list li.todo { opacity: 0.45; }
.dr-list li.todo .arm-ach-icon { filter: grayscale(1); }
.dr-sub { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; margin: 6px 0 4px; }
.dr-kills td, .dr-kills th { border-color: var(--line) !important; text-align: left; }
.dr-kills .dr-kgroup th { color: var(--accent); font-weight: 600; padding-top: 10px; }
.dr-kills .dr-kn { text-align: right; font-weight: 700; color: var(--heading); width: 70px; }
.dr-kills .dr-kd { text-align: right; color: var(--muted); font-size: 12px; width: 140px; }

/* ---------------------------------------------------------- armory: timeline */
.tl { list-style: none; margin: 0 0 6px; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.tl-day { position: relative; margin: 14px 0 6px -18px; padding-left: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--muted); }
.tl-day::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent); }
.tl-ev { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.tl-icon { width: 28px; height: 28px; border-radius: 5px; border: 1px solid var(--line); flex: 0 0 28px; }
.tl-body { flex: 1 1 auto; min-width: 0; }
.tl-kind { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 9px; margin-right: 6px;
    background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.tl-level .tl-kind { background: rgba(165, 107, 255, 0.22); color: #d8c2ff; }
.tl-dungeon .tl-kind { background: rgba(74, 143, 224, 0.22); color: #a9cdf7; }
.tl-feat .tl-kind { background: rgba(255, 200, 80, 0.18); color: #ffd98a; }
.tl-created .tl-kind { background: rgba(80, 200, 120, 0.18); color: #9fe6b5; }
.tl-death .tl-kind { background: rgba(226, 96, 79, 0.25); color: #ffb3a8; }
.tl-death b { color: #ffb3a8; }
.tl-detail { font-size: 12px; color: var(--muted); }
.tl-more summary { cursor: pointer; color: var(--accent); margin: 4px 0 8px; }

/* --------------------------------------------------------- weekend bonus */
.wk-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: -4px 0 12px; padding: 7px 14px;
    border-radius: 8px; font-size: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.wk-banner b { color: var(--heading); }
.wk-left { margin-left: auto; font-size: 13px; }
.wk-count { font-weight: 700; color: var(--heading); }
.wk-spark { color: var(--accent); }
.wk-on { background: linear-gradient(90deg, rgba(255, 196, 60, 0.16), rgba(165, 107, 255, 0.12)); border-color: rgba(255, 200, 80, 0.45); color: #f1e6c8; }
.wk-on .wk-spark { color: #ffd65c; }
.wk-on b { color: #ffe08a; }
@media (max-width: 640px) { .wk-left { margin-left: 0; } }

/* ------------------------------------------------------------ item search */
.it-head { display: flex; gap: 16px; align-items: center; margin: 6px 0 10px; }
.it-head h3 { margin: 0 0 2px; }
.it-icon { width: 56px; height: 56px; border-radius: 8px; border: 2px solid; flex: 0 0 56px; }
.it-links { font-size: 13px; margin-top: 4px; }
.it-owners td, .it-src td { border-color: var(--line) !important; vertical-align: middle; text-align: left; }
.it-owners td.it-places, .it-src td.it-chance { text-align: right; }
.it-places { text-align: right; }
.it-place { display: inline-block; font-size: 12px; padding: 1px 8px; margin: 1px 0 1px 4px; border-radius: 10px;
    background: rgba(165, 107, 255, 0.14); color: #d8c2ff; }
.it-chance { text-align: right; font-weight: 600; white-space: nowrap; }
.it-elite { font-size: 11px; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: rgba(255, 200, 80, 0.16); color: #ffd98a; }
.it-list { list-style: none; padding: 0; margin: 0 0 10px; }
.it-list li { padding: 3px 0; border-bottom: 1px solid var(--line); }
.items-page .ah-filters label { display: flex; align-items: center; gap: 5px; }
.items-page .ah-table th:first-child, .items-page .ah-table td:first-child { text-align: left; }
.items-page .ah-table td:nth-child(2), .items-page .ah-table th:nth-child(2) { text-align: left; }

/* ------------------------------------------------- account: bags & bank */
.inv-containers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.inv-bag { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.inv-bag-head { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 6px; }
.inv-bag-head img { width: 18px; height: 18px; border-radius: 3px; }
.inv-bag-head .text-muted { margin-left: auto; padding-left: 8px; }
.inv-grid { display: grid; grid-template-columns: repeat(4, 38px); gap: 4px; }
.inv-slot { position: relative; display: block; width: 38px; height: 38px; border-radius: 5px; border: 1px solid; overflow: hidden; background: #000; }
.inv-slot img { width: 100%; height: 100%; display: block; }
.inv-empty { border-color: rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.35); }
.inv-count { position: absolute; right: 2px; bottom: 0; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 0 2px #000, 0 0 3px #000; }
.inv-mail td { border-color: var(--line) !important; vertical-align: middle; text-align: left; }
.inv-mail-items { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.inv-money { font-size: 13px; margin-left: 4px; }
.inv-mail-when { text-align: right !important; white-space: nowrap; }
.inv-mail-read { opacity: 0.6; }
.inv-mail-coming td:first-child b::after { content: ' \2709'; color: var(--accent); }
.account .row .inv-grid { grid-template-columns: repeat(auto-fill, 38px); }

/* ---------------------------------------------------------- admin: economy */
.eco-chart { width: 100%; height: auto; display: block; margin-bottom: 10px; }
.eco-area { fill: #a56bff; fill-opacity: 0.16; }
.eco-line { fill: none; stroke: #a56bff; stroke-width: 2; }
.eco-dot { fill: #a56bff; }
.eco-top td, .eco-top th { border-color: var(--line) !important; text-align: right; }
.eco-top td:first-child, .eco-top th:first-child { text-align: left; }
.eco-spread { margin: 6px 0 8px; }
.eco-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; }
.eco-lab { flex: 0 0 96px; color: var(--muted); text-align: right; }
.eco-bar { flex: 1 1 auto; height: 14px; background: rgba(255, 255, 255, 0.05); border-radius: 3px; overflow: hidden; }
.eco-bar span { display: block; height: 100%; background: #a56bff; border-radius: 3px; }
.eco-n { flex: 0 0 36px; font-weight: 700; color: var(--heading); }

/* ------------------------------------------------------------------ phones */
.main-box > img { max-width: 100%; height: auto; }
@media (max-width: 575px) {
    /* auction house: item, buyout and price per item; level, time, seller and bid hidden */
    .auction .ah-table th:nth-child(2), .auction .ah-table td:nth-child(2),
    .auction .ah-table th:nth-child(3), .auction .ah-table td:nth-child(3),
    .auction .ah-table th:nth-child(4), .auction .ah-table td:nth-child(4),
    .auction .ah-table th:nth-child(5), .auction .ah-table td:nth-child(5) { display: none; }
    /* item search: name and owners */
    .items-page .ah-table th:nth-child(2), .items-page .ah-table td:nth-child(2),
    .items-page .ah-table th:nth-child(3), .items-page .ah-table td:nth-child(3),
    .items-page .ah-table th:nth-child(4), .items-page .ah-table td:nth-child(4) { display: none; }
    .items-page .ah-table td:first-child { white-space: normal; }
    /* graphs keep a readable size and scroll sideways inside their box */
    .adm-chart, .eco-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .adm-chart svg, .eco-scroll svg { min-width: 640px; }
    /* comparison: smaller gear names */
    .cmp-gear { font-size: 13px; }
    .cmp-gear th { font-size: 12px; }
}

/* ===================================================== phone layout
 * One full-width page instead of boxes inside boxes, a small header, the
 * status on one line and the links and tabs as rows you swipe sideways. */
@media (max-width: 575px) {
    body > .container, .container { padding-left: 0; padding-right: 0; max-width: 100%; }
    .container > .row { margin-left: 0; margin-right: 0; }
    .main-box, .main-box.sub-page { margin: 0 auto 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }

    /* header */
    .main-box > img { max-height: 104px; width: auto; margin: 10px auto 4px; display: block; }
    .sub-logo { max-height: 72px; width: auto; max-width: 70%; margin-top: 10px; }

    .status-strip { margin: 8px 8px 6px; padding: 7px 10px; font-size: 13px; gap: 4px; display: block; text-align: left; }
    .status-realm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .status-item { margin-left: 6px; }
    .status-uptime, .status-why { display: none; }
    .status-links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 6px -10px -7px; padding: 6px 10px 8px;
        border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
    .status-links::-webkit-scrollbar { display: none; }
    .status-links, nav > .nav.nav-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .status-links a { margin: 0; flex: 0 0 auto; padding: 4px 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.06);
        font-weight: 600; font-size: 13px; white-space: nowrap; }

    .wk-banner { margin: 0 8px 8px; padding: 6px 10px; font-size: 13px; flex-wrap: nowrap; }
    .wk-desc { display: none; }
    .wk-left { margin-left: auto; white-space: nowrap; }

    /* content boxes: edge to edge, less padding */
    .page-box { margin: 0; padding: 14px 12px; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
    .tab-content { padding: 16px 12px; }
    .card-body { padding: 12px; }
    h3 { font-size: 1.45rem; }
    h4 { font-size: 1.25rem; }

    /* front page tabs: one row you swipe */
    nav > .nav.nav-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    nav > .nav.nav-tabs::-webkit-scrollbar { display: none; }
    nav > div a.nav-item.nav-link, nav > div a.nav-item.nav-link.active { flex: 0 0 auto; white-space: nowrap; padding: 12px 13px; }
}

/* =====================================================================
 * Site header (layout A1): crest logo, dropdown menus, account corner,
 * weekend banner; phone drawer and account sheet. See tpl/sitenav.php.
 * ===================================================================== */
.sn-bar { position: sticky; top: 0; z-index: 1030; background: rgba(9, 6, 14, 0.96); border-bottom: 1px solid rgba(160, 110, 230, 0.25);
    transition: box-shadow 0.2s; }
.sn-scrolled .sn-bar { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.sn-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; height: 64px; }
.sn-bar a, .sn-banner a, .sn-drawer a, .sn-sheet a { text-decoration: none; }
.sn-bar button, .sn-drawer button, .sn-sheet button { font: inherit; }
.sn-burger { display: none; }

.sn-crest { position: relative; flex: 0 0 260px; height: 64px; transition: flex-basis 0.25s; }
.sn-logo { position: absolute; left: 0; top: 4px; width: 260px; height: auto; z-index: 2; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.75));
    transition: width 0.25s, top 0.25s; }
.sn-scrolled .sn-crest { flex-basis: 98px; }
.sn-scrolled .sn-logo { width: 98px; top: 4px; filter: none; }

.sn-nav { display: flex; gap: 2px; flex: 1 1 auto; height: 64px; }
.sn-menu { position: relative; display: flex; }
.sn-top { display: flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; background: transparent; color: #e4e0ee;
    font-weight: 600 !important; cursor: pointer; }
.sn-menu:hover > .sn-top, .sn-menu.sn-open > .sn-top { color: #fff; background: rgba(165, 107, 255, 0.14); box-shadow: inset 0 -2px 0 #a56bff; }
.sn-current > .sn-top { color: #fff; box-shadow: inset 0 -2px 0 rgba(165, 107, 255, 0.55); }
.sn-top:focus-visible, .sn-accbtn:focus-visible { outline: 2px solid #a56bff; outline-offset: -2px; }
.sn-chev { transition: transform 0.15s; }
.sn-menu.sn-open > button .sn-chev { transform: rotate(180deg); }

.sn-drop { display: none; position: absolute; top: 100%; left: 0; min-width: 310px; background: #120b1e; border: 1px solid rgba(160, 110, 230, 0.3);
    border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); padding: 8px; z-index: 5; text-align: left; }
@media (hover: hover) { .sn-menu:hover > .sn-drop { display: block; } }
.sn-menu.sn-open > .sn-drop { display: block; }
.sn-drop > a { display: block; padding: 10px 12px; border-radius: 6px; }
.sn-drop > a b { display: block; color: #f4f0ff; }
.sn-drop > a span { color: #9b94ad; font-size: 14px; }
.sn-drop > a:hover, .sn-drop > a:focus-visible { background: rgba(165, 107, 255, 0.12); }

.sn-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.sn-status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #9b94ad; padding: 6px 12px;
    border: 1px solid rgba(160, 110, 230, 0.22); border-radius: 18px; white-space: nowrap; }
.sn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.sn-up { background: #2ecc71; }
.sn-down { background: #e74c3c; }
.sn-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.sn-btn-ghost { color: #e4e0ee !important; border: 1px solid rgba(160, 110, 230, 0.4); font-weight: 600; }
.sn-btn-ghost:hover { background: rgba(165, 107, 255, 0.12); }
.sn-btn-main { background: #6d16c0; color: #fff !important; }
.sn-btn-main:hover { background: #7d22d4; }

.sn-account { align-self: center; }
.sn-accbtn { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 22px; border: 1px solid rgba(160, 110, 230, 0.35);
    background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.sn-account:hover .sn-accbtn, .sn-account.sn-open .sn-accbtn { background: rgba(165, 107, 255, 0.18); }
.sn-account > .sn-drop { left: auto; right: 0; top: 100%; min-width: 260px; border-top: 1px solid rgba(160, 110, 230, 0.3); border-radius: 10px; }
.sn-account > .sn-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* keeps hover across the gap */
.sn-acchead { padding: 8px 12px 10px; border-bottom: 1px solid rgba(160, 110, 230, 0.18); margin-bottom: 6px; }
.sn-acchead b { display: block; color: #fff; }
.sn-acchead span { color: #9b94ad; font-size: 13px; }
.sn-drop > a.sn-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; color: #e4e0ee !important; }
.sn-item:hover { background: rgba(165, 107, 255, 0.12); }
.sn-tag { font-size: 12px; padding: 1px 8px; border-radius: 9px; background: rgba(165, 107, 255, 0.18); color: #d8c2ff; font-weight: 600; }
.sn-tag-gold { background: rgba(255, 200, 80, 0.2); color: #ffd98a; }
.sn-sep { border-top: 1px solid rgba(160, 110, 230, 0.18); margin: 6px 0; }
.sn-logout { margin: 0; }
.sn-logout button { width: 100%; text-align: left; background: none; border: 0; color: #9b94ad; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.sn-logout button:hover { background: rgba(165, 107, 255, 0.12); color: #e4e0ee; }

.sn-avatar { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #430274; display: inline-flex; align-items: center;
    justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex: 0 0 auto; }
.sn-avatar-lg { width: 44px; height: 44px; font-size: 18px; }
.sn-ready { box-shadow: 0 0 0 2px #ffd65c; }
.sn-twinkle { position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; color: #ffd65c; filter: drop-shadow(0 0 4px rgba(255, 214, 92, 0.9));
    animation: sn-tw 1.8s ease-in-out infinite; }
.sn-twinkle svg { display: block; }
@keyframes sn-tw { 0%, 100% { opacity: 0.45; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(25deg); } }
@media (prefers-reduced-motion: reduce) { .sn-twinkle { animation: none; } .sn-logo, .sn-crest, .sn-drawer, .sn-sheet { transition: none; } }

.sn-banner { background: linear-gradient(90deg, rgba(255, 196, 60, 0.16), rgba(165, 107, 255, 0.12)); border-bottom: 1px solid rgba(255, 200, 80, 0.35);
    color: #f1e6c8; font-size: 15px; }
.sn-banner-on { background: linear-gradient(90deg, rgba(255, 196, 60, 0.28), rgba(165, 107, 255, 0.16)); }
.sn-banner-inner { max-width: 1200px; margin: 0 auto; padding: 8px 24px; display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(0, auto) minmax(220px, 1fr); gap: 4px 16px; align-items: center; }
.sn-banner-main { text-align: center; }
.sn-banner b { color: #ffe08a; }
.sn-spark { color: #ffd65c; margin-right: 4px; }
.sn-banner-when { justify-self: end; white-space: nowrap; }

/* page content starts below the hanging logo */
.container > .row > .main-box, .container > .row > .main-box.sub-page { margin-top: 96px; }
.sn-banner ~ .container > .row > .main-box, .sn-banner ~ .container > .row > .main-box.sub-page { margin-top: 64px; }

/* panels only used on phones */
.sn-drawer, .sn-sheet, .sn-scrim { display: none; }
.sn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1199px) {
    .sn-status { display: none; }
}
@media (max-width: 991px) {
    .sn-inner { gap: 14px; }
    .sn-crest { flex-basis: 200px; }
    .sn-logo { width: 200px; }
    .sn-top { padding: 0 10px; }
    .sn-banner-inner { grid-template-columns: minmax(230px, 1fr) minmax(0, auto) minmax(150px, 1fr); }
    .sn-banner-desc { display: none; }
    .sn-register { display: none; }
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 767px) {
    .sn-inner { height: 56px; padding: 0 6px; gap: 6px; position: relative; }
    .sn-burger { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: #e4e0ee; cursor: pointer; }
    .sn-nav, .sn-status, .sn-register, .sn-accname, .sn-account .sn-chev, .sn-account > .sn-drop { display: none !important; }
    .sn-crest { position: absolute; left: 50%; top: 0; width: 150px; margin-left: -75px; height: 56px; flex: none; z-index: 3; }
    .sn-logo { width: 150px; top: 3px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.8)); }
    .sn-scrolled .sn-crest { width: 92px; margin-left: -46px; }
    .sn-scrolled .sn-logo { width: 92px; top: 3px; }
    .sn-login { padding: 0 12px; height: 36px; border-radius: 18px; font-size: 14px; }
    .sn-accbtn { padding: 4px; border: 0; }

    .sn-banner { font-size: 13px; }
    .sn-banner-inner { display: flex; justify-content: space-between; padding: 6px 12px; }
    .sn-banner-pad, .sn-banner-desc, .sn-banner-from { display: none; }
    .sn-banner-main b { font-weight: 600; }

    .container > .row > .main-box, .container > .row > .main-box.sub-page { margin-top: 40px; }
    .sn-banner ~ .container > .row > .main-box, .sn-banner ~ .container > .row > .main-box.sub-page { margin-top: 16px; }

    .sn-scrim { display: block; position: fixed; inset: 0; background: rgba(4, 2, 8, 0.66); z-index: 1050; }
    .sn-scrim[hidden] { display: none; }
    .sn-locked { overflow: hidden; }

    .sn-drawer { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: min(324px, 86vw); z-index: 1060;
        background: #0d0816; border-right: 1px solid rgba(160, 110, 230, 0.3); box-shadow: 12px 0 30px rgba(0, 0, 0, 0.6);
        transform: translateX(-105%); visibility: hidden; transition: transform 0.25s, visibility 0.25s; }
    .sn-drawer.sn-shown { transform: none; visibility: visible; }
    .sn-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 4px 14px; flex: 0 0 auto; }
    .sn-drawer-head img { width: 150px; height: auto; }
    .sn-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: #e4e0ee; cursor: pointer; }
    .sn-drawer-acc { display: flex; gap: 8px; padding: 8px 14px 12px; flex: 0 0 auto; }
    .sn-drawer-acc .sn-btn { flex: 1; height: 44px; }
    .sn-drawer-me { display: flex; gap: 12px; align-items: center; margin: 4px 14px 12px; padding: 10px 12px; border-radius: 10px; flex: 0 0 auto;
        background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(160, 110, 230, 0.2); color: #f4f0ff; text-align: left; cursor: pointer; }
    .sn-drawer-me b { display: block; }
    .sn-drawer-me span span { display: block; color: #9b94ad; font-size: 13px; }
    .sn-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; height: 42px; padding: 0 12px; flex: 0 0 auto;
        border: 1px solid rgba(160, 110, 230, 0.25); border-radius: 10px; background: rgba(0, 0, 0, 0.35); color: #9b94ad; }
    .sn-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #e4e0ee; font: inherit; outline: none; }
    .sn-cats { flex: 1 1 auto; overflow-y: auto; border-top: 1px solid rgba(160, 110, 230, 0.15); }
    .sn-cat { border-bottom: 1px solid rgba(160, 110, 230, 0.12); }
    .sn-cat summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; cursor: pointer; list-style: none; color: #f4f0ff; }
    .sn-cat summary::-webkit-details-marker { display: none; }
    .sn-cat[open] summary { background: rgba(165, 107, 255, 0.1); }
    .sn-cat-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: rgba(165, 107, 255, 0.16); color: #d8c2ff;
        display: flex; align-items: center; justify-content: center; }
    .sn-cat-text { flex: 1; }
    .sn-cat-text b { display: block; }
    .sn-cat-text span { display: block; color: #9b94ad; font-size: 13px; }
    .sn-cat-pm::before { content: '+'; color: #9b94ad; font-size: 20px; }
    .sn-cat[open] .sn-cat-pm::before { content: '\2212'; }
    .sn-cat-links { padding: 0 0 8px 58px; background: rgba(165, 107, 255, 0.05); }
    .sn-cat-links a { display: flex; align-items: center; min-height: 44px; color: #e4e0ee; }
    .sn-drawer-foot { flex: 0 0 auto; padding: 10px 14px; border-top: 1px solid rgba(160, 110, 230, 0.2); font-size: 13px; color: #9b94ad;
        display: flex; align-items: center; gap: 7px; }
    .sn-drawer-foot b { color: #e4e0ee; }
    .sn-foot-wk { margin-left: auto; color: #ffe08a; }

    .sn-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; background: #0d0816;
        border-top: 1px solid rgba(160, 110, 230, 0.35); border-radius: 18px 18px 0 0; box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.6);
        padding: 8px 16px 18px; transform: translateY(105%); visibility: hidden; transition: transform 0.25s, visibility 0.25s; }
    .sn-sheet.sn-shown { transform: none; visibility: visible; }
    .sn-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); margin: 0 auto 12px; }
    .sn-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
    .sn-sheet-name { flex: 1; }
    .sn-sheet-name b { display: block; color: #fff; font-size: 17px; }
    .sn-sheet-name span { color: #9b94ad; font-size: 13px; }
    .sn-sheet-daily { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 12px; border-radius: 10px;
        border: 1px solid rgba(255, 200, 80, 0.45); background: rgba(255, 196, 60, 0.1); color: #f1e6c8 !important; }
    .sn-sheet-daily > span:nth-child(2) { flex: 1; }
    .sn-sheet-daily b { display: block; color: #ffe08a; }
    .sn-sheet-daily span span { font-size: 13px; }
    .sn-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sn-tile { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 14px; border-radius: 10px;
        background: rgba(255, 255, 255, 0.05); color: #f4f0ff !important; font-weight: 600; }
    .sn-tile .sn-tag { font-size: 11px; padding: 1px 7px; }
    .sn-tile-form button { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(160, 110, 230, 0.25);
        background: none; color: #9b94ad; font-weight: 600; text-align: left; }
}

/* Hall of the Fallen on phones: each row becomes a small card */
@media (max-width: 575px) {
    .fallen-stats { font-size: 12px; color: var(--muted); margin: 0 -4px 10px; }
    .fallen-stats > div { padding: 0 4px; }
    .fallen-stat { font-size: 15px; line-height: 1.25; word-break: break-word; }
    .fallen-table thead { display: none; }
    .fallen-table, .fallen-table tbody { display: block; }
    .fallen-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; margin-bottom: 8px;
        border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03) !important; }
    .fallen-table td { display: block; border: 0 !important; padding: 0 !important; text-align: left !important; }
    .fallen-table .fr-rank { display: none; }
    .fallen-table .fr-lvl { text-align: right !important; color: var(--muted); }
    .fallen-table .fr-lvl::before { content: 'Level '; }
    .fallen-table .fr-wide { grid-column: 1 / -1; font-size: 14px; }
    .fallen-table .fr-wide[data-label]:not([data-label=""])::before { content: attr(data-label) ' '; color: var(--muted); }
    .fallen-table .fr-wide[data-label=""] { color: var(--muted); }
    .fallen-table .fr-fate { color: var(--text); }
}

/* account: choose a character (from the account menu) */
.acc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.acc-pick-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: var(--muted) !important;
    text-decoration: none !important; }
.acc-pick-item:hover { background: rgba(165, 107, 255, 0.1); border-color: rgba(165, 107, 255, 0.4); }
.acc-pick-icons { grid-row: 1 / 3; display: flex; gap: 3px; }
.acc-pick-icons img { height: 22px; }
.acc-pick-name { font-weight: 700; font-size: 17px; }
.acc-pick-meta { grid-column: 2; font-size: 13px; }
.acc-pick-item svg { grid-column: 3; grid-row: 1 / 3; }

/* weekend banner: greyed out until the bonus is on */
.sn-banner:not(.sn-banner-on) { background: rgba(255, 255, 255, 0.035); border-bottom-color: rgba(160, 110, 230, 0.18); color: #8f88a3; }
.sn-banner:not(.sn-banner-on) b { color: #b9b2c9; }
.sn-banner:not(.sn-banner-on) .sn-spark { color: #8f88a3; }

/* Collect buttons (account menu and phone sheet) */
.sn-collect-form { margin: 0; }
.sn-drop button.sn-item { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; display: flex; justify-content: space-between;
    align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; color: #e4e0ee; }
.sn-drop button.sn-item:hover { background: rgba(255, 200, 80, 0.1); }
.sn-item small, .sn-tile small { display: block; color: #9b94ad; font-size: 12px; font-weight: 400; }
button.sn-tile { width: 100%; border: 1px solid rgba(255, 200, 80, 0.35); cursor: pointer; text-align: left; }
button.sn-sheet-daily { width: 100%; text-align: left; cursor: pointer; font: inherit; }
@media (max-width: 767px) {
    .sn-sheet .sn-collect-form { grid-column: 1 / -1; }
}

/* =====================================================================
 * Front page: a heading for each section (the header menus switch them)
 * ===================================================================== */
.sec-head { text-align: left; margin: 4px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.sec-title { margin: 2px 0 4px; font-size: 30px; font-weight: 700; color: #f4f0ff; line-height: 1.2; }
.sec-desc { margin: 0; color: var(--muted); font-size: 16px; }
.sn-drop > a.sn-here { background: rgba(165, 107, 255, 0.1); box-shadow: inset 2px 0 0 #a56bff; }
.sn-cat-links a.sn-here { color: #fff; font-weight: 700; }
@media (max-width: 575px) { .sec-title { font-size: 24px; } .sec-head { margin-bottom: 16px; } }

/* =====================================================================
 * Account menu (header dropdown, phone sheet) and the account page share
 * one list of sections with the same names and icons.
 * ===================================================================== */
.acc-ico { flex: 0 0 auto; color: #b99cf0; }
.sn-account > .sn-drop { min-width: 300px; padding: 6px; }
.sn-drop > a.sn-acchead { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; margin: 0 0 6px; border-radius: 6px 6px 0 0;
    border-bottom: 1px solid rgba(160, 110, 230, 0.18); }
.sn-drop > a.sn-acchead b { color: #fff; font-size: 16px; }
.sn-drop > a.sn-acchead span span { display: block; color: var(--accent); font-size: 13px; }
.sn-drop > a.sn-item, .sn-drop button.sn-item { justify-content: flex-start; gap: 12px; padding: 8px 12px; }
.sn-item-text { flex: 1 1 auto; min-width: 0; }
.sn-drop .sn-item-text b { display: block; color: #f4f0ff; font-weight: 600; line-height: 1.25; }
.sn-drop .sn-item-text small { display: block; color: #9b94ad; font-size: 12.5px; line-height: 1.3; }
.sn-drop .sn-tag { font-size: 11.5px; color: #d8c2ff; white-space: nowrap; }
.sn-drop .sn-tag-gold { color: #ffd98a; }
.sn-drop .sn-collect .acc-ico { color: #ffd65c; }
.sn-logout button { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.sn-logout button .acc-ico { color: #8f88a3; }
.sn-logout .sn-item-text b { font-weight: 600; }
.sn-pip, .acx-pip { width: 8px; height: 8px; border-radius: 50%; background: #ffd65c; box-shadow: 0 0 6px rgba(255, 214, 92, 0.8); margin-left: auto; flex: 0 0 8px; }
.sn-drawer-foot .sn-foot-wk { color: #8f88a3; }
.sn-drawer-foot .sn-foot-wk-on { color: #ffe08a; }
@media (max-width: 767px) {
    .sn-tile { justify-content: flex-start; gap: 10px; font-weight: 600; }
    .sn-tile .sn-item-text b { font-weight: 600; }
    .sn-tile .sn-tag { margin-left: auto; }
    .sn-tile-form button { display: flex; align-items: center; gap: 10px; }
    .sn-tile-form button .acc-ico { color: #8f88a3; }
}

/* ------------------------------------------------------- account page */
.acx { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.acx-side { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 6, 14, 0.55); }
.acx-who { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.acx-who-text { min-width: 0; }
.acx-who-text b { display: block; color: #fff; font-size: 17px; }
.acx-who-text span { display: block; color: var(--muted); font-size: 13px; }
.acx-on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; margin-right: 6px; vertical-align: 1px; }
.acx-nav { display: flex; flex-direction: column; gap: 2px; }
.acx-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: #e4e0ee !important; text-decoration: none !important;
    font-weight: 600; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-size: 15px; }
.acx-link:hover { background: rgba(165, 107, 255, 0.1); }
.acx-here { background: rgba(165, 107, 255, 0.16); color: #fff !important; box-shadow: inset 2px 0 0 #a56bff; }
.acx-here .acc-ico { color: #e0ceff; }
.acx-logout { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.acx-logout .acx-link { color: var(--muted) !important; }
.acx-logout .acc-ico { color: #8f88a3; }

.acx-title { margin: 0 0 20px; }
.acx-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.acx-back { display: inline-block; font-size: 14px; margin-bottom: 2px; }
.acx-title h1 { margin: 2px 0 4px; font-size: 28px; font-weight: 700; color: #f4f0ff; line-height: 1.2; }
.acx-title p { margin: 0; color: var(--muted); }
.acx-lead { color: #e4e0ee; margin-bottom: 12px; }

.acx-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.acx-card-flush { padding: 0; overflow: hidden; }
.acx-pad { padding: 14px 20px; }
.acx-card-flush > .acx-card-head.acx-pad { margin: 0; border-bottom: 1px solid var(--line); }
.acx-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.acx-card-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: #f4f0ff; }
.acx-card-head a { font-size: 14px; }

.acx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.acx-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: rgba(255, 255, 255, 0.03); color: #e4e0ee !important; text-decoration: none !important; }
a.acx-tile:hover { border-color: rgba(165, 107, 255, 0.45); background: rgba(165, 107, 255, 0.08); }
.acx-tile-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.acx-tile > b { font-size: 21px; color: #fff; line-height: 1.3; margin-top: 4px; }
.acx-tile-sub { font-size: 13px; color: var(--muted); }
.acx-tile-gold { border-color: rgba(255, 200, 80, 0.45); background: rgba(255, 196, 60, 0.08); }
.acx-tile-gold .acc-ico { color: #ffd65c; }
.acx-tile .acx-daily-form { margin-top: 8px; }
.acx-tile .acx-daily-form .btn { padding: 3px 14px; }

.acx-rows { margin: 0 -20px -16px; }
.acx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 160px; gap: 12px; align-items: center; padding: 8px 20px; border-top: 1px solid var(--line); }
.acx-row-name img { height: 18px; }
.acx-row-meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.acx-row-where { text-align: right; overflow: hidden; text-overflow: ellipsis; }

.acx-facts { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.acx-facts dt { font-weight: 400; color: var(--muted); }
.acx-facts dd { margin: 0; color: #e4e0ee; }
.acx-card > .acx-facts + p { margin-top: 12px; }

.acx-form label { display: block; margin: 10px 0 4px; font-size: 14px; color: var(--muted); }
.acx-form label:first-of-type { margin-top: 0; }
.acx-form .btn { margin-top: 16px; }
.acx-card .acx-form { max-width: 420px; }

.acx-mail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.acx-mail label.small { display: block; margin: 8px 0 3px; }

.acx-daily-state { display: flex; align-items: center; gap: 14px; }
.acx-daily-state .acc-ico { color: #b99cf0; }
.acx-daily-state b { display: block; font-size: 18px; color: #fff; }
.acx-daily-state span { color: var(--muted); }
.acx-daily-ready { border-color: rgba(255, 200, 80, 0.45); background: rgba(255, 196, 60, 0.07); }
.acx-daily-ready .acx-daily-state .acc-ico { color: #ffd65c; }
.acx-daily .acx-daily-form { max-width: 360px; margin-top: 14px; }
.acx-daily .acx-daily-form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.acx-daily .acx-daily-form .btn { margin-top: 10px; }

.acc-login { max-width: 460px; margin: 10px auto; }
.acc-login .acx-card { padding: 24px 28px; }
.acc-login .acx-form .btn { margin-top: 18px; }
.acx-foot { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 991px) {
    .acx { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
    .acx-mail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    /* phones: the account sheet in the header is the full menu, so the sidebar becomes a strip of sections */
    .acx { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .acx-side { position: static; padding: 0; border: 0; background: none; }
    .acx-who, .acx-logout { display: none; }
    .acx-nav { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
    .acx-nav::-webkit-scrollbar { display: none; }
    .acx-link { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 7px 12px; gap: 8px; border: 1px solid var(--line); border-radius: 18px; font-size: 14px; }
    .acx-here { box-shadow: none; border-color: rgba(165, 107, 255, 0.6); }
    .acx-link .acc-ico { width: 16px; height: 16px; }
    .acx-pip { margin-left: 0; }
    .acx-title h1 { font-size: 24px; }
    .acx-card { padding: 14px 16px; }
    .acx-rows { margin: 0 -16px -14px; }
    .acx-row { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 16px; }
    .acx-row-where { display: none; }
    .acx-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .acx-facts dd { margin-bottom: 8px; }
    .acx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .acx-tile { padding: 12px; }
    .acx-tile > b { font-size: 18px; }
}

/* the front page box: sections sit straight in it now that the tab bar is gone */
#nav-tabContent { border: 1px solid var(--line); border-radius: 8px; padding-top: 22px !important; }
.sn-tile .sn-tag { white-space: nowrap; }
.sn-account > .sn-drop { min-width: 320px; }
@media (min-width: 576px) { #nav-tabContent { padding-left: 24px !important; padding-right: 24px !important; } }

/* =====================================================================
 * Community pages: Race to 80, weekly goal, Horde vs Alliance, Chronicle,
 * death notices, mystery chest, 3D viewer
 * ===================================================================== */
.rc-kicker { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rc-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rc-status > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.rc-status b { display: block; color: #fff; font-size: 18px; margin-top: 4px; }
.rc-status span:last-child { color: var(--muted); font-size: 13px; }
.rc-winner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; margin-bottom: 16px;
    border: 1px solid rgba(255, 200, 80, 0.45); background: rgba(255, 196, 60, 0.08); border-radius: 12px; }
.rc-trophy { color: #ffd65c; }
.rc-winner-name { font-size: 22px; font-weight: 700; margin: 2px 0; }
.rc-winner-name img { height: 22px; }
.rc-next { text-align: right; }
.rc-next b { display: block; color: #fff; }
.rc-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: end; }
.rc-place { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); text-align: center; }
.rc-place-1 { order: 2; padding-top: 26px; border-color: rgba(255, 214, 92, 0.55); background: rgba(255, 196, 60, 0.07); }
.rc-place-2 { order: 1; }
.rc-place-3 { order: 3; }
.rc-pos { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; line-height: 26px;
    font-weight: 700; font-size: 14px; background: #3a2d52; color: #fff; }
.rc-place-1 .rc-pos { background: #c9a227; color: #1a1305; }
.rc-place-2 .rc-pos { background: #a7adb8; color: #15171b; }
.rc-place-3 .rc-pos { background: #a8683a; color: #1d0f05; }
.rc-place-name { font-weight: 700; font-size: 17px; }
.rc-place-name img { height: 18px; }
.rc-place-level { font-size: 22px; font-weight: 700; color: #fff; }
.rc-badge { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: rgba(231, 76, 60, 0.18); color: #ff9d92; vertical-align: 1px; }
.rc-badge-dead { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.rc-chart .svgc { width: 100%; height: auto; display: block; }
.svgc-grid { stroke: rgba(160, 110, 230, 0.15); stroke-width: 1; }
.svgc-lbl { fill: #8f88a3; font-size: 12px; }
.rc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.rc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.rc-table { padding: 4px 0; }
.rc-row { display: grid; grid-template-columns: 32px minmax(0, 1.3fr) minmax(80px, 1fr) 40px 120px; gap: 12px; align-items: center; padding: 9px 20px;
    border-top: 1px solid var(--line); }
.rc-row:first-child { border-top: 0; }
.rc-rank { color: var(--muted); font-weight: 700; text-align: center; }
.rc-name img { height: 18px; }
.rc-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.rc-bar i { display: block; height: 100%; border-radius: 4px; }
.rc-level { font-weight: 700; color: #fff; text-align: right; font-size: 17px; }
.rc-played { font-size: 13px; text-align: right; }
.rc-out { opacity: 0.55; }
.rc-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-left: 4px; }

.wg-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; }
.wg-task { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.wg-done { border-color: rgba(46, 204, 113, 0.45); background: rgba(46, 204, 113, 0.06); }
.wg-task-head { display: flex; align-items: center; gap: 12px; }
.wg-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: rgba(165, 107, 255, 0.16); color: #d8c2ff; }
.wg-done .wg-icon { background: rgba(46, 204, 113, 0.16); color: #7ee2a8; }
.wg-task-title { flex: 1; min-width: 0; }
.wg-task-title b { display: block; color: #f4f0ff; line-height: 1.3; }
.wg-task-title span { font-size: 13px; color: var(--muted); }
.wg-pct { font-weight: 700; color: #fff; font-size: 18px; }
.wg-done .wg-pct { color: #7ee2a8; }
.wg-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); margin: 12px 0 10px; overflow: hidden; }
.wg-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6d16c0, #a56bff); }
.wg-done .wg-bar i { background: #2ecc71; }
.wg-top { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.wg-top small { color: var(--muted); }
.wg-claim { margin-bottom: 16px; }
.wg-claim-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.wg-claim-row label { margin: 0; color: var(--muted); font-size: 14px; }
.wg-claim-row select { width: auto; min-width: 220px; }

.pv-war { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 10px; }
.pv-side b { display: block; font-size: 40px; line-height: 1.1; color: #fff; }
.pv-side span { color: var(--muted); }
.pv-side .pv-side-name { display: block; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.pv-a .pv-side-name { color: #6fa8ff; }
.pv-h { text-align: right; }
.pv-h .pv-side-name { color: #ff7b6e; }
.pv-vs { font-weight: 700; color: #f4f0ff; padding: 6px 14px; border: 1px solid var(--line); border-radius: 18px; white-space: nowrap; }
.pv-bar { display: flex; height: 22px; border-radius: 11px; overflow: hidden; margin-bottom: 18px; background: rgba(255, 255, 255, 0.06); }
.pv-bar i { display: flex; align-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; min-width: 34px; }
.pv-bar-a { background: #1f5fbf; justify-content: flex-start; padding-left: 10px; }
.pv-bar-h { background: #b3271a; justify-content: flex-end; padding-right: 10px; }
.pv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pv-fact { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.pv-fact-a { border-top: 3px solid #1f5fbf; }
.pv-fact-h { border-top: 3px solid #b3271a; }
.pv-fact dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 8px 0 0; }
.pv-fact dt { font-weight: 400; color: var(--muted); }
.pv-fact dd { margin: 0; color: #fff; font-weight: 700; text-align: right; }
.pv-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 160px; align-items: end; }
.pv-day { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.pv-day-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.pv-day-bars i { width: 40%; max-width: 14px; min-height: 2px; border-radius: 3px 3px 0 0; }
.pv-day-bars .pv-a { background: #1f5fbf; }
.pv-day-bars .pv-h { background: #b3271a; }
.pv-day span { font-size: 11.5px; color: var(--muted); }
.pv-tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pv-row { grid-template-columns: minmax(0, 1fr) auto; }
.pv-rank { display: inline-block; width: 18px; color: var(--muted); font-weight: 700; }
.pv-top-a h2 { color: #8fbaff !important; }
.pv-top-h h2 { color: #ff9a8f !important; }

.ch-mast { text-align: center; border-bottom: 3px double rgba(241, 230, 200, 0.35); margin-bottom: 20px; padding-bottom: 8px; }
.ch-mast-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(241, 230, 200, 0.2); padding-bottom: 6px; }
.ch-title { font-family: 'Cinzel', Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 44px; color: #f1e6c8; margin: 10px 0 6px; letter-spacing: 0.02em; }
.ch-nav { display: flex; justify-content: space-between; align-items: center; font-size: 14px; border-top: 1px solid rgba(241, 230, 200, 0.2); padding-top: 6px; }
.ch-nav span { color: #f1e6c8; font-weight: 700; }
.ch-nav .ch-nav-off { color: var(--muted); font-weight: 400; opacity: 0.5; }
.ch-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.ch-kicker { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.ch-kind-death .ch-kicker { color: #ff9d92; }
.ch-kind-race .ch-kicker, .ch-kind-ding .ch-kicker { color: #ffd65c; }
.ch-kind-goal .ch-kicker { color: #7ee2a8; }
.ch-lead { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.ch-headline { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; line-height: 1.15; color: #fff8e6; margin: 0 0 10px; font-weight: 700; }
.ch-text { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.6; color: #e9e2d0; margin-bottom: 10px; }
.ch-people { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.ch-people img { height: 18px; }
.ch-more { font-size: 14px; font-weight: 600; }
.ch-quiet .ch-headline { color: #c9c2d6; }
.ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.ch-story { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ch-story h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.25; color: #fff8e6; margin: 0 0 6px; font-weight: 700; }
.ch-story p { font-family: Georgia, 'Times New Roman', serif; color: #d9d2c0; margin-bottom: 6px; line-height: 1.55; }
.ch-side { display: flex; flex-direction: column; gap: 14px; }
.ch-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.ch-box h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f1e6c8; margin: 0 0 8px; }
.ch-box p { margin-bottom: 6px; }
.ch-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.ch-list li { padding: 4px 0; border-top: 1px solid rgba(160, 110, 230, 0.1); }
.ch-list li:first-child { border-top: 0; }
.ch-list img { height: 16px; }
.ch-a { color: #8fbaff; font-weight: 700; }
.ch-h { color: #ff9a8f; font-weight: 700; }
.ch-sep { display: inline-block; width: 4px; }

.mm-page .acx-back { margin-bottom: 12px; }
.mm-card { max-width: 760px; margin: 6px auto 0; padding: 26px 30px; border: 1px solid rgba(160, 110, 230, 0.3); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.mm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mm-kicker { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mm-name { font-family: 'Cinzel', Georgia, serif; font-size: 34px; color: #fff8e6; margin: 2px 0; font-weight: 700; }
.mm-head img { height: 18px; }
.mm-when { text-align: right; }
.mm-when b { color: #fff; }
.mm-epitaph { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.6; color: #f1e6c8; margin: 20px 0; }
.mm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.mm-stats > div { padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.mm-stats span { display: block; font-size: 12.5px; color: var(--muted); }
.mm-stats b { display: block; color: #fff; font-size: 16px; line-height: 1.3; word-break: break-word; }
.mm-sub { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.mm-miles { list-style: none; padding: 0; margin: 0 0 18px; line-height: 1.9; }
.mm-party { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mm-member { padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.mm-member-head img { height: 16px; }
.mm-candle { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); margin: 0; }
.mm-candle .btn svg { vertical-align: -3px; margin-right: 4px; }
.mm-count { color: #ffd65c; }
.mm-share { margin-left: auto; background: none; border: 0; color: var(--accent); font-size: 14px; cursor: pointer; }
.mm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; text-align: left; }
.mm-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(255, 255, 255, 0.03); color: #e4e0ee !important; text-decoration: none !important; }
.mm-tile:hover { border-color: rgba(165, 107, 255, 0.45); background: rgba(165, 107, 255, 0.08); }
.mm-tile b { font-size: 17px; color: #fff8e6; }
.mm-tile-kicker { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mm-tile-sub { font-size: 13px; color: #c9c2d6; }
.mm-tile-when { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.mm-wipe { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: rgba(231, 76, 60, 0.18); color: #ff9d92 !important; margin-left: 4px; }

.chest-reveal { display: flex; align-items: center; gap: 18px; padding: 16px 20px; margin-bottom: 16px; border-radius: 12px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04); --tier: #c9c4d6; }
.chest-uncommon { --tier: #5fd068; }
.chest-rare { --tier: #5aa9ff; }
.chest-epic { --tier: #c78bff; }
.chest-reveal { border-color: color-mix(in srgb, var(--tier) 55%, transparent); }
.chest-box { position: relative; width: 64px; height: 64px; flex: 0 0 64px; color: #ffd65c; }
.chest-box svg { position: absolute; inset: 0; }
.chest-closed { animation: chest-shake 0.9s ease-in-out both, chest-hide 0.01s linear 0.9s forwards; }
.chest-open { opacity: 0; color: var(--tier); animation: chest-show 0.35s ease-out 0.9s forwards; }
.chest-text { opacity: 0; animation: chest-show 0.4s ease-out 1s forwards; }
.chest-tier { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tier); }
.chest-text b { display: block; font-size: 20px; color: #fff; }
.chest-text span:last-child { color: var(--muted); }
@keyframes chest-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(6deg); } }
@keyframes chest-hide { to { opacity: 0; } }
@keyframes chest-show { from { opacity: 0; transform: translateY(4px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chest-closed { display: none; } .chest-open, .chest-text { animation: none; opacity: 1; } }
.chest-odds { display: block; }
.chest-odds b { color: var(--tier, #c9c4d6); }
.chest-odds.chest-common { --tier: #c9c4d6; }

.arm-h-flex { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.arm-3d { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(ellipse at center, rgba(165, 107, 255, 0.12), rgba(9, 6, 14, 0.6)); }
.arm-3d-view { height: 460px; }
.arm-3d-view canvas { display: block; }
.arm-3d-note { margin: 0; padding: 8px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 767px) {
    .rc-row { grid-template-columns: 24px minmax(0, 1fr) 34px; padding: 9px 14px; row-gap: 6px; }
    .rc-bar { grid-column: 2 / 4; grid-row: 2; }
    .rc-played { display: none; }
    .rc-winner { grid-template-columns: auto minmax(0, 1fr); }
    .rc-next { grid-column: 1 / -1; text-align: left; }
    .rc-podium { gap: 8px; }
    .rc-place { padding: 12px 6px; }
    .rc-place-name { font-size: 14px; word-break: break-word; }
    .rc-place-level { font-size: 18px; }
    .pv-side b { font-size: 28px; }
    .pv-war { grid-template-columns: 1fr 1fr; }
    .pv-vs { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
    .pv-facts, .pv-tops { grid-template-columns: minmax(0, 1fr); }
    .ch-body { grid-template-columns: minmax(0, 1fr); }
    .ch-grid { grid-template-columns: minmax(0, 1fr); }
    .ch-title { font-size: 28px; }
    .ch-headline { font-size: 26px; }
    .ch-text { font-size: 17px; }
    .ch-mast-top span:last-child { display: none; }
    .mm-card { padding: 18px; }
    .mm-name { font-size: 26px; }
    .mm-head { flex-direction: column; }
    .mm-when { text-align: left; }
    .mm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .arm-3d-view { height: 380px; }
}
/* five header menus: make room sooner */
@media (max-width: 1359px) { .sn-status { display: none; } }
@media (max-width: 1139px) { .sn-register { display: none; } .sn-inner { gap: 14px; } .sn-top { padding: 0 11px; } }
@media (max-width: 991px) and (min-width: 768px) { .sn-top { padding: 0 8px; font-size: 15px; } .sn-inner { gap: 10px; } }
.rc-status span b { display: inline; font-size: inherit; margin: 0; }
.arm-3d-failed .arm-3d-view { display: none; }
.arm-3d-failed .arm-3d-note { border-top: 0; }
@media (max-width: 767px) {
    .svgc-lbl { font-size: 24px; }
    .pv-day:nth-child(even) span { visibility: hidden; }
}

/* admin: community controls */
.adm-state { line-height: 1.7; }
.adm-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); color: var(--muted); margin-right: 4px; }
.adm-pill.adm-on { background: rgba(46, 204, 113, 0.18); color: #7ee2a8; }
.adm-row input[type=datetime-local] { flex: 0 1 220px; }
.adm-goal td { vertical-align: middle; }
.adm-goal .adm-num { display: inline-block; width: 100px; }
.adm-pick { margin-top: 12px; }
.adm-pick summary { cursor: pointer; color: var(--accent); }
.adm-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; margin: 8px 0 10px; font-size: 14px; }
.adm-pick-list label { margin: 0; }
.adm-settings fieldset { border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 14px; }
.adm-settings legend { font-size: 15px; font-weight: 700; color: #f4f0ff; width: auto; margin-bottom: 6px; }
.adm-check { display: block; margin: 4px 0; }
.adm-odds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin: 8px 0; }
.adm-odds label { margin: 0; font-size: 14px; color: var(--muted); }
.adm-odds span { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--muted); }
.adm-odds input { width: 100px; }
.rc-next span b { display: inline; }
.adm-goal th:first-child, .adm-goal td:first-child { text-align: left; }
.adm-goal th, .adm-goal td { text-align: left; }
.wg-bonus { margin-bottom: 16px; }
.wg-bonus-meter { display: grid; grid-template-columns: auto minmax(120px, 1fr) auto auto; gap: 6px 12px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.wg-bonus-meter .wg-bar { margin: 0; }
.wg-bonus-meter b { color: #ffd65c; font-size: 16px; }
@media (max-width: 575px) { .wg-bonus-meter { grid-template-columns: minmax(0, 1fr) auto; } .wg-bonus-meter .wg-bar { grid-column: 1 / -1; grid-row: 2; } }

/* Chronicle archive: a month of papers */
.cha-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 22px; }
.cha-wd { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cha-day { min-height: 112px; display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px;
    background: rgba(255, 255, 255, 0.03); color: #e4e0ee !important; text-decoration: none !important; overflow: hidden; }
a.cha-day:hover { border-color: rgba(241, 230, 200, 0.45); background: rgba(241, 230, 200, 0.06); }
.cha-off { opacity: 0.35; background: none; }
.cha-quiet .cha-head { color: var(--muted); font-style: italic; }
.cha-today { border-color: rgba(165, 107, 255, 0.6); }
.cha-n { font-weight: 700; color: #f1e6c8; font-size: 14px; }
.cha-wdm { display: none; font-weight: 400; color: var(--muted); }
.cha-head { font-family: Georgia, 'Times New Roman', serif; font-size: 13.5px; line-height: 1.3; color: #fff8e6; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cha-kind-death .cha-head { color: #ffc2bb; }
.cha-kind-race .cha-head, .cha-kind-ding .cha-head { color: #ffe7a0; }
.cha-counts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11.5px; color: var(--muted); }
.cha-dead { color: #ff9d92; }
.cha-months h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f1e6c8; margin: 0 0 8px; }
.cha-year { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.cha-year b { width: 48px; color: #fff; }
.cha-mon { padding: 2px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.cha-mon-on { border-color: rgba(241, 230, 200, 0.6); color: #f1e6c8; font-weight: 700; }
@media (max-width: 767px) {
    /* phones: a list of days instead of a calendar */
    .cha-cal { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .cha-wd, .cha-pad, .cha-off { display: none; }
    .cha-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
    .cha-n { width: 64px; flex: 0 0 64px; }
    .cha-wdm { display: inline; }
    .cha-head { flex: 1 1 200px; font-size: 15px; }
    .cha-counts { width: 100%; padding-left: 74px; margin-top: 2px; }
    .cha-year b { width: 40px; }
}
@media (max-width: 767px) { .cha-quiet:not(.cha-today) { display: none; } }
.lb-mode { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 7px; background: rgba(231, 76, 60, 0.18); color: #ff9d92; margin-right: 4px; }

/* Hall of records */
.rd-group { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f1e6c8; margin: 18px 0 10px; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rd-card { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid rgba(241, 230, 200, 0.22); border-radius: 12px;
    background: linear-gradient(180deg, rgba(241, 230, 200, 0.06), rgba(255, 255, 255, 0.02)); }
.rd-empty { opacity: 0.6; border-style: dashed; background: none; }
.rd-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rd-value { font-size: 24px; color: #ffe08a; line-height: 1.2; font-family: Georgia, 'Times New Roman', serif; }
.rd-holder { font-size: 15px; }
.rd-holder img { height: 16px; }
.rd-note { font-size: 13px; color: #c9c2d6; }
.rd-since { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 4px; }

/* Character of the week */
.sp-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px 26px; margin-bottom: 14px;
    border: 1px solid color-mix(in srgb, var(--cls) 55%, transparent); border-radius: 14px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--cls) 16%, transparent), rgba(255, 255, 255, 0.02) 60%); }
.sp-portrait { display: flex; gap: 6px; }
.sp-portrait img { height: 52px; border-radius: 8px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--cls) 70%, transparent); }
.sp-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sp-name { font-family: 'Cinzel', Georgia, serif; font-size: 34px; margin: 2px 0; font-weight: 700; }
.sp-name a { color: var(--cls) !important; border-bottom: 0 !important; }
.sp-summary { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; color: #f1e6c8; margin: 10px 0 6px; }
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.sp-tile { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.sp-tile b { display: block; font-size: 24px; color: #fff; }
.sp-tile span { font-size: 13px; color: var(--muted); }
.sp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.sp-what { white-space: normal; text-align: right; }
@media (max-width: 767px) {
    .sp-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .sp-name { font-size: 26px; }
    .sp-row { grid-template-columns: minmax(0, 1fr); }
    .sp-what { text-align: left; }
}

/* voting on next week's goal */
.wg-vote { margin-bottom: 16px; }
.wg-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-bottom: 12px; }
.wg-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
    background: rgba(255, 255, 255, 0.02); }
.wg-choice:hover { border-color: rgba(165, 107, 255, 0.45); }
.wg-choice.wg-mine { border-color: rgba(165, 107, 255, 0.75); background: rgba(165, 107, 255, 0.1); }
.wg-choice input { flex: 0 0 auto; }
.wg-choice .wg-icon { width: 34px; height: 34px; flex-basis: 34px; }
.wg-choice-text { flex: 1; min-width: 0; }
.wg-choice-text b { display: block; color: #f4f0ff; font-weight: 600; line-height: 1.25; }
.wg-choice-text small { color: var(--muted); }
.wg-votebar { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); margin: 5px 0 2px; overflow: hidden; }
.wg-votebar i { display: block; height: 100%; background: #a56bff; border-radius: 3px; }
.wg-voted { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 7px; background: rgba(165, 107, 255, 0.2); color: #d8c2ff; vertical-align: 2px; }
.ch-kind-record .ch-kicker, .ch-kind-spotlight .ch-kicker { color: #ffd65c; }
.cha-kind-record .cha-head, .cha-kind-spotlight .cha-head { color: #ffe7a0; }

/* Wanted posters */
.wt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 300px)); gap: 18px; margin-bottom: 16px; justify-content: center; }
.wt-poster { position: relative; padding: 20px 20px 16px; text-align: center; color: #3b2a17; border-radius: 4px;
    background: linear-gradient(180deg, #e9d8b0, #d9c08d); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(110, 70, 20, 0.35);
    font-family: Georgia, 'Times New Roman', serif; transform: rotate(-0.6deg); }
.wt-poster:nth-child(even) { transform: rotate(0.7deg); }
.wt-poster::before { content: ''; position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
    background: #6b4a22; box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.4); }
.wt-word { font-family: 'Cinzel', Georgia, serif; font-size: 40px; font-weight: 700; letter-spacing: 0.08em; line-height: 1; margin-top: 8px; color: #5a1f12; }
.wt-sub { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #6b4a22; margin: 4px 0 12px; }
.wt-face { display: inline-flex; gap: 6px; padding: 8px; border: 2px solid #6b4a22; background: rgba(0, 0, 0, 0.08); margin-bottom: 8px; }
.wt-face img { height: 44px; filter: sepia(0.5) contrast(1.1); }
.wt-name { font-family: 'Cinzel', Georgia, serif; font-size: 28px; margin: 4px 0 0; font-weight: 700; }
.wt-name a { color: #2b1a0c !important; border: 0 !important; }
.wt-who { font-size: 13px; color: #5c4428; }
.wt-danger { font-size: 20px; color: #8a1c0e; letter-spacing: 2px; margin: 6px 0; }
.wt-danger span { color: rgba(90, 60, 30, 0.3); }
.wt-crime { font-size: 15px; margin: 6px 0; }
.wt-crime b { color: #8a1c0e; }
.wt-victims { list-style: none; padding: 8px 0; margin: 0 0 8px; border-top: 1px dashed rgba(90, 60, 30, 0.5); border-bottom: 1px dashed rgba(90, 60, 30, 0.5); font-size: 13.5px; }
.wt-victims li { padding: 2px 0; }
.wt-victims span { color: #6b4a22; }
.wt-seen { font-size: 13px; color: #5c4428; }
.wt-seen b { color: #8a1c0e; }
.wt-top .wt-word { font-size: 46px; }
.arm-wanted { background: #c9a227 !important; color: #2b1a0c !important; }
@media (max-width: 575px) {
    .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .rd-card { padding: 10px 12px; }
    .rd-value { font-size: 19px; }
    .rd-holder { font-size: 14px; word-break: break-word; }
}

/* "Install the app" in the phone menu */
.sn-install { padding: 10px 14px; border-top: 1px solid rgba(160, 110, 230, 0.15); }
.sn-install button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-align: left;
    border: 1px solid rgba(165, 107, 255, 0.4); background: rgba(165, 107, 255, 0.1); color: #e4e0ee; cursor: pointer; }
.sn-install img { width: 36px; height: 36px; border-radius: 8px; }
.sn-install b { display: block; color: #fff; }
.sn-install span span { font-size: 12.5px; color: #9b94ad; }

/* Guilds */
.gd-list { display: flex; flex-direction: column; gap: 6px; }
.gd-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) repeat(4, 80px); gap: 10px; align-items: center; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: #e4e0ee !important; text-decoration: none !important; }
.gd-row:hover { border-color: rgba(165, 107, 255, 0.45); background: rgba(165, 107, 255, 0.07); }
.gd-rank { color: var(--muted); font-weight: 700; text-align: center; }
.gd-name b { display: block; color: #fff; font-size: 17px; }
.gd-name span { font-size: 13px; color: var(--muted); }
.gd-num { text-align: center; }
.gd-num b { display: block; font-size: 18px; color: #fff; }
.gd-num span { font-size: 12px; color: var(--muted); }
.gd-head { margin: 6px 0 18px; }
.gd-title { font-family: 'Cinzel', Georgia, serif; font-size: 36px; color: #f1e6c8; margin: 0 0 4px; font-weight: 700; }
.gd-mix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 14px; padding: 3px 0; }
.gd-bar i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; display: block; }
.gd-bar i b { display: block; height: 100%; border-radius: 4px; background: #a56bff; }
.gd-bar em { font-style: normal; text-align: right; color: var(--muted); }
.gd-roster { padding: 4px 0; }
.gd-member { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px 140px; gap: 12px; align-items: center; padding: 8px 20px;
    border-top: 1px solid var(--line); }
.gd-member:first-child { border-top: 0; }
.gd-mname img { height: 18px; }
.gd-mrank { color: #c9c2d6; font-size: 14px; }
.gd-mlevel { font-weight: 700; color: #fff; text-align: right; }
.gd-mseen { font-size: 13px; text-align: right; }
.gd-tab { font-size: 15px; font-weight: 700; color: #f4f0ff; margin: 14px 0 6px; }
.gd-bank { grid-template-columns: repeat(auto-fill, 38px); }
@media (max-width: 767px) {
    .gd-row { grid-template-columns: 24px minmax(0, 1fr) 56px 56px; padding: 10px 12px; }
    .gd-row .gd-num:nth-of-type(n+5) { display: none; }
    .gd-mix { grid-template-columns: minmax(0, 1fr); }
    .gd-member { grid-template-columns: minmax(0, 1fr) 34px; padding: 8px 14px; row-gap: 0; }
    .gd-mname { grid-column: 1; grid-row: 1; } .gd-mlevel { grid-column: 2; grid-row: 1; }
    .gd-mrank, .gd-mseen { grid-column: 1 / -1; font-size: 12.5px; text-align: left; }
    .gd-title { font-size: 26px; }
}

/* Nearly there */
.nt-chars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.nt-char { padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; color: #e4e0ee !important; text-decoration: none !important; }
.nt-char img { height: 16px; }
.nt-on { border-color: rgba(165, 107, 255, 0.7); background: rgba(165, 107, 255, 0.12); color: #fff !important; }
.nt-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.nt-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: #e4e0ee !important; text-decoration: none !important; }
.nt-item:hover { border-color: rgba(165, 107, 255, 0.45); }
.nt-icon { width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(255, 214, 92, 0.4); }
.nt-text b { display: block; color: #fff; }
.nt-text > span { display: block; font-size: 13px; color: var(--muted); }
.nt-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); margin-top: 7px; overflow: hidden; }
.nt-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #c9a227, #ffd65c); }
.nt-num { text-align: right; }
.nt-num b { display: block; font-size: 20px; color: #ffd65c; }
.nt-num span { display: block; font-size: 12px; color: var(--muted); }
.nt-pts { color: #c9c2d6 !important; }
@media (max-width: 575px) { .nt-item { grid-template-columns: 36px minmax(0, 1fr) 64px; gap: 10px; padding: 10px; } .nt-icon { width: 36px; height: 36px; } .nt-num b { font-size: 16px; } }

/* Live map */
.lm-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.lm-tabs, .lm-side { display: flex; flex-wrap: wrap; gap: 6px; }
.lm-tab { padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; color: #e4e0ee !important; text-decoration: none !important; }
.lm-on { border-color: rgba(165, 107, 255, 0.7); background: rgba(165, 107, 255, 0.14); color: #fff !important; }
.lm-layers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.lm-layers label { margin: 0; cursor: pointer; }
.lm-note { color: var(--muted); font-size: 14px; }
.lm-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.lm-map { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 12px; background: #0e1724; }
.lm-zrect { fill: rgba(120, 150, 110, 0.16); stroke: rgba(200, 220, 190, 0.28); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lm-has-pic .lm-zrect { fill: transparent; stroke: rgba(255, 255, 255, 0.12); }
.lm-zone:hover .lm-zrect { stroke: rgba(255, 255, 255, 0.6); }
.lm-heat { fill: #e74c3c; pointer-events: none; }
.lm-zname { fill: rgba(235, 230, 215, 0.75); font-size: calc(var(--lm-unit, 13px) * var(--lm-scale, 1)); pointer-events: none; font-family: Georgia, serif; }
.lm-has-pic .lm-zname { fill: rgba(255, 255, 255, 0); }
.lm-zone:hover .lm-zname { fill: #fff; }
.lm-zskull { fill: #ffb3a8; font-size: calc(var(--lm-unit, 13px) * 0.9 * var(--lm-scale, 1)); font-weight: 700; pointer-events: none; }
.lm-dot { stroke: #0b0a12; stroke-width: calc(var(--lm-unit, 13px) * 0.18); }
.lm-dotname { fill: #fff; font-size: calc(var(--lm-unit, 13px) * var(--lm-scale, 1)); font-weight: 700; paint-order: stroke; stroke: rgba(0, 0, 0, 0.75); stroke-width: calc(var(--lm-unit, 13px) * 0.22); }
.lm-hide-players .lm-dots, .lm-hide-danger .lm-heat, .lm-hide-danger .lm-zskull { display: none; }
.lm-legend { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.lm-key { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin: 0 4px 0 2px; border-radius: 50%; }
.lm-key-dot { background: #0070DE; border: 2px solid #0b0a12; }
.lm-key-heat { background: rgba(231, 76, 60, 0.7); border-radius: 3px; margin-left: 10px; }
.lm-nomap { padding: 30px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.lm-side-panel { display: flex; flex-direction: column; gap: 12px; }
.acc-mapopt { display: inline-block; margin: 0 4px 4px 0; }
@media (max-width: 991px) { .lm-body { grid-template-columns: minmax(0, 1fr); } }


/* signature card on the armory */
.arm-card { margin: 4px 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.arm-card summary { cursor: pointer; color: #f4f0ff; font-weight: 600; }
.arm-card img { display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 6px; }
.arm-card-codes { display: grid; gap: 8px; margin-bottom: 8px; }
.arm-card-codes label { margin: 0; font-size: 13px; color: var(--muted); }
.arm-card-row { display: flex; gap: 6px; margin-top: 3px; }
.arm-card-row input { font-family: var(--font-mono, monospace); font-size: 12.5px; }
.arm-card-row input[readonly] { background: rgba(0, 0, 0, 0.35); color: #e4e0ee; border-color: var(--line); }
@media (max-width: 575px) { .lm-map { --lm-scale: 1.9; } }

/* Admin: site tools results */
.adm-tool-result { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(165, 107, 255, 0.06); }
.adm-tool-result ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.adm-tool-result li { padding: 3px 0; overflow-wrap: anywhere; }
.adm-tool-result li > span { display: inline-block; width: 18px; font-weight: 700; }
.adm-tool-result .adm-ok > span { color: #6fdc8c; }
.adm-tool-result .adm-bad > span { color: #ff7b72; }

/* Live map: real map pictures and zone views */
.lm-crumbs { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.lm-crumbs a { color: var(--accent); }
.lm-crumbs span { margin: 0 4px; }
.lm-has-pic .lm-zrect { fill: transparent; stroke: transparent; }
.lm-has-pic a.lm-zone:hover .lm-zrect, .lm-has-pic a.lm-zone:focus .lm-zrect { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 230, 160, 0.7); }
.lm-has-pic .lm-zone:hover .lm-zname { fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, 0.8); stroke-width: calc(var(--lm-unit, 13px) * 0.25); }
.lm-has-pic .lm-zskull { paint-order: stroke; stroke: rgba(0, 0, 0, 0.75); stroke-width: calc(var(--lm-unit, 13px) * 0.2); }
.lm-heat-glow { mix-blend-mode: screen; }
.lm-has-pic .lm-dotname { paint-order: stroke; stroke: rgba(0, 0, 0, 0.85); stroke-width: calc(var(--lm-unit, 13px) * 0.22); }
.lm-zone-danger { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: rgba(231, 76, 60, 0.12); color: #ffb4ac; font-size: 14px; }

/* Forum */
.fm-page .sec-head { margin-bottom: 16px; }
.fm-note { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(165, 107, 255, 0.06); color: #cfc8de; font-size: 14px; }
.fm-boards, .fm-threads { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fm-board, .fm-thread { display: grid; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.fm-board:first-child, .fm-thread:first-child { border-top: 0; }
.fm-board { grid-template-columns: 42px minmax(0, 1fr) 70px 70px minmax(0, 230px); }
.fm-board:hover, .fm-thread:hover { background: rgba(165, 107, 255, 0.06); }
.fm-board-icon { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(165, 107, 255, 0.15); color: #d8c2ff; flex: 0 0 42px; }
.fm-ic-news { background: rgba(255, 200, 80, 0.14); color: #ffd98a; }
.fm-ic-bugs { background: rgba(231, 76, 60, 0.14); color: #ffa79c; }
.fm-ic-help { background: rgba(80, 180, 255, 0.14); color: #9fd3ff; }
.fm-ic-tavern { background: rgba(120, 200, 120, 0.14); color: #a8e2a8; }
.fm-board-text { min-width: 0; }
.fm-board-name { display: block; color: #f4f0ff !important; font-weight: 700; font-size: 17px; }
.fm-board-text > span, .fm-board-last span, .fm-by { display: block; color: var(--muted); font-size: 13.5px; }
.fm-board-nums, .fm-thread-nums { text-align: center; line-height: 1.2; }
.fm-board-nums b, .fm-thread-nums b { display: block; color: #f4f0ff; font-size: 16px; }
.fm-board-nums span, .fm-thread-nums span { color: var(--muted); font-size: 12px; }
.fm-board-last { min-width: 0; font-size: 14px; }
.fm-board-last a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fm-head .sec-title { margin: 0; }
.fm-head .sec-desc { margin: 0; }
.fm-head > div { flex: 1; min-width: 0; }
.fm-thread { grid-template-columns: minmax(0, 1fr) 64px 64px 150px; }
.fm-thread-title { color: #f4f0ff !important; font-weight: 600; font-size: 16px; margin-right: 6px; }
.fm-pinned { background: rgba(255, 200, 80, 0.05); }
.fm-thread-last { display: flex; flex-direction: column; font-size: 13.5px; color: #cfc8de !important; text-align: right; }
.fm-thread-last span + span { color: var(--muted); font-size: 12.5px; }
.fm-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; vertical-align: 2px;
    background: rgba(255, 255, 255, 0.08); color: #cfc8de; }
.fm-tag-pin { background: rgba(255, 200, 80, 0.16); color: #ffd98a; }
.fm-tag-admin { background: rgba(165, 107, 255, 0.22); color: #e5d4ff; }
.fm-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.fm-char { font-weight: 700; }
.fm-pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; }
.fm-pager a, .fm-pager b, .fm-pager span { min-width: 32px; padding: 4px 8px; text-align: center; border-radius: 6px; font-size: 14px; }
.fm-pager a { border: 1px solid var(--line); }
.fm-pager b { background: rgba(165, 107, 255, 0.3); color: #fff; }
.fm-thead { margin: 6px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fm-thead .sec-title { margin-bottom: 4px; overflow-wrap: anywhere; }
.fm-tmeta { color: var(--muted); font-size: 14px; }
.fm-tmeta .fm-tag { margin-right: 6px; }
.fm-mod { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.fm-mod form { margin: 0; display: flex; gap: 6px; }
.fm-mod select { width: auto; }
.fm-mod-label { font-size: 12px; color: var(--muted); }
.fm-posts { display: flex; flex-direction: column; gap: 12px; }
.fm-post { display: grid; grid-template-columns: 190px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.025); }
.fm-post-admin { border-color: rgba(165, 107, 255, 0.45); }
.fm-post-gone { display: block; padding: 10px 16px; color: var(--muted); font-size: 14px; font-style: italic; }
.fm-author { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: rgba(0, 0, 0, 0.18); border-right: 1px solid var(--line); }
.fm-class { border-radius: 8px; border: 1px solid rgba(201, 162, 39, 0.5); flex: 0 0 36px; }
.fm-author > div { min-width: 0; }
.fm-who { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.fm-body { display: flex; flex-direction: column; min-width: 0; }
.fm-text { padding: 14px 18px; color: #e8e3f2; line-height: 1.6; overflow-wrap: anywhere; flex: 1; }
.fm-quote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid rgba(165, 107, 255, 0.6); background: rgba(165, 107, 255, 0.07); color: #cfc8de; border-radius: 0 6px 6px 0; }
.fm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fm-num { color: var(--muted) !important; font-weight: 600; }
.fm-edited { font-style: italic; }
.fm-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.fm-actions form { margin: 0; }
.fm-link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; }
.fm-link:hover { text-decoration: underline; }
.fm-reply { margin-top: 22px; }
.fm-reply h2 { font-size: 20px; margin-bottom: 10px; }
.fm-form label { display: block; margin: 10px 0 4px; color: #cfc8de; font-size: 14px; }
.fm-form textarea { resize: vertical; min-height: 120px; }
.fm-help { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.fm-help code { color: #d8c2ff; }
.fm-form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.fm-as { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; }
.fm-as select { width: auto; max-width: 100%; }
@media (max-width: 767px) {
    .fm-board { grid-template-columns: 42px minmax(0, 1fr) 60px; }
    .fm-board-nums + .fm-board-nums, .fm-board-last { display: none; }
    .fm-thread { grid-template-columns: minmax(0, 1fr) 54px; gap: 10px; padding: 12px 14px; }
    .fm-hide, .fm-thread-last { display: none; }
    .fm-post { grid-template-columns: 1fr; }
    .fm-author { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
    .fm-text { padding: 12px 14px; }
    .fm-foot { padding: 8px 14px; }
    .fm-head { flex-wrap: wrap; }
}

/* Menus: grouped panels with icons (desktop) */
.sn-drop.sn-mega { padding: 10px; min-width: 300px; }
.sn-drop.sn-cols-2 { display: none; width: 580px; }
@media (hover: hover) { .sn-menu:hover > .sn-drop.sn-cols-2 { display: grid; } }
.sn-menu.sn-open > .sn-drop.sn-cols-2 { display: grid; }
.sn-drop.sn-cols-2 { grid-template-columns: 1fr 1fr; gap: 0 10px; }
.sn-menu > .sn-drop.sn-cols-2 { left: 50%; transform: translateX(-50%); }
.sn-group { display: flex; flex-direction: column; min-width: 0; }
.sn-cols-2 .sn-group + .sn-group { border-left: 1px solid rgba(160, 110, 230, 0.16); padding-left: 10px; }
.sn-cols-1 .sn-group + .sn-group { border-top: 1px solid rgba(160, 110, 230, 0.16); margin-top: 6px; padding-top: 6px; }
.sn-group-head { padding: 4px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8f86a6; }
.sn-mega a { display: flex !important; align-items: center; gap: 12px; padding: 8px 10px !important; border-radius: 8px; color: #e4e0ee !important; }
.sn-mega a:hover, .sn-mega a:focus-visible { background: rgba(165, 107, 255, 0.12); }
.sn-mega a.sn-here { background: rgba(165, 107, 255, 0.1); box-shadow: inset 2px 0 0 #a56bff; }
.sn-ico { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
    background: rgba(165, 107, 255, 0.13); color: #d8c2ff; }
.sn-mega a:hover .sn-ico { background: rgba(165, 107, 255, 0.24); color: #fff; }
.sn-mega .sn-item-text { min-width: 0; }
.sn-mega .sn-item-text b { display: block; color: #f4f0ff; font-weight: 600; line-height: 1.25; }
.sn-mega .sn-item-text small { display: block; color: #9b94ad; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Menus: phone drawer groups */
.sn-cat-head { display: block; padding: 10px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8f86a6; }
.sn-cat-links a .sn-ico { flex-basis: 28px; width: 28px; height: 28px; margin-right: 10px; }
@media (max-width: 767px) { .sn-cat-links { padding-left: 18px !important; } }

/* Account menu: the Daily reward button reads like the other entries */
.sn-drop button.sn-item { font: inherit; font-size: inherit; }
.sn-drop button.sn-item .sn-item-text b { font-size: 1rem; }

/* Account menu: same look as the main menus */
.sn-account > .sn-drop .acc-ico { box-sizing: content-box; padding: 8px; flex: 0 0 auto; border-radius: 8px; background: rgba(165, 107, 255, 0.13); color: #d8c2ff; }
.sn-account > .sn-drop a.sn-item:hover .acc-ico { background: rgba(165, 107, 255, 0.24); color: #fff; }
.sn-account > .sn-drop .sn-collect .acc-ico { background: rgba(255, 200, 80, 0.16); color: #ffd65c; }
.sn-account > .sn-drop .sn-logout .acc-ico { background: transparent; }
.sn-account > .sn-drop .sn-item-text small { white-space: nowrap; }
.sn-drop button.sn-item, .sn-logout button { font-family: inherit; font-size: 1rem; line-height: inherit; }
.sn-logout .sn-item-text b { font-size: 15px; font-weight: 500 !important; }
.sn-account > .sn-drop .sn-item-text b { font-size: 15px !important; }
.sn-account > .sn-drop .sn-item-text small { font-size: 12.5px !important; }
.fm-mod form { align-items: center; }
.fm-mod .btn, .fm-mod select { height: 32px; padding-top: 0; padding-bottom: 0; line-height: 30px; }

/* Live map: zone markers on real continents, skulls and going back on zone maps */
.lm-mapwrap { position: relative; }
.lm-pin circle { fill: rgba(20, 12, 32, 0.78); stroke: #f3dfa6; stroke-width: calc(var(--lm-unit, 13px) * 0.14); transition: fill 0.15s; }
.lm-pin-danger circle { fill: rgba(170, 30, 25, 0.9); stroke: #ffb3a8; }
a.lm-pin:hover circle, a.lm-pin:focus circle { fill: #a56bff; stroke: #fff; }
.lm-pin-n { fill: #fff; font-size: calc(var(--lm-unit, 13px) * 0.75); font-weight: 700; pointer-events: none; }
.lm-pin-name { fill: #fff; font-size: calc(var(--lm-unit, 13px) * var(--lm-scale, 1)); font-weight: 700; font-family: Georgia, serif; pointer-events: none;
    paint-order: stroke; stroke: rgba(0, 0, 0, 0.85); stroke-width: calc(var(--lm-unit, 13px) * 0.25); opacity: 0; transition: opacity 0.15s; }
.lm-pin:hover .lm-pin-name, .lm-pin:focus .lm-pin-name { opacity: 1; }
.lm-hide-danger .lm-pin-danger circle { fill: rgba(20, 12, 32, 0.78); stroke: #f3dfa6; }
.lm-hide-danger .lm-pin-n { display: none; }
.lm-backclick { cursor: zoom-out; }
.lm-skull circle { fill: rgba(150, 20, 15, 0.92); stroke: #ffd2cc; stroke-width: calc(var(--lm-unit, 13px) * 0.12); }
.lm-skull text { fill: #fff; font-size: calc(var(--lm-unit, 13px) * 1.3); pointer-events: none; }
.lm-skull:hover circle { fill: #e74c3c; }
.lm-hide-danger .lm-skulls { display: none; }
.lm-backbtn { position: absolute; top: 10px; left: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(12, 8, 20, 0.82); border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff !important; font-size: 14px; font-weight: 600; backdrop-filter: blur(4px); }
.lm-backbtn:hover { background: rgba(165, 107, 255, 0.85); text-decoration: none; }
.lm-unplaced { display: block; margin-top: 2px; color: #d9a49d; font-size: 13px; }

/* Live map: zones light up under the mouse (glows from the game) */
.lm-hlzone { pointer-events: none; }
.lm-hl-img { opacity: 0; transition: opacity 0.12s; mix-blend-mode: screen; mix-blend-mode: plus-lighter; } /* the game adds the glow's light */
.lm-hl-on .lm-hl-img { opacity: 1; }
.lm-pin-badge { pointer-events: none; }
.lm-hover-name { fill: #ffd100; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: calc(var(--lm-unit, 13px) * 1.9); pointer-events: none;
    paint-order: stroke; stroke: rgba(0, 0, 0, 0.9); stroke-width: calc(var(--lm-unit, 13px) * 0.3); letter-spacing: 0.02em; }
.lm-hover-info { fill: #ffb3a8; font-size: calc(var(--lm-unit, 13px) * 1.0); font-weight: 600; pointer-events: none;
    paint-order: stroke; stroke: rgba(0, 0, 0, 0.9); stroke-width: calc(var(--lm-unit, 13px) * 0.22); }

/* Character story */
.st-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.st-portrait img { width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(201, 162, 39, 0.5); }
.st-name { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 34px; color: var(--cls, #fff); }
.st-fallen { color: #ff9d92; }
.st-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.st-book { background: linear-gradient(180deg, rgba(232, 214, 170, 0.07), rgba(232, 214, 170, 0.03)); border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px; padding: 8px 28px; }
.st-chapter { padding: 20px 0; border-top: 1px solid rgba(201, 162, 39, 0.18); }
.st-chapter:first-child { border-top: 0; }
.st-num { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #c9a227; font-weight: 700; }
.st-chapter h2 { margin: 2px 0 2px; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; color: #f4ead2; }
.st-when { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.st-chapter p { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.7; color: #e8e1cf; margin: 0 0 8px; }
.st-chapter p b { color: #fff; }
.st-dead p { color: #ffc9c2; }
.st-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.st-facts dt { color: var(--muted); font-weight: 400; }
.st-facts dd { margin: 0; text-align: right; color: #f4f0ff; }
@media (max-width: 991px) { .st-body { grid-template-columns: 1fr; } .st-book { padding: 4px 18px; } .st-chapter p { font-size: 16px; } }
.arm-story-link { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.1); color: #f3dfa6 !important; font-weight: 600; font-size: 14px; }
.arm-story-link:hover { background: rgba(201, 162, 39, 0.22); text-decoration: none; }

/* Bounty board */
.bb-task { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.acx-card-head + .bb-task { border-top: 0; }
.bb-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(165, 107, 255, 0.14); color: #d8c2ff; }
.bb-ready .bb-icon { background: rgba(255, 200, 80, 0.18); color: #ffd65c; }
.bb-claimed .bb-icon { background: rgba(111, 220, 140, 0.14); color: #8fe3a5; }
.bb-main { flex: 1; min-width: 0; }
.bb-main b { display: block; color: #f4f0ff; }
.bb-main .wg-bar { margin: 6px 0 4px; }
.bb-sub { font-size: 13px; color: var(--muted); }
.bb-act { flex: 0 0 auto; display: flex; align-items: center; }
.bb-act form { display: flex; gap: 6px; align-items: center; margin: 0; }
.bb-pick { width: auto; max-width: 140px; }
.bb-pct { color: var(--muted); font-weight: 600; min-width: 40px; text-align: right; }
.bb-done { color: #8fe3a5; font-weight: 600; font-size: 14px; }
.bb-swap { color: var(--accent); padding: 0; }
.bb-claimed .bb-main b { color: #b9b2c9; }
.bb-bonus { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: rgba(255, 200, 80, 0.08); color: #f1dfb0; font-size: 14px; }
.bb-bonus-got { background: rgba(111, 220, 140, 0.08); color: #b8ecc6; }
@media (max-width: 575px) { .bb-task { flex-wrap: wrap; } .bb-act { width: 100%; justify-content: flex-end; } }

/* Collections */
.cl-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cl-sum { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: #e4e0ee !important; }
.cl-sum:hover { background: rgba(165, 107, 255, 0.08); text-decoration: none; }
.cl-on { border-color: rgba(165, 107, 255, 0.6); background: rgba(165, 107, 255, 0.12); }
.cl-sum span { display: block; font-size: 13px; color: var(--muted); }
.cl-sum b { font-size: 22px; color: #fff; }
.cl-sum small { color: var(--muted); margin-left: 4px; }
.cl-bar { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a56bff, #ffd65c); }
.cl-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cl-item { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px;
    border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.cl-item img, .cl-noicon { grid-row: span 2; width: 36px; height: 36px; border-radius: 6px; border: 1px solid rgba(201, 162, 39, 0.4); }
.cl-noicon { display: inline-flex; align-items: center; justify-content: center; color: #d8c2ff; background: rgba(165, 107, 255, 0.12); }
.cl-name { font-size: 14px; color: #f4f0ff; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-who { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-missing { opacity: 0.45; filter: grayscale(1); }
.cl-missing .cl-name { grid-row: span 2; }
.cl-hide-missing .cl-missing { display: none; }
.cl-top { margin: 0; padding-left: 22px; }
.cl-top li { padding: 3px 0; }

/* Wanted: bounties */
.wt-reward { margin: 10px 0 6px; padding: 6px 10px; border: 2px dashed rgba(90, 50, 20, 0.55); border-radius: 6px; text-align: center; }
.wt-reward span { display: block; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #6b3d16; font-weight: 700; }
.wt-reward b { display: block; font-family: Georgia, serif; font-size: 22px; color: #3b1d06; }
.wt-reward small { display: block; color: #6b4a2a; font-size: 12px; }
.wt-reward-none b { font-size: 15px; color: #7a5a3a; font-style: italic; }
.wt-add { margin: 4px 0 8px; text-align: left; font-size: 13px; color: #3b1d06; }
.wt-add summary { cursor: pointer; font-weight: 700; text-align: center; color: #5a2d0c; }
.wt-add form { display: grid; gap: 6px; margin-top: 8px; }
.wt-add label { display: flex; gap: 8px; align-items: center; margin: 0; color: #3b1d06; }
.wt-add .form-control { background: rgba(255, 255, 255, 0.6); color: #2b1a0c; border-color: rgba(90, 50, 20, 0.4); }
.wt-add small { color: #6b4a2a; }
.wt-paid { margin-top: 18px; }

/* World bosses & invasions */
.we-now { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.we-card { position: relative; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
    background: radial-gradient(ellipse at top right, rgba(165, 107, 255, 0.18), rgba(255, 255, 255, 0.02) 60%); }
.we-boss { background: radial-gradient(ellipse at top right, rgba(255, 140, 50, 0.2), rgba(255, 255, 255, 0.02) 60%); }
.we-invasion { background: radial-gradient(ellipse at top right, rgba(120, 220, 160, 0.16), rgba(255, 255, 255, 0.02) 60%); }
.we-live { border-color: rgba(255, 120, 90, 0.7); box-shadow: 0 0 0 1px rgba(255, 120, 90, 0.35), 0 0 30px rgba(255, 90, 60, 0.15); }
.we-kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #c9a227; font-weight: 700; }
.we-kicker b { color: #ff8f7a; }
.we-card h2 { margin: 4px 0 2px; font-family: Georgia, serif; font-size: 26px; color: #fff; }
.we-where { color: var(--muted); margin: 0 0 10px; }
.we-count { font-size: 15px; color: #e4e0ee; margin-bottom: 6px; }
.we-count b { font-size: 20px; color: #ffd65c; }
.we-count span { color: var(--muted); font-size: 13px; }
.we-tip { font-size: 13.5px; color: #b9b2c9; margin-bottom: 10px; }
.we-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.we-h { font-size: 20px; margin-bottom: 10px; }
.we-past { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.025); }
.we-past summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.we-badge { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.we-good { background: rgba(111, 220, 140, 0.16); color: #8fe3a5; }
.we-bad { background: rgba(231, 76, 60, 0.16); color: #ff9d92; }
.we-who { margin: 8px 0 0; padding-left: 18px; columns: 2; font-size: 14px; }
.we-heroes { padding-left: 18px; }
@media (max-width: 991px) { .we-now, .we-body { grid-template-columns: 1fr; } .we-who { columns: 1; } }

/* Live map: world boss / invasion marker */
.lm-event circle { fill: rgba(200, 40, 20, 0.92); stroke: #ffd2a0; stroke-width: calc(var(--lm-unit, 13px) * 0.14); }
.lm-event-invasion circle { fill: rgba(60, 140, 90, 0.92); stroke: #c6ffd8; }
.lm-event .lm-event-pulse { fill: rgba(255, 90, 40, 0.35); stroke: none; animation: lm-pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.lm-event-invasion .lm-event-pulse { fill: rgba(90, 220, 140, 0.35); }
.lm-event text { fill: #fff; font-size: calc(var(--lm-unit, 13px) * 1.1); pointer-events: none; }
.lm-event .lm-event-name { font-size: calc(var(--lm-unit, 13px) * var(--lm-scale, 1)); font-weight: 700; paint-order: stroke; stroke: rgba(0, 0, 0, 0.85);
    stroke-width: calc(var(--lm-unit, 13px) * 0.25); fill: #ffd8b0; }
@keyframes lm-pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lm-event .lm-event-pulse { animation: none; } }

/* Wanted: the character's real look as an old print */
.wt-face-3d { position: relative; display: flex; justify-content: center; width: 170px; height: 190px; margin: 0 auto 8px; padding: 0; overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(120, 80, 30, 0.18), rgba(60, 35, 10, 0.35)); }
.wt-face-3d .wt-face-icons { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.4s; }
.wt-face-3d .wt-model { position: absolute; left: -45px; right: -45px; top: -10px; height: 380px; opacity: 0; transition: opacity 0.6s;
    filter: sepia(1) saturate(0.6) contrast(1.25) brightness(0.92); }
.wt-face-3d .wt-model canvas { display: block; }
.wt-face-3d.wt-ready .wt-model { opacity: 1; }
.wt-face-3d.wt-ready .wt-face-icons { opacity: 0; }
.wt-face-3d.wt-loading::after { content: 'Drawing likeness\2026'; position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 11px; color: #6b4a2a; font-style: italic; }
.st-page input[readonly] { background: rgba(0, 0, 0, 0.35) !important; color: #d8d2e6 !important; border-color: var(--line); }

/* ---------------------------------------------------------------- front page */
.hm { text-align: left; }
.hm-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hm-status i { width: 8px; height: 8px; border-radius: 50%; background: #e0574f; box-shadow: 0 0 8px #e0574f; }
.hm-up i { background: #4fd18b; box-shadow: 0 0 8px #4fd18b; }
.hm-title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(28px, 4vw, 42px); line-height: 1.12;
    color: var(--heading); margin: 14px 0 12px; font-weight: 700; letter-spacing: -0.01em; }
.hm-lead { max-width: 56ch; color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.hm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 16px; }
.hm-link { font-weight: 600; }
.hm-realmlist { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-realmlist code, .ft-rl code { color: #e9dcff; background: rgba(165, 107, 255, 0.1); padding: 3px 8px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.hm-copy { background: transparent; border: 1px solid var(--line); color: var(--accent); border-radius: 6px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.hm-copy:hover { border-color: var(--accent); }
.hm-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }

/* "right now": one line per event */
.hm-now-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 2px;
    border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; font-size: 14px; }
.hm-now-row:last-child { border-bottom: 0; }
a.hm-now-row:hover b { color: var(--accent); }
.hm-now-row b { color: var(--heading); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-now-ic { color: var(--accent); display: grid; place-items: center; }
.hm-live .hm-now-ic { color: #ff9a7a; }
.hm-now-when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.hm-now-when b { color: #ffd76a; font-weight: 600; }
.hm-now-when em { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: #ff9a7a; border: 1px solid rgba(255, 120, 90, 0.5); border-radius: 4px; padding: 0 4px; margin-right: 4px; }

/* the four things the realm is about: small, quiet links */
.hm-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hm-feature { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; color: var(--muted);
    text-decoration: none !important; font-size: 13px; transition: background .15s; }
.hm-feature:hover { background: rgba(165, 107, 255, 0.08); color: var(--muted); }
.hm-feature b { color: var(--heading); font-size: 15px; font-weight: 600; }
.hm-feature-ic { color: var(--accent); margin-bottom: 4px; }
.hm-paper { display: flex; flex-direction: column; gap: 3px; padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--line);
    color: var(--text); text-decoration: none !important; }
.hm-paper b { font-family: Georgia, serif; font-size: 17px; color: #f3ead6; font-weight: 400; }
.hm-more { color: var(--accent); font-size: 13px; font-weight: 600; }

/* A: centred, nothing boxed */
.hm-a { text-align: center; padding: 24px 0 8px; }
.hm-a .hm-lead { margin-left: auto; margin-right: auto; }
.hm-a .hm-cta { justify-content: center; }
.hm-a .hm-hero { margin-bottom: 36px; }
.hm-a .hm-now { max-width: 620px; margin: 0 auto 30px; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-a .hm-features { text-align: center; border-top: 0; }
.hm-a .hm-feature { align-items: center; }

/* B: split */
.hm-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; margin: 8px 0 30px; }
.hm-panel { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.hm-panel .hm-kicker { display: block; margin-bottom: 4px; }
.hm-b .hm-features { border-top: 1px solid var(--line); padding-top: 14px; }

/* C: banner */
.hm-banner { text-align: center; padding: 56px 24px 22px; margin: -4px 0 18px; border-radius: 16px; border: 1px solid var(--line);
    background: radial-gradient(70% 90% at 50% 0%, rgba(165, 107, 255, 0.28), transparent 70%), rgba(9, 6, 16, 0.6); }
.hm-banner .hm-title { font-size: clamp(30px, 5vw, 52px); }
.hm-banner .hm-lead { margin-left: auto; margin-right: auto; }
.hm-banner .hm-cta { justify-content: center; }
.hm-banner-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 34px;
    padding-top: 14px; border-top: 1px solid var(--line); }
.hm-c .hm-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.hm-c .hm-now-row { border-bottom: 0; }

@media (max-width: 860px) {
    .hm-split { grid-template-columns: 1fr; }
    .hm-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-banner { padding: 36px 16px 18px; }
    .hm-banner-foot { justify-content: center; }
}
@media (max-width: 480px) {
    .hm-now-row { grid-template-columns: 24px minmax(0, 1fr); }
    .hm-now-when { grid-column: 2; white-space: normal; }
    .hm-now-row b { white-space: normal; }
}

/* ---------------------------------------------------------------- footer */
footer.ft { position: relative; height: auto; padding: 32px 16px 18px; text-align: left; margin-top: 30px; }
.ft-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
.ft-brand { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ft-brand > b { color: var(--heading); font-size: 17px; }
.ft-rl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; }
.ft-discord { font-weight: 600; margin-top: 4px; }
.ft-col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ft-col b { color: var(--heading); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.ft-col a { color: var(--muted); }
.ft-col a:hover { color: var(--accent); }
.ft-small { max-width: 1140px; margin: 24px auto 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
    .ft-inner { grid-template-columns: 1fr 1fr; }
    .ft-brand { grid-column: 1 / -1; }
}
body { margin-bottom: 0 !important; }
/* B and C: the time goes under the name, so long names are never cut */
.hm-b .hm-now-row, .hm-c .hm-now-row { grid-template-columns: 28px minmax(0, 1fr); row-gap: 1px; }
.hm-b .hm-now-row b, .hm-c .hm-now-row b { white-space: normal; }
.hm-b .hm-now-when, .hm-c .hm-now-when { grid-column: 2; white-space: normal; }
.hm-b .hm-now-ic, .hm-c .hm-now-ic { grid-row: span 2; align-self: start; padding-top: 2px; }

/* the front page banner: status and realmlist only on phones */
@media (min-width: 601px) {
    .hm-banner-foot { display: none; }
    .hm-banner { padding-bottom: 48px; }
}

.hm-title span { color: var(--accent); font-style: italic; font-weight: 400; font-family: Georgia, 'Times New Roman', serif; }

/* ---------------------------------------------------------------- how to connect */
.copy-btn { background: transparent; border: 1px solid var(--line); color: var(--accent); border-radius: 6px; padding: 3px 12px;
    font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.copied { color: #4fd18b; border-color: rgba(79, 209, 139, 0.6); }
.hc { text-align: left; max-width: 760px; }
.hc-steps { list-style: none; padding: 0; margin: 0 0 28px; }
.hc-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 24px; position: relative; }
.hc-step:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 6px; width: 2px; background: var(--line); }
.hc-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-pink)); }
.hc-body h3 { font-size: 18px; color: var(--heading); margin: 6px 0 6px; font-weight: 600; }
.hc-body p { margin: 0 0 10px; line-height: 1.6; }
.hc-note { font-size: 14px; color: var(--muted); }
.hc-body code, .hc-help code { color: #e9dcff; background: rgba(165, 107, 255, 0.1); padding: 1px 6px; border-radius: 5px; }
.hc-list { padding-left: 18px; margin: 0 0 10px; line-height: 1.6; }
.hc-copy { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 10px; background: rgba(0, 0, 0, 0.3); }
.hc-copy code { flex: 1; min-width: 0; font-size: 15px; background: none !important; padding: 0 !important; word-break: break-all; }
.hc-help h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.hc-help details { border-bottom: 1px solid var(--line); }
.hc-help summary { padding: 11px 0; cursor: pointer; color: var(--heading); font-weight: 500; }
.hc-help summary:hover { color: var(--accent); }
.hc-help details p { margin: 0 0 12px; color: var(--text); line-height: 1.6; font-size: 14px; }
.fm-tag-mod { background: rgba(79, 209, 139, 0.18); color: #a8f0cb; }
.adm-mods { list-style: none; padding: 0; margin: 0 0 14px; }
.adm-mods li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.adm-mods li form { margin-left: auto; }

/* downloads, inside step 3 of How to connect */
.dl-list { display: grid; gap: 8px; margin: 4px 0 6px; }
.dl-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.3); }
.dl-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dl-info b { color: var(--heading); }
.dl-file { font-size: 13px; color: var(--muted); }
.dl-desc { flex-basis: 100%; font-size: 14px; color: var(--muted); line-height: 1.5; }
#hc-patch { scroll-margin-top: 90px; }
@media (max-width: 480px) { .dl-item { flex-direction: column; align-items: stretch; } }
.dl-intro { line-height: 1.6; max-width: 760px; text-align: left; }
.dl-list { max-width: 760px; text-align: left; }
.dl-page { max-width: 760px; text-align: left; }
.dl-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin: 20px 0 8px; }
.dl-page .dl-list { margin-bottom: 4px; }

/* live map: the faction is the dot's outline, the class its colour */
.lm-dot.lm-dot-a { stroke: #4a8cff; }
.lm-dot.lm-dot-h { stroke: #e0473f; }
.lm-fac { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lm-fac-a { background: #4a8cff; }
.lm-fac-h { background: #e0473f; }

.lm-hide-a .lm-side-a, .lm-hide-h .lm-side-h { display: none !important; }
.lm-fac-toggle .lm-fac { margin: 0 4px 0 2px; }
.acx-daily-to { margin: 0 0 10px; color: var(--muted); }

/* search bars: the name, Search and Reset on the first line, the filters on the second */
.ah-filters > * { order: 5; }
.ah-filters input[name=q] { order: 1; }
.ah-filters .ah-go { order: 2; }
.ah-filters .ah-reset { order: 3; }
.ah-filters::before { content: ''; order: 4; flex-basis: 100%; height: 0; }
.ah-filters { row-gap: 8px; }
@media (max-width: 520px) {
    .ah-filters input[name=q] { flex: 1 1 0; min-width: 0; }
    .ah-filters select.form-control { flex: 1 1 40%; }
    .ah-lvl { width: 64px !important; flex: 1 1 0 !important; }
}

/* ---- new player guide */
.gd-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.gd-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--panel); }
.gd-toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.gd-toc a { color: var(--text, #ddd6ee); text-decoration: none; padding: 5px 8px; border-radius: 6px; font-size: 14px; }
.gd-toc a:hover { background: rgba(165, 107, 255, 0.12); color: var(--heading); }
.gd-body section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.gd-body section:last-child { border-bottom: 0; }
.gd-body h2 { font-size: 22px; color: var(--heading); margin: 0 0 12px; font-weight: 600; }
.gd-body p { line-height: 1.65; margin: 0 0 12px; }
.gd-points { padding-left: 20px; margin: 0; line-height: 1.65; }
.gd-points li { margin-bottom: 8px; }
.gd-points b, .gd-steps b { color: var(--heading); }
.gd-steps { list-style: none; counter-reset: gd; padding: 0; margin: 0; }
.gd-steps li { counter-increment: gd; position: relative; padding: 4px 0 14px 46px; line-height: 1.65; }
.gd-steps li::before { content: counter(gd); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-pink)); }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 12px; }
.gd-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel); line-height: 1.55; font-size: 14.5px; }
.gd-card b { color: var(--heading); font-size: 16px; }
.gd-card span { color: var(--muted); }
.gd-card span a { white-space: nowrap; }
.gd-card-hc { border-color: rgba(230, 80, 80, 0.45); background: linear-gradient(160deg, rgba(160, 30, 30, 0.18), var(--panel)); }
.gd-note { font-size: 14px; color: var(--muted); }
.gd-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.gd-links a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--panel); text-decoration: none; }
.gd-links a:hover { border-color: var(--accent); }
.gd-links b { color: var(--heading); }
.gd-links span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 820px) {
    .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .gd-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .gd-toc b { width: 100%; margin-bottom: 2px; }
    .gd-toc a { border: 1px solid var(--line); font-size: 13px; padding: 4px 10px; }
}

/* ---- keep me logged in, devices, notifications */
.acx-check { display: flex !important; align-items: flex-start; gap: 10px; margin: 14px 0 14px !important; cursor: pointer; color: var(--text) !important; font-size: 15px !important; }
.acx-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.acx-check small { display: block; color: var(--muted); font-size: 13px; }
.acx-devices { list-style: none; padding: 0; margin: 0 0 12px; }
.acx-devices li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.acx-devices li:last-child { border-bottom: 0; }
.acx-devices b { color: var(--heading); font-weight: 600; }
.acx-devices li > span:last-child { color: var(--muted); font-size: 13.5px; margin-left: auto; }
.acx-tag { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(165, 107, 255, 0.18); color: #d9c4ff; }
.nt-status { margin: 0 0 10px; }
.nt-status.nt-bad { color: #ffb4ad; }
.nt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nt-actions [hidden] { display: none !important; }
.nt-topics { display: flex; flex-direction: column; gap: 2px; }
.nt-topic { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; }
.nt-topic input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.nt-topic b { display: block; color: var(--heading); font-weight: 600; }
.nt-topic small { color: var(--muted); font-size: 13.5px; }
.nt-hour { background: var(--panel-solid); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 1px 4px; font-size: 13px; }
.nt-topics .btn { align-self: flex-start; margin-top: 12px; }
.adm-push-log { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.adm-push-log li { display: flex; gap: 10px; flex-wrap: wrap; padding: 3px 0; }
.adm-push-log li > span { color: var(--muted); }
.adm-push-help { margin-top: 14px; }
.adm-push-help summary { cursor: pointer; color: #d9c4ff; }
.adm-push-help .hc-copy code { white-space: normal; word-break: break-all; }
.adm-push-send { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.adm-push-send .btn { align-self: flex-start; }
p.adm-bad { color: #ff7b72; }
.adm-push-why { flex-basis: 100%; font-style: normal; color: #ffb4ad; font-size: 12.5px; padding-left: 4px; word-break: break-word; }
.stf-left { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.stf-left span { font-size: 13.5px; color: var(--muted); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.stf-left b { color: var(--heading); }
.stf-log { max-height: 260px; overflow: auto; }
.adm-dur { max-width: 130px; }

/* ---- help tickets */
.tk-status { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.tk-open { background: rgba(255, 196, 0, 0.14); color: #ffd666; }
.tk-answered { background: rgba(80, 200, 120, 0.15); color: #7fe0a0; }
.tk-closed { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.tk-esc { background: rgba(255, 90, 90, 0.16); color: #ff9b94; }
.tk-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tk-list { list-style: none; margin: 0; padding: 0; }
.tk-list li a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tk-list li:first-child a { border-top: 0; }
.tk-list li a:hover { background: rgba(165, 107, 255, 0.07); }
.tk-list b { color: var(--heading); font-weight: 600; }
.tk-when { margin-left: auto; color: var(--muted); font-size: 13px; }
.tk-from { color: var(--muted); font-size: 13px; flex-basis: 100%; order: 3; }
.tk-list-staff .tk-from { flex-basis: auto; order: 0; }
.tk-thread { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; }
.tk-msg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: rgba(255, 255, 255, 0.02); max-width: 92%; }
.tk-msg.tk-staff { align-self: flex-end; border-color: rgba(165, 107, 255, 0.4); background: rgba(165, 107, 255, 0.08); }
.tk-who { display: flex; gap: 10px; align-items: baseline; font-size: 13px; margin-bottom: 4px; }
.tk-who b { color: var(--heading); }
.tk-who span { color: var(--muted); }
.tk-body { line-height: 1.6; word-break: break-word; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tk-spacer { flex: 1; }
.tk-reply textarea { margin-top: 4px; }
.tk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tk-tabs a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; }
.tk-tabs a span { display: inline-block; min-width: 20px; text-align: center; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }
.tk-tabs a.tk-tab-here { background: rgba(165, 107, 255, 0.18); border-color: var(--accent); color: var(--heading); }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.tk-chars { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.tk-chars li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.tk-chars span { color: var(--muted); font-size: 13px; text-align: right; }
.tk-chars em { color: #7fe0a0; font-style: normal; }
.adm-head-links { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 820px) {
    .tk-layout { grid-template-columns: minmax(0, 1fr); }
    .tk-msg { max-width: 100%; }
    .tk-list li a { padding: 12px 14px; }
}
.tk-actions .btn-link { color: #c9a8ff; } .tk-actions .btn-link:hover { color: #fff; }
