/* GuN Stats Bridge v0.0.0.5
   Compact public header + dashboard styles.
   Clean replacement for v0.0.0.4 home styles: no appended override blocks. */

.gun-stats-page {
    --gun-bg: #05090d;
    --gun-panel: rgba(8, 16, 24, 0.88);
    --gun-panel-strong: rgba(11, 22, 32, 0.96);
    --gun-border: rgba(112, 213, 255, 0.18);
    --gun-border-strong: rgba(47, 224, 235, 0.36);
    --gun-gold: #e8b923;
    --gun-gold-soft: rgba(232, 185, 35, 0.12);
    --gun-orange: #ff9800;
    --gun-red: #ff4d57;
    --gun-text: #e8edf4;
    --gun-muted: #9aa7b7;
}

.gun-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    padding: 8px 22px;
    margin: 0 0 10px;
    background:
        radial-gradient(circle at 7% 0%, rgba(232, 185, 35, 0.11), transparent 30%),
        linear-gradient(180deg, rgba(4, 9, 14, 0.98), rgba(4, 9, 14, 0.94));
    border-bottom: 1px solid rgba(232, 185, 35, 0.15);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(12px);
}

.gun-site-brand {
    display: inline-flex;
    align-items: center;
    min-width: 136px;
    text-decoration: none;
}

.gun-site-brand img {
    display: block;
    width: min(132px, 22vw);
    height: auto;
    filter: drop-shadow(0 0 12px rgba(232, 185, 35, 0.26));
}

.gun-site-nav {
    display: inline-flex;
    justify-self: start;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(112, 213, 255, 0.18);
    border-radius: 9px;
    background: rgba(8, 14, 20, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.gun-site-nav-link,
.gun-site-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    color: var(--gun-text);
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gun-site-nav-link {
    min-width: 116px;
    padding: 0 16px;
    border-right: 1px solid rgba(112, 213, 255, 0.13);
}

.gun-site-nav-link:last-child {
    border-right: 0;
}

.gun-site-nav-link:hover,
.gun-site-admin-link:hover {
    color: #fff;
    background: rgba(232, 185, 35, 0.09);
}

.gun-site-nav-link.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(232, 185, 35, 0.16), rgba(232, 185, 35, 0.05));
    box-shadow: inset 0 -2px 0 var(--gun-gold);
}

.gun-site-nav-icon,
.gun-site-admin-icon {
    color: var(--gun-gold);
    font-weight: 800;
}

.gun-site-admin-link {
    justify-self: end;
    min-width: 134px;
    padding: 0 16px;
    border: 1px solid rgba(112, 213, 255, 0.22);
    border-radius: 9px;
    background: rgba(8, 17, 25, 0.82);
    color: var(--gun-gold);
}

.gun-home-shell {
    display: grid;
    gap: 10px;
}

.gun-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(245px, 330px);
    gap: 20px;
    min-height: 200px;
    padding: 22px 26px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 10, 15, 0.94), rgba(5, 10, 15, 0.58)),
        radial-gradient(circle at 57% 45%, rgba(232, 185, 35, 0.16), transparent 27%),
        linear-gradient(135deg, rgba(13, 31, 45, 0.92), rgba(6, 10, 15, 0.96));
}

.gun-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.gun-home-hero-copy,
.gun-home-overview-card {
    position: relative;
    z-index: 1;
}

.gun-kicker,
.gun-home-panel-header h2,
.gun-home-overview-card h2 {
    color: var(--gun-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.gun-kicker {
    font-size: 13px;
}

.gun-home-hero h1 {
    margin: 7px 0 7px;
    color: #f5f7fb;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.14);
}

.gun-home-hero p {
    max-width: 560px;
    margin: 0;
    color: #c7d0dc;
    font-size: 14px;
    line-height: 1.45;
}

.gun-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.gun-primary-button,
.gun-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gun-primary-button {
    color: #021014;
    background: linear-gradient(180deg, #48f8ff, #0ebccc);
    box-shadow: 0 0 20px rgba(232, 185, 35, 0.22);
}

.gun-secondary-button {
    color: #d9e7ef;
    border: 1px solid rgba(112, 213, 255, 0.24);
    background: rgba(4, 12, 18, 0.62);
}

.gun-home-overview-card,
.gun-home-stat-card,
.gun-home-panel {
    border: 1px solid var(--gun-border);
    background: linear-gradient(180deg, rgba(10, 20, 29, 0.92), rgba(6, 12, 18, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 12px 30px rgba(0,0,0,0.22);
}

.gun-home-overview-card {
    align-self: center;
    padding: 16px;
    border-radius: 10px;
}

.gun-home-overview-card h2,
.gun-home-panel-header h2 {
    margin: 0;
    font-size: 12px;
}

.gun-home-overview-card dl,
.gun-featured-stats {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
}

.gun-home-overview-card dl div,
.gun-featured-stats div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(112, 213, 255, 0.12);
    font-size: 12px;
}

.gun-home-overview-card dl div:last-child,
.gun-featured-stats div:last-child {
    border-bottom: 0;
}

.gun-home-overview-card dt,
.gun-featured-stats dt {
    color: var(--gun-muted);
}

.gun-home-overview-card dd,
.gun-featured-stats dd {
    margin: 0;
    color: var(--gun-text);
}

.gun-home-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.gun-home-stat-card {
    min-height: 76px;
    padding: 13px 15px;
    border-radius: 9px;
}

.gun-home-stat-label {
    display: block;
    color: var(--gun-muted);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.gun-home-stat-card strong {
    display: block;
    margin: 6px 0 2px;
    color: var(--gun-gold);
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1;
}

.gun-home-stat-card:nth-child(2) strong,
.gun-home-stat-card:nth-child(4) strong {
    color: var(--gun-orange);
}

.gun-home-stat-card small {
    color: var(--gun-muted);
    font-size: 11px;
}

.gun-home-content-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(330px, 1.15fr) minmax(280px, 0.95fr);
    gap: 8px;
}

.gun-home-panel {
    min-height: 235px;
    padding: 14px 16px;
    border-radius: 9px;
}

.gun-home-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(112, 213, 255, 0.15);
}

.gun-home-panel-header a,
.gun-home-panel-header span {
    color: var(--gun-gold);
    font-size: 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.gun-home-player-list,
.gun-home-activity-list {
    display: grid;
    gap: 2px;
}

.gun-home-player-row,
.gun-home-activity-row {
    display: grid;
    align-items: center;
    min-height: 34px;
    color: var(--gun-text);
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(112, 213, 255, 0.09);
}

.gun-home-player-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
}

.gun-home-player-rank {
    color: var(--gun-orange);
    font-size: 18px;
    font-weight: 900;
}

.gun-home-player-name {
    color: var(--gun-gold);
    font-weight: 800;
}

.gun-home-player-kills,
.gun-home-activity-meta,
.gun-home-activity-time {
    color: var(--gun-muted);
    font-size: 10px;
}

.gun-home-activity-row {
    grid-template-columns: 54px 26px minmax(0, 1fr) auto;
    gap: 8px;
}

.gun-home-activity-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(232, 185, 35, 0.38);
    border-radius: 999px;
    color: var(--gun-gold);
    font-size: 11px;
}

.gun-home-activity-text strong {
    color: var(--gun-orange);
}

.gun-home-activity-text em {
    color: var(--gun-red);
    font-style: normal;
}

.gun-featured-player-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0 12px;
}

.gun-featured-avatar {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border: 2px solid rgba(232, 185, 35, 0.42);
    border-radius: 999px;
    color: var(--gun-gold);
    background: radial-gradient(circle, rgba(37,244,255,0.20), rgba(5,10,15,0.95));
    font-size: 24px;
    font-weight: 900;
}

.gun-featured-player-card h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
}

.gun-featured-player-card p,
.gun-empty-note {
    margin: 0;
    color: var(--gun-muted);
    font-size: 12px;
}

@media (min-width: 1500px) {
    .gun-home-shell {
        max-width: 1780px;
        margin: 0 auto;
    }
}

@media (max-width: 1100px) {
    .gun-site-header,
    .gun-home-hero,
    .gun-home-content-grid {
        grid-template-columns: 1fr;
    }

    .gun-site-header {
        justify-items: stretch;
    }

    .gun-site-nav,
    .gun-site-admin-link {
        justify-self: stretch;
    }

    .gun-site-nav-link,
    .gun-site-admin-link {
        flex: 1;
    }

    .gun-home-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .gun-site-header {
        padding: 10px;
        gap: 10px;
    }

    .gun-site-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .gun-site-nav-link {
        min-width: 0;
        padding: 0 12px;
    }

    .gun-home-hero {
        padding: 18px;
    }

    .gun-home-stat-grid,
    .gun-home-player-row,
    .gun-home-activity-row {
        grid-template-columns: 1fr;
    }

    .gun-home-activity-meta,
    .gun-home-player-kills {
        justify-self: start;
    }
}
