/* ==========================================================================
   World of Warcraft Classic - Portal Design System (Clean In-Game UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Marcellus&display=swap');

:root {
    --wow-gold: #f8b700;
    --wow-gold-bright: #ffd100;
    --wow-gold-dark: #996e27;
    --wow-border-gold: #684f24;
    --wow-border-frame: #3d2f17;

    --wow-panel-bg: rgba(8, 10, 15, 0.94);
    --wow-panel-inner: rgba(14, 17, 24, 0.96);

    --wow-text-main: #cdcbbe;
    --wow-text-muted: #8c887b;
    --wow-text-gold: #f8b700;

    /* WoW Class Colors */
    --wow-class-warrior: #C79C6E;
    --wow-class-paladin: #F58CBA;
    --wow-class-hunter: #ABD473;
    --wow-class-rogue: #FFF569;
    --wow-class-priest: #FFFFFF;
    --wow-class-shaman: #0070DE;
    --wow-class-mage: #69CCF0;
    --wow-class-warlock: #9482C9;
    --wow-class-druid: #FF7D0A;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Marcellus', Georgia, serif;
    background-color: #000000;
    background-image: url('../img/backgrounds/background.jpg');
    background-size: 1920px auto;
    background-position: center top;
    background-repeat: no-repeat;
    color: var(--wow-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

@media (max-width: 1920px) {
    body {
        background-size: 100% auto;
    }
}

/* tablets / phones: scale the artwork by height (centred, sides cropped) instead of
   shrinking it to the screen width, so it still fills the space above the menu */
@media (max-width: 992px) {
    body {
        background-size: auto 660px;
    }
}

@media (max-width: 576px) {
    body {
        background-size: auto 430px;
    }
}

/* Site Header & Main Navigation (Positioned below background.jpg artwork) */
.wow-site-header {
    width: 100%;
    position: relative;
    z-index: 10;
    /* keep dropdowns above the board bar / frame */
    margin-top: 480px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .wow-site-header {
        margin-top: 420px;
    }
}

@media (max-width: 992px) {
    .wow-site-header {
        margin-top: 340px;
    }
}

@media (max-width: 576px) {
    .wow-site-header {
        margin-top: 220px;
    }
}

.wow-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Main Navigation Bar - the PBWoW grey metal bar on its own
   (same grey-bar-wide.gif as the board bar), with a thin dark bevel */
.wow-main-navbar {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 52px;
    border: 1px solid #000;
    border-radius: 0;
    background: #0a0a0a url('../img/pbwow/grey-bar-wide.gif') repeat-x 0 0;
    background-size: auto 52px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px #2a2a2a,
        0 10px 30px rgba(0, 0, 0, 0.9);
}

.wow-main-navbar>.container-fluid {
    position: relative;
    z-index: 2;
}

.wow-mobile-brand {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--wow-gold-bright) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 3 Dashes Hamburger Button */
.wow-hamburger-btn {
    border: 1px solid var(--wow-border-gold) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 4px;
    padding: 9px 12px !important;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
}

.wow-hamburger-btn:focus,
.wow-hamburger-btn:hover {
    border-color: #ffd100 !important;
    background: rgba(248, 183, 0, 0.15) !important;
    box-shadow: 0 0 10px rgba(255, 209, 0, 0.4);
}

.wow-hamburger-dash {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--wow-gold-bright);
    border-radius: 1px;
    transition: all 0.2s ease;
}

.wow-nav-list {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .wow-nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        border-top: 1px solid rgba(199, 156, 94, 0.2);
    }
}

.wow-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ded1be !important;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

@media (min-width: 992px) {
    .wow-nav-tab {
        height: 52px;
        padding: 0 18px !important;
        /* PBWoW metal divider: dark groove + light edge */
        border-right: 1px solid #000;
        box-shadow: 1px 0 0 rgba(255, 255, 255, 0.07);
    }
}

@media (max-width: 991px) {
    .wow-nav-tab {
        padding: 12px 18px !important;
        border-bottom: 1px solid #000;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
        width: 100%;
        justify-content: space-between;
    }
}

.wow-nav-tab:hover,
.wow-dropdown.show>.wow-nav-tab {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 6px rgba(255, 176, 25, 0.5);
}

.wow-nav-tab.active {
    color: #ffb019 !important;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 -2px 0 #f8b700, 1px 0 0 rgba(255, 255, 255, 0.07);
    text-shadow: 0 0 8px rgba(255, 176, 25, 0.55);
}

/* Dropdown Menus - PBWoW black metal box (same as its .navblock / .dropdown-contents) */
.wow-dropdown {
    position: relative;
}

.wow-dropdown .dropdown-toggle::after {
    display: none !important;
}

.wow-caret {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    color: #a8a8a8;
}

.wow-dropdown.show .wow-caret,
.wow-dropdown:hover .wow-caret {
    color: #ffb019;
}

.wow-dropdown-menu {
    background: rgba(0, 0, 0, 0.92) !important;
    border: 1px solid #363636 !important;
    border-radius: 0 0 6px 6px;
    box-shadow:
        inset 0 0 6px 6px #000,
        0 0 0 1px #000,
        0 0 5px 2px rgba(0, 0, 0, 0.85),
        0 12px 30px rgba(0, 0, 0, 0.9);
    padding: 6px 0;
    min-width: 230px;
    margin-top: 0 !important;
}

/* pointer arrow, like phpBB's .dropdown .pointer */
.wow-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 22px;
    border: 7px solid transparent;
    border-top: 0;
    border-bottom-color: #666;
}

.wow-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 23px;
    border: 6px solid transparent;
    border-top: 0;
    border-bottom-color: #111;
}

.wow-dropdown-menu>li+li {
    border-top: 1px solid #222;
}

.wow-dropdown-item {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.84rem;
    letter-spacing: 0.5px;
    color: #f8b700 !important;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    transition: color 0.15s ease, background 0.15s ease;
    background: transparent;
    text-decoration: none;
}

.wow-dropdown-item:hover,
.wow-dropdown-item:focus {
    background: #111 !important;
    color: #ffffff !important;
}

.wow-dropdown-item.active {
    background: #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: inset 2px 0 0 #f8b700;
}

.wow-dropdown-header {
    padding: 8px 18px 10px;
}

.wow-dropdown-header-label {
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
}

.wow-dropdown-header-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffb019;
}

@media (min-width: 992px) {
    .wow-dropdown:hover>.wow-dropdown-menu {
        display: block;
    }
}

.btn-wow-register {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(180deg, #b8862d 0%, #785315 100%);
    border: 1px solid #ffd100;
    border-radius: 3px;
    padding: 7px 18px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff !important;
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 0 10px rgba(248, 183, 0, 0.4);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-wow-register:hover {
    background: linear-gradient(180deg, #d49b35 0%, #8c6119 100%);
    box-shadow: 0 0 16px rgba(255, 209, 0, 0.7);
    transform: translateY(-1px);
}

.wow-nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.84rem;
    color: #4ade80;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.07), 1px 0 0 rgba(255, 255, 255, 0.07);
    height: 52px;
}

.wow-nav-logout {
    color: #ef4444;
    font-size: 0.95rem;
    padding: 0 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    height: 52px;
}

.wow-nav-logout:hover {
    color: #f87171;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Page Containers */
.wow-container {
    max-width: 1140px;
    margin: 0 auto 60px auto;
    padding: 0 16px;
    width: 100%;
}

.wow-container-wide {
    max-width: 1140px;
}

/* Portal Window Frame */
.wow-portal-frame {
    background: var(--wow-panel-bg);
    border: 2px solid var(--wow-border-gold);
    border-radius: 4px;
    box-shadow:
        0 0 0 1px #000,
        0 15px 40px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

/* Portal Header / Realmlist Bar */
.wow-portal-header {
    background: linear-gradient(180deg, #1f180f 0%, #0d0a06 100%);
    border-bottom: 2px solid var(--wow-border-frame);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.wow-realm-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.wow-portal-copy-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #000;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--wow-border-frame);
}

.wow-portal-copy-bar code {
    color: var(--wow-gold-bright);
    font-size: 0.82rem;
    font-family: monospace;
}

/* Portal Navigation Tabs */
.wow-portal-tabs {
    display: flex;
    border-bottom: 1px solid var(--wow-border-frame);
    background: rgba(0, 0, 0, 0.5);
}

.wow-tab-btn {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--wow-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.wow-tab-btn:hover {
    color: var(--wow-text-main);
    background: rgba(248, 183, 0, 0.04);
}

.wow-tab-btn.active {
    color: var(--wow-gold-bright);
    border-bottom-color: var(--wow-gold);
    background: rgba(248, 183, 0, 0.08);
}

/* Portal Content Area */
.wow-portal-content {
    padding: 24px;
}

/* Game Dialog Inputs */
.wow-field {
    margin-bottom: 16px;
}

.wow-field-label {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--wow-gold-dark);
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
}

.wow-field-input {
    width: 100%;
    background: #000000;
    border: 1px solid var(--wow-border-frame);
    border-radius: 3px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Marcellus', serif;
    transition: border-color 0.2s ease;
}

.wow-field-input:focus {
    outline: none;
    border-color: var(--wow-gold);
    box-shadow: 0 0 8px rgba(248, 183, 0, 0.3);
}

/* Game Action Button */
/* Blizzard red button (from the classic WoW Phoenix theme): dark red body,
   carved bevel via inset shadows, gold text, red glow on hover.
   Used by every action button on the site. */
.btn-wow-enter {
    width: 100%;
    padding: 10px 20px;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd100;
    background: #600;
    border: 1px solid;
    border-color: #666 #444 #404040;
    border-radius: 4px;
    box-shadow: 0 0 5px #000, inset 0 0 2px 2px #000, inset -2px 4px 1px #900, inset 0 -4px 1px #4d0000;
    text-shadow: 0 1px 2px #000;
    cursor: pointer;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-wow-enter:hover,
.btn-wow-enter:focus-visible {
    color: #fff;
    background: #600 radial-gradient(#c30000, #600 85%);
}

.btn-wow-enter:active {
    box-shadow: 0 0 5px #000, inset 0 0 2px 2px #000, inset 0 -3px 1px #900, inset 0 3px 1px #4d0000;
}

.btn-wow-enter[disabled],
.btn-wow-enter.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #600;
    color: #ffd100;
}

/* Small Blizzard buttons: moderator tools, BBCode / formatting bars, Cancel */
.pbwow-mod-btn,
.btn-format,
.wow-bbcode-bar .btn,
.wow-btn-small {
    color: #ffd100 !important;
    background: #600 !important;
    border: 1px solid !important;
    border-color: #666 #444 #404040 !important;
    border-radius: 4px !important;
    box-shadow: 0 0 4px #000, inset 0 0 2px 1px #000, inset -1px 3px 1px #900, inset 0 -3px 1px #4d0000 !important;
    text-shadow: 0 1px 1px #000;
}

.pbwow-mod-btn:hover:not([disabled]),
.btn-format:hover,
.wow-bbcode-bar .btn:hover,
.wow-btn-small:hover {
    color: #fff !important;
    background: #600 radial-gradient(#c30000, #600 85%) !important;
}

.pbwow-mod-btn.danger:hover {
    color: #fff !important;
}

.pbwow-mod-btn.on {
    color: #fff !important;
    background: #600 radial-gradient(#a80000, #600 85%) !important;
}

/* Compact In-Game Table */
.wow-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.wow-roster-table th {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--wow-gold);
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--wow-border-frame);
    padding: 8px 12px;
    text-align: left;
}

.wow-roster-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.wow-roster-table tr:hover {
    background: rgba(248, 183, 0, 0.04);
}

/* Status Indicators */
.pulse-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

/* Class Text Colors */
.class-warrior {
    color: var(--wow-class-warrior) !important;
}

.class-paladin {
    color: var(--wow-class-paladin) !important;
}

.class-hunter {
    color: var(--wow-class-hunter) !important;
}

.class-rogue {
    color: var(--wow-class-rogue) !important;
}

.class-priest {
    color: var(--wow-class-priest) !important;
}

.class-shaman {
    color: var(--wow-class-shaman) !important;
}

.class-mage {
    color: var(--wow-class-mage) !important;
}

.class-warlock {
    color: var(--wow-class-warlock) !important;
}

.class-druid {
    color: var(--wow-class-druid) !important;
}

/* Footer */
.wow-portal-footer {
    text-align: center;
    padding: 24px 0;
    margin-top: auto;
    color: var(--wow-text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--wow-border-frame);
    background: rgba(0, 0, 0, 0.8);
}

/* Home Grid Layout */
.wow-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .wow-home-grid {
        grid-template-columns: 1fr;
    }
}

/* News Article Card */
.wow-news-card {
    background: var(--wow-panel-bg);
    border: 2px solid var(--wow-border-gold);
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.wow-news-card:hover {
    border-color: #ffd100;
}

.wow-news-banner {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #000;
    border-bottom: 2px solid var(--wow-border-frame);
}

.wow-news-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
    transition: transform 0.4s ease;
}

.wow-news-card:hover .wow-news-banner img {
    transform: scale(1.03);
}

.wow-news-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 18, 0.95) 100%);
    pointer-events: none;
}

.wow-news-body {
    padding: 22px 24px;
}

.wow-news-title {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--wow-gold-bright);
    margin-bottom: 8px;
    line-height: 1.3;
}

.wow-news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--wow-text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

.wow-news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wow-news-text {
    font-size: 0.92rem;
    color: #ded1be;
    line-height: 1.7;
}

.wow-news-text h2,
.wow-news-text h3 {
    font-family: 'Cinzel', serif;
    color: var(--wow-gold);
    margin-top: 16px;
    margin-bottom: 8px;
}

.wow-news-text blockquote {
    border: 1px solid var(--wow-border-frame);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 3px;
    padding: 12px 18px;
    margin: 14px 0;
    font-style: italic;
    color: #e5e7eb;
}

.wow-news-text ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.wow-news-text li {
    margin-bottom: 4px;
}

/* Sidebar Widgets - PBWoW black-metal boxes (same layers as forum posts:
   .post frame > grey-bar header > #1b1b1b panel) */
.wow-side-widget {
    margin-bottom: 16px;
    padding: 3px;
    background: rgba(27, 27, 27, 0.75);
    border: 2px solid #1b1b1b;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, 0.6);
}

.wow-side-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 6px 12px;
    background: url('../img/pbwow/grey-bar-wide.gif') repeat-x 0 0;
    background-size: auto 100%;
    border: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wow-side-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffb019;
    text-shadow: 0 1px 2px #000;
}

.wow-side-title i,
.wow-side-title svg {
    color: #f8b700;
}

.wow-side-tag {
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f87171;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #5a1d1d;
}

.wow-side-widget-body {
    padding: 12px 14px 14px;
    border: 1px solid #000;
    border-top: 0;
    background:
        linear-gradient(#0e0e0e 0, rgba(27, 27, 27, 0) 40px),
        linear-gradient(to top, #0e0e0e 0, rgba(27, 27, 27, 0) 30px),
        #1b1b1b;
    font-size: 0.84rem;
    color: #a89c88;
}

.wow-side-widget-body.wow-side-flush {
    padding: 4px 0;
}

.wow-side-center {
    text-align: center;
}

/* key / value rows */
.wow-side-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wow-side-row:last-of-type {
    border-bottom: 0;
}

.wow-side-row strong,
.wow-side-row a {
    color: #e1c492;
    font-weight: 700;
    text-align: right;
}

.wow-side-row a {
    text-decoration: none;
}

.wow-side-row a:hover {
    color: #fff;
}

.wow-side-widget .is-online {
    color: #4ade80;
}

.wow-side-widget .is-gold {
    color: #ffd100;
}

.wow-side-label {
    margin: 12px 0 5px;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #f8b700;
}

.wow-side-realmlist {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    background: #050505;
    border: 1px solid #3a3a3a;
    box-shadow: inset 0 0 0 1px #000, inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.wow-side-realmlist code {
    font-size: 0.8rem;
    color: #ffd100;
    word-break: break-all;
}

.wow-side-realmlist button {
    flex-shrink: 0;
    padding: 0 2px;
    background: none;
    border: 0;
    color: #f8b700;
    cursor: pointer;
}

.wow-side-realmlist button:hover {
    color: #fff;
}

.wow-side-text {
    margin: 0 0 12px;
    line-height: 1.5;
}

.wow-side-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wow-side-btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.82rem;
    gap: 8px;
}

.wow-side-note {
    margin-top: 10px;
    font-size: 0.8rem;
}

.wow-side-note a {
    color: #f8b700;
    font-weight: 700;
    text-decoration: none;
}

.wow-side-note a:hover {
    color: #fff;
}

/* Quick Resources list */
.wow-side-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wow-side-links li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wow-side-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #e1c492;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.wow-side-links a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.wow-side-links i,
.wow-side-links svg {
    width: 16px;
    color: #f8b700;
}

/* ==============================================================
   PBWoW Authentic World of Warcraft Forum & Frame Styles
   ============================================================== */

/* Breadcrumb Navigation */
.pbwow-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--wow-text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pbwow-breadcrumbs a {
    color: var(--wow-gold);
    text-decoration: none;
    transition: color 0.15s ease;
}

.pbwow-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.pbwow-breadcrumbs .separator {
    color: #684f24;
    font-size: 0.75rem;
}

/* Forum Category Header */
.pbwow-category-header {
    background: linear-gradient(180deg, #251d14 0%, #15100a 100%);
    border-bottom: 2px solid var(--wow-border-gold);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pbwow-category-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wow-gold-bright);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Forum Table & Rows */
.pbwow-table {
    width: 100%;
    border-collapse: collapse;
}

.pbwow-table thead th {
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid var(--wow-border-frame);
    color: var(--wow-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 9px 16px;
    text-align: left;
}

.pbwow-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.pbwow-table tbody tr:hover {
    background: rgba(248, 183, 0, 0.04);
}

.pbwow-forum-icon-col {
    width: 50px;
    text-align: center;
    padding: 14px 10px 14px 18px;
    vertical-align: middle;
}

.pbwow-forum-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
}

.pbwow-forum-info-col {
    padding: 14px 12px;
    vertical-align: middle;
}

.pbwow-forum-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    transition: color 0.15s ease;
}

.pbwow-forum-name:hover {
    color: var(--wow-gold-bright);
    text-decoration: underline;
}

.pbwow-forum-desc {
    font-size: 0.84rem;
    color: var(--wow-text-muted);
    line-height: 1.4;
    margin: 0;
}

.pbwow-forum-stats-col {
    width: 120px;
    text-align: center;
    padding: 14px 12px;
    font-size: 0.82rem;
    color: var(--wow-text-muted);
    vertical-align: middle;
}

.pbwow-forum-stats-col strong {
    color: var(--wow-gold);
    display: block;
    font-size: 0.95rem;
}

.pbwow-forum-lastpost-col {
    width: 240px;
    padding: 14px 18px 14px 12px;
    font-size: 0.82rem;
    color: var(--wow-text-muted);
    vertical-align: middle;
}

.pbwow-forum-lastpost-title {
    color: #ded1be;
    text-decoration: none;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.pbwow-forum-lastpost-title:hover {
    color: var(--wow-gold);
}

/* Topic Item Badge (Sticky / Announce) */
.pbwow-badge-sticky {
    background: rgba(248, 183, 0, 0.2);
    border: 1px solid var(--wow-gold);
    color: #ffd100;
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 6px;
}

.pbwow-badge-announce {
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid #ef4444;
    color: #fca5a5;
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 6px;
}

/* ==============================================================
   PBWoW post layout - mirrors phpBB's .post > .inner > (.postprofile + .postbody)
   values taken from the live PBWoW theme (colours.css / content.css)
   ============================================================== */
.pbwow-post-box {
    /* .post */
    margin: 0 1px 6px;
    padding: 3px;
    background: rgba(27, 27, 27, 0.75);
    border: 2px solid #1b1b1b;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, 0.6);
}

.pbwow-post-box.blizzard-post {
    border-color: #0b1a2c;
}

.pbwow-post-grid {
    /* .post > .inner */
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    min-height: 180px;
    padding: 2px;
    border: 1px solid #000;
    background:
        linear-gradient(#0e0e0e 0, rgba(27, 27, 27, 0) 82px),
        linear-gradient(to top, #0e0e0e 0, rgba(27, 27, 27, 0) 38px),
        #1b1b1b;
}

@media (max-width: 768px) {
    .pbwow-post-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Author Column (.postprofile) */
.pbwow-post-author {
    padding: 5px 5px 14px;
    text-align: center;
    background: url('../img/pbwow/avatar-bg1.gif') no-repeat 0 0;
}

.pbwow-post-author.bg2 {
    background-image: url('../img/pbwow/avatar-bg2.gif');
}

.pbwow-post-author.blizzard-author {
    background-image: url('../img/pbwow/avatar-bg1-blizz.gif');
}

.pbwow-post-author.blizzard-author.bg2 {
    background-image: url('../img/pbwow/avatar-bg2-blizz.gif');
}

/* Alternating rows like phpBB's .post.bg1 / .post.bg2: the whole post changes
   tone, so each avatar-bg image blends into its own panel colour
   (avatar-bg1 ends on #303030, avatar-bg2 on #1c1c1c) */
.pbwow-post-box.bg1 {
    background: rgba(16, 16, 16, 0.75);
}

.pbwow-post-box.bg1 .pbwow-post-grid {
    background:
        linear-gradient(#171717 0, rgba(49, 49, 49, 0) 82px),
        linear-gradient(to top, #1a1a1a 0, rgba(49, 49, 49, 0) 46px),
        #313131;
}

/* Post body (.postbody): 1px fading divider on its left edge */
.pbwow-post-body {
    min-width: 0;
    margin-right: 1px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%) no-repeat 0 0 / 1px 100%;
}

/* "by Name » date" line (.postbody p.author) */
.pbwow-post-author-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-left: 10px;
    padding: 8px 8px 12px 0;
    font-size: 0.78rem;
    color: #cccccc;
}

.pbwow-post-icon {
    color: #b8323a;
    margin-right: 4px;
}

.pbwow-staff-tag {
    margin-left: 8px;
    padding: 1px 6px;
    font-size: 0.7rem;
    color: #93c5fd;
    background: rgba(0, 112, 222, 0.25);
    border: 1px solid #0070DE;
    border-radius: 3px;
}

.pbwow-post-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pbwow-post-num {
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
}

.pbwow-post-num:hover {
    color: #fff;
}

.pbwow-post-btn {
    padding: 0 4px;
    background: none;
    border: 0;
    color: #8a6d2b;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.pbwow-post-btn:hover {
    color: #ffb019;
}

/* Post Message (.postbody .content): shaded top-left corner */
.pbwow-post-message {
    padding: 10px;
    background: url('../img/pbwow/postbody-top-left.png') no-repeat 0 0;
    color: #e1c492;
    font-size: 0.92rem;
    line-height: 1.6;
}

.pbwow-post-edited {
    margin-top: 20px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
    color: var(--wow-text-muted);
    font-style: italic;
}

.pbwow-post-message h2,
.pbwow-post-message h3 {
    font-family: 'Cinzel', serif;
    color: var(--wow-gold);
    margin-top: 14px;
    margin-bottom: 8px;
}

.pbwow-post-message blockquote {
    border: 1px solid var(--wow-border-frame);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    padding: 12px 18px;
    margin: 14px 0;
    font-style: italic;
    color: #e5e7eb;
}

.pbwow-post-message code,
.pbwow-post-message pre {
    background: #000;
    color: var(--wow-gold-bright);
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid var(--wow-border-frame);
    display: block;
    margin: 10px 0;
    font-size: 0.85rem;
}

/* ==============================================================
   Authentic PBWoW Golden Stone Frame System (Full 8-Piece)
   ============================================================== */
/* One element carries all 8 pieces (like PBWoW's .page-body): corners are
   135x175 / 135x192, so they must sit on the full box, not on thin strips. */
.pbwow-box-wrap,
.pbwow-forum-frame {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto 50px auto;
    position: relative;
    padding: 24px 30px 40px 30px;
    color: #ded1be;
    background:
        url('../img/pbwow/border-bot-left.gif') no-repeat 0 100%,
        url('../img/pbwow/border-bot-right.gif') no-repeat 100% 100%,
        url('../img/pbwow/border-top-right.gif') no-repeat 100% 0,
        url('../img/pbwow/border-top-left.gif') no-repeat 0 0,
        url('../img/pbwow/border-bot.gif') repeat-x 0 100%,
        url('../img/pbwow/border-top.gif') repeat-x 0 0,
        url('../img/pbwow/border-right.gif') repeat-y 100% 0,
        url('../img/pbwow/border-left.gif') repeat-y 0 0,
        rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 12px 6px rgba(0, 0, 0, 0.65);
}

/* Legacy structural hooks (header.php / footer.php) - the frame now lives on the wrapper */
.pbwow-frame-top,
.pbwow-frame-bot {
    display: none;
}

/* 2. Studded Navbar Strip with Side Fixes */
.pbwow-frame-navbar {
    min-height: 35px;
    background: url('../img/pbwow/grey-bar-wide.gif') repeat-x 0 0;
    background-size: auto 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.pbwow-frame-navbar::before {
    content: '';
    position: absolute;
    left: 0;
    top: -21px;
    width: 22px;
    height: 121px;
    background: url('../img/pbwow/forumliner-fix-left2.gif') no-repeat 0 0;
    pointer-events: none;
    z-index: 2;
}

.pbwow-frame-navbar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -21px;
    width: 22px;
    height: 100px;
    background: url('../img/pbwow/forumliner-fix-right2.gif') no-repeat 100% 0;
    pointer-events: none;
    z-index: 2;
}

.pbwow-frame-navbar .pbwow-breadcrumbs {
    margin: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.pbwow-frame-navbar .pbwow-breadcrumb-home {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--wow-gold-bright);
    text-decoration: none;
}

.pbwow-frame-navbar .pbwow-breadcrumb-home:hover {
    color: #ffffff;
    text-decoration: underline;
}

.pbwow-frame-navbar .pbwow-navbar-actions {
    font-size: 0.78rem;
    color: #a39682;
    z-index: 3;
}

/* 3. Board head: liner on top, navbar under it, frame directly below.
   The 121px end caps (left/right ::before/::after) span exactly these
   three pieces: 21px liner + 35px navbar + 65px into the frame sides. */
.pbwow-board-head {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pbwow-frame-liner {
    height: 21px;
    background: url('../img/pbwow/forumliner-top.png') repeat-x 0 0;
    width: 100%;
}

@media (max-width: 768px) {
    .pbwow-frame-navbar {
        padding: 6px 12px;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .pbwow-frame-navbar .pbwow-breadcrumbs {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .pbwow-frame-navbar::before,
    .pbwow-frame-navbar::after {
        display: none;
    }
}

/* 4. Main Body (borders are drawn by .pbwow-box-wrap) */
.pbwow-frame-body {
    position: relative;
    min-height: 200px;
}

/* Small screens: PBWoW drops the side/corner pieces and keeps top/bottom */
@media (max-width: 768px) {

    .pbwow-box-wrap,
    .pbwow-forum-frame {
        padding: 24px 12px 40px 12px;
        background:
            url('../img/pbwow/border-bot.gif') repeat-x 0 100%,
            url('../img/pbwow/border-top.gif') repeat-x 0 0,
            rgba(0, 0, 0, 0.9);
    }
}

/* Legacy pbwow-page-body alias */
.pbwow-page-body {
    background: transparent;
    padding: 0;
    margin: 0;
}

.pbwow-board-index-link {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--wow-gold-bright);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pbwow-board-index-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 2-Column PBWoW Forum Index Grid */
.pbwow-index-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: start;
    margin-top: 18px;
}

@media (max-width: 991px) {
    .pbwow-index-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Category Group Title */
.pbwow-cat-group-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wow-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 4px;
}

/* 2-Column Category Cards Grid */
.pbwow-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .pbwow-cat-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pbwow-cat-card {
    background: rgba(18, 15, 12, 0.88);
    border: 1px solid #3c301e;
    border-radius: 3px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    min-height: 110px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.pbwow-cat-card:hover {
    border-color: #c77e19;
    box-shadow: 0 0 12px rgba(199, 126, 25, 0.35);
}

.pbwow-cat-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.pbwow-cat-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pbwow-cat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pbwow-cat-title {
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffd100;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pbwow-cat-title:hover {
    color: #ffffff;
    text-decoration: underline;
}

.pbwow-cat-desc {
    font-size: 0.77rem;
    color: #9c9182;
    line-height: 1.35;
    margin-bottom: 18px;
}

.pbwow-cat-stats {
    font-size: 0.72rem;
    color: #6f6555;
    position: absolute;
    bottom: 8px;
    right: 12px;
}

.pbwow-cat-stats strong {
    color: #d1c5b4;
}

/* Statistics & Who is online panels */
.pbwow-stat-card {
    background: rgba(18, 15, 12, 0.88);
    border: 1px solid #3c301e;
    border-radius: 3px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

.pbwow-stat-card-title {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--wow-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pbwow-stat-card-body {
    font-size: 0.8rem;
    color: #b8ac9a;
    line-height: 1.6;
}

/* Right Column: Recent Topics Box */
.pbwow-recent-box {
    background: rgba(18, 15, 12, 0.88);
    border: 1px solid #3c301e;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.pbwow-recent-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.pbwow-recent-item:last-child {
    border-bottom: none;
}

.pbwow-recent-item:hover {
    background: rgba(248, 183, 0, 0.04);
}

.pbwow-recent-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pbwow-recent-content {
    flex: 1;
    min-width: 0;
}

.pbwow-recent-link {
    font-size: 0.85rem;
    color: #00c0ff;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.35;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pbwow-recent-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.pbwow-recent-meta {
    font-size: 0.72rem;
    color: #7f7465;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom Pagination & Footer in Frame */
.pbwow-recent-pagination {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid #3c301e;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.pbwow-recent-pagination span,
.pbwow-recent-pagination a {
    display: inline-block;
    padding: 1px 7px;
    font-size: 0.72rem;
    background: #0d0a07;
    border: 1px solid #3c301e;
    color: #ffd100;
    text-decoration: none;
    border-radius: 2px;
}

.pbwow-recent-pagination span.active {
    background: #ffd100;
    color: #000;
    font-weight: bold;
    border-color: #ffd100;
}

.pbwow-frame-footer {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(199, 156, 94, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #73695b;
    flex-wrap: wrap;
    gap: 8px;
}

/* Quotes in Forum Posts */
.pbwow-quote {
    background: rgba(12, 10, 8, 0.85);
    border: 1px solid rgba(199, 156, 94, 0.35);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    padding: 12px 18px;
    margin: 14px 0;
}

.pbwow-quote-header {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--wow-gold-bright);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.pbwow-quote-body {
    font-style: italic;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Code Blocks in Forum Posts */
.pbwow-code-box {
    background: #08090c;
    border: 1px solid var(--wow-border-frame);
    border-radius: 4px;
    margin: 14px 0;
    overflow: hidden;
}

.pbwow-code-header {
    background: #12141c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    font-size: 0.72rem;
    color: var(--wow-text-muted);
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pbwow-code-box pre {
    margin: 0;
    padding: 12px 16px;
    background: transparent;
    border: none;
}

.pbwow-code-box code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #67e8f9;
}

/* Portal panels inside the PBWoW frame: the frame already supplies the
   ornate border, so panels become plain PBWoW "forumbg" boxes. */
.pbwow-box-wrap .wow-portal-frame {
    background: #0c0c0c;
    /* opaque, so the frame's corner scrollwork doesn't bleed through */
    border: 1px solid #3c301e;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0, 0, 0, 0.6);
}

.pbwow-box-wrap .wow-portal-header {
    background: url('../img/pbwow/grey-bar-wide.gif') repeat-x 0 0;
    background-size: auto 100%;
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 #3c301e;
    min-height: 44px;
    padding: 6px 18px;
}

/* ==============================================================
   Blizzard-forum post profile (PBWoW .postprofile assets)
   portrait-frame-clean.gif 82x83 holds a square 64x64 avatar,
   portrait-icons.png is the 3-slot icon column on the left,
   rank-bg.png is the round level badge on the bottom-right.
   ============================================================== */
.pbwow-profile-portrait {
    position: relative;
    height: 92px;
    margin-bottom: 6px;
}

.pbwow-avatar {
    position: relative;
    display: block;
    width: 82px;
    height: 83px;
    padding: 8px 10px 11px 8px;
    margin: 1px auto 0;
    background: #000 url('../img/pbwow/portrait-frame-clean.gif') no-repeat 50% 50%;
    overflow: hidden;
}

.pbwow-avatar img {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 0;
    object-fit: cover;
}

/* posters without a character: no_avatar.gif is the whole portrait (icon column and frame) */
.pbwow-no-avatar {
    display: block;
    width: 82px;
    height: 83px;
    margin: 1px auto 0;
}

.pbwow-icons-frame {
    position: absolute;
    top: 1px;
    left: 50%;
    width: 35px;
    height: 83px;
    transform: translateX(-74px);
    background: url('../img/pbwow/portrait-icons.png') no-repeat;
}

.pbwow-game-icon {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 18px;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 3px;
}

.pbwow-game-icon-a {
    top: 11px;
}

.pbwow-game-icon-b {
    top: 31px;
}

.pbwow-game-icon-c {
    top: 51px;
}

.pbwow-level-badge {
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 33px;
    height: 33px;
    transform: translateX(9px);
    background: url('../img/pbwow/rank-bg.png') no-repeat 100% 100%;
    line-height: 30px;
    padding-left: 3px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px #000;
}

.pbwow-profile-name {
    font-family: 'Cinzel', serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px #000;
    word-break: break-word;
}

.pbwow-profile-guild {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffb019;
    margin-top: 2px;
}

.pbwow-profile-line {
    font-size: 0.76rem;
    color: #c8b9a0;
    margin-top: 2px;
}

.pbwow-profile-meta {
    font-size: 0.72rem;
    color: var(--wow-text-muted);
    margin-top: 8px;
}

.pbwow-profile-meta strong {
    color: #fff;
}

/* ==============================================================
   User Control Panel (ucp.php)
   ============================================================== */
.ucp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 991px) {
    .ucp-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ucp-char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.ucp-char-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    background: #121212;
    border: 1px solid #2c2c2c;
    box-shadow: inset 0 0 0 1px #000;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ucp-char-card:hover {
    background: #181818;
    border-color: #4a4a4a;
}

.ucp-char-card.is-selected {
    background: #1a1610;
    border-color: #f8b700;
    box-shadow: inset 0 0 0 1px #000, 0 0 10px rgba(248, 183, 0, 0.25);
}

.ucp-char-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ucp-char-avatar {
    flex-shrink: 0;
    margin: 0;
}

.ucp-char-level {
    position: absolute;
    right: 2px;
    bottom: 3px;
    min-width: 22px;
    padding: 0 4px;
    background: #000;
    border: 1px solid #8a6d2b;
    border-radius: 10px;
    font: bold 10px/16px Arial, Helvetica, sans-serif;
    color: #fff;
    text-align: center;
}

.ucp-char-info {
    min-width: 0;
}

.ucp-char-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 1px 2px #000;
}

.ucp-char-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #a89c88;
    margin-top: 2px;
}

.ucp-char-faction {
    width: 18px;
    height: 18px;
}

.ucp-char-check {
    margin-left: auto;
    color: #f8b700;
    opacity: 0;
}

.ucp-char-card.is-selected .ucp-char-check {
    opacity: 1;
}

.ucp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #222;
}

.ucp-note {
    font-size: 0.8rem;
    color: var(--wow-text-muted);
}

.ucp-empty {
    padding: 18px;
    background: #111;
    border: 1px solid #2c2c2c;
    color: #c8b9a0;
    text-align: center;
}

.ucp-empty i {
    margin-right: 6px;
}

.ucp-preview {
    width: 210px;
    margin: 0 auto;
    border: 1px solid #2c2c2c;
}

/* ==============================================================
   WoW tooltip (js/tooltip.js positions #contents, fills #tooltipText)
   The script sizes #contents from #tooltipText, so the box styling
   lives on the inner element.
   ============================================================== */
.wow-tooltip {
    position: absolute;
    left: -1000px;
    top: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
}

.wow-tooltip-text {
    display: inline-block;
    max-width: 320px;
    padding: 6px 10px 7px;
    background: rgba(5, 8, 24, 0.94);
    border: 2px solid #b5b5b5;
    border-radius: 5px;
    box-shadow: 0 0 0 1px #000, 0 4px 14px rgba(0, 0, 0, 0.8);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
}

.wow-tooltip-text b {
    font-size: 13px;
}

.pbwow-game-icon,
.ucp-char-faction {
    cursor: help;
}

/* Account tab on the right of the main menu (replaces the Create Account button) */
@media (min-width: 992px) {
    .wow-nav-right .wow-nav-tab {
        border-right: none;
        border-left: 1px solid #000;
        box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.07);
    }

    .wow-nav-right .wow-nav-tab.active {
        box-shadow: inset 0 -2px 0 #f8b700, inset 1px 0 0 rgba(255, 255, 255, 0.07);
    }
}

.wow-nav-account-name {
    color: #4ade80;
}

.wow-nav-tab:hover .wow-nav-account-name {
    color: #86efac;
}

/* right-aligned dropdown: pointer arrow sits on the right */
.wow-dropdown-menu.dropdown-menu-end::before {
    left: auto;
    right: 22px;
}

.wow-dropdown-menu.dropdown-menu-end::after {
    left: auto;
    right: 23px;
}

/* hover-opened menus aren't positioned by Popper, so pin it to the right edge */
.wow-nav-right .wow-dropdown-menu {
    right: 0;
    left: auto;
}

/* ==============================================================
   Warden Console: Accounts & Access (admin_accounts.php)
   ============================================================== */
.wow-portal-tabs .wow-tab-btn i {
    color: var(--wow-gold);
}

.adm-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 991px) {
    .adm-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.adm-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.adm-filter input {
    flex: 2;
    min-width: 200px;
}

.adm-filter select {
    flex: 1;
    min-width: 160px;
}

.adm-table {
    width: 100%;
}

.adm-row {
    cursor: pointer;
}

.adm-row:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.adm-link {
    color: var(--wow-gold);
    text-decoration: none;
    font-size: 0.85rem;
}

.adm-link:hover {
    color: #fff;
}

.adm-badge {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid #444;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.74rem;
    color: #c8b9a0;
    white-space: nowrap;
}

.adm-muted {
    font-size: 0.78rem;
    color: var(--wow-text-muted);
    margin-left: 6px;
}

.adm-kv {
    width: 100%;
    font-size: 0.86rem;
}

.adm-kv th {
    width: 130px;
    padding: 6px 10px 6px 0;
    color: var(--wow-text-muted);
    font-weight: normal;
    vertical-align: top;
}

.adm-kv td {
    padding: 6px 0;
    color: #ded1be;
    border-bottom: 1px solid #1f1f1f;
}

.adm-access-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #222;
}

.adm-access-form>div {
    flex: 1;
    min-width: 140px;
}

.adm-char {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-char-avatar {
    width: 36px;
    height: 36px;
    border: 1px solid #000;
    box-shadow: 0 0 0 1px #5a4a2a;
}

.adm-pagination {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 14px;
}

.adm-pagination a {
    min-width: 28px;
    padding: 3px 8px;
    text-align: center;
    border: 1px solid #333;
    background: #111;
    color: #ded1be;
    text-decoration: none;
    font-size: 0.8rem;
}

.adm-pagination a.active,
.adm-pagination a:hover {
    border-color: #f8b700;
    color: #f8b700;
}

/* ==============================================================
   Warden Console: Server Control (admin_server.php)
   ============================================================== */
.srv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 991px) {
    .srv-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.srv-kv th {
    width: 120px;
}

.srv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.srv-actions .pbwow-mod-btn {
    padding: 4px 14px;
    font-size: 0.82rem;
}

.srv-actions .pbwow-mod-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.srv-btn-start i {
    color: #4ade80;
}

.srv-btn-stop i {
    color: #f87171;
}

.srv-status-error {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #f87171;
}

.srv-log-header {
    flex-wrap: wrap;
    gap: 10px;
}

.srv-log-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.srv-log-tools .wow-field-input {
    width: auto;
    padding: 4px 8px;
    font-size: 0.82rem;
}

.srv-log-tools .pbwow-mod-btn {
    padding: 4px 12px;
    font-size: 0.82rem;
}

.srv-follow {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #c8b9a0;
    cursor: pointer;
}

.srv-log {
    height: 460px;
    margin: 0;
    padding: 10px 12px;
    overflow: auto;
    background: #050505;
    border: 1px solid #222;
    color: #cfc6b4;
    font: 0.76rem/1.45 Consolas, 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.srv-help {
    font-size: 0.82rem;
    color: var(--wow-text-muted);
}

.srv-help code,
.srv-fp {
    color: #f8b700;
    font-size: 0.8rem;
    word-break: break-all;
}

.srv-copy pre {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: #050505;
    border: 1px solid #5a4a2a;
    color: #ded1be;
    font: 0.76rem/1.45 Consolas, 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==============================================================
   Info: World Map (world_map.php)
   ============================================================== */
.wmap-sub {
    font-size: 0.82rem;
}

.wmap-full {
    padding: 4px 12px;
    font-size: 0.82rem;
}

.wmap-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 533;
    background: #000;
    border: 1px solid #3b2f1d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.wmap-stage iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.wmap-help {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--wow-text-muted);
}

.wmap-help b {
    color: var(--wow-gold);
}

@media (max-width: 576px) {
    .wmap-sub {
        display: none;
    }
}

/* ==============================================================
   Forum moderation (viewtopic tools + forum_admin.php)
   ============================================================== */
.pbwow-mod-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: rgba(20, 40, 24, 0.55);
    border: 1px solid #1f4a2a;
    box-shadow: inset 0 0 0 1px #000;
}

.pbwow-mod-bar form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.pbwow-mod-bar-title {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4ade80;
    margin-right: 4px;
}

.pbwow-mod-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #111;
    border: 1px solid #3a3a3a;
    color: #ded1be;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pbwow-mod-btn:hover:not([disabled]) {
    border-color: #f8b700;
    color: #fff;
}

.pbwow-mod-btn.on {
    border-color: #8a6d2b;
    color: #ffb019;
}

.pbwow-mod-btn.danger:hover {
    border-color: #ef4444;
    color: #fca5a5;
}

.pbwow-mod-btn[disabled] {
    opacity: 0.35;
    cursor: default;
}

.pbwow-mod-select {
    padding: 3px 6px;
    background: #0b0b0b;
    border: 1px solid #3a3a3a;
    color: #ded1be;
    font-size: 0.78rem;
    max-width: 200px;
}

.pbwow-post-btn.danger:hover {
    color: #f87171;
}

.pbwow-post-buttons form {
    margin: 0;
}

.fadm-inline {
    display: inline-flex;
    gap: 4px;
    margin: 0;
}

.fadm-table td {
    vertical-align: middle;
}

.fadm-cat {
    display: grid;
    grid-template-columns: auto 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #121212;
    border: 1px solid #2c2c2c;
    box-shadow: inset 0 0 0 1px #000;
}

.fadm-cat-order form {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.fadm-cat-order .pbwow-mod-btn {
    padding: 1px 6px;
    font-size: 0.65rem;
}

.fadm-cat-bullet {
    width: 38px;
    height: 35px;
}

.fadm-cat-edit {
    display: none;
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid #222;
}

.fadm-cat.is-editing .fadm-cat-edit {
    display: block;
}

.fadm-cat.is-editing {
    border-color: #8a6d2b;
}

.fadm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .fadm-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fadm-bullet-pick {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fadm-bullet-preview {
    width: 38px;
    height: 35px;
    flex-shrink: 0;
}

.fadm-cat-delete {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed #2a2a2a;
}

/* Moderator Panel: main categories with nested forums */
.fadm-main-head .wow-realm-info {
    gap: 10px;
}

.fadm-order-inline {
    display: inline-flex;
    gap: 2px;
    margin: 0;
}

.fadm-order-inline .pbwow-mod-btn {
    padding: 1px 6px;
    font-size: 0.65rem;
}

.fadm-main-edit {
    display: none;
    padding: 14px 18px;
    background: #101010;
    border-bottom: 1px solid #222;
}

.fadm-main.is-editing .fadm-main-edit {
    display: block;
}

.fadm-inline-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.fadm-inline-row .wow-field-input {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.fadm-grid-3 {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 768px) {
    .fadm-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fadm-new-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 991px) {
    .fadm-new-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Recent Topics: box stretches to the left column, pager pinned to its bottom (forum.php JS) */
.pbwow-recent-box {
    display: flex;
    flex-direction: column;
}

.pbwow-recent-list {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.pbwow-recent-item[hidden],
.pbwow-recent-pagination[hidden] {
    display: none;
}

.pbwow-recent-pagination a:hover {
    border-color: #ffd100;
    color: #fff;
}

.pbwow-recent-pagination span.disabled {
    opacity: 0.35;
}

/* ==============================================================
   Hall of Fame (hof.php)
   ============================================================== */
.hof-intro {
    margin: 22px 0 26px;
    /* clear the frame's top scrollwork */
    padding-bottom: 18px;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
}

/* Crown in a gold-rimmed medallion */
.hof-crest {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #3a2a0e 0%, #140e05 70%);
    border: 2px solid #8a6d2b;
    box-shadow:
        0 0 0 1px #000,
        inset 0 0 0 1px rgba(255, 209, 0, 0.25),
        inset 0 -6px 12px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(255, 176, 25, 0.35);
}

.hof-crest i,
.hof-crest svg {
    width: 32px !important;
    height: 32px;
    font-size: 32px;
    color: #ffd100;
    filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 6px rgba(255, 209, 0, 0.55));
}

.hof-title {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(#fff6c9 0%, #ffd100 50%, #b7801a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9));
}

/* gold rule with a diamond in the middle */
.hof-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px auto 12px;
    max-width: 420px;
}

.hof-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b7801a);
}

.hof-divider span:last-child {
    background: linear-gradient(90deg, #b7801a, transparent);
}

.hof-divider i,
.hof-divider svg {
    width: 9px !important;
    height: 9px;
    font-size: 9px;
    color: #ffd100;
    filter: drop-shadow(0 0 4px rgba(255, 209, 0, 0.6));
}

.hof-lead {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.02rem;
    color: #e1c492;
    letter-spacing: 0.5px;
}

.hof-sub {
    margin: 4px 0 0;
    font-size: 0.86rem;
    font-style: italic;
    color: var(--wow-text-muted);
}

.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.hof-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    background: #121212;
    border: 1px solid #2c2c2c;
    box-shadow: inset 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: border-color 0.15s ease;
}

.hof-card:hover {
    border-color: #8a6d2b;
}

.hof-avatar {
    flex-shrink: 0;
    margin: 0;
}

.hof-info {
    min-width: 0;
}

.hof-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.hof-name a {
    color: #ffb019;
    text-decoration: none;
}

.hof-name a:hover {
    color: #fff;
}

.hof-role {
    font-size: 0.8rem;
    color: #69ccf0;
    margin-top: 1px;
}

.hof-about {
    font-size: 0.82rem;
    color: #c8b9a0;
    line-height: 1.45;
    margin-top: 6px;
}

.hof-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
    font-size: 0.78rem;
}

.hof-links a {
    color: var(--wow-gold);
    text-decoration: none;
}

.hof-links a:hover {
    color: #fff;
}

.wow-footer-link {
    color: var(--wow-gold);
    text-decoration: none;
}

.wow-footer-link:hover {
    color: #fff;
}


/* UCP: rename legacy WoW1-style accounts */
.ucp-rename {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    background: #121212;
    border: 1px solid #2c2c2c;
    box-shadow: inset 0 0 0 1px #000;
}

.ucp-rename .wow-field-input {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.ucp-rename-current {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ucp-rename-current code {
    padding: 3px 8px;
    background: #050505;
    border: 1px solid #3a3a3a;
    color: #ffd100;
    font-size: 0.85rem;
}

.ucp-rename-label {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #f8b700;
}

.ucp-rename-arrow {
    color: #8a6d2b;
}

.ucp-rename-warn {
    width: 100%;
    font-size: 0.8rem;
    color: #fbbf24;
}


/* ==============================================================
   GM ("Blizzard Poster") avatars and forum title icons
   ============================================================== */
/* GM frame (82x83, 64x64 opening) is drawn ON TOP: its BLIZZ badge overlaps the picture */
.pbwow-gm-avatar {
    position: relative;
    width: 82px;
    height: 83px;
    margin: 1px auto 0;
    background: #000;
}

.pbwow-gm-avatar img {
    position: absolute;
    left: 10px;
    /* 60x60 gif centred in the 64x64 opening at (8,8) */
    top: 10px;
    width: 60px;
    height: 60px;
    border-radius: 0;
}

.pbwow-gm-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/forum/avatars/gm-frame/portrait-frame.gif') no-repeat 0 0;
    pointer-events: none;
}

/* Blizzard-forum icons in front of topic titles (GM replied / sticky / locked) */
.pbwow-title-icon {
    height: 15px;
    width: auto;
    margin-right: 5px;
    vertical-align: -2px;
    cursor: help;
}

h1 .pbwow-title-icon {
    height: 17px;
    vertical-align: 0;
}

/* UCP GM avatar picker */
.ucp-gm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 6px;
    max-height: 430px;
    overflow-y: auto;
    padding: 6px;
    background: #0b0b0b;
    border: 1px solid #2c2c2c;
    box-shadow: inset 0 0 0 1px #000;
}

.ucp-gm-option {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 3px;
    border: 1px solid #2c2c2c;
    background: #121212;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.ucp-gm-option:hover {
    border-color: #4a4a4a;
}

.ucp-gm-option.is-selected {
    border-color: #00c0ff;
    box-shadow: 0 0 8px rgba(0, 192, 255, 0.45);
}

.ucp-gm-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ucp-gm-option img {
    width: 60px;
    height: 60px;
}


/* ==============================================================
   Sidebar art cards: a picture with a button at the bottom
   (Download the launcher, Hall of Fame ...)
   ============================================================== */
.wow-side-art-card .wow-side-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    border: 1px solid #000;
    background-color: #000;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* darken the bottom so the button and note stay readable over the art */
.wow-side-art-card .wow-side-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

.wow-side-art-card .btn-wow-enter,
.wow-side-art-note {
    position: relative;
}

.wow-side-art-card .btn-wow-enter {
    padding: 10px 12px;
    font-size: 0.86rem;
}

.wow-side-art-note {
    margin-top: 7px;
    text-align: center;
    font-size: 0.74rem;
    color: #e1c492;
    text-shadow: 0 1px 2px #000;
}

/* each card: its own picture and proportions */
.wow-side-download .wow-side-art {
    aspect-ratio: 420 / 300;
    background-image: url('../img/sidebar/classic_download_bg.jpg');
}

.wow-side-hof .wow-side-art {
    aspect-ratio: 420 / 300;
    /* same height as the download card; the sides of the art are trimmed */
    background-image: url('../img/sidebar/UthersTombBfA.webp');
}

/* ==============================================================
   Addons (addons.php)
   ============================================================== */
.addons-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2a2a2a;
}

.addons-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.addons-title i,
.addons-title svg {
    color: var(--wow-gold-bright);
    margin-right: 6px;
}

.addons-lead {
    margin: 0;
    font-size: 0.86rem;
    color: var(--wow-text-muted);
}

.addons-lead code {
    color: #ffd100;
    background: #050505;
    padding: 1px 6px;
    border: 1px solid #333;
}

.addons-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.addons-tools .wow-field-input {
    width: 230px;
    margin: 0;
}

.addons-upload-btn {
    width: auto;
    padding: 8px 18px;
    font-size: 0.85rem;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 14px;
}

/* each addon is a PBWoW black-metal box, like the forum posts */
.addon-card {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    background:
        linear-gradient(#0e0e0e 0, rgba(27, 27, 27, 0) 70px),
        #1b1b1b;
    border: 2px solid #1b1b1b;
    box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, 0.6);
}

.addon-card[hidden] {
    display: none;
}

.addon-card-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.addon-icon {
    flex-shrink: 0;
    margin: 0;
}

.addon-icon img {
    object-fit: cover;
}

.addon-card-title {
    min-width: 0;
}

.addon-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffb019;
    text-shadow: 0 1px 2px #000;
}

.addon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 4px;
    font-size: 0.74rem;
    color: #8f8473;
}

.addon-meta i,
.addon-meta svg {
    color: #8a6d2b;
    margin-right: 2px;
}

.addon-desc {
    flex: 1;
    margin: 12px 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #e1c492;
    overflow-wrap: anywhere;
}

.addon-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.addon-actions .addon-download {
    flex: 1;
    width: auto;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.addon-actions .pbwow-mod-btn {
    padding: 8px 11px;
}

/* ---- Upload modal: black-metal panel ---- */
.wow-modal .modal-content {
    color: #e1c492;
    background: #1b1b1b;
    border: 2px solid #1b1b1b;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 10px 40px rgba(0, 0, 0, 0.9);
}

.wow-modal .modal-header {
    background: url('../img/pbwow/grey-bar-wide.gif') repeat-x 0 0;
    background-size: auto 100%;
    border-bottom: 1px solid #000;
    padding: 10px 16px;
}

.wow-modal .modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffb019;
    text-shadow: 0 1px 2px #000;
}

.wow-modal .modal-title i,
.wow-modal .modal-title svg {
    color: #f8b700;
    margin-right: 6px;
}

.wow-modal .modal-body {
    background:
        linear-gradient(#0e0e0e 0, rgba(27, 27, 27, 0) 60px),
        #1b1b1b;
}

.wow-modal .modal-footer {
    background: #141414;
    border-top: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.modal-backdrop.show {
    opacity: 0.8;
}

.addon-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .addon-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.addon-icon-pick {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.addon-icon-pick .wow-field-input {
    margin: 0;
}

.addon-hint {
    margin-top: 5px;
    font-size: 0.74rem;
    color: #8f8473;
}

.addon-hint code {
    color: #ffd100;
    background: #050505;
    padding: 0 4px;
}

.addon-source {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.addon-source label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.addon-source input {
    accent-color: #c30000;
}

.wow-modal textarea.wow-field-input {
    resize: vertical;
    min-height: 140px;
}


/* ==============================================================
   Live Streams (streams.php) + UCP "My Stream"
   ============================================================== */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.stream-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(#0e0e0e 0, rgba(27, 27, 27, 0) 60px), #1b1b1b;
    border: 2px solid #1b1b1b;
    border-left: 3px solid #a970ff;
    box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, 0.6);
}

.stream-card.is-youtube {
    border-left-color: #ff3d3d;
}

.stream-card.is-hidden {
    opacity: 0.55;
}

.stream-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stream-platform {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: #0b0b0b;
    border: 1px solid #333;
    box-shadow: inset 0 0 0 1px #000;
}

.is-twitch .stream-platform {
    color: #a970ff;
}

.is-youtube .stream-platform {
    color: #ff3d3d;
}

.stream-title {
    min-width: 0;
    flex: 1;
}

.stream-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffb019;
    text-shadow: 0 1px 2px #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-channel {
    display: block;
    font-size: 0.8rem;
    color: #a89c88;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-channel:hover {
    color: #fff;
}

.stream-hidden-tag {
    padding: 1px 7px;
    font-size: 0.7rem;
    color: #fbbf24;
    border: 1px solid #6b4f12;
    background: rgba(0, 0, 0, 0.6);
}

.stream-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stream-actions .stream-watch {
    flex: 1;
    width: auto;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.stream-actions .pbwow-mod-btn {
    padding: 8px 11px;
}

.stream-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.stream-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ucp-stream-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #c8b9a0;
}

.ucp-note code {
    color: #ffd100;
    background: #050505;
    padding: 0 4px;
}
/* ==============================================================
   Armory (armory/index.php, character.php, guild.php)
   ============================================================== */
.armory-hero {
    margin: 22px 0 24px;
    padding-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
}

.armory-hero-icon {
    font-size: 1.5rem;
    margin-right: 6px;
    color: #ffd100;
    -webkit-text-fill-color: #ffd100;
}

.armory-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

.armory-search > i,
.armory-search > svg {
    color: #8a6d2b;
}

.armory-search .wow-field-input {
    flex: 1;
    margin: 0;
}

.armory-search .btn-wow-enter {
    width: auto;
    padding: 9px 20px;
    font-size: 0.85rem;
}

.armory-table-wrap {
    overflow-x: auto;
    padding: 3px;
    background: rgba(27, 27, 27, 0.75);
    border: 2px solid #1b1b1b;
    box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 2px 4px rgba(0, 0, 0, 0.6);
}

.armory-table td {
    vertical-align: middle;
}

.armory-char-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
}

.armory-char-name:hover {
    filter: brightness(1.25);
    text-decoration: underline;
}

.armory-mini-portrait {
    width: 28px;
    height: 28px;
    border: 1px solid #000;
    box-shadow: 0 0 0 1px #5a4a2a;
}

.armory-icons {
    white-space: nowrap;
}

.armory-guild-name {
    color: #ffb019;
    font-weight: 700;
    text-decoration: none;
}

.armory-guild-name:hover {
    color: #fff;
}

/* ---- character / guild header ---- */
.armory-char-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin: 8px 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2a2a2a;
}

.armory-char-head .armory-search {
    margin: 0;
    max-width: 420px;
    flex: 1;
    min-width: 280px;
}

.armory-char-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 800;
    text-shadow: 0 2px 3px #000;
}

.armory-guild-title {
    color: #ffb019;
}

.armory-faction {
    width: 20px;
    height: auto;
}

.armory-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Marcellus', serif;
    font-size: 0.8rem;
    font-weight: normal;
    color: #4ade80;
}

.armory-char-sub {
    margin-top: 4px;
    font-size: 0.95rem;
    color: #c8b9a0;
}

/* ---- sheet: paperdoll + details ---- */
.armory-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

@media (max-width: 991px) {
    .armory-sheet {
        grid-template-columns: minmax(0, 1fr);
    }
}

.armory-doll {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 68px;
    gap: 10px;
    min-height: 600px;
    padding: 16px 14px;
    background-color: #000;
    background-position: center;
    background-size: cover;
    border: 2px solid #1b1b1b;
    box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(0, 0, 0, 0.6);
}

.armory-doll-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.armory-doll-center {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
}

.armory-doll-bottom {
    display: flex;
    gap: 14px;
    justify-content: center;
}

/* item slot: 56px icon inside the 68px item frame */
.armory-slot {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    background: #000;
    transition: filter 0.15s ease;
}

.armory-slot img {
    display: block;
    width: 56px;
    height: 56px;
}

.armory-slot::after {
    content: '';
    position: absolute;
    left: -6px;
    top: -6px;
    width: 68px;
    height: 68px;
    background: url('../img/armory/slots/item_frame.png') no-repeat;
    pointer-events: none;
}

.armory-slot.is-empty img {
    opacity: 0.55;
}

a.armory-slot:hover {
    filter: brightness(1.25) drop-shadow(0 0 6px rgba(255, 209, 0, 0.6));
}

.armory-nameplate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 22px 10px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 75%);
    text-align: center;
}

.armory-nameplate .pbwow-avatar {
    margin: 0 0 4px;
}

.armory-nameplate-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px #000, 0 0 10px #000;
}

.armory-nameplate-guild {
    font-weight: 700;
    color: #ffb019;
    text-shadow: 0 1px 3px #000;
}

.armory-nameplate-icons {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.armory-details .wow-side-widget:last-child {
    margin-bottom: 0;
}

/* ---- bars (vitals, professions, classes) ---- */
.armory-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.armory-bar-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #000;
    box-shadow: 0 0 0 1px #5a4a2a;
}

.armory-bar-icon-sm {
    width: 18px;
    height: 18px;
}

.armory-bar-wrap {
    flex: 1;
    min-width: 0;
}

.armory-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #e1c492;
    margin-bottom: 3px;
}

.armory-bar {
    height: 10px;
    background: #050505;
    border: 1px solid #000;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px #333;
}

.armory-bar > div {
    height: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.armory-pvp {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.armory-pvp img {
    width: 32px;
    height: 32px;
}

.armory-pvp-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffd100;
}

.armory-roster-tools {
    padding: 8px;
    border-bottom: 1px solid #222;
}

.armory-roster-tools .wow-field-input {
    max-width: 260px;
    margin: 0;
}

.armory-guild-sheet .wow-roster-table tr[hidden] {
    display: none;
}


/* Armory: optional character render standing on the race background */
.armory-doll-center {
    position: relative;
}

/* The render is a square PNG with the feet 6% above its bottom edge (fixed framing,
   same scale for a race): --render-ground is where the feet stand, above the nameplate. */
.armory-doll {
    --render-size: 540px;
    --render-ground: 100px;  /* just above the weapon row */
    overflow: hidden;
}

.armory-render {
    position: absolute;
    left: 50%;
    bottom: var(--render-ground);
    width: var(--render-size);
    height: auto;
    aspect-ratio: 1;
    transform: translate(-50%, 6%); /* the feet are 6% above the image's bottom edge */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

/* phones: smaller slots, the render fills the space between the slot columns */
@media (max-width: 575.98px) {
    .armory-doll {
        --render-size: 118%;
        --render-ground: 54px;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        gap: 6px;
        min-height: 0;
        padding: 12px 8px;
    }

    .armory-doll-col {
        gap: 10px;
    }

    .armory-doll-center {
        gap: 12px;
    }

    .armory-doll-bottom {
        gap: 10px;
    }

    .armory-slot,
    .armory-slot img {
        width: 40px;
        height: 40px;
    }

    .armory-slot::after {
        left: -4px;
        top: -4px;
        width: 48px;
        height: 48px;
        background-size: 48px 48px;
    }

    .armory-render-loading {
        bottom: 45%;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* with a render (or while it loads) the nameplate is hidden (name and icons are in the
   page header); it stays as the fallback when the render fails */
.armory-doll.has-render .armory-nameplate,
.armory-doll.is-rendering .armory-nameplate {
    display: none;
}

/* "Rendering character..." while the render loads */
.armory-render-loading {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(var(--render-ground) + 120px);
    transform: translateX(-50%);
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    white-space: nowrap;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffd100;
    text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, 0.9);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
}

.armory-doll.is-rendering .armory-render-loading {
    display: flex;
}

.armory-render-loading span {
    animation: armory-render-pulse 1.6s ease-in-out infinite;
}

@keyframes armory-render-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.armory-render {
    transition: opacity 0.4s ease;
}

.armory-doll.is-rendering .armory-render {
    opacity: 0;
}


/* Character names linking to the Armory (forum posts, online list, UCP) */
a.wow-armory-link {
    color: inherit;
    text-decoration: none;
}

a.wow-armory-link:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ucp-char-armory {
    margin-left: 6px;
    font-size: 0.8em;
    color: #c9a65a;
    opacity: 0.75;
    text-decoration: none;
}

.ucp-char-armory:hover {
    color: #ffd100;
    opacity: 1;
}

/* Hidden stage where armory/viewer.js renders a character to save it as an image.
   It stays in the viewport and is hidden with a clip: off screen or with opacity: 0 the
   browser skips work some models need (night elves are then not drawn at all). */
.armory-render-stage {
    position: fixed;
    left: 0;
    top: 0;
    width: 800px;
    height: 800px;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
}

/* Armory 3D: button on the paperdoll (desktop with a mouse only) */
.armory-3d-btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffd100;
    background: linear-gradient(180deg, rgba(40, 32, 20, 0.92), rgba(12, 10, 6, 0.92));
    border: 1px solid #6b5426;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 209, 0, 0.15);
    cursor: pointer;
    text-shadow: 0 1px 2px #000;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.armory-3d-btn:hover,
.armory-3d-btn:focus-visible {
    color: #fff3b0;
    border-color: #b08d3a;
}

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
    .armory-3d-btn {
        display: inline-flex;
    }
}

/* 3D modal: the viewer draws the race background itself */
.armory-3d-modal .modal-body {
    padding: 0;
}

.armory-3d-view {
    position: relative;
    aspect-ratio: 16 / 10;   /* matches the background made by armory/bg3d.php */
    max-height: 74vh;
    margin: 0 auto;
    background: #000;
}

.armory-3d-canvas {
    width: 100%;
    height: 100%;
}

.armory-3d-canvas canvas {
    display: block;
    cursor: grab;
}

.armory-3d-canvas canvas:active {
    cursor: grabbing;
}

.armory-3d-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: left;
    color: #e8dcc0;
    background: radial-gradient(ellipse at center, rgba(20, 16, 10, 0.92) 0%, rgba(0, 0, 0, 0.97) 70%);
}

.armory-3d-status[hidden] {
    display: none;
}

.armory-3d-status-icon {
    font-size: 2rem;
    color: #ffd100;
}

.armory-3d-status strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #ffd100;
}

.armory-3d-status span {
    font-size: 0.92rem;
    opacity: 0.85;
}

.armory-3d-status.is-error .armory-3d-status-icon,
.armory-3d-status.is-error strong {
    color: #ff6b6b;
}

.armory-3d-footer {
    justify-content: space-between;
}

.armory-3d-hint {
    font-size: 0.85rem;
    color: #b8a988;
}

.armory-3d-actions .btn-wow-enter {
    width: auto;
    min-width: 190px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.armory-3d-actions .wow-dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
}

.armory-3d-actions .dropdown-item {
    cursor: pointer;
}

/* Moderators: re-render link under the sheet */
.armory-render-purge {
    margin: 10px 0 0;
    text-align: right;
}

.armory-render-purge button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* Login / register: WoW login artwork inside the page frame (under the PBWoW borders).
   img/account/skin-wow-blank.jpg is 1000x657: logo at the top, dark panel 44% wide below it. */
.pbwow-box-wrap.pbwow-skin-wow {
    /* *-reg-login.gif: the account pages' own border pieces */
    background:
        url('../img/pbwow/border-bot-left-reg-login.gif') no-repeat 0 100%,
        url('../img/pbwow/border-bot-right-reg-login.gif') no-repeat 100% 100%,
        url('../img/pbwow/border-top-right-reg-login.gif') no-repeat 100% 0,
        url('../img/pbwow/border-top-left-reg-login.gif') no-repeat 0 0,
        url('../img/pbwow/border-bot-reg-login.gif') repeat-x 0 100%,
        url('../img/pbwow/border-top-reg-login.gif') repeat-x 0 0,
        url('../img/pbwow/border-right-reg-login.gif') repeat-y 100% 0,
        url('../img/pbwow/border-left-reg-login.gif') repeat-y 0 0,
        url('../img/account/skin-wow-blank.jpg') no-repeat center top / 100% auto,
        #000;
    min-height: 66vw;
    max-height: none;
}

@media (min-width: 1140px) {
    .pbwow-box-wrap.pbwow-skin-wow {
        min-height: 752px; /* the whole picture: 1140 x 657/1000 */
    }
}

/* the account form sits in the picture's dark panel, below the logo: no card around it,
   only the fields on the artwork */
.pbwow-skin-wow .wow-portal-frame {
    max-width: 42% !important;
    margin-top: 12% !important; /* below the logo */
    background: none;
    border: 0;
    box-shadow: none;
}

.pbwow-skin-wow .wow-portal-header {
    display: none;
}

/* phones / tablets: picture scaled by height, so its dark panel spans the screen */
@media (max-width: 991.98px) {
    .pbwow-box-wrap.pbwow-skin-wow {
        background-size: auto, auto, auto, auto, auto, auto, auto, auto, auto 760px, auto;
        min-height: 760px;
    }

    .pbwow-skin-wow .wow-portal-frame {
        max-width: 480px !important;
        margin-top: 175px !important;
    }
}

/* Realm offline: red status dot / text */
.pulse-red {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.wow-side-widget .is-offline {
    color: #f87171;
}

.wow-side-muted {
    color: #7d7362;
    font-weight: 400;
}

/* Sidebar card with tabs in its header (homepage: hot topics / latest posts) */
.wow-side-tabs {
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.wow-side-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8f7f62;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    text-shadow: 0 1px 2px #000;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.wow-side-tab + .wow-side-tab {
    border-left: 1px solid rgba(0, 0, 0, 0.6);
}

.wow-side-tab:hover {
    color: #e1c492;
}

.wow-side-tab.active {
    color: #ffd100;
    border-bottom-color: #f8b700;
}

.wow-side-tab i,
.wow-side-tab svg {
    color: inherit;
}

.wow-side-feed-item {
    display: block;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: background 0.15s ease;
}

.wow-side-feed-item:last-child {
    border-bottom: 0;
}

.wow-side-feed-item:hover {
    background: rgba(248, 183, 0, 0.05);
}

.wow-side-feed-title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #e1c492;
    font-weight: 700;
}

.wow-side-feed-item:hover .wow-side-feed-title {
    color: #fff;
}

.wow-side-feed-excerpt {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #a89c88;
    font-size: 0.8rem;
}

.wow-side-feed-meta {
    display: block;
    margin-top: 2px;
    color: #7d7362;
    font-size: 0.74rem;
}

.wow-side-feed-meta strong {
    color: #c9b48a;
    font-weight: 700;
}

.wow-side-feed-empty {
    margin: 0;
    padding: 14px;
    text-align: center;
    color: #8f8471;
}
