/* Armory-style homepage. Self-contained: the privacy page keeps style.css. */
:root {
    --bg: #050505;
    --panel: #0f0f0f;
    --panel-2: #151515;
    --line: #2a2a2a;
    --line-soft: #1f1f1f;
    --frame: #5a3a1c;
    --frame-hi: #8a5a2b;
    --gold: #e0c675;
    --gold-dim: #b49a52;
    --text: #9a9a9a;
    --text-hi: #d6d6d6;
    --muted: #6b6b6b;
    --green: #1eff00;
    --q-common: #ffffff;
    --q-uncommon: #1eff00;
    --q-rare: #0070dd;
    --q-epic: #a335ee;
    --q-legendary: #ff8000;
    --font: "Trebuchet MS", "PT Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% -10%, #1d1a14 0%, transparent 55%),
        repeating-linear-gradient(45deg, #070707 0 2px, #050505 2px 6px),
        var(--bg);
    color: var(--text);
    font: 15px/1.45 var(--font);
    padding: 24px 16px 0;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 50; }
.skip-link:focus { top: 8px; }

/* ---------- frame ---------- */
.armory {
    max-width: 1024px;
    margin: 0 auto;
    background: var(--panel);
    border: 2px solid var(--frame);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 0 40px rgba(0, 0, 0, .9), inset 0 0 0 3px #1a120a;
    padding: 8px 32px 40px;
}

/* ---------- top nav ---------- */
.top-nav {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 #000;
}
.top-nav nav, .top-nav-social, .sub-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.top-nav a, .top-nav-active, .top-nav-social a, .sub-nav a {
    text-transform: uppercase; font-size: 12.5px; letter-spacing: .02em;
    text-decoration: none; color: var(--muted);
}
.top-nav a:hover, .top-nav-social a:hover, .sub-nav a:hover { color: var(--text-hi); }
.top-nav-active { color: var(--gold); }
.top-nav-social a {
    border: 1px solid var(--line); background: #0a0a0a; padding: 5px 12px;
}

.sub-nav { padding: 22px 0 0; }
.sub-nav a[aria-current="true"] { color: var(--gold); }

/* ---------- character header ---------- */
.char-header {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
    padding: 28px 0 32px;
}
.char-header h1 { color: var(--gold); font-size: 34px; line-height: 1.1; }
.char-sub { color: var(--text); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.points { text-align: right; }
.points-value { display: block; font-size: 34px; color: #8d8d8d; line-height: 1; }
.points-label { font-size: 13px; color: var(--text); }

/* ---------- tabs ---------- */
.js-tabs .tab-panel { display: none; }
.js-tabs .tab-panel.is-active { display: block; }
.tab-panel + .tab-panel { margin-top: 48px; }
.js-tabs .tab-panel + .tab-panel { margin-top: 0; }

/* ---------- profile layout ---------- */
.profile-grid { display: grid; grid-template-columns: 450px 1fr; gap: 40px 56px; }

.paperdoll { display: grid; grid-template-columns: 52px 1fr 52px; gap: 16px; align-items: start; }
.slot-col { display: flex; flex-direction: column; gap: 3px; }

.model-frame {
    align-self: center;
    margin: 0 auto;
    width: 100%; max-width: 280px;
    aspect-ratio: 3 / 4;
    position: relative;
    background: radial-gradient(ellipse at 50% 60%, #1a1a1a 0%, #0f0f0f 70%);
    display: flex; align-items: center; justify-content: center;
}
.model-frame img {
    width: 82%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    border: 2px solid var(--frame-hi);
    box-shadow: 0 0 0 4px #000, 0 0 0 5px var(--frame), 0 0 30px rgba(224, 198, 117, .15);
    filter: saturate(.9) contrast(1.05);
}

.weapon-row { display: flex; justify-content: center; gap: 3px; margin: 18px 0 40px; }

/* ---------- slots ---------- */
.slot-wrap { position: relative; }
.slot {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #262626, #0b0b0b);
    border: 1px solid #000;
    box-shadow: inset 0 0 0 1px #3c3c3c, inset 0 0 12px rgba(0, 0, 0, .8);
    font-size: 24px; color: var(--q-common);
    cursor: pointer; padding: 0; text-decoration: none;
}
.slot i { filter: drop-shadow(0 1px 1px #000); }
.slot:hover, .slot:focus-visible { box-shadow: inset 0 0 0 1px currentColor, 0 0 8px currentColor; outline: none; }
.slot-empty { opacity: .35; cursor: default; }
.rarity-uncommon { color: var(--q-uncommon); }
.rarity-rare { color: #3b9bff; }
.rarity-epic { color: var(--q-epic); }
.rarity-legendary { color: var(--q-legendary); }
.slot.rarity-uncommon { box-shadow: inset 0 0 0 1px rgba(30, 255, 0, .35); }
.slot.rarity-rare { box-shadow: inset 0 0 0 1px rgba(0, 112, 221, .55); }
.slot.rarity-epic { box-shadow: inset 0 0 0 1px rgba(163, 53, 238, .55); }
.slot.rarity-legendary { box-shadow: inset 0 0 0 1px rgba(255, 128, 0, .6); }
.slot.rarity-uncommon:hover, .slot.rarity-rare:hover, .slot.rarity-epic:hover, .slot.rarity-legendary:hover,
.slot.rarity-uncommon:focus-visible, .slot.rarity-rare:focus-visible, .slot.rarity-epic:focus-visible, .slot.rarity-legendary:focus-visible {
    box-shadow: inset 0 0 0 1px currentColor, 0 0 10px currentColor;
}
.rarity-text-uncommon { color: var(--q-uncommon); }
.rarity-text-rare { color: #3b9bff; }
.rarity-text-epic { color: #b768ff; }
.rarity-text-legendary { color: var(--q-legendary); }

/* ---------- tooltip ---------- */
.tooltip-box {
    position: absolute; z-index: 20;
    left: calc(100% + 8px); top: 0;
    width: 250px;
    background: rgba(8, 10, 24, .96);
    border: 1px solid #5c5c6e;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .8);
    padding: 8px 10px;
    font-size: 13px; line-height: 1.35;
    color: #fff;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .12s;
}
.paperdoll .slot-col:last-child .tooltip-box { left: auto; right: calc(100% + 8px); }
.weapon-row .tooltip-box { left: 50%; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%); }
.slot-wrap:hover .tooltip-box, .slot-wrap:focus-within .tooltip-box { opacity: 1; visibility: visible; }
.tt-name { font-size: 15px; margin-bottom: 2px; }
.tt-type { color: #fff; }
.tt-meta { color: #fff; }
.tt-equip { color: var(--green); margin-top: 6px; }

/* ---------- headings / blocks ---------- */
.block-title {
    color: var(--gold); font-size: 15px;
    padding-bottom: 5px; margin: 0 0 12px;
    border-bottom: 1px solid var(--line);
}
.info-col .block-title + * { margin-bottom: 18px; }
.title-note { color: var(--muted); font-size: 13px; margin-left: 8px; }
.block-note { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-block { margin: 0; }
.stat-head { color: var(--text-hi); margin-bottom: 2px; }
.stat-block dd { margin: 0; font-size: 13.5px; color: var(--text); }
.stat-block dd span { color: var(--text); }

.pair-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.pair { display: flex; align-items: center; gap: 10px; color: var(--text); }
.pair span { color: var(--muted); }
.ico {
    width: 26px; height: 26px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: #1b1b1b; border: 1px solid #000; box-shadow: inset 0 0 0 1px #333;
    font-size: 15px;
}
.ico-gold { color: var(--gold); }
.ico-teal { color: #3ad6c4; }
.ico-blue { color: #5aa8ff; }
.ico-orange { color: #ff9a3c; }
.ico-red { color: #ff4a4a; }

.bio { color: var(--text); font-size: 14px; }

.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.activity li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.activity strong { font-weight: normal; color: var(--text-hi); }
.activity .when { color: var(--muted); margin-left: 4px; }
.activity i { color: var(--gold-dim); }
.activity a, .activity-empty a { color: var(--text-hi); text-decoration: none; }
.activity a:hover, .activity-empty a:hover { color: var(--gold); text-decoration: underline; }
.activity-empty { font-size: 14px; }

/* ---------- achievements ---------- */
.ach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ach {
    display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
    background: linear-gradient(180deg, #181818, #111);
    border: 1px solid var(--line); box-shadow: inset 0 1px 0 #262626;
    padding: 12px 16px;
}
.ach-progress { border-color: #4a3a18; }
.ach-icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    font-size: 28px; background: linear-gradient(160deg, #262626, #0b0b0b);
    border: 1px solid #000; box-shadow: inset 0 0 0 1px currentColor;
}
.ach h3 { color: var(--text-hi); font-size: 17px; }
.ach-org { color: var(--gold-dim); font-size: 13.5px; }
.ach-text { font-size: 14px; margin-top: 4px; }
.ach-side { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 110px; }
.ach-shield {
    width: 40px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #5c4a1e, #2a210c);
    clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
    color: var(--gold); font-weight: bold;
}
.ach-date { font-size: 12.5px; color: var(--muted); }
.ach-progress .ach-date:first-of-type { color: var(--green); }

/* ---------- talents ---------- */
.talent-trees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tree { background: linear-gradient(180deg, #151515, #0c0c0c); border: 1px solid var(--line); padding: 16px; }
.tree h3 { color: var(--text-hi); font-size: 16px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.tree ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tree li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.tree em { margin-left: auto; font-style: normal; color: var(--green); font-size: 13px; }
.t-node {
    width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #262626, #0b0b0b); border: 1px solid #000;
    box-shadow: inset 0 0 0 1px currentColor; font-size: 18px;
}

/* ---------- quests ---------- */
.quests { display: grid; gap: 16px; }
.quest {
    display: grid; grid-template-columns: 320px 1fr; gap: 20px;
    background: linear-gradient(180deg, #171511, #0e0d0b);
    border: 1px solid #2e2618; padding: 14px;
}
.quest img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid #000; box-shadow: 0 0 0 1px #3a2f1c; }
.quest-video { position: relative; display: block; }
.play {
    position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
    background: rgba(0, 0, 0, .7); border: 1px solid var(--gold); color: var(--gold);
    display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.quest-type { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.quest h3 { color: var(--gold); font-size: 20px; margin: 2px 0 8px; }
.quest-body > p:not(.quest-type) { color: var(--text-hi); font-size: 14.5px; }
.quest-reward { margin: 10px 0 14px; font-size: 13px !important; color: var(--text) !important; }
.quest-reward span { color: var(--green); margin-right: 8px; }
.quest-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-gold, .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; font-size: 13.5px; text-decoration: none;
    border: 1px solid #000;
}
.btn-gold {
    color: #ffd76a;
    background: linear-gradient(180deg, #8b1a10, #4f0c06);
    box-shadow: inset 0 0 0 1px #c4972f, inset 0 1px 0 #e0a64a;
}
.btn-gold:hover { background: linear-gradient(180deg, #a8241a, #63120b); }
.btn-ghost { color: var(--text-hi); background: #161616; box-shadow: inset 0 0 0 1px #3c3c3c; }
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--gold-dim); }

/* ---------- contact ---------- */
.contact { display: grid; gap: 12px; max-width: 560px; }
.contact-lead { color: var(--text-hi); font-size: 22px; }

.armory-footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 0 24px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
    .profile-grid { grid-template-columns: 1fr; }
    .paperdoll-col { max-width: 480px; margin: 0 auto; width: 100%; }
    .talent-trees { grid-template-columns: 1fr; }
    .quest { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body { padding: 8px 8px 0; }
    .armory { padding: 4px 16px 28px; }
    .top-nav { flex-direction: column; align-items: flex-start; }
    .char-header { flex-direction: column; align-items: flex-start; padding: 20px 0 24px; }
    .points { text-align: left; }
    .char-header h1 { font-size: 28px; }
    .paperdoll { grid-template-columns: 44px 1fr 44px; gap: 8px; }
    .slot { width: 44px; height: 44px; font-size: 20px; }
    .tooltip-box { width: 200px; }
    .stats-grid, .pair-row { grid-template-columns: 1fr; }
    .ach { grid-template-columns: 44px 1fr; }
    .ach-icon { width: 44px; height: 44px; font-size: 22px; }
    .ach-side { grid-column: 2; flex-direction: row; align-items: center; min-width: 0; }
    .ach-shield { width: 30px; height: 34px; font-size: 13px; }
}
