/* За трон · console.css — кабинет игрока и админ-панель */
.cx {
  --cx-bg: #151214; --cx-card: #1b1719; --cx-card-2: #211c1e; --cx-line: #ffffff14; --cx-line-2: #ffffff22;
  --cx-text: #ece5df; --cx-muted: #a3968f; --cx-accent: #d98a5f; --cx-accent-2: #efc4aa; --cx-accent-bg: #d98a5f1f;
  --cx-ok: #8fcf8f; --cx-ok-bg: #2f4a2f66; --cx-warn: #f0b46e; --cx-warn-bg: #5a3f1d66; --cx-bad: #ef8f78; --cx-bad-bg: #5a241a66;
  display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px;
  font-family: 'Golos Text', sans-serif; color: var(--cx-text);
}
.player-hero + .arena-stats + .cx, .player-hero ~ .cx { margin-top: 36px; }
.cx-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* sidebar */
.cx-side { position: sticky; top: 18px; background: linear-gradient(180deg, #1c1719, #151214); border: 1px solid var(--cx-line); border-radius: 16px; padding: 14px 10px; }
.cx-side-kicker { font-size: 11px !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--cx-muted); padding: 4px 12px 12px; margin: 0; }
.cx-side nav, .cx-side-foot { display: flex; flex-direction: column; gap: 2px; }
.cx-side nav a, .cx-side-foot a, .cx-side-foot button {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #cbbfb8; font-size: 14px !important;
  border: 0; background: transparent; box-shadow: none; text-align: left; width: 100%; height: auto; min-height: 0; letter-spacing: normal; text-transform: none; font-weight: 500;
  transition: background .15s, color .15s;
}
.cx-side nav a:hover, .cx-side-foot a:hover, .cx-side-foot button:hover { background: #ffffff0a; color: var(--cx-text); }
.cx-side nav a.active { background: var(--cx-accent-bg); color: var(--cx-accent-2); box-shadow: inset 3px 0 0 var(--cx-accent); }
.cx-side nav a span, .cx-side-foot span { flex: 1; }
.cx-side nav a b { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--cx-accent); color: #1a1010; font-size: 12px; display: grid; place-items: center; font-weight: 500; }
.cx-side-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cx-line); }

/* main */
.cx-main { min-width: 0; }
.cx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.cx-head h1 { font: 800 clamp(26px, 3.4vw, 38px)/1.1 'Manrope', sans-serif; margin: 0; letter-spacing: -.01em; }
.cx-head p { color: var(--cx-muted); margin: 8px 0 0; font-size: 14px; }
.cx-actions, .cx-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cx-actions-row { margin: 4px 0 14px; }
.cx-h2 { font: 800 20px 'Manrope', sans-serif; margin: 30px 0 14px; }
.cx-muted { color: var(--cx-muted); font-size: 13px; display: block; }
.cx-fine { font-size: 12px !important; margin-top: 14px; }
.cx-kicker { font-size: 12px !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--cx-accent); margin: 0 0 6px; }

/* buttons */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font: 500 14px 'Golos Text', sans-serif !important;
  letter-spacing: normal !important; text-transform: none; border: 1px solid var(--cx-line-2); background: #ffffff08; color: var(--cx-text); cursor: pointer; line-height: 1.2;
  box-shadow: none; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; min-height: 0; height: auto;
}
.cx-btn:hover { background: #ffffff12; border-color: #ffffff38; }
.cx-btn:active { transform: translateY(1px); }
.cx-btn .cx-ic { width: 16px; height: 16px; }
.cx-primary { background: linear-gradient(180deg, #e0905f, #c26f45); border-color: #e9a47c; color: #1d0f08; }
.cx-primary:hover { background: linear-gradient(180deg, #eb9c6b, #cc794e); border-color: #f3b893; }
.cx-ok { background: var(--cx-ok-bg); border-color: #8fcf8f55; color: var(--cx-ok); }
.cx-ghost { background: transparent; }
.cx-danger { color: var(--cx-bad); }
.cx-danger:hover { border-color: #ef8f7866; background: var(--cx-bad-bg); }
.cx-sm { padding: 7px 12px; font-size: 13px !important; border-radius: 8px; }
.cx-wide { width: 100%; margin: 14px 0 4px; padding: 14px; }

/* cards & grids */
.cx-card { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; }
.cx-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cx-card-head h3, .cx-card > h3 { font: 800 17px 'Manrope', sans-serif; margin: 0; }
.cx-card form { margin: 0; }
.cx-card .form-error:empty { display: none; }
.cx-grid { display: grid; gap: 18px; }
.cx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-grid > .cx-card, .cx-stack > .cx-card { margin-bottom: 0; }
.cx-stack { display: flex; flex-direction: column; gap: 18px; }
.cx-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--cx-line-2); border-radius: 16px; background: #ffffff04; }
.cx-empty h3 { font: 800 20px 'Manrope', sans-serif; margin: 0 0 8px; }
.cx-empty p { color: var(--cx-muted); margin: 0 0 18px; }
.cx-legacy > :first-child { margin-top: 0; }

/* kpis */
.cx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cx-kpi { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 14px; padding: 16px 18px; }
.cx-kpi strong { display: block; font: 800 26px/1.1 'Manrope', sans-serif; color: var(--cx-text); margin-bottom: 6px; }
.cx-kpi span { color: var(--cx-muted); font-size: 13px; }
.cx-kpi small { display: block; color: #7f736d; font-size: 12px; margin-top: 4px; }
.cx-kpi.cx-warn { border-color: #f0b46e55; background: linear-gradient(180deg, #2a2017, var(--cx-card)); }
.cx-kpi.cx-warn strong { color: var(--cx-warn); }
.cx-kpi.cx-pos strong, td.cx-pos, .cx-budget.cx-pos b { color: var(--cx-ok); }
.cx-kpi.cx-neg strong, td.cx-neg { color: var(--cx-bad); }

/* pills */
.cx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px !important; font-weight: 500; letter-spacing: normal !important; border: 1px solid transparent; white-space: nowrap; }
.cx-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cx-paid, .cx-free { color: var(--cx-ok); background: var(--cx-ok-bg); border-color: #8fcf8f33; }
.cx-review { color: var(--cx-warn); background: var(--cx-warn-bg); border-color: #f0b46e33; }
.cx-unpaid { color: var(--cx-accent-2); background: var(--cx-accent-bg); border-color: #d98a5f44; }
.cx-refunded { color: #b9b0ab; background: #ffffff0d; border-color: var(--cx-line-2); }

/* checklist */
.cx-checklist, .cx-steps, .cx-todo, .cx-feed, .cx-pages, .cx-facts, .cx-paysteps { list-style: none; margin: 0; padding: 0; }
.cx-checklist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--cx-line); }
.cx-checklist li:last-child { border-bottom: 0; }
.cx-checklist li > i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 500; font-size: 13px; border: 1px solid var(--cx-line-2); color: var(--cx-muted); flex: none; }
.cx-checklist li.done > i { background: var(--cx-ok-bg); border-color: #8fcf8f55; color: var(--cx-ok); }
.cx-checklist li.now > i { background: var(--cx-accent); border-color: var(--cx-accent); color: #1d0f08; box-shadow: 0 0 0 4px #d98a5f26; }
.cx-checklist li > div { flex: 1; min-width: 0; }
.cx-checklist strong { display: block; font-size: 15px; }
.cx-checklist small { color: var(--cx-muted); font-size: 13px; }
.cx-checklist li.done strong { color: #cfc5bf; }

/* team & cup mini */
.cx-team-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cx-team-line strong { display: block; font-size: 16px; }
.cx-team-line small { color: var(--cx-muted); font-size: 13px; }
.cx-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: #ffffff06; border: 1px dashed var(--cx-line-2); }
.cx-code span { color: var(--cx-muted); font-size: 13px; }
.cx-code b { font: 800 18px 'Manrope', monospace; letter-spacing: .12em; color: var(--cx-accent-2); flex: 1; }
.cx-cup-title, .cx-tcard-title, .cx-ticket-title { display: block; font: 800 19px/1.25 'Manrope', sans-serif; color: var(--cx-text); margin: 2px 0 4px; }
.cx-cup-title:hover, .cx-tcard-title:hover, .cx-ticket-title:hover { color: var(--cx-accent-2); }
.cx-mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 14px 0; }
.cx-mini-stats div { background: #ffffff06; border: 1px solid var(--cx-line); border-radius: 10px; padding: 10px 12px; }
.cx-mini-stats span { display: block; color: var(--cx-muted); font-size: 12px; margin-bottom: 3px; }
.cx-mini-stats strong { font: 800 16px 'Manrope', sans-serif; }

/* progress */
.cx-progress { position: relative; height: 8px; border-radius: 6px; background: #ffffff10; overflow: visible; margin: 8px 0 14px; }
.cx-progress > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #c26f45, #efc4aa); transition: width .3s; }
.cx-progress .cx-mark { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--cx-warn); border-radius: 1px; }
.cx-fill { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 4px; }
.cx-fill small { color: var(--cx-muted); }

/* feed */
.cx-feed li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--cx-line); position: relative; font-size: 14px; }
.cx-feed li:last-child { border-bottom: 0; }
.cx-feed li.unread::before { content: ''; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-accent); }
.cx-feed small { color: var(--cx-muted); white-space: nowrap; font-size: 12px; }
.cx-feed-full { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 16px; padding: 6px 20px; }

/* tickets */
.cx-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #ffffff06; border: 1px solid var(--cx-line); color: #cbbfb8; font-size: 13px; line-height: 1.55; margin: 0 0 16px; }
.cx-note .cx-ic { color: var(--cx-accent); margin-top: 1px; }
.cx-note a { color: var(--cx-accent-2); }
.cx-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 230px; background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 16px; margin-bottom: 14px; overflow: hidden; }
.cx-ticket-main { padding: 20px 22px; }
.cx-ticket-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cx-ticket-top .tag { padding: 0; }
.cx-ticket-side { padding: 20px 22px; background: #ffffff05; border-left: 1px dashed var(--cx-line-2); display: flex; flex-direction: column; gap: 2px; position: relative; }
.cx-ticket-side::before, .cx-ticket-side::after { content: ''; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: #100e10; border: 1px solid var(--cx-line); }
.cx-ticket-side::before { top: -9px; } .cx-ticket-side::after { bottom: -9px; }
.cx-ticket-side > span { color: var(--cx-muted); font-size: 12px; margin-top: 6px; }
.cx-ticket-side > strong { font: 800 18px 'Manrope', sans-serif; letter-spacing: .02em; }
.cx-ticket-side > small { color: var(--cx-muted); font-size: 12px; }
.cx-ticket-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cx-t-paid { border-color: #8fcf8f33; }
.cx-t-review { border-color: #f0b46e44; }
.cx-steps { display: flex; gap: 6px; margin: 16px 0 4px; flex-wrap: wrap; }
.cx-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cx-muted); padding-right: 6px; }
.cx-steps li:not(:last-child)::after { content: ''; width: 22px; height: 1px; background: var(--cx-line-2); margin-left: 4px; }
.cx-steps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--cx-line-2); font-style: normal; font-size: 12px; font-weight: 500; }
.cx-steps i .cx-ic { width: 14px; height: 14px; }
.cx-steps li.done { color: #cfe8cf; } .cx-steps li.done i { background: var(--cx-ok-bg); border-color: #8fcf8f55; color: var(--cx-ok); }
.cx-steps li.now { color: var(--cx-accent-2); } .cx-steps li.now i { background: var(--cx-accent); border-color: var(--cx-accent); color: #1d0f08; }
.cx-steps li.bad { color: var(--cx-bad); } .cx-steps li.bad i { border-color: var(--cx-bad); }
.cx-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; background: var(--cx-bad-bg); border: 1px solid #ef8f7844; color: #f6c3b6; font-size: 13px; margin: 12px 0 0; }
.cx-alert.cx-info { background: var(--cx-warn-bg); border-color: #f0b46e44; color: #f6d6b0; }

/* payment dialog */
#dialog-content .cx-paysteps { counter-reset: s; margin: 16px 0; }
.cx-paysteps li { counter-increment: s; position: relative; padding: 6px 0 6px 36px; font-size: 14px; line-height: 1.5; }
.cx-paysteps li::before { content: counter(s); position: absolute; left: 0; top: 5px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cx-accent-bg, #d98a5f1f); color: #efc4aa; font-size: 12px; font-weight: 500; }
.cx-reqs { border: 1px solid #ffffff1c; border-radius: 12px; overflow: hidden; margin: 14px 0; }
.cx-req { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #ffffff12; font-size: 14px; }
.cx-req:last-child { border-bottom: 0; }
.cx-req span { color: #a3968f; font-size: 12px; }
.cx-req b { font-weight: 500; overflow-wrap: anywhere; color: #ece5df; }
.cx-copy { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 8px; background: transparent; border: 1px solid #ffffff1c; color: #cbbfb8; min-height: 0; }
.cx-copy:hover { color: #efc4aa; border-color: #d98a5f88; }
.cx-copy .cx-ic { width: 15px; height: 15px; }
#dialog-content .cx-mini-stats div { background: #ffffff06; }

/* admin todo */
.cx-todo li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--cx-line); }
.cx-todo li:last-child { border-bottom: 0; }
.cx-todo li > i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--cx-accent-bg); color: var(--cx-accent-2); flex: none; }
.cx-todo li > div:not(.cx-row-actions) { flex: 1; min-width: 0; }
.cx-todo strong { display: block; font-size: 14px; }
.cx-todo span { color: var(--cx-muted); font-size: 13px; }
.cx-todo span b { color: var(--cx-text); font-weight: 500; }
.cx-allclear { display: flex; align-items: center; gap: 10px; color: var(--cx-ok); margin: 4px 0; font-size: 14px; }
.cx-row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* tournaments admin */
.cx-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cx-tcard { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; }
.cx-tcard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cx-tcard-head .tag { padding: 0; }
.cx-tcard .cx-row-actions { justify-content: flex-start; margin-top: auto; padding-top: 4px; }

/* applications admin */
.cx-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--cx-line-2); background: transparent; color: #cbbfb8; font: 500 13px 'Golos Text', sans-serif !important; letter-spacing: normal !important; text-transform: none; min-height: 0; height: auto; }
.cx-chips button b { margin-left: 4px; color: var(--cx-muted); font-weight: 500; }
.cx-chips button.active { background: var(--cx-accent-bg); border-color: var(--cx-accent); color: var(--cx-accent-2); }
.cx-select { min-width: 240px; font-size: 12px; color: var(--cx-muted); }
.cx-select select { margin-top: 4px; border-radius: 10px; }
.cx-list { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 16px; }
.cx-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1.4fr); gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--cx-line); }
.cx-row:last-child { border-bottom: 0; }
.cx-row-main small { display: block; margin-top: 3px; }
.cx-row-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cx-row-meta .tag { padding: 0; }
.cx-row-meta b { font-family: 'Manrope', sans-serif; }
.cx-claim { display: flex !important; align-items: center; gap: 6px; color: var(--cx-warn); font-size: 12px; }
.cx-claim .cx-ic { width: 14px; height: 14px; }

/* finance */
.cx-table { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 16px; padding: 4px 8px; }
.cx-table td small { display: block; }
.cx-pages li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--cx-line); }
.cx-pages li:last-child { border-bottom: 0; }
.cx-pages a { flex: 1; color: var(--cx-text); }

/* tournament form budget */
.cx-budget { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; margin: 6px 0 14px; background: #ffffff06; border: 1px solid #ffffff1c; font-size: 13px; color: #cbbfb8; }
.cx-budget b { font-size: 14px; color: #ece5df; }
.cx-budget.cx-neg { border-color: #ef8f7855; background: #5a241a40; }
.cx-budget em { font-style: normal; color: #f6c3b6; display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.cx-budget.cx-pos b { color: #8fcf8f; }

/* tournament page facts */
.cx-facts { margin: 18px 0 10px; display: grid; gap: 10px; }
.cx-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #cbbfb8; line-height: 1.5; }
.cx-facts .cx-ic { color: #d98a5f; margin-top: 1px; }
.cx-facts a { color: #efc4aa; }
.surface .cx-btn { margin-top: 6px; }

/* legacy content inside the shell */
.cx-main .match-card { border-radius: 14px; }
.cx-main .roster { margin-top: 18px; }

@media (max-width: 980px) {
  .cx { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cx-side { position: static; padding: 8px; border-radius: 14px; }
  .cx-side-kicker { display: none; }
  .cx-side nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .cx-side nav a { flex: none; width: auto; padding: 9px 12px; }
  .cx-side nav a.active { box-shadow: inset 0 -2px 0 var(--cx-accent); }
  .cx-side-foot { display: none; }
  .cx-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cx-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cx-row-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .cx-ticket { grid-template-columns: minmax(0, 1fr); }
  .cx-ticket-side { border-left: 0; border-top: 1px dashed var(--cx-line-2); }
  .cx-ticket-side::before, .cx-ticket-side::after { display: none; }
  .cx-req { grid-template-columns: minmax(0, 1fr) 36px; }
  .cx-req span { grid-column: 1 / -1; }
  .cx-todo li { flex-wrap: wrap; }
  .cx-card { padding: 16px; }
  .cx-head h1 { font-size: 26px; }
}

/* Golos Text is loaded in 400/500/900 only: keep bold text at 500 so it does not jump to 900 */
.cx b, .cx strong, #dialog-content b, #dialog-content strong, .cx-pill { font-weight: 500; }
.cx-kpi strong, .cx-mini-stats strong, .cx-ticket-side > strong, .cx-code b { font-weight: 800; }

/* ===== cabinet v2 ===== */
.cx-me { display: flex; align-items: center; gap: 11px; padding: 10px; margin: 0 0 12px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--h1) 30%, transparent), #ffffff05); border: 1px solid color-mix(in srgb, var(--h1) 40%, transparent); color: var(--cx-text); }
.cx-me:hover { border-color: var(--h1); }
.cx-me strong { display: block; font-size: 14px; }
.cx-me small { display: block; color: var(--cx-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

.cx-hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--h1) 45%, transparent); margin-bottom: 18px; min-height: 230px;
  background: radial-gradient(120% 140% at 85% 30%, color-mix(in srgb, var(--h1) 55%, transparent), transparent 60%), linear-gradient(120deg, #1a1416, var(--h2) 120%); }
.cx-hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.cx-hero-art video, .cx-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .9; }
.cx-hero-glow { position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--h1) 35%, transparent), transparent); pointer-events: none; }
.cx-hero-body { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; min-height: 230px; }
.cx-hero-avatar { position: relative; }
.cx-hero-avatar .identity-avatar { box-shadow: 0 0 0 4px #0008, 0 0 0 5px color-mix(in srgb, var(--h1) 70%, transparent), 0 14px 40px #000a; border-radius: 22px; }
.cx-hero-edit { position: absolute; right: -8px; bottom: -8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; min-height: 0; background: #1b1719; border: 1px solid var(--cx-line-2); color: var(--cx-text); }
.cx-hero-edit:hover { border-color: var(--h1); color: #fff; }
.cx-hero-id h2 { font: 800 clamp(30px, 4vw, 46px)/1.05 'Manrope', sans-serif; margin: 2px 0 12px; letter-spacing: -.02em; text-shadow: 0 4px 24px #0009; }
.cx-hero-mmr { text-align: right; background: #0007; border: 1px solid #ffffff1c; border-radius: 16px; padding: 14px 18px; backdrop-filter: blur(6px); }
.cx-hero-mmr span { display: block; color: var(--cx-muted); font-size: 12px; letter-spacing: .12em; }
.cx-hero-mmr strong { display: block; font: 800 38px/1.1 'Manrope', sans-serif; color: #fff; }
.cx-hero-mmr small { color: var(--cx-muted); font-size: 12px; }
.cx-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cx-hero .cx-ghost { background: #0006; backdrop-filter: blur(6px); }

.cx-chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #0007; border: 1px solid #ffffff1f; color: #e3d8d1; font: 500 13px 'Golos Text', sans-serif !important; letter-spacing: normal !important; text-transform: none; min-height: 0; height: auto; backdrop-filter: blur(6px); }
a.cx-chip:hover, button.cx-chip:hover { border-color: #ffffff55; color: #fff; }
.cx-chip .role-icon { width: 15px; height: 15px; }
.cx-chip .identity-avatar { width: 18px; height: 18px; font-size: 8px; }
.cx-chip-warn { color: var(--cx-warn); border-color: #f0b46e55; }
.cx-chip-rank { color: #f1d38a; border-color: #f1d38a55; background: #3a2c1255; }

.cx-statsgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.cx-statsgrid > .cx-card, .cx-statsgrid > .cx-kpi { margin: 0; }
.cx-wr { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
.cx-wr h3 { font: 800 17px 'Manrope', sans-serif; margin: 0 0 4px; }
.cx-wr p { margin: 0; }
.cx-ring { position: relative; width: 84px; height: 84px; flex: none; }
.cx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cx-ring circle { fill: none; stroke-width: 8; }
.cx-ring-bg { stroke: #ffffff12; }
.cx-ring-fg { stroke: var(--cx-accent); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.cx-ring span { position: absolute; inset: 0; display: grid; place-items: center; }
.cx-ring strong { font: 800 18px 'Manrope', sans-serif; }
.cx-streak { margin-top: 6px !important; font-size: 13px; }
.cx-streak.up { color: var(--cx-ok); } .cx-streak.down { color: var(--cx-bad); }
.cx-kpi.cx-gold strong { color: #f1d38a; }
.cx-kpi.cx-pos strong { color: var(--cx-ok); }

.cx-form { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.cx-form a, .cx-form i { height: 38px; border-radius: 8px; display: grid; place-items: center; font: 800 13px 'Manrope', sans-serif; font-style: normal; }
.cx-form a.w { background: var(--cx-ok-bg); color: var(--cx-ok); border: 1px solid #8fcf8f44; }
.cx-form a.l { background: var(--cx-bad-bg); color: var(--cx-bad); border: 1px solid #ef8f7844; }
.cx-form i { border: 1px dashed var(--cx-line-2); }

.cx-history { list-style: none; margin: 0; padding: 0; }
.cx-history li { border-bottom: 1px solid var(--cx-line); }
.cx-history li:last-child { border-bottom: 0; }
.cx-history a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 11px 0; color: var(--cx-text); }
.cx-history a:hover .cx-vs b { color: var(--cx-accent-2); }
.cx-history small { grid-column: 2; color: var(--cx-muted); font-size: 12px; }
.cx-res { grid-row: span 2; text-align: center; padding: 6px 0; border-radius: 8px; font-size: 12px; font-weight: 500; }
.cx-res.w { background: var(--cx-ok-bg); color: var(--cx-ok); } .cx-res.l { background: var(--cx-bad-bg); color: var(--cx-bad); }
.cx-vs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.cx-vs b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-vs em { font: 800 14px 'Manrope', sans-serif; font-style: normal; padding: 2px 8px; border-radius: 6px; background: #ffffff0d; white-space: nowrap; }
.cx-vs .identity-avatar { width: 22px; height: 22px; font-size: 9px; flex: none; }

.cx-notices { list-style: none; margin: 0; padding: 0; }
.cx-notices li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cx-line); font-size: 14px; }
.cx-notices li:last-child { border-bottom: 0; }
.cx-notices li > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #ffffff08; color: var(--cx-muted); }
.cx-notices li.unread > i { background: var(--cx-accent-bg); color: var(--cx-accent-2); }
.cx-notices li.unread span { color: #fff; }
.cx-notices small { color: var(--cx-muted); font-size: 12px; white-space: nowrap; }
.cx-notices .cx-day { display: block; padding: 16px 0 6px; border: 0; color: var(--cx-accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.cx-notices .cx-day:first-child { padding-top: 4px; }

.cx-stack-avatars { display: flex; margin: 4px 0 12px 6px; }
.cx-stack-avatars a, .cx-stack-avatars i { margin-left: -6px; border-radius: 50%; }
.cx-stack-avatars .identity-avatar { box-shadow: 0 0 0 3px var(--cx-card); border-radius: 50%; }
.cx-stack-avatars i { width: 42px; height: 42px; display: grid; place-items: center; border: 1px dashed var(--cx-line-2); color: var(--cx-muted); font-style: normal; background: var(--cx-card); }
a.cx-team-line { color: var(--cx-text); }
.cx-next { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 6px 0 10px; }
.cx-next em { font: 800 16px 'Manrope', sans-serif; font-style: normal; color: var(--cx-accent); }
.cx-next span:last-child { justify-self: end; }
.cx-glow { border-color: #d98a5f66; background: radial-gradient(120% 100% at 0% 0%, #d98a5f22, transparent 60%), var(--cx-card); }

.cx-team-hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--b1) 45%, transparent); margin-bottom: 18px;
  background: radial-gradient(90% 160% at 100% 0%, color-mix(in srgb, var(--b1) 55%, transparent), transparent 60%), radial-gradient(70% 120% at 0% 100%, color-mix(in srgb, var(--b2) 50%, transparent), transparent 70%), #171315; }
.cx-team-hero-body { display: flex; gap: 22px; align-items: center; padding: 26px 28px; }
.cx-team-hero .identity-avatar { border-radius: 22px; box-shadow: 0 0 0 4px #0008, 0 0 0 5px color-mix(in srgb, var(--b1) 70%, transparent), 0 14px 40px #000a; }
.cx-team-hero h2 { font: 800 clamp(26px, 3.6vw, 40px)/1.1 'Manrope', sans-serif; margin: 2px 0 6px; }
.cx-team-desc { color: #d6cbc4; margin: 0; max-width: 620px; font-size: 14px; line-height: 1.5; }
.cx-team-hero .cx-ghost { background: #0006; }
.cx-code-big b { font-size: 24px; }
.cx-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cx-roles span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; border: 1px dashed var(--cx-line-2); color: var(--cx-muted); text-align: center; }
.cx-roles span.on { border-style: solid; border-color: #d98a5f55; background: var(--cx-accent-bg); color: var(--cx-accent-2); }
.cx-roles b { font-size: 12px; font-weight: 500; line-height: 1.2; }
.cx-roles small { font-size: 11px; color: var(--cx-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-roles .role-icon { width: 20px; height: 20px; }
.cx-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cx-player { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 12px 14px; border-radius: 14px; background: var(--cx-card-2); border: 1px solid var(--cx-line); }
.cx-player.me { border-color: #d98a5f66; }
.cx-player .identity-avatar { border-radius: 18px; }
.cx-player-name { font: 800 16px 'Manrope', sans-serif; color: var(--cx-text); margin-top: 4px; }
.cx-player-role { display: inline-flex; align-items: center; gap: 6px; color: var(--cx-muted); font-size: 13px; }
.cx-player-role .role-icon { width: 15px; height: 15px; }
.cx-player dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; margin: 8px 0 4px; }
.cx-player dl div { background: #ffffff06; border-radius: 8px; padding: 6px 2px; }
.cx-player dt { color: var(--cx-muted); font-size: 10px; }
.cx-player dd { margin: 0; font: 800 12px 'Manrope', sans-serif; overflow: hidden; text-overflow: ellipsis; }
.cx-slot { justify-content: center; border-style: dashed; background: transparent; color: var(--cx-muted); min-height: 200px; }
.cx-slot i { width: 54px; height: 54px; border-radius: 16px; border: 1px dashed var(--cx-line-2); display: grid; place-items: center; font-style: normal; font-size: 24px; }
.cx-slot b { color: #cbbfb8; font-weight: 500; }
.cx-slot small { font-size: 12px; }
.cx-look { position: relative; display: flex; align-items: flex-end; height: 150px; border-radius: 14px; overflow: hidden; padding: 14px; background: #120f10; }
.cx-look-hero { position: absolute; inset: 0; background: radial-gradient(100% 120% at 80% 30%, color-mix(in srgb, var(--h1) 50%, transparent), transparent 65%); }
.cx-look-hero video, .cx-look-hero img { position: absolute; right: 0; height: 100%; width: 60%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.cx-look .identity-avatar { position: relative; border-radius: 18px; box-shadow: 0 0 0 3px #0009; }

@media (max-width: 1100px) { .cx-statsgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cx-statsgrid > .cx-wr { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .cx-hero-body { grid-template-columns: auto minmax(0, 1fr); padding: 20px; gap: 16px; }
  .cx-hero-mmr { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .cx-hero-art { width: 70%; opacity: .45; }
  .cx-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-team-hero-body { flex-direction: column; align-items: flex-start; }
  .cx-form { gap: 4px; } .cx-form a, .cx-form i { height: 30px; font-size: 11px; }
}
@media (max-width: 520px) { .cx-statsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cx-history a { grid-template-columns: 1fr; } .cx-res { grid-row: auto; justify-self: start; padding: 4px 10px; } .cx-history small { grid-column: 1; } }

.cx-muted-inline { color: var(--cx-muted); font-size: 13px; }

@media (max-width: 560px) {
  .cx-hero-body { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .cx-hero-avatar .identity-avatar { width: 72px; height: 72px; font-size: 26px; }
  .cx-hero-id h2 { font-size: 30px; margin-bottom: 10px; }
  .cx-hero-art { width: 85%; opacity: .35; }
  .cx-chip { font-size: 12px !important; padding: 5px 9px; }
  .cx-hero-mmr strong { font-size: 28px; }
  .cx-team-hero-body { padding: 18px; }
  .cx-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-notices li { grid-template-columns: 30px minmax(0, 1fr); }
  .cx-notices li small { grid-column: 2; }
}

/* hero card v2.1: whole hero in frame, compact stats instead of the MMR box */
.cx-hero { min-height: 260px; }
.cx-hero-body { grid-template-columns: auto minmax(0, 1fr); min-height: 260px; padding-right: min(36%, 300px); }
.cx-hero-art { left: auto; right: 10px; top: 0; bottom: 0; width: auto; height: 100%; aspect-ratio: 1 / 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 12%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 12%); mask-composite: intersect; }
.cx-hero-art video, .cx-hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 1; filter: drop-shadow(0 10px 30px #000a); }
.cx-hero-mmr { display: none; }
.cx-hero-stats { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 14px; width: fit-content; border-radius: 12px; background: #0000004d; border: 1px solid #ffffff14; backdrop-filter: blur(6px); }
.cx-hero-stats > div { padding: 8px 16px; display: flex; flex-direction: column; justify-content: center; }
.cx-hero-stats > div + div { border-left: 1px solid #ffffff14; }
.cx-hero-stats span { color: var(--cx-muted); font-size: 11px !important; letter-spacing: .1em !important; text-transform: uppercase; }
.cx-hero-stats strong { font: 800 15px/1.3 'Manrope', sans-serif; color: #f3ece6; white-space: nowrap; }
.cx-hero-stats .cx-mmr strong { font-size: 20px; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--h1) 55%, #f1d38a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-look-hero video, .cx-look-hero img { width: auto; aspect-ratio: 1 / 1; object-fit: contain; object-position: center bottom; }
@media (max-width: 760px) { .cx-hero-body { padding-right: 20px; } .cx-hero-art { opacity: .4; } }
@media (max-width: 560px) { .cx-hero-art { height: 70%; top: auto; opacity: .35; } .cx-hero-stats > div { padding: 7px 11px; } }

.cx-hero-art video, .cx-hero-art img { transform: scale(1.25); transform-origin: 50% 96%; }
.cx-hero-art { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 5%); mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 5%); }

/* per-hero framing: each animation has its own composition inside the square video */
.cx-hero-art.hero-pudge video, .cx-hero-art.hero-pudge img { transform: scale(1.25); }
.cx-hero-art.hero-meepo video, .cx-hero-art.hero-meepo img { transform: scale(1.12); }
.cx-hero-art:is(.hero-axe,.hero-phantom_assassin,.hero-invoker,.hero-nevermore) video,
.cx-hero-art:is(.hero-axe,.hero-phantom_assassin,.hero-invoker,.hero-nevermore) img { transform: scale(.9); }

@media (max-width: 760px) { .cx-hero-body { padding-right: 20px; } }
@media (max-width: 560px) { .cx-hero-body { grid-template-columns: minmax(0, 1fr); padding: 18px; min-height: 0; } .cx-hero-art { height: 62%; opacity: .3; } }

.cx-hero-avatar { width: fit-content; }

/* ===== v2.2: hero staging without halo or hard edges ===== */
.cx-hero-art, .cx-hero-art.hero-pudge, .cx-hero-art.hero-meepo { right: 0; left: auto; top: auto; bottom: 0; height: 100%; width: auto; aspect-ratio: 1 / 1; opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%); -webkit-mask-composite: source-over; mask-composite: add; }
.cx-hero-art video, .cx-hero-art img, .cx-hero-art[class*="hero-"] video, .cx-hero-art[class*="hero-"] img { transform: none; filter: none; object-fit: contain; object-position: center bottom; }
/* heroes whose animation leaves empty space in the frame are drawn bigger; only the empty part leaves the card */
.cx-hero-art.hero-pudge { height: 128%; bottom: -7%; }
.cx-hero-art.hero-meepo { height: 112%; bottom: -3%; }
.cx-hero-art:is(.hero-axe,.hero-phantom_assassin,.hero-invoker,.hero-nevermore) { height: 96%; }
/* soft floor under the feet instead of a glow around the body */
.cx-hero-art::after { content: ''; position: absolute; left: 18%; right: 12%; bottom: 2%; height: 14%; background: radial-gradient(closest-side, #000a, transparent); z-index: -1; }
.cx-hero-glow { inset: auto -5% -70% 45%; opacity: .7; }
@media (max-width: 760px) { .cx-hero-art, .cx-hero-art[class*="hero-"] { opacity: .45; } }
@media (max-width: 560px) { .cx-hero-art, .cx-hero-art[class*="hero-"] { height: 70%; bottom: 0; opacity: .3; } }

/* ===== v2.2: navigation as Dota item slots, no side stripe ===== */
.cx-side nav a, .cx-side-foot a, .cx-side-foot button { padding: 7px 10px; gap: 12px; }
.cx-side nav a.active { background: linear-gradient(90deg, #d98a5f14, transparent 80%); box-shadow: none; color: #fff1e6; }
.cx-navic { position: relative; flex: none !important; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #b9aca5;
  background: linear-gradient(160deg, #2a2326, #161214); border: 1px solid #ffffff14; box-shadow: inset 0 1px 0 #ffffff0f, inset 0 -6px 10px #0006; transition: border-color .2s, box-shadow .2s, background .2s, color .2s; }
.cx-navic .cx-ic { width: 17px; height: 17px; }
.cx-side a:hover .cx-navic, .cx-side-foot button:hover .cx-navic { border-color: #d98a5f66; color: #efc4aa; }
.cx-side nav a.active .cx-navic { color: #2a1006; border-color: #ffd2ae;
  background: radial-gradient(120% 120% at 50% 110%, #ffc08a 0, #e0884f 38%, #8a3a1c 100%);
  box-shadow: 0 0 0 3px #d98a5f1f, 0 8px 20px -4px #e0884f88, inset 0 1px 0 #fff0dcaa, inset 0 -4px 8px #5a1f0c66; }
.cx-side nav a.active .cx-navic .cx-ic { stroke-width: 2; }
.cx-navic::before, .cx-navic::after { content: ''; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffc890; opacity: 0; pointer-events: none; }
.cx-side nav a.active .cx-navic::before { left: 8px; bottom: 4px; animation: cx-ember 2.6s ease-out infinite; }
.cx-side nav a.active .cx-navic::after { right: 9px; bottom: 6px; animation: cx-ember 3.1s ease-out .9s infinite; }
@keyframes cx-ember { 0% { opacity: 0; transform: translateY(0) scale(1); } 20% { opacity: .95; } 100% { opacity: 0; transform: translateY(-26px) scale(.4); } }
.cx-side nav a.active > span:not(.cx-navic) { font-weight: 500; }
.cx-side nav a.active::after { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; transform: rotate(45deg); border-radius: 1px;
  background: linear-gradient(135deg, #ffd9b8, #d0703f); box-shadow: 0 0 10px #e0884faa; }
@media (max-width: 980px) {
  .cx-side nav a.active { box-shadow: none; background: transparent; }
  .cx-side nav a.active::after { display: none; }
  .cx-side nav a { padding: 6px 10px 6px 6px; }
}
@media (prefers-reduced-motion: reduce) { .cx-side nav a.active .cx-navic::before, .cx-side nav a.active .cx-navic::after { animation: none; } }

/* ===== public team page ===== */
.cx-teampage { margin-top: 0; }
.cx-team-side nav button { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; color: #cbbfb8; font: 500 14px 'Golos Text', sans-serif !important; letter-spacing: normal !important; text-transform: none;
  border: 0; background: transparent; box-shadow: none; text-align: left; width: 100%; height: auto; min-height: 0; cursor: pointer; }
.cx-team-side nav button:hover { background: #ffffff0a; color: var(--cx-text); }
.cx-team-side nav button span:not(.cx-navic) { flex: 1; }
.cx-team-side nav button:hover .cx-navic { border-color: #d98a5f66; color: #efc4aa; }
.cx-team-side nav button.active { background: linear-gradient(90deg, #d98a5f14, transparent 80%); color: #fff1e6; }
.cx-team-side nav button.active .cx-navic { color: #2a1006; border-color: #ffd2ae; background: radial-gradient(120% 120% at 50% 110%, #ffc08a 0, #e0884f 38%, #8a3a1c 100%);
  box-shadow: 0 0 0 3px #d98a5f1f, 0 8px 20px -4px #e0884f88, inset 0 1px 0 #fff0dcaa, inset 0 -4px 8px #5a1f0c66; }
.cx-team-side nav button.active::after { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; transform: rotate(45deg); border-radius: 1px; background: linear-gradient(135deg, #ffd9b8, #d0703f); box-shadow: 0 0 10px #e0884faa; }
.cx-tside-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px 16px; margin-bottom: 10px; border-radius: 12px;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--b1) 35%, transparent), transparent 70%); border: 1px solid color-mix(in srgb, var(--b1) 30%, transparent); }
.cx-tside-head .identity-avatar { border-radius: 20px; box-shadow: 0 0 0 3px #0009, 0 0 0 4px color-mix(in srgb, var(--b1) 60%, transparent); }
.cx-tside-head strong { font: 800 17px 'Manrope', sans-serif; margin-top: 6px; }
.cx-tside-head small { color: var(--cx-muted); font-size: 12px; }
.cx-tside-info { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cx-line); display: grid; gap: 12px; }
.cx-tside-info p { margin: 0 4px; display: grid; gap: 6px; font-size: 13px; }
.cx-tside-info p > span { color: var(--cx-muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.cx-tside-info a { display: inline-flex; align-items: center; gap: 8px; color: var(--cx-text); }
.cx-tside-info b { font-weight: 500; overflow-wrap: anywhere; }
.cx-form-5 { grid-template-columns: repeat(5, 1fr); gap: 5px; }
.cx-form-5 a, .cx-form-5 i { height: 28px; font-size: 11px; }
.cx-recruit { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--cx-ok-bg); border: 1px solid #8fcf8f44; }
.cx-recruit strong { display: block; color: var(--cx-ok); font-size: 14px; }
.cx-recruit small { color: #cfe8cf; font-size: 12px; }
.cx-team-hero-xl .cx-team-hero-body { padding: 32px; gap: 28px; }
.cx-team-hero-xl .avatar-hero { width: 132px; height: 132px; font-size: 44px; }
.cx-team-title { font: 800 clamp(30px, 4.4vw, 52px)/1.05 'Manrope', sans-serif; margin: 2px 0 8px; letter-spacing: -.02em; text-shadow: 0 4px 24px #0009; }
.cx-player-link { color: var(--cx-accent-2); font-size: 12px; }
.cx-cups { list-style: none; margin: 0; padding: 0; }
.cx-cups li { border-bottom: 1px solid var(--cx-line); }
.cx-cups li:last-child { border-bottom: 0; }
.cx-cups a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; color: var(--cx-text); }
.cx-cups a:hover b { color: var(--cx-accent-2); }
.cx-cups b { display: block; font-weight: 500; }
.cx-cups small { color: var(--cx-muted); font-size: 12px; }
.cx-cups .tag { padding: 0; }
#tp-overview, #tp-roster, #tp-matches, #tp-cups { scroll-margin-top: 20px; }
@media (max-width: 980px) {
  .cx-team-side .cx-tside-head, .cx-team-side .cx-tside-info, .cx-team-side .cx-recruit { display: none; }
  .cx-team-side nav button { flex: none; width: auto; padding: 6px 10px 6px 6px; }
  .cx-team-side nav button.active::after { display: none; }
}
@media (max-width: 560px) { .cx-team-hero-xl .cx-team-hero-body { padding: 20px; } .cx-team-hero-xl .avatar-hero { width: 96px; height: 96px; } }

.cx-team-hero, .cx-team-side { --h1: var(--b1); }

.cx-grid-tp { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .cx-grid-tp { grid-template-columns: minmax(0, 1fr); } }

/* v2.3: no diamond next to the active menu item */
.cx-side nav a.active::after, .cx-team-side nav button.active::after { content: none; display: none; }
