:root{color-scheme:dark;--bg:#0b101b;--panel:#101827;--panel2:#151f32;--edge:#293348;--text:#edf1fa;--muted:#8b97ad;--accent:#f0ad3e;--accent2:#ffce71;--green:#49d9a6}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse 85% 60% at 70% -12%,#242e4b 0,transparent 65%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.container{max-width:1160px;margin:auto;padding:0 25px}.nav{border-bottom:1px solid #253047;background:rgba(10,15,25,.95);position:sticky;top:0;z-index:20;backdrop-filter:blur(15px)}.nav-inner{display:flex;align-items:center;gap:32px;min-height:76px}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-weight:900;font-size:19px;letter-spacing:1.5px}.brand-icon{color:#11141b;font-weight:900;font-size:14px;letter-spacing:-1px;background:var(--accent);padding:4px 9px;transform:skewX(-10deg)}.links{display:flex;gap:25px;flex:1}.links a{color:#9facbf;font-size:14px;transition:color .2s}.links a:hover,.links a.active{color:var(--text)}.links a.active{border-bottom:2px solid var(--accent);padding-bottom:27px;margin-bottom:-29px}.nav-auth{display:flex;gap:14px;align-items:center}.nav-auth form{margin:0}.steam-btn{background:var(--accent);color:#161513;border:0;border-radius:7px;font-weight:800;padding:10px 15px;white-space:nowrap}.steam-btn:hover,.btn.primary:hover{background:var(--accent2)}.profile-chip{display:flex;align-items:center;gap:8px;min-width:0;font-weight:700;font-size:13px}.profile-chip img{width:30px;height:30px;border-radius:50%}.profile-chip span{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-btn{padding:5px;background:transparent;border:0;color:var(--muted);font-size:12px}.link-btn:hover{color:white}.hero{padding:88px 0 54px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;right:20px;top:75px;width:280px;height:280px;border:1px solid #3a455d;transform:rotate(30deg);box-shadow:0 0 0 55px #1b263640,0 0 0 115px #1b26361d;z-index:-1}.eyebrow{color:var(--accent);letter-spacing:2px;font-weight:900;font-size:11px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#64eba3;margin:0 7px 1px 0;box-shadow:0 0 14px #3fca85}.hero h1{font-size:clamp(42px,6vw,75px);letter-spacing:-2px;line-height:1.08;margin:20px 0;font-weight:900;max-width:970px}.hero h1 span{color:var(--accent)}.hero p{font-size:17px;color:var(--muted);max-width:620px;margin-bottom:26px}.hero-actions{display:flex;align-items:center;gap:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;padding:9px 16px;border-radius:7px;font-size:13px;font-weight:800;border:1px solid transparent;transition:background .2s,border-color .2s;white-space:nowrap}.btn.primary{background:var(--accent);color:#161513}.btn.ghost{background:#172131;border-color:#33405a;color:var(--text)}.btn.ghost:hover{border-color:#8291a9}.btn.small{min-height:32px;padding:6px 10px;font-size:12px}.hero-stats{display:flex;margin-top:48px;gap:50px}.hero-stats>div{display:flex;flex-direction:column}.hero-stats strong{font-size:25px;line-height:1.4}.hero-stats span,.muted{color:var(--muted)}.hero-stats span{font-size:12px}.section-title{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:38px 0 16px}.section-title h2{margin:5px 0 0;font-size:23px;letter-spacing:-.7px}.section-title>a{color:var(--accent);font-size:13px;font-weight:700}.panel{background:var(--panel);border:1px solid var(--edge);border-radius:12px;overflow:hidden}.ranking-table{margin-bottom:18px}.ranking-header,.ranking-row{display:grid;grid-template-columns:minmax(0,1fr) 125px 110px;gap:14px;align-items:center}.ranking-header{padding:13px 20px;color:#8895ab;font-size:10px;letter-spacing:1.4px;font-weight:800;border-bottom:1px solid var(--edge)}.ranking-header span:last-child,.ranking-row .elo{text-align:right}.ranking-row{padding:14px 20px;min-height:76px;border-top:1px solid #263249;transition:background .2s}.ranking-row:first-of-type{border-top:0}.ranking-row:hover{background:#1b273b}.rank-clan{display:flex;align-items:center;gap:14px;min-width:0}.rank-clan div{display:flex;flex-direction:column;min-width:0}.rank-clan strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-clan small{font-size:11px;color:var(--muted)}.position{color:#9ba7ba;font-weight:800;font-size:12px;width:28px}.mini-logo{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:linear-gradient(135deg,#3d4560,#202a40);border-radius:8px;color:#ffcf7a;font-weight:900;font-size:12px;letter-spacing:1px}.mini-logo.avatar{border-radius:50%;overflow:hidden}.mini-logo img,.avatar img{width:100%;height:100%;object-fit:cover}.record{font-size:13px;color:#aeb9cb}.elo{color:var(--accent);font-size:16px}.elo small{color:var(--muted);font-size:10px;font-weight:600}.tournament-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:45px}.tournament-card{padding:20px;border:1px solid #31405a;border-radius:12px;background:linear-gradient(125deg,#202d43,#111a2a 76%);min-height:240px;display:flex;flex-direction:column;transition:transform .2s,border-color .2s}.tournament-card:hover{transform:translateY(-3px);border-color:#ba9251}.tournament-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.event-label{color:#a9b6c9;font-weight:900;letter-spacing:1.5px;font-size:9px}.status{color:#80e0be;background:#154637;border:1px solid #28664e;padding:3px 7px;border-radius:4px;font-size:9px;font-weight:900;letter-spacing:.5px}.event-emblem{font-size:38px;color:#e2b25c;margin:12px 0 4px;text-shadow:0 1px 25px #a9753888}.tournament-card h3{font-size:20px;line-height:1.3;margin:5px 0 10px}.event-meta{display:flex;flex-wrap:wrap;gap:8px 12px;font-size:11px;color:#aeb7c6;margin-top:auto}.event-foot{display:flex;justify-content:space-between;margin-top:18px;padding-top:12px;border-top:1px solid #344159;color:var(--accent);font-size:12px;font-weight:800}.page-heading{padding:50px 0 24px}.page-heading h1{font-size:clamp(29px,4vw,45px);line-height:1.2;margin:8px 0 9px;letter-spacing:-1px}.page-heading p{color:var(--muted);font-size:15px;margin:0;max-width:750px}.tabs{display:flex;gap:8px;margin-bottom:20px}.tabs a{padding:10px 20px;background:#151f2d;border:1px solid var(--edge);border-radius:7px;color:var(--muted);font-weight:700;font-size:13px}.tabs a.selected{color:#151922;background:var(--accent);border-color:var(--accent)}.form-panel{padding:24px;margin:12px 0 23px}.form-panel h2{margin:0 0 3px;font-size:21px}.form-panel form{margin-top:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700;color:#c7d1df;margin:0 0 15px}input,textarea,select{display:block;width:100%;background:#0b1422;border:1px solid #37435a;border-radius:7px;color:white;padding:11px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--accent)}textarea{resize:vertical}.clan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 30px}.clan-card{display:flex;align-items:center;gap:15px;border:1px solid var(--edge);border-radius:11px;background:var(--panel);padding:18px;min-width:0;transition:border-color .2s}.clan-card:hover{border-color:var(--accent)}.clan-mark{display:grid;place-items:center;background:#33384b;border:1px solid #4b536d;width:56px;height:56px;flex-shrink:0;border-radius:9px;color:var(--accent);font-weight:900;font-size:12px}.clan-card h3{margin:0;font-size:17px}.clan-card p{margin:2px 0 0;color:var(--muted);font-size:12px}.clan-card>div:nth-child(2){min-width:0;flex:1}.clan-score{color:var(--accent);font-weight:900;font-size:18px;display:flex;flex-direction:column;align-items:end}.clan-score small{font-size:10px;color:var(--muted)}.stats-band{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--edge);border:1px solid var(--edge);border-radius:11px;overflow:hidden;margin:10px 0 25px}.stats-band>div{background:var(--panel);padding:22px 24px;display:flex;flex-direction:column}.stats-band strong{font-size:25px;letter-spacing:-1px}.stats-band span{font-size:12px;color:var(--muted)}.join-panel{padding:18px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0}.join-panel h3{margin:0;font-size:16px}.join-panel p{margin:5px 0 0;font-size:12px;color:var(--muted)}.join-panel form{margin:0}.roster{margin:0 0 35px}.roster-row{display:flex;align-items:center;gap:15px;padding:13px 18px;border-bottom:1px solid var(--edge)}.roster-row:last-child{border-bottom:0}.roster-name{flex:1;display:flex;flex-direction:column}.roster-name span{color:var(--muted);font-size:12px}.roster-row .avatar{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#334360;overflow:hidden}.rating{color:var(--accent);font-size:13px;font-weight:800}.row-actions{display:flex;gap:8px}.empty{background:var(--panel);border:1px solid var(--edge);border-radius:11px;color:var(--muted);padding:30px;margin:5px 0 35px;text-align:center}.note{padding:16px 20px;background:#172c31;border:1px solid #32636a;border-radius:10px;color:#bfe2e4;margin:16px 0;font-size:13px}.note a,.profile-panel a{color:var(--accent);font-weight:750}.flash{padding:14px 18px;border:1px solid #2b7b58;background:#10362b;border-radius:9px;margin-top:20px}.flash.error{border-color:#ad5f58;background:#432522}.profile-panel{display:grid;grid-template-columns:repeat(2,1fr);padding:22px;gap:15px;margin:20px 0}.profile-panel h2{margin:4px 0}.profile-panel p{overflow-wrap:anywhere;margin:6px 0 12px}.match-card{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 20px;border:1px solid var(--edge);border-radius:8px;margin-bottom:10px}.match-card span{font-weight:900;color:var(--accent);text-align:center}.match-card small{display:block;font-size:9px;color:var(--muted)}.positive{color:var(--green)}.negative{color:#ff8d82}.footer{border-top:1px solid var(--edge);margin-top:70px;color:#758399;font-size:12px}.footer-in{display:flex;justify-content:space-between;gap:12px;padding-top:26px;padding-bottom:26px}@media(max-width:940px){.nav-inner{flex-wrap:wrap;padding-top:15px;padding-bottom:14px;gap:10px}.links{order:3;width:100%;justify-content:space-between;gap:8px}.links a.active{border-bottom:0;padding-bottom:0;margin-bottom:0;color:var(--accent)}.nav-auth{margin-left:auto}.tournament-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.container{padding:0 16px}.hero{padding:62px 0 26px}.hero h1{font-size:39px;letter-spacing:-1.3px}.hero p{font-size:15px}.hero-stats{gap:30px;margin-top:35px}.tournament-grid,.clan-grid,.form-grid,.profile-panel{grid-template-columns:1fr}.ranking-header,.ranking-row{grid-template-columns:minmax(0,1fr) 75px;gap:8px}.ranking-header span:nth-child(2),.ranking-row .record{display:none}.ranking-header,.ranking-row{padding:13px}.rank-clan{gap:8px}.position{width:21px}.mini-logo{width:32px;height:32px}.stats-band strong{font-size:18px}.stats-band>div{padding:12px}.stats-band span{font-size:10px}.join-panel{flex-direction:column;align-items:stretch}.footer-in{flex-direction:column}.section-title h2{font-size:20px}.row-actions{gap:5px}.roster-row{padding:12px}}

.preview-alert{margin:16px 0 2px;border:1px solid #726036;background:#302718;color:#f2d69e;padding:11px 16px;border-radius:8px;font-size:13px}.preview-disabled{opacity:.65;cursor:not-allowed;user-select:none}


/* xVPS-inspired visual system: design adaptation based on supplied screenshot.
   All account, clan, leaderboard, tournament and Steam routes remain intact. */
:root {
  color-scheme:dark;
  --bg:#0d1424; --panel:#151e32; --panel2:#18243b;
  --edge:#2a3956; --text:#f1f5ff; --muted:#a5b2ce;
  --accent:#3768ff; --accent2:#517bff; --green:#51d7a4;
}
html {background:#0d1424;}
body {
  min-height:100vh;
  background:
    radial-gradient(ellipse 85% 430px at 62% -150px,rgba(85,112,157,.26),transparent 70%),
    linear-gradient(180deg,#0b1221 0%,#0e172a 42%,#0d1424 100%);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
.container {max-width:1160px;padding-left:26px;padding-right:26px;}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:2px solid #88a4ff;outline-offset:3px;}
.nav {
  position:relative; top:auto; z-index:30;
  margin:18px auto 0; width:calc(100% - 52px); max-width:1100px;
  background:rgba(18,27,47,.92); border:1px solid #35445f;
  border-radius:17px; box-shadow:0 14px 35px rgba(3,9,22,.22);
  backdrop-filter:blur(18px);
}
.nav-inner {min-height:70px;gap:22px;padding-left:21px;padding-right:21px;}
.brand {min-width:170px;font-size:23px;font-weight:800;letter-spacing:-1.1px;}
.brand-text strong {font-weight:900;}
.brand-text i {color:#668cff;font-style:normal;font-size:28px;}
.links {align-items:center;justify-content:center;gap:23px;}
.links a {font-size:11px;font-weight:800;letter-spacing:.35px;text-transform:uppercase;color:#c3cbe0;}
.links a:hover,.links a.active {color:white;}
.links a.active {border-bottom:0;padding-bottom:0;margin-bottom:0;}
.links a+ a {border-left:1px solid #40506d;padding-left:23px;}
.nav-auth {margin-left:auto;}
.nav-auth form {margin:0;}
.steam-btn,.btn.primary {border:1px solid transparent;border-radius:100px;background:var(--accent);color:#fff;font-weight:800;box-shadow:0 6px 20px rgba(45,96,253,.12);}
.steam-btn {display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 18px;font-size:12px;}
.steam-btn:hover,.btn.primary:hover {background:var(--accent2);}
.profile-chip {color:#f3f6ff;font-size:12px;}
.profile-chip img {width:34px;height:34px;border:2px solid #465d95;}
.link-btn:hover {color:white;}
.mobile-menu {display:none;position:relative;}
.mobile-menu summary {list-style:none;width:40px;height:40px;cursor:pointer;display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center;border:1px solid #3b4b69;border-radius:10px;background:#202c46;}
.mobile-menu summary::-webkit-details-marker {display:none;}
.mobile-menu summary span {width:17px;height:2px;background:#eaf0ff;border-radius:2px;}
.mobile-nav {position:absolute;right:0;top:46px;width:220px;padding:8px;background:#111b2d;border:1px solid #354562;border-radius:12px;box-shadow:0 15px 30px #02061399;}
.mobile-nav a {display:block;color:#e3eafa;font-weight:700;padding:10px 12px;border-radius:8px;}
.mobile-nav a:hover {background:#243451;}
.hero-shell {position:relative;isolation:isolate;padding:72px 0 19px;margin-top:0;}
.hero-glow {position:absolute;z-index:-1;inset:-104px -13vw -100px -13vw;pointer-events:none;
  background:
    radial-gradient(ellipse 35% 48% at 77% 37%,rgba(60,90,140,.35),transparent 78%),
    radial-gradient(ellipse 55% 32% at 50% 60%,rgba(49,76,129,.18),transparent 80%),
    linear-gradient(90deg,rgba(10,18,36,.52),transparent 77%);
}
.hero-grid {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:center;min-height:440px;gap:26px;}
.hero-copy {position:relative;z-index:2;padding-bottom:16px;}
.eyebrow {color:#87a8ff;font-size:10px;font-weight:900;letter-spacing:1.7px;}
.eyebrow-square {display:inline-block;width:6px;height:6px;background:#3d75ff;margin:0 10px 1px 0;}
.hero-copy h1 {font-size:clamp(52px,5.35vw,76px);font-weight:850;letter-spacing:-3.5px;line-height:1.04;margin:24px 0 22px;}
.hero-copy h1 span {color:#84a3ff;}
.hero-copy p {font-size:15px;line-height:1.85;color:#b8c4dc;max-width:505px;margin:0 0 27px;}
.hero-actions {display:flex;align-items:center;flex-wrap:wrap;gap:16px;}
.btn {border-radius:9px;min-height:43px;padding:10px 19px;}
.btn.primary {min-height:44px;padding:10px 21px;font-size:12px;}
.btn.ghost {color:#e2eafa;background:#1a2740;border:1px solid #405478;}
.btn.ghost:hover {border-color:#688cf0;}
.btn.text-link {padding:6px 3px;color:#d3ddf2;background:transparent;border:0;font-weight:750;}
.btn.text-link:hover {color:white;}
.btn.text-link span {color:#83a4ff;}
.hero-visual {height:395px;position:relative;display:flex;align-items:center;justify-content:center;}
.hero-visual:before {content:"";position:absolute;inset:-12% -10%;background:linear-gradient(135deg,transparent 24%,rgba(42,74,132,.15) 65%,transparent 80%);transform:skewX(-12deg);}
.orbit {position:absolute;pointer-events:none;aspect-ratio:1;border:1px solid rgba(107,140,202,.13);border-radius:50%;}
.orbit-one {width:440px;right:-52px;top:-18px;box-shadow:0 0 90px 15px rgba(56,85,156,.1);}
.orbit-two {width:280px;right:30px;top:60px;}
.scoreboard {position:relative;width:min(100%,415px);padding:20px;transform:rotate(-1.25deg);border:1px solid #4a6090;border-radius:17px;background:linear-gradient(145deg,rgba(33,50,82,.95),rgba(15,24,42,.97));box-shadow:0 22px 70px rgba(3,9,21,.65),inset 0 1px rgba(182,203,255,.09);}
.scoreboard-heading,.scoreboard-footer {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;font-weight:900;letter-spacing:1.25px;color:#a7b5cf;}
.scoreboard-heading {padding-bottom:16px;border-bottom:1px solid #3c4d6b;justify-content:flex-start;}
.scoreboard-id {margin-left:auto;color:#6f8cbb;}
.s-live-dot,.signal-dot {display:inline-block;width:6px;height:6px;border-radius:50%;background:#4dddab;box-shadow:0 0 12px rgba(61,222,155,.4);}
.scoreboard-main {display:flex;align-items:center;gap:18px;min-height:165px;}
.scoreboard-icon {display:grid;place-items:center;flex-shrink:0;width:102px;height:102px;border:1px solid rgba(100,138,239,.6);border-radius:18px;color:#9bb5ff;background:linear-gradient(145deg,#273d70,#16243f);font-size:65px;line-height:1;font-weight:900;text-shadow:0 0 25px rgba(86,134,255,.6);transform:skewX(-7deg);}
.scoreboard-title small {font-size:9px;color:#819bd1;font-weight:850;letter-spacing:.9px;}
.scoreboard-title strong {display:block;font-size:24px;letter-spacing:-.9px;line-height:1.23;margin-top:8px;}
.scoreboard-bars {display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.scoreboard-bars>div {background:#141f35;border:1px solid #334565;border-radius:10px;padding:11px 9px;display:flex;flex-direction:column;gap:6px;}
.scoreboard-bars span {font-size:8px;color:#9eafd0;letter-spacing:.7px;font-weight:800;}
.scoreboard-bars strong {font-size:18px;color:#91b0ff;line-height:1;}
.scoreboard-footer {margin-top:16px;padding-top:13px;border-top:1px solid #3c4d6b;color:#7d91b9;}
.scoreboard-footer span:last-child {color:#668dff;font-size:15px;}
.hero-stats {display:flex;gap:45px;align-items:center;margin:8px 0 4px;padding:15px 0 20px;border-top:1px solid rgba(84,106,145,.26);}
.hero-stats>div {display:flex;flex-direction:column;}
.hero-stats strong {font-size:27px;letter-spacing:-1px;line-height:1.35;}
.hero-stats span {font-size:11px;color:#9baac9;}
.hero-stats .stats-trail {margin-left:auto;display:flex;flex-direction:row;align-items:center;gap:10px;white-space:nowrap;}
.hero-stats .stats-trail span:last-child {letter-spacing:1.1px;font-size:9px;font-weight:800;}
.quick-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;position:relative;z-index:1;}
.quick-nav a {display:flex;gap:10px;align-items:center;min-height:60px;padding:14px 15px;border:1px solid #344361;border-radius:12px;background:#1a253d;font-size:12px;color:#ecf1ff;transition:background .2s,border-color .2s,transform .2s;}
.quick-nav a:hover {background:#233351;border-color:#6888cf;transform:translateY(-2px);}
.quick-index {font-size:10px;color:#8196ba;}
.quick-arrow {margin-left:auto;font-weight:800;color:#9ab4ff;}
.spotlight-intro {display:flex;flex-direction:column;align-items:flex-start;gap:0;margin-top:76px;margin-bottom:20px;}
.spotlight-intro h2 {font-size:clamp(31px,3.5vw,43px);line-height:1.12;letter-spacing:-1.4px;margin:13px 0 10px;}
.spotlight-intro h2 span {color:#88a7ff;}
.spotlight-intro p {margin:0;color:#9caac8;font-size:13px;}
.leaderboard-duo {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.leaderboard-column {min-width:0;}
.section-title {margin:25px 0 15px;gap:10px;}
.section-title h2 {font-size:21px;letter-spacing:-.5px;}
.section-title>a {color:#8eabff;font-size:12px;}
.panel,.empty {background:#151e32;border:1px solid #31405d;border-radius:13px;}
.ranking-table {margin-bottom:16px;}
.ranking-header {background:#1a2740;color:#91a3c7;border-color:#34425f;}
.ranking-header,.ranking-row {grid-template-columns:minmax(0,1fr) 74px 75px;gap:9px;padding-left:13px;padding-right:13px;}
.ranking-row {min-height:73px;border-top-color:#2b3952;}
.ranking-row:hover {background:#202e48;}
.rank-clan {gap:10px;}
.rank-clan strong {font-size:12px;}
.rank-clan small {font-size:10px;}
.position {width:23px;}
.mini-logo {width:36px;height:36px;background:linear-gradient(135deg,#314c87,#203056);color:#a8c1ff;border-radius:9px;}
.elo {color:#8facff;font-size:15px;}
.record {color:#a5b3ce;font-size:11px;}
.clan-card {background:#172139;border-color:#344361;border-radius:13px;}
.clan-card:hover,.tournament-card:hover {border-color:#6e94fa;}
.clan-mark {color:#a5bcff;background:#243859;border-color:#465b89;}
.clan-score,.rating {color:#9ab5ff;}
.tournament-card {background:linear-gradient(135deg,#1e2b46,#121c30 85%);border:1px solid #35466b;border-radius:14px;}
.event-emblem {color:#8faeff;text-shadow:0 1px 25px #597bf088;}
.event-foot,.event-foot span {color:#9db7ff;}
.status {background:#193e38;border-color:#2b635a;color:#8ce9c3;}
.page-heading {padding:67px 0 30px;}
.page-heading h1 {font-size:clamp(32px,4vw,50px);letter-spacing:-1.7px;}
.page-heading p {color:#afbbd5;}
.tabs a {background:#172238;border-color:#344461;color:#c7d1e7;}
.tabs a.selected {background:#3768ff;border-color:#3768ff;color:white;}
.form-panel {padding:26px;}
input,textarea,select {background:#101b2e;border-color:#35486a;border-radius:9px;}
input:focus,textarea:focus,select:focus {border-color:#7797f9;box-shadow:0 0 0 3px rgba(56,103,240,.13);}
.stats-band {border-color:#344562;background:#344562;}
.stats-band>div {background:#172139;}
.note {background:#18283e;border-color:#395375;color:#d3e2f2;}
.note a,.profile-panel a {color:#9fb8ff;}
.preview-alert {background:#27233e;border-color:#6b587d;color:#edddff;}
.match-card {border-color:#344562;background:#151f33;border-radius:11px;}
.footer {margin-top:75px;background:#0c1322;border-color:#273754;color:#9ba8c2;}
.footer-in {padding-top:29px;padding-bottom:34px;}
@media(min-width:1360px) {.hero-glow {inset:-105px -20vw -90px -20vw;}}
@media(max-width:1040px) {
  .nav-inner {gap:13px;}
  .brand {min-width:140px;font-size:20px;}
  .links {gap:13px;}
  .links a+ a {padding-left:13px;}
  .hero-copy h1 {font-size:clamp(47px,5vw,64px);}
  .hero-stats {gap:27px;}
  .ranking-header,.ranking-row {grid-template-columns:minmax(0,1fr) 68px;}
  .ranking-header span:nth-child(2),.ranking-row .record {display:none;}
}
@media(max-width:850px) {
  .nav {width:calc(100% - 32px);margin-top:14px;}
  .nav-inner {min-height:66px;flex-wrap:nowrap;padding:0 16px;}
  .links {display:none;}
  .mobile-menu {display:block;}
  .nav-auth {margin-left:auto;}
  .hero-shell {padding-top:52px;}
  .hero-grid {grid-template-columns:1fr;min-height:0;gap:0;}
  .hero-copy {padding-bottom:0;}
  .hero-visual {height:320px;max-width:540px;width:100%;margin:10px auto;}
  .orbit-one {right:0;}
  .hero-stats .stats-trail {display:none;}
  .leaderboard-duo {grid-template-columns:1fr;gap:4px;}
  .quick-nav {grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px) {
  .container {padding-left:16px;padding-right:16px;}
  .nav {width:calc(100% - 22px);margin-top:11px;}
  .brand {min-width:0;font-size:18px;}
  .nav-auth .steam-btn {padding:9px 11px;font-size:10px;}
  .nav-auth .steam-btn svg {display:none;}
  .profile-chip span {max-width:65px;}
  .link-btn {display:none;}
  .hero-shell {padding-top:39px;}
  .hero-copy h1 {font-size:clamp(40px,10vw,55px);letter-spacing:-1.8px;}
  .hero-copy p {font-size:13px;}
  .hero-actions {gap:8px;}
  .hero-actions .btn {font-size:11px;padding-left:13px;padding-right:13px;}
  .hero-visual {height:288px;}
  .scoreboard {width:96%;padding:14px;}
  .scoreboard-main {min-height:138px;}
  .scoreboard-icon {width:70px;height:70px;font-size:49px;}
  .scoreboard-title strong {font-size:20px;}
  .scoreboard-bars {gap:4px;}
  .scoreboard-bars>div {padding:8px 6px;}
  .scoreboard-bars span {font-size:7px;}
  .hero-stats {justify-content:space-between;gap:9px;padding-top:20px;}
  .hero-stats strong {font-size:22px;}
  .hero-stats span {font-size:9px;}
  .quick-nav {gap:8px;}
  .quick-nav a {min-height:57px;padding:10px;gap:6px;font-size:10px;}
  .spotlight-intro {margin-top:53px;}
  .spotlight-intro h2 {font-size:32px;}
  .ranking-header,.ranking-row {grid-template-columns:minmax(0,1fr) 71px;}
  .tournament-grid,.clan-grid,.form-grid,.profile-panel {grid-template-columns:1fr;}
  .stats-band strong {font-size:18px;}
  .page-heading {padding-top:49px;}
}
@media(prefers-reduced-motion:reduce){.quick-nav a,.tournament-card,.clan-card,.ranking-row {transition:none;}}


/* v4: design alignment with the USER-SUPPLIED xVPS sources.
   Reference: app-v0.5.1.css, public-navigation-v0.8.8.css,
   public-footer-v0.9.0.css, and views/homepage-banner.php.
   No xVPS authentication, account code, configuration or server details imported. */
:root { --bg:#101625;--panel:#171f31;--panel2:#192238;--edge:#303c57;--text:#f5f7ff;--muted:#abb6cc;--accent:#285bf6;--accent2:#527cff;--green:#51d7a4; }
html { scroll-padding-top:140px; }
body { background:#101625; color:var(--text); }
.container { max-width:1200px; }
a { text-underline-offset:3px; }

/* The floating/expanding xVPS navigation treatment. */
.site-header-shell { position:sticky; top:0;z-index:50; padding:18px 0;pointer-events:none;transition:padding .28s ease; }
.site-header-shell .site-header {
  display:grid;grid-template-columns:minmax(170px,1fr) auto minmax(190px,1fr);align-items:center;
  gap:20px;width:min(1100px,calc(100% - 46px));min-height:74px;margin-inline:auto;padding:13px 22px;
  background:rgba(19,27,46,.95);border:1px solid #344057;border-radius:18px;
  box-shadow:0 12px 40px rgba(3,8,23,.22);backdrop-filter:blur(16px);
  pointer-events:auto;transition:width .28s,transform .28s,border-radius .28s,padding .28s;
}
.site-header-shell.is-scrolled { padding:0; }
.site-header-shell.is-scrolled .site-header {
  width:100%;max-width:none;min-height:64px; padding-inline:max(20px,calc((100% - 1160px) / 2));
  border-radius:0;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;
  background:rgba(16,24,42,.97);box-shadow:0 12px 35px rgba(2,6,17,.34);
}
.site-header .brand {display:inline-flex;align-items:center;min-width:0;justify-self:start;gap:2px;color:#f6f7fe;font-size:24px;font-weight:800;white-space:nowrap;text-decoration:none;letter-spacing:-1.3px;}
.site-header .brand-strong,.hosting-footer .brand-strong{font-weight:850;}
.site-header .brand-dot,.hosting-footer .brand-dot {color:#658cff;font-weight:800;}
.site-header .public-nav {display:flex;align-items:center;justify-content:center;gap:0;}
.public-nav > a,.public-nav > details > summary {
  display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;min-height:44px;
  font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:#c1cbe0;white-space:nowrap;text-decoration:none;cursor:pointer;
}
.public-nav > .public-nav-link {border-left:1px solid #435069;line-height:1;min-height:14px;}
.public-nav > a:hover,.public-nav > a.is-active,.compete-dropdown.is-active > summary,.compete-dropdown[open]>summary {color:#8faaff;}
.compete-dropdown {position:relative;}
.compete-dropdown > summary {list-style:none;}
.compete-dropdown > summary::-webkit-details-marker {display:none;}
.public-chevron {width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);}
.compete-dropdown[open] .public-chevron {transform:translateY(2px) rotate(225deg);}
.compete-dropdown-panel {
  position:absolute;top:calc(100% + 14px);left:0;display:flex;flex-direction:column;gap:6px;
  width:300px;padding:9px;background:#151f33;border:1px solid #344057;
  border-radius:12px;box-shadow:0 20px 50px rgba(3,8,23,.78);
}
.compete-dropdown-panel a {padding:13px 14px;border-radius:8px;color:#eaf0ff;text-decoration:none;}
.compete-dropdown-panel a:hover {background:#243451;}
.compete-dropdown-panel strong,.compete-dropdown-panel small {display:block;}
.compete-dropdown-panel strong {font-size:13px;}
.compete-dropdown-panel small {margin-top:3px;color:#a9b8d2;font-size:11px;}
.site-header .nav-auth {justify-self:end;display:flex;align-items:center;gap:12px;margin-left:0;}
.site-header .steam-btn {white-space:nowrap;border-radius:99px;background:#285bf6;padding:11px 19px;box-shadow:none;font-size:12px;line-height:1.2;}
.site-header .steam-btn:hover {background:#1c49d8;}
.site-header .steam-btn.preview-disabled {background:#253453;border:1px solid #41516c;}
.site-header .mobile-menu {display:none;}
.site-header .profile-chip {max-width:190px;}

/* v4.1: Full-bleed hero belongs to the PAGE, not a centered .container.
   No 100vw pseudo-elements, which can exceed the visible viewport when a
   scrollbar is present on Windows. The image now starts at y=0 behind the nav. */
html {overflow-x:clip;}
body.page-home {position:relative;isolation:isolate;}
body.page-home::before,body.page-home::after {
  content:"";position:absolute;left:0;right:0;top:0;height:760px;
  z-index:0;pointer-events:none;
}
body.page-home::before {background:#0b1324 url('arena-hero-xvps.png') center 43%/cover no-repeat;}
body.page-home::after {
  background:linear-gradient(90deg,#091122f9 0%,#0b1428dd 39%,#0b14288a 69%,#0b14284d 100%),linear-gradient(0deg,#101625 0%,transparent 43%);
}
body.page-home > main,body.page-home > .hosting-footer {position:relative;z-index:1;}
/* The sticky nav stays above the backdrop (its existing z-index is 50). */
.hero-shell.cs2-banner {
  isolation:isolate;position:relative;min-height:0;margin-top:0;padding:73px 0 74px;
}
.hero-shell.cs2-banner .hero-glow {display:none;}
.hero-shell.cs2-banner .hero-grid {display:flex;align-items:center;min-height:382px;gap:10px;}
.hero-shell.cs2-banner .hero-copy {width:min(650px,72%);padding:0;}
.hero-shell.cs2-banner .hero-copy .eyebrow {display:flex;align-items:center;margin-bottom:24px;color:#c1d1ff;letter-spacing:.14em;font-size:10px;}
.hero-shell.cs2-banner .eyebrow-square {width:7px;height:7px;background:#4e79ff;margin:0 14px 0 0;}
.hero-shell.cs2-banner h1 {font-weight:780;font-size:clamp(44px,5vw,64px);letter-spacing:-.045em;line-height:1.1;margin:0 0 23px;}
.hero-shell.cs2-banner h1 span{color:#88a7ff;}
.hero-shell.cs2-banner .hero-copy p {max-width:525px;font-size:15px;line-height:1.83;color:#c1cbe0;margin:0;}
.hero-shell.cs2-banner .hero-actions {margin-top:28px;gap:20px;}
.hero-shell.cs2-banner .btn.primary{border-radius:99px;background:#285bf6;padding:12px 22px;}
.hero-shell.cs2-banner .btn.text-link{font-weight:600;color:#e2e8f8;}
.hero-shell.cs2-banner .hero-caption {position:absolute;right:0;bottom:95px;padding-left:15px;border-left:2px solid #4c7aff;max-width:250px;}
.hero-caption span {display:block;color:#aebedf;font-size:9px;letter-spacing:.12em;}
.hero-caption strong {display:block;margin-top:6px;color:#fff;font-size:13px;font-weight:600;}
.quick-nav {margin-top:-25px;position:relative;z-index:2;gap:12px;}
.quick-nav a {min-height:62px;border-radius:12px;border-color:#303c57;background:#192238;padding:19px 16px;font-size:13px;font-weight:550;}
.quick-nav a:hover {border-color:#6288f3;background:#202f4e;}
.quick-index {color:#8a9dca;font-size:10px;}
.quick-arrow {color:#92aeff;}
.arena-metrics {display:flex;align-items:center;gap:36px;padding:28px 0 20px;border-bottom:1px solid #29364f;}
.arena-metrics > div:not(.metric-side) {display:flex;align-items:baseline;gap:10px;}
.arena-metrics strong {font-size:20px;line-height:1.2;color:#f2f6ff;}
.arena-metrics span {color:#a4b2cb;font-size:11px;}
.arena-metrics .metric-side {margin-left:auto;white-space:nowrap;color:#9eb5ee;font-size:9px;letter-spacing:1.1px;font-weight:750;display:flex;align-items:center;gap:10px;}
.spotlight-intro {margin-top:67px;}
.spotlight-intro .eyebrow {color:#89a5ff;}
.spotlight-intro h2 span {color:#89aaff;}
.panel,.empty {background:#171f31;border-color:#303e58;}
.ranking-header {background:#1d2940;}
.tournament-card {background:linear-gradient(145deg,#1b263c,#121b2d);border-color:#35415d;}
.clan-card {background:#171f31;border-color:#303e58;}
.form-panel {background:#171f31;}
/* xVPS source-inspired full-width footer, with only live CS2 site links. */
.hosting-footer {position:relative;margin-top:85px;border-top:1px solid #2b3a54;background-color:#0d1526;background-image:linear-gradient(90deg,#7898d007 1px,transparent 1px),linear-gradient(#7898d007 1px,transparent 1px);background-size:36px 36px;color:#aab8d0;}
.hosting-footer:before {content:"";position:absolute;top:-1px;left:10%;right:10%;height:1px;background:linear-gradient(90deg,transparent,#698af3,transparent);}
.hosting-footer-main {display:grid;grid-template-columns:1.55fr 1fr 1fr 1.2fr;gap:35px;padding:56px 0 44px;}
.hosting-footer .brand {display:inline-flex;align-items:center;font-weight:800;color:#fff;font-size:26px;letter-spacing:-1.3px;text-decoration:none;}
.hosting-footer-brand p {margin:12px 0 0;color:#e1e8f8;font-size:13px;}
.hosting-footer-brand .hosting-footer-description {font-size:12px;color:#9aaccc;line-height:1.8;margin-top:10px;max-width:285px;}
.hosting-footer-column {display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
.hosting-footer-column h2 {color:#f1f5ff;font-size:11px;letter-spacing:.11em;text-transform:uppercase;margin:7px 0 9px;font-weight:800;}
.hosting-footer-column a,.hosting-footer-column p {font-size:12px;color:#aab8d0;text-decoration:none;line-height:1.65;margin:0;}
.hosting-footer-column a:hover,.hosting-footer-bottom a:hover {color:white;}
.hosting-footer-bottom {display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #29354b;padding:24px 0 28px;font-size:11px;color:#93a5c2;}
.hosting-footer-bottom a {color:#becae0;text-decoration:none;}

@media(max-width:1050px) {
  .site-header-shell .site-header {grid-template-columns:155px 1fr auto;gap:8px;padding-inline:18px;}
  .public-nav>a,.public-nav>details>summary {padding-inline:12px;font-size:10px;}
  .arena-metrics {gap:20px;flex-wrap:wrap;}
  .arena-metrics .metric-side {display:none;}
  .hosting-footer-main {grid-template-columns:repeat(3,minmax(0,1fr));}
  .hosting-footer-brand {grid-column:1/-1;}
}
@media(max-width:850px) {
  .site-header-shell .site-header {grid-template-columns:1fr auto auto;gap:12px;min-height:70px;}
  .site-header .public-nav {display:none;}
  .site-header .mobile-menu {display:block;justify-self:end;}
  .site-header .nav-auth {grid-column:2;}
  .site-header .profile-chip {max-width:130px;}
  .hero-shell.cs2-banner {min-height:510px;}
  .hero-shell.cs2-banner .hero-copy {width:min(600px,96%);}
  .hero-shell.cs2-banner .hero-caption {display:none;}
  .hero-shell.cs2-banner::before {background-position:60% center;}
  .hero-shell.cs2-banner::after {background:linear-gradient(90deg,#091122fa,#0b1428ba 68%,#0b14288a),linear-gradient(0deg,#101625,transparent 45%);}
  .arena-metrics {justify-content:space-around;}
}
@media(max-width:600px) {
  .site-header-shell {padding:11px 0;}
  .site-header-shell .site-header {width:calc(100% - 22px);min-height:62px;gap:9px;padding:9px 10px;}
  .site-header-shell.is-scrolled .site-header {padding:8px 12px;}
  .site-header .brand {font-size:19px;letter-spacing:-1.1px;}
  .site-header .steam-btn {font-size:10px;padding:9px 11px;}
  .site-header .nav-auth {gap:3px;}
  .site-header .mobile-menu summary {width:36px;height:36px;}
  .site-header .profile-chip {max-width:105px;padding:5px;}
  .site-header .profile-chip span {max-width:70px;}
  .site-header .nav-auth form .link-btn {display:none;}
  body.page-home::before,body.page-home::after {height:650px;}
  .hero-shell.cs2-banner {min-height:0;margin-top:0;padding-top:61px;padding-bottom:62px;}
  .hero-shell.cs2-banner .hero-grid {min-height:340px;}
  .hero-shell.cs2-banner .hero-copy {width:100%;}
  .hero-shell.cs2-banner h1 {font-size:clamp(38px,10vw,52px);letter-spacing:-.04em;}
  .hero-shell.cs2-banner .hero-copy p {font-size:13px;}
  .hero-shell.cs2-banner .eyebrow {letter-spacing:.08em;font-size:9px;}
  .hero-shell.cs2-banner::before {background-position:69% center;}
  .hero-shell.cs2-banner .hero-actions {gap:10px;}
  .quick-nav {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .quick-nav a {font-size:11px;min-height:58px;padding:12px;}
  .arena-metrics {gap:15px 22px;justify-content:flex-start;}
  .arena-metrics > div:not(.metric-side) {display:flex;flex-direction:column;gap:1px;}
  .arena-metrics strong {font-size:19px;}
  .hosting-footer {margin-top:60px;}
  .hosting-footer-main {grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px;padding:36px 0;}
  .hosting-footer-brand {grid-column:1/-1;}
  .hosting-footer-column:last-child {grid-column:1/-1;}
  .hosting-footer-bottom {align-items:flex-start;flex-direction:column;}
}
@media(prefers-reduced-motion:reduce) { .site-header-shell,.site-header-shell .site-header {transition:none;} }

/* CSArena v5 - Steam profile dashboard and managed clan headquarters. */
.player-hero,.clan-hero {
  position:relative;isolation:isolate;overflow:hidden;
  border:1px solid #344461;border-radius:18px;
  background:linear-gradient(112deg,#202d49 0%,#15213a 56%,#10234b 100%);
  margin-top:52px;padding:32px 34px;
}
.player-hero:before,.clan-hero:before {
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 52% 130% at 99% 2%,rgba(55,106,253,.20),transparent 80%),
             linear-gradient(90deg,transparent 50%,rgba(10,18,33,.16));
}
.player-hero {display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.player-identity {display:flex;align-items:center;gap:24px;min-width:0;flex:1 1 580px;}
.player-portrait {flex:none;width:94px;height:94px;border:3px solid #5576bb;border-radius:18px;
  overflow:hidden;background:#172c56;display:grid;place-items:center;color:#9fc0ff;font-size:36px;
  box-shadow:0 12px 32px #050c2055;}
.player-portrait img {display:block;width:100%;height:100%;object-fit:cover;}
.player-identity-copy {min-width:0;}
.player-identity-copy h1 {font-weight:800;font-size:clamp(26px,3.3vw,40px);line-height:1.16;
  letter-spacing:-1.25px;margin:9px 0 7px;overflow-wrap:anywhere;}
.player-identity-copy p {margin:0;color:#d5e2fd;font-size:13px;}
.player-id-line {display:flex;align-items:center;flex-wrap:wrap;gap:7px 20px;margin-top:15px;color:#aebfdd;font-size:12px;}
.player-id-line a {font-weight:750;color:#aac2ff;}
.player-id-line a:hover{color:#fff;}
.player-actions {display:flex;gap:9px;align-items:center;flex-wrap:wrap;}
.player-actions form {margin:0;}
.player-actions .btn {font-size:12px;}
.profile-hint {border:1px solid #4b638c;border-radius:10px;background:#162947;padding:12px 18px;
  margin:15px 0;display:flex;flex-wrap:wrap;gap:6px 18px;color:#b9ccef;font-size:12px;}
.profile-hint strong{color:#e1eaff;}
.player-stat-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 22px;}
.player-stat {padding:23px 23px 18px;background:#18233a;border:1px solid #344360;border-radius:13px;min-width:0;}
.player-stat>span {display:block;color:#91aaf0;font-size:9px;font-weight:850;letter-spacing:.12em;}
.player-stat strong {display:block;font-size:32px;font-weight:800;letter-spacing:-1.4px;line-height:1.25;color:#f4f7ff;
  margin-top:10px;overflow-wrap:anywhere;}
.player-stat strong em {font-style:normal;color:#8b9aba;font-weight:500;}
.player-stat strong.player-stat-clan {font-size:25px;}
.player-stat small {color:#a2b1ce;font-size:11px;}
.player-content-grid {display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);gap:14px;margin:0 0 32px;}
.elo-panel,.player-clan-card {padding:25px;min-height:210px;}
.elo-panel-head {display:flex;justify-content:space-between;align-items:center;gap:15px;margin:12px 0 22px;}
.elo-panel-head h2,.player-clan-card h2 {font-size:23px;line-height:1.25;letter-spacing:-.5px;margin:0 0 7px;}
.elo-panel-head p,.player-clan-card p {margin:0;font-size:12px;line-height:1.65;}
.elo-panel-head>strong {font-size:27px;white-space:nowrap;}
.elo-panel-head>strong small {font-size:11px;color:#91a7d6;}
.elo-track {height:10px;border-radius:20px;background:#0b1426;overflow:hidden;border:1px solid #304366;}
.elo-track>div {height:100%;border-radius:20px;background:linear-gradient(90deg,#3157d9,#799fff);}
.elo-track-label {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:11px;color:#a8b8d7;font-size:11px;}
.player-clan-card h2 {margin:15px 0 9px;overflow-wrap:anywhere;}
.player-clan-card .btn {margin-top:19px;font-size:12px;}
.player-empty-history {padding:36px 22px;text-align:center;color:#b9c7e3;}
.player-empty-history .history-icon {margin:0 auto 12px;width:42px;height:42px;display:grid;place-items:center;
  border-radius:12px;background:#24375b;color:#9ab6ff;font-size:20px;}
.player-empty-history h3 {color:#fff;font-size:16px;margin:0 0 8px;}
.player-empty-history p {font-size:12px;line-height:1.7;margin:0;}
.clan-hero {margin-top:52px;min-height:235px;display:flex;align-items:center;}
.clan-hero-row {display:flex;gap:24px;align-items:center;min-width:0;}
.clan-big-mark {flex:none;display:grid;place-items:center;width:110px;height:110px;border-radius:21px;
  border:1px solid #5877bc;background:linear-gradient(145deg,#35579c,#172a51);color:#d7e4ff;
  font-size:25px;letter-spacing:1px;font-weight:900;box-shadow:0 16px 38px #050b2070;}
.clan-hero-info{min-width:0;}
.clan-hero h1 {margin:6px 0 7px;font-size:clamp(30px,4vw,50px);letter-spacing:-1.5px;overflow-wrap:anywhere;}
.clan-hero p {max-width:750px;color:#c2d0eb;margin:0 0 14px;white-space:pre-line;overflow-wrap:anywhere;}
.clan-captain{font-size:12px;color:#a8bdf2;}
.roster-count {font-size:11px;color:#a1b0ce;}
.clan-roster {margin-bottom:28px;}
.clan-roster .roster-row {min-height:76px;}
.clan-roster .avatar {height:44px;width:44px;border:2px solid #405c92;}
.clan-roster .roster-name{min-width:0;}
.clan-roster .roster-name strong {overflow-wrap:anywhere;}
.roster-member-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-left:auto;}
.roster-member-actions form,.row-actions {margin:0;}
.roster-member-actions .btn {font-size:10px;min-height:33px;padding:7px 10px;}
.btn.danger-outline {background:#321e29;color:#ffd3d6;border:1px solid #965268;}
.btn.danger-outline:hover {background:#492331;border-color:#dd7c8a;}
.clan-manage-panel h3 {font-size:21px;margin:0 0 6px;}
.clan-manage-panel p {margin-top:0;}
.clan-manage-panel form {max-width:850px;}
.clan-manage-panel label {font-size:12px;}
.clan-danger-zone {margin-top:22px;}
.clan-danger-zone summary {display:list-item;cursor:pointer;width:max-content;max-width:100%;font-size:12px;
  font-weight:700;color:#ef9fa8;padding:10px 0;}
.clan-danger-zone .panel {border-color:#684252;}
.clan-danger-zone .panel p {font-size:12px;color:#c6bac2;max-width:700px;}
.clan-danger-zone label {max-width:460px;}
.leave-clan-panel {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 24px;margin-top:30px;}
.leave-clan-panel h3 {font-size:16px;margin:0 0 4px;}
.leave-clan-panel p {font-size:12px;margin:0;}
.leave-clan-panel form {margin:0;}
@media(max-width:1050px) {
  .player-hero {align-items:flex-start;}
  .player-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .roster-member-actions {flex-basis:100%;justify-content:flex-start;margin-left:60px;}
  .clan-roster-row {flex-wrap:wrap;}
}
@media(max-width:700px) {
  .player-hero,.clan-hero {padding:22px 18px;margin-top:25px;}
  .player-identity,.clan-hero-row {gap:13px;align-items:flex-start;}
  .player-portrait {width:65px;height:65px;border-radius:14px;}
  .player-identity-copy h1 {font-size:clamp(22px,6vw,32px);}
  .player-actions {width:100%;}
  .player-actions .btn {min-width:0;}
  .player-content-grid{grid-template-columns:1fr;}
  .elo-panel,.player-clan-card{min-height:0;}
  .clan-big-mark {width:65px;height:65px;border-radius:13px;font-size:16px;}
  .clan-hero h1 {font-size:30px;}
  .clan-hero p {font-size:12px;}
  .roster-count {display:none;}
  .roster-member-actions{margin-left:0;flex-basis:100%;}
  .clan-roster .roster-row{gap:8px;}
  .clan-roster-row .rating{margin-left:auto;}
}
@media(max-width:440px) {
  .player-stat {padding:15px;}
  .player-stat strong {font-size:24px;}
  .player-stat strong.player-stat-clan {font-size:19px;}
  .player-stat>span{font-size:8px;}
  .player-actions {flex-direction:column;align-items:stretch;}
  .player-actions form,.player-actions .btn{width:100%;}
  .elo-panel-head {align-items:flex-start;flex-direction:column;}
  .roster-member-actions form{flex:1 1 130px;}
  .roster-member-actions .btn{width:100%;}
  .clan-hero-row{flex-direction:column;}
  .clan-big-mark{height:62px;width:62px;}
}


/* CSArena v6 — Tournament registrations and bracket presentation */
.tourney-dates{display:flex;flex-wrap:wrap;gap:14px;margin:16px 0 22px;color:#9eacc8;font-size:12px}
.tourney-dates span{padding:10px 14px;border:1px solid #2b3a58;border-radius:10px;background:#151e32}
.tourney-dates strong{color:#dfe7fa;margin-right:8px}
.tourney-registered,.tourney-admin-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0;padding:20px}
.tourney-registered strong,.tourney-admin-tools h3{font-size:17px;color:#f5f7ff}
.tourney-registered p,.tourney-admin-tools p{margin:3px 0 0;font-size:12px}
.tourney-admin-tools h3{margin:5px 0}
.tourney-admin-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}
.tourney-admin-actions form,.tourney-registered form{margin:0}
.tourney-roster-list{overflow:hidden;margin-bottom:24px}
.tourney-roster-row{display:grid;grid-template-columns:48px minmax(0,1fr) 85px 150px;align-items:center;gap:12px;padding:15px 19px;color:#dce4f7;border-top:1px solid #293852;text-decoration:none}
.tourney-roster-row:first-child{border-top:0}
.tourney-roster-row:hover{background:#1e2b45}
.seed-label{color:#86a6f9;font-weight:850}
.tourney-roster-row>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tourney-roster-row>span:nth-child(3){font-variant-numeric:tabular-nums;color:#b0bfdc}
.roster-flag{font-size:11px;padding:6px 8px;text-align:center;border:1px solid #365678;border-radius:8px}
.roster-flag.is-ready{color:#80eac1;background:#122d2c;border-color:#27534e}
.roster-flag.is-incomplete{color:#f5c58f;background:#30251e;border-color:#71523a}
.bracket-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #33415f;border-radius:14px;background:linear-gradient(150deg,#141f35,#111a2d);padding:22px 18px;scrollbar-color:#5177b9 #101929}
.bracket-scroll:focus-visible{outline:2px solid #85a6ff;outline-offset:3px}
.bracket-board{display:flex;align-items:stretch;gap:17px;width:max-content;min-width:100%;padding-bottom:4px}
.bracket-round{width:250px;min-width:250px;display:flex;flex-direction:column;gap:15px}
.bracket-round-head{padding:2px 4px 10px;border-bottom:1px solid #364662}
.bracket-round-head span{font-size:10px;font-weight:900;letter-spacing:1.7px;color:#85a5ff}
.bracket-round-head h3{font-size:16px;margin:6px 0 0;letter-spacing:-.3px}
.bracket-round-matches{flex:1;display:flex;flex-direction:column;justify-content:space-around;gap:15px}
.bracket-fixture{border:1px solid #3a4b6d;border-radius:10px;overflow:hidden;background:#172440;box-shadow:0 8px 22px #070e1c26}
.bracket-fixture-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 11px;background:#1d2b47;color:#93a9d0;font-size:9px;font-weight:900;letter-spacing:1px}
.bracket-team{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 10px;border-top:1px solid #344562;font-size:12px;line-height:1.4;min-height:44px}
.bracket-team>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bracket-team.is-winner{color:#82e3c6;background:rgba(65,206,145,.07);font-weight:800}
.bracket-fixture-status{padding:9px 11px;color:#96a9cf;font-size:10px;border-top:1px solid #344562}
.bracket-help{margin:11px 3px 24px;font-size:12px}
.admin-event-list{display:grid;gap:10px;margin:0 0 20px}
.admin-event-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 95px 95px;align-items:center;gap:12px;padding:16px 18px;text-decoration:none;color:#dbe6fa}
.admin-event-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-event-row span:nth-child(2){font-size:10px;color:#91acff;font-weight:900}
.admin-event-row small{color:#9baccd}
.admin-event-arrow{font-size:12px;color:#8eaaff}
@media(max-width:760px){.tourney-registered,.tourney-admin-tools{align-items:stretch;flex-direction:column}.tourney-admin-actions{width:100%}.tourney-roster-row{grid-template-columns:32px minmax(0,1fr) 115px;gap:8px;padding:12px}.tourney-roster-row>span:nth-child(3){display:none}.admin-event-row{grid-template-columns:minmax(0,1fr) 80px;gap:4px}.admin-event-row small,.admin-event-arrow{display:none}.bracket-round{width:224px;min-width:224px}}

.bracket-draft{padding:17px 20px;margin:16px 0}
.bracket-draft summary{cursor:pointer;font-weight:800;color:#d7e4ff}
.bracket-draft p{font-size:12px;margin:8px 0 14px}
.bracket-draft-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:9px}
.bracket-draft-list>div{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 12px;background:#1b2942;border:1px solid #314564;border-radius:9px}
.bracket-draft-list strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bracket-draft-list span{font-size:10px;color:#87a4ed;flex-shrink:0}

/* v7 dynamic homepage hero, with colour and image controlled from admin. */
body.page-home::before{background-size:cover;background-position:center 43%;background-repeat:no-repeat}
.site-header .admin-site-link{font-size:11px;color:#a4beff;font-weight:800;text-transform:uppercase;letter-spacing:.3px;white-space:nowrap}
.site-header .admin-site-link:hover{color:#fff}
@media(max-width:760px){.site-header .admin-site-link{display:none}}


/* v7.2 — xVPS reference: the poster, optional video and shade are one media layer.
   The backing image always appears even when video playback is unsupported. */
body.page-home::before, body.page-home::after {content:none !important;}
body.page-home > .home-banner-media {
  position:absolute; inset:0 0 auto 0; height:760px; width:100%;
  overflow:hidden; isolation:isolate; pointer-events:none; z-index:0;
  background:#0b1324;
}
.home-banner-media .home-banner-still,
.home-banner-media .home-banner-video {
  position:absolute; inset:0; width:100%; height:100%;
  display:block; object-fit:cover; object-position:center 43%;
}
.home-banner-media .home-banner-still {z-index:0;}
.home-banner-media .home-banner-video {
  z-index:1; opacity:0; transition:opacity .32s ease;
}
.home-banner-media .home-banner-video.is-playing {opacity:1;}
body.page-home > .home-banner-media::after {
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,rgba(9,17,34,.82) 0%,rgba(11,20,40,.76) 44%,rgba(11,20,40,.46) 80%),linear-gradient(0deg,#101625 0%,transparent 48%);
}
body.page-home > .site-header-shell {position:sticky;z-index:50;}
body.page-home > main,body.page-home > .hosting-footer {position:relative;z-index:1;}
@media(max-width:600px) {
  body.page-home > .home-banner-media {height:650px;}
  .home-banner-media .home-banner-still,
  .home-banner-media .home-banner-video {object-position:69% center;}
}
@media(prefers-reduced-motion:reduce) {
  .home-banner-media .home-banner-video {display:none;transition:none;}
}


/* CSArena v7.3 — Align the xVPS-style quick links with the REAL banner edge.
   The hero media starts at the top of the page, behind the floating header.
   Its height must include the header's normal-flow height; otherwise the cards
   overlap the text section but land well ABOVE the image/video's bottom edge. */
body.page-home {
  --arena-banner-height: 760px;
  --arena-header-flow-height: 110px; /* 74px floating header + 18px padding each side */
}
body.page-home > .home-banner-media {
  height: var(--arena-banner-height);
}
body.page-home .hero-shell.cs2-banner {
  min-height: calc(var(--arena-banner-height) - var(--arena-header-flow-height));
}
/* The 62px-tall cards now sit halfway over the bottom edge, as on xVPS. */
body.page-home .quick-nav {
  margin-top: -31px;
}
@media (max-width: 850px) and (min-width: 601px) {
  body.page-home {
    --arena-header-flow-height: 106px; /* 70px header + 18px padding each side */
  }
}
@media (max-width: 600px) {
  body.page-home {
    --arena-banner-height: 650px;
    --arena-header-flow-height: 90px; /* observed mobile header flow, including compact nav */
  }
  /* Two columns / two rows on phones: overlap one card edge, not the whole grid. */
  body.page-home .quick-nav {
    margin-top: -26px;
  }
}

/* CSArena v8 — Public clan/player headquarters. Does not touch the homepage hero. */
.showcase-cover{position:relative;isolation:isolate;min-height:380px;margin:38px 0 0;border-radius:18px 18px 0 0;overflow:hidden;background:radial-gradient(ellipse at 76% 34%,#294f88 0,transparent 54%),linear-gradient(120deg,#101c35 0%,#183357 52%,#0e1728 100%);border:1px solid #344768;border-bottom:0}
.player-showcase{background:radial-gradient(ellipse at 80% 25%,#31518d 0,transparent 53%),linear-gradient(130deg,#10182e,#19305a 70%,#0c1427)}
.showcase-cover:after{content:"";position:absolute;right:-7%;top:-85%;height:620px;width:620px;border:1px solid #8aa8eb19;box-shadow:0 0 0 70px #88a8f008,0 0 0 140px #88a8f008;transform:rotate(-16deg);border-radius:50%;z-index:-1}
.showcase-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 38%;z-index:-2}
.showcase-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0c152bf5 0%,#0f1a31c7 43%,#0e1b319e 75%,#0b14299c),linear-gradient(0deg,#0c152be8,transparent 60%);z-index:-1}
.showcase-content{position:relative;z-index:1;padding:64px 42px 42px;min-height:380px;display:flex;flex-direction:column;justify-content:flex-end}
.showcase-tag{font-size:10px;font-weight:900;letter-spacing:1.8px;color:#aec4ff;margin-bottom:22px;text-transform:uppercase}
.showcase-tag span{margin:0 9px;color:#5475b3}
.showcase-identity{display:flex;align-items:center;gap:25px;min-width:0}
.showcase-badge{width:116px;height:116px;flex:0 0 116px;display:grid;place-items:center;border:2px solid #587dbe;border-radius:18px;background:linear-gradient(140deg,#233e6a,#111a2e);box-shadow:0 12px 35px #0409128c;color:#dce8ff;font-size:28px;font-weight:900;letter-spacing:-1px;overflow:hidden}
.showcase-badge img{width:100%;height:100%;display:block;object-fit:cover}
.showcase-badge.player-badge{border-radius:50%;font-size:46px}
.showcase-intro{min-width:0;max-width:820px}
.showcase-subtitle{color:#a7bcf8;font-size:12px;letter-spacing:.6px;font-weight:750}
.showcase-intro h1{font-size:clamp(34px,4.8vw,59px);line-height:1.07;letter-spacing:-1.9px;word-break:break-word;margin:8px 0 13px;font-weight:900}
.showcase-intro p{font-size:14px;color:#c9d6eb;line-height:1.7;max-width:660px;margin:0 0 17px;white-space:pre-line;overflow-wrap:anywhere}
.showcase-meta{display:flex;align-items:center;gap:8px 19px;flex-wrap:wrap;color:#a4b8d7;font-size:11px}
.showcase-meta a{color:#b6caff;font-weight:800}
.showcase-meta a:hover{color:#fff}
.profile-kpis{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#172139;border:1px solid #344668;border-radius:0 0 15px 15px;overflow:hidden;margin-bottom:20px}
.profile-kpi-item{display:flex;min-width:0;flex-direction:column;padding:20px 24px;border-right:1px solid #344668;gap:1px}
.profile-kpi-item:last-child{border-right:0}
.profile-kpi-item>span{font-size:10px;font-weight:850;letter-spacing:1px;text-transform:uppercase;color:#9aafd5}
.profile-kpi-item>strong{font-size:clamp(19px,2.4vw,29px);font-variant-numeric:tabular-nums;color:#f1f5ff;letter-spacing:-.6px}
.profile-kpi-item>small{font-size:11px;color:#86a5ed}
.profile-jumps{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:3px 0 16px;border-bottom:1px solid #293955;margin-bottom:32px}
.profile-jumps a{padding:10px 15px;border-radius:9px;color:#a6b8da;font-size:12px;font-weight:800;transition:background .15s,color .15s}
.profile-jumps a:hover,.profile-jumps a:focus-visible{color:white;background:#1d2d4d}
.profile-section{margin-top:24px;scroll-margin-top:104px}
.profile-section .section-title{margin:0 0 16px}
.profile-section .section-title h2{font-size:clamp(20px,3vw,25px)}
.profile-count{font-size:13px;color:#8eacfb;margin-left:7px}
.profile-section-hint{font-size:11px;color:#879bc1}
.profile-roster{margin-bottom:20px;border-color:#344566}
.profile-roster-row{padding:15px 20px;gap:16px;min-height:78px;flex-wrap:wrap}
.profile-roster-row:hover{background:#1c2942}
.profile-roster-person{display:flex;gap:14px;align-items:center;flex:1 1 220px;min-width:0}
.profile-roster-avatar{height:46px;width:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#2d426b,#15243d);border:1px solid #435e91;color:#b7ccff;font-weight:900;overflow:hidden}
.profile-roster-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.profile-roster-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.profile-roster-copy strong{font-size:13px;color:#f4f6ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-roster-copy small{font-size:11px;color:#97add3}
.profile-roster-rating{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto;min-width:76px}
.profile-roster-rating strong{font-size:17px;color:#dce7ff;font-variant-numeric:tabular-nums}
.profile-roster-rating small{font-size:9px;color:#91abed;letter-spacing:1px}
.profile-roster-row .roster-member-actions{margin:0 0 0 14px;flex:1 0 100%;padding-left:60px}
.profile-fixtures{overflow:hidden;margin-bottom:20px;background:#162137;border-color:#344566}
.profile-fixture{display:flex;align-items:center;gap:17px;padding:18px 20px;border-bottom:1px solid #30405e;color:#e9f0ff;min-width:0}
.profile-fixture:last-child{border-bottom:0}
.profile-fixture>div{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.profile-fixture strong{font-size:13px}
.profile-fixture small{font-size:11px;color:#96a9c9}
.profile-fixture a{color:#c3d2ff}
.profile-fixture a:hover{color:white}
.profile-fixture .fixture-score{color:#eaf1ff;font-size:19px;font-weight:850;white-space:nowrap}
.result-pill{padding:7px 10px;border-radius:8px;font-size:10px;font-weight:900;letter-spacing:1px;flex-shrink:0;border:1px solid transparent}
.result-win{background:#163b38;color:#81e4b9;border-color:#2d6352}
.result-loss{background:#47262e;color:#ff9eab;border-color:#7c444d}
.profile-event-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:#9fbcff;background:#23395b;flex-shrink:0}
.profile-event-status{color:#97b2ff;font-size:10px;font-weight:900;letter-spacing:.8px}
.profile-empty{padding:35px 24px;text-align:center;color:#9eb1d1;font-size:13px;margin-bottom:20px}
.profile-empty strong{color:#f0f4fc;font-size:17px;display:block;margin:0 0 7px}
.profile-empty p{margin:0 auto;max-width:500px;line-height:1.65}
.profile-performance{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#172139;border:1px solid #344668;border-radius:13px;overflow:hidden;margin:0 0 26px}
.profile-performance .profile-kpi-item{padding:24px 16px}
.profile-performance .profile-kpi-item>strong{font-size:24px}
.profile-management{margin:12px 0}
.profile-management>summary{cursor:pointer;padding:18px 20px;background:#192740;border:1px solid #34496b;border-radius:11px;color:#dbe7ff;font-weight:850;font-size:13px}
.profile-management[open]>summary{border-radius:11px 11px 0 0}
.profile-management>.form-panel{margin:0;border-radius:0 0 11px 11px}
.profile-management .form-panel h3{margin:5px 0 10px}
.profile-rule{border:0;border-top:1px solid #344563;margin:28px 0 25px}
.profile-image-removals{display:flex;gap:14px;flex-wrap:wrap;margin:4px 0 20px}
.profile-image-removals label{display:flex;flex-direction:row;align-items:center;gap:9px;margin:0;padding:9px 12px;background:#15233a;border:1px solid #304360;border-radius:9px;font-size:11px}
.profile-image-removals input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#3169ff}
.profile-section input[type=file]{max-width:100%;padding:9px;background:#111d32;font-size:11px}
.profile-section .leave-clan-panel{margin-top:18px}
.profile-section .row-actions{flex-shrink:0}
.clan-card .clan-mark{overflow:hidden}
.clan-card .clan-mark img,.mini-logo img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:900px){.profile-performance{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-performance .profile-kpi-item:nth-child(3){border-right:0}.profile-performance .profile-kpi-item:nth-child(n+4){border-top:1px solid #344668}}
@media(max-width:650px){
  .showcase-cover{min-height:325px;margin-top:22px;border-radius:13px 13px 0 0}
  .showcase-content{min-height:325px;padding:44px 19px 24px}
  .showcase-identity{align-items:flex-start;gap:13px}
  .showcase-badge{width:75px;height:75px;flex-basis:75px;border-radius:12px;font-size:17px}
  .showcase-badge.player-badge{font-size:28px}
  .showcase-intro h1{font-size:clamp(25px,6vw,34px);letter-spacing:-1.2px}
  .showcase-intro p{font-size:12px;line-height:1.5}
  .showcase-meta{font-size:10px;gap:6px 13px}
  .showcase-subtitle{font-size:10px}
  .profile-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-kpis .profile-kpi-item:nth-child(2){border-right:0}
  .profile-kpis .profile-kpi-item:nth-child(n+3){border-top:1px solid #344668}
  .profile-kpi-item{padding:14px 16px}
  .profile-kpi-item>strong{font-size:21px}
  .profile-jumps{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
  .profile-jumps a{white-space:nowrap;flex-shrink:0;padding:10px}
  .profile-roster-row .roster-member-actions{padding-left:0;margin-left:0}
  .profile-roster-person{flex-basis:165px;gap:9px}
  .profile-roster-avatar{height:37px;width:37px;flex-basis:37px}
  .profile-roster-rating{min-width:48px}
  .profile-roster-rating strong{font-size:15px}
  .profile-fixture{padding:13px;gap:9px}
  .profile-performance{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-performance .profile-kpi-item{border-right:1px solid #344668;border-top:1px solid #344668;padding:17px 14px}
  .profile-performance .profile-kpi-item:nth-child(-n+2){border-top:0}
  .profile-performance .profile-kpi-item:nth-child(even){border-right:0}
  .profile-section-hint{display:none}
  .profile-section .form-panel{padding:18px}
  .profile-section .row-actions{flex-wrap:wrap}
}

/* v9 — Match archive. Scoped so the xVPS-like homepage is unchanged. */
.history-context{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 22px;color:#a6b8d8;font-size:13px}
.history-context strong{color:#eef2ff;font-weight:750}
.history-context a{color:#8aaaff;margin-left:auto;text-decoration:none}
.history-tabs{display:flex;flex-wrap:wrap;gap:9px;border-bottom:1px solid #30415f;margin:14px 0 28px;padding-bottom:13px}
.history-tabs a{border:1px solid #344668;border-radius:12px;color:#b5c3df;background:#162137;padding:13px 19px;font-weight:750;font-size:13px;text-decoration:none;transition:background .15s,border-color .15s}
.history-tabs a:hover,.history-tabs a.selected{background:#2758df;border-color:#416ef5;color:#fff}
.history-intro{display:flex;justify-content:space-between;gap:25px;align-items:center;margin:26px 0 20px}
.history-intro h2{font-size:25px;margin:8px 0}
.history-intro p{color:#b0bfd9;max-width:640px;line-height:1.65;margin:0}
.history-source{border:1px solid #344663;color:#91add9;border-radius:8px;padding:9px 12px;white-space:nowrap;font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.history-empty{padding:40px 30px!important;max-width:none!important}
.history-empty h3{font-size:20px;margin:0 0 10px}
.history-empty p{max-width:690px;color:#afbdd7;line-height:1.7;margin:0 0 20px}
.history-external{color:#9bbaff;text-decoration:underline;text-underline-offset:4px}
.history-results{display:grid;gap:10px}
.history-match{display:flex;gap:20px;align-items:center;padding:19px 20px!important;min-width:0}
.history-match-body{flex:1;min-width:0;display:grid;gap:7px}
.history-match-body strong{font-size:16px;color:#f4f7ff}
.history-match-body small{font-size:12px;color:#9eacc6;line-height:1.5}
.history-match a{color:inherit;text-decoration:none}
.history-match a:hover{color:#83a5ff}
.history-match-stats{display:grid;gap:5px;text-align:right;min-width:110px}
.history-match-stats strong{font-size:18px;color:#f4f7ff}
.history-match-stats small{font-size:11px;color:#a6b6d3}
.history-match .result-pill{flex:0 0 auto}
.history-draw{background:rgba(109,135,177,.17);color:#b5c2d8}
@media(max-width:700px){.history-intro{align-items:flex-start;flex-direction:column;gap:10px}.history-tabs{display:grid;grid-template-columns:1fr 1fr}.history-tabs a{padding:12px 10px;text-align:center}.history-match{gap:10px;padding:15px 12px!important;flex-wrap:wrap}.history-match-body{flex-basis:calc(100% - 95px)}.history-match-stats{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;padding-top:8px;border-top:1px solid #293955}.history-context a{margin-left:0}}


/* v9.1 — Avatar-only account navigation. Keep the Steam name out of the header,
   preserve access to the dashboard/profile and provide a fallback without API access. */
.site-header .account-menu {position:relative;flex:0 0 auto;min-width:42px;}
.site-header .account-avatar-trigger {
  position:relative;display:grid;place-items:center;width:42px;height:42px;
  padding:0;border:2px solid #526c9b;border-radius:50%;
  background:linear-gradient(145deg,#344d78,#192842);color:#c5d6ff;
  list-style:none;cursor:pointer;isolation:isolate;
  transition:border-color .16s,box-shadow .16s,transform .16s;
}
.site-header .account-avatar-trigger::-webkit-details-marker{display:none;}
.site-header .account-avatar-trigger:hover,
.site-header .account-menu[open] .account-avatar-trigger {
  border-color:#7ca0ff;box-shadow:0 0 0 3px rgba(56,106,255,.16);
}
.site-header .account-avatar-trigger img {
  display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;
}
.site-header .account-avatar-placeholder {width:22px;height:22px;}
.site-header .account-online-dot {
  position:absolute;right:-2px;bottom:-1px;width:11px;height:11px;
  background:#50d6a1;border:2px solid #121b2f;border-radius:50%;
}
.site-header .account-menu-popover {
  position:absolute;z-index:90;right:-22px;top:calc(100% + 23px);
  width:min(236px,calc(100vw - 28px));padding:8px;
  background:#141f34;border:1px solid #3b4c70;border-radius:14px;
  box-shadow:0 22px 55px rgba(2,7,20,.65);text-align:left;
}
.site-header .account-menu-info {
  padding:12px 12px 13px;margin-bottom:6px;
  border-bottom:1px solid #33435f;min-width:0;
}
.site-header .account-menu-info strong {
  display:block;color:#f4f7ff;font-size:13px;font-weight:800;
  overflow-wrap:anywhere;line-height:1.35;
}
.site-header .account-menu-info span {
  display:block;margin-top:4px;color:#9fb1cf;font-size:11px;
}
.site-header .account-menu-popover > a,
.site-header .account-menu-popover > form > button {
  display:block;width:100%;border:0;border-radius:8px;
  padding:11px 12px;color:#dfe8fb;background:transparent;
  text-decoration:none;text-align:left;font-size:12px;
  font-weight:650;line-height:1.3;cursor:pointer;
}
.site-header .account-menu-popover > a:hover,
.site-header .account-menu-popover > a:focus-visible,
.site-header .account-menu-popover > form > button:hover,
.site-header .account-menu-popover > form > button:focus-visible {
  background:#233657;color:#fff;
}
.site-header .account-menu-popover > form {
  margin:6px 0 0;padding-top:6px;border-top:1px solid #33435f;
}
.site-header .account-menu-popover > form > button {color:#f0a9a9;}
@media(max-width:600px) {
  .site-header .account-menu{min-width:38px;}
  .site-header .account-avatar-trigger{width:38px;height:38px;}
  .site-header .account-menu-popover{top:calc(100% + 20px);right:-10px;}
}

/* v11 — Competitive ELO hub: isolated from the xVPS-style nav, hero/video and footer. */
.elo-hero{
  position:relative;isolation:isolate;overflow:hidden;margin:19px 0 26px;
  border:1px solid #344c7c;border-radius:22px;
  padding:clamp(28px,5vw,64px);min-height:310px;
  background:radial-gradient(ellipse 70% 95% at 96% 8%,rgba(44,91,205,.33),transparent 67%),
             linear-gradient(130deg,#172842 0%,#101a2c 64%,#0d1625 100%);
}
.elo-hero::after{content:"";position:absolute;z-index:-1;right:-108px;top:-135px;width:460px;height:460px;border-radius:50%;border:1px solid rgba(104,147,250,.17);box-shadow:0 0 0 74px rgba(99,141,248,.035),0 0 0 151px rgba(99,141,248,.025)}
.elo-hero h1{font-size:clamp(32px,4.9vw,60px);letter-spacing:-.045em;line-height:1.07;margin:13px 0 16px;max-width:780px}
.elo-hero h1 span{color:#7299ff}
.elo-hero p{font-size:14px;line-height:1.8;color:#bac8e0;max-width:640px;margin:0 0 25px}
.elo-hero-metrics{display:flex;flex-wrap:wrap;gap:15px 30px}
.elo-hero-metrics>div{min-width:130px;display:grid;gap:3px}
.elo-hero-metrics strong{font-size:25px;line-height:1.25;color:#f2f5ff}
.elo-hero-metrics small{font-size:11px;color:#9daece}
.elo-tabs{display:flex;gap:8px;margin:18px 0 22px;flex-wrap:wrap}
.elo-tabs a{padding:11px 19px;background:#18263f;border:1px solid #33476a;border-radius:99px;font-size:12px;font-weight:800;color:#afc1dd;transition:background .2s,color .2s}
.elo-tabs a.selected,.elo-tabs a:hover{background:#285bf6;border-color:#416cff;color:#fff}
.elo-ladder{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 34px}
.elo-ladder-item{min-width:0;display:grid;justify-items:center;gap:4px;text-align:center;border:1px solid #344564;border-radius:14px;padding:17px 7px;background:linear-gradient(135deg,#19253d,#111c2d)}
.elo-ladder-item strong{font-size:13px;color:#e6eeff}
.elo-ladder-item small{font-size:11px;color:#96a8c5}
.elo-ladder-glyph{font-size:23px;line-height:1.2;color:#8998b6;text-shadow:0 0 25px currentColor}
.elo-ladder-item.tier-gold .elo-ladder-glyph{color:#fac96f}
.elo-ladder-item.tier-platinum .elo-ladder-glyph{color:#7cdbde}
.elo-ladder-item.tier-diamond .elo-ladder-glyph{color:#8aa9ff}
.elo-ladder-item.tier-elite .elo-ladder-glyph{color:#d4a6ff}
.elo-overline{font-size:11px;color:#9caecc}
.elo-section-description{font-size:12px;color:#9cacc6;margin:-8px 0 15px}
.elo-empty{display:grid;gap:8px;justify-items:center;text-align:center;padding:35px 18px;margin-bottom:25px}
.elo-empty>span{font-size:35px;color:#7194ff}
.elo-empty h3{font-size:18px;margin:0;color:#eef2ff}
.elo-empty p{font-size:12px;color:#9eb0ce;max-width:570px;margin:0}
.elo-tier-badge.tier-unranked{background:#273653;border-color:#52698a;color:#adc4ec}
.ranking-row .position{flex:0 0 auto}
.ranking-row .elo{display:flex;flex-direction:column;align-items:flex-end;line-height:1.4;min-width:0}
.ranking-row .elo .elo-change{display:block;line-height:1.3;margin-top:2px;font-size:10px;font-weight:700;white-space:nowrap}
.ranking-row .elo .elo-change.positive{color:#66d6aa}
.ranking-row .elo .elo-change.negative{color:#ff9b98}
.elo-activity{margin:0 0 40px;overflow:hidden}
.elo-activity-row{display:grid;grid-template-columns:34px minmax(0,1fr) 72px 110px;gap:12px;align-items:center;padding:14px 20px;border-top:1px solid #2d3c57}
.elo-activity-row:first-child{border-top:0}
.elo-activity-row>div{min-width:0;display:grid;gap:2px}
.elo-activity-row>div>a{color:#e8edfb;font-size:13px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.elo-activity-row>div>a:hover{color:#86a5ff}
.elo-activity-row small{font-size:11px;color:#93a4c2}
.elo-activity-row>strong{text-align:right;font-size:15px}
.elo-activity-symbol{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#243b63;color:#8aa9ff;font-size:16px}
.elo-activity-after{text-align:right;color:#abbcda;font-size:12px;white-space:nowrap}
.elo-rules{border-top:1px solid #293b5b;padding:18px 0 38px;margin-top:16px}
.elo-rules h2{font-size:25px;margin:10px 0 21px}
.elo-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.elo-rule-grid article{border:1px solid #334968;border-radius:14px;padding:22px;background:linear-gradient(155deg,#192941,#111b2d)}
.elo-rule-grid article>span{font-size:10px;font-weight:800;letter-spacing:.1em;color:#779eff}
.elo-rule-grid article h3{font-size:16px;margin:11px 0 8px}
.elo-rule-grid article p{font-size:12px;line-height:1.75;color:#aabbd6;margin:0}
.elo-fineprint{font-size:11px;color:#9baecb;line-height:1.65;max-width:790px;margin:18px 0 0}
@media(max-width:760px){
  .elo-ladder{grid-template-columns:repeat(3,minmax(0,1fr))}
  .elo-rule-grid{grid-template-columns:1fr}
  .elo-hero{min-height:0}
}
@media(max-width:500px){
  .elo-hero{border-radius:15px;padding:27px 20px}
  .elo-hero-metrics{gap:12px}
  .elo-hero-metrics>div{min-width:0;flex:1 1 80px}
  .elo-hero-metrics strong{font-size:20px}
  .elo-ladder{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .elo-ladder-item{padding:12px 5px}
  .elo-activity-row{padding:12px;grid-template-columns:25px minmax(0,1fr) 50px;gap:8px}
  .elo-activity-after{display:none}
  .elo-activity-symbol{width:25px;height:25px}
  .elo-activity-row>strong{font-size:12px}
  .ranking-row .elo .elo-change{white-space:normal;text-align:right}
}

/* v12 — classic CS:GO-inspired 18-rank ladder; contained to ELO views. */
.elo-ladder.classic-rank-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:37px}
.classic-ranks-title{margin-top:24px}
.classic-rank-grid .elo-ladder-item{min-width:0;justify-content:start;align-content:center;gap:8px;padding:16px 9px 14px;border-color:#314363;background:linear-gradient(160deg,#1a2942,#101928);min-height:132px}
.classic-rank-grid .elo-ladder-item:hover{border-color:#7799df;background:linear-gradient(160deg,#233454,#111c30)}
.classic-rank-grid .elo-ladder-item strong{font-size:11px;line-height:1.25;letter-spacing:-.04px;min-height:28px;display:grid;place-items:center;overflow-wrap:anywhere}
.classic-rank-grid .elo-ladder-item small{font-size:10px;letter-spacing:.01em}
.classic-rank-art{display:block;width:clamp(54px,70%,98px);height:39px;object-fit:contain;object-position:center}
.classic-rank-grid .rank-group-silver{border-top:2px solid #72809a}
.classic-rank-grid .rank-group-gold{border-top:2px solid #d7b260}
.classic-rank-grid .rank-group-guardian{border-top:2px solid #91abf5}
.classic-rank-grid .rank-group-eagle{border-top:2px solid #c8a04d}
.classic-rank-grid .rank-group-elite{border-top:2px solid #d8ba61}
.elo-tier-badge.csgo-rank-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 7px;border:1px solid #344665;background:#1c2b44;border-radius:7px;color:#d6e3fa;vertical-align:middle;text-transform:none;letter-spacing:0;font-size:10px;line-height:1.3;font-weight:750;white-space:normal;text-align:left}
.csgo-rank-badge img{flex:0 0 auto;width:31px;height:16px;object-fit:contain}
.csgo-rank-badge span{min-width:0;overflow-wrap:anywhere}
.elo-tier-badge.csgo-rank-badge.rank-group-silver{border-color:#525d72;color:#c3cbdb}
.elo-tier-badge.csgo-rank-badge.rank-group-gold{border-color:#827043;color:#f0d58b}
.elo-tier-badge.csgo-rank-badge.rank-group-guardian{border-color:#495e8b;color:#c1d1fa}
.elo-tier-badge.csgo-rank-badge.rank-group-eagle,.elo-tier-badge.csgo-rank-badge.rank-group-elite{border-color:#827044;color:#e8d3a0}
.player-stat strong.player-stat-rank{display:flex;align-items:center;gap:9px;font-size:clamp(13px,1.5vw,18px);letter-spacing:0;line-height:1.2;min-width:0}
.player-stat-rank span{overflow-wrap:anywhere}
.player-rank-art{width:54px;height:26px;object-fit:contain;flex:0 0 54px}
@media(max-width:1080px){.elo-ladder.classic-rank-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.elo-ladder.classic-rank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.classic-rank-grid .elo-ladder-item{padding:12px 8px;min-height:117px}.classic-rank-grid .elo-ladder-item strong{font-size:10px}.classic-rank-art{width:86px;height:36px}.csgo-rank-badge img{width:25px}.elo-tier-badge.csgo-rank-badge{gap:4px;font-size:9px;padding:2px 4px}.player-rank-art{width:43px;flex-basis:43px}}

/* v12 public clan and player rank plate. */
.profile-classic-rank{display:flex;align-items:center;gap:16px;min-width:0;padding:14px 20px;margin:15px 0 0;border:1px solid #344763;border-radius:13px;background:linear-gradient(110deg,#16243c,#111c30)}
.profile-classic-icon{display:grid;place-items:center;flex:0 0 112px;height:51px}
.profile-classic-icon img{max-width:107px;width:100%;height:46px;object-fit:contain}
.profile-classic-pending{font-size:31px;line-height:1;color:#8798b7}
.profile-classic-label{display:grid;gap:3px;min-width:0;flex:1}
.profile-classic-label small{font-size:10px;letter-spacing:.08em;color:#99afd5}
.profile-classic-label strong{font-size:clamp(14px,1.8vw,20px);font-weight:800;color:#f1f4fe;line-height:1.3}
.profile-classic-value{font-size:20px;color:#dbe5fa;font-weight:800;white-space:nowrap}
.profile-classic-value small{font-size:10px;color:#93a9ce}
@media(max-width:650px){.profile-classic-rank{padding:12px;gap:9px;flex-wrap:wrap}.profile-classic-icon{flex:0 0 68px;height:39px}.profile-classic-icon img{max-width:68px;height:35px}.profile-classic-value{font-size:15px;margin-left:auto}.profile-classic-label{flex:1 1 150px}.profile-classic-label strong{font-size:14px}.profile-classic-label small{font-size:9px}}


/* v12.1 — leaderboard polish, scoped to the ELO page.
   Existing homepage hero, navigation/dropdown, player/clan profiles and ranking math are untouched. */
main.container.leaderboard-layout {
  padding-top: 28px; /* separates the card hero from the floating xVPS-style header */
}
.leaderboard-layout .elo-hero {
  margin: 0 0 24px;
  min-height: 295px;
}
.leaderboard-layout .elo-tabs { margin: 20px 0 26px; }
.leaderboard-layout .classic-ranks-title { margin-top: 24px; }
.leaderboard-layout .elo-ladder.classic-rank-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 42px;
  counter-reset: classic-rank;
}
.leaderboard-layout .classic-rank-grid .elo-ladder-item {
  position:relative;
  counter-increment:classic-rank;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:11px;
  min-height:184px;
  padding:23px 17px 20px;
  border-radius:15px;
  background:linear-gradient(155deg,#1b2a43 0%,#101b2f 88%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  transition:border-color .16s ease, background .16s ease, transform .16s ease;
}
.leaderboard-layout .classic-rank-grid .elo-ladder-item::before {
  content:counter(classic-rank, decimal-leading-zero);
  position:absolute;
  top:11px;right:13px;
  color:#7d90b3;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}
.leaderboard-layout .classic-rank-grid .elo-ladder-item:hover {
  border-color:#7597d9;
  background:linear-gradient(155deg,#233656 0%,#14223a 88%);
  transform:translateY(-2px);
}
.leaderboard-layout .classic-rank-grid .classic-rank-art {
  display:block;
  width:min(146px,100%);
  height:61px;
  max-width:100%;
  object-fit:contain;
  object-position:center;
}
.leaderboard-layout .classic-rank-grid .elo-ladder-item strong {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:35px;
  max-width:100%;
  font-size:13px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:0;
  text-align:center;
  color:#edf3ff;
}
.leaderboard-layout .classic-rank-grid .elo-ladder-item small {
  display:inline-flex;
  justify-content:center;
  padding:4px 10px;
  border:1px solid rgba(113,139,191,.25);
  border-radius:99px;
  color:#adbfdf;
  background:#0e192d;
  font-size:11px;
  font-weight:700;
  line-height:1.3;
}
@media (max-width:940px) {
  .leaderboard-layout .elo-ladder.classic-rank-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
}
@media (max-width:650px) {
  main.container.leaderboard-layout {padding-top:16px;}
  .leaderboard-layout .elo-ladder.classic-rank-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .leaderboard-layout .classic-rank-grid .elo-ladder-item {min-height:163px;padding:19px 8px 16px;gap:8px;}
  .leaderboard-layout .classic-rank-grid .classic-rank-art {height:48px;width:min(118px,100%);}
  .leaderboard-layout .classic-rank-grid .elo-ladder-item strong {font-size:11px;min-height:35px;}
  .leaderboard-layout .classic-rank-grid .elo-ladder-item small {font-size:10px;padding:3px 7px;}
}
@media (prefers-reduced-motion:reduce) {
  .leaderboard-layout .classic-rank-grid .elo-ladder-item {transition:none;}
  .leaderboard-layout .classic-rank-grid .elo-ladder-item:hover {transform:none;}
}


/* CSArena v12.3 — public PLAYER profile polish. Scoped away from the clan and ELO pages. */
.player-showcase {
  min-height:326px;
  margin-top:22px;
  border-radius:17px 17px 0 0;
  border-bottom:0;
}
.player-showcase .showcase-content {
  min-height:326px;
  padding:42px 38px 32px;
  justify-content:flex-end;
}
.player-showcase .showcase-tag {margin-bottom:16px;}
.player-showcase .showcase-badge.player-badge {width:100px;height:100px;flex-basis:100px;}
.player-showcase .showcase-intro h1 {font-size:clamp(32px,4.2vw,52px);margin:6px 0 9px;}
.player-showcase .showcase-intro p {margin-bottom:10px;}
.player-showcase .showcase-identity {gap:21px;}
.player-showcase-actions {margin:17px 0 0 121px;}
.player-showcase-actions .btn {min-height:36px;font-size:12px;padding:8px 14px;background:#285bf6;color:#fff;border:1px solid #3f70fc;}
.player-showcase-actions .btn:hover {background:#1e4fdf;border-color:#7a9aff;}
.player-showcase + .profile-classic-rank {
  margin:0;
  border-top:1px solid rgba(93,122,173,.36);
  border-radius:0;
  background:linear-gradient(100deg,#172842,#131e33);
}
.player-showcase + .profile-classic-rank + .profile-kpis {
  border-top:0;
  border-radius:0 0 15px 15px;
  margin-bottom:24px;
}
.player-showcase ~ .profile-jumps {gap:6px;padding-bottom:12px;margin-bottom:28px;}
.player-showcase ~ .profile-jumps a {border:1px solid #2d3e5f;background:#162238;}
.player-showcase ~ .profile-jumps a:hover,
.player-showcase ~ .profile-jumps a:focus-visible {border-color:#627db1;background:#263d63;color:#fff;}

/* Native top-layer dialog: focus management and Escape handled by the browser. */
.player-edit-dialog {
  position:fixed;
  inset:0;
  box-sizing:border-box;
  width:min(640px,calc(100vw - 30px));
  max-width:640px;
  max-height:min(88dvh,820px);
  margin:auto;
  padding:0;
  color:#f0f5ff;
  background:#111c30;
  border:1px solid #465e86;
  border-radius:17px;
  box-shadow:0 25px 90px rgba(0,4,15,.72);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.player-edit-dialog::backdrop {background:rgba(2,7,18,.80);backdrop-filter:blur(7px);}
.player-edit-dialog-head {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 28px 18px;border-bottom:1px solid #334665;}
.player-edit-dialog-head h2 {margin:7px 0 5px;font-size:clamp(22px,3vw,27px);letter-spacing:-.6px;color:#f5f7ff;}
.player-edit-dialog-head p {margin:0;color:#a3b5d3;font-size:12px;line-height:1.6;}
.player-edit-close {width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;font-size:24px;line-height:1;background:#1b2a43;color:#c8d5ed;border:1px solid #3a5074;border-radius:9px;}
.player-edit-close:hover,.player-edit-close:focus-visible {color:white;background:#29436c;}
.player-edit-form {padding:22px 28px 26px;}
.player-edit-form label {margin-bottom:15px;}
.player-edit-form label small {display:block;color:#8099c0;font-size:11px;font-weight:500;margin:-4px 0 2px;}
.player-edit-form input[type=file] {max-width:100%;font-size:11px;}
.player-edit-form .form-grid {gap:14px;}
.player-edit-form .profile-image-removals {margin:2px 0 23px;}
.player-edit-actions {display:flex;justify-content:flex-end;gap:10px;align-items:center;padding-top:17px;border-top:1px solid #32425d;}
.player-edit-dialog :focus-visible {outline:2px solid #83a6ff;outline-offset:3px;}
@media(max-width:650px) {
  .player-showcase {margin-top:14px;min-height:295px;border-radius:13px 13px 0 0;}
  .player-showcase .showcase-content {min-height:295px;padding:37px 18px 24px;}
  .player-showcase .showcase-identity {gap:13px;}
  .player-showcase .showcase-badge.player-badge {width:72px;height:72px;flex-basis:72px;}
  .player-showcase .showcase-intro h1 {font-size:clamp(26px,6vw,34px);letter-spacing:-1px;}
  .player-showcase-actions {margin:15px 0 0 0;}
  .player-showcase-actions .btn {width:100%;}
  .player-showcase + .profile-classic-rank {padding:12px;}
  .player-showcase ~ .profile-section .profile-performance .profile-kpi-item:last-child {grid-column:1 / -1;border-right:0;}
  .player-edit-dialog {width:calc(100vw - 18px);max-height:92dvh;border-radius:13px;}
  .player-edit-dialog-head {padding:19px 18px 15px;}
  .player-edit-form {padding:18px;}
  .player-edit-form .form-grid {grid-template-columns:1fr;gap:4px;}
  .player-edit-actions {gap:9px;}
  .player-edit-actions .btn {flex:1;}
}
@media(prefers-reduced-motion:reduce){.player-edit-dialog::backdrop{backdrop-filter:none;}}

/* CSArena v12.6 — Show custom player banners clearly without changing the
   default banner. The uploaded artwork is a single image, not a second layer.
   The left-side gradient preserves contrast under the player name. */
.player-showcase > .showcase-cover-image + .showcase-shade {
  background:
    linear-gradient(90deg,
      rgba(8,16,34,.80) 0%,
      rgba(8,16,34,.62) 33%,
      rgba(8,16,34,.24) 72%,
      rgba(8,16,34,.08) 100%),
    linear-gradient(0deg,rgba(8,16,34,.33),transparent 68%);
}
/* Hide CSArena's decorative circle motif when personal artwork is uploaded. */
.player-showcase:has(> .showcase-cover-image)::after {display:none;}
@media (max-width:650px) {
  /* Stronger left tint on small screens where the copy occupies more width. */
  .player-showcase > .showcase-cover-image + .showcase-shade {
    background:linear-gradient(90deg,
      rgba(8,16,34,.84),rgba(8,16,34,.58) 67%,rgba(8,16,34,.28)),
      linear-gradient(0deg,rgba(8,16,34,.28),transparent 75%);
  }
}

/* CSArena v12.7 — player profile tabs. Clan page jump links remain unchanged. */
.player-profile-tabs[role="tablist"] { margin-bottom:20px; }
.player-showcase ~ .player-profile-tabs[role="tablist"] a[role="tab"] {
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #344866;background:#16233b;color:#bacbed;
  min-height:41px;white-space:nowrap;
}
.player-showcase ~ .player-profile-tabs[role="tablist"] a[role="tab"].is-active,
.player-showcase ~ .player-profile-tabs[role="tablist"] a[role="tab"][aria-selected="true"] {
  color:#fff;background:#285bf6;border-color:#4678ff;
  box-shadow:0 5px 20px rgba(21,71,195,.20);
}
.player-showcase ~ .player-profile-tabs[role="tablist"] a[role="tab"]:focus-visible {
  outline:2px solid #92b5ff;outline-offset:3px;
}
.player-profile-tabs[role="tablist"] ~ .profile-section[role="tabpanel"] { margin-top:0; }
.player-profile-tabs[role="tablist"] ~ .profile-section[role="tabpanel"][hidden] { display:none !important; }

/* v12.8 — Clan profile navigation. Only activates after the clan tab JS runs.
   Designed to match v12.7 player tabs without changing clan branding or forms. */
.clan-profile-tabs[role="tablist"] { gap:6px; padding-bottom:12px; margin-bottom:26px; }
.clan-profile-tabs[role="tablist"] a[role="tab"] {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:41px;padding:10px 15px;white-space:nowrap;
  border:1px solid #344866;border-radius:9px;
  background:#16233b;color:#bacbed;
}
.clan-profile-tabs[role="tablist"] a[role="tab"]:hover { border-color:#627db1; background:#263d63; color:#fff; }
.clan-profile-tabs[role="tablist"] a[role="tab"].is-active,
.clan-profile-tabs[role="tablist"] a[role="tab"][aria-selected="true"] {
  color:#fff;background:#285bf6;border-color:#4678ff;
  box-shadow:0 5px 20px rgba(21,71,195,.2);
}
.clan-profile-tabs[role="tablist"] a[role="tab"]:focus-visible {
  outline:2px solid #92b5ff;outline-offset:3px;
}
.clan-profile-tabs[role="tablist"] ~ .profile-section[role="tabpanel"] { margin-top:0; }
.clan-profile-tabs[role="tablist"] ~ .profile-section[role="tabpanel"][hidden] { display:none !important; }
@media (max-width:650px) {
  .clan-profile-tabs[role="tablist"] { gap:6px;overflow-x:auto;scrollbar-width:thin; }
  .clan-profile-tabs[role="tablist"] a[role="tab"] { padding:10px 13px; flex-shrink:0; }
}

/* CSArena v12.9 — Clan headquarters alignment.
   Match the continuous player profile banner → rank → stats treatment.
   Scope to .clan-showcase to protect the homepage and player pages. */
.clan-showcase {
  min-height:326px;
  margin-top:22px;
  border-radius:17px 17px 0 0;
  border-bottom:0;
}
.clan-showcase .showcase-content {
  min-height:326px;
  padding:42px 38px 32px;
  justify-content:flex-end;
}
.clan-showcase .showcase-tag {margin-bottom:16px;}
.clan-showcase .showcase-identity {gap:21px;}
.clan-showcase .showcase-badge.clan-logo {width:100px;height:100px;flex-basis:100px;}
.clan-showcase .showcase-intro h1 {font-size:clamp(32px,4.2vw,52px);margin:6px 0 9px;}
.clan-showcase .showcase-intro p {margin-bottom:10px;}
.clan-showcase + .profile-classic-rank {
  margin:0;
  border-top:1px solid rgba(93,122,173,.36);
  border-radius:0;
  background:linear-gradient(100deg,#172842,#131e33);
}
.clan-showcase + .profile-classic-rank + .profile-kpis {
  border-top:0;
  border-radius:0 0 15px 15px;
  margin-bottom:24px;
}
@media(max-width:650px) {
  .clan-showcase {min-height:295px;margin-top:14px;border-radius:13px 13px 0 0;}
  .clan-showcase .showcase-content {min-height:295px;padding:37px 18px 24px;}
  .clan-showcase .showcase-identity {gap:13px;}
  .clan-showcase .showcase-badge.clan-logo {width:72px;height:72px;flex-basis:72px;}
  .clan-showcase .showcase-intro h1 {font-size:clamp(26px,6vw,34px);letter-spacing:-1px;}
  .clan-showcase + .profile-classic-rank {padding:12px;}
}


/* v13.0 — Separate clan discovery from clan creation. Scoped to the two pages. */
.clan-directory-heading {
  display:flex;align-items:end;justify-content:space-between;gap:24px;
}
.clan-directory-heading .page-heading {min-width:0;flex:1;}
.clan-directory-actions {display:flex;align-items:center;flex:0 0 auto;padding-bottom:33px;}
.clan-directory-actions .btn {min-width:144px;}
.clan-directory-summary {
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 2px 13px;border-bottom:1px solid #30405d;
  color:#a4b5d1;font-size:12px;
}
.clan-directory .clan-grid {margin-top:17px;margin-bottom:40px;}
.clan-directory .clan-card {min-height:100px;}
.clan-directory .clan-card h3 {overflow-wrap:anywhere;}
.clan-create-panel {max-width:850px;margin:7px 0 48px;padding:32px;background:#171f31;}
.clan-create-panel-heading {
  display:flex;align-items:start;justify-content:space-between;gap:22px;
  padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid #34425e;
}
.clan-create-panel-heading h2 {margin:6px 0 9px;font-size:clamp(21px,2.5vw,28px);letter-spacing:-.6px;}
.clan-create-panel-heading p {margin:0;max-width:610px;line-height:1.65;}
.clan-create-step {
  flex:0 0 auto;padding:7px 11px;border:1px solid #42577f;
  border-radius:8px;color:#9cbbff;font-size:11px;font-weight:800;letter-spacing:.5px;
}
.clan-create-panel label {font-size:12px;}
.clan-create-panel input,.clan-create-panel textarea {border-radius:9px;}
.clan-create-actions {display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:8px;}
.clan-create-gate {max-width:850px;padding:32px;margin-bottom:50px;}
.clan-create-gate h2 {margin:0 0 8px;font-size:23px;}
.clan-create-gate p {margin:0 0 20px;max-width:660px;}
.clan-create-gate form {margin:0;}
.clan-back-link {display:inline-block;margin-left:17px;color:#a5bbeb;font-size:12px;font-weight:700;}
.clan-back-link:hover {color:#fff;}
@media(max-width:700px) {
  .clan-directory-heading {align-items:stretch;flex-direction:column;gap:0;}
  .clan-directory-heading .page-heading {padding-bottom:10px;}
  .clan-directory-actions {padding-bottom:24px;}
  .clan-directory-actions .btn {width:100%;}
  .clan-create-panel,.clan-create-gate {padding:20px;}
  .clan-create-panel-heading {gap:10px;}
  .clan-create-step {display:none;}
  .clan-back-link {margin:15px 0 0;}
}

/* v13.1: keyboard skip link, shared by public pages and staff workspace. */
.skip-to-main{position:fixed;left:16px;top:-90px;z-index:1100;background:#285bf6;color:#fff;
  padding:10px 16px;border:2px solid #9bb6ff;border-radius:10px;font-weight:800;
  text-decoration:none;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.skip-to-main:focus{top:12px}
#main-content:focus,#admin-content:focus{outline:none}
