: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-color: #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 {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 61% 50%, #171416, #0e0e10 58%, #080809 94%);
  -webkit-tap-highlight-color: transparent;
}
.brand-opening-enter::before,
.brand-opening-enter::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.brand-opening-enter::before {
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 33%, #080809a0 100%),
    linear-gradient(126deg, transparent 23%, #ffffff09 23.1% 36%, transparent 36.1% 55%,
      #ffffff08 55.1% 69%, transparent 69.1% 81%, #ffffff06 81.1%);
}
.brand-opening-enter::after {
  top: 50%;
  left: 50%;
  width: min(110vw, 1050px);
  height: min(49vh, 450px);
  background: radial-gradient(ellipse at 69% 52%, #b6472b38, #74321e14 32%, transparent 66%);
  transform: translate(-50%, -50%);
  opacity: 0;
}
.logo-ready .brand-opening-enter::after {
  animation: brand-opening-glow 1100ms cubic-bezier(.22,.7,.28,1) both;
}
@keyframes brand-opening-glow {
  from { opacity: 0; transform: translate(-58%, -50%); }
  70% { opacity: .9; }
  to { opacity: .66; transform: translate(-50%, -50%); }
}
.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;
  z-index: 1;
  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 820ms cubic-bezier(.22,.65,.25,1) both;
}
.logo-ready .brand-opening-subtitle {
  animation: brand-opening-subtitle-arrive 620ms cubic-bezier(.22,.65,.25,1) 120ms both;
}
@keyframes brand-opening-arrive {
  from { opacity: 0; transform: translateY(8px) scale(.989); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes brand-opening-subtitle-arrive {
  from { opacity: 0; transform: translate(-50%, 5px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.welcome-back[hidden] { display: none; }
.welcome-back {
  position: fixed;
  z-index: 20;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  right: clamp(14px, 3vw, 44px);
  display: grid;
  gap: 5px;
  width: min(390px, calc(100% - 28px));
  overflow: hidden;
  padding: 13px 18px 14px;
  border: 1px solid #4a3a33;
  border-radius: 16px;
  background: linear-gradient(100deg, #19191c, #211a17);
  color: #f6f3f2;
  box-shadow: 0 8px 24px #0005;
  pointer-events: none;
  animation: welcome-back 3000ms cubic-bezier(.22,.65,.3,1) both;
}
.welcome-title {
  width: fit-content;
  font-size: clamp(24px, 4.9vw, 34px);
  font-weight: 1000;
  line-height: 1.1;
  letter-spacing: -.035em;
  animation: welcome-glow 1120ms ease-out both;
}
.welcome-copy, .welcome-close-line {
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.55;
  animation: welcome-line 480ms ease-out both;
}
.welcome-copy { color: #ded6d2; animation-delay: 140ms; }
.welcome-close-line { animation-delay: 365ms; }
.welcome-close-line strong { color: #ff9c78; }
@keyframes welcome-back {
  0% { opacity: 0; transform: translateX(12px); }
  22%, 86% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(4px); visibility: hidden; }
}
@keyframes welcome-glow {
  0% { text-shadow: 8px 0 18px #ff642d00; }
  36% { text-shadow: 6px 0 14px #ff804da8; }
  100% { text-shadow: 0 0 3px #ff804d00; }
}
@keyframes welcome-line {
  from { opacity: 0; }
  to { opacity: 1; }
}
@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)); }
}
.fullscreen-toggle[hidden] { display: none; }
.fullscreen-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  white-space: nowrap;
}
.fullscreen-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
@media (max-width: 760px) {
  .fullscreen-toggle { padding-inline: 9px; }
  .fullscreen-toggle-label { display: none; }
}

:where(button, a[href], summary) { touch-action: manipulation; }
:where(button, a[href], summary, input, select, textarea, [tabindex="0"]):focus-visible {
  outline: 2px solid #ff9b77;
  outline-offset: 3px;
}
:where(button):disabled { cursor: wait; }
@media (prefers-reduced-motion: no-preference) {
  :is(button, a[href], summary):not(.brand-opening-enter) {
    transition: scale 155ms cubic-bezier(.19,.74,.28,1), opacity 140ms ease-out,
      border-color 155ms ease-out, background-color 155ms ease-out, color 155ms ease-out;
  }
  :is(button, a[href], summary):not(.brand-opening-enter, :disabled).is-pressed,
  :is(button, a[href], summary):not(.brand-opening-enter, :disabled):active {
    scale: .985;
    opacity: .92;
    transition-duration: 75ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(button, a[href], summary):not(.brand-opening-enter, :disabled).is-pressed,
  :is(button, a[href], summary):not(.brand-opening-enter, :disabled):active {
    opacity: .86;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-ready .brand-opening-copy,
  .logo-ready .brand-opening-subtitle { animation: none; opacity: 1; }
  .logo-ready .brand-opening-enter::after { animation: none; opacity: .6; }
  .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 { animation: welcome-back-still 3000ms steps(1, end) both; }
  :is(.welcome-title, .welcome-copy, .welcome-close-line) { animation: 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; }

/* Keep the brand artwork behind the welcome copy. */
.hero {
  display: grid;
  align-items: center;
  padding: clamp(22px, 4vw, 46px);
  border-radius: 18px;
  background: #101113;
}
.hero::before {
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, #101113c4, #1011135c 48%, #101113),
    linear-gradient(180deg, #101113 3%, transparent 35%, #101113 97%),
    url("fragix-hero.jpg") left center / auto 100% no-repeat;
  opacity: .58;
  pointer-events: none;
}
.hero::after { content: none; }
.hero h1 { font-size: clamp(33px, 4.4vw, 62px); line-height: 1.12; }
.hero .sub { color: #d2ced0; font-size: clamp(13px, 1.4vw, 16px); }
.home-server {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  scroll-margin-block-start: 16px;
}
.home-server .section-title { grid-column: 1 / -1; margin-bottom: 0; }
.home-server :is(.card, .notice) { height: 100%; }
.home-server .notice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .home-server { grid-template-columns: 1fr; }
}

/* FRAGIX text campaigns and announcements */
.campaign-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #191a1d;
}
.campaign-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px clamp(16px, 3vw, 26px);
  border-inline-start: 3px solid var(--orange);
  background: linear-gradient(100deg, #241915, #191a1d 58%);
  animation: campaign-arrive 480ms ease-out both;
}
.campaign-title, .announcement-title {
  display: block;
  color: var(--text);
  font-family: var(--rounded);
  font-size: clamp(16px, 2.3vw, 24px);
  font-weight: 1000;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.campaign-title > span { color: var(--orange); }
.campaign-subtitle {
  display: block;
  margin-top: 5px;
  color: #bbbcc2;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.campaign-brand .outline-btn { flex: none; min-height: 44px; }
#fragixMainContent { scroll-margin-top: 76px; }
.campaign-carousel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(114deg, #202023, #191a1d 70%);
}
.campaign-slides { display: grid; min-width: 0; }
.campaign-slide {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 0s 320ms;
}
.campaign-slide.is-current { opacity: 1; visibility: visible; transition-delay: 0s; }
.campaign-kicker {
  display: block;
  margin-bottom: 6px;
  color: #ff9b72;
  font-family: var(--rounded);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
}
.campaign-controls { display: flex; align-items: center; gap: 6px; flex: none; color: #bbbcc2; }
.campaign-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #24262a;
  color: var(--text);
  font: 800 13px var(--rounded);
}
.campaign-controls button[data-campaign-step] { font-size: 24px; }
.campaign-controls button:hover, .campaign-controls button:focus-visible { border-color: var(--orange); }
.campaign-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.announcement-list { display: grid; gap: 9px; }
.announcement summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 12px;
  padding: 14px 17px;
  list-style: none;
  cursor: pointer;
}
.announcement summary::-webkit-details-marker { display: none; }
.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  grid-column: 1;
  color: #aaaab1;
  font-size: 11px;
}
.announcement-type { color: #ff9b72; font-weight: 900; }
.announcement-title { grid-column: 1; font-size: 16px; }
.announcement-action { grid-column: 2; grid-row: 1 / span 2; color: #ff9b72; font-weight: 800; }
.announcement:not([open]) .announcement-action span:last-child,
.announcement[open] .announcement-action span:first-child { display: none; }
.announcement p {
  margin: 0 17px 15px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: #c4c5cb;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.campaign-page {
  margin-bottom: 20px;
  padding: 13px 17px;
  border-inline-start: 3px solid var(--orange);
}
.campaign-page .campaign-title { font-size: 16px; }
@keyframes campaign-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) {
  .campaign-brand, .campaign-carousel { align-items: start; flex-direction: column; }
  .campaign-brand .outline-btn { align-self: start; }
  .campaign-controls { align-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-brand { animation: none; }
  .campaign-slide { transition: none; }
}

.ad-manager { width: min(100%, 860px); margin: 0 auto; padding: 24px; }
.ad-manager [hidden] { display: none; }
.ad-manager > .outline-btn { display: inline-block; }
.manager-form h2 { margin-top: 0; }
.manager-form label { display: grid; gap: 7px; margin-bottom: 12px; font-weight: 800; }
.manager-form :is(input:not([type=checkbox]), select, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  color-scheme: dark;
}
.manager-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.manager-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manager-form .manager-switch { display: flex; }
.manager-ads { display: grid; list-style: none; gap: 8px; margin: 0 0 18px; padding: 0; }
.manager-ad { display: flex; justify-content: space-between; gap: 12px; align-items: center; overflow-wrap: anywhere; }
.manager-ad .btn-row { flex: none; }
.manager-ad .sub { margin: 3px 0 0; }
@media (max-width: 480px) {
  .ad-manager { padding: 16px; }
  .manager-grid { grid-template-columns: 1fr; }
  .manager-ad { align-items: start; flex-direction: column; }
}

/* Warm accents highlight controls and status without brightening ordinary panels. */
.btn,
.outline-btn { border-radius: 13px; }
.btn:not(.secondary):not(:disabled) { box-shadow: 0 3px 14px #ff642d30; }
.nav-item.active { box-shadow: inset 3px 0 var(--orange), inset 0 0 16px #ff642d16; }
.mobile-nav a.active { background: #ff642d10; box-shadow: inset 0 -1px #ff642d56; border-radius: 12px; }
.level-fill { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--level-color) 38%, transparent)); }
#copyGameCommand[hidden],
.campaign-welcome[hidden] { display: none; }

.campaign-welcome {
  position: fixed;
  z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(350px, calc(100% - 32px));
  animation: campaign-notice-arrive 310ms cubic-bezier(.2,.7,.3,1) both;
}
.campaign-welcome-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #594039;
  border-radius: 14px;
  background: linear-gradient(120deg, #241a18, #18191c 78%);
  box-shadow: 0 4px 22px #0006, 0 0 14px #ff642d1c;
  font-family: var(--rounded);
  text-align: left;
  cursor: pointer;
}
.campaign-welcome-button .campaign-title { font-size: 16px; }
.campaign-welcome-button .campaign-subtitle { font-size: 12px; }
.campaign-welcome-close { align-self: start; color: #d8c9c5; font-size: 21px; line-height: 1; }
.campaign-welcome-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.campaign-welcome.is-closing { animation: campaign-notice-exit 160ms ease-in both; pointer-events: none; }
@keyframes campaign-notice-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes campaign-notice-exit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(6px); }
}
@media (max-width: 760px) {
  .campaign-welcome { bottom: max(76px, calc(66px + env(safe-area-inset-bottom))); }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-welcome,
  .campaign-welcome.is-closing { animation: none; }
}

/* Shared panel and feedback styling across the public routes and admin. */
:where(.notice, .empty) { overflow-wrap: anywhere; }
.page-description { max-width: 65ch; font-size: clamp(13px, 1.3vw, 15px); }
.section-title { gap: 12px; }
.empty { background: #18191c; color: #b7b6bb; }
:is(.overview-tile, .performance-panel, .match-card) { border-radius: 13px; }
.section-title small { text-align: end; }
.btn.secondary:hover, .filter:hover { border-color: #a45b43; }
.filter[aria-pressed="true"] { background: #34231e; color: #fff1e8; }
.rank-table { scrollbar-color: #69524b #1b1b1e; }
.rank-table td { white-space: nowrap; }
.rank-table :is(.elo, .rank) { font-variant-numeric: tabular-nums; }
.rank-table td:first-child { font-weight: 800; }
.rank-table .player:hover { color: #ff9c78; }
.toast { border-radius: 13px; border-color: #6d5146; box-shadow: 0 8px 26px #0005; }
#managerStatus:not(:empty) {
  padding: 10px 13px;
  border: 1px solid #6d5146;
  border-radius: 12px;
  background: var(--panel);
}
.toast[data-tone="success"], #managerStatus[data-tone="success"] { border-color: #407861; }
.toast[data-tone="error"], #managerStatus[data-tone="error"] { border-color: #9c504d; }
button[aria-busy="true"] { opacity: .7; }
@media (max-width: 760px) {
  .rank-table table { min-width: 550px; }
  .rank-table :is(th, td) { padding: 11px 9px; }
  .rank-table .player { gap: 6px; }
  .rank-table .avatar { width: 26px; height: 26px; }
}

@media (hover: hover) and (pointer: fine) {
  .match-card:has(.match-link:hover) { background-color: #1f1f22; }
}

.explore-fair-play { margin-bottom: 16px; padding: clamp(16px, 3vw, 24px); }
.explore-fair-play h3 { margin: 6px 0; }
.explore-fair-play p { margin: 0; color: #c3c4c9; line-height: 1.6; }
.explore-fair-play .btn-row { margin-top: 12px; }

#gameStatus > .card {
  background-color: var(--panel);
  background-image:
    linear-gradient(90deg, #191b1e 0%, rgba(25, 27, 30, .96) 28%, rgba(25, 27, 30, .8) 56%, rgba(25, 27, 30, .38) 100%),
    url("photos/server-status.jpg");
  background-position: center, right 24%;
  background-repeat: no-repeat;
  background-size: cover;
}


.explore-grid .feature-card[href="#rankings"] { --card-photo: url("photos/card-rankings.jpg"); }
.explore-grid .feature-card[href="#stats"] { --card-photo: url("photos/card-stats.jpg"); }
.explore-grid .feature-card[href="#levels"] { --card-photo: url("photos/card-levels.jpg"); }
.explore-grid .feature-card[href="#arsenal"] { --card-photo: url("photos/card-arsenal.jpg"); }
.explore-grid .feature-card[href="#demos"] { --card-photo: url("photos/card-demos.jpg"); }
.explore-grid .feature-card[href="#anti-cheat"] { --card-photo: url("photos/card-anti-cheat.jpg"); }
.explore-grid .feature-card[href="#banned-players"] { --card-photo: url("photos/card-banned-players.jpg"); }
.explore-grid .feature-card[href="#clans"], .clan-create-panel { --card-photo: url("photos/card-clans.jpg"); }

.explore-grid .feature-card, .clan-create-panel {
  background-image:
    linear-gradient(100deg, #191b1e 0%, rgba(25, 27, 30, .94) 28%, rgba(25, 27, 30, .73) 60%, rgba(25, 27, 30, .36) 100%),
    var(--card-photo);
  background-position: center, center 43%;
  background-repeat: no-repeat;
  background-size: cover;
}
.explore-grid .feature-card { min-height: 128px; }
.explore-grid .feature-card .sub { color: #e0e0e4; }
.explore-grid .feature-card:is([href="#rankings"], [href="#stats"]) {
  background-size: cover, max(100%, 360px) auto;
  background-position: center;
}
.clan-create-panel { margin-top: 16px; }
.clan-create-panel .notice { background: rgba(20, 21, 23, .82); }

.match-card {
  --result-glow: rgba(177, 177, 186, .09);
  background-image: linear-gradient(100deg, var(--result-glow), transparent 56%);
}
.match-card.match-win {
  --result-glow: rgba(122, 239, 88, .23);
}
.match-card.match-loss {
  --result-glow: rgba(255, 83, 83, .20);
}
.match-card:has(.match-link):hover { background-color: #1f1f22; }
@media (prefers-reduced-motion: no-preference) {
  .match-card { transition: box-shadow 150ms ease-out, background-color 150ms ease-out; }
}

/* Keep the glow at the edges so backgrounds and data remain readable. */
:is(.explore-fair-play, .fair-play-panel, a[href="#anti-cheat"]) {
  --glow-rgb: 122, 239, 88;
  --glow-accent: #a9ef8e;
}

:is(.ban-record-panel, a[href="#banned-players"]) {
  --glow-rgb: 255, 83, 83;
  --glow-accent: #ff9292;
}

:is(.card, .campaign-panel, .notice, .empty, .overview-tile, .performance-panel,
    .level-card, .table-wrap, .identity-card, .season-card, .hero, .match-card) {
  border-color: rgba(var(--glow-rgb, 255, 117, 68), .54);
  box-shadow: inset 7px 0 20px -7px rgba(var(--glow-rgb, 255, 117, 68), .66),
    0 0 14px rgba(var(--glow-rgb, 255, 117, 68), .20);
}

.match-card {
  --glow-rgb: 177, 177, 186;
  border-left-color: var(--result-color);
}
.match-card.match-win { --glow-rgb: 122, 239, 88; }
.match-card.match-loss { --glow-rgb: 255, 83, 83; }

.match-card:has(.match-link:is(.is-pressed, :active, :focus-visible)) {
  box-shadow: inset 7px 0 24px -5px rgba(var(--glow-rgb), .84),
    0 0 17px rgba(var(--glow-rgb), .32);
}

:is(.explore-fair-play, .fair-play-panel) .announcement-type,
.feature-card:is([href="#anti-cheat"], [href="#banned-players"]) .arrow {
  color: var(--glow-accent);
}

:where(.btn, .outline-btn, .filter, .nav-item, .mobile-nav a, .feature-card, summary):not(:disabled):is(:active, .is-pressed, :focus-visible) {
  box-shadow: inset 0 0 11px rgba(var(--glow-rgb, 255, 100, 45), .28),
    0 0 15px rgba(var(--glow-rgb, 255, 100, 45), .42);
}

@media (hover: hover) and (pointer: fine) {
  :where(.btn, .outline-btn, .filter, .nav-item, .feature-card, summary):not(:disabled):hover {
    box-shadow: inset 0 0 10px rgba(var(--glow-rgb, 255, 100, 45), .20),
      0 0 10px rgba(var(--glow-rgb, 255, 100, 45), .18);
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.btn, .outline-btn, .filter, .nav-item, .mobile-nav a, .feature-card, summary):not(.brand-opening-enter) {
    transition-property: scale, opacity, border-color, background-color, color, box-shadow;
  }
}

.platform-overview-grid > .card:first-child {
  --overview-photo: url("photos/card-arsenal.jpg");
  --overview-photo-position: right 43%;
}
.platform-overview-grid > .card:last-child {
  --overview-photo: url("photos/overview-matches.jpg");
  --overview-photo-position: right 44%;
}
.platform-overview-grid > .card {
  background-image:
    linear-gradient(90deg, #191b1e 0%, #191b1e 25%, rgba(25, 27, 30, .88) 48%, rgba(25, 27, 30, .27) 100%),
    var(--overview-photo);
  background-position: center, var(--overview-photo-position);
  background-repeat: no-repeat;
  background-size: cover, max(76%, 245px) auto;
}

/* The light breathes independently of the text, photos and layout. */
@media (prefers-reduced-motion: no-preference) {
  :is(.card, .campaign-panel, .notice, .empty, .overview-tile, .performance-panel,
      .level-card, .table-wrap, .identity-card, .season-card, .hero, .match-card,
      .nav-item.active, .mobile-nav a.active) {
    animation: fragix-glow-breathe 5s ease-in-out infinite;
  }

  :is(.feature-card, .nav-item, .mobile-nav a):is(:active, .is-pressed, :focus-visible),
  .match-card:has(.match-link:is(:active, .is-pressed, :focus-visible)) {
    animation: none;
  }

  @keyframes fragix-glow-breathe {
    0%, 100% {
      box-shadow: inset 7px 0 20px -7px rgba(var(--glow-rgb, 255, 117, 68), .30),
        0 0 14px rgba(var(--glow-rgb, 255, 117, 68), .08);
    }
    50% {
      box-shadow: inset 7px 0 20px -7px rgba(var(--glow-rgb, 255, 117, 68), .80),
        0 0 14px rgba(var(--glow-rgb, 255, 117, 68), .31);
    }
  }
}
