/* ==========================================================================
   Forums — board index, topic lists, threads, composer (forums.php,
   recenttopics.php). Markup comes from inc/forum_ui.php; behaviour from
   js/vg-forums.js. Rules are scoped to #vg-forums (the .fm-wrap element):
   the game's global link and button skins in vg-ingame-v2.css and
   vg-components.css out-rank plain class selectors.

   Also used by chat.php (the page wraps itself in #vg-forums.ch-page) and forumposts.php.

   Contents (later sections refine earlier ones, so order matters):
     1. Base: tokens, head, boards, topic rows, posts, composer          (top)
     2. The kit's Vault look with Night House touches                     "══ The kit's Vault look"
     3. Forum improvements: board list, unread, author column, likes     "══ Forum improvements"
     4. Shared page frame: slim bar (.fm-bar), sidebar (.fm-side*),
        compact rows (.fm-list--compact), board/topic/home/search/new/
        edit/delete pages                                                 "══ Board page, rethought" onwards
     5. Chat page in the frame                                            "══ Chat in the forum frame"
   Night House dressing for all of it lives in css/vg-nighthouse.css (body.nh).
   Overridden declarations were swept out on 2026-10-13 (computed styles checked identical on every forum page).
   ========================================================================== */

#vg-forums {
    --fm-line: rgba(139, 26, 26, 0.32);
    --fm-line-soft: rgba(139, 26, 26, 0.16);
    --fm-card: linear-gradient(180deg, rgba(26, 11, 15, 0.92), rgba(13, 7, 10, 0.94));
    --fm-raise: rgba(139, 26, 26, 0.1);
    --fm-radius: 14px;
    --fm-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --fm-serif: 'Cinzel', Georgia, serif;
    max-width: 980px;
    margin: 0 auto;
    padding: 4px 12px 32px;
    font-family: var(--fm-sans);
    color: var(--vg-text);
    box-sizing: border-box;
}
#vg-forums *, #vg-forums *::before, #vg-forums *::after { box-sizing: border-box; }
#vg-forums .vg2-ic { font-size: 16px; }
/* Undo the game-wide button skin (uppercase Cinzel, hover lift) inside the forum */
#vg-forums button { text-transform: none; letter-spacing: normal; }
#vg-forums button:hover { transform: none; filter: none; }
#vg-forums a { text-decoration: none; }

/* ── Page header ─────────────────────────────────────────────── */
#vg-forums .fm-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 20px;
}
#vg-forums .fm-head__title { min-width: 0; }
#vg-forums .fm-eyebrow {
    font: 600 0.78rem/1 var(--fm-sans);
    text-transform: uppercase;
    margin-bottom: 8px;
}
#vg-forums .fm-h1 {
    margin: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}
#vg-forums .fm-sub { margin: 6px 0 0; color: var(--vg-text-dim); }
#vg-forums .fm-head__title--board { display: flex; align-items: center; gap: 14px; }
#vg-forums .fm-head__title--board .fm-board__icon { grid-row: auto; flex: 0 0 auto; width: 52px; height: 52px; }
#vg-forums .fm-head__title--board .fm-board__icon .vg2-ic { font-size: 26px; }
#vg-forums .fm-board__icon.is-coven { background: radial-gradient(circle at 30% 25%, rgba(150, 70, 200, 0.5), rgba(45, 12, 60, 0.95) 70%); }
#vg-forums .fm-head__tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; }

/* Breadcrumbs */
#vg-forums .fm-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--vg-text-faint);
    margin-bottom: 10px;
}
#vg-forums .fm-crumbs a { color: var(--vg-text-dim); }
#vg-forums .fm-crumbs a:hover { color: var(--vg-gold); }
#vg-forums .fm-crumbs__sep { opacity: 0.5; }
#vg-forums .fm-crumbs__here { color: var(--vg-text-dim); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Search */
#vg-forums .fm-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    max-width: 340px;
}
#vg-forums .fm-search .vg2-ic { position: absolute; left: 12px; color: var(--vg-text-faint); pointer-events: none; }
#vg-forums .fm-search input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 36px;
    border-radius: 999px;
    border: 1px solid var(--fm-line);
    background: rgba(0, 0, 0, 0.45);
    color: var(--vg-text-bright);
    font: 500 16px/1 var(--fm-sans);
    transition: border-color 0.15s, box-shadow 0.15s;
}
#vg-forums .fm-search input::placeholder { color: var(--vg-text-faint); }
#vg-forums .fm-search input:focus { outline: none; border-color: rgba(212, 176, 80, 0.5); box-shadow: 0 0 0 3px rgba(212, 176, 80, 0.12); }

/* ── Buttons ─────────────────────────────────────────────────── */
#vg-forums .fm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(212, 176, 80, 0.45);
    background: linear-gradient(180deg, #8f1d22, #5a0f14);
    color: #fff3dc;
    font: 600 0.9rem/1 var(--fm-sans);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(139, 26, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.12s, filter 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}
#vg-forums .fm-button:hover { filter: brightness(1.12); color: #fff; }
#vg-forums .fm-button:active { transform: translateY(1px); }
#vg-forums .fm-button .vg2-ic { font-size: 17px; }
#vg-forums .fm-button--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--fm-line);
    color: var(--vg-text-dim);
    box-shadow: none;
}
#vg-forums .fm-button--ghost:hover { color: var(--vg-gold-bright); border-color: rgba(212, 176, 80, 0.4); background: var(--fm-raise); }
#vg-forums .fm-button--ghost.is-on { color: var(--vg-gold-bright); border-color: rgba(212, 176, 80, 0.45); background: rgba(212, 176, 80, 0.08); }
#vg-forums .fm-button--danger { background: linear-gradient(180deg, #6b1414, #3a0909); border-color: rgba(239, 154, 154, 0.35); color: #ffd2d2; }
#vg-forums .fm-button--sm { height: 34px; padding: 0 12px; font-size: 0.82rem; border-radius: 9px; }
#vg-forums .fm-button[disabled] { opacity: 0.55; pointer-events: none; }

/* ── Chips, badges, flags ────────────────────────────────────── */
#vg-forums .fm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    border: 1px solid var(--fm-line);
    background: rgba(139, 26, 26, 0.12);
    color: var(--vg-text-dim);
    font: 600 0.8rem/1.3 var(--fm-sans);
    white-space: nowrap;
}
#vg-forums .fm-chip .vg2-ic { font-size: 12px; color: var(--vg-gold); }
#vg-forums a.fm-chip:hover { color: var(--vg-gold-bright); border-color: rgba(212, 176, 80, 0.4); }
#vg-forums .fm-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 6px;
    font: 700 0.75rem/1.4 var(--fm-sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: 2px;
    white-space: nowrap;
}
#vg-forums .fm-badge .vg2-ic { font-size: 11px; }
#vg-forums .fm-badge--hot { color: #ffb36b; background: rgba(255, 120, 40, 0.12); border: 1px solid rgba(255, 140, 60, 0.3); }
#vg-forums .fm-badge--ticket { color: var(--vg-gold); background: rgba(212, 176, 80, 0.1); border: 1px solid var(--vg-border-gold); }
#vg-forums .fm-badge--op { color: var(--vg-gold); background: rgba(212, 176, 80, 0.1); border: 1px solid var(--vg-border-gold); }
#vg-forums .fm-badge--locked { color: #ef9a9a; background: rgba(212, 42, 42, 0.12); border: 1px solid rgba(212, 42, 42, 0.3); }
#vg-forums .fm-badge--pinned { color: var(--vg-gold); background: rgba(212, 176, 80, 0.1); border: 1px solid var(--vg-border-gold); }
#vg-forums .fm-flag { display: inline-flex; color: var(--vg-gold); vertical-align: -2px; }
#vg-forums .fm-flag .vg2-ic { font-size: 15px; }
#vg-forums .fm-flag--lock { color: #e57373; }
#vg-forums .fm-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; display: inline-block; }

#vg-forums .fm-role {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    font: 700 0.64rem/1.4 var(--fm-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
#vg-forums .fm-role--admin { color: #ffd27a; background: rgba(212, 150, 30, 0.16); border: 1px solid rgba(212, 176, 80, 0.4); }
#vg-forums .fm-role--mod { color: #9cc8ff; background: rgba(40, 110, 210, 0.16); border: 1px solid rgba(90, 150, 230, 0.4); }
#vg-forums .fm-role--lore { color: #d6a8ff; background: rgba(140, 60, 200, 0.16); border: 1px solid rgba(170, 100, 230, 0.4); }
#vg-forums .fm-standing { font: 600 0.72rem/1.3 var(--fm-sans); }
#vg-forums .fm-standing--good { color: var(--vg-good); }
#vg-forums .fm-standing--warn { color: #e8b04a; }
#vg-forums .fm-standing--bad { color: var(--vg-crimson-bright); }

/* ── Avatars ─────────────────────────────────────────────────── */
#vg-forums .fm-av {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    color: #f6ecd8;
    font: 700 17px/1 var(--fm-serif);
    box-shadow: 0 0 0 1px rgba(212, 176, 80, 0.28);
    background: #3a1418;
    vertical-align: middle;
}
#vg-forums .fm-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#vg-forums .fm-av--xs { width: 22px; height: 22px; font-size: 10px; }
#vg-forums .fm-av--sm { width: 30px; height: 30px; font-size: 13px; }
#vg-forums .fm-av--lg { width: 48px; height: 48px; font-size: 20px; }
#vg-forums .fm-av--t0 { background: linear-gradient(135deg, #7a1a20, #3b0b10); }
#vg-forums .fm-av--t1 { background: linear-gradient(135deg, #5c2a52, #2a1027); }
#vg-forums .fm-av--t2 { background: linear-gradient(135deg, #2f3d5c, #141a2a); }
#vg-forums .fm-av--t3 { background: linear-gradient(135deg, #3c5233, #182214); }
#vg-forums .fm-av--t4 { background: linear-gradient(135deg, #7a5a24, #33240c); }
#vg-forums .fm-av--t5 { background: linear-gradient(135deg, #24504f, #0e2222); }
#vg-forums .fm-av--t6 { background: linear-gradient(135deg, #4d4a52, #1e1c22); }
#vg-forums .fm-av--t7 { background: linear-gradient(135deg, #6b2d1c, #2e120a); }
#vg-forums .fm-stack { display: inline-flex; align-items: center; padding-left: 6px; }
#vg-forums .fm-stack .fm-av { margin-left: -6px; box-shadow: 0 0 0 2px #150a0e; }

/* ── Board cards (index) ─────────────────────────────────────── */
#vg-forums .fm-section-title {
    margin: 26px 0 12px;
}
#vg-forums .fm-section-title a { color: var(--vg-gold); letter-spacing: 0.04em; text-transform: none; font-size: 0.82rem; font-weight: 600; }
#vg-forums .fm-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#vg-forums .fm-board {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 16px;
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius);
    background: var(--fm-card);
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
#vg-forums .fm-board:hover { border-color: rgba(212, 176, 80, 0.38); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
#vg-forums .fm-board__icon {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--vg-gold-bright);
    background: radial-gradient(circle at 30% 25%, rgba(212, 42, 42, 0.45), rgba(80, 12, 18, 0.9) 70%);
    border: 1px solid rgba(212, 176, 80, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#vg-forums .fm-board__icon .vg2-ic { font-size: 22px; }
#vg-forums .fm-board--coven .fm-board__icon { background: radial-gradient(circle at 30% 25%, rgba(150, 70, 200, 0.5), rgba(45, 12, 60, 0.95) 70%); }
#vg-forums .fm-board--staff .fm-board__icon { background: radial-gradient(circle at 30% 25%, rgba(60, 120, 210, 0.45), rgba(12, 28, 60, 0.95) 70%); }
#vg-forums .fm-board__name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
#vg-forums .fm-board__link { font: 700 1rem/1.3 var(--fm-serif); color: var(--vg-gold-bright); letter-spacing: 0.02em; }
#vg-forums .fm-board__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
#vg-forums .fm-board__count { flex: 0 0 auto; font-size: 0.8rem; color: var(--vg-text-faint); white-space: nowrap; }
#vg-forums .fm-board__desc { margin: 0; font-size: 0.85rem; color: var(--vg-text-dim); line-height: 1.4; }
#vg-forums .fm-board__latest {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--fm-line-soft);
    font-size: 0.8rem;
    color: var(--vg-text-faint);
    min-width: 0;
}
#vg-forums .fm-board__latest-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vg-text-dim); }
#vg-forums .fm-board__latest time { flex: 0 0 auto; }
#vg-forums .fm-board__latest--empty { font-style: italic; }

/* ── Topic list ──────────────────────────────────────────────── */
#vg-forums .fm-list {
    border: 1px solid var(--fm-line);
    background: var(--fm-card);
    overflow: hidden;
}
#vg-forums .fm-list + .fm-list { margin-top: 12px; }
#vg-forums .fm-list__label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font: 700 0.7rem/1 var(--fm-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vg-gold);
    background: rgba(212, 176, 80, 0.05);
    border-bottom: 1px solid var(--fm-line-soft);
}
#vg-forums .fm-list__label .vg2-ic { font-size: 13px; }
#vg-forums .fm-topic {
    position: relative;
    display: grid;
    border-top: 1px solid var(--fm-line-soft);
    transition: background 0.12s;
}
#vg-forums .fm-list__label + .fm-topic, #vg-forums .fm-topic:first-child { border-top: 0; }
#vg-forums .fm-topic:hover { background: var(--fm-raise); }
#vg-forums .fm-topic__av { display: flex; }
#vg-forums .fm-topic__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; min-width: 0; }
#vg-forums .fm-topic__link {
    color: var(--vg-text-bright);
    font: 600 0.98rem/1.35 var(--fm-sans);
    overflow-wrap: anywhere;
}
#vg-forums .fm-topic__link::after { content: ""; position: absolute; inset: 0; }
#vg-forums .fm-topic__link:hover { color: var(--vg-gold-bright); }
#vg-forums .fm-topic__link:visited { color: #cfc4b2; }
#vg-forums .fm-topic a:not(.fm-topic__link), #vg-forums .fm-topic .fm-badge, #vg-forums .fm-topic time { position: relative; z-index: 1; }
#vg-forums .fm-topic__excerpt {
    margin: 4px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--vg-text-faint);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
#vg-forums .fm-topic__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    font-size: 0.78rem;
    color: var(--vg-text-faint);
}
#vg-forums .fm-topic__meta .fm-name { font-weight: 600; }
#vg-forums .fm-topic__stats { display: flex; align-items: center; gap: 18px; color: var(--vg-text-dim); font-size: 0.82rem; }
#vg-forums .fm-topic__count { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 46px; font-variant-numeric: tabular-nums; font-weight: 600; }
#vg-forums .fm-topic__count .vg2-ic { font-size: 15px; color: var(--vg-text-faint); }
#vg-forums .fm-topic__count.is-zero { opacity: 0.5; }
#vg-forums .fm-topic__when { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 70px; color: var(--vg-text-faint); white-space: nowrap; }
#vg-forums .fm-topic.is-pinned { background: linear-gradient(90deg, rgba(212, 176, 80, 0.06), transparent 60%); }

#vg-forums .fm-topic.is-unread .fm-topic__av::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--vg-crimson-bright);
    box-shadow: 0 0 0 2px #140a0e, 0 0 10px rgba(212, 42, 42, 0.7);
}
#vg-forums .fm-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--vg-text-faint);
    font-size: 0.92rem;
}
#vg-forums .fm-empty .vg2-ic { font-size: 30px; margin: 0 auto 10px; color: var(--vg-text-faint); opacity: 0.6; }

/* Feed tabs */
#vg-forums .fm-tabs { display: inline-flex; border-radius: 12px; }
#vg-forums .fm-tab {
    height: 32px;
    cursor: pointer;
}

#vg-forums .fm-tabpanel[hidden] { display: none; }

/* ── Pager ───────────────────────────────────────────────────── */
#vg-forums .fm-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0; }
#vg-forums .fm-pager__nums { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
#vg-forums .fm-pager__num, #vg-forums .fm-pager__step, #vg-forums .fm-pager__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font: 600 0.84rem/1 var(--fm-sans);
    color: var(--vg-text-dim);
}
#vg-forums .fm-pager__num, #vg-forums .fm-pager__step { border: 1px solid var(--fm-line-soft); background: rgba(0, 0, 0, 0.3); }
#vg-forums .fm-pager a:hover { color: var(--vg-gold-bright); border-color: rgba(212, 176, 80, 0.4); }
#vg-forums .fm-pager__num.is-cur { background: rgba(139, 26, 26, 0.5); border-color: rgba(212, 176, 80, 0.45); color: var(--vg-gold-bright); }
#vg-forums .fm-pager__step.is-off { opacity: 0.35; }

/* ── Thread ──────────────────────────────────────────────────── */
#vg-forums .fm-thread-head {
    position: relative;
    padding: 20px 22px;
    margin-bottom: 14px;
    border: 1px solid var(--fm-line);
    border-radius: 16px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(139, 26, 26, 0.32), transparent 55%),
        var(--fm-card);
}
#vg-forums .fm-thread-head__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#vg-forums .fm-thread-head .fm-h1 { margin: 10px 0 12px; color: var(--vg-text-bright); font-family: var(--fm-sans); letter-spacing: -0.01em; }
#vg-forums .fm-thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.84rem; color: var(--vg-text-dim); }
#vg-forums .fm-thread-meta__item { display: inline-flex; align-items: center; gap: 6px; }
#vg-forums .fm-thread-meta__item .vg2-ic { color: var(--vg-text-faint); }
#vg-forums .fm-thread-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#vg-forums .fm-thread-actions form { display: contents; }

/* Posts */
#vg-forums .fm-post {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 18px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius);
    background: var(--fm-card);
    scroll-margin-top: 90px;
}
#vg-forums .fm-post[data-role="admin"] { border-color: rgba(212, 176, 80, 0.34); box-shadow: inset 3px 0 0 rgba(212, 176, 80, 0.7); }
#vg-forums .fm-post[data-role="mod"] { border-color: rgba(90, 150, 230, 0.3); box-shadow: inset 3px 0 0 rgba(90, 150, 230, 0.7); }
#vg-forums .fm-post[data-role="lore"] { border-color: rgba(170, 100, 230, 0.3); box-shadow: inset 3px 0 0 rgba(170, 100, 230, 0.7); }
#vg-forums .fm-post:target, #vg-forums .fm-post.is-flash { animation: fm-flash 2.4s ease-out; }
@keyframes fm-flash {
    0%, 30% { border-color: rgba(232, 200, 92, 0.85); box-shadow: 0 0 0 3px rgba(232, 200, 92, 0.18), 0 0 30px rgba(212, 176, 80, 0.2); }
    100% { box-shadow: none; }
}
#vg-forums .fm-post__av { padding-top: 2px; }
#vg-forums .fm-post__main { min-width: 0; }
#vg-forums .fm-post__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 12px; }
#vg-forums .fm-post__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 0.95rem; font-weight: 600; }
#vg-forums .fm-post__who .player-name-wrap { align-items: flex-start; gap: 3px; }
#vg-forums .fm-post__when { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--vg-text-faint); white-space: nowrap; }
#vg-forums .fm-post__when a { color: inherit; }
#vg-forums .fm-post__when a:hover { color: var(--vg-gold); }
#vg-forums .fm-post__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 3px; font-size: 0.76rem; color: var(--vg-text-faint); }
#vg-forums .fm-post__sub a { color: var(--vg-text-dim); }
#vg-forums .fm-post__sub a:hover { color: var(--vg-gold); }
#vg-forums .fm-post__body {
    margin-top: 12px;
    font-size: 0.97rem;
    line-height: 1.68;
    color: var(--vg-text);
    overflow-wrap: anywhere;
}
#vg-forums .fm-post__body img, #vg-forums .fm-post__body embed { max-width: 100%; height: auto; }
#vg-forums .fm-post__body a { color: var(--vg-gold); text-decoration: underline; text-decoration-color: rgba(212, 176, 80, 0.35); text-underline-offset: 2px; }
#vg-forums .fm-post__body .vg-gif, #vg-forums .fm-post__body .vg-gif img { border-radius: 10px; margin-top: 8px; }
#vg-forums .fm-post__sig {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--fm-line);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--vg-text-faint);
    max-height: 140px;
    overflow: hidden;
    overflow-wrap: anywhere;
}
#vg-forums .fm-post__sig img { max-width: 100%; max-height: 100px; height: auto; }
#vg-forums .fm-post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 10px -8px 0; }
#vg-forums .fm-post__actions-spacer { flex: 1 1 auto; }

/* Quote cards */
#vg-forums .fm-quote {
    margin: 4px 0 12px;
    padding: 10px 14px;
    border-left: 3px solid var(--vg-crimson-mid);
    border-radius: 0 10px 10px 0;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.9rem;
    color: var(--vg-text-dim);
}
#vg-forums .fm-quote__cite { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-style: normal; font-weight: 600; font-size: 0.78rem; color: var(--vg-text-faint); }
#vg-forums .fm-quote__cite .vg2-ic { font-size: 13px; color: var(--vg-crimson-bright); }
#vg-forums .fm-quote__cite a { color: var(--vg-gold); text-decoration: none; }

/* Action buttons (posts) */
#vg-forums .fm-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--vg-text-faint);
    font: 600 0.8rem/1 var(--fm-sans);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s, color 0.12s;
}
#vg-forums .fm-act:hover, #vg-forums .fm-act:focus-visible { background: rgba(139, 26, 26, 0.2); color: var(--vg-gold-bright); outline: none; }
#vg-forums .fm-act .vg2-ic { font-size: 17px; }
#vg-forums .fm-act--up:hover { color: var(--vg-good); }
#vg-forums .fm-act--down:hover { color: #ef9a9a; }
#vg-forums .fm-act.is-copied { color: var(--vg-good); }
#vg-forums .fm-post__actions .vg-report-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    opacity: 1;
    font: 600 0.8rem/1 var(--fm-sans);
    color: var(--vg-text-faint);
}
#vg-forums .fm-post__actions .vg-report-link:hover { background: rgba(139, 26, 26, 0.2); }
#vg-forums .fm-post__actions .vg-report-link:hover { color: #ef9a9a; }

/* Overflow menu */
#vg-forums .fm-menu { position: relative; }
#vg-forums .fm-menu > summary { list-style: none; }
#vg-forums .fm-menu > summary::-webkit-details-marker { display: none; }
#vg-forums .fm-menu__pop {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 30;
    min-width: 170px;
    padding: 6px;
    border: 1px solid rgba(212, 176, 80, 0.28);
    border-radius: 12px;
    background: #1a0d11;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
#vg-forums .fm-menu__pop a, #vg-forums .fm-menu__pop button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--vg-text-dim);
    font: 500 0.88rem/1 var(--fm-sans);
    text-align: left;
    cursor: pointer;
}
#vg-forums .fm-menu__pop a:hover, #vg-forums .fm-menu__pop button:hover { background: rgba(139, 26, 26, 0.25); color: var(--vg-gold-bright); }
#vg-forums .fm-menu__pop .is-danger { color: #ef9a9a; }
#vg-forums .fm-menu__pop form { margin: 0; }

#vg-forums .fm-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid rgba(212, 42, 42, 0.3);
    border-radius: var(--fm-radius);
    background: rgba(139, 26, 26, 0.12);
    color: #ef9a9a;
    font-size: 0.92rem;
}

/* ── Composer ────────────────────────────────────────────────── */
#vg-forums .fm-composer {
    border: 1px solid var(--fm-line);
    border-radius: var(--fm-radius);
    background: var(--fm-card);
    overflow: hidden;
    scroll-margin-top: 90px;
}
#vg-forums .fm-composer:focus-within { border-color: rgba(212, 176, 80, 0.4); box-shadow: 0 0 0 3px rgba(212, 176, 80, 0.08); }
#vg-forums .fm-composer__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--fm-line-soft); font-size: 0.86rem; color: var(--vg-text-dim); }
#vg-forums .fm-composer__head strong { color: var(--vg-text-bright); font-weight: 600; }
#vg-forums .fm-composer__field { padding: 12px 16px 0; }
#vg-forums .fm-composer__label { display: block; margin-bottom: 6px; font: 600 0.72rem/1 var(--fm-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--vg-text-faint); }
#vg-forums .fm-composer__title {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--fm-line-soft);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--vg-text-bright);
    font: 600 1.05rem/1 var(--fm-sans);
}
#vg-forums .fm-composer__title:focus, #vg-forums .fm-composer__select:focus { outline: none; border-color: rgba(212, 176, 80, 0.45); }
#vg-forums .fm-composer__select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--fm-line-soft);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--vg-text-bright);
    font: 500 16px/1 var(--fm-sans);
}
#vg-forums .fm-composer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 0; }
#vg-forums .fm-toolbar { display: flex; flex-wrap: wrap; gap: 2px; }
#vg-forums .fm-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--vg-text-dim);
    font: 700 0.86rem/1 var(--fm-sans);
    cursor: pointer;
}
#vg-forums .fm-tool:hover { background: rgba(139, 26, 26, 0.22); color: var(--vg-gold-bright); }
#vg-forums .fm-tool .vg2-ic { font-size: 17px; }
#vg-forums .fm-tool--gif { font-size: 0.72rem; letter-spacing: 0.06em; border: 1px solid var(--fm-line); height: 26px; margin: 4px 2px; }
#vg-forums .fm-tool--gif.has-gif { color: var(--vg-gold-bright); border-color: rgba(212, 176, 80, 0.5); }
#vg-forums .fm-tool-sep { width: 1px; height: 20px; margin: 7px 4px; background: var(--fm-line); }
#vg-forums .fm-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); }
#vg-forums .fm-seg button {
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--vg-text-faint);
    font: 600 0.8rem/1 var(--fm-sans);
    cursor: pointer;
}

#vg-forums .fm-composer__write { padding: 8px 16px 0; }
#vg-forums .fm-composer__text {
    display: block;
    width: 100%;
    min-height: 170px;
    padding: 12px 14px;
    border: 1px solid var(--fm-line-soft);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--vg-text-bright);
    font: 400 16px/1.6 var(--fm-sans);
    resize: vertical;
}
#vg-forums .fm-composer__text:focus { outline: none; border-color: rgba(212, 176, 80, 0.45); }
#vg-forums .fm-composer__preview {
    min-height: 170px;
    margin: 8px 16px 0;
    padding: 12px 14px;
    border: 1px dashed var(--fm-line);
    border-radius: 10px;
    font-size: 0.97rem;
    line-height: 1.68;
    overflow-wrap: anywhere;
}
#vg-forums .fm-composer__preview img { max-width: 100%; height: auto; }
#vg-forums .fm-composer__preview.is-loading { opacity: 0.5; }
#vg-forums .fm-composer__gif { padding: 10px 16px 0; }
#vg-forums .fm-composer__gif:empty { display: none; }
#vg-forums .fm-gif-chip { position: relative; display: inline-block; }
#vg-forums .fm-gif-chip img { display: block; max-width: 200px; max-height: 160px; border-radius: 10px; }
#vg-forums .fm-gif-chip button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 15px;
    line-height: 26px;
    cursor: pointer;
}
#vg-forums .fm-composer__opts { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 12px 16px 0; font-size: 0.86rem; color: var(--vg-text-dim); }
#vg-forums .fm-composer__opts label { display: inline-flex; align-items: center; gap: 8px; }
#vg-forums .fm-composer__opts input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--vg-crimson-mid); }
#vg-forums .fm-composer__opts input[type="text"] {
    width: 110px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--fm-line-soft);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--vg-text-bright);
    font: 500 16px/1 var(--fm-sans);
}
#vg-forums .fm-composer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; }
#vg-forums .fm-composer__hint { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.76rem; color: var(--vg-text-faint); }
#vg-forums .fm-composer__hint a { color: var(--vg-text-dim); }
#vg-forums .fm-composer__hint a:hover { color: var(--vg-gold); }
#vg-forums .fm-composer__hint kbd { font: 600 0.7rem/1 var(--fm-sans); padding: 2px 5px; border-radius: 4px; border: 1px solid var(--fm-line); background: rgba(0, 0, 0, 0.4); }
@media (hover: none) { #vg-forums .fm-composer__keys { display: none; } }
#vg-forums .fm-composer__saved { color: var(--vg-text-faint); font-size: 0.76rem; opacity: 0; transition: opacity 0.3s; }
#vg-forums .fm-composer__saved.is-on { opacity: 1; }
#vg-forums .fm-composer__send { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* New-topic drawer */
#vg-forums .fm-new { margin-bottom: 14px; }
#vg-forums .fm-new > summary { list-style: none; display: none; }
#vg-forums .fm-new > summary::-webkit-details-marker { display: none; }
#vg-forums .fm-new:not([open]) { display: none; }

/* ── Notices, toast, confirm card ────────────────────────────── */
#vg-forums .fm-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin: 0 0 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
}
#vg-forums .fm-notice .vg2-ic { font-size: 18px; margin-top: 1px; }
#vg-forums .fm-notice a { color: var(--vg-gold); text-decoration: underline; }
#vg-forums .fm-notice--success { background: rgba(122, 224, 164, 0.08); border: 1px solid rgba(122, 224, 164, 0.25); color: var(--vg-good); }
#vg-forums .fm-notice--error { background: rgba(139, 26, 26, 0.14); border: 1px solid var(--fm-line); color: #f0a0a0; }
#vg-forums .fm-toast {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: 50%;
    z-index: 10050;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(92vw, 520px);
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(122, 224, 164, 0.35);
    background: rgba(14, 26, 20, 0.96);
    color: #d6f7e3;
    font: 500 0.9rem/1.4 var(--fm-sans, 'Inter', sans-serif);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transform: translateX(-50%);
    animation: fm-toast-in 0.35s cubic-bezier(.2, .9, .3, 1.2);
}
#vg-forums .fm-toast .vg2-ic { font-size: 18px; color: var(--vg-good); flex: 0 0 auto; }
#vg-forums .fm-toast--error { border-color: rgba(212, 42, 42, 0.45); background: rgba(40, 10, 12, 0.96); color: #ffd2d2; }
#vg-forums .fm-toast--error .vg2-ic { color: var(--vg-crimson-bright); }
#vg-forums .fm-toast.is-out { opacity: 0; transform: translate(-50%, -10px); transition: opacity 0.3s, transform 0.3s; }
@keyframes fm-toast-in { from { opacity: 0; transform: translate(-50%, -14px) scale(0.97); } }
#vg-forums .fm-confirm {
    max-width: 480px;
    margin: 30px auto;
    padding: 26px 24px;
    text-align: center;
    border: 1px solid var(--fm-line);
    border-radius: 16px;
    background: var(--fm-card);
}
#vg-forums .fm-confirm .vg2-ic { font-size: 34px; margin: 0 auto 12px; color: #e57373; }
#vg-forums .fm-confirm h2 { margin: 0 0 8px; font: 700 1.2rem/1.3 var(--fm-serif); color: var(--vg-text-bright); }
#vg-forums .fm-confirm p { margin: 0 0 20px; color: var(--vg-text-dim); font-size: 0.92rem; }
#vg-forums .fm-confirm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#vg-forums .fm-confirm form { display: contents; }

#vg-forums .fm-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 22px; font-size: 0.82rem; }
#vg-forums .fm-foot-links a { color: var(--vg-text-faint); }
#vg-forums .fm-foot-links a:hover { color: var(--vg-gold); }

/* Mobile shows the avatar inline in the post header instead of in a column */
#vg-forums .fm-post__av-inline { display: none !important; }

/* ── Small screens ───────────────────────────────────────────── */
@media (max-width: 720px) {
    #vg-forums .fm-boards { grid-template-columns: minmax(0, 1fr); }
    #vg-forums .fm-search { max-width: none; }
    #vg-forums .fm-head__tools { width: 100%; }
    #vg-forums .fm-head__tools .fm-search { flex: 1 1 140px; }
}
@media (max-width: 600px) {
    #vg-forums { padding: 0 10px 28px; }
    #vg-forums .fm-topic { grid-template-columns: 34px minmax(0, 1fr); gap: 10px 12px; padding: 13px 14px; align-items: start; }
    #vg-forums .fm-topic .fm-av--md { width: 34px; height: 34px; font-size: 15px; }
    #vg-forums .fm-topic__stats { grid-column: 2; gap: 14px; margin-top: -4px; }
    #vg-forums .fm-topic__count, #vg-forums .fm-topic__when { min-width: 0; justify-content: flex-start; }
    /* the stats row already shows last activity; drop the start date to keep rows to two lines */
    #vg-forums .fm-topic__meta .fm-dot, #vg-forums .fm-topic__meta time { display: none; }
    #vg-forums .fm-topic__excerpt { -webkit-line-clamp: 2; }
    #vg-forums .fm-thread-head { padding: 16px; }
    #vg-forums .fm-post { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 8px; gap: 0; }
    #vg-forums .fm-post__av { display: none; }
    #vg-forums .fm-post__av-inline { display: inline-flex !important; }
    #vg-forums .fm-post__body { font-size: 0.96rem; }
    #vg-forums .fm-composer__send { width: 100%; }
    #vg-forums .fm-composer__send .fm-button:last-child { flex: 1 1 auto; }
    #vg-forums .fm-board { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    #vg-forums .fm-board, #vg-forums .fm-button, #vg-forums .fm-toast, #vg-forums .fm-post:target, #vg-forums .fm-post.is-flash { transition: none; animation: none; }
}


/* ══ The kit's Vault look with Night House touches (2026-10-13; owner's pick) ══
   The page head is the Vault scene card laid over the Night House's bat damask, with crimson mist rising from
   below and a candle-gold rule; tabs and buttons follow the kit; topic portraits sit in small gilt arches. */
#vg-forums .fm-head {
    position: relative; align-items: center; padding: 22px 24px; margin: 6px 0 16px; border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 -1px 0 rgba(212, 176, 80, 0.22);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(198, 47, 58, 0.30), transparent 60%),
        radial-gradient(80% 60% at 50% 120%, rgba(160, 20, 30, 0.35), transparent 70%),
        linear-gradient(180deg, rgba(10, 6, 8, 0.62), rgba(10, 6, 8, 0.9)),
        url("../images/nighthouse/damask.svg") center / 160px auto,
        #120507;
}
#vg-forums .fm-head__title:not(.fm-head__title--board) { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: center; }
#vg-forums .fm-head__title:not(.fm-head__title--board) > * { grid-column: 2; }
#vg-forums .fm-head__title:not(.fm-head__title--board)::before {
    content: ''; grid-column: 1; grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: var(--vg-r);
    border: 1px solid rgba(232, 200, 92, 0.28); background: rgba(232, 200, 92, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4b050' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.8h9a2 2 0 0 1 2 2v12.4a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5.8a2 2 0 0 1 1-2z'/%3E%3Cpath d='M9.4 8.4h6M9.4 12h6M9.4 15.6h3.6'/%3E%3C/svg%3E") center / 28px no-repeat;
}
#vg-forums .fm-head__title--board .fm-board__icon { border-radius: var(--vg-r); }
#vg-forums .fm-eyebrow { letter-spacing: 0.08em; color: var(--vg-gold); opacity: .8; }
#vg-forums .fm-h1 { font: 700 clamp(1.5rem, 4vw, 2rem)/var(--vg-lh-tight) var(--vg-font-head); letter-spacing: 0.04em; color: var(--vg-text-bright); text-shadow: 0 2px 18px rgba(198, 47, 58, 0.35); }
#vg-forums .fm-sub { font-size: 1rem; }
#vg-forums .fm-section-title { font: 600 1.05rem/var(--vg-lh-tight) var(--vg-font-body) !important; letter-spacing: normal !important; text-transform: none !important; color: var(--vg-text-bright) !important; }
#vg-forums .fm-tabs { gap: 6px; padding: 0; background: none; border: 0; }
#vg-forums .fm-tab { border-radius: var(--vg-r) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; background: rgba(255, 255, 255, 0.04) !important; color: var(--vg-text) !important; font: 600 0.9rem var(--vg-font-body) !important; letter-spacing: normal !important; text-transform: none !important; padding: 7px 14px !important; }
#vg-forums .fm-tab[aria-selected="true"] { border-color: transparent !important; background: linear-gradient(180deg, #d23a45, #9b1f2a) !important; color: #fff !important; box-shadow: 0 6px 18px rgba(198, 47, 58, 0.25) !important; }
#vg-forums .fm-seg button[aria-pressed="true"] { background: linear-gradient(180deg, #d23a45, #9b1f2a); color: #fff; }
#vg-forums .fm-list { border-radius: var(--vg-r); }
#vg-forums .fm-topic__av .fm-av { border-radius: 20px 20px 6px 6px; box-shadow: 0 0 0 1px #2a1408, 0 0 0 2px rgba(212, 176, 80, 0.55); }   /* a small gilt arch */
#vg-forums .fm-button { border-radius: var(--vg-r) !important; }

/* ══ Forum improvements (2026-10-13; owner: "the forum needs a lot of improvements") ══
   Home: boards as a list beside a Latest column. Topic lists: replies and last-post columns, server-side unread
   with a "New" jump, page links, sorting. Topic page: an author column on wide screens, likes, a floating Reply. */
#vg-forums .fm-linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; color: var(--vg-text-dim); font: 500 0.85rem var(--vg-font-body); cursor: pointer; }
#vg-forums .fm-linkbtn:hover { color: var(--vg-gold-bright); }
#vg-forums .fm-linkbtn .vg2-ic { width: 14px; height: 14px; }
#vg-forums .fm-markread { margin: 0; }
#vg-forums .fm-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Home */
#vg-forums .fm-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 24px; }
@media (min-width: 1100px) { #vg-forums .fm-home { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
#vg-forums .fm-home__side .fm-tabs { display: flex; margin: 0 0 10px; }
#vg-forums .fm-forums, #vg-forums .fm-minis { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--vg-r); background: var(--vg-card-bg, rgba(20, 12, 14, 0.85)); overflow: hidden; }
#vg-forums .fm-forum {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px minmax(0, 230px); align-items: center; gap: 14px;
    padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); position: relative;
}
#vg-forums .fm-forum:first-child { border-top: 0; }
#vg-forums .fm-forum:hover { background: rgba(255, 255, 255, 0.025); }
#vg-forums .fm-forum__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--vg-r); background: rgba(198, 47, 58, 0.14); border: 1px solid rgba(198, 47, 58, 0.3); color: #ef8a8a; }
#vg-forums .fm-forum__icon .vg2-ic { width: 22px; height: 22px; }
#vg-forums .fm-forum--coven .fm-forum__icon { background: rgba(150, 90, 210, 0.14); border-color: rgba(150, 90, 210, 0.35); color: #c9a2ea; }
#vg-forums .fm-forum--staff .fm-forum__icon { background: rgba(90, 140, 220, 0.14); border-color: rgba(90, 140, 220, 0.35); color: #9fbff0; }
#vg-forums .fm-forum__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
#vg-forums .fm-forum__link { color: var(--vg-text-bright); font: 600 1rem/1.3 var(--vg-font-body); text-decoration: none; }
#vg-forums .fm-forum__link::after { content: ""; position: absolute; inset: 0; }
#vg-forums .fm-forum__link:hover { color: var(--vg-gold-bright); }
#vg-forums .fm-forum__new { padding: 2px 7px; border-radius: 999px; background: linear-gradient(180deg, #d23a45, #9b1f2a); color: #fff; font: 700 0.68rem/1.3 var(--vg-font-body); }
#vg-forums .fm-forum__desc { margin: 3px 0 0; color: var(--vg-text-dim); font-size: 0.86rem; line-height: 1.4; }
#vg-forums .fm-forum__stats { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; color: var(--vg-text-faint); text-align: right; }
#vg-forums .fm-forum__stats b { color: var(--vg-text); font-variant-numeric: tabular-nums; }
#vg-forums .fm-forum__latest { display: flex; align-items: center; gap: 10px; min-width: 0; position: relative; z-index: 1; }
#vg-forums .fm-forum__latest--empty { color: var(--vg-text-faint); font-size: 0.82rem; }
#vg-forums .fm-forum__latest-text { display: flex; flex-direction: column; min-width: 0; font-size: 0.78rem; color: var(--vg-text-faint); }
#vg-forums .fm-forum__latest-title { color: var(--vg-text); font-size: 0.86rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vg-forums .fm-forum__latest-title:hover { color: var(--vg-gold-bright); }
#vg-forums .fm-forum__latest-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
    #vg-forums .fm-forum { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; padding: 12px 14px; }
    #vg-forums .fm-forum__icon { width: 40px; height: 40px; }
    #vg-forums .fm-forum__stats { grid-column: 2; flex-direction: row; gap: 12px; text-align: left; }
    #vg-forums .fm-forum__latest { grid-column: 2; }
}
#vg-forums .fm-mini { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
#vg-forums .fm-mini:first-child { border-top: 0; }
#vg-forums .fm-mini__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#vg-forums .fm-mini__title { color: var(--vg-text); font-size: 0.9rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#vg-forums .fm-mini__title:hover { color: var(--vg-gold-bright); }
#vg-forums .fm-mini.is-unread .fm-mini__title { color: #fff; font-weight: 600; }
#vg-forums .fm-mini.is-unread .fm-mini__title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: #e8c85c; vertical-align: middle; }
#vg-forums .fm-mini__meta { font-size: 0.75rem; color: var(--vg-text-faint); }
#vg-forums .fm-home__side .fm-foot-links { margin-top: 12px; }

/* Topic lists */
#vg-forums .fm-listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 4px 0 12px; }
#vg-forums .fm-listbar .fm-tabs { display: flex; flex-wrap: wrap; }
#vg-forums a.fm-tab { text-decoration: none; display: inline-flex; align-items: center; }

#vg-forums .fm-topic-cols { display: grid; padding: 9px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font: 600 0.72rem/1 var(--vg-font-body); color: var(--vg-text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

#vg-forums .fm-topic-cols span:nth-child(2) { text-align: center; }
#vg-forums .fm-topic-cols + .fm-topic, #vg-forums .fm-topic-cols + .fm-list__label { border-top: 0; }
#vg-forums .fm-topic__replies { display: flex; flex-direction: column; align-items: center; font-size: 0.72rem; color: var(--vg-text-faint); }
#vg-forums .fm-topic__replies b { font: 600 1rem/1.2 var(--vg-font-body); color: var(--vg-text); font-variant-numeric: tabular-nums; }
#vg-forums .fm-topic__replies.is-zero b { color: var(--vg-text-faint); }
#vg-forums .fm-topic__last { display: flex; align-items: center; gap: 9px; min-width: 0; position: relative; z-index: 1; }
#vg-forums .fm-topic__last-text { display: flex; flex-direction: column; min-width: 0; font-size: 0.78rem; color: var(--vg-text-faint); }
#vg-forums .fm-topic__last-text .fm-name { font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vg-forums .fm-topic__av { position: relative; }
#vg-forums .fm-topic.is-unread .fm-topic__av::after { display: none; }
#vg-forums .fm-unread-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #e8c85c; box-shadow: 0 0 0 2px #140a0c, 0 0 10px rgba(232, 200, 92, 0.6); }
#vg-forums .fm-topic.is-unread .fm-topic__link { color: #fff; font-weight: 700; }
#vg-forums .fm-new-link { position: relative; z-index: 1; padding: 1px 8px; border-radius: 999px; background: rgba(232, 200, 92, 0.16); border: 1px solid rgba(232, 200, 92, 0.45); color: #f1d98a; font: 700 0.7rem/1.5 var(--vg-font-body); text-decoration: none; }
#vg-forums .fm-new-link:hover { background: rgba(232, 200, 92, 0.28); }
#vg-forums .fm-topic__pages { display: inline-flex; gap: 3px; }
#vg-forums .fm-topic__pages a, #vg-forums .fm-topic__pages span { min-width: 20px; padding: 1px 5px; border-radius: 5px; text-align: center; font-size: 0.72rem; line-height: 1.4; color: var(--vg-text-dim); }
#vg-forums .fm-topic__pages a { border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; }
#vg-forums .fm-topic__pages a:hover { border-color: rgba(232, 200, 92, 0.45); color: var(--vg-gold-bright); }
@media (max-width: 760px) {
    #vg-forums .fm-topic-cols { display: none; }

    #vg-forums .fm-topic__replies { gap: 4px; }
    #vg-forums .fm-topic__replies span { display: none; }
    #vg-forums .fm-topic__last { grid-column: 2 / span 2; }
    #vg-forums .fm-topic__last .fm-av { width: 22px; height: 22px; font-size: 10px; }
    #vg-forums .fm-topic__last-text { flex-direction: row; gap: 6px; align-items: baseline; }

}

/* Pager */
#vg-forums .fm-pager { flex-wrap: wrap; }
#vg-forums .fm-pager__of { flex-basis: 100%; text-align: center; font-size: 0.75rem; color: var(--vg-text-faint); }

/* Topic page: author column */
#vg-forums .fm-av--xl { width: 96px; height: 96px; font-size: 38px; border-radius: 48px 48px 10px 10px; }
#vg-forums .fm-post__author { display: none; }
@media (min-width: 761px) {
    #vg-forums .fm-post { grid-template-columns: 150px minmax(0, 1fr); gap: 0 20px; padding: 18px 20px 12px 0; }
    #vg-forums .fm-post__author {
        display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 12px 8px; text-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.06); min-width: 0;
    }
    #vg-forums .fm-post__portrait { display: block; margin-bottom: 4px; }
    #vg-forums .fm-post__author .fm-av--xl { box-shadow: 0 0 0 1px #2a1408, 0 0 0 2px rgba(212, 176, 80, 0.55), 0 10px 22px rgba(0, 0, 0, 0.5); }
    #vg-forums .fm-post__author-name { font-weight: 600; overflow-wrap: anywhere; }
    #vg-forums .fm-post__author-name .player-name-wrap { justify-content: center; }
    #vg-forums .fm-post__author-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
    #vg-forums .fm-post__facts { display: grid; gap: 3px; width: 100%; margin: 4px 0 0; font-size: 0.76rem; }
    #vg-forums .fm-post__facts div { display: flex; justify-content: space-between; gap: 6px; min-width: 0; }
    #vg-forums .fm-post__facts dt { color: var(--vg-text-faint); }
    #vg-forums .fm-post__facts dd { margin: 0; color: var(--vg-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #vg-forums .fm-post__facts a { color: inherit; }
    #vg-forums .fm-post__facts a:hover { color: var(--vg-gold-bright); }
    #vg-forums .fm-post__who, #vg-forums .fm-post__sub { display: none; }
    #vg-forums .fm-post__head { justify-content: flex-end; }
    #vg-forums .fm-post__body { margin-top: 6px; }
}

/* Likes */
#vg-forums .fm-like-form { display: contents; }
#vg-forums button.fm-act { border: 0; background: none; box-shadow: none; font-family: inherit; font-size: 0.8rem; font-weight: 600; line-height: 1; height: 36px; letter-spacing: normal; text-transform: none; min-height: 0; cursor: pointer; }
#vg-forums .fm-like__n:empty { display: none; }
#vg-forums .fm-like__n { font-weight: 700; font-variant-numeric: tabular-nums; }
#vg-forums .fm-like.is-on { color: #ef6b77; }
#vg-forums .fm-like.is-on .fm-act__label { display: none; }
#vg-forums .fm-like.is-static { cursor: default; }

/* Floating Reply */
#vg-forums .fm-fab {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 40;
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
    background: linear-gradient(180deg, #d23a45, #9b1f2a); color: #fff; font: 600 0.92rem var(--vg-font-body); text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
#vg-forums .fm-fab[hidden] { display: none; }
#vg-forums .fm-fab .vg2-ic { width: 16px; height: 16px; }
/* Full content width, like the other refreshed pages */
#vg-forums.fm-wrap { max-width: none; }
@media (max-width: 760px) {
    #vg-forums .fm-listbar .fm-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
    #vg-forums .fm-listbar .fm-tab { flex: none; padding: 6px 11px !important; font-size: 0.82rem !important; white-space: nowrap; }
}
/* Phones: the floating Reply clears the ticker and the bottom tab bar */
@media (max-width: 767px) { #vg-forums .fm-fab { bottom: calc(112px + env(safe-area-inset-bottom)); } }
/* Topic rows lead with a status seal instead of the author's portrait (owner: a column of only portraits looked odd) */
#vg-forums .fm-topic__seal { position: relative; display: grid; place-items: center; border-radius: var(--vg-r); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--vg-text-faint); }

#vg-forums .fm-topic__seal--pin { color: var(--vg-gold); border-color: rgba(212, 176, 80, 0.3); }
#vg-forums .fm-topic__seal--flame { color: #f0a052; }
#vg-forums .fm-topic__seal--lock { opacity: 0.7; }
#vg-forums .fm-topic.is-unread .fm-topic__seal { color: #fff; background: linear-gradient(180deg, #d23a45, #9b1f2a); border-color: transparent; box-shadow: 0 4px 14px rgba(198, 47, 58, 0.3); }
#vg-forums .fm-topic__by { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { #vg-forums .fm-topic__seal {} }

/* ══ Board page, rethought (2026-10-13; owner picked "compact rows + sidebar") ══
   A slim header bar replaces the big sign; topics are one tight row each (seal, title, faces taking part, replies,
   activity); a sidebar holds the board's numbers, Mark all read, the other boards and its most active voices. */
#vg-forums .fm-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 6px 0 14px; padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--vg-r);
    background: radial-gradient(120% 160% at 0% 0%, rgba(198, 47, 58, 0.22), transparent 55%), var(--vg-card-bg, rgba(20, 12, 14, 0.85));
}
#vg-forums .fm-bar__seal { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--vg-r); background: rgba(198, 47, 58, 0.14); border: 1px solid rgba(198, 47, 58, 0.3); color: #ef8a8a; }
#vg-forums .fm-bar__seal.is-coven { background: rgba(150, 90, 210, 0.14); border-color: rgba(150, 90, 210, 0.35); color: #c9a2ea; }
#vg-forums .fm-bar__seal.is-staff { background: rgba(90, 140, 220, 0.14); border-color: rgba(90, 140, 220, 0.35); color: #9fbff0; }
#vg-forums .fm-bar__seal .vg2-ic { width: 22px; height: 22px; }
#vg-forums .fm-bar__title { flex: 1 1 220px; min-width: 0; }
#vg-forums .fm-bar__name { margin: 0; font: 700 1.35rem/1.2 var(--vg-font-head); letter-spacing: 0.03em; color: var(--vg-text-bright); }
#vg-forums .fm-bar__desc { margin: 2px 0 0; font-size: 0.88rem; color: var(--vg-text-dim); }
#vg-forums .fm-bar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#vg-forums .fm-bar__tools .fm-search { width: 220px; }

#vg-forums .fm-boardpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 22px; }
@media (min-width: 1000px) { #vg-forums .fm-boardpage { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; } }
#vg-forums .fm-boardpage .fm-listbar { margin-top: 0; }

/* Compact rows */
#vg-forums .fm-topic, #vg-forums .fm-topic-cols { grid-template-columns: 34px minmax(0, 1fr) 60px 84px; gap: 12px; }
#vg-forums .fm-topic.has-voices, #vg-forums .fm-topic-cols.has-voices { grid-template-columns: 34px minmax(0, 1fr) 104px 60px 84px; }
#vg-forums .fm-topic { padding: 10px 16px; align-items: center; }
#vg-forums .fm-topic-cols span:first-child { grid-column: 1 / span 2; }
#vg-forums .fm-topic-cols span:not(:first-child) { text-align: center; }
#vg-forums .fm-topic-cols span:last-child { text-align: right; }
#vg-forums .fm-topic__seal { width: 34px; height: 34px; }
#vg-forums .fm-topic__seal .vg2-ic { width: 16px; height: 16px; }
#vg-forums .fm-topic__link { font-size: 0.95rem; }
#vg-forums .fm-topic__meta { margin-top: 3px; }
#vg-forums .fm-topic__voices { display: flex; align-items: center; justify-content: center; gap: 4px; position: relative; z-index: 1; }
#vg-forums .fm-topic__voices .fm-stack { display: inline-flex; }
#vg-forums .fm-topic__voices .fm-av { margin-left: -6px; box-shadow: 0 0 0 2px #140a0c; }
#vg-forums .fm-topic__voices .fm-av:first-child { margin-left: 0; }
#vg-forums .fm-topic__more { font-size: 0.72rem; color: var(--vg-text-faint); font-variant-numeric: tabular-nums; }
#vg-forums .fm-topic__replies span { display: none; }
#vg-forums .fm-topic__activity { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; font-size: 0.82rem; color: var(--vg-text); }
#vg-forums .fm-topic__activity span { max-width: 100%; font-size: 0.72rem; color: var(--vg-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vg-forums .fm-topic.is-unread .fm-topic__activity time { color: #f1d98a; font-weight: 600; }
@media (max-width: 760px) {
    #vg-forums .fm-topic, #vg-forums .fm-topic.has-voices { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px; }
    #vg-forums .fm-topic__seal { width: 30px; height: 30px; grid-row: 1 / span 2; align-self: start; }
    #vg-forums .fm-topic__voices { display: none; }
    #vg-forums .fm-topic__replies { grid-column: 3; grid-row: 1; flex-direction: row; padding-top: 0; }
    #vg-forums .fm-topic__activity { grid-column: 3; grid-row: 2; }
    #vg-forums .fm-topic__last-text::before { content: none; }
}

/* Sidebar */
#vg-forums .fm-boardpage__side { display: flex; flex-direction: column; gap: 14px; }
#vg-forums .fm-side { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--vg-r); background: var(--vg-card-bg, rgba(20, 12, 14, 0.85)); }
#vg-forums .fm-side__title { margin: 0 0 8px; font: 600 0.78rem/1 var(--vg-font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--vg-text-faint); }
#vg-forums .fm-side__text { margin: 0 0 10px; font-size: 0.86rem; color: var(--vg-text-dim); }
#vg-forums .fm-side__stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; font-size: 0.8rem; color: var(--vg-text-faint); }
#vg-forums .fm-side__stats b { color: var(--vg-text-bright); font-size: 1rem; }
#vg-forums .fm-side__boards { display: flex; flex-direction: column; margin: 0 -8px; }
#vg-forums .fm-side__boards a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: var(--vg-text-dim); font-size: 0.86rem; text-decoration: none; }
#vg-forums .fm-side__boards a:hover { background: rgba(255, 255, 255, 0.04); color: var(--vg-text-bright); }
#vg-forums .fm-side__boards a.is-here { background: rgba(198, 47, 58, 0.16); color: #fff; }
#vg-forums .fm-side__boards .vg2-ic { width: 15px; height: 15px; flex: none; opacity: 0.8; }
#vg-forums .fm-side__boards span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vg-forums .fm-side__boards em { font-style: normal; padding: 1px 6px; border-radius: 999px; background: linear-gradient(180deg, #d23a45, #9b1f2a); color: #fff; font-size: 0.68rem; font-weight: 700; }
#vg-forums .fm-side__people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#vg-forums .fm-side__people li { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 0.86rem; }
#vg-forums .fm-side__people .fm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
#vg-forums .fm-side__people li > span { font-size: 0.74rem; color: var(--vg-text-faint); white-space: nowrap; }
@media (max-width: 999px) { #vg-forums .fm-side__boards { flex-direction: row; flex-wrap: wrap; gap: 4px; margin: 0; } #vg-forums .fm-side__boards a { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.08); } }
#vg-forums .fm-bar__tools .fm-search { flex: 0 0 220px; margin: 0; }
#vg-forums .fm-bar__tools .fm-button { flex: none; }
@media (min-width: 761px) { #vg-forums .fm-bar__tools { flex-wrap: nowrap; } }
@media (max-width: 760px) { #vg-forums .fm-bar__tools { width: 100%; } #vg-forums .fm-bar__tools .fm-search { flex: 1 1 auto; width: auto; } }
@media (max-width: 760px) {
    #vg-forums .fm-topic, #vg-forums .fm-topic.has-voices { align-items: start; }
    #vg-forums .fm-topic__main { grid-column: 2; grid-row: 1 / span 2; }
    #vg-forums .fm-topic__replies { align-self: start; }
    #vg-forums .fm-topic__activity { align-self: end; }
    #vg-forums .fm-bar__tools { flex-wrap: nowrap; }
    #vg-forums .fm-bar__tools .fm-search { min-width: 0; }
    #vg-forums .fm-bar__tools .fm-button { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 760px) { #vg-forums .fm-topic__replies { justify-self: end; } }

/* ══ Topic page, same shape as the board page (2026-10-13) ══ */
#vg-forums .fm-bar--thread .fm-bar__name { font-size: 1.3rem; overflow-wrap: anywhere; }
#vg-forums .fm-bar--thread .fm-bar__desc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
#vg-forums .fm-bar--thread .fm-bar__desc a:not(.fm-name) { color: var(--vg-gold); }
#vg-forums .fm-bar--thread .fm-thread-actions { margin: 0; }
#vg-forums .fm-topicpage .fm-pager { margin: 0 0 12px; }
#vg-forums .fm-topicpage .fm-pager:first-child { margin-top: 0; }
@media (min-width: 761px) {
    #vg-forums .fm-topicpage .fm-post { grid-template-columns: 128px minmax(0, 1fr); gap: 0 18px; }
    #vg-forums .fm-topicpage .fm-av--xl { width: 80px; height: 80px; font-size: 32px; border-radius: 40px 40px 8px 8px; }
}
#vg-forums .fm-side__facts { display: grid; gap: 4px; margin: 0 0 10px; font-size: 0.82rem; }
#vg-forums .fm-side__facts div { display: flex; justify-content: space-between; gap: 8px; }
#vg-forums .fm-side__facts dt { color: var(--vg-text-faint); }
#vg-forums .fm-side__facts dd { margin: 0; color: var(--vg-text); }
#vg-forums .fm-side__pages { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
#vg-forums .fm-side__pages a, #vg-forums .fm-side__pages span { min-width: 28px; padding: 4px 6px; border-radius: 6px; text-align: center; font-size: 0.8rem; color: var(--vg-text-dim); }
#vg-forums .fm-side__pages a { border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; }
#vg-forums .fm-side__pages a:hover { border-color: rgba(232, 200, 92, 0.45); color: var(--vg-gold-bright); }
#vg-forums .fm-side__pages .is-cur { background: linear-gradient(180deg, #d23a45, #9b1f2a); color: #fff; }
#vg-forums .fm-side__jumps { display: flex; gap: 14px; }
#vg-forums .fm-side__jumps a { display: inline-flex; align-items: center; gap: 5px; font-size: 0.84rem; color: var(--vg-text-dim); text-decoration: none; }
#vg-forums .fm-side__jumps a:hover { color: var(--vg-gold-bright); }
#vg-forums .fm-side__jumps .vg2-ic { width: 13px; height: 13px; }
#vg-forums .fm-side__jumps a:first-child .vg2-ic { transform: rotate(180deg); }
#vg-forums .fm-side__people .fm-badge--op { margin-left: auto; }
#vg-forums .fm-side__more { margin: 8px 0 0; font-size: 0.78rem; color: var(--vg-text-faint); }
#vg-forums .fm-side__minis { margin: 0 -16px -14px; }
#vg-forums .fm-side__minis .fm-mini { padding: 9px 16px; }
@media (max-width: 760px) { #vg-forums .fm-hide-sm { display: none; } }
@media (max-width: 999px) { #vg-forums .fm-topicpage .fm-boardpage__side section:last-child { display: none; } }
/* The sidebar has the page links on wide screens, so only the bottom pager stays */
@media (min-width: 1000px) { #vg-forums .fm-topicpage .fm-boardpage__main > .fm-pager:first-child { display: none; } }
/* Posts: room on the left of the author column */
@media (min-width: 761px) { #vg-forums .fm-post { padding-left: 20px; } }

/* ══ Forum home, same shape as the board and topic pages (2026-10-13) ══ */
#vg-forums .fm-forum-cols { display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px minmax(0, 230px); gap: 14px; padding: 9px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font: 600 0.72rem/1 var(--vg-font-body); color: var(--vg-text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
#vg-forums .fm-forum-cols span:first-child { grid-column: 1 / span 2; }
#vg-forums .fm-forum-cols span:nth-child(2) { text-align: right; }
#vg-forums .fm-forum-cols + .fm-forum { border-top: 0; }
@media (max-width: 760px) { #vg-forums .fm-forum-cols { display: none; } }
#vg-forums .fm-side__title { display: flex; justify-content: space-between; align-items: baseline; }
#vg-forums .fm-side__title a { font-size: 0.78rem; letter-spacing: normal; text-transform: none; color: var(--vg-text-dim); }
#vg-forums .fm-side--feed .fm-tabs { display: flex; margin: 0 0 10px; }
#vg-forums .fm-side .fm-empty { padding: 14px 16px; }
@media (max-width: 999px) { #vg-forums .fm-homepage .fm-boardpage__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
/* Search */
#vg-forums .fm-bar--search .fm-bar__tools .fm-search { flex-basis: 300px; }
#vg-forums .fm-bar--search .fm-bar__desc a { color: var(--vg-gold); }
#vg-forums .fm-side__boards em.is-count { background: rgba(255, 255, 255, 0.08); color: var(--vg-text-dim); }
#vg-forums .fm-side__boards a.is-here em.is-count { background: rgba(255, 255, 255, 0.16); color: #fff; }
#vg-forums .fm-note { margin: 10px 2px; font-size: 0.82rem; color: var(--vg-text-faint); }
#vg-forums .fm-list--compact .fm-topic__excerpt { -webkit-line-clamp: 1; margin-top: 2px; }
@media (max-width: 760px) { #vg-forums .fm-bar--search .fm-bar__tools .fm-search { flex-basis: auto; } }
/* New topic page */
#vg-forums .fm-newpage .fm-composer { margin: 0; }
#vg-forums .fm-newpage .fm-composer__text { min-height: 280px; }
#vg-forums .fm-side__text--note { margin: 10px 0 0; font-size: 0.78rem; }
#vg-forums .fm-side__text--foot { margin: 14px 0 0; font-size: 0.8rem; }
#vg-forums .fm-side__tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; color: var(--vg-text-dim); }
#vg-forums .fm-side__tips a { color: var(--vg-gold); }
#vg-forums .fm-bar__desc a { color: var(--vg-gold); }
#vg-forums .fm-side--danger .fm-button { width: 100%; justify-content: center; }
#vg-forums .fm-side--danger .fm-side__text { margin-bottom: 10px; }
#vg-forums .fm-newpage .fm-composer__select { width: 100%; }
/* Delete confirmation */
#vg-forums .fm-bar--danger .fm-bar__seal { background: rgba(230, 70, 70, 0.16); border-color: rgba(230, 70, 70, 0.45); color: #ff9a9a; }
#vg-forums .fm-doomed { padding: 16px 18px; border: 1px dashed rgba(230, 70, 70, 0.4); border-radius: var(--vg-r); background: rgba(40, 8, 10, 0.45); max-height: 420px; overflow: auto; }
#vg-forums .fm-doomed__head { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--vg-text-faint); }
#vg-forums .fm-doomed__title { margin: 12px 0 0; font: 600 1.1rem/1.3 var(--vg-font-body); color: var(--vg-text-bright); }
#vg-forums .fm-doomed__body { margin-top: 10px; color: var(--vg-text-dim); font-size: 0.94rem; line-height: 1.6; overflow-wrap: anywhere; opacity: 0.85; }
#vg-forums .fm-doomed__body img { max-width: 100%; height: auto; }
#vg-forums .fm-doomed__confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--vg-r); background: rgba(140, 24, 24, 0.2); border: 1px solid rgba(230, 70, 70, 0.35); color: #ffc9c9; font-size: 0.9rem; }
#vg-forums .fm-doomed__actions { display: flex; gap: 8px; }
#vg-forums .fm-doomed__actions form { display: contents; }
/* Forum posts (a player's activity) */
#vg-forums .fm-bar__seal--av { background: none; border: 0; }
#vg-forums .fm-bar__seal--av .fm-av { width: 46px; height: 46px; }
#vg-forums .fm-side--who { display: flex; flex-direction: column; align-items: center; text-align: center; }
#vg-forums .fm-side__portrait { margin-bottom: 8px; }
#vg-forums .fm-side--who .fm-av--xl { box-shadow: 0 0 0 1px #2a1408, 0 0 0 2px rgba(212, 176, 80, 0.55), 0 10px 22px rgba(0, 0, 0, 0.5); }
#vg-forums .fm-side__name { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 600; }
#vg-forums .fm-side--who .fm-side__facts { width: 100%; text-align: left; }
#vg-forums .fm-side__facts a { color: inherit; }

/* ══ Chat in the forum frame (2026-10-13) ══ */
#vg-forums.ch-page .fm-boardpage { align-items: start; }
#vg-forums.ch-page #fullChat .minichat__panel { height: max(600px, calc(100vh - 380px)); }   /* never shorter than the house window and Online now beside it (testing feedback 2026-10-15) */
@media (max-width: 900px) { #vg-forums.ch-page #fullChat .minichat__panel { height: max(440px, calc(100vh - 360px)); } }
#vg-forums.ch-page .fm-boardpage__side { max-height: calc(100vh - 340px); overflow: auto; scrollbar-width: thin; }
@media (max-width: 999px) { #vg-forums.ch-page .fm-boardpage__side { max-height: none; } }
#vg-forums .ch-online li { gap: 8px; }
#vg-forums .ch-online .ch-status { font-size: 0.72rem; color: var(--vg-text-faint); }
#vg-forums .ch-you { margin-left: auto; font-size: 0.72rem; color: var(--vg-text-faint); }
#vg-forums .ch-wbtn { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: none; color: var(--vg-text-dim); cursor: pointer; box-shadow: none; }
#vg-forums .ch-wbtn:hover { color: #d9b3ff; border-color: rgba(204, 153, 255, 0.4); }
#vg-forums .ch-wbtn .vg2-ic { width: 14px; height: 14px; }
#vg-forums .ch-side-empty { color: var(--vg-text-faint); font-size: 0.84rem; }
#vg-forums #chWhispers a.is-unread { color: #fff; }
#vg-forums #chWhispers em { background: #8a4fc4; }
#vg-forums .ch-fold > summary { list-style: none; cursor: pointer; margin: -10px 0; padding: 10px 0; }   /* a tap target, not a 14px strip */
#vg-forums .ch-fold > summary::-webkit-details-marker { display: none; }
#vg-forums .ch-fold > summary::after { content: "+"; font-size: 1rem; line-height: 0.8; }
#vg-forums .ch-fold[open] > summary::after { content: "\2212"; }
#vg-forums .ch-fold__body { margin-top: 10px; }
#vg-forums .ch-cmds { display: grid; gap: 6px; margin: 0 0 10px; font-size: 0.8rem; }
#vg-forums .ch-cmds dt { font-family: var(--vg-font-mono, ui-monospace, monospace); color: var(--vg-gold); font-size: 0.78rem; }
#vg-forums .ch-cmds dd { margin: 0; color: var(--vg-text-dim); }
#vg-forums .ch-rules { padding-left: 20px; }
#vg-forums .ch-fold__body .fm-side__text a { color: var(--vg-gold); }
/* Chat sidebar: the word-filter switch */
#vg-forums .ch-switch { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; cursor: pointer; }
#vg-forums .ch-switch input { grid-row: 1 / span 2; width: 18px; height: 18px; accent-color: #d23a45; }
#vg-forums .ch-switch span { font-weight: 600; color: var(--vg-text-bright); font-size: 0.88rem; }
#vg-forums .ch-switch small { color: var(--vg-text-faint); font-size: 0.76rem; }
#vg-forums .fm-side__share { width: 100%; justify-content: center; margin-top: 12px; }
#vg-forums .ch-oav { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 15px 15px 5px 5px; background: #2a1408; box-shadow: 0 0 0 1px rgba(212, 176, 80, 0.45); }
#vg-forums .ch-oav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; image-rendering: pixelated; }
#vg-forums .ch-oav i { font: 700 13px var(--vg-font-body); font-style: normal; color: #e8cf8a; }
#vg-forums .ch-otext { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#vg-forums .ch-otext small { font-size: 0.72rem; color: var(--vg-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vg-forums .ch-online .fm-name { flex: none; }
/* Chat page on phones: a one-line header bar, so the messages get the room */
@media (max-width: 760px) {
    #vg-forums.ch-page .fm-bar { flex-wrap: nowrap; padding: 10px 12px; gap: 10px; margin-bottom: 10px; }
    #vg-forums.ch-page .fm-bar__seal { width: 36px; height: 36px; }
    #vg-forums.ch-page .fm-bar__seal .vg2-ic { width: 18px; height: 18px; }
    #vg-forums.ch-page .fm-bar__desc { display: none; }
    #vg-forums.ch-page .fm-bar__name { font-size: 1.15rem; }
    #vg-forums.ch-page .fm-bar__tools { width: auto; flex: none; }
}
#vg-forums .ch-otags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
#vg-forums .ch-otag { padding: 0 6px; border-radius: 999px; background: rgba(150, 90, 210, 0.16); color: #c9a2ea; font-size: 0.68rem; line-height: 16px; }
#vg-forums .ch-otag--dc { background: rgba(88, 101, 242, 0.18); color: #a9b2ff; }
/* @mentions in posts (funcs/mentions.php) and the composer's @ suggestions (js/vg-forums.js) */
#vg-forums .fm-post__body a.fm-mention { color: var(--vg-gold-bright, #e8c85c); font-weight: 600; text-decoration: none; background: rgba(232, 200, 92, 0.1); padding: 0 3px; border-radius: 4px; }
#vg-forums .fm-post__body a.fm-mention:hover { background: rgba(232, 200, 92, 0.2); }
#vg-forums .fm-ac { position: absolute; z-index: 30; min-width: 200px; max-width: 280px; padding: 4px; border-radius: 10px; background: #1a0f12; border: 1px solid rgba(232, 200, 92, 0.35); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6); }
#vg-forums .fm-ac[hidden] { display: none; }
#vg-forums .fm-ac button { display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: 7px; background: none; box-shadow: none; color: var(--vg-text, #d8ccb4); font: 500 0.9rem var(--vg-font-body); text-align: left; cursor: pointer; }
#vg-forums .fm-ac button.is-on, #vg-forums .fm-ac button:hover { background: rgba(232, 200, 92, 0.14); color: #fff; }
/* Chat search (sidebar) */
#vg-forums .ch-search__box { display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.3); }
#vg-forums .ch-search__box .vg2-ic { width: 14px; height: 14px; color: var(--vg-text-faint); flex: none; }
#vg-forums .ch-search__box input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--vg-text); font: 0.88rem var(--vg-font-body); outline: none; }
#vg-forums .ch-search__results { list-style: none; margin: 8px -8px 0; padding: 0; max-height: 320px; overflow: auto; }
#vg-forums .ch-search__results button { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; box-shadow: none; text-align: left; cursor: pointer; color: var(--vg-text-dim); font: 0.82rem/1.35 var(--vg-font-body); }
#vg-forums .ch-search__results button:hover { background: rgba(255, 255, 255, 0.05); }
#vg-forums .ch-sr__head { font-size: 0.74rem; color: var(--vg-text-faint); }
#vg-forums .ch-sr__head b { color: var(--vg-text-bright); }
#vg-forums .ch-sr__text mark { background: rgba(232, 200, 92, 0.25); color: var(--vg-gold-bright); border-radius: 2px; }

/* Paragraph gaps in posts (inc/forum_ui.php fm_render_body): blank lines become one even gap */
#vg-forums .fm-para { display: block; height: 0.7em; }
/* Karma (Premium): one labelled pair in the post's actions */
#vg-forums .fm-karma { display: inline-flex; align-items: center; gap: 0; padding-left: 4px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
#vg-forums .fm-karma__label { margin: 0 2px 0 6px; font-size: 0.74rem; color: var(--vg-text-faint); }
#vg-forums .fm-karma .fm-act { padding-left: 5px; padding-right: 5px; }

/* the Latest feed's tabs share the 270px sidebar: three (staff see Staff too) didn't fit and ran out of the box (testing feedback 2026-10-15) */
#vg-forums .fm-side--feed .fm-tabs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
#vg-forums .fm-side--feed .fm-tab { flex: 1 1 auto; min-width: 0; padding: 6px 10px !important; text-align: center; }

/* Chat sidebar: the house on Discord (chat.php) */
#vg-forums .ch-dc__text { margin: 0 0 10px; color: var(--vg-text-dim); font-size: 0.86rem; line-height: 1.45; }
#vg-forums .ch-dc__text b { color: var(--vg-text-bright); font-weight: 600; }
#vg-forums a.ch-dc__btn, #vg-forums a.ch-dc__btn:visited { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: #5865f2; color: #fff; font: 600 0.85rem var(--vg-font-body); text-decoration: none; }
#vg-forums a.ch-dc__btn:hover { background: #4752c4; color: #fff; }
#vg-forums .ch-dc__btn .vg2-ic { width: 15px; height: 15px; }
/* House announcements speak as the house (chatview.php) */
.mcx-house-name { color: var(--vg-gold-bright, #e8c96a); font-variant: small-caps; letter-spacing: 0.06em; font-weight: 600; }
/* The Night House's mark and name: not a player, so nothing to click */
.minichat__msg-user.is-house, .ch-av--house { cursor: default; pointer-events: none; }
.ch-av.ch-av--house { display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #5a1620, #1d080c 75%); border: 1px solid rgba(212, 176, 80, 0.45); color: var(--vg-gold-bright, #e8c96a); }
.ch-av.ch-av--house .vg2-ic { width: 60%; height: 60%; }
