:root {
    --bg: #0a0a0c;
    --bg-2: #121216;
    --panel: #16161c;
    --panel-2: #1c1c24;
    --line: #2a2a34;
    --text: #d8d8e0;
    --muted: #8a8a96;
    --gold: #d4a04a;
    --gold-2: #f0c070;
    --blood: #a83232;
    --radius: 14px;
    --maxw: 1180px;
    --font-head: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,12,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: 38px; border-radius: 8px; }
.brand-name {
    font-family: var(--font-head);
    font-size: 1.4rem; font-weight: 700;
    color: var(--gold); letter-spacing: 1px;
}
.nav { display: flex; gap: 28px; }
.nav-link {
    color: var(--muted); font-size: .95rem; font-weight: 500;
    padding: 6px 0; position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--gold); }
.nav-link.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--gold);
}
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 92vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: url('/content/header-background.jpg') center/cover no-repeat;
}
.hero-video {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(10,10,12,.45) 0%, rgba(10,10,12,.72) 60%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 720px; }
.hero-eyebrow {
    color: var(--gold); font-size: .85rem; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 900; line-height: 1.05;
    color: #fff; margin-bottom: 22px;
    text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero p {
    font-size: 1.15rem; color: var(--text);
    max-width: 560px; margin-bottom: 14px;
}
.hero .lead { color: var(--gold-2); font-size: 1.2rem; font-weight: 500; margin-bottom: 28px; }
.hero .ver { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px;
    font-weight: 600; font-size: .95rem; cursor: pointer;
    border: 1px solid transparent; transition: all .2s;
}
.btn-primary {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #1a1208; box-shadow: 0 6px 24px rgba(212,160,74,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,160,74,.45); }
.btn-ghost {
    background: transparent; color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Stats strip ===== */
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 40px;
}
.stat {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; text-align: center;
}
.stat-num {
    font-family: var(--font-head); font-size: 2rem; font-weight: 700;
    color: var(--gold); display: block;
}
.stat-label { color: var(--muted); font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
    font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700; color: #fff; margin-bottom: 12px;
}
.section-head .eyebrow {
    color: var(--gold); font-size: .85rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
}
.section-head p { color: var(--muted); max-width: 620px; margin: 12px auto 0; }

/* ===== Feature cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px;
    transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card h3 {
    font-family: var(--font-head); font-size: 1.3rem; color: var(--gold);
    margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: .95rem; }

/* ===== Classes ===== */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.class-card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .2s, border-color .2s;
}
.class-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.class-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.class-body { padding: 22px; }
.class-body h3 { font-family: var(--font-head); color: var(--gold); font-size: 1.35rem; margin-bottom: 6px; letter-spacing: .5px; }
.class-body .weapon { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.class-body p { color: var(--text); font-size: .92rem; }
.class-path {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.path-step {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--panel-2); border: 1px solid var(--line);
    font-size: .8rem; color: var(--text);
}
.path-step em { font-style: normal; color: var(--gold); font-size: .72rem; }

/* ===== Factions ===== */
.faction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.faction {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; text-align: center;
}
.faction h3 { font-family: var(--font-head); color: var(--gold); font-size: 1.4rem; margin-bottom: 14px; }
.faction .lore { color: var(--text); font-size: .95rem; margin-bottom: 6px; }
.faction .tag {
    display: inline-block; margin-top: 14px; padding: 6px 14px;
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 999px; font-size: .8rem; color: var(--muted);
}

/* ===== Tops ===== */
.leaderboard {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.leaderboard table { width: 100%; border-collapse: collapse; }
.leaderboard th, .leaderboard td { padding: 16px 20px; text-align: left; }
.leaderboard thead th {
    background: var(--panel-2); color: var(--gold);
    font-size: .8rem; letter-spacing: 1px; text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}
.leaderboard tbody tr { border-bottom: 1px solid var(--line); }
.leaderboard tbody tr:last-child { border-bottom: none; }
.leaderboard tbody tr:hover { background: var(--panel-2); }
.rank { font-family: var(--font-head); font-weight: 700; color: var(--gold); width: 50px; }
.rank.top1 { color: var(--gold-2); }
.player-name { font-weight: 600; color: #fff; }
.fraction-chip {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .8rem; background: var(--panel-2); border: 1px solid var(--line);
}
.exp-val { font-family: var(--font-head); color: var(--gold); font-weight: 700; }
.atk-val { font-family: var(--font-head); color: #e74c3c; font-weight: 700; }
.def-val { font-family: var(--font-head); color: #4aa3ff; font-weight: 700; }
.mdef-val { font-family: var(--font-head); color: #b478ff; font-weight: 700; }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 60px; text-align: center;
}
.cta h2 { font-family: var(--font-head); font-size: 2rem; color: #fff; margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 28px; }

/* ===== Contacts ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px; text-align: center;
    transition: transform .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.contact-card h3 { font-family: var(--font-head); color: var(--gold); font-size: 1.3rem; margin-bottom: 10px; }
.contact-card p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }

/* ===== Start figure ===== */
.start-figure {
    position: relative; margin-bottom: 32px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.start-figure img {
    width: 100%; height: 320px; object-fit: cover; display: block;
}
.start-figure figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 18px; font-size: .9rem; color: var(--text);
    background: linear-gradient(180deg, transparent, rgba(10,10,12,.92));
    letter-spacing: .5px;
}

/* ===== Video ===== */
.video-frame {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.video-frame video {
    width: 100%; display: block; aspect-ratio: 16 / 9;
    background: var(--bg-2); object-fit: cover;
}

/* ===== Gallery ===== */
.gallery {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery-item {
    position: relative; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
}
.gallery-wide { grid-column: span 2; grid-row: span 1; }
.gallery-item img {
    width: 100%; height: 100%; min-height: 200px;
    object-fit: cover; display: block;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 18px; font-size: .85rem; color: var(--text);
    background: linear-gradient(180deg, transparent, rgba(10,10,12,.92));
    letter-spacing: .5px;
}

/* ===== Map ===== */
.map-preview {
    position: relative; margin-bottom: 24px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.map-preview img {
    width: 100%; height: 360px; object-fit: cover; display: block;
}
.map-preview figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 18px; font-size: .9rem; color: var(--text);
    background: linear-gradient(180deg, transparent, rgba(10,10,12,.92));
    letter-spacing: .5px;
}
.map-frame {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.map-frame iframe {
    width: 100%; height: 640px; border: none; display: block;
    background: var(--bg-2);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-2); border-top: 1px solid var(--line);
    padding: 50px 0 30px; margin-top: 40px;
}
.footer-top {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px; flex-wrap: wrap; padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 44px; height: 44px; border-radius: 8px; }
.footer-title { font-family: var(--font-head); color: var(--gold); font-size: 1.2rem; }
.footer-sub { color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 14px; }
.social {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel); border: 1px solid var(--line); color: var(--muted);
    transition: all .2s;
}
.social:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 24px; color: var(--muted); font-size: .85rem;
}
.footer-note { color: var(--gold); }

/* ===== Copy feedback ===== */
#copy-feedback {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--gold); color: #1a1208; padding: 12px 24px;
    border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none;
    transition: all .3s; z-index: 200;
}
#copy-feedback.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== FAQ (гармошка) ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-group { margin-bottom: 40px; }
.faq-group-title {
    font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
    color: var(--gold); letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.faq-item {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 12px;
    overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--gold); }
.faq-q {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; font-weight: 600; font-size: 1rem; color: #fff;
    transition: color .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--gold-2); }
.faq-q::after {
    content: '+'; flex-shrink: 0;
    font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
    color: var(--gold); line-height: 1;
    transition: transform .25s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { color: var(--muted); font-size: .95rem; }
.faq-a p + p { margin-top: 10px; }
.faq-a a { color: var(--gold); }
.faq-a a:hover { color: var(--gold-2); }

/* ===== Badges & chips ===== */
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; letter-spacing: .5px;
    border: 1px solid var(--line); background: var(--panel-2);
}
.badge-live {
    color: #ffd9a0; border-color: var(--gold);
    background: rgba(212,160,74,.12);
}
.badge-scheduled { color: var(--muted); }
.bonus-chip {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .8rem; font-weight: 600; color: var(--gold-2);
    background: rgba(212,160,74,.1); border: 1px solid rgba(212,160,74,.35);
}
.empty-row { color: var(--muted); text-align: center; padding: 28px 20px; }
.table-note {
    margin-top: 18px; color: var(--muted); font-size: .85rem;
    text-align: center; max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ===== Events ===== */
.event-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.event-card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 34px;
    transition: border-color .2s;
}
.event-card:hover { border-color: var(--gold); }
.event-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.event-date { color: var(--muted); font-size: .85rem; letter-spacing: .5px; }
.event-card h3 {
    font-family: var(--font-head); font-size: 1.5rem; color: var(--gold);
    margin-bottom: 14px;
}
.event-card p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.event-card p:last-of-type { margin-bottom: 0; }
.event-card .event-lead { color: var(--text); font-size: 1rem; }
.event-card strong { color: var(--gold-2); font-weight: 600; }
/* Только текстовые ссылки внутри абзацев — не трогаем кнопки */
.event-card p a { color: var(--gold); }
.event-card p a:hover { color: var(--gold-2); }
/* Кнопки сохраняют собственный контрастный цвет текста */
.event-card .btn-primary { color: #1a1208; }
.event-card .btn-primary:hover { color: #1a1208; }
.event-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 20px 0 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.event-legend {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 24px; max-width: 820px; margin: 40px auto 0;
}
.legend-item {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
}
.legend-mark {
    display: inline-block; margin-bottom: 12px; padding: 5px 14px;
    border-radius: 999px; font-family: var(--font-head);
    font-size: .85rem; font-weight: 700; letter-spacing: 1px;
    color: var(--gold); background: var(--panel-2); border: 1px solid var(--line);
}
.legend-item p { color: var(--muted); font-size: .92rem; }

/* ===== Mob database ===== */
.mobdb {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.mob-table { width: 100%; border-collapse: collapse; }
.mob-table th, .mob-table td { padding: 14px 18px; text-align: left; }
.mob-table thead th {
    background: var(--panel-2); color: var(--gold);
    font-size: .75rem; letter-spacing: 1px; text-transform: uppercase;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.mob-table tbody tr { border-bottom: 1px solid var(--line); transition: background .2s; }
.mob-table tbody tr:last-child { border-bottom: none; }
.mob-table tbody tr:hover { background: var(--panel-2); }
.col-num, .col-lvl { text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--text); }
.col-drop { text-align: right; font-family: var(--font-head); font-weight: 700; }
.exp-val { color: var(--gold); }
.coin-val { color: var(--gold-2); }
.lvl-badge {
    display: inline-block; min-width: 34px; padding: 4px 10px;
    border-radius: 8px; font-size: .85rem;
    background: var(--panel-2); border: 1px solid var(--line); color: var(--gold-2);
}
.mob-link {
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    color: #fff; text-align: left; transition: color .2s;
}
.mob-link:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.dmg-tag {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .5px; white-space: nowrap;
}
.dmg-phys { color: #c9c2b2; background: rgba(201,194,178,.1); border: 1px solid rgba(201,194,178,.35); }
.dmg-mag  { color: #8ea8ff; background: rgba(142,168,255,.12); border: 1px solid rgba(142,168,255,.4); }
.dmg-mix  { color: #c79bff; background: rgba(199,155,255,.12); border: 1px solid rgba(199,155,255,.4); }
.agg-tag {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .5px; white-space: nowrap;
}
.agg-agg { color: #ff8a6a; background: rgba(240,90,60,.12); border: 1px solid rgba(240,90,60,.4); }
.agg-neu { color: #7fd4a8; background: rgba(60,200,120,.1); border: 1px solid rgba(60,200,120,.35); }
.mobdb-count {
    padding: 18px 20px; text-align: center;
    color: var(--muted); font-size: .88rem;
    border-top: 1px solid var(--line);
}

/* ===== Mob modal ===== */
.mob-modal {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.mob-modal.is-open { opacity: 1; pointer-events: auto; }
.mob-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(6,6,8,.78);
    backdrop-filter: blur(6px);
}
.mob-modal-card {
    position: relative;
    width: min(780px, 92vw);
    max-height: 90vh; overflow: auto;
    background: linear-gradient(180deg, var(--panel), var(--bg-2));
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    transform: translateY(14px) scale(.98);
    transition: transform .25s ease;
}
.mob-modal.is-open .mob-modal-card { transform: translateY(0) scale(1); }
.mob-modal-close {
    position: absolute; top: 12px; right: 14px; z-index: 2;
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--panel-2); border: 1px solid var(--line);
    color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
    transition: all .2s;
}
.mob-modal-close:hover { color: var(--gold); border-color: var(--gold); }
.mob-modal-body {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 24px; padding: 28px;
}
.mob-modal-left {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    min-height: 260px; padding: 12px;
}
.mob-modal-img {
    width: 100%; height: 100%; max-height: 360px;
    object-fit: contain; display: block;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.5));
}
.mob-modal-right { min-width: 0; }
.mob-modal-name {
    font-family: var(--font-head); font-size: 1.7rem; font-weight: 700;
    color: var(--gold); margin-bottom: 18px;
}
.mob-modal-info {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px;
    margin-bottom: 16px;
}
.mi-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 4px 0; border-bottom: 1px solid var(--line);
}
.mi-row:last-child { border-bottom: none; }
.mi-k { color: var(--muted); font-size: .8rem; letter-spacing: .3px; }
.mi-v { color: var(--text); font-weight: 600; font-size: .88rem; text-align: right; }
.drop-link {
    display: inline-flex; align-items: center; gap: 6px;
    justify-content: flex-end;
    color: var(--gold-2); text-decoration: none;
}
.drop-link:hover { color: var(--gold); text-decoration: underline; }
.mob-modal-drop { margin-bottom: 18px; }
.mob-drop-title {
    font-family: var(--font-head); font-size: .95rem; font-weight: 700;
    color: var(--gold); letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 10px;
}
.mob-modal-drop .mi-row + .mi-row { margin-top: 8px; }
.mob-modal-map {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 10px;
    background: var(--panel-2); border: 1px solid var(--line);
    color: var(--gold); font-weight: 600; font-size: .92rem;
    transition: all .2s;
}
.mob-modal-map:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.mob-modal-map-icon { font-size: 1.2rem; line-height: 1; }
.mobdb-count b { color: var(--gold); }
.pagination {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    padding: 0 20px 22px;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; padding: 9px 14px; border-radius: 8px;
    background: var(--panel-2); border: 1px solid var(--line);
    color: var(--text); font-size: .9rem; font-weight: 600;
    transition: all .2s;
}
a.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.is-active {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #1a1208; border-color: var(--gold);
}

/* ===== Item filter (dropdown) ===== */
.item-filter {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.item-filter-label {
    color: var(--gold); font-size: .78rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
}
.item-select {
    appearance: none; -webkit-appearance: none;
    min-width: 220px; padding: 12px 44px 12px 18px;
    background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23d4a04a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    border: 1px solid var(--line); border-radius: 10px;
    color: var(--text); font-family: var(--font-body); font-size: .95rem;
    cursor: pointer; transition: border-color .2s;
}
.item-select:hover, .item-select:focus { border-color: var(--gold); outline: none; }
.item-select option { background: var(--panel); color: var(--text); }

/* ===== Item category chips (cross-nav between type pages) ===== */
.item-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
    display: inline-block; padding: 9px 16px; border-radius: 999px;
    font-size: .85rem; font-weight: 600; letter-spacing: .3px;
    color: var(--muted); background: var(--panel-2);
    border: 1px solid var(--line); transition: all .2s; text-decoration: none;
}
.cat-chip:hover { color: var(--gold-2); border-color: var(--gold); transform: translateY(-2px); }
.cat-chip.is-active { color: var(--gold); border-color: var(--gold); background: rgba(212,160,74,.1); }
.mob-link-a { display: inline-block; text-decoration: none; }

/* ===== Disabled mob (on=0) ===== */
.mob-link.is-disabled {
    color: var(--muted);
}
.mob-link.is-disabled:hover {
    color: var(--muted);
    text-decoration: none;
}
.mob-off-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #ff5555;
    border: 1px solid rgba(255,85,85,.4);
    background: rgba(255,85,85,.08);
}
.mob-modal-map.is-disabled-mob {
    pointer-events: none;
    border-color: rgba(255,85,85,.35);
    color: #ff5555;
    opacity: .7;
}
.mob-modal-map.is-disabled-mob:hover {
    border-color: rgba(255,85,85,.35);
    color: #ff5555;
    transform: none;
}

/* ===== Wiki reference list (links to type pages) ===== */
.wiki-cats {
    display: flex; flex-direction: column; gap: 8px; margin-top: 14px;
}
.wiki-cat {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: var(--radius);
    background: var(--panel-2); border: 1px solid var(--line);
    text-decoration: none; transition: all .2s;
}
.wiki-cat:hover { border-color: var(--gold); background: rgba(212,160,74,.06); }
.wiki-cat-icon {
    font-size: 1.35rem; line-height: 1; width: 28px; text-align: center;
    color: var(--gold-2);
}
.wiki-cat-name {
    color: #fff; font-family: var(--font-head); font-weight: 700;
    font-size: 1rem; letter-spacing: .5px; white-space: nowrap;
}
.wiki-cat-note { color: var(--muted); font-size: .82rem; margin-left: auto; text-align: right; }
@media (max-width: 560px) {
    .wiki-cat-note { display: none; }
}

/* ===== Item table tags ===== */
.grd-tag, .cat-tag, .cls-tag {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .5px; white-space: nowrap;
}
.grd-img {
    display: inline-block; height: 22px; width: auto; vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.mob-modal-info .grd-img { height: 22px; }
.grd-sm { height: 16px; }
.comp-plus { color: var(--gold); font-weight: 700; margin: 0 4px; }
.cat-tag { color: var(--muted); background: rgba(138,138,150,.1); border: 1px solid var(--line); }
.cls-tag { color: #8ea8ff; background: rgba(142,168,255,.12); border: 1px solid rgba(142,168,255,.4); }
.grd-r { color: #ff5fa0; background: rgba(255,95,160,.12); border: 1px solid rgba(255,95,160,.4); }
.grd-a { color: #c79bff; background: rgba(199,155,255,.12); border: 1px solid rgba(199,155,255,.4); }
.grd-b { color: #8ea8ff; background: rgba(142,168,255,.12); border: 1px solid rgba(142,168,255,.4); }
.grd-c { color: #7fd4a8; background: rgba(60,200,120,.1); border: 1px solid rgba(60,200,120,.35); }
.grd-d { color: #c9c2b2; background: rgba(201,194,178,.1); border: 1px solid rgba(201,194,178,.35); }
.grd-n { color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); }
.grd-x { color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); }
.item-table { min-width: 560px; }

/* ===== Item modal lore ===== */
.item-lore { margin-bottom: 16px; }
.il-line {
    color: var(--text); font-size: .92rem; line-height: 1.5;
    padding: 3px 0; border-bottom: 1px solid var(--line);
}
.il-line:last-child { border-bottom: none; }
.il-empty { color: var(--muted); font-style: italic; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .grid-3, .class-grid, .faction-grid, .contact-grid, .event-legend { grid-template-columns: 1fr; }
    .event-card { padding: 24px; }
    .stats { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-wide { grid-column: span 1; grid-row: span 1; }
    .gallery-item img { min-height: 220px; }
    .hero-video { display: none; }
    .nav-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
    .nav-toggle span { width: 24px; height: 2px; background: var(--gold); }
    .nav {
        position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; gap: 0; background: var(--bg-2);
        border-bottom: 1px solid var(--line); padding: 12px 24px;
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav-link { padding: 12px 0; }
    .cta { padding: 40px 24px; }
    .faq-q { padding: 16px 18px; font-size: .95rem; }
    .faq-a { padding: 0 18px 18px; }
    .faq-q::after { font-size: 1.3rem; }
    .mobdb { overflow-x: auto; }
    .mob-table { min-width: 640px; }
    .mob-table th, .mob-table td { padding: 12px 12px; }
    .mob-modal-body { grid-template-columns: 1fr; padding: 22px; }
    .mob-modal-left { min-height: 200px; }
    .mob-modal-info { grid-template-columns: 1fr; }
}

/* ===== Mob spawn map (wiki_mobs_map.php) ===== */
.mobmap-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 12px;
}
.mobmap {
    box-shadow: 0 10px 40px rgba(0,0,0,.55);
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.mobmap-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--gold);
    border: 1px solid rgba(0,0,0,.6);
    box-shadow: 0 0 6px 1px rgba(212,160,74,.85);
    pointer-events: none;
}
.mobmap-dot--inline {
    position: static;
    display: inline-block;
    margin: 0 4px 0 0;
    vertical-align: middle;
}
.mobmap-legend {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
}
