:root {
    --bg: #050812;
    --bg-soft: #081022;
    --panel: rgba(10, 18, 38, .78);
    --panel-strong: rgba(11, 23, 50, .94);
    --line: rgba(99, 209, 255, .22);
    --line-strong: rgba(0, 213, 255, .46);
    --text: #f5f7ff;
    --muted: #9ca8bd;
    --muted-2: #66758f;
    --blue: #00a3ff;
    --cyan: #00d5ff;
    --purple: #7a2cff;
    --green: #00ff88;
    --red: #ff3b66;
    --yellow: #ffd166;
    --shadow: 0 24px 70px rgba(0, 0, 0, .38);
    --radius: 24px;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.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;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 24%, rgba(0, 213, 255, .08), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(122, 44, 255, .10), transparent 38%),
        linear-gradient(180deg, #010308 0%, #040711 52%, #010208 100%);
}
.lobby-bg-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #020611;
    opacity: 1;
}
.lobby-bg-image {
    position: absolute;
    inset: -1vh -1vw;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.004);
    transition: opacity 2100ms ease-in-out;
    will-change: opacity;
    filter: saturate(1.04) contrast(1.08) brightness(.86);
}
.lobby-bg-image.is-visible {
    opacity: .82;
    animation: mrLobbyImageHold 30s ease-in-out infinite alternate;
}
.site-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 213, 255, .035) 0%, transparent 28%, rgba(1, 3, 10, .20) 55%, transparent 76%, rgba(122, 44, 255, .045) 100%),
        linear-gradient(180deg, rgba(1,3,10,.42) 0%, rgba(1,3,10,.18) 34%, rgba(1,3,10,.58) 100%),
        radial-gradient(ellipse at 50% 58%, transparent 0%, rgba(0,0,0,.06) 48%, rgba(0,0,0,.50) 100%);
}
.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: .12;
    background:
        linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.010) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 100%, rgba(0, 213, 255, .045), transparent 38%);
    background-size: 74px 74px, 74px 74px, 100% 100%;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.44), rgba(0,0,0,.28) 58%, rgba(0,0,0,.10));
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(1,3,10,.08), transparent 22%, transparent 66%, rgba(0,0,0,.26)),
        radial-gradient(ellipse at 50% 96%, rgba(0, 213, 255, .035), transparent 42%);
}
body.is-lite .lobby-bg-stage {
    opacity: 1;
}
body.is-lite .lobby-bg-image {
    transform: scale(1.002);
    transition-duration: 2100ms;
    animation: none;
    filter: saturate(1.02) contrast(1.07) brightness(.86);
}
body.is-lite .lobby-bg-image.is-visible {
    opacity: .82;
}
body.is-lite .site-bg::after {
    opacity: .10;
}
body.is-static-bg .lobby-bg-stage {
    background-image: url('../img/lobby/lobby-lite.webp');
    background-size: cover;
    background-position: center;
    opacity: .82;
    filter: saturate(1.02) contrast(1.07) brightness(.86);
}
body.is-static-bg .lobby-bg-image {
    display: none;
}
body.is-full-bg .site-bg {
    background:
        radial-gradient(circle at 18% 22%, rgba(0, 213, 255, .08), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(122, 44, 255, .10), transparent 34%),
        linear-gradient(180deg, #02040a 0%, #050812 54%, #01030a 100%);
}
@keyframes mrLobbyImageHold {
    0% { transform: scale(1.004) translate3d(-.08vw, -.05vh, 0); }
    100% { transform: scale(1.014) translate3d(.08vw, .05vh, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .lobby-bg-image {
        transition: opacity 800ms ease;
        animation: none !important;
        transform: none !important;
    }
}

.topbar {
    width: min(var(--max), calc(100% - 32px));
    margin: 18px auto 0;
    padding: 12px;
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(3, 7, 17, .78);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 54px rgba(0,0,0,.26);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.brand img { width: 42px; height: 42px; }
.brand-icon { border-radius: 12px; object-fit: cover; box-shadow: 0 0 22px rgba(0, 163, 255, .22); }
.brand strong { display: block; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav a {
    color: var(--muted);
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    transition: .18s ease;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(0, 213, 255, .08); }
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
}
.language-switcher a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    padding: 7px 9px;
    border-radius: 999px;
    transition: .18s ease;
}
.language-switcher a:hover, .language-switcher a.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(0,163,255,.35), rgba(122,44,255,.35));
}
.nav-toggle { display: none; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.075); }
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-color: transparent;
    box-shadow: 0 0 28px rgba(0, 163, 255, .26);
    font-weight: 800;
}
.btn-ghost { background: rgba(255,255,255,.045); }
.btn-discord {
    background: linear-gradient(135deg, rgba(0, 213, 255, .14), rgba(0, 163, 255, .26));
    border-color: rgba(0, 213, 255, .48);
    box-shadow: 0 0 24px rgba(0, 213, 255, .14);
    font-weight: 800;
}
.btn-discord:hover { border-color: rgba(0, 213, 255, .72); }

.section { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.hero { padding-top: 78px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 34px; align-items: center; }
.hero-copy { position: relative; }
.hero-logo-wrap {
    position: relative;
    width: min(760px, 100%);
    margin: -48px 0 -18px -48px;
    pointer-events: none;
}
.hero-logo-wrap::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 22%;
    bottom: 18%;
    height: 16px;
    border-radius: 999px;
    background: rgba(0, 213, 255, .34);
    filter: blur(18px);
}
.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 48px rgba(0, 163, 255, .20));
}
.status-logo-wrap {
    position: relative;
    z-index: 1;
    margin: -14px auto 10px;
    max-width: 420px;
    pointer-events: none;
}
.status-logo-wrap::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 12%;
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 213, 255, .30);
    filter: blur(16px);
}
.status-logo-wrap img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 40px rgba(0, 163, 255, .18));
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
h1, h2, h3, p { margin-top: 0; }
h1 {
    font-size: clamp(46px, 8vw, 96px);
    line-height: .92;
    letter-spacing: -.06em;
    margin-bottom: 24px;
}
h1 span, .gradient-text { background: linear-gradient(135deg, #fff, var(--cyan), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c7d3e8; font-size: clamp(17px, 2vw, 22px); max-width: 690px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 18px; }
.hero-note { color: var(--muted-2); font-size: 13px; }

.status-orb {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(8, 16, 34, .92), rgba(11, 21, 45, .66));
    box-shadow: var(--shadow);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.status-orb::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 213, 255, .26), transparent 70%);
    filter: blur(6px);
}

.status-compact {
    min-height: 370px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 22px;
}
.status-heading {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    justify-items: center;
}
.status-heading small {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px;
    font-weight: 800;
}
.players-panel {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: radial-gradient(circle at 50% 0%, rgba(0, 213, 255, .14), rgba(10, 18, 38, .78) 55%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 22px 52px rgba(0,0,0,.22);
}
.players-panel small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .16em;
}
.players-panel strong {
    display: block;
    margin: 10px 0 4px;
    font-size: clamp(48px, 6vw, 72px);
    line-height: .95;
    letter-spacing: -.06em;
}
.players-panel span { color: var(--muted); font-size: 14px; }
.status-caption {
    position: relative;
    z-index: 1;
    color: var(--muted-2);
    font-size: 13px;
    margin: 0;
}
.status-caption strong { color: #c7d3e8; }

.server-pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(0,255,136,.28);
    border-radius: 999px;
    padding: 8px 12px;
    color: #b8ffdb;
    background: rgba(0,255,136,.08);
    font-size: 13px;
    font-weight: 800;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
.dot.offline { background: var(--red); box-shadow: 0 0 18px var(--red); }
.status-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.metric, .card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 20px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}
.metric small, .card small { color: var(--muted); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.metric strong { display: block; font-size: 30px; line-height: 1; margin-top: 8px; }
.metric span { color: var(--muted); font-size: 13px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1; margin: 0; letter-spacing: -.04em; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 640px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mode-card { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.mode-card h3 { font-size: 24px; margin-bottom: 8px; }
.mode-card p { color: var(--muted); font-size: 14px; }
.mode-tag { color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: .15em; font-weight: 900; }
.mode-icon {
    width: 54px; height: 54px; border-radius: 18px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(0,213,255,.18), rgba(122,44,255,.18));
    border: 1px solid var(--line);
    font-weight: 900;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: rgba(8,16,34,.68); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; background: rgba(255,255,255,.035); }
td { color: #e8eefc; }
tr:last-child td { border-bottom: 0; }
.rank { color: var(--cyan); font-weight: 900; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--cyan); background: rgba(0,213,255,.07); font-weight: 800; font-size: 12px; }
.badge.green { color: #b8ffdb; border-color: rgba(0,255,136,.28); background: rgba(0,255,136,.08); }
.badge.yellow { color: #ffe4a1; border-color: rgba(255,209,102,.28); background: rgba(255,209,102,.08); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack { display: grid; gap: 16px; }
.update-card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.update-card time { color: var(--cyan); font-weight: 900; }
.update-card h3 { margin-bottom: 5px; }
.update-card p { color: var(--muted); margin: 0; }

.arena-list { display: grid; gap: 10px; }
.arena-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.arena-item:last-child { border-bottom: 0; }
.arena-item strong { display: block; }
.arena-item small { color: var(--muted); }

.page-hero { padding-top: 70px; padding-bottom: 30px; }
.page-hero h1 { font-size: clamp(42px, 7vw, 78px); }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.rule-list { counter-reset: rules; display: grid; gap: 12px; }
.rule-list li { list-style: none; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: #dbe6f7; }
.rule-list li::before { counter-increment: rules; content: counter(rules, decimal-leading-zero); color: var(--cyan); font-weight: 900; margin-right: 12px; }

.footer {
    width: min(var(--max), calc(100% - 32px));
    margin: 32px auto 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(3,7,17,.74);
    color: var(--muted);
    overflow: hidden;
}
.footer-banner {
    border: 1px solid rgba(99, 209, 255, .20);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
.footer-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 20px 6px 4px;
}
.footer strong { color: var(--text); }
.footer p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-links a {
    color: var(--cyan);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255,255,255,.035);
}
.footer-links a:hover { color: var(--text); border-color: var(--line-strong); }
.footer-links a:nth-child(1), .footer-links a:nth-child(2) {
    color: var(--text);
    border-color: rgba(0, 213, 255, .42);
    background: linear-gradient(135deg, rgba(0, 163, 255, .16), rgba(122, 44, 255, .13));
}
.footer-links a:nth-child(1) { font-weight: 800; }

@media (max-width: 980px) {
    .hero, .split, .content-grid { grid-template-columns: 1fr; }
    .desktop-join { display: none; }
    .topbar { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; margin-left: auto; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); border-radius: 999px; padding: 10px 14px; }
    .nav { display: none; order: 5; width: 100%; justify-content: flex-start; overflow-x: auto; padding-top: 8px; }
    .nav.open { display: flex; }
    .language-switcher { margin-left: auto; }
}
@media (max-width: 640px) {
    .section { padding: 50px 0; }
    .hero { padding-top: 46px; }
    .hero-logo-wrap { width: calc(100% + 48px); margin: -32px 0 -12px -24px; }
    .status-compact { min-height: 280px; }
    .footer-banner img { height: 96px; }
    .cards, .status-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; align-items: flex-start; }
    .update-card { grid-template-columns: 1fr; }
    .brand { min-width: 0; }
}

/* v0.7 integrations */
.status-players-only { min-height: 430px; }
.players-panel-main { width: min(420px, 100%); padding: 34px 24px; }
.status-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #c7d3e8; font-weight: 800; }
.discord-card { display: flex; flex-direction: column; gap: 18px; }
.discord-status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.discord-status-row > strong { color: #e8eefc; font-size: 18px; }
.discord-pill { border-color: rgba(88, 101, 242, .38); background: rgba(88, 101, 242, .14); color: #d7dcff; }
.discord-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.discord-hint { color: var(--muted-2); font-size: 13px; margin: -4px 0 0; }
.updates-wide .stack { grid-template-columns: repeat(3, 1fr); }
.updates-wide .update-card { grid-template-columns: 1fr; }
.footer-banner img { height: 112px; }

@media (max-width: 980px) {
    .updates-wide .stack { grid-template-columns: 1fr; }
    .status-players-only { min-height: 320px; }
}
@media (max-width: 640px) {
    .discord-metrics { grid-template-columns: 1fr; }
    .players-panel-main { padding: 28px 18px; }
    .footer-banner img { height: 82px; }
}

/* v1.1 home refinement */
.top-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 11px;
    border: 1px solid rgba(0,255,136,.20);
    border-radius: 999px;
    background: rgba(0,255,136,.055);
    color: #b8ffdb;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.top-status span { display: grid; gap: 0; line-height: 1.05; }
.top-status strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}
.top-status small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.top-status .dot { width: 8px; height: 8px; }

.hero.hero-home {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    min-height: min(760px, calc(100vh - 118px));
    padding-top: 92px;
    padding-bottom: 82px;
    text-align: center;
}
.hero-centered {
    width: min(900px, 100%);
    display: grid;
    justify-items: center;
}
.hero-home .eyebrow { justify-content: center; }
.hero-home .lead {
    max-width: 760px;
    margin: 10px auto 0;
    color: #cbd6e8;
}
.hero-home .hero-actions {
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 14px;
}
.hero-home .hero-logo-wrap {
    width: min(820px, 100%);
    margin: -36px auto -6px;
    pointer-events: auto;
    cursor: default;
    isolation: isolate;
    transition: transform .26s ease, filter .26s ease;
}
.hero-logo-interactive::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 16% 6% 14%;
    border-radius: 28px;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.04) 34%, rgba(255,255,255,.34) 48%, rgba(0,213,255,.20) 54%, transparent 70%);
    opacity: 0;
    transform: translateX(-115%) skewX(-14deg);
}
.hero-logo-interactive:hover { transform: translateY(-5px) scale(1.025); }
.hero-logo-interactive:hover::after {
    left: 8%;
    right: 8%;
    background: rgba(0, 213, 255, .44);
    filter: blur(22px);
}
.hero-logo-interactive:hover::before { animation: logoShine .95s ease forwards; }
.hero-logo-interactive:hover .hero-logo {
    filter: drop-shadow(0 24px 64px rgba(0, 213, 255, .32)) drop-shadow(0 0 20px rgba(122, 44, 255, .20));
}
.hero-live-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7d3e8;
    font-size: 13px;
    font-weight: 800;
    opacity: .82;
    padding: 7px 12px;
    border: 1px solid rgba(0,255,136,.18);
    border-radius: 999px;
    background: rgba(0,255,136,.045);
}
.hero-live-mini .dot { width: 7px; height: 7px; }

@keyframes logoShine {
    0% { opacity: 0; transform: translateX(-115%) skewX(-14deg); }
    18% { opacity: .72; }
    100% { opacity: 0; transform: translateX(115%) skewX(-14deg); }
}

@media (max-width: 980px) {
    .top-status { order: 4; }
    .hero.hero-home { min-height: auto; padding-top: 58px; padding-bottom: 58px; }
    .hero-home .hero-logo-wrap { width: min(680px, 100%); margin-top: -26px; }
}
@media (max-width: 720px) {
    .top-status { display: none; }
}
@media (max-width: 640px) {
    .hero-home .lead { font-size: 17px; }
    .hero-home .hero-actions { width: 100%; }
    .hero-home .hero-actions .btn { flex: 1 1 100%; }
    .hero-live-mini { margin-top: 2px; }
}

/* v1.2 arena status + server page refinement */
.arena-count {
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: .02em;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 22px rgba(0,0,0,.12);
}
.arena-load-empty { color: #9eeec4; border-color: rgba(0,255,136,.18); background: rgba(0,255,136,.045); }
.arena-load-low { color: #b8ffdb; border-color: rgba(0,255,136,.32); background: rgba(0,255,136,.09); }
.arena-load-mid { color: #d6ff9c; border-color: rgba(151,255,109,.34); background: rgba(151,255,109,.10); }
.arena-load-yellow { color: #ffe7a1; border-color: rgba(255,209,102,.42); background: rgba(255,209,102,.12); }
.arena-load-orange { color: #ffc082; border-color: rgba(255,139,66,.48); background: rgba(255,139,66,.14); }
.arena-load-red { color: #ff9db0; border-color: rgba(255,59,102,.54); background: rgba(255,59,102,.16); }
.arena-item .arena-count { flex: 0 0 auto; }

.server-hero-refined { padding-bottom: 18px; }
.server-hero-refined .lead { max-width: 820px; }
.server-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
    gap: 18px;
    align-items: stretch;
    padding-top: 28px;
}
.compact-head { margin-bottom: 18px; }
.server-identity-card,
.why-card,
.server-note-card { min-height: 100%; }
.server-status-grid { margin-top: 0; }
.server-address {
    font-size: clamp(18px, 2vw, 24px) !important;
    letter-spacing: -.02em;
    word-break: break-word;
}
.server-version-pair { font-size: clamp(22px, 3vw, 32px) !important; }
.why-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 10% 0%, rgba(0,213,255,.15), transparent 35%),
        linear-gradient(145deg, rgba(10,18,38,.86), rgba(12,16,46,.76));
}
.why-card h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.02; margin: 10px 0 12px; }
.why-card p,
.server-note-card p { color: var(--muted); }
.why-actions { margin-top: 10px; }
.server-content-grid { padding-top: 18px; }
.feature-list .arena-item { padding: 14px 0; }
.server-note-card { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.server-note-card .btn { width: fit-content; }

@media (max-width: 980px) {
    .server-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .arena-count { min-width: 38px; height: 30px; font-size: 14px; }
    .server-status-grid { grid-template-columns: 1fr; }
}

/* v1.4 - public cleanup for live arena/discord section */
.section-head-clean { margin-bottom: 18px; }
.discord-card .discord-status-row { margin-top: 4px; }
.discord-card .btn { margin-top: 18px; }

/* v1.13 - public play guide */
.play-hero {
    align-items: stretch;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
}
.play-hero .lead { max-width: 780px; }
.play-connect-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background:
        radial-gradient(circle at 20% 0%, rgba(0,213,255,.14), transparent 35%),
        linear-gradient(145deg, rgba(10,18,38,.86), rgba(12,16,46,.70));
}
.connect-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.connect-status-pill {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 7px 12px;
    white-space: nowrap;
}
.play-connect-card h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.02;
    margin: 10px 0 0;
}
.play-connect-card p,
.guide-card p,
.feature-card p,
.gameplay-card p { color: var(--muted); }
.connect-address {
    display: block;
    margin-top: 2px;
    padding: 0;
    border: 1px solid rgba(0,213,255,.22);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
}
.connect-address code {
    display: block;
    width: 100%;
    padding: 17px 18px;
    color: #dff8ff;
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 900;
    word-break: break-word;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.connect-address code:hover,
.connect-address code:focus-visible {
    color: #ffffff;
    background: rgba(0,213,255,.08);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(0,213,255,.16);
}
.connect-hint {
    margin: -6px 0 0;
    color: var(--muted-2) !important;
    font-size: 13px;
}
.connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2px;
}
.copy-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
.play-requirements .mode-card { min-height: 290px; }
.play-guide-grid { align-items: stretch; }
.guide-card { min-height: 100%; }
.steps-list {
    counter-reset: playSteps;
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
}
.steps-list li {
    list-style: none;
    position: relative;
    padding: 15px 15px 15px 58px;
    border: 1px solid rgba(99,209,255,.17);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    color: #dbe6f7;
}
.steps-list li::before {
    counter-increment: playSteps;
    content: counter(playSteps, decimal-leading-zero);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    border: 1px solid rgba(0,213,255,.28);
    background: rgba(0,213,255,.08);
    font-weight: 950;
    font-size: 12px;
}
.path-box {
    overflow-x: auto;
    padding: 14px;
    border: 1px solid rgba(0,213,255,.22);
    border-radius: 16px;
    background: rgba(0,0,0,.24);
    color: #dff8ff;
}
.path-box code { white-space: pre; font-weight: 850; }
.panel-feature-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-card h3 { font-size: 23px; margin: 10px 0 8px; }
.gameplay-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 22px;
    align-items: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(122,44,255,.16), transparent 34%),
        radial-gradient(circle at 0% 0%, rgba(0,213,255,.14), transparent 34%),
        rgba(10,18,38,.78);
}
.gameplay-card h2 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    margin: 10px 0 12px;
}
.gameplay-list {
    display: grid;
    gap: 10px;
}
.gameplay-list div {
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}
.gameplay-list strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}
.gameplay-list span {
    color: var(--muted);
    font-size: 14px;
}
.play-final-actions {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .play-hero,
    .gameplay-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .connect-card-top { flex-direction: column; }
    .connect-actions .btn { width: 100%; justify-content: center; }
    .copy-btn { width: 100%; }
    .steps-list li { padding-left: 52px; }
}

/* v1.14 - clean install guidance copy */
.clean-install-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 18px 0 0;
}
.clean-install-list li {
    list-style: none;
    position: relative;
    padding: 14px 15px 14px 44px;
    border: 1px solid rgba(99,209,255,.17);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    color: #dbe6f7;
}
.clean-install-list li::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 21px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(0,213,255,.55);
}

/* v1.16 - header fit and randomized background start */
.topbar {
    width: min(1320px, calc(100% - 32px));
    gap: 14px;
    overflow: visible;
}
.topbar .brand {
    flex: 0 0 auto;
    min-width: 156px;
}
.topbar .nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: 2px;
}
.topbar .nav a {
    padding-inline: 10px;
}
.top-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: max-content;
}
.top-actions .language-switcher,
.top-actions .top-status,
.top-actions .desktop-join {
    flex: 0 0 auto;
}
.top-actions .desktop-join {
    min-width: 154px;
    padding-inline: 22px;
}

@media (max-width: 1240px) {
    .topbar {
        width: min(1220px, calc(100% - 24px));
        gap: 10px;
        padding: 10px;
    }
    .topbar .brand { min-width: 142px; }
    .brand img { width: 38px; height: 38px; }
    .brand strong { font-size: 14px; }
    .brand small { font-size: 10px; letter-spacing: .14em; }
    .topbar .nav a { font-size: 13px; padding: 9px 8px; }
    .top-actions { gap: 8px; }
    .top-actions .desktop-join { min-width: 144px; padding-inline: 18px; }
    .top-actions .btn { min-height: 42px; }
    .language-switcher a { padding: 6px 8px; }
}

@media (max-width: 1080px) {
    .top-actions .top-status { display: none; }
    .topbar .nav a { padding-inline: 7px; }
}

@media (max-width: 980px) {
    .top-actions {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        order: 5;
    }
    .top-actions .top-status { display: inline-flex; }
    .top-actions .desktop-join { display: none; }
    .language-switcher { margin-left: 0; }
}

@media (max-width: 720px) {
    .top-actions .top-status { display: none; }
    .top-actions { justify-content: flex-end; }
}

/* v1.20 - Season ranking pages */
.ranking-hero { padding-bottom: 22px; }
.ranking-hero .lead,
.season-hero .lead { max-width: 840px; }
.ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.ranking-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(0,213,255,.24);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(8,16,34,.62);
    font-weight: 850;
    letter-spacing: .02em;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.ranking-tabs a:hover,
.ranking-tabs a.active {
    color: var(--text);
    border-color: rgba(0,213,255,.58);
    background: linear-gradient(135deg, rgba(0,163,255,.20), rgba(122,44,255,.18));
    transform: translateY(-1px);
}
.ranking-section,
.season-section { padding-top: 22px; }
.ranking-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.ranking-metric {
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ranking-metric strong {
    font-size: clamp(24px, 2.8vw, 38px);
    line-height: 1;
}
.ranking-metric span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}
.ranking-note {
    margin-bottom: 16px;
    padding: 18px 20px;
}
.ranking-note p {
    margin: 4px 0 0;
    color: var(--muted);
}
.ranking-table-wrap { background: rgba(5,10,22,.78); }
.ranking-table th,
.ranking-table td { white-space: nowrap; }
.ranking-empty {
    text-align: center;
    color: var(--muted);
    padding: 34px !important;
}
.season-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.season-board {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.season-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.season-board-head h3 {
    margin: 0;
    font-size: 20px;
}
.season-board-head a {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.season-rank-row {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}
.season-rank-row .rank {
    color: var(--cyan);
    font-weight: 950;
}
.season-rank-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.season-rank-row small {
    grid-column: 2;
    color: var(--muted);
    margin-top: -8px;
}
.recent-match-row { grid-template-columns: 1fr; }
.recent-match-row small { grid-column: 1; margin-top: -4px; }
.muted-line { color: var(--muted); margin: 6px 0 0; }
.clans-season-section .ranking-stat-grid { margin-bottom: 18px; }

@media (max-width: 980px) {
    .ranking-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .season-board-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ranking-stat-grid { grid-template-columns: 1fr; }
    .ranking-tabs a { flex: 1 1 auto; }
    .season-rank-row { grid-template-columns: 38px 1fr; }
}


/* Profile upload foundation v1.21 */
.account-hero.compact { padding-bottom: 24px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; align-items: start; }
.account-card { padding: 24px; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; letter-spacing: .03em; }
.form-stack input, .form-stack textarea { width: 100%; border: 1px solid rgba(125, 211, 252, .22); background: rgba(2, 6, 23, .70); color: var(--text); border-radius: 12px; padding: 12px 14px; outline: none; }
.form-stack textarea { resize: vertical; }
.form-stack input:focus, .form-stack textarea:focus { border-color: rgba(34, 211, 238, .70); box-shadow: 0 0 0 3px rgba(34, 211, 238, .10); }
.checkbox-row { grid-template-columns: auto 1fr; align-items: center; }
.checkbox-row input { width: auto; }
.notice { border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.notice.error { border: 1px solid rgba(248, 113, 113, .35); background: rgba(127, 29, 29, .28); color: #fecaca; }
.notice.success { border: 1px solid rgba(52, 211, 153, .35); background: rgba(6, 95, 70, .22); color: #bbf7d0; }
.subtle-list ul { margin: 14px 0; padding-left: 18px; color: var(--muted); }
.subtle-list li { margin-bottom: 10px; }
.code-card { border: 1px solid rgba(125, 211, 252, .22); border-radius: 14px; padding: 14px; background: rgba(2, 6, 23, .74); color: #7dd3fc; font-weight: 900; letter-spacing: .08em; }
.profile-editor-hero, .public-profile { margin: 96px auto 24px; max-width: 1120px; overflow: hidden; padding: 0; border-color: color-mix(in srgb, var(--accent), transparent 55%); }
.profile-banner { min-height: 220px; background-size: cover; background-position: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.profile-identity { display: flex; gap: 20px; align-items: center; padding: 0 24px 24px; margin-top: -48px; }
.profile-identity h1 { margin: 0; font-size: clamp(30px, 4vw, 56px); }
.profile-identity p { color: var(--muted); margin: 4px 0 0; }
.profile-avatar { width: 112px; height: 112px; object-fit: cover; border-radius: 28px; border: 3px solid color-mix(in srgb, var(--accent), white 20%); background: rgba(2,6,23,.9); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.profile-avatar.large { width: 140px; height: 140px; border-radius: 34px; }
.profile-identity .btn { margin-left: auto; }
.editor-grid { margin-top: 16px; }
.media-form { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.public-profile { margin-top: 110px; }
.profile-banner.public { min-height: 300px; }
.profile-identity.public { align-items: flex-end; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,.08); }
.profile-stat-grid div { background: rgba(2, 6, 23, .78); padding: 18px; }
.profile-stat-grid small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.profile-stat-grid strong { display: block; margin-top: 8px; font-size: 26px; color: color-mix(in srgb, var(--accent), white 30%); }
@media (max-width: 900px) { .account-grid, .profile-stat-grid { grid-template-columns: 1fr; } .profile-identity { align-items: flex-start; flex-direction: column; } .profile-identity .btn { margin-left: 0; } }


/* v1.21.3 - account password login + recovery email polish */
.compact-form { margin-bottom: 14px; }
.account-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1120px;
    margin-top: 0;
}
.account-mini-card {
    padding: 18px 20px;
    border-color: rgba(125, 211, 252, .18);
}
.account-mini-card small {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    margin-bottom: 7px;
}
.account-mini-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}
.account-mini-card p { color: var(--muted); margin: 0; }
.account-mini-card.ok { border-color: rgba(52, 211, 153, .30); background: linear-gradient(145deg, rgba(6, 95, 70, .16), rgba(2, 6, 23, .78)); }
.account-mini-card.ok strong { color: #86efac; }
.account-mini-card.warn { border-color: rgba(251, 191, 36, .34); background: linear-gradient(145deg, rgba(146, 64, 14, .16), rgba(2, 6, 23, .78)); }
.account-mini-card.warn strong { color: #fde68a; }
.tiny-note { margin-top: -8px; font-size: 13px; }
@media (max-width: 900px) { .account-status-grid { grid-template-columns: 1fr; } }

/* MR Club 1.21.4 - password recovery */
.narrow-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr); }
.form-link { display: inline-flex; margin-top: -4px; color: var(--cyan); font-weight: 800; letter-spacing: .02em; }
.form-link:hover { color: var(--text); }
.account-card .tiny-note { font-size: 13px; line-height: 1.6; }
@media (max-width: 980px) { .narrow-grid { grid-template-columns: 1fr; } }

/* Clan War result cards - mr_site1.21.9 */
.panel-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 20px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}
.grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.compact-grid { gap: 12px; }
.code-block {
    white-space: pre-wrap;
    margin: 8px 0 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(3, 8, 18, .58);
    color: #dbe6f7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
}
.badge.red { color: #ffb4b4; border-color: rgba(255,95,95,.34); background: rgba(255,95,95,.10); }
@media (max-width: 820px) {
    .grid.two { grid-template-columns: 1fr; }
}

/* Clan War compact cards - mr_site1.21.10 */
.cw-card-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.cw-match-card {
    border: 1px solid var(--line);
    background: rgba(5, 10, 22, .78);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    overflow: hidden;
}
.cw-match-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 120px;
    gap: 14px;
    align-items: center;
}
.cw-match-index {
    color: var(--cyan);
    font-weight: 900;
    font-size: 17px;
}
.cw-match-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
}
.cw-match-title strong {
    font-size: 17px;
    line-height: 1.3;
}
.cw-match-score {
    justify-self: end;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .03em;
}
.cw-match-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.cw-match-meta > div {
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    padding: 10px 12px;
    min-width: 0;
}
.cw-match-meta small {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
    margin-bottom: 5px;
}
.cw-match-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cw-details {
    margin-top: 12px;
}
.cw-details > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(0, 213, 255, .32);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(0, 213, 255, .065);
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}
.cw-details > summary::-webkit-details-marker { display: none; }
.cw-details[open] > summary {
    color: #ffffff;
    border-color: rgba(122,44,255,.45);
    background: linear-gradient(135deg, rgba(0,163,255,.20), rgba(122,44,255,.18));
}
.cw-detail-body {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.cw-detail-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
}
.cw-detail-summary span,
.cw-mvp-line {
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    padding: 8px 10px;
}
.cw-mvp-line { color: var(--text); }
.cw-team-detail {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(3,8,18,.38);
    padding: 12px;
}
.cw-team-detail h3 {
    margin: 0 0 10px;
    font-size: 16px;
}
.cw-player-table {
    display: grid;
    gap: 6px;
}
.cw-player-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.6fr) minmax(80px, .8fr) minmax(60px, .55fr) minmax(70px, .55fr);
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    font-size: 13px;
}
.cw-player-head {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    background: transparent;
}
@media (max-width: 820px) {
    .cw-match-main { grid-template-columns: 36px 1fr; }
    .cw-match-score { grid-column: 2; justify-self: start; }
    .cw-match-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cw-player-row { grid-template-columns: 1fr 72px 50px 58px; }
}

/* Clan War public history v2 - compact horizontal cards */
.cw-section-v2 { padding-top: 32px; }
.cw-card-list-v2 {
    display: grid;
    gap: 16px;
    margin-top: 10px;
}
.cw-match-card-v2 {
    --cw-winner: #00d5ff;
    position: relative;
    display: grid;
    grid-template-columns: 8px minmax(240px, 1.35fr) minmax(420px, 1.65fr) auto;
    gap: 0;
    align-items: stretch;
    border: 1px solid color-mix(in srgb, var(--cw-winner) 42%, rgba(255,255,255,.10));
    border-radius: 20px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--cw-winner) 18%, transparent), transparent 34%),
        rgba(5, 10, 22, .82);
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
    overflow: hidden;
}
.cw-card-accent-v2 {
    background: linear-gradient(180deg, var(--cw-winner), color-mix(in srgb, var(--cw-winner) 34%, #000));
    box-shadow: 0 0 26px color-mix(in srgb, var(--cw-winner) 72%, transparent);
}
.cw-card-summary-v2 {
    padding: 18px 20px;
    min-width: 0;
}
.cw-card-title-line-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #fff;
    font-weight: 900;
    line-height: 1.25;
}
.cw-card-title-line-v2 strong {
    font-size: 17px;
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cw-index-v2 {
    color: var(--cw-winner);
    font-weight: 900;
    margin-right: 4px;
}
.cw-vs-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(0,213,255,.25);
    background: rgba(0,213,255,.08);
    color: var(--cyan);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.cw-score-line-v2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: .04em;
    color: #fff;
    text-shadow: 0 0 14px color-mix(in srgb, var(--cw-winner) 34%, transparent);
}
.cw-card-meta-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 8px;
    align-content: center;
    padding: 14px 16px;
    border-left: 1px solid rgba(255,255,255,.06);
    border-right: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.025);
}
.cw-card-meta-v2 > div {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 9px 10px;
    background: rgba(0,0,0,.14);
}
.cw-card-meta-v2 small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.cw-card-meta-v2 strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cw-details-v2 {
    align-self: center;
    padding: 0 18px;
}
.cw-details-v2 > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--cw-winner) 42%, rgba(255,255,255,.18));
    background: color-mix(in srgb, var(--cw-winner) 12%, rgba(0,0,0,.16));
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}
.cw-details-v2 > summary::-webkit-details-marker { display: none; }
.cw-details-v2[open] {
    grid-column: 2 / -1;
    padding: 0 18px 18px 20px;
}
.cw-details-v2[open] > summary {
    margin-top: 0;
    color: var(--cyan);
    border-color: rgba(0,213,255,.45);
    background: rgba(0,213,255,.08);
}
.cw-detail-body-v2 {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.cw-detail-summary-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted);
}
.cw-detail-summary-v2 span,
.cw-mvp-line-v2 {
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    padding: 8px 10px;
}
.cw-mvp-line-v2 {
    color: var(--text);
    margin: 0 0 12px;
}
.cw-detail-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.cw-team-detail-v2 {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(3, 8, 18, .48);
    padding: 12px;
    min-width: 0;
}
.cw-team-detail-v2 h3 {
    margin: 0 0 10px;
    font-size: 16px;
}
.cw-player-table-v2 {
    display: grid;
    gap: 6px;
}
.cw-player-row-v2 {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) 64px 44px 58px 64px;
    gap: 8px;
    align-items: center;
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    font-size: 13px;
}
.cw-player-head-v2 {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    background: transparent;
}
.cw-player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}
@media (max-width: 1080px) {
    .cw-match-card-v2 { grid-template-columns: 8px 1fr; }
    .cw-card-meta-v2,
    .cw-details-v2 { grid-column: 2; }
    .cw-details-v2 { padding: 0 20px 18px; }
    .cw-card-meta-v2 { border-left: 0; border-right: 0; padding-top: 0; }
}
@media (max-width: 760px) {
    .cw-card-meta-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cw-detail-grid-v2 { grid-template-columns: 1fr; }
    .cw-player-row-v2 { grid-template-columns: minmax(120px, 1fr) 54px 34px 48px 54px; }
    .cw-card-title-line-v2 strong { max-width: 180px; }
}
