/* =====================================================================
   LEGENDS OF CONQUER — theme
   Loaded after main.css. Black / gold / crimson, Chinese-ornament frames.
   ===================================================================== */

/* ---------- Fonts (self-hosted, no Google request) ---------- */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cinzel-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cinzel-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/cinzel-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel Decorative'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cinzel-decorative-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel Decorative'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/cinzel-decorative-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
    --lg-black: #060505;
    --lg-ink: #0b0908;
    --lg-panel: #110d0b;
    --lg-panel-2: #18110d;
    --lg-gold: #d6a64b;
    --lg-gold-light: #f6d98b;
    --lg-gold-pale: #fff0c4;
    --lg-gold-dark: #8a5f1d;
    --lg-crimson: #8c1515;
    --lg-crimson-light: #b82222;
    --lg-crimson-dark: #4a0909;
    --lg-ember: #ff8a2a;
    --lg-text: #efe6d2;
    --lg-muted: #a99c84;
    --lg-line: rgba(214, 166, 75, 0.38);
    --lg-line-soft: rgba(214, 166, 75, 0.16);
    --lg-gold-grad: linear-gradient(180deg, #fff0c4 0%, #f6d98b 30%, #d6a64b 62%, #8a5f1d 100%);
    --lg-gold-line: linear-gradient(90deg, transparent, #d6a64b 18%, #f6d98b 50%, #d6a64b 82%, transparent);
    --lg-ease: cubic-bezier(.22, .61, .36, 1);

    /* re-point the old theme variables to the new palette */
    --gold: #d6a64b;
    --gold-light: #f6d98b;
    --gold-dark: #8a5f1d;
    --bg-dark: #060505;
    --bg-deep: #0b0908;
    --bg-card: #110d0b;
    --text-main: #efe6d2;
    --text-muted: #a99c84;
    --text-gold: #d6a64b;
    --border-color: rgba(214, 166, 75, 0.38);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    background-color: var(--lg-black);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(140, 21, 21, 0.10), transparent 70%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(214, 166, 75, 0.05), transparent 70%);
    background-attachment: fixed;
    color: var(--lg-text);
    font-family: 'Inter', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Cinzel', Georgia, serif; letter-spacing: .04em; }
a { color: var(--lg-gold-light); }
a:hover { color: var(--lg-gold-pale); }
::selection { background: rgba(214, 166, 75, .35); color: #fff; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--lg-gold), var(--lg-gold-dark)); }
.text-gold { color: var(--lg-gold-light) !important; }
.text-warning { color: var(--lg-gold-light) !important; }
.text-primary { color: var(--lg-gold) !important; }
.text-muted { color: var(--lg-muted) !important; }
:focus-visible { outline: 2px solid var(--lg-gold-light); outline-offset: 3px; }

/* gold gradient text helper */
.lg-gold-text,
.header-page h1,
.section-title-fantasy,
.lg-section-title {
    background: var(--lg-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--lg-gold-light);
}

/* ornament divider:  ───◆───  */
.lg-divider {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 14px auto 0; max-width: 360px;
}
.lg-divider::before, .lg-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--lg-gold-line);
}
.lg-divider span {
    width: 10px; height: 10px; transform: rotate(45deg);
    background: radial-gradient(circle at 40% 35%, #ff6a5a, #b3121b 60%, #4d0508);
    border: 1.5px solid var(--lg-gold);
    box-shadow: 0 0 10px rgba(255, 70, 50, .45);
}
.lg-divider.lg-divider-left { margin-left: 0; }

/* ---------- Ornate frame (corner brackets like the artwork) ---------- */
.lg-frame,
.form-users .form-box,
.fantasy-panel,
.era-card,
.media-panel,
.ticket-admin-stat {
    position: relative;
    background:
        linear-gradient(180deg, rgba(24, 17, 13, .96) 0%, rgba(10, 8, 7, .98) 100%) !important;
    border: 1px solid var(--lg-line) !important;
    border-radius: 2px !important;
    box-shadow:
        0 0 0 4px rgba(6, 5, 5, .9),
        0 0 0 5px rgba(214, 166, 75, .14),
        0 18px 50px rgba(0, 0, 0, .6),
        inset 0 0 60px rgba(140, 21, 21, .06) !important;
}
.lg-frame::before, .lg-frame::after,
.form-users .form-box::before, .form-users .form-box::after,
.fantasy-panel::before, .fantasy-panel::after,
.era-card::before, .era-card::after,
.media-panel::before, .media-panel::after {
    content: '' !important;
    position: absolute !important;
    width: 26px !important; height: 26px !important;
    border: 2px solid var(--lg-gold) !important;
    pointer-events: none;
    z-index: 2;
    opacity: 1 !important;
    background: none !important;
    filter: drop-shadow(0 0 4px rgba(214, 166, 75, .35));
}
.lg-frame::before, .form-users .form-box::before, .fantasy-panel::before, .era-card::before, .media-panel::before {
    top: -4px !important; left: -4px !important; right: auto !important; bottom: auto !important;
    border-right: 0 !important; border-bottom: 0 !important;
}
.lg-frame::after, .form-users .form-box::after, .fantasy-panel::after, .era-card::after, .media-panel::after {
    bottom: -4px !important; right: -4px !important; top: auto !important; left: auto !important;
    border-left: 0 !important; border-top: 0 !important;
}

/* ---------- Buttons ---------- */
.btn-era, .btn-valhalla, .section-style .btn-section, .btn-section,
.lg-btn {
    position: relative;
    display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
    font-family: 'Cinzel', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
    padding: 13px 34px !important;
    border-radius: 2px !important;
    color: var(--lg-gold-pale) !important;
    background: linear-gradient(180deg, #a51e1e 0%, #7a1212 55%, #4a0909 100%) !important;
    border: 1px solid var(--lg-gold) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 160, .35),
        inset 0 0 0 2px rgba(20, 4, 4, .55),
        0 0 0 1px rgba(0, 0, 0, .6),
        0 8px 22px rgba(0, 0, 0, .55) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
    transition: transform .25s var(--lg-ease), box-shadow .25s var(--lg-ease), filter .25s var(--lg-ease) !important;
    overflow: visible !important;
}
/* diamond end caps */
.btn-era::before, .btn-era::after,
.btn-valhalla::before, .btn-valhalla::after,
.btn-section::before, .btn-section::after,
.lg-btn::before, .lg-btn::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    width: 9px !important; height: 9px !important;
    background: radial-gradient(circle at 40% 35%, #ff6a5a, #b3121b 60%, #4d0508) !important;
    border: 1.5px solid var(--lg-gold-light) !important;
    transform: translateY(-50%) rotate(45deg) !important;
    box-shadow: 0 0 8px rgba(255, 80, 60, .5) !important;
    opacity: 1 !important;
    inset: auto;
}
.btn-era::before, .btn-valhalla::before, .btn-section::before, .lg-btn::before { left: -6px !important; right: auto !important; }
.btn-era::after, .btn-valhalla::after, .btn-section::after, .lg-btn::after { right: -6px !important; left: auto !important; }
.btn-era:hover, .btn-valhalla:hover, .btn-section:hover, .lg-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 160, .45),
        inset 0 0 0 2px rgba(20, 4, 4, .55),
        0 0 0 1px rgba(0, 0, 0, .6),
        0 0 24px rgba(214, 166, 75, .35),
        0 10px 26px rgba(0, 0, 0, .6) !important;
}
.btn-era:active, .btn-valhalla:active, .btn-section:active, .lg-btn:active { transform: translateY(0); }

/* secondary (dark + gold) */
.btn-era-secondary, .btn-valhalla-secondary, .lg-btn-dark {
    background: linear-gradient(180deg, #1d1611 0%, #0d0a08 100%) !important;
    color: var(--lg-gold-light) !important;
}
.btn-era-secondary::before, .btn-era-secondary::after,
.btn-valhalla-secondary::before, .btn-valhalla-secondary::after,
.lg-btn-dark::before, .lg-btn-dark::after {
    background: linear-gradient(135deg, var(--lg-gold-light), var(--lg-gold-dark)) !important;
    box-shadow: none !important;
}
.btn-block.btn-valhalla, .btn-valhalla-block { width: 100%; }

/* ---------- Medallion icon (ring + FontAwesome glyph) ---------- */
.lg-medal {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; flex-shrink: 0;
    background: url('../images/legends/medal-ring.svg') center / contain no-repeat;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6));
}
.lg-medal i {
    font-size: 20px;
    background: var(--lg-gold-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8));
}
.lg-medal-sm { width: 42px; height: 42px; }
.lg-medal-sm i { font-size: 13px; }
.lg-medal-lg { width: 92px; height: 92px; }
.lg-medal-lg i { font-size: 30px; }

/* ---------- Navbar ---------- */
.navbar-era {
    background: linear-gradient(180deg, rgba(8, 6, 6, .97) 0%, rgba(8, 6, 6, .9) 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6) !important;
}
.navbar-era::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--lg-gold-line);
}
.navbar-era-container { min-height: 78px; }
.navbar-era .navbar-nav .nav-link {
    font-family: 'Cinzel', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: .14em !important;
    color: #e8dcc2 !important;
    padding: 10px 16px !important;
    transition: color .2s var(--lg-ease);
}
.navbar-era .navbar-nav .nav-link i { color: var(--lg-gold); margin-right: 4px; }
.navbar-era .navbar-nav .nav-link:hover,
.navbar-era .navbar-nav .nav-item.active > .nav-link { color: var(--lg-gold-light) !important; }
.navbar-era .navbar-nav .nav-item.active > .nav-link::after {
    content: '' !important;
    width: 7px !important; height: 7px !important;
    background: radial-gradient(circle at 40% 35%, #ff6a5a, #b3121b 60%, #4d0508) !important;
    border: 1px solid var(--lg-gold-light) !important;
    transform: translateX(-50%) rotate(45deg) !important;
    box-shadow: 0 0 8px rgba(255, 70, 50, .6);
}
.navbar-brand-era img { height: 58px !important; filter: drop-shadow(0 0 12px rgba(214, 166, 75, .35)) !important; }
.navbar-brand-center img.lg-nav-emblem {
    height: 86px !important; width: 86px; margin: -4px 0 -26px;
    position: relative; z-index: 5;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .8)) drop-shadow(0 0 10px rgba(214, 166, 75, .3)) !important;
    transition: transform .4s var(--lg-ease);
}
.navbar-brand-center:hover img.lg-nav-emblem { transform: scale(1.05) rotate(-2deg); }
.navbar-brand-mobile { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.navbar-brand-mobile img { height: 46px !important; }
.lg-brand-word {
    font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 15px; letter-spacing: .1em; line-height: 1.05;
    background: var(--lg-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lg-brand-word small { display: block; font-size: 9px; letter-spacing: .32em; font-weight: 700; }
.navbar-mirah .navbar-nav .dropdown-menu {
    background: linear-gradient(180deg, #17110d, #0b0807) !important;
    border: 1px solid var(--lg-line) !important;
    border-top: 2px solid var(--lg-gold) !important;
    border-radius: 0 0 2px 2px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .7) !important;
    padding: 8px 0 !important;
}
.navbar-mirah .navbar-nav .dropdown-item {
    font-family: 'Cinzel', Georgia, serif !important; font-weight: 600 !important;
    letter-spacing: .08em; font-size: 13px !important; color: #e8dcc2 !important;
    padding: 9px 20px !important; border-left: 2px solid transparent;
}
.navbar-mirah .navbar-nav .dropdown-item:hover,
.navbar-mirah .navbar-nav .dropdown-item.active {
    background: linear-gradient(90deg, rgba(140, 21, 21, .45), transparent) !important;
    color: var(--lg-gold-light) !important; border-left-color: var(--lg-gold);
}
.navbar-toggler { border: 1px solid var(--lg-line) !important; }

/* ---------- HOME: hero ---------- */
.lg-hero {
    position: relative;
    min-height: min(860px, 92vh);
    display: flex; align-items: center;
    padding: 70px 0 56px;
    overflow: hidden;
    background: var(--lg-black);
}
.lg-hero-art {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 62%;
    background: url('../images/legends/hero-art.jpg') right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
    animation: lg-slow-zoom 22s ease-in-out infinite alternate;
    transform-origin: 30% 50%;
}
@keyframes lg-slow-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.lg-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 50% 60% at 78% 45%, rgba(140, 21, 21, .18), transparent 70%),
        linear-gradient(180deg, transparent 75%, var(--lg-black) 100%);
}
.lg-hero .container { position: relative; z-index: 3; }
.lg-hero-content { text-align: center; }
.lg-hero-logo {
    width: min(440px, 88%); height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .85));
    animation: lg-rise .9s var(--lg-ease) both;
}
.lg-hero-tagline {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700;
    font-size: clamp(13px, 1.3vw, 17px); letter-spacing: .2em; text-transform: uppercase;
    color: var(--lg-gold-pale); margin: 10px 0 0;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    animation: lg-rise .9s .1s var(--lg-ease) both;
}
.lg-hero-tagline::before, .lg-hero-tagline::after {
    content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--lg-gold));
}
.lg-hero-tagline::after { transform: scaleX(-1); }
.lg-hero-desc {
    color: #d8ccb4; max-width: 520px; margin: 14px auto 0; font-size: 15.5px; line-height: 1.7;
    animation: lg-rise .9s .18s var(--lg-ease) both;
}
.lg-hero-actions {
    display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-top: 28px;
    animation: lg-rise .9s .26s var(--lg-ease) both;
}
@keyframes lg-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* feature medallions row */
.lg-features {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin: 34px auto 0; max-width: 560px;
    animation: lg-rise .9s .34s var(--lg-ease) both;
}
.lg-feature {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
    padding: 0 6px; position: relative;
}
.lg-feature + .lg-feature::before {
    content: ''; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px;
    background: linear-gradient(180deg, transparent, var(--lg-line), transparent);
}
.lg-feature img { width: 70px; height: 70px; transition: transform .35s var(--lg-ease), filter .35s; }
.lg-feature:hover img { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 0 12px rgba(214, 166, 75, .5)); }
.lg-feature span {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 11.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--lg-gold-pale); line-height: 1.3;
}

/* ---------- Section titles ---------- */
.lg-section-head { text-align: center; margin-bottom: 38px; }
.lg-section-title, .section-title-fantasy {
    font-family: 'Cinzel', Georgia, serif !important; font-weight: 900 !important;
    font-size: clamp(24px, 2.6vw, 34px) !important; letter-spacing: .12em !important;
    text-transform: uppercase; margin: 0 !important; display: inline-block;
}
.section-title-fantasy::after { display: none !important; }
.section-title-fantasy i { -webkit-text-fill-color: var(--lg-gold); }
.lg-section-sub { color: var(--lg-muted); margin: 10px auto 0; max-width: 560px; }

/* ---------- Status / info cards ---------- */
.era-stats-section { background: transparent !important; padding: 70px 0 40px !important; }
.era-knight { display: none !important; }
.era-card { min-height: 0 !important; }
.era-card-header {
    font-family: 'Cinzel', Georgia, serif !important; font-weight: 700 !important;
    letter-spacing: .14em !important; color: var(--lg-gold-light) !important;
    background: linear-gradient(90deg, rgba(140, 21, 21, .35), transparent 80%) !important;
    border-bottom: 1px solid var(--lg-line) !important;
    display: flex; align-items: center; gap: 12px;
}
.era-card-header::after { background: var(--lg-gold-line) !important; }
.era-card-header i { color: var(--lg-gold) !important; }
.era-card-body::before { display: none !important; }
.era-stat-list li { border-bottom: 1px dashed rgba(214, 166, 75, .16) !important; }
.era-stat-label { color: var(--lg-muted) !important; letter-spacing: .08em; }
.era-stat-value { color: var(--lg-gold-pale) !important; font-family: 'Cinzel', Georgia, serif; font-weight: 700; }
/* Game Information — clearer text + nobility block */
.era-card-info .era-stat-label { color: #d9ccb2 !important; font-size: .92rem; font-weight: 600; }
.era-card-info .era-stat-value { font-size: 1.02rem; text-align: right; }
.era-stat-subtitle {
    margin: 18px 0 4px; padding-bottom: 6px;
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: .92rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--lg-gold-light);
    border-bottom: 1px solid var(--lg-line);
}
.era-stat-subtitle i, .era-stat-note i { color: var(--lg-gold); margin-right: 6px; }
.era-stat-note {
    margin-top: 14px; padding: 10px 12px; border-radius: 6px;
    background: rgba(140, 21, 21, .22); border: 1px solid var(--lg-line-soft);
    color: var(--lg-gold-pale); font-size: .9rem; font-weight: 600; text-align: center;
}
.era-status-online { color: #59e08d !important; }
.era-status-offline { color: #ff5a4f !important; }

/* ---------- Media / community ---------- */
.section-fantasy, .dark-bg, .section-style { background-color: transparent !important; }
.media-panel-header {
    font-family: 'Cinzel', Georgia, serif !important; color: var(--lg-gold-light) !important;
    letter-spacing: .12em; border-bottom: 1px solid var(--lg-line) !important;
    background: linear-gradient(90deg, rgba(140, 21, 21, .35), transparent 80%) !important;
}
.media-nav { border: 1px solid var(--lg-gold) !important; background: rgba(10, 8, 7, .85) !important; color: var(--lg-gold-light) !important; }
.screenshot-dot.active { background: var(--lg-gold) !important; }
.screenshot-main-img { border: 1px solid var(--lg-line); }

.community-card .card-body { padding: 34px 26px !important; align-items: center; }
.community-card .card-title { color: var(--lg-gold-light) !important; font-family: 'Cinzel', Georgia, serif; letter-spacing: .08em; }
.community-card .card-text { color: #cfc3aa !important; }
.community-card .community-icon { display: none !important; }
.community-card .lg-medal { margin-bottom: 18px; }
.community-card:hover { transform: translateY(-4px); transition: transform .35s var(--lg-ease); }

/* ---------- Inner page banner ---------- */
.header-page {
    position: relative;
    height: auto !important; min-height: 280px;
    padding: 60px 0 !important;
    background:
        linear-gradient(90deg, rgba(6, 5, 5, 1) 0%, rgba(6, 5, 5, .94) 34%, rgba(6, 5, 5, .55) 62%, rgba(6, 5, 5, .25) 100%),
        url('../images/legends/banner-art.jpg') right 30% / cover no-repeat !important;
    border-bottom: 0 !important;
    overflow: hidden;
}
.header-page::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lg-gold-line);
}
.header-page::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
    background: linear-gradient(180deg, transparent, var(--lg-black));
}
.header-page .container { position: relative; z-index: 2; }
.header-page h1 {
    font-family: 'Cinzel', Georgia, serif !important; font-weight: 900 !important;
    font-size: clamp(30px, 4vw, 50px) !important; letter-spacing: .1em !important;
    text-transform: uppercase; margin: 0; line-height: 1.1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .9));
}
.header-page .desc {
    color: #dccfb4 !important; font-size: 16px !important; letter-spacing: .06em; margin-top: 12px;
    display: flex; align-items: center; gap: 12px;
}
.header-page .desc::before {
    content: ''; width: 9px; height: 9px; transform: rotate(45deg); flex-shrink: 0;
    background: radial-gradient(circle at 40% 35%, #ff6a5a, #b3121b 60%, #4d0508);
    border: 1.5px solid var(--lg-gold);
}

/* ---------- Forms ---------- */
.form-users { background: transparent !important; }
.form-users .form-box { padding: 40px 42px !important; }
.form-users .form-box h3 {
    font-family: 'Cinzel', Georgia, serif !important; font-weight: 900 !important;
    letter-spacing: .1em !important; font-size: 22px !important;
    color: var(--lg-gold-light) !important; padding-bottom: 14px;
}
.form-users .form-box h3 i { color: var(--lg-gold) !important; }
.form-users .form-box hr { border-top: 1px solid var(--lg-line) !important; }
.form-users .form-box label {
    font-family: 'Cinzel', Georgia, serif !important; font-weight: 700 !important;
    font-size: 12px !important; letter-spacing: .14em !important; color: var(--lg-gold) !important;
    text-transform: uppercase;
}
.form-users .form-box .form-control,
.form-control {
    background: rgba(4, 3, 3, .85) !important;
    border: 1px solid rgba(214, 166, 75, .28) !important;
    border-radius: 2px !important;
    color: var(--lg-text) !important;
    height: 50px; font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
textarea.form-control { height: auto; }
.form-users .form-box .form-control:focus,
.form-control:focus {
    border-color: var(--lg-gold) !important;
    box-shadow: 0 0 0 3px rgba(214, 166, 75, .14), 0 0 18px rgba(214, 166, 75, .12) !important;
    background: rgba(8, 6, 5, .95) !important;
}
.form-control::placeholder { color: #6f6656; }
label.error { color: #ff7a6e !important; font-size: 12.5px; margin-top: 6px; letter-spacing: .02em; text-transform: none !important; font-family: 'Inter', sans-serif !important; }
.lg-captcha-img, img[src*="captcha.php"] {
    border: 1px solid var(--lg-gold) !important;
    box-shadow: 0 0 0 3px rgba(6, 5, 5, .9), 0 0 0 4px rgba(214, 166, 75, .2) !important;
    border-radius: 2px !important;
}

/* alerts */
.alert { border-radius: 2px !important; font-size: 14.5px; }
.alert-danger { background: linear-gradient(90deg, rgba(140, 21, 21, .35), rgba(60, 8, 8, .35)) !important; border: 1px solid rgba(255, 90, 79, .45) !important; color: #ffd6d0 !important; }
.alert-success { background: linear-gradient(90deg, rgba(30, 110, 60, .35), rgba(10, 50, 25, .35)) !important; border: 1px solid rgba(89, 224, 141, .45) !important; color: #d6ffe4 !important; }
.alert-info { background: linear-gradient(90deg, rgba(214, 166, 75, .18), rgba(214, 166, 75, .05)) !important; border: 1px solid var(--lg-line) !important; color: var(--lg-gold-pale) !important; }
.alert-secondary { background: rgba(255, 255, 255, .04) !important; border: 1px solid var(--lg-line-soft) !important; color: var(--lg-muted) !important; }

/* login page helper buttons */
.form-users .btn-success, .form-users .btn-danger {
    background: transparent !important; border: 1px solid var(--lg-line) !important;
    color: var(--lg-gold-light) !important; font-family: 'Cinzel', Georgia, serif; letter-spacing: .06em; font-weight: 700;
}
.form-users .btn-success:hover, .form-users .btn-danger:hover { border-color: var(--lg-gold) !important; background: rgba(214, 166, 75, .08) !important; }

/* ---------- Download / store cards ---------- */
#download .card-title, .store-item-name { font-family: 'Cinzel', Georgia, serif !important; color: var(--lg-gold-light) !important; letter-spacing: .08em; }
#download .download-intro { color: #d8ccb4 !important; font-size: 16px; }
#download h2.text-warning, .lg-page-heading {
    font-family: 'Cinzel', Georgia, serif; font-weight: 900; letter-spacing: .1em;
    background: var(--lg-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.store-item-icon i, #download .card-body > i { color: var(--lg-gold) !important; }
.store-price-new { color: var(--lg-gold-pale) !important; font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 30px; }
.store-price-old { color: #8d7f69 !important; }
.store-item-card:hover, #download .card:hover { transform: translateY(-4px); }

/* ---------- Tickets ---------- */
.ticket-item { background: rgba(6, 5, 5, .65) !important; border: 1px solid var(--lg-line-soft) !important; border-left: 3px solid var(--lg-gold) !important; }
.ticket-item:hover { border-color: var(--lg-line) !important; background: rgba(140, 21, 21, .12) !important; }
.ticket-reply { background: rgba(6, 5, 5, .6) !important; border: 1px solid var(--lg-line-soft) !important; }
.ticket-reply-staff { border-color: rgba(214, 166, 75, .5) !important; background: linear-gradient(90deg, rgba(140, 21, 21, .18), rgba(6, 5, 5, .6)) !important; }
.ticket-staff-badge { background: var(--lg-crimson) !important; border: 1px solid var(--lg-gold) !important; color: var(--lg-gold-pale) !important; }
.ticket-admin-table thead th { color: var(--lg-gold) !important; font-family: 'Cinzel', Georgia, serif; letter-spacing: .1em; border-bottom: 1px solid var(--lg-line) !important; }
.ticket-admin-table tbody td { border-top: 1px solid var(--lg-line-soft) !important; color: var(--lg-text) !important; }
.ticket-admin-stat strong { color: var(--lg-gold-pale) !important; font-family: 'Cinzel', Georgia, serif; }
.btn-ticket-close { border: 1px solid #ff5a4f !important; color: #ffb4ad !important; background: rgba(140, 21, 21, .25) !important; }

/* ---------- Footer ---------- */
#footer { background: linear-gradient(180deg, transparent, rgba(140, 21, 21, .06)) !important; }
.footer-ornament { height: 1px !important; background: var(--lg-gold-line) !important; }
.lg-footer-brand { text-align: center; margin-bottom: 26px; }
.lg-footer-brand img { width: 220px; height: auto; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .8)); }
.footer-social { display: flex; justify-content: center; gap: 18px; }
.footer-social-link {
    width: 54px !important; height: 54px !important;
    background: url('../images/legends/medal-ring.svg') center / contain no-repeat !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    transition: transform .3s var(--lg-ease), filter .3s !important;
}
.footer-social-link i {
    font-size: 16px !important;
    background: var(--lg-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-social-link:hover { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 0 10px rgba(214, 166, 75, .5)); }
.copyright { color: var(--lg-muted) !important; }
.footer-heading { font-family: 'Cinzel', Georgia, serif !important; color: var(--lg-gold-light) !important; letter-spacing: .14em !important; }
.footer-link { color: var(--lg-gold) !important; }

/* ---------- 404 ---------- */
.lg-404 { text-align: center; padding: 90px 0; }
.lg-404 .lg-404-code {
    font-family: 'Cinzel Decorative', 'Cinzel', serif; font-weight: 900; font-size: clamp(90px, 16vw, 170px); line-height: 1;
    background: var(--lg-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .9));
}

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
    .lg-hero-tagline { white-space: nowrap; }
}
@media (max-width: 991.98px) {
    .lg-hero { min-height: 0; padding: 0 0 50px; flex-direction: column; }
    .lg-hero-art {
        position: relative; width: 100%; height: 300px;
        background-position: 30% 30%;
        -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
        animation: none;
    }
    .lg-hero .container { margin-top: -70px; }
    .navbar-brand-center img.lg-nav-emblem { height: 64px !important; width: 64px; margin: 0; }
    .navbar-era .navbar-nav .nav-link { padding: 12px 6px !important; }
    .navbar-collapse { border-top: 1px solid var(--lg-line-soft); }
    .header-page {
        background:
            linear-gradient(180deg, rgba(6, 5, 5, .55) 0%, rgba(6, 5, 5, .92) 100%),
            url('../images/legends/banner-art.jpg') 60% 25% / cover no-repeat !important;
        min-height: 220px; padding: 44px 0 !important;
    }
}
@media (max-width: 575.98px) {
    .lg-features { grid-template-columns: repeat(2, 1fr); row-gap: 22px; max-width: 340px; }
    .lg-feature:nth-child(3)::before { display: none; }
    .lg-hero-actions { gap: 16px; }
    .lg-hero-actions .lg-btn, .lg-hero-actions .btn-era { width: 100%; max-width: 320px; }
    .form-users .form-box { padding: 28px 22px !important; }
    .btn-era, .btn-valhalla, .btn-section, .lg-btn { padding: 12px 26px !important; font-size: 13px !important; }
    .lg-hero-tagline::before, .lg-hero-tagline::after { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-hero-art, .lg-hero-logo, .lg-hero-tagline, .lg-hero-desc, .lg-hero-actions, .lg-features { animation: none !important; }
}

/* ---------- clean-ups of old theme decorations ---------- */
.era-card-header::after, .era-card-header::before { display: none !important; }
.copyright a { color: var(--lg-gold-light) !important; }
.media-empty i, .media-panel-header .fa-youtube { color: var(--lg-gold) !important; }
.media-empty { color: var(--lg-muted) !important; }
.era-card-discord .era-card-body, .discord-widget-body { background: transparent !important; }
.lg-brand-word small {
    background: var(--lg-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.store-item-icon { background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; height: auto !important; }
#download .card-body, .store-item-card .card-body { position: relative; z-index: 1; }

/* cards on download / store / screenshot pages */
#download .card, .store .card, .card.fantasy-panel {
    background: linear-gradient(180deg, rgba(24, 17, 13, .96) 0%, rgba(10, 8, 7, .98) 100%) !important;
    border: 1px solid var(--lg-line) !important;
    box-shadow: 0 0 0 4px rgba(6, 5, 5, .9), 0 0 0 5px rgba(214, 166, 75, .14), 0 18px 50px rgba(0, 0, 0, .6) !important;
    overflow: visible !important;
    transition: transform .35s var(--lg-ease), box-shadow .35s var(--lg-ease) !important;
}
#download .card:hover, .store .card:hover {
    box-shadow: 0 0 0 4px rgba(6, 5, 5, .9), 0 0 0 5px rgba(214, 166, 75, .3), 0 0 30px rgba(214, 166, 75, .15), 0 18px 50px rgba(0, 0, 0, .6) !important;
}
.section-style .card h3::after, .section-style .card h4::after { left: 50% !important; transform: translateX(-50%); width: 60px !important; background: var(--lg-gold-line) !important; }
.section-style h3::after { background: linear-gradient(90deg, var(--lg-gold), transparent) !important; }
.form-users .form-box h3::after { display: none !important; }
#screenshot .container-image { border: 1px solid var(--lg-line); box-shadow: 0 0 0 4px rgba(6, 5, 5, .9), 0 0 0 5px rgba(214, 166, 75, .14); }
#screenshot .container-image .shadow-image { background: linear-gradient(180deg, rgba(74, 9, 9, .2), rgba(6, 5, 5, .85)) !important; }
.form-users, .store, #download, #screenshot, #statistic, #media-showcase, #community { background: transparent !important; }
.ticket-status-badge { font-family: 'Cinzel', Georgia, serif; letter-spacing: .1em; border-radius: 2px !important; }
.ticket-status-open { color: var(--lg-gold-pale) !important; background: rgba(214, 166, 75, .14) !important; border: 1px solid rgba(214, 166, 75, .5) !important; }
.ticket-status-answered { color: #b9f5cf !important; background: rgba(60, 170, 100, .15) !important; border: 1px solid rgba(89, 224, 141, .45) !important; }
.ticket-status-closed { color: #d8c9c4 !important; background: rgba(140, 21, 21, .2) !important; border: 1px solid rgba(255, 90, 79, .35) !important; }
.ticket-admin-stat { padding: 14px 22px !important; }
.ticket-admin-stat span { color: var(--lg-muted) !important; letter-spacing: .08em; }
.lg-brand-word { display: inline-flex; flex-direction: column; align-items: flex-start; }
@media (max-width: 991.98px) {
    .navbar-era-container .navbar-brand-mobile { margin-bottom: 10px; }
    .navbar-era-container .navbar-toggler { top: 14px !important; transform: none !important; }
}
input[type="file"] { color: var(--lg-muted); font-size: 13px; }
input[type="file"]::file-selector-button {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: .08em; font-size: 12px;
    color: var(--lg-gold-light); background: #120d0b; border: 1px solid var(--lg-gold);
    padding: 7px 14px; margin-right: 12px; border-radius: 2px; cursor: pointer;
}

/* ---------- Hero fits the screen (logo + buttons + features visible without scrolling) ---------- */
@media (min-width: 992px) {
    .lg-hero { min-height: calc(100vh - 78px); max-height: 980px; padding: 24px 0 30px; }
    .lg-hero-logo { width: auto; height: clamp(200px, 36vh, 360px); max-width: 100%; }
    .lg-hero-tagline { margin-top: 4px; }
    .lg-hero-desc { margin-top: 10px; font-size: 15px; }
    .lg-hero-actions { margin-top: 22px; }
    .lg-features { margin-top: 26px; }
    .lg-feature img { width: 60px; height: 60px; }
    .lg-hero-art { width: 58%; }
}
@media (min-width: 992px) and (max-height: 760px) {
    .lg-hero-logo { height: clamp(170px, 30vh, 260px); }
    .lg-hero-desc { display: none; }
}

/* ---------- Cursor (gold blade arrow; crimson on links/buttons) ---------- */
html, body {
    cursor: url('../images/legends/cursor.svg') 2 2, auto !important;
}
a, a *, button, button *, .btn, [role="button"], label[for], select, summary,
.dropdown-toggle, .nav-link, .screenshot-dot, .video-thumb, .media-nav, .footer-social-link,
input[type="submit"], input[type="button"], input[type="file"], input[type="checkbox"], input[type="radio"] {
    cursor: url('../images/legends/pointer.svg') 2 2, pointer !important;
}
input[type="text"], input[type="email"], input[type="password"], textarea, .form-control {
    cursor: text !important;
}

/* ---------- Discord widget (site style) ---------- */
.era-card-discord .discord-widget-body { padding: 0 !important; }
.lg-discord { display: flex; flex-direction: column; height: 100%; min-height: 340px; }
.lg-discord-top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 20px; border-bottom: 1px solid var(--lg-line-soft);
    background: linear-gradient(90deg, rgba(214, 166, 75, .12), transparent);
}
.lg-discord-logo { font-family: 'Cinzel', Georgia, serif; font-weight: 900; letter-spacing: .08em; font-size: 18px; color: var(--lg-gold-light); }
.lg-discord-logo i { color: var(--lg-gold); margin-right: 6px; }
.lg-discord-online { font-size: 13px; color: var(--lg-gold-pale); display: inline-flex; align-items: center; gap: 7px; letter-spacing: .04em; }
.lg-discord-count { font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 16px; color: var(--lg-gold-light); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; background: #59e08d; box-shadow: 0 0 8px rgba(89, 224, 141, .8); animation: lg-pulse 2s infinite; }
@keyframes lg-pulse { 50% { box-shadow: 0 0 2px rgba(89, 224, 141, .4); } }
.lg-discord-body { flex: 1; padding: 14px 20px 6px; overflow-y: auto; max-height: 300px; scrollbar-width: thin; scrollbar-color: var(--lg-gold-dark) transparent; }
.lg-discord-label {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 11px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--lg-gold); margin: 6px 0 8px; display: flex; align-items: center; gap: 8px;
}
.lg-discord-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--lg-line), transparent); }
.lg-discord-channels, .lg-discord-members { list-style: none; margin: 0 0 12px; padding: 0; }
.lg-discord-channels li { display: flex; align-items: center; gap: 10px; padding: 5px 4px; color: #e8dcc2; font-size: 14.5px; }
.lg-discord-channels li i { color: var(--lg-gold-dark); font-size: 12px; width: 14px; }
.lg-discord-members li {
    display: flex; align-items: center; gap: 11px; padding: 5px 6px; border-radius: 2px;
    transition: background .2s;
}
.lg-discord-members li:hover { background: rgba(214, 166, 75, .07); }
.lg-discord-avatar {
    position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
    border: 1px solid var(--lg-gold-dark); background: #1d1510;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', Georgia, serif; font-size: 12px; color: var(--lg-gold-light);
}
.lg-discord-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lg-discord-status { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #120d0b; }
.lg-status-online { background: #59e08d; } .lg-status-idle { background: #f0b232; } .lg-status-dnd { background: #f04747; }
.lg-discord-name { color: #efe6d2; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-discord-game { margin-left: auto; color: var(--lg-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.lg-discord-more { color: var(--lg-muted); font-size: 13px; padding-left: 45px !important; }
.lg-discord-empty { color: #d8ccb4; text-align: center; margin: 40px 0; font-family: 'Cinzel', Georgia, serif; letter-spacing: .06em; }
.lg-discord-join { margin: 10px 20px 20px; }
.lg-discord-skeleton span {
    display: block; height: 14px; margin: 12px 0; border-radius: 2px;
    background: linear-gradient(90deg, rgba(214, 166, 75, .06), rgba(214, 166, 75, .16), rgba(214, 166, 75, .06));
    background-size: 200% 100%; animation: lg-shimmer 1.4s infinite linear;
}
.lg-discord-skeleton span:nth-child(2) { width: 70%; } .lg-discord-skeleton span:nth-child(3) { width: 85%; } .lg-discord-skeleton span:nth-child(4) { width: 55%; }
@keyframes lg-shimmer { to { background-position: -200% 0; } }
.lg-discord.is-failed .lg-discord-online { display: none; }

/* ---------- Server status card ---------- */
.lg-status-body { padding: 20px !important; gap: 18px; }
.lg-status-banner {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border: 1px solid var(--lg-line-soft); border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 90, 79, .14), rgba(6, 5, 5, .4));
}
.lg-status-banner.is-online { background: linear-gradient(90deg, rgba(89, 224, 141, .14), rgba(6, 5, 5, .4)); }
.lg-status-banner small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lg-muted); }
.lg-status-banner strong { font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 20px; letter-spacing: .08em; color: #ff7a6e; }
.lg-status-banner.is-online strong { color: #6cf0a0; }
.lg-status-orb { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: #ff5a4f; box-shadow: 0 0 0 4px rgba(255, 90, 79, .18), 0 0 14px rgba(255, 90, 79, .7); }
.is-online .lg-status-orb { background: #59e08d; box-shadow: 0 0 0 4px rgba(89, 224, 141, .18), 0 0 14px rgba(89, 224, 141, .8); animation: lg-pulse 2s infinite; }
.lg-load-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lg-load-head span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lg-muted); }
.lg-load-head strong { font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 22px; color: var(--lg-gold-pale); }
.lg-load-head em { font-style: normal; font-size: 14px; color: var(--lg-muted); }
.lg-load-bar { height: 10px; border-radius: 1px; background: rgba(6, 5, 5, .9); border: 1px solid var(--lg-line); overflow: hidden; }
.lg-load-bar span {
    display: block; height: 100%;
    background: linear-gradient(90deg, #8a5f1d, #d6a64b 60%, #f6d98b);
    box-shadow: 0 0 10px rgba(214, 166, 75, .6);
    transition: width 1s var(--lg-ease);
}
.lg-load-foot { font-size: 12px; color: var(--lg-muted); margin-top: 6px; text-align: right; letter-spacing: .04em; }
.lg-stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.lg-stat-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    padding: 14px 8px 12px; border: 1px solid var(--lg-line-soft); border-radius: 2px;
    background: linear-gradient(180deg, rgba(214, 166, 75, .07), rgba(6, 5, 5, .3));
    transition: border-color .25s, transform .25s var(--lg-ease);
}
.lg-stat-tile:hover { border-color: var(--lg-line); transform: translateY(-2px); }
.lg-stat-tile strong { font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 22px; line-height: 1.1; color: var(--lg-gold-pale); font-variant-numeric: tabular-nums; }
.lg-stat-tile small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--lg-muted); }
.lg-stat-tile-wide { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 14px; text-align: left; }
.lg-stat-tile-wide > div, .lg-stat-tile-wide strong { line-height: 1; }
.lg-stat-tile-wide small { display: block; }

/* ---------- Dragon fire canvas ---------- */
.lg-fire-canvas { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; }
.lg-hero-art { animation: none !important; transform: none !important; }   /* keep the art still so the fire stays on the mouth */

/* ---------- Artwork behind the whole page (dimmed) ---------- */
.lg-page-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 30% 35%, rgba(6, 5, 5, .55), rgba(6, 5, 5, .86) 70%),
        linear-gradient(180deg, rgba(6, 5, 5, .72) 0%, rgba(6, 5, 5, .84) 100%),
        url('../images/legends/hero-art.jpg') 22% 30% / cover no-repeat;
}
body { background-color: var(--lg-black) !important; background-image: none !important; }
#era-page-content, #footer { position: relative; z-index: 1; }
/* hero keeps the bright art; its black right side now lets the page art show through softly */
.lg-hero { background: linear-gradient(90deg, transparent 30%, rgba(6, 5, 5, .72) 62%, rgba(6, 5, 5, .9) 100%) !important; }
.lg-hero::after { background: radial-gradient(ellipse 50% 60% at 78% 45%, rgba(140, 21, 21, .16), transparent 70%), linear-gradient(180deg, transparent 80%, rgba(6, 5, 5, .55) 100%) !important; }
.header-page { background-color: transparent !important; }
#footer { background: linear-gradient(180deg, rgba(6, 5, 5, .4), rgba(6, 5, 5, .92)) !important; }

/* stronger page artwork + seamless edge under the hero */
.lg-page-bg {
    background:
        radial-gradient(ellipse 80% 70% at 30% 40%, rgba(6, 5, 5, .25), rgba(6, 5, 5, .7) 75%),
        linear-gradient(180deg, rgba(6, 5, 5, .45) 0%, rgba(6, 5, 5, .62) 100%),
        url('../images/legends/hero-art.jpg') 22% 30% / cover no-repeat !important;
}
@media (min-width: 992px) {
    .lg-hero-art {
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%), linear-gradient(180deg, #000 72%, transparent 100%);
        -webkit-mask-composite: source-in;
                mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%), linear-gradient(180deg, #000 72%, transparent 100%);
                mask-composite: intersect;
    }
    .lg-hero { background: linear-gradient(90deg, transparent 30%, rgba(6, 5, 5, .6) 62%, rgba(6, 5, 5, .78) 100%) !important; }
}
@media (min-width: 992px) {
    .lg-hero { background: radial-gradient(ellipse 42% 62% at 76% 50%, rgba(6, 5, 5, .72), rgba(6, 5, 5, 0) 100%) !important; }
}

/* =====================================================================
   ONE background image for the whole page (fixed), the hero uses it too
   ===================================================================== */
.lg-page-bg {
    background:
        linear-gradient(90deg, rgba(6, 5, 5, 0) 0%, rgba(6, 5, 5, 0) 38%, rgba(6, 5, 5, .45) 62%, rgba(6, 5, 5, .62) 100%),
        linear-gradient(180deg, rgba(6, 5, 5, .15) 0%, rgba(6, 5, 5, 0) 30%, rgba(6, 5, 5, .25) 100%),
        url('../images/legends/page-bg.jpg') center center / cover no-repeat !important;
}
.lg-fire-canvas { position: fixed !important; top: 0; left: 0; z-index: 0 !important; pointer-events: none; }
.lg-hero-art { display: none !important; }
.lg-hero, .lg-hero::after { background: transparent !important; }
.lg-hero::after { display: none !important; }
.lg-hero-content {
    position: relative;
    padding: 10px 0;
}
.lg-hero-content::before {   /* soft dark pool behind the logo + text so they stay readable */
    content: ''; position: absolute; inset: -40px -60px; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(6, 5, 5, .55), rgba(6, 5, 5, 0) 75%);
}
@media (max-width: 991.98px) {
    .lg-page-bg {
        background:
            linear-gradient(180deg, rgba(6, 5, 5, .1) 0%, rgba(6, 5, 5, .55) 55%, rgba(6, 5, 5, .7) 100%),
            url('../images/legends/page-bg.jpg') 28% center / cover no-repeat !important;
    }
    .lg-hero { padding-top: 46vh !important; }   /* let the warrior + dragon show above the logo on phones */
    .lg-hero .container { margin-top: 0 !important; }
}
/* inner page titles sit on the same single background (no second picture) */
.header-page {
    background: linear-gradient(90deg, rgba(6, 5, 5, .78) 0%, rgba(6, 5, 5, .45) 45%, rgba(6, 5, 5, 0) 75%) !important;
}
.header-page::before { display: none !important; }
@media (max-width: 991.98px) {
    .header-page { background: linear-gradient(180deg, rgba(6, 5, 5, .2), rgba(6, 5, 5, .7)) !important; }
}

/* =====================================================================
   Animated video background (whole page)
   ===================================================================== */
.lg-page-bg { background: #060505 url('../images/legends/video-poster.jpg') center center / cover no-repeat !important; overflow: hidden; }
.lg-bg-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center center;
}
.lg-page-bg::after {   /* darken the right side (logo + text) and the bottom a little */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 5, 5, 0) 0%, rgba(6, 5, 5, 0) 40%, rgba(6, 5, 5, .4) 62%, rgba(6, 5, 5, .55) 100%),
        linear-gradient(180deg, rgba(6, 5, 5, .1) 0%, rgba(6, 5, 5, 0) 30%, rgba(6, 5, 5, .25) 100%);
}
@media (max-width: 991.98px) {
    .lg-page-bg { background-position: 28% center !important; }
    .lg-bg-video { object-position: 28% center; }
    .lg-page-bg::after { background: linear-gradient(180deg, rgba(6, 5, 5, .05) 0%, rgba(6, 5, 5, .5) 55%, rgba(6, 5, 5, .7) 100%); }
}

/* ---- v2 video (logo is inside the video): wide screens use the video logo ---- */
@media (min-width: 992px) {
    .lg-page-bg { background-position: center top !important; }
    .lg-bg-video { object-position: center top; }
    .lg-page-bg::after {
        background:
            linear-gradient(90deg, rgba(6, 5, 5, 0) 0%, rgba(6, 5, 5, 0) 45%, rgba(6, 5, 5, .18) 70%, rgba(6, 5, 5, .3) 100%),
            linear-gradient(180deg, rgba(6, 5, 5, .1) 0%, rgba(6, 5, 5, 0) 30%, rgba(6, 5, 5, .3) 100%);
    }
}
html.lg-vlogo .lg-hero { min-height: 0; max-height: none; align-items: flex-start; padding-bottom: 50px; }
html.lg-vlogo .lg-hero .container { max-width: none; padding: 0; margin: 0; }
html.lg-vlogo .lg-hero .row { margin: 0; display: block; }
html.lg-vlogo .lg-hero .row > div { flex: none; max-width: none; padding: 0; }
html.lg-vlogo .lg-hero-logo { display: none; }
html.lg-vlogo .lg-hero-tagline { margin-top: 0; }
html.lg-vlogo .lg-hero-content::before { inset: -10px -40px; }

/* video logo layout: buttons flank the gem, icons beside them, tagline below */
html.lg-vlogo .lg-hero-content { display: flex; flex-direction: column; align-items: center; }
html.lg-vlogo .lg-hero-content::before { display: none; }
html.lg-vlogo .lg-hero-desc { display: none; }
html.lg-vlogo .lg-hero-actions { order: 2; margin-top: 0; gap: 78px; flex-wrap: nowrap; }
html.lg-vlogo .lg-hero-tagline { order: 3; margin-top: 18px; text-shadow: 0 2px 10px #000; }
html.lg-vlogo .lg-features {
    position: absolute; z-index: 3; margin: 0; max-width: none;
    padding: 8px 6px;
    background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(6, 5, 5, .7), rgba(6, 5, 5, 0) 100%);
}
html.lg-vlogo .lg-feature img { width: 58px; height: 58px; }
html.lg-vlogo-short .lg-hero-tagline { display: none; }
/* dim the video once the visitor scrolls down to the page sections */
.lg-page-bg::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: rgba(6, 5, 5, .72); opacity: 0; transition: opacity .6s ease;
}
.lg-page-bg::after { z-index: 2; }
html.lg-scrolled .lg-page-bg::before { opacity: 1; }
/* no empty band between the hero buttons and the cards below */
html.lg-vlogo .lg-hero { padding-bottom: 0 !important; }
html.lg-vlogo #statistic { padding-top: 14px !important; }
html.lg-vlogo #statistic .era-stats-container,
html.lg-vlogo #statistic .row { margin-top: 0 !important; padding-top: 0 !important; }
/* inner pages: no big title band — the page content starts right under the navbar */
.header-page { display: none !important; }
.header-page + section { padding-top: 60px !important; }
.header-page + section h2, .header-page + section h3, .header-page + section p { text-shadow: 0 2px 6px #000, 0 0 18px rgba(0, 0, 0, .95); }

/* =====================================================================
   Halloween theme (assets/js/halloween.js adds html.lg-halloween)
   ===================================================================== */
.lg-hw-canvas { position: fixed; top: 0; left: 0; z-index: 9990; pointer-events: none; }
.lg-hw-web {
    position: fixed; top: var(--lg-hw-top, 78px); width: 230px; height: 230px; z-index: 900; pointer-events: none;
    background: url('../images/halloween/cobweb.svg') 0 0 / contain no-repeat;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8));
    opacity: .85;
}
.lg-hw-web-left { left: 0; }
.lg-hw-web-right { right: 0; transform: scaleX(-1); }
.lg-hw-spider {
    position: fixed; top: var(--lg-hw-top, 78px); left: 150px; z-index: 901; pointer-events: none;
    display: flex; flex-direction: column; align-items: center;
    animation: lg-hw-drop 7s ease-in-out infinite;
}
.lg-hw-thread { width: 1px; height: 90px; background: linear-gradient(180deg, rgba(235, 225, 210, .2), rgba(235, 225, 210, .75)); }
.lg-hw-spider-body {
    width: 34px; height: 34px; margin-top: -4px;
    background: url('../images/halloween/spider.svg') center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(255, 90, 30, .35));
    animation: lg-hw-wiggle 1.6s ease-in-out infinite;
}
@keyframes lg-hw-drop {
    0%, 100% { transform: translateY(-60px); }
    45%, 60% { transform: translateY(40px); }
}
@keyframes lg-hw-wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.lg-hw-fog {
    position: fixed; left: 0; right: 0; bottom: 0; height: 26vh; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 100% at 20% 100%, rgba(120, 40, 170, .28), transparent 70%),
        radial-gradient(ellipse 60% 100% at 80% 100%, rgba(255, 110, 20, .22), transparent 70%);
    animation: lg-hw-fog 9s ease-in-out infinite alternate;
}
@keyframes lg-hw-fog { from { opacity: .65; transform: translateX(-2%); } to { opacity: 1; transform: translateX(2%); } }
.lg-hw-toggle {
    position: fixed; left: 16px; bottom: 16px; z-index: 9995;
    width: 48px; height: 48px; border-radius: 50%; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 40%, #2a1410, #0b0606);
    border: 1px solid rgba(255, 140, 40, .7);
    box-shadow: 0 0 16px rgba(255, 120, 20, .45);
    cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.lg-hw-toggle:hover { transform: scale(1.08); box-shadow: 0 0 24px rgba(255, 120, 20, .7); }
.lg-hw-toggle.is-off { opacity: .55; box-shadow: none; filter: grayscale(.8); }
.lg-hw-toggle:focus-visible { outline: 2px solid #ffb347; outline-offset: 3px; }
/* small Halloween accents on the theme */
html.lg-halloween .lg-hero-actions .lg-btn:first-child { box-shadow: 0 0 22px rgba(255, 110, 20, .55), inset 0 0 0 1px rgba(255, 170, 60, .4) !important; }
html.lg-halloween .lg-hero-tagline { color: #ffb259; }
html.lg-halloween .era-card { box-shadow: 0 0 0 1px rgba(255, 120, 30, .18), 0 18px 40px rgba(0, 0, 0, .55); }
@media (max-width: 767.98px) {
    .lg-hw-web { width: 120px; height: 120px; }
    .lg-hw-spider { left: 80px; }
    .lg-hw-thread { height: 50px; }
    .lg-hw-toggle { width: 42px; height: 42px; left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-hw-spider, .lg-hw-spider-body, .lg-hw-fog { animation: none !important; }
}
/* ---- Halloween decorations on the page (hidden when the theme is off) ---- */
html:not(.lg-halloween) .lg-hw-perch, html:not(.lg-halloween) .lg-hw-boxweb, html:not(.lg-halloween) .lg-hw-boxspider,
html:not(.lg-halloween) .lg-hw-tbat, html:not(.lg-halloween) .lg-hw-hat, html:not(.lg-halloween) .lg-hw-pile { display: none !important; }
/* buttons: a small jack-o'-lantern sits on the corner + orange glow */
html.lg-halloween .lg-hw-btn { position: relative; overflow: visible !important; animation: lg-hw-glow 2.4s ease-in-out infinite; }
@keyframes lg-hw-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 110, 20, .35), 0 0 0 1px rgba(255, 150, 50, .25); }
    50% { box-shadow: 0 0 24px rgba(255, 110, 20, .75), 0 0 0 1px rgba(255, 170, 60, .55); }
}
.lg-hw-perch {
    position: absolute; top: -15px; right: 8px; width: 26px; height: 26px; pointer-events: none; z-index: 3;
    filter: drop-shadow(0 0 6px rgba(255, 140, 20, .8));
    transform: rotate(12deg); transition: transform .3s;
}
.lg-hw-btn:hover .lg-hw-perch { transform: rotate(-8deg) translateY(-3px) scale(1.12); }
/* cards / boxes: cobweb in the top-right corner, some with a dangling spider */
html.lg-halloween .lg-hw-box { position: relative; }
.lg-hw-boxweb {
    position: absolute; top: 0; right: 0; width: 92px; height: 92px; pointer-events: none; z-index: 4;
    background: url('../images/halloween/cobweb.svg') 0 0 / contain no-repeat;
    transform: scaleX(-1); opacity: .7;
}
.lg-hw-boxspider {
    position: absolute; top: 0; right: 46px; width: 20px; height: 80px; pointer-events: none; z-index: 5;
    background:
        url('../images/halloween/spider.svg') center bottom / 20px 20px no-repeat,
        linear-gradient(rgba(235, 225, 210, .55), rgba(235, 225, 210, .55)) center top / 1px calc(100% - 16px) no-repeat;
    transform-origin: top center;
    animation: lg-hw-dangle 6s ease-in-out infinite;
}
@keyframes lg-hw-dangle {
    0%, 100% { height: 34px; transform: rotate(4deg); }
    50% { height: 86px; transform: rotate(-4deg); }
}
/* section titles: a bat on each side */
.section-title-fantasy, .lg-page-heading { position: relative; }
.lg-hw-tbat { width: 46px; height: 23px; vertical-align: middle; margin: 0 14px; animation: lg-hw-flap .5s ease-in-out infinite alternate; }
.lg-hw-tbat-r { transform: scaleX(-1); animation-name: lg-hw-flap-r; }
@keyframes lg-hw-flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
@keyframes lg-hw-flap-r { from { transform: scaleX(-1) scaleY(1); } to { transform: scaleX(-1) scaleY(.55); } }
/* witch hat on the navbar emblem */
.navbar-brand-center { position: relative; }
.lg-hw-hat {
    position: absolute; left: 50%; top: -6px; width: 58px; height: 44px; margin-left: -18px; pointer-events: none; z-index: 5;
    transform: rotate(14deg); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8));
}
/* glowing pumpkin pile in the bottom-right corner */
.lg-hw-pile { position: fixed; right: 14px; bottom: 6px; z-index: 950; pointer-events: none; width: 120px; height: 70px; }
.lg-hw-pile img { position: absolute; bottom: 0; filter: drop-shadow(0 0 10px rgba(255, 130, 20, .7)); animation: lg-hw-flicker 2.2s ease-in-out infinite; }
.lg-hw-pile img:nth-child(1) { left: 0; width: 52px; height: 52px; animation-delay: -.6s; }
.lg-hw-pile img:nth-child(2) { left: 36px; width: 66px; height: 66px; z-index: 1; }
.lg-hw-pile img:nth-child(3) { left: 82px; width: 42px; height: 42px; animation-delay: -1.3s; }
@keyframes lg-hw-flicker {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 130, 20, .55)) brightness(1); }
    40% { filter: drop-shadow(0 0 16px rgba(255, 150, 30, .9)) brightness(1.15); }
    60% { filter: drop-shadow(0 0 6px rgba(255, 110, 20, .45)) brightness(.95); }
}
@media (max-width: 767.98px) {
    .lg-hw-pile { transform: scale(.7); transform-origin: bottom right; }
    .lg-hw-boxweb { width: 64px; height: 64px; }
    .lg-hw-tbat { width: 30px; height: 15px; margin: 0 6px; }
}
.lg-hw-tbat { filter: drop-shadow(0 0 3px rgba(255, 130, 30, .95)) drop-shadow(0 0 8px rgba(255, 90, 10, .6)); }
.lg-hw-hat { width: 74px; height: 56px; top: -14px; margin-left: -12px; filter: drop-shadow(0 0 6px rgba(160, 90, 255, .55)) drop-shadow(0 2px 4px #000); }
.lg-hw-hat { width: 64px; height: 48px; top: 0; margin-left: -10px; transform: rotate(16deg); }

/* =====================================================================
   Rankings page
   ===================================================================== */
.lg-rk-kicker {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
    color: var(--lg-gold); margin-bottom: 8px;
}
.lg-rk-kicker i { color: var(--lg-crimson-light, #c0392b); margin-right: 6px; }
.lg-rk-intro { max-width: 620px; margin: 0 auto; opacity: .85; }
.lg-rk { position: relative; max-width: 1040px; margin: 0 auto; padding: 26px 28px 18px !important; }
.lg-rk-radio { position: absolute; opacity: 0; pointer-events: none; }
.lg-rk-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.lg-rk-tab {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--lg-gold-pale); margin: 0; padding: 11px 20px; cursor: pointer; user-select: none;
    background: rgba(12, 8, 7, .75); border: 1px solid rgba(214, 166, 75, .28);
    transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.lg-rk-tab i { color: var(--lg-gold); margin-right: 6px; }
.lg-rk-tab:hover { border-color: var(--lg-gold); color: #fff; }
#lg-rk-t1:checked ~ .lg-rk-tabs label[for="lg-rk-t1"],
#lg-rk-t2:checked ~ .lg-rk-tabs label[for="lg-rk-t2"],
#lg-rk-t3:checked ~ .lg-rk-tabs label[for="lg-rk-t3"],
#lg-rk-t4:checked ~ .lg-rk-tabs label[for="lg-rk-t4"],
#lg-rk-t5:checked ~ .lg-rk-tabs label[for="lg-rk-t5"] {
    color: #fff; border-color: var(--lg-gold);
    background: linear-gradient(180deg, rgba(140, 21, 21, .85), rgba(80, 10, 10, .9));
    box-shadow: 0 0 16px rgba(214, 166, 75, .25), inset 0 0 0 1px rgba(255, 210, 120, .15);
}
.lg-rk-radio:focus-visible ~ .lg-rk-tabs .lg-rk-tab { outline: 1px dashed rgba(214, 166, 75, .5); outline-offset: 2px; }
.lg-rk-panel { display: none; }
#lg-rk-t1:checked ~ .lg-rk-p1, #lg-rk-t2:checked ~ .lg-rk-p2, #lg-rk-t3:checked ~ .lg-rk-p3, #lg-rk-t4:checked ~ .lg-rk-p4, #lg-rk-t5:checked ~ .lg-rk-p5 { display: block; animation: lg-rise .45s var(--lg-ease) both; }
.lg-rk-table { width: 100%; border-collapse: collapse; color: #e9dfcc; font-size: 15px; }
.lg-rk-table th {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--lg-gold); padding: 12px 14px; border-bottom: 1px solid rgba(214, 166, 75, .35); white-space: nowrap; text-align: left;
}
.lg-rk-table td { padding: 12px 14px; border-bottom: 1px solid rgba(214, 166, 75, .1); vertical-align: middle; }
.lg-rk-table tbody tr { transition: background .2s; }
.lg-rk-table tbody tr:hover { background: rgba(214, 166, 75, .06); }
.lg-rk-pos { width: 56px; font-family: 'Cinzel', Georgia, serif; font-weight: 700; color: rgba(233, 223, 204, .55); }
.lg-rk-name { font-weight: 600; color: #fff; word-break: break-word; }
.lg-rk-muted { color: rgba(233, 223, 204, .7); white-space: nowrap; }
.lg-rk-muted small { color: var(--lg-gold); letter-spacing: 1px; }
.lg-rk-num { font-family: 'Cinzel', Georgia, serif; font-weight: 700; color: var(--lg-gold-pale); white-space: nowrap; }
.lg-rk-medal {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
    font-size: 14px; color: #1a0f08; font-weight: 900;
}
.lg-rk-top1 .lg-rk-medal { background: radial-gradient(circle at 35% 30%, #fff3c4, #e5b450 55%, #9a6a1c); box-shadow: 0 0 12px rgba(229, 180, 80, .6); }
.lg-rk-top2 .lg-rk-medal { background: radial-gradient(circle at 35% 30%, #ffffff, #c9ced6 55%, #7d838d); box-shadow: 0 0 10px rgba(201, 206, 214, .45); }
.lg-rk-top3 .lg-rk-medal { background: radial-gradient(circle at 35% 30%, #ffd8b0, #c98447 55%, #7b4a1f); box-shadow: 0 0 10px rgba(201, 132, 71, .45); }
.lg-rk-top1 { background: linear-gradient(90deg, rgba(229, 180, 80, .12), transparent 70%); }
.lg-rk-top2 { background: linear-gradient(90deg, rgba(201, 206, 214, .08), transparent 70%); }
.lg-rk-top3 { background: linear-gradient(90deg, rgba(201, 132, 71, .08), transparent 70%); }
.lg-rk-top1 .lg-rk-name { color: #ffe7a6; }
.lg-rk-badge {
    display: inline-block; padding: 4px 12px; font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 11.5px;
    letter-spacing: .12em; text-transform: uppercase; border: 1px solid; white-space: nowrap;
}
.lg-rk-king { color: #ffd776; border-color: rgba(255, 215, 118, .6); background: rgba(255, 200, 80, .1); }
.lg-rk-prince { color: #d6a6ff; border-color: rgba(190, 130, 255, .55); background: rgba(160, 90, 255, .1); }
.lg-rk-duke { color: #ff9a8a; border-color: rgba(230, 90, 70, .5); background: rgba(200, 50, 40, .1); }
.lg-rk-empty { text-align: center; padding: 40px 10px; color: rgba(233, 223, 204, .7); }
.lg-rk-updated { margin: 16px 0 0; text-align: right; font-size: 12.5px; color: rgba(233, 223, 204, .5); }
@media (max-width: 575.98px) {
    .lg-rk { padding: 18px 12px 12px !important; }
    .lg-rk-tab { flex: 1 1 auto; text-align: center; padding: 10px 8px; font-size: 11.5px; letter-spacing: .06em; }
    .lg-rk-table { font-size: 13.5px; }
    .lg-rk-table th, .lg-rk-table td { padding: 10px 8px; }
    .lg-rk-pos { width: 40px; }
}
.lg-rk-intro, #rankings .lg-page-heading, .lg-rk-kicker { text-shadow: 0 2px 6px #000, 0 0 18px rgba(0, 0, 0, .95); }
@media (max-width: 575.98px) {
    .lg-rk-badge { padding: 3px 6px; font-size: 9.5px; letter-spacing: .04em; }
    .lg-rk-num { font-size: 12.5px; }
    .lg-rk-medal { width: 24px; height: 24px; font-size: 12px; }
    .lg-rk-name { font-size: 13px; }
}
.lg-hw-hat { display: none !important; }

/* =====================================================================
   Market page
   ===================================================================== */
.lg-mk-notice { max-width: 760px; margin: 0 auto; padding: 34px 24px !important; text-align: center; color: rgba(233, 223, 204, .85); font-size: 16px; }
.lg-mk-notice i { color: var(--lg-gold); margin-right: 8px; }
.lg-mk-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.lg-mk-stat {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 14px; color: #e9dfcc;
    background: rgba(12, 8, 7, .78); border: 1px solid rgba(214, 166, 75, .25);
}
.lg-mk-stat b { font-family: 'Cinzel', Georgia, serif; color: var(--lg-gold-pale); font-size: 16px; }
.lg-mk-muted { color: rgba(233, 223, 204, .6); }
.lg-mk-dot { width: 9px; height: 9px; border-radius: 50%; background: #8a8a8a; }
.lg-mk-dot.is-live { background: #39d26b; box-shadow: 0 0 0 0 rgba(57, 210, 107, .6); animation: lg-mk-pulse 1.8s infinite; }
@keyframes lg-mk-pulse { 70% { box-shadow: 0 0 0 8px rgba(57, 210, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(57, 210, 107, 0); } }

.lg-mk { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }
.lg-mk-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.lg-mk-map, .lg-mk-booths { padding: 16px !important; }
.lg-mk-map-title {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--lg-gold); margin-bottom: 12px;
}
.lg-mk-map-title i { margin-right: 6px; }
.lg-mk-map-area {
    position: relative; aspect-ratio: 1 / 1; overflow: hidden;
    background: #0d0a09 url('../images/legends/market-map-1036.jpg') center / 100% 100% no-repeat;
    border: 1px solid rgba(214, 166, 75, .35);
}
.lg-mk-pin {
    position: absolute; transform: translate(-50%, -100%); padding: 0; border: 0; background: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; z-index: 1;
}
.lg-mk-pin-flag {
    width: 16px; height: 20px; background: linear-gradient(180deg, #e5b450, #9a6a1c);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
    filter: drop-shadow(0 0 4px rgba(229, 180, 80, .7)); transition: transform .2s;
}
.lg-mk-pin-name {
    position: absolute; bottom: 100%; margin-bottom: 4px; white-space: nowrap; font-size: 11px; color: #fff;
    background: rgba(0, 0, 0, .8); padding: 2px 6px; border: 1px solid rgba(214, 166, 75, .4); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.lg-mk-pin:hover, .lg-mk-pin.is-active { z-index: 3; }
.lg-mk-pin:hover .lg-mk-pin-name, .lg-mk-pin.is-active .lg-mk-pin-name, .lg-mk-pin:focus-visible .lg-mk-pin-name { opacity: 1; }
.lg-mk-pin:hover .lg-mk-pin-flag, .lg-mk-pin.is-active .lg-mk-pin-flag { transform: scale(1.35); background: linear-gradient(180deg, #ff6b4a, #8c1515); }

.lg-mk-booths { max-height: 420px; overflow-y: auto; }
.lg-mk-booth {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
    padding: 9px 10px; margin: 0 0 4px; color: #e9dfcc; background: transparent; border: 1px solid transparent; cursor: pointer;
    transition: background .2s, border-color .2s;
}
.lg-mk-booth span { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lg-mk-booth small { display: block; font-weight: 400; font-size: 11.5px; color: rgba(233, 223, 204, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-mk-booth b { flex: none; min-width: 28px; text-align: center; font-family: 'Cinzel', Georgia, serif; font-size: 12px; color: var(--lg-gold-pale); background: rgba(214, 166, 75, .12); padding: 2px 6px; }
.lg-mk-booth:hover { background: rgba(214, 166, 75, .07); }
.lg-mk-booth.is-active { border-color: rgba(214, 166, 75, .5); background: rgba(140, 21, 21, .35); }

.lg-mk-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px !important; margin-bottom: 14px; }
.lg-mk-search { position: relative; flex: 1 1 240px; }
.lg-mk-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--lg-gold); font-size: 13px; }
.lg-mk-filters input, .lg-mk-filters select {
    height: 42px; color: #f3ead8; background: #0b0807; border: 1px solid rgba(214, 166, 75, .3); border-radius: 0; font-size: 14px;
}
.lg-mk-filters input { width: 100%; padding: 0 12px 0 34px; }
.lg-mk-filters select { flex: 0 1 180px; padding: 0 10px; }
.lg-mk-filters input:focus, .lg-mk-filters select:focus { outline: none; border-color: var(--lg-gold); box-shadow: 0 0 0 2px rgba(214, 166, 75, .2); }
.lg-mk-seller-tag { margin-bottom: 12px; color: #e9dfcc; font-size: 14px; }
.lg-mk-seller-tag b { color: var(--lg-gold-pale); }
.lg-mk-seller-tag button { margin-left: 6px; background: none; border: 1px solid rgba(214, 166, 75, .4); color: var(--lg-gold); width: 24px; height: 24px; cursor: pointer; }

.lg-mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lg-mk-item {
    display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 14px;
    background: linear-gradient(180deg, rgba(24, 16, 13, .94), rgba(12, 8, 7, .94)); border: 1px solid rgba(214, 166, 75, .2);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.lg-mk-item:hover { border-color: rgba(214, 166, 75, .55); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.lg-mk-item[hidden] { display: none; }
.lg-mk-item-top { display: flex; gap: 12px; align-items: flex-start; }
.lg-mk-ico {
    flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px;
    color: var(--lg-gold); background: radial-gradient(circle at 50% 35%, #2a1a12, #0b0807); border: 1px solid rgba(214, 166, 75, .35);
}
.lg-mk-item-name { min-width: 0; }
.lg-mk-item h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; word-break: break-word; font-family: inherit; letter-spacing: 0; text-transform: none; }
.lg-mk-plus { color: #ffd776; font-family: 'Cinzel', Georgia, serif; }
.lg-mk-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.lg-mk-tags span { font-size: 11px; padding: 2px 6px; color: rgba(233, 223, 204, .8); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.lg-mk-tags .lg-mk-gem { color: #c9a6ff; border-color: rgba(160, 110, 255, .3); }
.q-super .lg-mk-q { color: #ffd776; border-color: rgba(255, 215, 118, .45); }
.q-elite .lg-mk-q { color: #ff9be0; border-color: rgba(255, 140, 220, .4); }
.q-unique .lg-mk-q { color: #7cc4ff; border-color: rgba(110, 180, 255, .4); }
.q-refined .lg-mk-q { color: #8be38b; border-color: rgba(120, 220, 120, .4); }
.q-super .lg-mk-ico { border-color: rgba(255, 215, 118, .7); box-shadow: 0 0 10px rgba(255, 200, 80, .25); }
.lg-mk-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid rgba(214, 166, 75, .12); padding-top: 10px; }
.lg-mk-price { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 16px; white-space: nowrap; }
.lg-mk-price small { font-family: inherit; font-size: 11px; opacity: .75; }
.lg-mk-cps { color: #8fe3ff; }
.lg-mk-silver { color: #ffd776; }
.lg-mk-seller { background: none; border: 0; padding: 0; color: rgba(233, 223, 204, .75); font-size: 12.5px; cursor: pointer; text-align: right; }
.lg-mk-seller:hover { color: var(--lg-gold-pale); }
.lg-mk-seller small { opacity: .6; }
.lg-mk-none { text-align: center; padding: 40px 0; color: rgba(233, 223, 204, .7); }
@media (max-width: 991.98px) {
    .lg-mk { grid-template-columns: 1fr; }
    .lg-mk-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .lg-mk-side { grid-template-columns: 1fr; }
    .lg-mk-booths { max-height: 240px; }
    .lg-mk-filters select { flex: 1 1 45%; }
    .lg-mk-grid { grid-template-columns: 1fr; }
}
.lg-mk-seller-tag { display: inline-block; padding: 6px 12px; background: rgba(12, 8, 7, .85); border: 1px solid rgba(214, 166, 75, .3); }
.lg-mk-seller-tag[hidden] { display: none; }
@media (max-width: 991.98px) { .lg-mk-main { order: -1; } }
/* Market — buying */
.lg-mk-buy {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 12px; margin-top: -2px;
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; background: linear-gradient(180deg, #a51d1d, #6e0f0f); border: 1px solid rgba(255, 190, 110, .45); cursor: pointer;
    transition: filter .2s, box-shadow .2s;
}
a.lg-mk-buy { background: rgba(12, 8, 7, .8); color: var(--lg-gold-pale); }
.lg-mk-buy:hover { filter: brightness(1.15); box-shadow: 0 0 14px rgba(214, 166, 75, .35); color: #fff; text-decoration: none; }
.lg-mk-buy:disabled { opacity: .45; cursor: default; filter: none; box-shadow: none; }
.lg-mk-item.is-sold { border-color: rgba(57, 210, 107, .6); }
.lg-mk-item.is-gone { opacity: .5; }
.lg-mk-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .72); }
.lg-mk-modal[hidden] { display: none; }
.lg-mk-modal-box { width: 100%; max-width: 440px; padding: 26px 24px !important; text-align: center; color: #e9dfcc; }
.lg-mk-modal-box h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--lg-gold); margin: 0 0 16px; }
.lg-mk-modal-item { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.lg-mk-modal-price { font-family: 'Cinzel', Georgia, serif; font-size: 20px; color: var(--lg-gold-pale); margin: 0 0 12px; }
.lg-mk-modal-note { margin: 0 0 6px; font-size: 14px; color: rgba(233, 223, 204, .8); }
.lg-mk-modal-note b { color: #fff; }
.lg-mk-modal-warn { margin: 12px 0 18px; font-size: 13px; padding: 10px 12px; color: rgba(233, 223, 204, .85); background: rgba(214, 166, 75, .08); border: 1px solid rgba(214, 166, 75, .25); text-align: left; }
.lg-mk-modal-warn i { color: var(--lg-gold); margin-right: 6px; }
.lg-mk-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lg-mk-spinner { width: 42px; height: 42px; margin: 6px auto 14px; border-radius: 50%; border: 3px solid rgba(214, 166, 75, .2); border-top-color: var(--lg-gold); animation: lg-mk-spin .9s linear infinite; }
@keyframes lg-mk-spin { to { transform: rotate(360deg); } }
.lg-mk-result { font-size: 16px; margin: 4px 0 18px; padding: 12px; border: 1px solid; }
.lg-mk-result.is-ok { color: #9ff0b8; border-color: rgba(57, 210, 107, .5); background: rgba(57, 210, 107, .08); }
.lg-mk-result.is-error { color: #ffb3a6; border-color: rgba(230, 90, 70, .5); background: rgba(200, 50, 40, .08); }
.lg-mk-modal-box p.lg-mk-modal-item { color: #fff !important; font-size: 19px !important; }
.lg-mk-modal-box p.lg-mk-modal-price { color: var(--lg-gold-pale) !important; font-size: 22px !important; font-weight: 700; }
.lg-mk-modal-box p.lg-mk-modal-note { color: rgba(233, 223, 204, .85) !important; }

/* ---------- Chat Online ---------- */
.lg-chat {
    max-width: 920px; margin: 0 auto; overflow: hidden;
    background: linear-gradient(180deg, rgba(20, 13, 10, .94), rgba(10, 6, 5, .96));
    border: 1px solid rgba(214, 166, 75, .45); border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 210, 120, .06);
}
.lg-chat-head {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px;
    padding: 12px 18px; background: rgba(120, 18, 18, .35); border-bottom: 1px solid rgba(214, 166, 75, .3);
}
.lg-chat-live { color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.lg-chat-live i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: lg-chat-pulse 1.8s infinite; }
@keyframes lg-chat-pulse { 50% { opacity: .35; } }
.lg-chat-rules { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: #e3d5b8; }
.lg-chat-rules i { color: var(--lg-gold); margin-right: 4px; }
.lg-chat-log { height: 460px; overflow-y: auto; padding: 14px 18px; background: rgba(4, 3, 2, .55); }
.lg-chat-empty { margin-top: 170px; text-align: center; color: #a39880; font-size: 16px; }
.lg-chat-row {
    margin: 0 0 8px; padding: 8px 12px; line-height: 1.5; color: #f1e7d3; font-size: 15px; overflow-wrap: anywhere;
    background: rgba(255, 255, 255, .04); border-left: 3px solid rgba(214, 166, 75, .55); border-radius: 4px;
}
.lg-chat-mine { background: rgba(214, 166, 75, .1); border-left-color: #f3c969; }
.lg-chat-staff { background: rgba(190, 50, 30, .12); border-left-color: #ff7a5a; }
.lg-chat-time { color: #8d8272; font-size: 11.5px; margin-right: 8px; }
.lg-chat-name { color: var(--lg-gold); font-weight: 700; margin-right: 6px; }
.lg-chat-name::after { content: ":"; }
.lg-chat-staff .lg-chat-name { color: #ff8a6a; }
.lg-chat-badge { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; margin-right: 6px; border: 1px solid #ff8a6a; color: #ff8a6a; border-radius: 3px; }
.lg-chat-tools { display: none; margin-left: 8px; white-space: nowrap; }
.lg-chat-row:hover .lg-chat-tools { display: inline-block; }
.lg-chat-mod { background: rgba(0, 0, 0, .35); border: 1px solid rgba(214, 166, 75, .4); color: #d8c9aa; font-size: 11px; padding: 1px 7px; margin-right: 3px; border-radius: 3px; cursor: pointer; }
.lg-chat-mod:hover { border-color: var(--lg-gold); color: #fff; }
.lg-chat-compose { padding: 14px 18px 12px; border-top: 1px solid rgba(214, 166, 75, .3); background: rgba(16, 10, 8, .95); }
.lg-chat-form { display: flex; align-items: center; gap: 10px; }
.lg-chat-as { color: var(--lg-gold); font-weight: 700; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.lg-chat-input {
    flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; font-size: 16px; color: #fff;
    background: #1a1210; border: 2px solid rgba(214, 166, 75, .55); border-radius: 6px;
}
.lg-chat-input::placeholder { color: #8d8272; }
.lg-chat-input:focus { outline: none; border-color: var(--lg-gold); box-shadow: 0 0 12px rgba(214, 166, 75, .35); }
.lg-chat-send { height: 46px; white-space: nowrap; }
.lg-chat-note { min-height: 22px; margin-top: 8px; color: #ff9d8a; font-size: 14px; }
.lg-chat-hint { text-align: center; padding: 6px 0; color: #e3d5b8; font-size: 15px; }
.lg-chat-hint i { color: var(--lg-gold); margin-right: 6px; }
@media (max-width: 575px) {
    .lg-chat-log { height: 360px; padding: 10px; }
    .lg-chat-empty { margin-top: 110px; }
    .lg-chat-form { flex-wrap: wrap; }
    .lg-chat-as { flex: 1 0 100%; max-width: none; }
    .lg-chat-tools { display: block; margin: 6px 0 0; }
}

/* Chat: reply, reactions, emoji */
.lg-chat-row { position: relative; }
.lg-chat-quote {
    margin: 0 0 6px; padding: 4px 10px; font-size: 13px; color: #bfb299; cursor: pointer;
    background: rgba(0, 0, 0, .3); border-left: 3px solid rgba(214, 166, 75, .7); border-radius: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lg-chat-quote b { color: var(--lg-gold); }
.lg-chat-quote:hover { background: rgba(0, 0, 0, .45); }
.lg-chat-quote-gone { font-style: italic; cursor: default; color: #8d8272; }
.lg-chat-flash { animation: lg-chat-flash 1.4s ease; }
@keyframes lg-chat-flash { 0%, 60% { box-shadow: 0 0 0 2px var(--lg-gold), 0 0 16px rgba(214, 166, 75, .6); } 100% { box-shadow: none; } }
.lg-chat-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; min-height: 22px; }
.lg-chat-reactions { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.lg-chat-rx {
    display: none; align-items: center; gap: 4px; height: 24px; padding: 0 7px; font-size: 14px; line-height: 1; cursor: pointer;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(214, 166, 75, .25); border-radius: 12px; color: #eadfc8;
}
.lg-chat-rx.has { display: inline-flex; }
.lg-chat-rx.mine { border-color: var(--lg-gold); background: rgba(214, 166, 75, .22); }
.lg-chat-rx:hover { border-color: var(--lg-gold); }
.lg-chat-rx-n { font-size: 12px; font-weight: 700; }
.lg-chat-row:hover .lg-chat-rx { display: inline-flex; }
.lg-chat-tools { display: none; margin-left: 0; }
.lg-chat-row:hover .lg-chat-tools { display: inline-block; }
.lg-chat-reply { border-color: rgba(214, 166, 75, .7); color: #f3c969; }
.lg-chat-replybar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 6px 10px;
    font-size: 13.5px; color: #d8c9aa; background: rgba(214, 166, 75, .1); border-left: 3px solid var(--lg-gold); border-radius: 3px;
}
.lg-chat-rb-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-chat-rb-text b { color: var(--lg-gold); }
.lg-chat-rb-x { flex: 0 0 auto; width: 24px; height: 24px; line-height: 1; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .4); border: 1px solid rgba(214, 166, 75, .4); border-radius: 50%; }
.lg-chat-field { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.lg-chat-field .lg-chat-input { flex: 1 1 auto; padding-right: 48px; }
.lg-chat-emoji {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; font-size: 22px; cursor: pointer;
    color: var(--lg-gold); background: transparent; border: 0; border-radius: 50%;
}
.lg-chat-emoji:hover { color: #fff; background: rgba(214, 166, 75, .2); }
.lg-chat-picker {
    display: none; position: absolute; right: 0; bottom: 54px; z-index: 20; width: 340px; max-width: 86vw; padding: 8px;
    grid-template-columns: repeat(8, 1fr); gap: 2px;
    background: #1a1210; border: 1px solid rgba(214, 166, 75, .6); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .7);
}
.lg-chat-em { height: 36px; font-size: 21px; line-height: 1; cursor: pointer; background: transparent; border: 0; border-radius: 6px; }
.lg-chat-em:hover { background: rgba(214, 166, 75, .25); }
@media (hover: none) {
    .lg-chat-rx { display: inline-flex; opacity: .75; }
    .lg-chat-tools { display: inline-block; }
}
@media (max-width: 575px) { .lg-chat-field { flex: 1 0 100%; } .lg-chat-picker { width: 100%; max-width: none; } }


/* =====================================================================
   HALL OF FAME — "The Best & World History" (home, above Community)
   ===================================================================== */
.lg-hof-section { padding: 40px 0 50px !important; }
.lg-hof-section .lg-section-head-left { text-align: left; margin-bottom: 30px; }
.lg-hof-section .lg-section-head-left .lg-divider { margin-left: 0; }
.lg-hof-kicker {
    display: inline-block; font-family: 'Cinzel', Georgia, serif; font-weight: 700;
    letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: var(--lg-gold); margin-bottom: 4px;
}

.lg-hof-card { display: flex; flex-direction: column; padding: 0; height: 100%; }
.lg-hof-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--lg-line-soft); }
.lg-hof-head .lg-medal { flex: 0 0 auto; }
.lg-hof-head-txt { min-width: 0; }
.lg-hof-head-txt small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--lg-gold); }
.lg-hof-head-txt strong { font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 17px; color: var(--lg-gold-pale); line-height: 1.1; }
.lg-hof-crown { margin-left: auto; color: var(--lg-gold-dark); font-size: 15px; }

.lg-hof-list { flex: 1; padding: 12px; }
.lg-hof-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 9px; border-radius: 3px;
    background: rgba(10, 8, 7, .45); border: 1px solid var(--lg-line-soft);
    transition: border-color .2s var(--lg-ease), transform .2s var(--lg-ease);
}
.lg-hof-row:hover { transform: translateX(2px); }
.lg-hof-row.is-top1 { border-color: rgba(214,166,75,.5);  background: linear-gradient(90deg, rgba(214,166,75,.16), rgba(10,8,7,.4)); box-shadow: inset 0 0 22px rgba(214,166,75,.08); }
.lg-hof-row.is-top2 { border-color: rgba(190,196,204,.42); background: linear-gradient(90deg, rgba(190,196,204,.12), rgba(10,8,7,.4)); }
.lg-hof-row.is-top3 { border-color: rgba(205,127,50,.42);  background: linear-gradient(90deg, rgba(205,127,50,.13), rgba(10,8,7,.4)); }

/* rank badge for places 4+ */
.lg-hof-rank {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 13px; color: var(--lg-muted);
    background: rgba(0,0,0,.4); border: 1px solid var(--lg-line-soft);
}
/* medallion for places 1-3 */
.lg-hof-medal {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; position: relative; display: grid; place-items: center;
    font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 16px; color: #2a1d05;
    box-shadow: 0 2px 8px rgba(0,0,0,.5), inset 0 1px 2px rgba(255,255,255,.35);
}
.lg-hof-medal::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); opacity: .6; }
.lg-hof-medal.m1 { background: radial-gradient(circle at 38% 30%, #fff3cf, #f3cf78 45%, #c9972f 100%); color: #3a2905; box-shadow: 0 0 14px rgba(214,166,75,.5), inset 0 1px 2px rgba(255,255,255,.5); }
.lg-hof-medal.m2 { background: radial-gradient(circle at 38% 30%, #ffffff, #d6dade 45%, #9aa1a9 100%); color: #2b2f34; }
.lg-hof-medal.m3 { background: radial-gradient(circle at 38% 30%, #f3c08a, #d08a45 45%, #9a5a1f 100%); color: #35200a; }

/* avatar frame (placeholder: player initial — swap for real face art later) */
.lg-hof-ava {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 4px; display: grid; place-items: center; overflow: hidden;
    font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 18px; color: var(--lg-gold-light);
    background: radial-gradient(circle at 50% 35%, rgba(214,166,75,.18), rgba(10,8,7,.95));
    border: 1px solid var(--lg-line); box-shadow: inset 0 0 12px rgba(0,0,0,.6);
}
.lg-hof-ava img { width: 100%; height: 100%; object-fit: cover; }
.lg-hof-row.is-top1 .lg-hof-ava { border-color: var(--lg-gold-light); box-shadow: 0 0 10px rgba(214,166,75,.35), inset 0 0 12px rgba(0,0,0,.5); }

.lg-hof-meta { flex: 1; min-width: 0; }
.lg-hof-name { display: block; font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 14px; color: var(--lg-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-hof-sub { display: block; font-size: 11px; color: var(--lg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-hof-sub .lg-hof-lvl { color: var(--lg-gold); }

.lg-hof-val { flex: 0 0 auto; text-align: right; padding-left: 6px; }
.lg-hof-val strong { display: block; font-family: 'Cinzel', Georgia, serif; font-weight: 900; font-size: 14.5px; color: var(--lg-gold-light); font-variant-numeric: tabular-nums; }
.lg-hof-val small { display: block; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lg-muted); margin-top: 1px; }

.lg-hof-all {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; margin-top: auto;
    border-top: 1px solid var(--lg-line-soft); font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 11px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--lg-gold); transition: background .2s, color .2s;
}
.lg-hof-all:hover { background: rgba(214,166,75,.08); color: var(--lg-gold-light); }
.lg-hof-empty { padding: 30px 14px; text-align: center; color: var(--lg-muted); font-family: 'Cinzel', Georgia, serif; letter-spacing: .06em; }

/* Download page — help box (Neat Download Manager) */
.download-help { border-color: var(--lg-line) !important; }
.download-help-title {
    font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 1.15rem;
    letter-spacing: .06em; color: var(--lg-gold-light); margin-bottom: 12px;
}
.download-help-title i { color: var(--lg-ember); }
.download-help-text { color: var(--lg-text); font-size: 1rem; margin-bottom: 10px; }
.download-help-steps { color: var(--lg-text); font-size: .98rem; padding-left: 22px; margin-bottom: 0; }
.download-help-steps li { margin-bottom: 6px; }
.download-help-steps li::marker { color: var(--lg-gold); font-weight: 700; }

.download-help-btn { text-transform: none !important; letter-spacing: .04em; }
.download-help-rtl, .download-help-rtl * { direction: rtl; text-align: right; }
.download-help-rtl .text-center { text-align: center !important; }
.download-help-rtl .download-help-title {
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif; font-size: 1.3rem; letter-spacing: 0;
}
.download-help-rtl .download-help-text,
.download-help-rtl .download-help-steps { font-family: Tahoma, 'Segoe UI', Arial, sans-serif; font-size: 1.08rem; line-height: 1.9; }
.download-help-rtl .download-help-steps { padding-left: 0; padding-right: 26px; list-style-position: outside; }
.download-help-rtl .download-help-steps li { display: list-item; }
.download-help-rtl .download-help-btn { font-family: Tahoma, 'Segoe UI', Arial, sans-serif; letter-spacing: 0; }
