:root {
    --bg: #030006;
    --panel: rgba(9, 3, 18, 0.9);
    --panel-solid: rgba(9, 3, 18, 0.97);
    --line: rgba(176, 63, 255, 0.52);
    --line-hot: #b944ff;
    --text: #fff8ff;
    --muted: #b9a8c8;
    --purple: #b944ff;
    --pink: #ff44e9;
    --cyan: #16d8ff;
    --green: #19f78f;
    --amber: #ffb52b;
    --red: #ff334e;
    --dot-purple: rgba(185, 68, 255, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

#constellation-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: #000000;
    opacity: 0.28;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Trebuchet MS", "Arial Narrow", Arial, Helvetica, sans-serif;
    background: #000000;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.62)),
        linear-gradient(transparent 50%, rgba(255, 255, 255, 0.018) 51%, transparent 52%);
    background-size: auto, 100% 4px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    min-height: 40px;
    border: 1px solid var(--line);
    background: rgba(20, 6, 33, 0.8);
    color: var(--text);
    cursor: pointer;
    padding: 0 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 2;
}


.nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px currentColor);
}

main {
    width: min(1800px, calc(100vw - 28px));
    margin: 0 auto;
    padding: 14px 0 36px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.hero {
    min-height: 330px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
    position: relative;
    padding: 10px 0 16px;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(176, 63, 255, 0.5);
    box-shadow:
        0 0 34px rgba(176, 63, 255, 0.42),
        0 0 80px rgba(176, 63, 255, 0.12) inset;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
    background:
        radial-gradient(circle at 50% 42%, rgba(2, 0, 8, 0.12), rgba(2, 0, 8, 0.5) 42%, rgba(2, 0, 8, 0.84) 72%),
        linear-gradient(90deg, rgba(2, 0, 8, 0.94), transparent 24%, transparent 76%, rgba(2, 0, 8, 0.94)),
        linear-gradient(180deg, transparent, rgba(2, 0, 8, 0.76));
}

.hero-core {
    text-align: center;
    padding: 34px 20px 4px;
}

.hero-logo {
    width: min(560px, 84%);
    height: 190px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 28px rgba(184, 68, 255, 0.95));
}

.subtitle {
    margin: -4px 0 12px;
    color: #d9c7e6;
    font-size: 15px;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(176, 63, 255, 0.5);
}

.signal-line {
    width: min(720px, 100%);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    border: 1px solid rgba(176, 63, 255, 0.38);
    background: rgba(4, 0, 10, 0.62);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.7px;
}

.signal-line span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px var(--green);
}

.signal-line strong {
    color: var(--green);
}

.terminal-panel,
.panel,
.metric,
.market-card {
    position: relative;
    color: var(--purple);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow:
        0 0 24px rgba(176, 63, 255, 0.26),
        0 0 34px rgba(176, 63, 255, 0.08) inset;
    border-radius: 8px;
    overflow: hidden;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.cyan-panel,
.map-panel,
.market-card.cyan {
    color: var(--cyan);
}

.red-panel,
.live-feed,
.market-card.red {
    color: var(--red);
}

.purple-panel,
.faction-list,
.faction-card,
.market-card.purple {
    color: var(--purple);
}

.amber-panel,
.market-card.lime {
    color: var(--amber);
}

.terminal-panel::before,
.panel::before,
.metric::before,
.market-card::before {
    content: none;
}

.terminal-panel:hover,
.panel:hover,
.metric:hover,
.market-card:hover {
    border-color: rgba(228, 126, 255, 0.9);
    box-shadow:
        0 0 22px rgba(176, 63, 255, 0.38),
        0 0 48px rgba(176, 63, 255, 0.24) inset,
        0 0 8px rgba(255, 255, 255, 0.08);
}

.market-card:hover,
.panel:hover {
    transform: translateY(-2px);
}

.terminal-panel:hover::before,
.panel:hover::before,
.metric:hover::before,
.market-card:hover::before {
    content: none;
}

.terminal-panel:active::before,
.panel:active::before,
.metric:active::before,
.market-card:active::before {
    content: none;
}

.terminal-panel {
    min-height: 190px;
    padding: 18px;
    margin-top: 16px;
}

.terminal-panel h2,
.panel h2,
.market-card h2,
.page-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #d76aff;
    font-family: Impact, "Arial Black", "Trebuchet MS", sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(215, 106, 255, 0.8);
}

.terminal-panel p,
.terminal-panel dt {
    position: relative;
    z-index: 1;
    color: var(--muted);
    text-transform: uppercase;
}

.terminal-panel dl {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
}

.terminal-panel div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(176, 63, 255, 0.18);
    padding: 9px 0;
}

.terminal-panel dd {
    margin: 0;
    color: var(--green);
    text-transform: uppercase;
}

.terminal-panel .cyan {
    color: var(--cyan);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: -14px 34px 14px;
}

.metric {
    --tone-glow: rgba(176, 63, 255, 0.5);
    --matrix-dot: rgba(176, 63, 255, 0.16);
    --matrix-spark: rgba(255, 255, 255, 0.1);
    min-height: 142px;
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 16px;
    padding: 21px 24px;
    background:
        radial-gradient(circle at 19% 50%, rgba(5, 0, 12, 0.38) 0 58px, rgba(5, 0, 12, 0.18) 76px, transparent 106px),
        linear-gradient(90deg, transparent 0 31%, rgba(5, 0, 12, 0.38) 39% 68%, transparent 86%),
        radial-gradient(circle at 19% 50%, rgba(255, 255, 255, 0.06), transparent 84px),
        radial-gradient(circle, var(--matrix-spark) 0 0.55px, transparent 1px),
        radial-gradient(circle, var(--matrix-dot) 0 0.82px, transparent 1.35px),
        radial-gradient(circle, var(--matrix-dot) 0 0.55px, transparent 1.05px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.025)),
        linear-gradient(180deg, rgba(11, 4, 20, 0.96), rgba(4, 1, 9, 0.94));
    background-position:
        center,
        center,
        center,
        7px 5px,
        0 0,
        5px 9px,
        center,
        center;
    background-size:
        auto,
        auto,
        auto,
        42px 42px,
        12px 12px,
        22px 22px,
        auto,
        auto;
    border-width: 1px;
    border-style: solid;
    border-radius: 19px;
}

.metric:hover {
    transform: translateY(-2px);
}

.metric::after {
    content: none;
}

.metric-copy::before,
.panel::after,
.terminal-panel::after,
.market-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.78;
}

.panel::after,
.terminal-panel::after,
.market-card::after {
    inset: 10px;
    z-index: 0;
    border-radius: 6px;
    background:
        linear-gradient(currentColor, currentColor) left top / 46px 1px no-repeat,
        linear-gradient(currentColor, currentColor) left top / 1px 28px no-repeat,
        linear-gradient(currentColor, currentColor) right top / 36px 1px no-repeat,
        linear-gradient(currentColor, currentColor) right top / 1px 18px no-repeat,
        linear-gradient(currentColor, currentColor) right bottom / 52px 1px no-repeat,
        linear-gradient(currentColor, currentColor) right bottom / 1px 30px no-repeat;
    filter: drop-shadow(0 0 8px currentColor);
    opacity: 0.28;
}

.metric-copy::before {
    content: none;
}

.metric-copy {
    position: relative;
    z-index: 1;
}

.metric strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #fff;
    font-family: Impact, "Arial Black", "Trebuchet MS", sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.24),
        0 0 14px var(--tone-glow);
}

.metric span {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric em {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 15px;
    color: #f5eaff;
    font-style: normal;
    font-size: 13px;
}

.metric em::before {
    content: "";
    width: 11px;
    height: 11px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.metric-icon {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: currentColor;
    box-shadow:
        0 0 20px currentColor,
        0 0 38px rgba(255, 255, 255, 0.06) inset;
}

.metric-icon svg {
    width: 45px;
    height: 45px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px currentColor);
}

.metric.green {
    color: var(--green);
    --tone-glow: rgba(25, 247, 143, 0.5);
    --matrix-dot: rgba(25, 247, 143, 0.15);
    --matrix-spark: rgba(210, 255, 236, 0.1);
    border-color: rgba(25, 247, 143, 0.68);
    box-shadow:
        0 0 28px rgba(25, 247, 143, 0.26),
        0 0 52px rgba(25, 247, 143, 0.08) inset;
}

.metric.purple {
    color: var(--purple);
    --tone-glow: rgba(176, 63, 255, 0.52);
    --matrix-dot: rgba(176, 63, 255, 0.16);
    --matrix-spark: rgba(238, 205, 255, 0.1);
    border-color: rgba(176, 63, 255, 0.68);
    box-shadow:
        0 0 28px rgba(176, 63, 255, 0.3),
        0 0 52px rgba(176, 63, 255, 0.1) inset;
}

.metric.amber {
    color: var(--amber);
    --tone-glow: rgba(255, 181, 43, 0.5);
    --matrix-dot: rgba(255, 181, 43, 0.15);
    --matrix-spark: rgba(255, 238, 198, 0.1);
    border-color: rgba(255, 181, 43, 0.68);
    box-shadow:
        0 0 28px rgba(255, 181, 43, 0.26),
        0 0 52px rgba(255, 181, 43, 0.08) inset;
}

.metric.red {
    color: var(--red);
    --tone-glow: rgba(255, 51, 78, 0.5);
    --matrix-dot: rgba(255, 51, 78, 0.15);
    --matrix-spark: rgba(255, 214, 220, 0.1);
    border-color: rgba(255, 51, 78, 0.68);
    box-shadow:
        0 0 28px rgba(255, 51, 78, 0.26),
        0 0 52px rgba(255, 51, 78, 0.08) inset;
}

.metric.blue {
    color: #3db4ff;
    --tone-glow: rgba(61, 180, 255, 0.5);
    --matrix-dot: rgba(61, 180, 255, 0.15);
    --matrix-spark: rgba(210, 238, 255, 0.1);
    border-color: rgba(61, 180, 255, 0.68);
    box-shadow:
        0 0 28px rgba(61, 180, 255, 0.26),
        0 0 52px rgba(61, 180, 255, 0.08) inset;
}

.market-card.cyan h2 {
    color: var(--cyan);
    text-shadow: 0 0 16px rgba(22, 216, 255, 0.78);
}

.market-card.purple h2 {
    color: var(--purple);
    text-shadow: 0 0 16px rgba(176, 63, 255, 0.82);
}

.market-card.lime h2 {
    color: var(--amber);
    text-shadow: 0 0 16px rgba(255, 181, 43, 0.78);
}

.market-card.red h2 {
    color: var(--red);
    text-shadow: 0 0 16px rgba(255, 51, 78, 0.78);
}

.home-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr) 330px;
    gap: 14px;
}

.panel {
    padding: 20px;
}

.panel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.panel-head h2 {
    margin: 0;
}

.killfeed-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--red);
    text-shadow: 0 0 16px rgba(255, 51, 78, 0.82);
}

.section-icon {
    width: 19px;
    height: 19px;
    color: var(--red);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px currentColor);
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px var(--red);
}

.panel-head a {
    color: #d76aff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faction-chip,
.feed-row,
.stat-line {
    position: relative;
    z-index: 1;
    min-height: 42px;
    display: grid;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
    padding: 9px 10px;
    border: 1px solid rgba(176, 63, 255, 0.22);
    background: rgba(4, 0, 10, 0.76);
}

.faction-chip {
    grid-template-columns: 38px 1fr auto;
}

.faction-mark,
.faction-large {
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    color: currentColor;
}

.faction-mark {
    width: 34px;
    height: 34px;
    position: relative;
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(3, 0, 8, 0.92), rgba(12, 4, 20, 0.88));
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.82) inset,
        0 0 0 2px currentColor,
        0 0 10px currentColor;
    filter: drop-shadow(0 0 8px currentColor);
}

.faction-mark i,
.faction-large i,
.faction-mark img,
.faction-large img {
    display: block;
}

.faction-mark img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter:
        drop-shadow(0 1px 0 rgba(0, 0, 0, 0.95))
        drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.95))
        drop-shadow(1px 0 0 rgba(0, 0, 0, 0.95))
        drop-shadow(-1px 0 0 rgba(0, 0, 0, 0.95))
        drop-shadow(0 0 8px currentColor);
}

.faction-large img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter:
        drop-shadow(0 1px 0 rgba(0, 0, 0, 0.95))
        drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.95))
        drop-shadow(1px 0 0 rgba(0, 0, 0, 0.95))
        drop-shadow(-1px 0 0 rgba(0, 0, 0, 0.95))
        drop-shadow(0 0 12px currentColor);
}

.faction-chip.amber,
.faction-large.amber {
    color: var(--amber);
}

.faction-chip.purple,
.faction-large.purple {
    color: var(--purple);
}

.faction-chip.cyan,
.faction-large.cyan {
    color: var(--cyan);
}

.faction-chip.green,
.faction-large.green {
    color: var(--green);
}

.faction-chip em {
    color: var(--muted);
    font-style: normal;
}

.feed-row {
    grid-template-columns: 116px 72px minmax(120px, 1fr) 82px minmax(110px, 1fr) 128px 58px;
    border-color: rgba(255, 51, 78, 0.2);
    background:
        linear-gradient(90deg, rgba(255, 51, 78, 0.12), rgba(5, 0, 10, 0.82) 42%),
        rgba(4, 0, 10, 0.76);
}

.feed-row time {
    color: #f6d8df;
    font-weight: 800;
    white-space: nowrap;
}

.feed-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-live i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

.feed-action {
    color: #d6c7dc;
    text-align: center;
}

.feed-row .killer,
.feed-row .victim {
    color: #ff8df3;
    text-shadow: 0 0 10px rgba(255, 68, 233, 0.34);
}

.feed-row .weapon {
    color: var(--cyan);
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.weapon-image {
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(22, 216, 255, 0.72));
}

/* Authenticated faction HQ and player account surfaces. */
.notification-button { position:relative; min-width:44px; padding:0; color:var(--purple); font-size:24px; }
.notification-button span { position:absolute; right:-6px; top:-7px; min-width:19px; padding:2px 5px; border-radius:20px; background:var(--red); color:white; font-size:11px; }
.notification-drawer { position:fixed; z-index:40; right:20px; top:74px; width:min(420px,calc(100vw - 40px)); max-height:70vh; overflow:auto; padding:18px; border:1px solid var(--line-hot); background:rgba(5,1,12,.98); box-shadow:0 0 30px rgba(185,68,255,.35); }
.notification-item { display:grid; width:100%; height:auto; margin:8px 0; padding:12px; text-align:left; text-transform:none; letter-spacing:0; }
.notification-item span,.notification-item em { color:var(--muted); margin-top:5px; }.notification-item.unread{border-left:3px solid var(--cyan)}
.faction-hq-dashboard{margin:14px 0 22px}.hq-banner{display:flex;justify-content:space-between;align-items:center;padding:24px}.hq-banner h2{font-size:34px;margin:4px 0}.hq-banner p{margin:0;color:var(--muted)}
.recruitment-state{display:inline-flex;align-items:center;gap:7px;text-transform:uppercase;color:var(--muted);font-size:12px}.recruitment-state i,.online-dot{width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 8px currentColor}.recruitment-state.open{color:var(--green)}.recruitment-state.open i,.online-dot.online{background:var(--green)}
.hq-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:12px 0}.hq-metrics article{padding:18px}.hq-metrics span{display:block;color:var(--muted);text-transform:uppercase}.hq-metrics strong{display:block;margin-top:8px;color:var(--cyan);font-size:24px}
.hq-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hq-content-grid>.panel{padding:18px;min-width:0}.hq-members>div,.hq-history>div,.join-requests>div{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid rgba(185,68,255,.18)}.hq-members span,.hq-history span,.join-requests span{flex:1}.hq-members em,.join-requests em{color:var(--cyan)}
.base-radar-canvas{position:relative;min-height:280px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle,rgba(22,216,255,.12),transparent 55%),linear-gradient(rgba(22,216,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(22,216,255,.05) 1px,transparent 1px);background-size:auto,24px 24px,24px 24px}.base-radar-canvas:after{content:"CHERNARUS // FACTION LAYER";position:absolute;bottom:8px;right:10px;color:rgba(22,216,255,.5);font-size:11px}.base-radar-canvas i{position:absolute;width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green)}
.hq-management form{display:grid;gap:9px;margin-bottom:15px}.hq-management label{display:grid;gap:6px;color:var(--muted)}.hq-management textarea,.hq-management input,.hq-management select{width:100%;padding:10px;border:1px solid var(--line);background:#08020f;color:white}.danger-button{margin-top:18px;border-color:var(--red);color:var(--red)}
.profile-card{padding:26px}.profile-identity{display:flex;gap:18px;align-items:center}.profile-avatar{display:grid;place-items:center;width:92px;height:92px;border:1px solid var(--purple);border-radius:50%;font-size:40px;box-shadow:0 0 24px rgba(185,68,255,.45)}.profile-identity h2{font-size:38px;margin:4px 0}.profile-metrics,.profile-panels{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}.profile-metrics>div,.profile-panels>article{padding:18px;border:1px solid var(--line);background:rgba(10,2,18,.75)}.profile-metrics span{color:var(--muted);text-transform:uppercase}.profile-metrics strong{display:block;font-size:28px;margin-top:8px}.profile-panels{grid-template-columns:1fr 1fr}
@media(max-width:850px){.hq-metrics,.profile-metrics{grid-template-columns:1fr 1fr}.hq-content-grid,.profile-panels{grid-template-columns:1fr}.hq-banner{align-items:flex-start;gap:15px;flex-direction:column}}

.circuitry-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .95;
    mix-blend-mode: screen;
}

.metric:hover .circuitry-canvas {
    opacity: 1;
}

/* The original artwork is 3:2 with transparent padding; contain prevents skull/logo cropping. */
.site-header .brand-logo {
    width: 170px;
    height: 58px;
    object-fit: cover;
    object-position: center 35%;
}

#home .hero-core-wrap .hero-logo {
    width: min(730px, 94%);
    height: 247px;
    object-fit: cover;
    object-position: center 36%;
}

/* Final authenticated surfaces and responsive data layouts. */
.notification-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;filter:drop-shadow(0 0 6px currentColor)}
.notification-button span:empty{display:none}
.admin-console-link{min-height:32px;display:inline-grid;place-items:center;padding:0 14px;border:1px solid var(--cyan);color:var(--cyan);font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;border-radius:20px}.admin-console-link:hover{background:rgba(0,223,255,.1)}
.login-avatar{width:22px;height:22px;border-radius:50%;object-fit:cover;margin-right:7px;flex-shrink:0;border:1px solid rgba(176,63,255,.5)}
.profile-command{display:flex;align-items:center;justify-content:space-between;padding:28px;background:radial-gradient(circle at 18% 50%,rgba(185,68,255,.18),transparent 30%),var(--panel)}
.profile-command h2{font-size:clamp(32px,4vw,58px);margin:4px 0}.profile-status{color:var(--green);text-transform:uppercase}.profile-status i{display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}.profile-faction-tag{display:inline-block;padding:5px 10px;border:1px solid var(--purple);color:var(--purple)}
.profile-metric-row,.killfeed-highlights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.profile-metric-row .metric,.killfeed-highlights .metric{min-height:125px;padding:16px;grid-template-columns:60px 1fr;border-radius:13px}.profile-metric-row .metric-icon,.killfeed-highlights .metric-icon{width:54px;height:54px}.profile-metric-row .metric-icon svg,.killfeed-highlights .metric-icon svg{width:34px;height:34px}.profile-metric-row .metric strong,.killfeed-highlights .metric strong{font-size:clamp(21px,2vw,31px);overflow:hidden;text-overflow:ellipsis}.profile-detail-grid{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:12px}.profile-detail-grid>.panel{padding:22px}.profile-detail-grid dl{margin:0}.profile-detail-grid dl>div{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid currentColor}.profile-detail-grid dt{color:var(--muted)}.profile-detail-grid dd{margin:0;color:#fff;max-width:70%;overflow:hidden;text-overflow:ellipsis}.profile-faction{display:grid;gap:12px}.profile-faction>strong{font-size:26px;color:#fff}.profile-faction>a{padding:10px;border:1px solid currentColor;text-align:center}
#player-leaderboard .player-rank-row{display:grid!important;grid-template-columns:58px minmax(220px,1fr) 110px 110px 90px 110px!important;align-items:center;gap:16px;padding:0 20px}#faction-leaderboard .faction-rank-row{display:grid!important;grid-template-columns:58px minmax(260px,1fr) 110px 140px 90px!important;align-items:center;gap:16px;padding:0 20px}.leaderboard-table .rank-identity{display:flex!important;align-items:center;gap:12px}.leaderboard-table .leaderboard-row>span{min-width:0}.leaderboard-table .leaderboard-row{min-height:70px}.leaderboard-table .leaderboard-header{display:grid;align-items:center;gap:16px;padding:0 20px}.leaderboard-table#player-leaderboard .leaderboard-header{grid-template-columns:58px minmax(220px,1fr) 110px 110px 90px 110px}.leaderboard-table#faction-leaderboard .leaderboard-header{grid-template-columns:58px minmax(260px,1fr) 110px 140px 90px}
@media(max-width:980px){.profile-metric-row,.killfeed-highlights{grid-template-columns:repeat(2,1fr)}.profile-detail-grid{grid-template-columns:1fr 1fr}.profile-detail-grid>:first-child{grid-column:1/-1}}
@media(max-width:760px){#player-leaderboard .player-rank-row,#faction-leaderboard .faction-rank-row{grid-template-columns:42px minmax(0,1fr)!important;gap:8px 12px;padding:14px}.leaderboard-table .leaderboard-header{display:none!important}.profile-command{align-items:flex-start;flex-direction:column;gap:18px}.profile-detail-grid{grid-template-columns:1fr}.profile-detail-grid>:first-child{grid-column:auto}}
@media(max-width:430px){.profile-metric-row,.killfeed-highlights{grid-template-columns:1fr}}

#killfeed-list {
    max-height: 580px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,72,104,.8) rgba(8,2,14,.75);
}
#killfeed-list::-webkit-scrollbar { width: 6px; }
#killfeed-list::-webkit-scrollbar-track { background: rgba(8,2,14,.75); }
#killfeed-list::-webkit-scrollbar-thumb { background: rgba(255,72,104,.8); border-radius: 3px; }

/* Phone override intentionally last in the cascade. */
.metric strong{color:#f7f3f8;text-shadow:0 0 3px var(--tone-glow)}.terminal-panel h2,.panel h2,.market-card h2{filter:none;text-shadow:0 0 5px currentColor}.profile-avatar{overflow:hidden;background:#09020f}.profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}.required-note{color:var(--amber);font-size:11px;font-weight:700;text-transform:uppercase}
@media(max-width:600px){
body{background-size:auto,auto,auto,760px auto,auto}.site-header{position:sticky;top:0;z-index:30;grid-template-columns:1fr auto!important;min-height:0;padding:4px 10px!important;gap:3px 8px;background:rgba(3,0,8,.97)}.site-header .brand-logo{width:112px!important;height:40px!important;object-fit:contain!important}.login-button{min-height:32px!important;width:auto!important;padding:0 12px;font-size:11px}.notification-button{width:34px!important;min-width:34px!important;min-height:32px;margin-right:76px!important}.main-nav{gap:17px!important;padding:0 0 4px!important}.main-nav a{font-size:10px!important;padding:5px 0 7px!important}.nav-icon{width:15px;height:15px}.discord-button,.kofi-button{display:none!important}main{width:100%!important;padding:8px!important}.view{width:100%}
#home .hero{display:flex!important;min-height:0!important;gap:8px!important;padding:0!important}.hero-core-wrap{order:-1;width:100%}#home .hero-core-wrap>.hero-core{min-height:220px!important;padding:8px 8px 4px!important}#home .hero-core-wrap .hero-logo{width:94%!important;height:145px!important;object-fit:contain!important}.subtitle{margin:0 0 8px!important;font-size:9px!important;letter-spacing:2px!important}.signal-line{min-height:40px!important;padding:6px!important;gap:6px!important;font-size:9px!important;letter-spacing:.8px!important}#home .hero .terminal-panel{min-height:0!important;margin:0!important;padding:14px!important;border-radius:9px!important}.terminal-panel h2{margin-bottom:8px;font-size:14px!important}.terminal-panel p,.terminal-panel dt,.terminal-panel dd{font-size:10px!important}.terminal-panel dl{margin:8px 0!important}.terminal-panel div{padding:7px 0!important}.binary-line,.system-report,.intel-map,.map-caption{display:none!important}.network-panel>p{margin:7px 0!important}
.restored-metrics,.metric-row,.hq-metrics,.leaderboard-summary,.profile-metric-row,.killfeed-highlights{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:8px 0!important}.metric,.hq-metrics .metric,.leaderboard-summary .metric,.profile-metric-row .metric,.killfeed-highlights .metric{min-height:92px!important;grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important;padding:10px!important;border-radius:10px!important}.metric-icon,.hq-metrics .metric-icon,.leaderboard-summary .metric-icon,.profile-metric-row .metric-icon,.killfeed-highlights .metric-icon{width:38px!important;height:38px!important}.metric-icon svg,.hq-metrics .metric-icon svg,.leaderboard-summary .metric-icon svg,.profile-metric-row .metric-icon svg,.killfeed-highlights .metric-icon svg{width:24px!important;height:24px!important}.metric strong,.hq-metrics .metric strong,.leaderboard-summary .metric strong,.profile-metric-row .metric strong,.killfeed-highlights .metric strong{font-size:21px!important}.metric span{font-size:7px!important;letter-spacing:.5px!important;margin-top:4px!important}.metric em{font-size:7px!important;margin-top:5px!important;white-space:normal!important}.metric em:before{width:5px!important;height:5px!important;margin-right:4px!important}
.restored-home-grid,.home-grid{gap:8px!important}.restored-home-grid>.panel,.home-killfeed{padding:12px!important}.panel-head{gap:8px}.panel-head h2{font-size:14px!important}.panel-head a{font-size:9px}.faction-chip{padding:8px!important}.faction-mark{width:34px!important;height:34px!important}.faction-chip strong{font-size:12px}.faction-chip em{font-size:10px}.feed-row{min-height:0!important;display:grid!important;grid-template-columns:20px 50px minmax(0,1fr) minmax(0,1fr) 44px!important;gap:7px 8px!important;padding:10px!important}.feed-row .kill-skull{grid-column:1;grid-row:1}.feed-row .feed-live{grid-column:2;grid-row:1}.feed-row time{grid-column:3/5;grid-row:1;padding:0!important;border:0!important;font-size:9px}.feed-row .distance{grid-column:5;grid-row:1}.feed-row .killer{grid-column:1/3;grid-row:2;padding:0!important;font-size:12px}.feed-row .feed-action{grid-column:3;grid-row:2;font-size:9px}.feed-row .victim{grid-column:4;grid-row:2;font-size:12px}.feed-row .weapon{grid-column:5;grid-row:2;justify-content:flex-end;font-size:10px}.feed-row .weapon span{display:none}.feed-row .weapon-image{width:40px;height:24px;flex-basis:40px}
.page-hero{min-height:0!important;padding:14px!important;gap:8px!important}.page-logo{width:125px!important;height:70px!important}.page-hero h1{font-size:34px!important;line-height:1!important}.page-hero p{font-size:11px!important}.eyebrow{font-size:9px!important}.quick-grid,.network-grid{display:none!important}.two-column,.panel-grid,.market-grid,.hq-content-grid,.profile-detail-grid{grid-template-columns:1fr!important}.hq-banner,.profile-command{padding:14px!important}.hq-banner h2,.profile-command h2{font-size:25px!important}.base-radar-canvas{min-height:190px}.profile-avatar{width:64px;height:64px;font-size:26px}.profile-identity{gap:10px}.profile-detail-grid>.panel{padding:14px}.notification-drawer{inset:64px 8px auto 8px;width:auto;max-height:75vh}
}
@media(max-width:360px){.restored-metrics,.metric-row,.hq-metrics,.leaderboard-summary,.profile-metric-row,.killfeed-highlights{grid-template-columns:1fr!important}}
.notification-button span{display:grid;place-items:center;width:20px;height:20px;min-width:20px;padding:0;line-height:1;border-radius:50%}.notification-button span:empty{display:none}
.leaderboard-hero h1{font-size:clamp(38px,5vw,66px)}
.green-panel{color:var(--green);border-color:rgba(25,247,143,.62);box-shadow:0 0 24px rgba(25,247,143,.18),0 0 34px rgba(25,247,143,.06) inset}.green-panel h2{color:var(--green);text-shadow:0 0 16px rgba(25,247,143,.72)}
.cyan-panel{border-color:rgba(22,216,255,.58);box-shadow:0 0 24px rgba(22,216,255,.16),0 0 34px rgba(22,216,255,.05) inset}.cyan-panel h2{color:var(--cyan);text-shadow:0 0 16px rgba(22,216,255,.7)}
.amber-panel{border-color:rgba(255,181,43,.58);box-shadow:0 0 24px rgba(255,181,43,.16),0 0 34px rgba(255,181,43,.05) inset}.amber-panel h2{color:var(--amber);text-shadow:0 0 16px rgba(255,181,43,.7)}
.red-panel{border-color:rgba(255,51,78,.58);box-shadow:0 0 24px rgba(255,51,78,.16),0 0 34px rgba(255,51,78,.05) inset}.red-panel h2{color:var(--red);text-shadow:0 0 16px rgba(255,51,78,.7)}

/* Keep panel typography crisp; glow belongs to frames and LEDs, not letter interiors. */
.metric strong{color:#f7f3f8;text-shadow:0 0 3px var(--tone-glow)}
.terminal-panel h2,.panel h2,.market-card h2{filter:none;text-shadow:0 0 5px currentColor}
.metric span,.metric em,.panel p,.panel strong,.panel time{filter:none}
.profile-avatar{overflow:hidden;background:#09020f}.profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.required-note{color:var(--amber);font-size:11px;font-weight:700;text-transform:uppercase}

/* Purpose-built phone layout. Desktop rules above remain unchanged. */
@media(max-width:600px){
    body{background-size:auto,auto,auto,760px auto,auto}
    .site-header{position:sticky;top:0;z-index:30;grid-template-columns:1fr auto!important;min-height:0;padding:4px 10px!important;gap:3px 8px;background:rgba(3,0,8,.97)}
    .site-header .brand-logo{width:112px!important;height:40px!important;object-fit:contain!important}.login-button{min-height:32px!important;width:auto!important;padding:0 12px;font-size:11px}.notification-button{width:34px!important;min-width:34px!important;min-height:32px;margin-right:76px!important}
    .main-nav{gap:17px!important;padding:0 0 4px!important}.main-nav a{font-size:10px!important;padding:5px 0 7px!important}.nav-icon{width:15px;height:15px}.discord-button,.kofi-button{display:none!important}
    main{width:100%!important;padding:8px!important}.view{width:100%}
    #home .hero{display:flex!important;min-height:0!important;gap:8px!important;padding:0!important}.hero-core-wrap{order:-1;width:100%}#home .hero-core-wrap>.hero-core{min-height:220px!important;padding:8px 8px 4px!important}#home .hero-core-wrap .hero-logo{width:94%!important;height:145px!important;object-fit:contain!important}.subtitle{margin:0 0 8px!important;font-size:9px!important;letter-spacing:2px!important}.signal-line{min-height:40px!important;padding:6px!important;gap:6px!important;font-size:9px!important;letter-spacing:.8px!important}
    #home .hero .terminal-panel{min-height:0!important;margin:0!important;padding:14px!important;border-radius:9px!important}.terminal-panel h2{margin-bottom:8px;font-size:14px!important}.terminal-panel p,.terminal-panel dt,.terminal-panel dd{font-size:10px!important}.terminal-panel dl{margin:8px 0!important}.terminal-panel div{padding:7px 0!important}.binary-line,.system-report,.intel-map,.map-caption{display:none!important}.network-panel>p{margin:7px 0!important}
    .restored-metrics,.metric-row,.hq-metrics,.leaderboard-summary,.profile-metric-row,.killfeed-highlights{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:8px 0!important}.metric,.hq-metrics .metric,.leaderboard-summary .metric,.profile-metric-row .metric,.killfeed-highlights .metric{min-height:92px!important;grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important;padding:10px!important;border-radius:10px!important}.metric-icon,.hq-metrics .metric-icon,.leaderboard-summary .metric-icon,.profile-metric-row .metric-icon,.killfeed-highlights .metric-icon{width:38px!important;height:38px!important}.metric-icon svg,.hq-metrics .metric-icon svg,.leaderboard-summary .metric-icon svg,.profile-metric-row .metric-icon svg,.killfeed-highlights .metric-icon svg{width:24px!important;height:24px!important}.metric strong,.hq-metrics .metric strong,.leaderboard-summary .metric strong,.profile-metric-row .metric strong,.killfeed-highlights .metric strong{font-size:21px!important}.metric span{font-size:7px!important;letter-spacing:.5px!important;margin-top:4px!important}.metric em{font-size:7px!important;margin-top:5px!important;white-space:normal!important}.metric em:before{width:5px!important;height:5px!important;margin-right:4px!important}
    .restored-home-grid,.home-grid{gap:8px!important}.restored-home-grid>.panel,.home-killfeed{padding:12px!important}.panel-head{gap:8px}.panel-head h2{font-size:14px!important}.panel-head a{font-size:9px}.faction-chip{padding:8px!important}.faction-mark{width:34px!important;height:34px!important}.faction-chip strong{font-size:12px}.faction-chip em{font-size:10px}
    .feed-row{min-height:0!important;display:grid!important;grid-template-columns:20px 50px minmax(0,1fr) minmax(0,1fr) 44px!important;gap:7px 8px!important;padding:10px!important}.feed-row .kill-skull{grid-column:1;grid-row:1}.feed-row .feed-live{grid-column:2;grid-row:1}.feed-row time{grid-column:3/5;grid-row:1;padding:0!important;border:0!important;font-size:9px}.feed-row .distance{grid-column:5;grid-row:1}.feed-row .killer{grid-column:1/3;grid-row:2;padding:0!important;font-size:12px}.feed-row .feed-action{grid-column:3;grid-row:2;font-size:9px}.feed-row .victim{grid-column:4;grid-row:2;font-size:12px}.feed-row .weapon{grid-column:5;grid-row:2;justify-content:flex-end;font-size:10px}.feed-row .weapon span{display:none}.feed-row .weapon-image{width:40px;height:24px;flex-basis:40px}
    .page-hero{min-height:0!important;padding:14px!important;gap:8px!important}.page-logo{width:125px!important;height:70px!important}.page-hero h1{font-size:34px!important;line-height:1!important}.page-hero p{font-size:11px!important}.eyebrow{font-size:9px!important}
    .quick-grid,.network-grid{display:none!important}.two-column,.panel-grid,.market-grid,.hq-content-grid,.profile-detail-grid{grid-template-columns:1fr!important}.hq-banner,.profile-command{padding:14px!important}.hq-banner h2,.profile-command h2{font-size:25px!important}.base-radar-canvas{min-height:190px}.profile-avatar{width:64px;height:64px;font-size:26px}.profile-identity{gap:10px}.profile-detail-grid>.panel{padding:14px}.notification-drawer{inset:64px 8px auto 8px;width:auto;max-height:75vh}
}
@media(max-width:360px){.restored-metrics,.metric-row,.hq-metrics,.leaderboard-summary,.profile-metric-row,.killfeed-highlights{grid-template-columns:1fr!important}}

/* Restore the approved detailed home composition that the rollback block hid. */
#home .hero{max-width:1760px;min-height:430px;grid-template-columns:292px minmax(0,1fr) 292px;gap:14px;align-items:stretch;padding:10px 0 16px}
#home .hero .terminal-panel{min-height:420px;margin:0;padding:24px 20px;border-radius:16px;border-color:rgba(151,54,255,.82);background:linear-gradient(180deg,rgba(10,3,21,.94),rgba(4,1,10,.96));box-shadow:0 0 20px rgba(128,32,255,.42),inset 0 0 30px rgba(112,27,235,.09)}
#home .hero-core-wrap>.hero-core{min-height:280px;padding:0 15px 4px;display:flex;flex-direction:column;justify-content:flex-end;background:radial-gradient(ellipse at 50% 42%,rgba(154,46,255,.24),transparent 50%)}
#home .hero-core-wrap .hero-logo{width:min(760px,96%);height:235px}#home .hero-core-wrap .subtitle{margin-top:-17px}
.binary-line { display:block !important; }
.system-report { display:grid !important; }
.intel-map,.map-caption { display:block !important; }
.system-panel dl div:nth-child(4),.network-panel>p:nth-of-type(1),.network-panel>p:nth-of-type(4),.network-panel>p:nth-of-type(6){display:flex !important}
.quick-grid { display:grid !important; }
.network-grid { display:grid !important; }

/* War Room leaderboards: one strong data surface, switchable between player and faction records. */
.leaderboard-hero{min-height:245px}.leaderboard-hero h1{font-size:clamp(42px,6vw,82px)}
.leaderboard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.leaderboard-summary .metric,.hq-metrics .metric{min-height:118px;padding:16px;grid-template-columns:64px 1fr;border-radius:13px}.leaderboard-summary .metric-icon,.hq-metrics .metric-icon{width:56px;height:56px}.leaderboard-summary .metric-icon svg,.hq-metrics .metric-icon svg{width:34px;height:34px}.leaderboard-summary .metric strong,.hq-metrics .metric strong{font-size:30px}.leaderboard-summary .metric span,.hq-metrics .metric span{font-size:10px}.leaderboard-summary .metric em,.hq-metrics .metric em{font-size:10px;margin-top:8px}
.leaderboard-board{padding:0;overflow:hidden}.leaderboard-toolbar{display:flex;justify-content:space-between;gap:18px;padding:18px;border-bottom:1px solid rgba(185,68,255,.3)}.leaderboard-tabs{display:flex;gap:8px}.leaderboard-tabs button.active{border-color:var(--purple);color:#fff;box-shadow:0 0 15px rgba(185,68,255,.45)}#leaderboard-search{width:min(440px,55%);padding:0 16px;border:1px solid var(--line);border-radius:6px;background:rgba(2,0,7,.8);color:#fff}
.leaderboard-table{display:none}.leaderboard-table.active{display:block}.leaderboard-header,.leaderboard-row{display:grid;align-items:center;gap:16px;padding:0 20px}.leaderboard-header{min-height:42px;color:#8e7b9c;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;background:rgba(0,0,0,.32)}.leaderboard-row{min-height:70px;border-top:1px solid rgba(185,68,255,.14);color:#bbaec5}.leaderboard-row:hover{background:linear-gradient(90deg,rgba(185,68,255,.09),transparent)}.player-rank-row,.leaderboard-table#player-leaderboard .leaderboard-header{grid-template-columns:58px minmax(220px,1fr) 110px 110px 90px 110px}.faction-rank-row,.leaderboard-table#faction-leaderboard .leaderboard-header{grid-template-columns:58px minmax(260px,1fr) 110px 140px 90px}.leaderboard-row .rank{color:#e6c7fa;font-size:18px}.leaderboard-row:nth-of-type(2) .rank{color:var(--amber)}.rank-identity{display:flex;align-items:center;gap:12px;min-width:0}.rank-identity img,.rank-identity i{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;object-fit:contain;border:1px solid rgba(185,68,255,.35);background:rgba(185,68,255,.08);color:var(--purple);font-style:normal}.rank-identity b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}.rank-identity em{color:var(--red);font-size:11px}.leaderboard-row>[data-label="Kills"]{color:#fff}.leaderboard-row>[data-label="K/D"]{color:var(--cyan)}
.faction-minimum{padding:9px 12px;border-left:2px solid var(--amber);color:var(--muted)}

@media(max-width:1180px){#home .hero{grid-template-columns:240px minmax(0,1fr) 240px}}
@media(max-width:980px){#home .hero{grid-template-columns:1fr}#home .hero .terminal-panel{min-height:auto}.leaderboard-summary{grid-template-columns:repeat(2,1fr)}.quick-grid{grid-template-columns:repeat(2,1fr)!important}.network-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){
    .site-header{display:grid!important;grid-template-columns:1fr auto!important;padding:5px 12px;gap:6px}.site-header .brand{min-width:0}.site-header .brand-logo{width:145px;height:48px}.main-nav{grid-column:1/-1;grid-row:2;display:flex!important;overflow-x:auto;gap:18px;padding:0 2px 5px;scrollbar-width:none}.main-nav a{flex:0 0 auto;font-size:11px}.discord-button,.kofi-button{display:none}.login-button{grid-column:2;grid-row:1}.notification-button{grid-column:2;grid-row:1;margin-right:92px}
    main{padding-left:10px!important;padding-right:10px!important}.leaderboard-toolbar{align-items:stretch;flex-direction:column}.leaderboard-tabs button{flex:1}#leaderboard-search{width:100%;min-height:44px}.leaderboard-header{display:none}.leaderboard-row,.player-rank-row,.faction-rank-row{grid-template-columns:42px minmax(0,1fr);gap:8px 12px;padding:14px;min-height:0}.leaderboard-row>.rank{grid-row:1/4}.leaderboard-row>[data-label]{display:flex;justify-content:space-between;font-size:12px}.leaderboard-row>[data-label]:before{content:attr(data-label);margin-right:12px;color:#796c84;font-size:9px;text-transform:uppercase}.rank-identity{margin-bottom:6px}.rank-identity img,.rank-identity i{width:34px;height:34px;flex-basis:34px}.rank-identity em{margin-left:auto}.hq-metrics,.leaderboard-summary{grid-template-columns:1fr 1fr}.hq-metrics .metric,.leaderboard-summary .metric{grid-template-columns:48px 1fr;padding:12px}.hq-metrics .metric-icon,.leaderboard-summary .metric-icon{width:44px;height:44px}.hq-metrics .metric strong,.leaderboard-summary .metric strong{font-size:22px}.quick-grid{grid-template-columns:1fr!important}.home-feed-row{overflow-x:auto}.faction-actions{align-items:stretch;flex-direction:column}.faction-actions>*{width:100%}
}
@media(max-width:430px){.hq-metrics,.leaderboard-summary{grid-template-columns:1fr}.profile-metrics{grid-template-columns:1fr 1fr}.leaderboard-hero h1{font-size:38px}.terminal-panel,.panel{border-radius:7px}}

/* Approved panel effect: fixed LED matrix; only dot brightness changes. */
.matrix-canvas { position:absolute; inset:0; z-index:0; width:100%; height:100%; pointer-events:none; opacity:.92; }
.metric::before, .metric::after, .metric:hover::before, .metric:active::before {
    content:none !important; display:none !important; animation:none !important;
}

/* Segmented circuit framing is decoration only and never travels. */
.terminal-panel::before, .panel::before {
    content:"" !important; display:block !important; position:absolute; inset:5px; z-index:0;
    pointer-events:none; opacity:.42;
    background:
        linear-gradient(currentColor,currentColor) left top / 38% 1px no-repeat,
        linear-gradient(currentColor,currentColor) left top / 1px 28% no-repeat,
        linear-gradient(currentColor,currentColor) right top / 22% 1px no-repeat,
        linear-gradient(currentColor,currentColor) right top / 1px 18% no-repeat,
        linear-gradient(currentColor,currentColor) left bottom / 24% 1px no-repeat,
        linear-gradient(currentColor,currentColor) left bottom / 1px 18% no-repeat,
        linear-gradient(currentColor,currentColor) right bottom / 36% 1px no-repeat,
        linear-gradient(currentColor,currentColor) right bottom / 1px 30% no-repeat;
    filter:drop-shadow(0 0 5px currentColor);
}

main::after {
    content:""; position:absolute; inset:2px -8px 20px; z-index:-1; pointer-events:none; opacity:.24;
    background:
        linear-gradient(var(--purple),var(--purple)) left 8% top / 1px 16% no-repeat,
        linear-gradient(var(--purple),var(--purple)) left 8% top / 7% 1px no-repeat,
        linear-gradient(var(--cyan),var(--cyan)) right 8% top 18% / 1px 15% no-repeat,
        linear-gradient(var(--cyan),var(--cyan)) right 8% top 18% / 6% 1px no-repeat,
        linear-gradient(var(--purple),var(--purple)) left 5% bottom 8% / 1px 14% no-repeat,
        linear-gradient(var(--purple),var(--purple)) left 5% bottom 8% / 8% 1px no-repeat;
    filter:drop-shadow(0 0 6px var(--purple));
}

#home .hero .terminal-panel { min-height:300px; }
.binary-line { display:block !important; text-align:center; }
.system-report { display:grid !important; }
.system-panel dl div:nth-child(4) { display:flex !important; }
.network-panel > p { display:block !important; }
.intel-map, .map-caption { display:none !important; }
.feed-row time { padding-right:12px; border-right:1px solid rgba(255,255,255,.09); }
.feed-row .killer { min-width:0; padding-left:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.faction-actions { display:flex; align-items:center; gap:18px; margin:0 0 16px; color:var(--muted); }
.create-faction-button { padding:12px 22px; border:1px solid var(--purple); color:#fff; text-transform:uppercase; box-shadow:0 0 16px rgba(185,68,255,.35); }
.faction-public-stats { margin:18px 0 0; }
.faction-public-stats div { display:flex; justify-content:space-between; padding:8px 0; border-top:1px solid rgba(185,68,255,.2); }
.faction-public-stats dd { margin:0; color:var(--cyan); }
.intel-label { display:flex; align-items:center; gap:10px; min-width:0; }
.intel-icon { width:19px; height:19px; flex:0 0 19px; fill:none; stroke:#d06cff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 5px rgba(185,68,255,.8)); }
.faction-dialog { width:min(520px,calc(100vw - 30px)); padding:0; border:1px solid var(--purple); color:var(--text); background:#08020f; box-shadow:0 0 50px rgba(185,68,255,.5); }
.faction-dialog::backdrop { background:rgba(0,0,0,.78); }
.faction-dialog form { display:grid; gap:16px; padding:24px; }
.faction-dialog label { display:grid; gap:7px; color:var(--muted); text-transform:uppercase; }
.faction-dialog input { min-height:42px; padding:8px 12px; border:1px solid rgba(185,68,255,.5); background:#030006; color:#fff; }
.availability { display:flex; align-items:center; gap:8px; margin:14px 0; text-transform:uppercase; }
.availability i { width:9px; height:9px; border-radius:50%; background:var(--red); box-shadow:0 0 9px var(--red); }
.availability.available i { background:var(--green); box-shadow:0 0 9px var(--green); }
.product-image { width:100%; height:160px; object-fit:cover; border:1px solid rgba(185,68,255,.25); }
.faction-hq-panel { margin-bottom:18px; }
#add-faction-member { display:flex; gap:10px; margin:18px 0; }
#add-faction-member input { flex:1; min-width:0; padding:0 12px; border:1px solid var(--line); background:#030006; color:#fff; }
.hq-members > div { display:grid; grid-template-columns:1fr 100px auto; align-items:center; gap:12px; padding:9px 0; border-top:1px solid rgba(185,68,255,.18); }
.hq-members em { color:var(--cyan); font-style:normal; text-transform:uppercase; }

/* Final homepage refinements. */
.feed-row {
    grid-template-columns:24px 64px 126px minmax(145px,1fr) 82px minmax(105px,1fr) 128px 48px;
    column-gap:14px;
}
.feed-row time { padding-right:18px; }
.feed-row .killer { padding-left:18px; }

.system-panel,
.network-panel {
    box-shadow:0 0 24px rgba(185,68,255,.3), inset 0 0 28px rgba(22,216,255,.055);
}
.system-panel h2,
.network-panel h2 {
    text-shadow:0 0 13px rgba(215,106,255,.85), 0 0 22px rgba(22,216,255,.34);
}
.system-panel dt::first-letter,
.network-panel p:not(.pink)::first-letter { color:var(--cyan); }
.system-panel dl { border-left:1px solid rgba(22,216,255,.18); padding-left:10px; }
.network-panel { border-right-color:rgba(22,216,255,.55); }
.network-panel p:nth-of-type(3),
.network-panel p:nth-of-type(5) { color:#6eeaff; }
.binary-line {
    display:block !important;
    margin:12px 0 8px !important;
    color:#7adff1 !important;
    font-family:Consolas,monospace;
    font-size:11px !important;
    letter-spacing:1px;
    text-align:center;
}

.network-grid {
    display:grid !important;
    grid-template-columns:1.35fr 1fr;
    gap:14px;
    margin:18px 0 8px;
}
.network-grid .social-card { display:none; }
.network-card { min-height:106px; }

.faction-dialog { max-height:90vh; overflow:auto; }
.faction-dialog select { min-height:42px; padding:8px 12px; border:1px solid rgba(185,68,255,.5); background:#030006; color:#fff; }
.optional,.field-help { color:var(--cyan); font-size:10px; margin-left:8px; }
.identity-fieldset { min-width:0; margin:0; padding:14px; border:1px solid rgba(185,68,255,.35); }
.identity-fieldset legend { color:#e0a1ff; text-transform:uppercase; letter-spacing:1px; }
.identity-fieldset > p { color:var(--muted); font-size:11px; }
.identity-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; max-height:330px; overflow:auto; padding:4px; }
.identity-option { position:relative; display:grid !important; place-items:center; gap:5px !important; min-width:0; padding:8px 5px; border:1px solid rgba(185,68,255,.22); cursor:pointer; text-align:center; }
.identity-option input { position:absolute; opacity:0; pointer-events:none; }
.identity-option img { width:54px; height:54px; object-fit:contain; }
.identity-option span { max-width:100%; overflow:hidden; text-overflow:ellipsis; font-size:9px; white-space:nowrap; }
.identity-option em { color:var(--green); font-size:8px; font-style:normal; }
.identity-option:has(input:checked) { border-color:var(--cyan); box-shadow:0 0 12px rgba(22,216,255,.45); }
.identity-option.unavailable { opacity:.35; cursor:not-allowed; }
.identity-option.unavailable em { color:var(--red); }
.identity-catalog[hidden] { display:none; }
.identity-filters { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.identity-filters button { min-height:32px; padding:0 12px; }
.identity-filters button.active { border-color:var(--cyan); color:var(--cyan); box-shadow:0 0 9px rgba(22,216,255,.25); }
.selected-identity { min-height:62px; display:flex; align-items:center; gap:12px; margin-top:10px; padding:8px 12px; border:1px solid rgba(22,216,255,.2); color:var(--muted); }
.selected-identity img { width:48px; height:48px; object-fit:contain; }
.selected-identity strong { color:#fff; }
.selected-identity span { margin-left:auto; color:var(--green); text-transform:uppercase; font-size:10px; }
.catalog-status { display:flex; align-items:center; justify-content:center; gap:5px; }
.catalog-status i { width:7px; height:7px; border-radius:50%; background:var(--red); box-shadow:0 0 7px var(--red); }
.catalog-status.available i { background:var(--green); box-shadow:0 0 7px var(--green); }
.member-fieldset { min-width:0; margin:0; padding:14px; border:1px solid rgba(22,216,255,.28); }
.member-fieldset legend { color:#7beaff; text-transform:uppercase; letter-spacing:1px; }
.member-fieldset > p { color:var(--muted); font-size:11px; }
.member-option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:220px; overflow:auto; }
.member-option { display:grid !important; grid-template-columns:auto 1fr; column-gap:9px !important; align-items:center; padding:9px; border:1px solid rgba(185,68,255,.2); cursor:pointer; }
.member-option input { grid-row:1 / span 2; width:17px; height:17px; accent-color:var(--purple); }
.member-option span { color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-transform:none; }
.member-option em { color:var(--cyan); font-size:10px; font-style:normal; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-transform:none; }
.member-option:has(input:checked) { border-color:var(--purple); box-shadow:inset 0 0 12px rgba(185,68,255,.16); }
.member-option:has(input:disabled) { opacity:.35; cursor:not-allowed; }
.member-fieldset > input[type="search"] { width:100%; min-height:42px; padding:8px 12px; border:1px solid rgba(22,216,255,.35); background:#030006; color:#fff; }
.player-search-results { display:grid; gap:6px; max-height:190px; overflow:auto; margin-top:8px; }
.player-search-result { min-height:48px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; text-align:left; text-transform:none; }
.player-search-result strong { color:#fff; }
.player-search-result span { color:var(--cyan); font-size:11px; }
.player-search-result.unavailable { opacity:.42; cursor:not-allowed; }
.selected-player { min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; padding:7px 10px; border:1px solid rgba(185,68,255,.25); color:var(--muted); }
.selected-player span { display:grid; gap:3px; min-width:0; }
.selected-player strong { color:#fff; overflow:hidden; text-overflow:ellipsis; }
.selected-player em { color:var(--cyan); font-size:10px; font-style:normal; }
.selected-player button { min-height:30px; padding:0 10px; }
.selected-members { display:grid; gap:5px; }
.leaderboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.leaderboard-row { min-height:62px; display:grid; grid-template-columns:34px auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:9px 10px; border-top:1px solid rgba(185,68,255,.2); }
.leaderboard-row .rank { color:var(--purple); font-size:18px; text-align:center; }
.leaderboard-row > img { width:40px; height:40px; object-fit:contain; }
.leaderboard-row > span { display:grid; min-width:0; }
.leaderboard-row b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.leaderboard-row em { color:var(--muted); font-size:10px; font-style:normal; }
.leaderboard-row dl { display:flex; gap:18px; margin:0; }
.leaderboard-row dl div { text-align:right; }
.leaderboard-row dt { color:var(--muted); font-size:9px; text-transform:uppercase; }
.leaderboard-row dd { margin:2px 0 0; color:var(--cyan); }
@media(max-width:950px){.leaderboard-grid{grid-template-columns:1fr}}

@media(max-width:760px) {
    .identity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .network-grid { grid-template-columns:1fr; }
}

.feed-row {
    grid-template-columns: 24px 64px 112px minmax(110px, 1fr) 82px minmax(105px, 1fr) 128px 48px;
    gap: 9px;
}

.kill-skull {
    width: 18px;
    height: 18px;
    fill: #d18aff;
    filter: drop-shadow(0 0 5px #b944ff);
}

.feed-live {
    order: initial;
}

.chernarus-renderer {
    position: relative;
    min-height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(22, 216, 255, .35);
    background:
        linear-gradient(rgba(22, 216, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 216, 255, .035) 1px, transparent 1px),
        rgba(2, 8, 12, .88);
    background-size: 20px 20px;
}

.chernarus-renderer canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.chernarus-renderer span,
.chernarus-renderer em {
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chernarus-renderer span { color: var(--cyan); }
.chernarus-renderer em { margin-top: 34px; color: var(--muted); font-size: 10px; font-style: normal; }
.empty-state { color: var(--muted); }
.empty-state-panel { min-height: 160px; display: grid; place-items: center; color: var(--muted); }
.chernarus-renderer.large { min-height: 620px; }

.panel,
.terminal-panel {
    background-image:
        linear-gradient(90deg, currentColor 0 32px, transparent 32px) top 9px left 12px / 70px 1px no-repeat,
        linear-gradient(180deg, currentColor 0 22px, transparent 22px) top 9px left 12px / 1px 54px no-repeat,
        linear-gradient(90deg, transparent 0 35%, currentColor 35% 100%) bottom 9px right 12px / 84px 1px no-repeat,
        linear-gradient(180deg, transparent 0 35%, currentColor 35% 100%) bottom 9px right 12px / 1px 56px no-repeat;
}

.feed-row .weapon span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.distance {
    color: #fff;
    text-align: right;
}

.map-preview {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(22, 216, 255, 0.28);
    background:
        radial-gradient(circle at 32% 34%, rgba(117, 113, 65, 0.45), transparent 18%),
        radial-gradient(circle at 64% 46%, rgba(56, 98, 52, 0.46), transparent 20%),
        radial-gradient(circle at 48% 70%, rgba(60, 77, 47, 0.5), transparent 22%),
        linear-gradient(145deg, transparent 0 42%, rgba(45, 62, 35, 0.55) 42% 47%, transparent 47%),
        linear-gradient(35deg, transparent 0 56%, rgba(69, 65, 40, 0.42) 56% 60%, transparent 60%),
        linear-gradient(135deg, #15170d, #2c3623 48%, #16242c);
}

.map-preview::before {
    content: "";
    position: absolute;
    inset: 10px 8px 8px 12px;
    border-radius: 42% 58% 47% 53% / 38% 32% 68% 62%;
    border: 1px solid rgba(213, 210, 156, 0.12);
    background:
        radial-gradient(circle at 22% 24%, rgba(205, 198, 136, 0.12), transparent 12%),
        radial-gradient(circle at 58% 58%, rgba(27, 44, 22, 0.62), transparent 30%),
        linear-gradient(155deg, rgba(105, 104, 68, 0.34), rgba(26, 44, 31, 0.58));
    opacity: 0.86;
    filter: contrast(1.08) saturate(0.85);
}

.map-preview.large {
    min-height: 560px;
}

.map-dot {
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 14px var(--red);
}

.dot-a {
    left: 30%;
    top: 30%;
}

.dot-b {
    left: 64%;
    top: 42%;
    background: var(--amber);
}

.dot-c {
    left: 52%;
    top: 66%;
    background: var(--pink);
}

.hot-zones {
    margin-top: 16px;
}

.hot-zones p {
    display: flex;
    justify-content: space-between;
    margin: 9px 0 0;
}

.hot-zones span {
    color: var(--amber);
    text-transform: uppercase;
}

.page-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    margin: 22px 0 14px;
    padding: 30px 42px;
}

.page-logo {
    width: 360px;
    max-width: 42%;
    filter: drop-shadow(0 0 22px rgba(184, 68, 255, 0.82));
}

.eyebrow {
    margin: 0 0 8px;
    color: #d76aff;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(58px, 8vw, 120px);
    line-height: 0.9;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.28),
        0 0 32px rgba(176, 63, 255, 0.58);
}

.page-hero p {
    color: var(--muted);
    font-size: 18px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
}

.stat-line {
    grid-template-columns: 1fr auto;
}

.panel-grid,
.market-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.faction-card,
.market-card {
    min-height: 210px;
    padding: 24px;
}

.faction-large {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    font-size: 28px;
}

.market-card p {
    color: var(--muted);
    line-height: 1.5;
}

.market-card strong {
    color: var(--cyan);
    text-transform: uppercase;
}

.site-footer {
    width: min(1800px, calc(100vw - 28px));
    min-height: 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 0 auto;
    color: var(--muted);
    border-top: 1px solid rgba(176, 63, 255, 0.24);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1180px) {
    .hero,
    .home-grid,
    .two-column,
    .panel-grid,
    .market-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        grid-template-columns: 190px 1fr auto auto;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .login-button,
    .discord-button,
    .kofi-button {
        justify-self: start;
    }

    .terminal-panel.right {
        display: none;
    }

    .metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-row {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 680px) {
    .site-header {
        grid-template-columns: 1fr;
        padding: 10px 14px;
    }

    .brand-logo {
        width: 190px;
        height: 62px;
    }

    .main-nav {
        gap: 18px;
        width: 100%;
        padding-bottom: 4px;
    }

    .main-nav a {
        padding: 8px 0 12px;
        font-size: 13px;
    }

    .login-button,
    .discord-button,
    .kofi-button {
        width: 100%;
    }

    .terminal-panel.left {
        display: block;
    }

    .terminal-panel.right {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-top: 8px;
    }

    .hero-core {
        order: -1;
        padding: 22px 12px 6px;
    }

    .hero-logo {
        width: min(440px, 94%);
        height: 160px;
    }

    .subtitle {
        font-size: 12px;
        letter-spacing: 3px;
        margin-top: -4px;
    }

    .signal-line {
        flex-wrap: wrap;
        padding: 8px 10px;
        font-size: 12px;
    }

    .terminal-panel {
        min-height: 0;
        margin-top: 0;
    }

    .metric-row {
        grid-template-columns: 1fr;
    }

    .feed-row {
        grid-template-columns: 1fr;
    }

    .page-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .page-logo {
        max-width: 100%;
        width: 300px;
    }
}

/* Goal-layout homepage */
#home {
    max-width: 1760px;
    margin: 0 auto;
}

.command-deck {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr) 292px;
    gap: 14px;
    align-items: stretch;
    min-height: 430px;
}

.command-center {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.command-center .hero-core {
    flex: 1;
    min-height: 280px;
    padding: 0 15px 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: radial-gradient(ellipse at 50% 42%, rgba(154, 46, 255, .24), transparent 50%);
}

.command-center .hero-logo {
    width: min(760px, 96%);
    height: 235px;
    object-fit: cover;
}

.command-center .subtitle {
    margin-top: -17px;
}

.command-center .signal-line {
    min-height: 28px;
    width: min(690px, 82%);
    font-size: 11px;
}

.command-deck .terminal-panel {
    min-height: 420px;
    margin: 0;
    padding: 24px 20px;
    border-radius: 16px;
    border-color: rgba(151, 54, 255, .82);
    background: linear-gradient(180deg, rgba(10, 3, 21, .94), rgba(4, 1, 10, .96));
    box-shadow: 0 0 20px rgba(128, 32, 255, .42), inset 0 0 30px rgba(112, 27, 235, .09);
}

.command-deck .terminal-panel::after,
.quick-card::after,
.network-card::after,
.home-killfeed::after {
    content: "";
    position: absolute;
    inset: 7px;
    pointer-events: none;
    border: 1px solid rgba(195, 93, 255, .22);
    clip-path: polygon(0 0, 28% 0, 28% 1px, 72% 1px, 72% 0, 100% 0, 100% 100%, 75% 100%, 75% calc(100% - 1px), 25% calc(100% - 1px), 25% 100%, 0 100%);
}

.command-deck .terminal-panel h2 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 2px;
}

.command-deck .terminal-panel p,
.command-deck .terminal-panel dt,
.command-deck .terminal-panel dd {
    font-size: 12px;
    letter-spacing: 1px;
}

.command-deck .terminal-panel dl {
    margin-top: 12px;
}

.command-deck .terminal-panel div {
    padding: 8px 0;
}

.system-panel dd:not(#home-status) {
    color: var(--pink);
}

.system-panel dd:last-child {
    color: var(--green);
}

.binary-line {
    text-align: center;
    font-family: Consolas, monospace;
    line-height: 1.6;
}

.system-report {
    position: relative;
    z-index: 2;
    min-height: 38px;
    display: grid;
    place-items: center;
    margin-top: 10px;
    border: 1px solid var(--green);
    color: var(--green);
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(25, 247, 143, .22), inset 0 0 14px rgba(25, 247, 143, .08);
}

.network-panel .pink,
.map-caption {
    color: var(--pink) !important;
}

.intel-map {
    position: relative;
    height: 138px;
    margin-top: 17px;
    border: 1px solid rgba(185, 68, 255, .7);
    background: radial-gradient(circle, rgba(164, 50, 255, .22) 1px, transparent 2px) 0 0 / 15px 15px;
    box-shadow: inset 0 0 25px rgba(128, 32, 255, .28);
}

.intel-map i {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff315e;
    box-shadow: 0 0 12px #ff315e, 0 0 24px #fff;
}

.intel-map i:nth-child(1) { left: 24%; top: 32%; }
.intel-map i:nth-child(2) { left: 66%; top: 27%; }
.intel-map i:nth-child(3) { left: 48%; top: 58%; background: var(--purple); }
.intel-map i:nth-child(4) { left: 20%; top: 69%; }
.intel-map i:nth-child(5) { left: 74%; top: 70%; }

.map-caption {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    text-transform: uppercase;
}

.map-caption span { color: var(--muted); }

.command-center .metric-row {
    margin: 10px 0 0;
    gap: 12px;
}

.command-center .metric {
    min-height: 108px;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
}

.command-center .metric-icon {
    width: 58px;
    height: 58px;
}

.command-center .metric-icon svg { width: 37px; height: 37px; }
.command-center .metric strong { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 29px; }
.command-center .metric span { margin-top: 3px; font-size: 9px; }
.command-center .metric em { margin-top: 9px; font-size: 9px; white-space: nowrap; }
.command-center .metric em::before { width: 7px; height: 7px; margin-right: 5px; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 14px 28px 12px;
}

.quick-card,
.network-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(173, 70, 255, .68);
    background: rgba(7, 2, 15, .94);
    box-shadow: 0 0 16px rgba(150, 50, 255, .32), inset 0 0 20px rgba(150, 50, 255, .08);
}

.quick-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 70px 1fr 18px;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
}

.quick-card svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: #c767ff;
    stroke-width: 2;
    filter: drop-shadow(0 0 9px #8e2aff);
}

.quick-card strong,
.quick-card em { display: block; text-transform: uppercase; }
.quick-card strong { font-size: 15px; letter-spacing: 1.4px; }
.quick-card em { margin-top: 8px; color: #a990bd; font-size: 10px; font-style: normal; letter-spacing: 1px; }
.quick-card b { font-size: 34px; font-weight: 300; }

.home-killfeed {
    margin: 0 28px 14px;
    padding: 16px 20px 10px;
    border-radius: 12px;
}

.killfeed-title small {
    margin-left: 28px;
    color: #b274d2;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
}

.home-feed-row {
    min-height: 27px;
    display: grid;
    grid-template-columns: 28px minmax(120px, 1fr) 110px minmax(120px, 1fr) 155px 70px 55px 140px;
    align-items: center;
    gap: 10px;
    padding: 2px 12px;
    border-top: 1px solid rgba(151, 54, 255, .18);
    color: #c4b5ce;
    font-size: 11px;
}

.home-feed-row svg { width: 17px; height: 17px; fill: none; stroke: #d26cff; stroke-width: 2; }
.home-feed-row .killer { color: #f2e7f9; }
.home-feed-row .victim { color: var(--red); }
.home-feed-row .weapon { display: flex; align-items: center; gap: 7px; color: #e9d7f5; }
.home-feed-row em { color: #2cff67; font-style: normal; text-transform: uppercase; }
.home-feed-row .weapon-image { filter: brightness(0) invert(62%) sepia(94%) saturate(4000%) hue-rotate(245deg) drop-shadow(0 0 4px #c05cff); }

.load-more {
    width: 260px;
    display: block;
    margin: 8px auto -20px;
    padding: 5px;
    text-align: center;
    border: 1px solid rgba(176, 63, 255, .65);
    background: #080211;
    color: #c779f1;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.network-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr 1fr;
    gap: 12px;
    margin: 18px 0 0;
}

.network-card {
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 28px;
    text-transform: uppercase;
}

.network-card > strong,
.network-card span strong { color: #da9cff; letter-spacing: 2px; }
.network-card span { color: #9c83ad; font-size: 10px; line-height: 1.8; }
.network-card em { display: block; font-style: normal; }
.waveform { flex: 1; height: 30px; background: repeating-linear-gradient(90deg, #b64cff 0 2px, transparent 2px 7px); clip-path: polygon(0 48%,4% 35%,8% 63%,12% 30%,16% 72%,20% 43%,24% 58%,28% 20%,32% 79%,36% 38%,40% 66%,44% 31%,48% 75%,52% 23%,56% 68%,60% 40%,64% 58%,68% 28%,72% 73%,76% 37%,80% 62%,84% 20%,88% 76%,92% 39%,96% 58%,100% 48%,100% 54%,0 54%); filter: drop-shadow(0 0 6px #a73cff); }
.discord-large { width: 64px; height: 64px; fill: #d28cff; filter: drop-shadow(0 0 10px #963aff); }
.community-card a { margin-left: auto; border: 1px solid #a844dc; padding: 8px 25px; }
.social-card { justify-content: space-around; }
.social-card > strong { margin-right: auto; }
.social-card span { color: #e5d7ed; font-size: 12px; }

@media (max-width: 1280px) {
    .command-deck { grid-template-columns: 240px minmax(0, 1fr) 240px; }
    .command-center .metric { grid-template-columns: 1fr; text-align: center; }
    .command-center .metric-icon { margin: auto; }
    .home-feed-row { grid-template-columns: 24px 1fr 80px 1fr 120px 60px 45px 110px; }
}

@media (max-width: 980px) {
    .command-deck { grid-template-columns: 1fr; }
    .command-deck .terminal-panel { min-height: auto; }
    .command-center { order: -1; }
    .command-center .metric-row, .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid, .home-killfeed { margin-left: 0; margin-right: 0; }
    .network-grid { grid-template-columns: 1fr; }
    .home-feed-row { grid-template-columns: 24px 1fr 70px 1fr 120px; }
    .home-feed-row > :nth-child(6), .home-feed-row > :nth-child(7), .home-feed-row > :nth-child(8) { display: none; }
}

/* Rollback: preserve the earlier three-column homepage composition. */
.site-header {
    grid-template-columns: 220px minmax(0, 1fr) auto auto auto auto;
}

.brand-logo {
    width: 150px;
    height: 48px;
}

#home {
    max-width: none;
}

#home .hero {
    min-height: 330px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
    position: relative;
    padding: 10px 0 16px;
}

#home .hero-core-wrap {
    display: block;
    min-width: 0;
}

#home .hero-core-wrap > .hero-core {
    min-height: 0;
    display: block;
    padding: 34px 20px 4px;
    background: none;
}

#home .hero-core-wrap .hero-logo {
    width: min(560px, 84%);
    height: 190px;
}

#home .hero-core-wrap .subtitle {
    margin: -4px 0 12px;
}

#home .hero-core-wrap .signal-line {
    width: min(720px, 100%);
    min-height: 44px;
    font-size: inherit;
}

#home .hero .terminal-panel {
    min-height: 190px;
    margin-top: 16px;
    padding: 18px;
    border-radius: 8px;
}

.binary-line,
.system-report,
.intel-map,
.map-caption,
.system-panel dl div:nth-child(4),
.network-panel > p:nth-of-type(1),
.network-panel > p:nth-of-type(4),
.network-panel > p:nth-of-type(6) {
    display: none !important;
}

.quick-grid,
.network-grid,
#goal-metrics-unused {
    display: none !important;
}

.restored-metrics {
    margin: -14px 34px 14px;
}

.restored-home-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr) 330px;
    gap: 14px;
}

.restored-home-grid .home-killfeed {
    margin: 0;
    padding: 20px;
    border-radius: 8px;
}

.restored-home-grid .killfeed-title small,
.restored-home-grid .load-more {
    display: none;
}

@media (max-width: 1180px) {
    .site-header { grid-template-columns: 190px 1fr auto auto auto auto; }
    #home .hero,
    .restored-home-grid { grid-template-columns: 1fr; }
    .restored-metrics { margin-left: 0; margin-right: 0; }
}

@media (max-width: 680px) {
    .site-header { grid-template-columns: 1fr; }
}

/* Static circuit-board detailing: visible at rest, never sweeps. */
.metric::before {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: 0;
    display: block;
    pointer-events: none;
    opacity: .62;
    border-radius: 13px;
    background:
        radial-gradient(circle, currentColor 0 2px, transparent 2.6px) 18% 0 / 8px 8px no-repeat,
        radial-gradient(circle, currentColor 0 2px, transparent 2.6px) 82% 100% / 8px 8px no-repeat,
        radial-gradient(circle, currentColor 0 1.6px, transparent 2.2px) 100% 34% / 7px 7px no-repeat,
        linear-gradient(90deg, currentColor 0 18%, transparent 18% 28%, currentColor 28% 46%, transparent 46%) left top / 72% 1px no-repeat,
        linear-gradient(90deg, transparent 0 54%, currentColor 54% 78%, transparent 78% 86%, currentColor 86%) right bottom / 78% 1px no-repeat,
        linear-gradient(180deg, currentColor 0 30%, transparent 30% 46%, currentColor 46% 64%, transparent 64%) left top / 1px 72% no-repeat,
        linear-gradient(180deg, transparent 0 32%, currentColor 32% 68%, transparent 68% 80%, currentColor 80%) right bottom / 1px 76% no-repeat;
    filter: drop-shadow(0 0 4px currentColor);
}

.metric:hover::before,
.metric:active::before {
    content: "";
    opacity: .82;
    animation: none;
}

.metric::after {
    content: "";
    position: absolute;
    inset: 15px;
    z-index: 0;
    pointer-events: none;
    opacity: .28;
    background:
        linear-gradient(90deg, currentColor 0 26%, transparent 26%) 0 32% / 42% 1px no-repeat,
        linear-gradient(90deg, transparent 0 38%, currentColor 38% 100%) 100% 66% / 44% 1px no-repeat,
        linear-gradient(180deg, currentColor 0 100%) 39% 32% / 1px 18px no-repeat,
        linear-gradient(180deg, currentColor 0 100%) 61% 66% / 1px 18px no-repeat;
    filter: drop-shadow(0 0 3px currentColor);
}

.weapon-image {
    display: block;
    width: 58px;
    height: 30px;
    flex: 0 0 58px;
    object-fit: contain;
    filter: brightness(1.35) drop-shadow(0 0 6px rgba(22, 216, 255, .9));
}

/* Final logo sizing must follow rollback compatibility rules above. */
.site-header .brand-logo {
    width: 170px;
    height: 58px;
    object-fit: cover;
    object-position: center 35%;
}

#home .hero-core-wrap .hero-logo {
    width: min(730px, 94%);
    height: 247px;
    object-fit: cover;
    object-position: center 36%;
}

/* Final cascade corrections for data-heavy authenticated pages. */
.notification-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;filter:drop-shadow(0 0 6px currentColor)}.notification-button span:empty{display:none}
.profile-command{display:flex;align-items:center;justify-content:space-between;padding:28px;background:radial-gradient(circle at 18% 50%,rgba(185,68,255,.18),transparent 30%),var(--panel)}.profile-command h2{font-size:clamp(32px,4vw,58px);margin:4px 0}.profile-status{color:var(--green);text-transform:uppercase}.profile-status i{display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}.profile-faction-tag{display:inline-block;padding:5px 10px;border:1px solid var(--purple);color:var(--purple)}
.profile-metric-row,.killfeed-highlights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.profile-metric-row .metric,.killfeed-highlights .metric{min-height:125px;padding:16px;grid-template-columns:60px 1fr;border-radius:13px}.profile-metric-row .metric-icon,.killfeed-highlights .metric-icon{width:54px;height:54px}.profile-metric-row .metric-icon svg,.killfeed-highlights .metric-icon svg{width:34px;height:34px}.profile-metric-row .metric strong,.killfeed-highlights .metric strong{font-size:clamp(21px,2vw,31px);overflow:hidden;text-overflow:ellipsis}.profile-detail-grid{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:12px}.profile-detail-grid>.panel{padding:22px}.profile-detail-grid dl{margin:0}.profile-detail-grid dl>div{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid currentColor}.profile-detail-grid dt{color:var(--muted)}.profile-detail-grid dd{margin:0;color:#fff;max-width:70%;overflow:hidden;text-overflow:ellipsis}.profile-faction{display:grid;gap:12px}.profile-faction>strong{font-size:26px;color:#fff}.profile-faction>a{padding:10px;border:1px solid currentColor;text-align:center}
#player-leaderboard .player-rank-row{display:grid!important;grid-template-columns:58px minmax(220px,1fr) 110px 110px 90px 110px!important;align-items:center;gap:16px;padding:0 20px}#faction-leaderboard .faction-rank-row{display:grid!important;grid-template-columns:58px minmax(260px,1fr) 110px 140px 90px!important;align-items:center;gap:16px;padding:0 20px}.leaderboard-table .rank-identity{display:flex!important;align-items:center;gap:12px}.leaderboard-table .leaderboard-row>span{min-width:0}.leaderboard-table .leaderboard-row{min-height:70px}.leaderboard-table .leaderboard-header{display:grid;align-items:center;gap:16px;padding:0 20px}.leaderboard-table#player-leaderboard .leaderboard-header{grid-template-columns:58px minmax(220px,1fr) 110px 110px 90px 110px}.leaderboard-table#faction-leaderboard .leaderboard-header{grid-template-columns:58px minmax(260px,1fr) 110px 140px 90px}
@media(max-width:980px){.profile-metric-row,.killfeed-highlights{grid-template-columns:repeat(2,1fr)}.profile-detail-grid{grid-template-columns:1fr 1fr}.profile-detail-grid>:first-child{grid-column:1/-1}}
@media(max-width:760px){#player-leaderboard .player-rank-row,#faction-leaderboard .faction-rank-row{grid-template-columns:42px minmax(0,1fr)!important;gap:8px 12px;padding:14px}.leaderboard-table .leaderboard-header{display:none!important}.profile-command{align-items:flex-start;flex-direction:column;gap:18px}.profile-detail-grid{grid-template-columns:1fr}.profile-detail-grid>:first-child{grid-column:auto}}
@media(max-width:430px){.profile-metric-row,.killfeed-highlights{grid-template-columns:1fr}}
