:root{--bg:#0e0f11;--side:#141517;--panel:#191b1e;--panel2:#202226;--line:#303237;--text:#f3f3f4;--muted:#8c8e95;--orange:#ff642d;--green:#62c59d;--red:#ed7777}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px Inter,Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.shell{display:flex;min-height:100vh}.sidebar{width:248px;background:var(--side);border-right:1px solid #26282c;flex-shrink:0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{height:91px;padding:24px 22px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #28292d}.brand-mark{font:900 35px 'Barlow Condensed',Impact,sans-serif;letter-spacing:-2px}.brand-mark span{color:var(--orange)}.brand-sub{font-weight:800;letter-spacing:2px;font-size:12px}.brand-sub small{display:block;font-size:8px;color:var(--muted);letter-spacing:1.3px;margin-top:6px}.side-label{font-size:10px;font-weight:700;letter-spacing:2px;color:#666a72;padding:32px 24px 14px}#nav{padding:0 11px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 13px;margin:3px 0;color:#a1a3aa;border-radius:3px;font-size:12px;font-weight:700;letter-spacing:.35px}.nav-item .icon{font-size:16px;width:20px;text-align:center;filter:grayscale(1)}.nav-item.active{background:#2b2422;color:white;border-left:3px solid var(--orange);padding-left:10px}.nav-item.active .icon{filter:none}.nav-item:hover{background:#24262a;color:white}.side-bottom{margin-top:auto;border-top:1px solid var(--line);padding:24px;font-size:10px;color:#b9bbc0;letter-spacing:1px}.side-bottom small{display:block;color:#777b82;margin:7px 0 0 14px}.status-dot{display:inline-block;background:#57c99d;width:7px;height:7px;border-radius:50%;margin-right:6px}.main{min-width:0;flex:1}.topbar{height:73px;border-bottom:1px solid #282a2e;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.crumb{color:#9b9da3;font-size:11px;letter-spacing:1.5px;font-weight:700}.top-actions{display:flex;align-items:center;gap:20px}.demo-tag{color:var(--green);font-size:10px;letter-spacing:1px;font-weight:700}.outline-btn{background:transparent;color:white;border:1px solid #55585f;padding:11px 15px;font-size:10px;font-weight:800;letter-spacing:1px}.outline-btn:hover{border-color:var(--orange)}main{max-width:1450px;padding:34px 38px 80px;margin:auto;min-height:calc(100vh - 125px)}footer{padding:20px 38px;border-top:1px solid #24262a;color:#777980;font-size:10px;letter-spacing:1px;display:flex;justify-content:space-between}h1,h2,h3,p{margin-top:0}h1,h2,h3,.display,.big-number{font-family:'Barlow Condensed',Impact,Arial,sans-serif}h1{font-size:52px;line-height:1;letter-spacing:1px;margin-bottom:10px}h2{font-size:28px;letter-spacing:.5px;margin-bottom:8px}h3{font-size:21px;margin-bottom:8px}.eyebrow{font-size:10px;color:var(--orange);font-weight:800;letter-spacing:2px;margin-bottom:14px}.sub{color:var(--muted);font-size:12px;line-height:1.7}.section-title{display:flex;align-items:end;justify-content:space-between;margin:34px 0 17px}.section-title h2{margin:0}.section-title small{color:var(--muted)}.hero{position:relative;overflow:hidden;min-height:335px;border:1px solid #35373b;background:radial-gradient(ellipse at 75% 45%,#38302b 0%,#17191c 45%,#111214 75%);padding:55px 48px;display:flex;align-items:center}.hero:after{content:'FRAGIX';position:absolute;right:-35px;bottom:-145px;font:900 410px 'Barlow Condensed',Impact,sans-serif;letter-spacing:-22px;color:rgba(255,255,255,.035);pointer-events:none}.hero:before{content:'';position:absolute;width:370px;height:370px;border:1px solid #ff642d40;border-radius:50%;right:12%;top:-65px;box-shadow:0 0 0 60px #ff642d08,0 0 0 120px #ff642d05}.hero-content{position:relative;z-index:1;max-width:590px}.hero h1{font-size:clamp(48px,6vw,83px);line-height:.91}.hero h1 span{color:var(--orange)}.hero .sub{max-width:440px;margin:19px 0 27px}.btn{border:0;background:var(--orange);padding:13px 19px;color:#151515;font-size:11px;font-weight:900;letter-spacing:.8px}.btn:hover{background:#ff865a}.btn.secondary{background:#2a2c30;color:white;border:1px solid #4a4c52}.btn-row{display:flex;gap:10px;flex-wrap:wrap}.grid{display:grid;gap:15px}.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--panel);border:1px solid #303237;padding:22px;min-width:0}.card-label{color:#a3a5ac;letter-spacing:1.3px;font-size:10px;font-weight:800}.big-number{font-size:42px;font-weight:800;margin:10px 0 3px}.big-number.orange{color:var(--orange)}.card-note{color:#81838a;font-size:11px}.bar{height:5px;background:#35373c;margin:15px 0 8px;overflow:hidden}.bar>span{display:block;background:var(--orange);height:100%}.pill{display:inline-flex;align-items:center;gap:5px;background:#34271f;color:#ff986d;border:1px solid #65412e;padding:5px 8px;font-size:10px;font-weight:800}.pill.green{background:#1e302a;border-color:#2f594a;color:#7bdfb2}.pill.red{background:#342525;border-color:#623939;color:#ef9292}.pill.gray{background:#292b2f;border-color:#43454b;color:#b8bac0}.table-wrap{overflow-x:auto;border:1px solid var(--line);background:var(--panel)}table{border-collapse:collapse;width:100%;min-width:690px;text-align:left}th{background:#222428;color:#858890;font-size:10px;letter-spacing:1px;font-weight:800;padding:15px 19px}td{padding:15px 19px;border-top:1px solid #303237;font-size:12px;color:#c8c9ce}tr:hover td{background:#202226}.rank{font:800 20px 'Barlow Condensed';color:#9fa1a7}.rank.top{color:var(--orange)}.player{display:flex;align-items:center;gap:11px;font-weight:800;color:#f1f1f2;white-space:nowrap}.avatar{width:35px;height:35px;background:linear-gradient(140deg,#3c3f45,#1b1d20);border:1px solid #55565c;display:grid;place-items:center;font:800 17px 'Barlow Condensed';color:#ddd;flex-shrink:0}.flag{font-size:19px}.team{font-size:10px;font-weight:800;color:#b7b9bf;letter-spacing:.4px}.elo{font:800 20px 'Barlow Condensed';color:white}.level{display:inline-flex;width:31px;height:31px;border:2px solid var(--orange);border-radius:50%;align-items:center;justify-content:center;font:800 17px 'Barlow Condensed';color:var(--orange)}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.filter{background:#1d1f22;color:#9a9ca3;border:1px solid #34363b;padding:10px 14px;font-weight:800;font-size:10px;letter-spacing:.7px}.filter.active{color:white;border-color:var(--orange)}.search{background:#1c1e21;color:white;border:1px solid #42444a;padding:12px 15px;min-width:220px;outline:none}.search:focus{border-color:var(--orange)}.title-row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.stats-head{display:flex;align-items:center;gap:19px;flex-wrap:wrap}.avatar.large{width:78px;height:78px;font-size:38px}.profile-name{font:800 40px 'Barlow Condensed';margin:0}.muted{color:var(--muted)}.stat-value{font:800 34px 'Barlow Condensed';margin:10px 0}.result-win{color:var(--green);font-weight:800}.result-loss{color:var(--red);font-weight:800}.progress-row{display:flex;justify-content:space-between;font-size:11px;color:#b4b6bc}.level-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.level-card{background:#1b1d20;border:1px solid #32343a;text-align:center;padding:23px 8px}.level-card .level{width:58px;height:58px;font-size:29px;border-width:3px;margin:0 auto 12px}.level-card b{display:block;font-size:11px}.level-card small{display:block;color:#8c8e95;font-size:10px;margin-top:6px}.level-card:last-child{border-color:#8e512e;background:#241e1b}.notice{border-left:3px solid var(--orange);background:#211f1e;padding:16px 19px;color:#c7c7c9;font-size:12px;line-height:1.8}.form-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.select{background:#202226;border:1px solid #45474c;color:white;padding:12px;min-width:230px}.empty{padding:40px 25px;text-align:center;color:#8b8d94;border:1px dashed #484a50}.toast{position:fixed;bottom:25px;right:25px;background:#292c30;border:1px solid #6a6d74;padding:16px 20px;display:none;max-width:320px;z-index:10;line-height:1.6}.toast.show{display:block}.mobile-nav{display:none}.mini-chart{height:140px;width:100%;display:block}.legend{display:flex;gap:16px;color:#a3a5ac;font-size:11px;margin:15px 0}.legend i{display:inline-block;width:8px;height:8px;background:var(--orange);margin-right:5px}.feature-card{cursor:pointer}.feature-card:hover{border-color:#86513b}.feature-card h3{margin:10px 0}.feature-card .arrow{color:var(--orange);font-size:18px}.listline{padding:13px 0;border-bottom:1px solid #34363b;display:flex;justify-content:space-between;gap:15px}.listline:last-child{border:0}.badge-logo{width:40px;height:40px;border:1px solid #484a4f;display:grid;place-items:center;font:900 16px 'Barlow Condensed';background:#25272b}.mono{font-variant-numeric:tabular-nums}@media(max-width:1100px){.sidebar{width:210px}.cols-4{grid-template-columns:repeat(2,1fr)}.level-grid{grid-template-columns:repeat(5,1fr)}}@media(max-width:760px){.sidebar{display:none}.topbar{height:61px;padding:0 17px}.crumb{font-size:9px}.demo-tag{display:none}.outline-btn{font-size:9px;padding:9px}.main{width:100%}main{padding:21px 15px 110px}.hero{padding:35px 23px;min-height:310px}.hero:after{font-size:240px;bottom:-65px}.hero:before{right:-160px}.hero h1{font-size:57px}.cols-3,.cols-2{grid-template-columns:1fr}.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:17px}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#17191c;border-top:1px solid #383a40;display:flex;justify-content:space-around;padding:10px 2px calc(9px + env(safe-area-inset-bottom));z-index:5}.mobile-nav a{font-size:9px;color:#8f9299;text-align:center;min-width:45px}.mobile-nav a span{display:block;font-size:18px;margin-bottom:5px}.mobile-nav a.active{color:var(--orange)}footer{display:none}h1{font-size:42px}.section-title{margin-top:26px}.toast{bottom:85px;left:15px;right:15px;max-width:none}.search{min-width:100%;width:100%}}

/* V3.5 · Rounded bilingual UI refinement, preserves all V3.4 layouts and logic */
:root{--rounded:'Nunito Variable','Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif}
body,button,input,select,textarea{font-family:var(--rounded);font-weight:600}
h1,h2,h3,.display,.big-number,.brand-mark,.rank,.elo,.profile-name,.stat-value,.badge-logo,.level-badge,.avatar{font-family:var(--rounded)!important;font-stretch:normal;letter-spacing:-.025em}
h1,h2,h3{font-weight:900;line-height:1.18}
h1{font-size:clamp(34px,4.5vw,52px)}h2{font-size:26px}h3{font-size:20px}
.hero h1{font-size:clamp(40px,5.7vw,72px);line-height:1.05;letter-spacing:-.045em}
.hero:after{font-family:var(--rounded);font-weight:1000;letter-spacing:-.075em}
.brand-mark{font-size:29px;font-weight:1000;letter-spacing:-.07em}
.brand-sub{letter-spacing:.8px;font-weight:900}.brand-sub small{letter-spacing:1px}
.nav-item{border-radius:11px;font-size:12px;letter-spacing:0;font-weight:800}
.nav-item.active{border-left:0;padding-left:13px;box-shadow:inset 3px 0 var(--orange)}
.card,.level-card,.table-wrap,.hero,.notice,.empty{border-radius:15px}
.card{box-shadow:0 3px 16px #00000013}
.btn,.outline-btn,.filter,.search,.select,.pill,.toast{border-radius:11px}
.btn,.outline-btn,.filter{font-weight:900;letter-spacing:.1px}
.btn{padding:13px 20px}.filter{font-size:11px}
.avatar,.badge-logo{border-radius:12px;font-family:var(--rounded)}
.big-number{font-size:39px;font-weight:1000;letter-spacing:-.05em}
.elo,.rank{font-size:19px;font-weight:1000;letter-spacing:-.035em}
.profile-name{font-size:37px;font-weight:1000}
.stat-value{font-size:33px;font-weight:1000}
.card-label,.eyebrow,.crumb,.team,.side-label{letter-spacing:.45px;font-weight:900}
.level-card b{font-size:12px;font-weight:900}
.pill{font-size:11px}.bar,.bar>span{border-radius:99px}
.player{font-weight:900}
@media(max-width:760px){.hero h1{font-size:clamp(39px,10vw,54px)}.brand-mark{font-size:26px}.mobile-nav a{font-family:var(--rounded);font-weight:800}.card{border-radius:13px}}

/* Profile, season and match layouts */
:root {
  --ref-panel: #191919;
  --ref-line: #2b2b2b;
  --ref-muted: #b3b0ae;
  --ref-orange: #ff5a16;
  --ref-win: #79ec62;
  --ref-loss: #ff5149;
}
.level-badge {
  --badge-size: 36px;
  width: var(--badge-size);
  height: var(--badge-size);
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: none;
  vertical-align: middle;
  border-radius: 50%;
  background: #111;
  color: #f5f5f5;
  font-size: calc(var(--badge-size) * .247);
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.level-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
}
.level-badge > span { transform: translateY(-2%); }
.level-track { stroke: #292929; }
.level-fill { stroke: var(--level-color); }
.level-badge-large { --badge-size: 60px; }
.level-badge-season { --badge-size: 86px; }
.level-badge-hero { --badge-size: 126px; }
.level-badge-max { color: var(--level-color); }
.level-card .level-badge { margin: 0 auto 13px; }

.reference-page { max-width: 1024px; margin-inline: auto; }
.reference-page h2 small, .reference-page h3 small {
  color: var(--ref-muted);
  font-size: .46em;
  letter-spacing: .1em;
  font-weight: 900;
  white-space: nowrap;
}
.reference-page .section-title a { color: var(--ref-muted); font-size: 12px; }
.reference-page :is(a, button):focus-visible {
  outline: 2px solid var(--ref-orange);
  outline-offset: 3px;
}
.elo-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  margin: 18px 0;
  border: 1px solid #262626;
  border-radius: 10px;
  background: var(--ref-panel);
}
.elo-summary-data { flex: 1; min-width: 0; }
.elo-summary-tier { color: var(--ref-muted); font-size: 12px; }
.elo-summary-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin: 4px 0 8px;
  font-size: 19px;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
}
.elo-summary-score small { margin-left: auto; color: var(--ref-muted); font-size: 10px; }
.trend-glyph { width: 19px; fill: currentColor; }
.trend-glyph path { stroke: currentColor; stroke-width: 2; fill: none; }
.elo-progress { height: 10px; overflow: hidden; border-radius: 3px; background: #38302b; }
.elo-progress > span { height: 100%; display: block; background: var(--ref-orange); }

.overview { margin: 24px 0; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.overview-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 77px;
  padding: 12px 14px;
  border: 1px solid #232323;
  border-radius: 9px;
  background: var(--ref-panel);
}
.overview-tile > strong { font-size: 21px; line-height: 1.16; font-weight: 950; }
.overview-tile > span { color: #e0dedd; font-size: 13px; line-height: 1.35; }
.overview-tile small { display: inline-block; color: var(--ref-muted); font-size: 10px; }
.recent-results { display: inline-flex; gap: .25em; white-space: nowrap; }
.outcome-win { color: var(--ref-win); }
.outcome-loss { color: var(--ref-loss); }
.outcome-draw { color: var(--ref-muted); }

.profile-feature-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 15px; }
.identity-card, .season-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  border: 1px solid #343434;
  border-radius: 19px;
}
.identity-card {
  padding: 23px 14px 19px;
  background:
    radial-gradient(ellipse 62% 19% at 50% 74%, #6d2609, transparent),
    linear-gradient(#19191922, #101010 88%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='124' viewBox='0 0 144 124'%3E%3Cpath fill='none' stroke='%23262626' stroke-width='2' d='M0 31h36L54 0m90 31h-36L90 0M0 93h36l18 31m90-31h-36l-18 31M36 31l18 31-18 31m72-62L90 62l18 31M54 62h36'/%3E%3C/svg%3E"),
    #191919;
}
.identity-brand { font-size: 22px; font-weight: 950; letter-spacing: .07em; text-align: center; }
.identity-brand > span { color: var(--ref-orange); }
.identity-brand small { display: block; color: var(--ref-muted); font-size: 9px; letter-spacing: .25em; }
.identity-plaque {
  width: min(68%, 214px);
  min-height: 176px;
  margin-top: 21px;
  padding: 20px 10px 49px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #393939;
  border-radius: 17px;
  box-shadow: 0 0 0 2px #101010;
  background: #141414;
}
.identity-avatar {
  display: grid;
  place-items: center;
  width: 63px;
  height: 63px;
  border: 1px solid #575757;
  border-radius: 50%;
  background: radial-gradient(at 30% 22%, #5a5a5a, #272727 70%);
  font-size: 31px;
  font-weight: 950;
  margin-bottom: 9px;
}
.identity-plaque > strong { font-size: 22px; overflow-wrap: anywhere; }
.identity-plaque .flag { font-size: 14px; }
.identity-team { color: var(--ref-muted); font-size: 10px; overflow-wrap: anywhere; }
.identity-level { margin-top: -38px; position: relative; }
.identity-level .level-badge { box-shadow: 0 0 32px #ff571052; }
.identity-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  text-align: center;
  width: 100%;
  margin-top: 19px;
  gap: 8px;
}
.identity-stats > div { display: grid; gap: 3px; }
.identity-stats > div > span { color: var(--ref-muted); font-size: 10px; letter-spacing: .15em; }
.identity-stats strong { font-size: 17px; font-weight: 950; white-space: nowrap; }
.season-card {
  justify-content: center;
  min-height: 322px;
  padding: 25px clamp(18px, 4vw, 38px);
  background:
    linear-gradient(0deg, #101011 8%, #10111318),
    repeating-linear-gradient(125deg, transparent 0 55px, #9ea9bd2b 55px 110px, transparent 110px 172px),
    linear-gradient(#343a43, #141619 70%);
  box-shadow: inset 0 0 0 4px #101011a0;
}
.season-label { color: #cac7c8; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.season-label > span { font-size: 10px; letter-spacing: 0; margin-left: 3px; }
.season-card > h2 { margin: 4px 0 20px; letter-spacing: .045em; }
.season-rank { display: grid; justify-items: center; gap: 6px; }
.season-rank > strong { font-size: 37px; font-weight: 950; }
.season-high { align-self: stretch; margin-top: 17px; padding-top: 14px; border-top: 1px solid #353536; }
.season-high > div:last-child { display: flex; align-items: center; gap: 9px; margin-top: 5px; font-size: 20px; }

.stats-tabs, .match-toolbar {
  display: flex;
  align-items: stretch;
  gap: 14px;
  border-bottom: 1px solid var(--ref-line);
  margin: 0 0 15px;
}
.stats-tabs a, .match-toolbar > * {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 6px;
  border-bottom: 3px solid transparent;
  color: var(--ref-muted);
  font-size: 13px;
  white-space: nowrap;
}
.stats-tabs a > span, .match-toolbar b { font-size: 9px; font-weight: 950; letter-spacing: .04em; }
.stats-tabs [aria-current], .match-toolbar .match-active { color: white; border-color: var(--ref-orange); }
.match-toolbar a { margin-left: auto; }

.match-list { display: grid; gap: 9px; }
.match-card {
  --result-color: #aaa;
  position: relative;
  min-width: 0;
  padding: 13px 13px 12px 15px;
  border: 1px solid #232323;
  border-left: 4px solid var(--result-color);
  border-radius: 9px;
  background: #151515;
}
.match-card.match-win { --result-color: var(--ref-win); }
.match-card.match-loss { --result-color: var(--ref-loss); }
.match-card:has(.match-link):hover { background: #1d1d1d; }
.match-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.match-top, .match-meta, .match-foot { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.match-top { color: #f5f2ef; font-size: 14px; }
.match-top time { color: #dedbda; font-weight: 700; }
.match-score {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 5px;
  color: #c3bfc0;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.match-letter {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 3px;
  border-radius: 6px;
  background: var(--result-color);
  color: #111;
  font-size: 15px;
  font-weight: 950;
}
.match-meta > span { text-align: right; white-space: nowrap; font-size: 12px; font-weight: 900; }
.match-meta small, .match-foot small { color: var(--ref-muted); font-size: 10px; }
.match-rating { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; }
.match-rating .level-badge { --badge-size: 31px; }
.match-foot { margin-top: 8px; padding-top: 9px; border-top: 1px solid #292929; }
.match-rt {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  padding: 5px 7px 7px;
  background: #2d2d2d;
  color: #f0eeed;
  font-size: 14px;
}
.match-rt-good { background: #243320; color: #a9f68a; }
.match-rt > span { position: absolute; inset: auto auto 0 0; height: 2px; background: currentColor; }
.match-kda { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-size: 13px; }

.season-stats {
  margin-top: 22px;
  padding: clamp(14px, 3vw, 25px);
  background: #141414;
  border: 1px solid #282828;
  border-radius: 13px;
}
.season-stats-heading .eyebrow { margin-bottom: 5px; }
.season-stats-heading h2 { margin-bottom: 14px; }
.season-levels {
  position: relative;
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #303030;
  border-radius: 9px;
  scrollbar-width: thin;
  scrollbar-color: #474747 transparent;
}
.season-levels > span {
  min-width: 42px;
  display: grid;
  place-items: center;
  padding: 1px 2px;
  border-radius: 7px;
  opacity: .7;
}
.season-levels > .tier-current { background: #2b1e18; opacity: 1; }
.season-record { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 7px; font-size: 12px; }
.season-record > span:not([class]) { color: #c4c1c0; }
.season-record b { font-size: 15px; font-weight: 950; }
.trend-chart { margin: 0 -4px; }
.trend-chart svg { display: block; width: 100%; height: clamp(130px, 26vw, 215px); }
.trend-chart circle { fill: var(--ref-orange); }
.trend-axis { stroke: #323232; fill: none; }
.trend-line { stroke: #ff6a34; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.trend-caption { display: flex; justify-content: space-between; gap: 7px; padding: 1px 6px; color: var(--ref-muted); font-size: 10px; }
.trend-empty { margin-top: 12px; }
.performance-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 18px; }
.performance-heading h3 { margin: 0; }
.performance-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid #353535; border-radius: 999px; }
.performance-switch button { padding: 5px 8px; border: 0; border-radius: 999px; background: #212121; color: #d4d2d1; font-size: 11px; white-space: nowrap; }
.performance-switch button[aria-pressed="true"] { background: #3b2318; color: #ff8a58; }
.performance-panel { margin-top: 10px; border: 1px solid #2c2c2c; border-radius: 10px; padding: 10px; }
.performance-score { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 8px; background: #222; }
.performance-score span { background: #3b251b; color: #ff935f; padding: 4px 7px; border-radius: 6px; font-weight: 900; }
.performance-score strong { font-size: 23px; }
.performance-panel .listline { padding: 9px 3px; font-size: 13px; }
.performance-panel small { color: var(--ref-muted); margin-left: 5px; font-size: 10px; }
.extra-stats, .rating-note, .profile-actions { margin-top: 15px; }
@media (min-width: 900px) {
  .match-page .match-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-page > .match-card { max-width: 550px; }
}
@media (max-width: 760px) {
  .profile-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .level-badge-large { --badge-size: 49px; }
  .identity-card { padding-top: 21px; }
  .season-card { min-height: 287px; }
  .reference-page > .sub { margin-bottom: 13px; }
  .performance-heading h3 small { display: block; margin-top: 2px; }
}
@media (max-width: 360px) {
  .match-meta small, .performance-switch button > span { display: none; }
  .overview-tile { padding-inline: 10px; }
}

.stats-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.stats-page-heading > a { color: var(--ref-muted); white-space: nowrap; font-size: 12px; margin-bottom: 14px; }
.elo-widget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  color: #f5f0ee;
  border: 1px solid #542719;
  border-radius: 9px;
  background:
    repeating-linear-gradient(90deg, transparent 0 114px, #fe622714 114px 115px),
    linear-gradient(120deg, #221917, #501b0d);
}
.elo-widget > span:first-child { display: grid; gap: 4px; }
.elo-widget > span:first-child > strong { font-size: 20px; }
.elo-widget > span:first-child > small { color: #e0c8bf; font-size: 12px; }
.elo-widget-mini {
  display: grid;
  gap: 2px;
  min-width: 80px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #151515;
  font-size: 11px;
}
.elo-widget-mini > small { color: var(--ref-muted); font-size: 8px; font-weight: 900; }
.elo-widget-mini > b { font-size: 17px; line-height: 1; }

/* Global search */
.top-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 36px;
  min-height: 36px;
  justify-content: center;
  border-radius: 8px;
  color: #e9e9eb;
  font-weight: 900;
}
.top-search:hover, .top-search[aria-current] { color: var(--ref-orange); }
.top-search svg, .search-back-link svg, .global-search-form svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
#nav { overflow-y: auto; }
.global-search-page {
  --search-muted: #aaa8a8;
  max-width: 870px;
  min-height: 470px;
  margin-inline: auto;
  padding: clamp(16px, 3vw, 30px);
  border-radius: 18px;
  background: #090909;
}
.global-search-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
}
.global-search-heading h1 {
  font-size: clamp(26px, 4.1vw, 37px);
  line-height: 1.2;
  margin: 0;
}
.search-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding-right: 8px;
  margin-bottom: 10px;
  border-radius: 6px;
  color: #b6b5b6;
  font-size: 12px;
  font-weight: 800;
}
.global-search-heading .search-back-link {
  width: 34px;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.search-back-link:hover { color: #fff; }
.global-search-form {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  min-height: 48px;
  border: 1px solid #303030;
  border-radius: 9px;
  background: #151515;
  color: #f2f2f2;
}
.global-search-form:focus-within { border-color: var(--ref-orange); }
.global-search-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #f2f2f2;
  font-size: 16px;
}
.global-search-form input::placeholder { color: var(--search-muted); }
.global-search-form input::-webkit-search-cancel-button { appearance: none; }
.global-search-form button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #eee;
  padding: 0;
}
.global-search-form button[hidden] { display: none; }
.global-search-tabs {
  display: flex;
  gap: clamp(8px, 3vw, 29px);
  margin: 17px 0 22px;
  border-block: 1px solid #282828;
}
.global-search-tabs a {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 11px 3px;
  color: var(--search-muted);
  text-align: left;
}
.global-search-tabs a b { font-size: 15px; font-weight: 950; }
.global-search-tabs a small { font-size: 8px; font-weight: 900; letter-spacing: .04em; }
.global-search-tabs a[aria-current] { color: var(--ref-orange); }
.global-search-tabs a[aria-current]::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ref-orange);
}
.global-search-page :is(a, button):focus-visible, .top-search:focus-visible, .search-back-link:focus-visible {
  outline: 2px solid var(--ref-orange);
  outline-offset: 2px;
}
.search-group + .search-group { margin-top: 26px; }
.search-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 13px;
}
.search-group-heading h2 { margin: 0 0 3px; font-size: 22px; }
.search-group-heading span { color: var(--search-muted); font-size: 13px; }
.search-group-heading a { color: var(--ref-orange); font-weight: 950; font-size: 13px; }
.search-result-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.search-result {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1c1c1c;
}
.search-result:hover { border-color: #515151; background: #222; }
.search-result-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: none;
  border: 1px solid #55504d;
  border-radius: 9px;
  background: linear-gradient(145deg, #513b34, #251f1e 75%);
  font-size: 11px;
  font-weight: 950;
}
.search-result-avatar-player {
  border-radius: 50%;
  background: radial-gradient(at 25% 18%, #5d5553, #2b2726 70%);
  font-size: 17px;
}
.search-result-copy { flex: 1; display: grid; gap: 2px; min-width: 0; }
.search-result-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 950;
}
.search-result-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--search-muted);
  font-size: 10px;
}

.search-result .level-badge { --badge-size: 32px; }
.search-result-chevron { font-size: 22px; color: var(--search-muted); }
.search-result-score { font-size: 13px; white-space: nowrap; }
.search-result-win .search-result-avatar { background: #213a1c; border-color: #42663b; color: var(--ref-win); }
.search-result-loss .search-result-avatar { background: #402320; border-color: #673936; color: var(--ref-loss); }
.search-empty {
  padding: 15px;
  border: 1px solid #292929;
  border-radius: 9px;
  background: #141414;
  color: var(--search-muted);
}
.search-empty p { margin: 0; color: #e9e7e7; font-size: 13px; }
.search-empty p + span { display: block; margin-top: 5px; font-size: 11px; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.search-suggestions button {
  border: 1px solid #393434;
  border-radius: 20px;
  padding: 5px 11px;
  background: #211e1d;
  color: #ffab83;
  font-weight: 900;
}
@media (max-width: 760px) {
  .top-actions { gap: 8px; }
  .top-search { min-width: 36px; }
  .top-search > span { display: none; }
  .global-search-page { margin-inline: -5px; padding: 12px 10px 20px; }
  .global-search-tabs { justify-content: space-between; }
}

/* FRAGIX brand, welcome and control feedback */
.fragix-mark { width: 37px; height: 37px; flex: none; }
.fragix-wordmark {
  color: #f4f2f2;
  font-size: 22px;
  font-weight: 1000;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.04em;
}
.fragix-wordmark > span { color: #ff541c; }
.fragix-wordmark > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .12em;
}
.hero::after {
  right: -.04em;
  bottom: -.36em;
  font-size: clamp(125px, 22vw, 320px);
}
@media (max-width: 760px) {
  .hero::after { font-size: clamp(100px, 27vw, 190px); }
}
.country-flag {
  display: inline-block;
  width: 30px;
  height: 20px;
  flex: none;
  border-radius: 5px;
  vertical-align: middle;
  overflow: hidden;
  background: #292c34;
  transition: transform 125ms cubic-bezier(.2,.65,.3,1);
}
.country-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.country-flag-global {
  display: inline-grid;
  place-items: center;
  color: #bfc3cc;
  background: #292c34;
}
.country-flag-global svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.is-pressed .country-flag, .country-flag:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  :is(.search-result:hover, .player:hover) .country-flag, .country-flag:hover { transform: translateY(-1px) scale(1.06); }
}
.region-search { margin: 0 0 12px; }
.region-flag-preview .flag-ready { animation: region-flag-reveal 220ms ease-out both; }
@keyframes region-flag-reveal {
  from { opacity: .55; transform: scale(.93); }
  to { opacity: 1; transform: scale(1); }
}
.brand-opening {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}
.brand-opening::backdrop { background: transparent; }
html:has(.brand-opening[open]) { overflow: hidden; }
.brand-opening-enter {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #080808;
  -webkit-tap-highlight-color: transparent;
}
.brand-opening-enter:active { transform: none; }
.brand-opening:focus,
.brand-opening-enter:focus,
.brand-opening-enter:focus-visible { outline: none; box-shadow: none; }
.brand-opening-copy {
  position: relative;
  font-family: var(--rounded);
  opacity: 0;
}
.brand-opening-logo {
  display: block;
  color: #f8f5f3;
  font-family: var(--rounded);
  font-size: clamp(46px, 20vw, 184px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand-opening-logo > span { color: #ff652e; }
.brand-opening-subtitle {
  position: absolute;
  top: calc(100% + clamp(12px, 2.8vw, 22px));
  left: 50%;
  transform: translateX(-50%);
  color: #c9c4c1;
  font-family: var(--rounded);
  font-size: clamp(13px, 3.6vw, 19px);
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}
.logo-ready .brand-opening-copy {
  animation: brand-opening-arrive 850ms cubic-bezier(.38,0,.24,1) both;
}
@keyframes brand-opening-arrive {
  from { opacity: 0; transform: scale(1.012); }
  to { opacity: 1; transform: scale(1); }
}
.welcome-back[hidden] { display: none; }
.welcome-back {
  position: fixed;
  z-index: 20;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  left: 50%;
  margin: 0;
  padding: 10px 19px;
  border: 1px solid #3a3330;
  border-radius: 16px;
  background: #181616;
  color: #f6f3f2;
  box-shadow: 0 7px 26px #0005;
  font-family: var(--rounded);
  font-size: clamp(23px, 4.7vw, 31px);
  font-weight: 1000;
  line-height: 1.12;
  letter-spacing: -.035em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  animation: welcome-back 3000ms cubic-bezier(.26,.65,.3,1) both;
}
@keyframes welcome-back {
  0% { opacity: 0; transform: translate(-50%, -4px) scale(.975); }
  23%, 73% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -2px) scale(.99); visibility: hidden; }
}
@keyframes welcome-back-still {
  from { visibility: visible; }
  to { visibility: hidden; }
}
@media (max-width: 760px) {
  .welcome-back { top: max(65px, calc(env(safe-area-inset-top) + 58px)); }
}
:where(.card, .level-card, .overview-tile, .match-card, .search-result, .nav-item, .mobile-nav a,
  .global-search-tabs a, .stats-tabs a, .elo-widget, .top-search, button) {
  transition: transform 120ms cubic-bezier(.2,.65,.3,1);
}
:where(.is-pressed, .nav-item:active, .mobile-nav a:active, .global-search-tabs a:active, .stats-tabs a:active,
  .top-search:active, button:active:not(:disabled)) { transform: scale(.985); }
:is(.card, .level-card, .overview-tile, .match-card, .search-result).is-pressed { border-color: #ff642d8a; }
:where(.match-link, .search-result, .top-search, .nav-item, .global-search-tabs a, .stats-tabs a, button) {
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  :is(.feature-card, .search-result, .elo-widget):hover { transform: translateY(-2px); }
  :is(.feature-card, .search-result, .elo-widget).is-pressed { transform: scale(.985); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-ready .brand-opening-copy { animation: none; opacity: 1; }
  .region-flag-preview .flag-ready { animation: none; }
  .country-flag, .country-flag:is(:hover,:active), .is-pressed .country-flag,
  .search-result:hover .country-flag { transition: none; transform: none; }
  .welcome-back {
    transform: translateX(-50%);
    animation: welcome-back-still 3000ms steps(1, end) both;
  }
  :where(.card, .level-card, .overview-tile, .match-card, .search-result, .nav-item, .mobile-nav a,
    .global-search-tabs a, .stats-tabs a, .elo-widget, .top-search, button) { transition: none; }
  :is(.feature-card, .search-result, .elo-widget):is(:hover, .is-pressed),
  :where(.is-pressed, .nav-item:active, .mobile-nav a:active, .global-search-tabs a:active, .stats-tabs a:active,
    .top-search:active, button:active:not(:disabled)) { transform: none; }
}

.scoreboard-side + .scoreboard-side { margin-top: 15px; }
.scoreboard-side h2 { font-size: 20px; }
.scoreboard-table table { min-width: 550px; }
.scoreboard-table :is(th, td) { padding: 11px; white-space: nowrap; }

.avatar, .identity-avatar, .search-result-avatar { overflow: hidden; }
.avatar img, .identity-avatar img, .search-result-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); margin: 10px 0; }
.profile-editor { display: grid; gap: 12px; max-width: 500px; }
.profile-editor label { display: grid; gap: 6px; }
.profile-editor label:has(input[type="checkbox"]) { display: flex; align-items: center; }
.profile-editor :is(input, textarea) { max-width: 100%; }
.profile-editor button { justify-self: start; }
