/*
 * WOS Kingdom - State 2643
 * Author: MooDeeY
 * Copyright (c) 2026 MooDeeY - WOS Kingdom - State 2643.
 */
.wos-profile{--bg0:transparent;--panel2:rgba(var(--night-rgb),.55);--panel-edge:rgba(var(--ui-line-rgb),.28);--chip:rgba(var(--ice-light-rgb),.10);--text:#f4faff;--muted:#deedfa;--faint:#c1def3;--accent:var(--title, #f5c451);--accent-dim:rgba(239, 190, 96, 0.45);--accent-glow:rgba(244, 199, 106, 0.16);--ember:#f0b45e;--inset-strong:rgba(0, 0, 0, 0.25);--radius:12px;--radius-sm:10px;--troop-column-width:clamp(360px, 28%, 720px);width:100%;max-width:none;margin:0;padding:0;color:var(--text);background:transparent;border:0;border-radius:0;overflow:visible;}
.wos-profile .gov-banner{display:flex;flex-wrap:wrap;align-items:stretch;gap:clamp(14px, 2vw, 24px);padding-block:26px;border-bottom:1px solid var(--panel-edge);margin-block-end:var(--sp-ref);}
.wos-profile .gov-banner-main{display:flex;align-items:center;gap:clamp(14px, 2vw, 24px);min-inline-size:0;flex:1 1 260px;}
.wos-profile .gov-portrait{display:flex;justify-content:center;flex:none;}
.wos-profile .avatar{width:120px;height:120px;border-radius:22px;background:var(--chip);border:2px solid var(--accent-dim);display:grid;place-items:center;font-size:2rem;font-weight:800;color:var(--accent);overflow:hidden;box-shadow:0 0 0 4px var(--accent-glow), 0 12px 28px var(--inset-strong);}
.wos-profile .avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.wos-profile .avatar img.is-crown{object-fit:contain;padding:14%;background:var(--inset-bg);}
.wos-profile .gov-identity{display:grid;justify-items:start;gap:9px;text-align:start;min-inline-size:0;}
.wos-profile .gov-name{margin:0;font-size:clamp(1.3rem, 2.5vw, 1.65rem);font-weight:850;letter-spacing:-0.02em;line-height:1.15;overflow-wrap:anywhere;color:var(--text);}
.wos-profile .gov-kingdom{color:var(--accent);font-size:0.86rem;font-weight:700;text-decoration:none;}
.wos-profile .gov-kingdom:hover{text-decoration:none;color:var(--gold);}
.wos-profile .gov-id{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 6px;min-inline-size:0;font-size:0.82rem;line-height:1.35;}
.wos-profile .gov-id-k{font-size:0.66rem;font-weight:800;letter-spacing:0.12em;text-transform:uppercase;color:var(--faint);}
.wos-profile .gov-id-v{overflow-wrap:anywhere;font-weight:700;color:var(--text);letter-spacing:0.02em;font-variant-numeric:tabular-nums;}
html[dir="rtl"] .wos-profile .gov-id-k{letter-spacing:0;}
.wos-profile .gov-alliance-card{--alliance-card-padding:clamp(12px, 1.1vw, 16px);position:relative;display:grid;grid-template-columns:auto minmax(0, 1fr);align-items:center;gap:8px clamp(8px, .9vw, 12px);min-inline-size:0;flex:0 0 var(--troop-column-width);padding:var(--alliance-card-padding);border-radius:var(--radius);background:var(--player-card-bg);box-shadow:inset 0 0 0 1px var(--inner-card-border);}
@media(min-width: 641px){.wos-profile .gov-alliance-card{grid-template-columns:auto minmax(0, 1fr) auto;}}
.wos-profile .gov-alliance-flag{inline-size:clamp(40px, 4.2vw, 48px);aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:var(--chip);border:1px solid var(--panel-edge);color:var(--accent);font-size:0.72rem;font-weight:800;letter-spacing:0.02em;}
.wos-profile .gov-alliance-flag img{width:100%;height:100%;object-fit:contain;display:block;}
.wos-profile .gov-alliance-label{font-size:0.7rem;font-weight:800;letter-spacing:0.14em;text-transform:uppercase;color:var(--muted);}
.wos-profile .gov-alliance-copy{min-inline-size:0;display:grid;gap:5px;}
.wos-profile .gov-alliance-headline{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;min-inline-size:0;}
.wos-profile .gov-alliance-tag{flex:none;color:var(--accent);font-weight:800;font-size:0.82rem;}
.wos-profile .gov-alliance-name{flex:1 1 5rem;min-inline-size:0;overflow-wrap:anywhere;font-weight:800;font-size:1rem;line-height:1.25;}
.wos-profile .gov-alliance-card:hover a.gov-alliance-headline,.wos-profile a.gov-alliance-headline:focus-visible{color:var(--gold)}
.wos-profile .gov-alliance-meta{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding-block-start:6px;border-block-start:1px solid var(--panel-edge);font-size:0.78rem;color:var(--muted);}
.wos-profile .gov-alliance-rank{color:var(--muted);font-weight:800;}
.wos-profile .gov-alliance-rank-v{font-weight:800;color:var(--ember);}
.wos-profile .gov-state-sticker{align-self:start;inline-size:60px;block-size:68px;margin-block-start:calc(-1 * var(--alliance-card-padding) - 7px);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:12px 3px 0;background:url("../images/state-ribbon-gold.webp") top center / contain no-repeat;color:#4a3200;font-size:0.58rem;font-weight:900;line-height:1;letter-spacing:0.09em;text-transform:uppercase;text-align:center;pointer-events:none;}
.wos-profile .gov-state-sticker-k{opacity:0.85;}
.wos-profile .gov-state-sticker-n{margin-block-start:3px;font-size:0.84rem;letter-spacing:0.01em;}
html[dir="rtl"] .wos-profile .gov-state-sticker{letter-spacing:0;}
@media(max-width: 640px){.wos-profile .gov-state-sticker{display:none;}}
.wos-profile .gov-pair{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));align-items:start;}
.wos-profile :is(.gov-pair,.gov-split)>.gov-section{margin-bottom:0;}
.wos-profile .gov-pair>.gov-section:first-child{grid-column:span 3;}
@media(max-width: 1000px){
.wos-profile .gov-pair{grid-template-columns:minmax(0, 1fr);}
.wos-profile .gov-pair>.gov-section:first-child{grid-column:auto;}
}
.wos-profile .gov-office-list{display:flex;flex-direction:column;}
.wos-profile .gov-office-item{--office-top-bar:#d6a858;position:relative;display:flex;align-items:center;border-radius:20px;border:1px solid rgba(239, 179, 60, 0.3);border-top:0;background:rgba(8, 24, 52, 0.45);box-shadow:var(--shadow2);overflow:hidden;transition:box-shadow var(--transition), border-color var(--transition-fast);}
.wos-profile .gov-office-item::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 3px 0 var(--office-top-bar);pointer-events:none;z-index:1;}
.wos-profile .gov-office-item::before{content:"";position:absolute;inset:-2px;background:radial-gradient(500px 250px at calc(50% - 40% * var(--gradient-direction)) 10%, var(--ice-dim), transparent 62%), radial-gradient(500px 250px at calc(50% + 40% * var(--gradient-direction)) 10%, var(--blue-dim), transparent 62%);pointer-events:none;opacity:0.7;}
.wos-profile .gov-office-item>*{position:relative;z-index:1;}
.wos-profile .gov-office-item-punishment{--office-top-bar:var(--ui-status-bad);border-color:rgba(255, 140, 140, 0.3);}
.wos-profile .gov-office-empty{--office-top-bar:#d6a858;position:relative;display:flex;align-items:center;justify-content:center;min-height:92px;border-radius:20px;border:1px solid rgba(239, 179, 60, 0.3);border-top:0;background:var(--inset-bg);box-shadow:var(--shadow2);overflow:hidden;}
.wos-profile .gov-office-empty::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 3px 0 var(--office-top-bar);pointer-events:none;z-index:1;}
.wos-profile .gov-fact .stat-missing{font-size:0.74rem;font-weight:700;color:var(--muted);letter-spacing:0.01em;}
.wos-profile .gov-fact.is-empty .v{color:var(--muted);}
.wos-profile .gov-office-empty>span{position:relative;z-index:1;max-width:100%;font-size:0.76rem;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;}
.wos-profile .gov-office-icon{display:grid;place-items:center;flex:0 0 auto;width:58px;height:58px;border-radius:12px;overflow:hidden;background:rgba(255, 255, 255, 0.06);}
.wos-profile .gov-office-icon img{padding:2px;}
.wos-profile .gov-office-icon img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;}
.wos-profile .gov-office-copy{display:flex;flex-direction:column;gap:2px;min-width:0;}
.wos-profile .gov-office-kind{max-width:100%;font-size:0.68rem;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wos-profile .gov-office-role{max-width:100%;font-size:0.9rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wos-profile .gov-office-meta{max-width:100%;font-size:0.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wos-profile .gov-section-title.gov-section-title-sm{font-size:0.66rem;letter-spacing:0.1em;}
.wos-profile .gov-section-title{font-size:0.78rem;font-weight:800;letter-spacing:0.12em;text-transform:uppercase;color:var(--accent);}
.wos-profile .gov-facts{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));}
.wos-profile .gov-fact{display:flex;justify-content:space-between;gap:10px;border-radius:var(--radius-sm);background:var(--panel2);border:1px solid var(--panel-edge);font-size:0.9rem;}
.wos-profile .gov-fact .k{color:var(--muted);flex:0 1 auto;}
.wos-profile .gov-fact .v{font-weight:700;text-align:end;flex:1 1 auto;min-width:6ch;overflow-wrap:anywhere;color:var(--text);}
.wos-profile .gov-fact.has-rank{display:grid;grid-template-columns:minmax(0, 1fr) auto;align-items:baseline;gap:2px 10px;}
.wos-profile .gov-fact.has-rank .v{min-width:0;white-space:nowrap;}
.wos-profile .gov-fact.has-rank>.stat-rank{grid-column:1 / -1;justify-self:end;max-width:100%;font-size:0.75rem;font-weight:500;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wos-profile .intel-map-link{display:inline-block;margin-inline-start:8px;font-size:0.78rem;font-weight:750;color:var(--accent);text-decoration:none;}
.wos-profile .intel-map-link:hover{text-decoration:underline;}
.wos-profile .gov-split{display:grid;grid-template-columns:minmax(0, 1fr) var(--troop-column-width);align-items:start;}
@media(max-width: 767px){
.wos-profile .gov-banner>:is(.gov-banner-main,.gov-alliance-card){flex-basis:100%;}
.wos-profile .gov-split{grid-template-columns:minmax(0, 1fr);}
}
.wos-profile .skin-rack{display:grid;grid-template-columns:repeat(auto-fill, minmax(min(100%, 128px), 1fr));}
.wos-profile .skin-tile{display:flex;flex-direction:column;min-width:0;}
.wos-profile .skin-icon-wrap{width:min(100%, clamp(96px, 14vw, 120px));aspect-ratio:1;border-radius:12px;background:var(--inset-bg);border:1px solid var(--panel-edge);display:grid;place-items:center;overflow:hidden;margin:0 auto;}
.wos-profile .skin-icon{width:100%;height:100%;object-fit:contain;display:block;}
.wos-profile .skin-meta{display:grid;gap:4px;text-align:center;min-width:0;overflow-wrap:anywhere;}
.wos-profile .skin-type{font-size:0.71rem;color:var(--muted);text-transform:uppercase;letter-spacing:0.06em;}
.wos-profile .skin-tile.is-unknown .skin-name{font-style:italic;color:rgba(226, 238, 255, 0.72);}
.wos-profile .skin-name{font-size:0.84rem;font-weight:700;line-height:1.35;}
.wos-profile .heroes-grid{display:grid;grid-template-columns:repeat(5, minmax(0, 1fr));}
.wos-profile .hero-card{display:flex;flex-direction:column;padding:12px;border-radius:14px;border:1px solid rgba(237, 244, 255, 0.3);border-top:3px solid #edf4ff;background:rgba(12, 27, 53, 0.45);overflow:visible;min-width:0;}
.wos-profile .hero-top{display:grid;grid-template-columns:84px minmax(0, 1fr);align-items:start;}
.wos-profile .hero-portrait{position:relative;width:100%;max-width:84px;aspect-ratio:1 / 1;height:auto;border-radius:14px;overflow:hidden;background:var(--inset-bg);border:1px solid var(--panel-edge);display:grid;place-items:center;}
.wos-profile .hero-portrait .hero-img{width:100%;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover;object-position:center top;display:block;border-radius:0;}
.wos-profile .hero-fallback{font-size:1.8rem;font-weight:800;color:var(--accent);}
.wos-profile .hero-intro{min-width:0;}
.wos-profile .hero-intro h4{margin:0 0 4px;font-size:1rem;font-weight:800;overflow-wrap:anywhere;line-height:1.2;color:var(--text);}
.wos-profile .hero-star-row{display:inline-flex;align-items:center;gap:2px;margin:0 0 8px;padding:4px 5px;border:1px solid var(--panel-edge);border-radius:8px;background:var(--inset-bg);max-width:100%;overflow:hidden;}
.wos-profile .petal-star{width:14px;height:14px;flex:0 0 14px;display:block;overflow:visible;}
.wos-profile .petal-star .petal{fill:#2a2e36;stroke:#8b929e;stroke-width:1.2;stroke-linejoin:round;}
.wos-profile .petal-star .petal.on{fill:#dcb779;stroke:#6a4308;stroke-width:1.15;}
.wos-profile .hero-stats-text{display:grid;gap:3px;margin-bottom:8px;font-size:0.7rem;}
.wos-profile .hero-stats-text>div{display:flex;justify-content:space-between;gap:8px;min-width:0;}
.wos-profile .hero-stats-text .k{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wos-profile .hero-stats-text .v{font-weight:700;font-variant-numeric:tabular-nums;color:var(--text);white-space:nowrap;}
.wos-profile .gear-heading{font-size:0.72rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--faint);font-weight:700;margin-bottom:6px;}
.wos-profile .gear-tiles{display:flex;flex-wrap:wrap;padding:12px 0 4px;overflow:visible;}
.wos-profile .gear-tile{display:flex;flex-direction:column;align-items:center;flex:0 0 calc((100% - 20px) / 3);min-width:0;overflow:visible;background:transparent;border:0;padding:0;}
.wos-profile .gear-tile .gear-tile-icon{position:relative;width:100%;max-width:72px;aspect-ratio:1 / 1;height:auto;border-radius:14px;overflow:visible;background:var(--inset-bg);border:2px solid var(--panel-edge);display:grid;place-items:center;}
.wos-profile .gear-tile .gear-icon{width:86%;height:86%;object-fit:contain;border-radius:12px;display:block;}
.wos-profile .gear-tile.hq-common .gear-tile-icon{background:linear-gradient(#c8cdd6 0%, #8c9bb2 100%);border-color:#6a707a;}
.wos-profile .gear-tile.hq-green .gear-tile-icon{background:linear-gradient(#6ed18a 0%, #2f9a52 100%);border-color:#1e7a3c;}
.wos-profile .gear-tile.hq-uncommon .gear-tile-icon{background:linear-gradient(#a1bfec 0%, #5d81c0 100%);border-color:#365da1;}
.wos-profile .gear-tile.hq-rare .gear-tile-icon{background:linear-gradient(#82b0f3 0%, #396cad 100%);border-color:#294f7b;}
.wos-profile .gear-tile.hq-epic .gear-tile-icon{background:linear-gradient(#c49bff 0%, #754ca0 100%);border-color:#5a2494;}
.wos-profile .gear-tile.hq-mythic .gear-tile-icon,.wos-profile .gear-tile.exclusive:not(.hq-legendary) .gear-tile-icon{background:linear-gradient(#f6c95c 0%, #be8b33 100%);border-color:#8f6a22;}
.wos-profile .gear-tile.hq-legendary .gear-tile-icon{background:linear-gradient(#f4a094 0%, #b95d57 100%);border-color:#b0443c;}
.wos-profile .gear-tile-lv{position:absolute;inset-inline:0;bottom:2px;z-index:2;color:#fff;font-size:0.68rem;font-weight:800;text-align:center;text-shadow:0 1px 2px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.75);pointer-events:none;line-height:1.1;}
.wos-profile .gear-troop{position:absolute;inset-inline-start:-8px;top:-8px;z-index:4;width:20px;height:20px;object-fit:contain;pointer-events:none;background:none;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));}
.wos-profile .gear-tile-imbue{position:absolute;inset-inline-end:3px;top:3px;z-index:2;min-width:18px;padding:1px 4px;border-radius:999px;font-size:0.6rem;font-weight:800;line-height:1.2;color:#fff;pointer-events:none;box-shadow:0 1px 2px rgba(0, 0, 0, 0.45);text-align:center;}
.wos-profile .gear-tile-imbue.imbue-plain{background:none;box-shadow:none;padding:0;min-width:0;border-radius:0;color:#fff;text-shadow:0 1px 2px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.85);}
.wos-profile .gear-tile-imbue.imbue-101{background:#8c9bb2;}
.wos-profile .gear-tile-imbue.imbue-120{background:#3ecf6a;}
.wos-profile .gear-tile-imbue.imbue-140{background:#689eec;}
.wos-profile .gear-tile-imbue.imbue-160{background:#9b6bdc;}
.wos-profile .gear-tile-imbue.imbue-180{background:#e0a04a;}
.wos-profile .gear-tile-imbue.imbue-200{background:#e06a5c;}
.wos-profile .troop-row{display:flex;flex-wrap:wrap;justify-content:flex-start;}
.wos-profile .troop-card{width:108px;text-align:center;}
.wos-profile .troop-card-empty{visibility:hidden;}
.wos-profile .troop-portrait{position:relative;width:96px;height:96px;margin:0 auto;border-radius:14px;overflow:visible;background:radial-gradient(circle at 50% 40%, #3a4e73 0%, #1a2744 70%);border:2px solid #6e84b0;box-shadow:inset 0 0 0 2px rgba(8, 14, 28, 0.45);}
.wos-profile .troop-portrait>img{width:100%;height:100%;object-fit:cover;border-radius:12px;display:block;}
.wos-profile .troop-fc{position:absolute;top:-8px;inset-inline-end:-8px;width:32px;height:32px;display:grid;place-items:center;z-index:2;}
.wos-profile .troop-fc img{position:absolute;inset:0;width:32px;height:32px;object-fit:contain;border-radius:0;}
.wos-profile .troop-fc b{position:relative;z-index:1;color:#fff;font-size:12px;font-weight:800;text-shadow:0 1px 2px rgba(0, 0, 0, 0.85);}
.wos-profile .troop-lv{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);background:rgba(8, 12, 22, 0.82);color:#fff;font-size:11px;font-weight:750;line-height:1.2;padding:1px 6px;border-radius:4px;white-space:nowrap;}
.wos-profile .troop-name{margin-top:8px;font-size:13px;font-weight:700;}
.wos-profile .troop-tier,.wos-profile .troop-fc-label{font-size:13px;font-weight:750;font-variant-numeric:tabular-nums;}
.wos-profile .troop-fc-label{color:var(--muted);}
.wos-profile .lord-gear-rack{direction:ltr;display:grid;grid-template-columns:repeat(auto-fit, minmax(88px, 1fr));justify-content:start;align-items:start;gap:14px 10px;}
html[dir="rtl"] .wos-profile .lord-gear-rack{justify-content:flex-end;}
.wos-profile .lord-gear-tile{display:flex;flex-direction:column;align-items:center;gap:7px;padding:4px 2px 6px;width:100%;min-width:0;text-align:center;}
.wos-profile .lord-gear-icon-wrap{position:relative;width:100%;max-width:96px;aspect-ratio:1 / 1;height:auto;margin:0 auto;flex-shrink:0;}
.wos-profile .lord-gear-icon{width:100%;height:100%;margin:0;border-radius:14px;border:2px solid var(--panel-edge);background:var(--inset-bg);display:grid;place-items:center;overflow:hidden;}
.wos-profile .lord-gear-icon .gear-icon{width:100%;height:100%;object-fit:contain;display:block;}
.wos-profile .lord-gear-q-gray .lord-gear-icon{background:linear-gradient(#d4dbe5 0%, #8f9aa8 100%);border-color:#6d7887;}
.wos-profile .lord-gear-q-green .lord-gear-icon{background:linear-gradient(#6ed18a 0%, #2f9a52 100%);border-color:#1e7a3c;}
.wos-profile .lord-gear-q-blue .lord-gear-icon{background:linear-gradient(#82b0f3 0%, #396cad 100%);border-color:#294f7b;}
.wos-profile .lord-gear-q-purple .lord-gear-icon{background:linear-gradient(#c49bff 0%, #754ca0 100%);border-color:#5a2494;}
.wos-profile .lord-gear-q-gold .lord-gear-icon{background:linear-gradient(#f6c95c 0%, #be8b33 100%);border-color:#8f6a22;}
.wos-profile .lord-gear-q-red .lord-gear-icon{background:linear-gradient(#f4a094 0%, #b95d57 100%);border-color:#b0443c;}
.wos-profile .lord-gear-lv{position:absolute;inset-inline-start:6px;top:3px;z-index:3;color:#fff;font-size:0.92rem;font-weight:800;letter-spacing:0.01em;line-height:1.1;text-shadow:0 1px 2px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.75);pointer-events:none;}
.wos-profile .lord-gear-stars{position:absolute;inset-inline-start:3px;top:22px;z-index:3;display:flex;flex-direction:column;align-items:center;gap:0;color:#ffd24a;font-size:0.78rem;line-height:0.86;text-shadow:0 1px 2px rgba(0, 0, 0, 0.95), 0 0 5px rgba(255, 180, 40, 0.85);pointer-events:none;}
.wos-profile .lord-gear-meta{display:grid;gap:2px;text-align:center;min-width:0;width:100%;}
.wos-profile .gear-icon.is-missing{visibility:hidden;}
.wos-profile .gear-slot{max-width:100%;font-size:0.7rem;color:var(--muted);text-transform:uppercase;letter-spacing:0.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wos-profile .gear-name{max-width:100%;font-size:0.8rem;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wos-profile .empty-note{margin:0;}
.wos-profile .privacy-note{display:flex;align-items:center;justify-content:center;gap:10px;padding:18px 14px;border-radius:14px;border:1px dashed rgba(224, 160, 74, 0.35);background:rgba(224, 160, 74, 0.06);color:var(--ember);font-weight:650;text-align:center;line-height:1.45;}
@media(max-width: 1200px){.wos-profile .heroes-grid{grid-template-columns:repeat(3, minmax(0, 1fr));}}
@media(max-width: 1000px){.wos-profile .gov-facts{grid-template-columns:repeat(3, minmax(0, 1fr));}}
@media(max-width: 900px){
.wos-profile .heroes-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
.wos-profile .gov-facts{grid-template-columns:repeat(2, minmax(0, 1fr));}
}
@media(max-width: 640px){
.wos-profile{padding:12px 10px 0;}
.wos-profile .heroes-grid{grid-template-columns:minmax(0, 1fr);}
.wos-profile .gov-facts{grid-template-columns:minmax(0, 1fr);}
.wos-profile .hero-top{grid-template-columns:72px minmax(0, 1fr);}
.wos-profile .avatar{width:104px;height:104px;}
.wos-profile .gear-tile .gear-tile-icon{width:68px;height:68px;}
}
.wos-profile .lb-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;}
.wos-profile .lb-tab{appearance:none;cursor:pointer;border:1px solid var(--panel-edge);background:var(--inset-bg);color:var(--muted);font:inherit;font-size:0.8rem;font-weight:700;padding:7px 13px;border-radius:999px;transition:color 0.18s ease, border-color 0.18s ease, background 0.18s ease;}
.wos-profile .lb-tab:hover{color:var(--text);border-color:rgba(255, 255, 255, 0.28);}
.wos-profile .lb-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.wos-profile .lb-tab.is-active{background:rgba(244, 199, 106, 0.14);border-color:rgba(244, 199, 106, 0.5);color:var(--accent);}
.wos-profile .lb-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:var(--radius-sm);background:var(--panel2);border:1px solid var(--panel-edge);}
.wos-profile .lb-panel[hidden]{display:none;}
.wos-profile .lb-panel-main{display:grid;gap:4px;min-width:0;}
.wos-profile .lb-panel-name{font-weight:750;}
.wos-profile .lb-panel-rank{font-size:0.76rem;color:var(--faint);}
.wos-profile .lb-panel-value{font-size:1.35rem;font-weight:850;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap;}
@media(max-width: 640px){
.wos-profile .lb-tab{font-size:0.74rem;padding:6px 10px;}
.wos-profile .lb-panel-value{font-size:1.1rem;}
}
.wos-profile,.alliance-profile,.alliance-card{--sp-ref:var(--sp-section);--sp-item:var(--sp-title-bottom);--sp-inner:var(--sp-sub);}
.wos-profile .gov-pair,.wos-profile .gov-split{gap:var(--sp-ref);}
.wos-profile .gov-section{margin-bottom:var(--sp-ref);}
.wos-profile>.gov-pair,.wos-profile>.gov-split{margin-bottom:var(--sp-ref);}
.wos-profile>:last-child{margin-bottom:0;}
.wos-profile .gov-section-title{margin:0 0 var(--sp-item);}
.wos-profile .gov-facts{gap:var(--sp-item);}
.wos-profile .gov-fact{padding:10px var(--sp-item);}
.wos-profile .gov-office-list{gap:var(--sp-inner);}
.wos-profile .gov-office-item{gap:var(--sp-item);padding:14px var(--sp-item) 12px;}
.wos-profile .gov-office-empty{padding:18px var(--sp-item);}
.wos-profile .heroes-grid{gap:var(--sp-item);}
.wos-profile .hero-card{gap:var(--sp-inner);}
.wos-profile .hero-top{gap:var(--sp-item);}
.wos-profile .skin-rack{gap:var(--sp-item);}
.wos-profile .skin-tile{gap:var(--sp-inner);}
.wos-profile .troop-row{gap:var(--sp-item);}
.wos-profile .gear-tiles{gap:var(--sp-inner);}
.alliance-profile .alliance-profile-card .alliance-head{gap:var(--sp-item);margin-bottom:var(--sp-ref);}
.alliance-profile .info-grid{gap:var(--sp-item);padding:var(--sp-item);}
.alliance-card .info-grid{gap:var(--sp-item);}
.alliance-roster-head{margin-block:var(--sp-ref) var(--sp-item);}
.alliance-roster .roster-row{margin:0;}
.alliance-profile-card .info-grid.card-3d{transform-style:preserve-3d;}
.alliance-profile .alliance-roster{grid-template-columns:repeat(3, minmax(0, 1fr));gap:12px;}
.alliance-profile .roster-row{grid-template-columns:72px minmax(0, 1fr) 104px;height:96px;gap:12px;padding:10px 14px;}
.alliance-profile .roster-avatar{width:72px;height:72px;border-radius:8px;}
.alliance-profile .roster-avatar img{border-radius:8px;}
.alliance-profile .roster-avatar.is-fallback{border-radius:8px;}
.alliance-profile .roster-avatar.is-fallback img{border-radius:8px;}
.alliance-profile .roster-tag{width:22px;min-width:22px;max-width:22px;height:22px;min-height:22px;max-height:22px;font-size:.62rem;top:-7px;inset-inline-start:-7px;}
.alliance-profile .roster-name{font-size:1.02rem;}
.alliance-profile .roster-meta{font-size:.84rem;}
.alliance-profile .roster-stats{font-size:.95rem;}
.alliance-profile .roster-kills{font-size:.82rem;}
@media(max-width: 1100px){.alliance-profile .alliance-roster{grid-template-columns:repeat(2, minmax(0, 1fr));}}
@media(max-width: 680px){
.alliance-profile .alliance-roster{grid-template-columns:minmax(0, 1fr);}
.alliance-profile .roster-row{grid-template-columns:64px minmax(0, 1fr) 92px;height:84px;padding:8px 12px;}
.alliance-profile .roster-avatar{width:64px;height:64px;}
.alliance-profile .roster-name{font-size:.98rem;}
}
.alliance-profile .alliance-profile-card{margin-bottom:0;}
@media(max-width:240px){
.wos-profile .gov-banner-main{flex-direction:column;align-items:flex-start;}
.wos-profile .hero-top{grid-template-columns:minmax(0, 1fr);}
.wos-profile .hero-star-row{flex-wrap:wrap;}
}