/* Ported behavior, scoped to the new site's theme. */
.competitive-app { --bg-card:var(--surface); --bg-elevated:var(--surface-2); --border:var(--line); --text-dim:var(--text-2); --text-muted:var(--text-3); --gold:var(--text); --gold-light:var(--text); --live:#238653; --upcoming:var(--link); --ended:var(--text-3); --card-w:260px; --font:inherit; --font-display:inherit; --max-w:100%; }
.competitive-app [hidden] { display:none !important; }
/* GLOW Competitive Tracker — dashboard + Fortnite compete cards */

.competitive-app *, .competitive-app *::before, .competitive-app *::after { box-sizing: border-box; margin: 0; padding: 0; }
.competitive-app a { color: inherit; text-decoration: none; }
.competitive-app button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
}
.competitive-app [hidden] { display: none !important; }

.competitive-app .nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--border);
}
/* Three zones that never overlap: brand+status | platform links | actions */
/* Links share the middle; platform-nav.js moves whatever does not fit into "More" */
.competitive-app .nav__status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.12); color: #86efac;
}
.competitive-app .nav__status-pill--upcoming {
  border-color: rgba(96, 165, 250, 0.35); background: rgba(96, 165, 250, 0.1); color: #93c5fd;
}
.competitive-app .nav__status-pill--idle {
  border-color: var(--border); background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--text-muted);
}
.competitive-app .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9rem;
}
.competitive-app .btn--sm { padding: 8px 12px; font-size: 0.82rem; }
.competitive-app .btn--discord { background: #5865f2; color: var(--text); border-color: color-mix(in srgb, var(--text) 12%, transparent); }
.competitive-app .btn--line { background: transparent; border-color: var(--border); color: var(--text-dim); }
.competitive-app .btn--line:hover { border-color: color-mix(in srgb, var(--text) 20%, transparent); color: var(--text); }
/* Globe + Discord: square icon buttons, same as the BR Shop */

.competitive-app .hero {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; padding: 36px 20px 12px; text-align: center;
}
.competitive-app .event-filters {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 2%, transparent); margin-bottom: 8px;
}
.competitive-app .event-filters__group { display: flex; flex-wrap: wrap; gap: 6px; }
.competitive-app .filter-chip {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 5px 12px; font-size: 0.72rem; font-weight: 700;
  background: transparent; color: var(--text-dim);
}
.competitive-app .filter-chip--active {
  border-color: rgba(255, 200, 124, 0.4);
  background: rgba(255, 200, 124, 0.12); color: var(--gold-light);
}
.competitive-app .hero::before {
  content: ''; position: absolute; inset: -40px 0 auto; height: 220px; z-index: -1;
  background: var(--surface);
  pointer-events: none;
}
.competitive-app .hero { position: relative; }
.competitive-app .featured-players {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.competitive-app .featured-player {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 3%, transparent); text-align: left; max-width: 100%;
}
.competitive-app .featured-player:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.competitive-app .featured-player__rank { font-weight: 800; color: var(--gold-light); min-width: 2ch; }
.competitive-app .featured-player__name { font-weight: 700; font-size: 0.9rem; }
.competitive-app .featured-player__pts { font-size: 0.72rem; color: var(--text-muted); }
.competitive-app .event-card-skeleton {
  flex: 0 0 var(--card-w); height: 280px; border-radius: var(--radius);
  background: var(--surface);
  background-size: 200% 100%;
  border: 1px solid var(--border);
}
.competitive-app .lb-search { display: inline-flex; align-items: center; }
.competitive-app .lb-search__input {
  width: min(200px, 42vw); padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 25%, transparent);
  color: var(--text); font-size: 0.82rem;
}
.competitive-app .lb-pins { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.competitive-app .lb-pins__label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); }
.competitive-app .lb-pins__list { display: flex; flex-wrap: wrap; gap: 6px; }
.competitive-app .lb-pin-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: var(--radius); font-size: 0.72rem; font-weight: 700;
  background: rgba(255, 200, 124, 0.12); border: 1px solid rgba(255, 200, 124, 0.25);
}
.competitive-app .lb-pin-tag button { border: none; background: none; padding: 0; color: var(--text-muted); line-height: 1; }
.competitive-app .lb-table tr.lb-row--pinned { background: rgba(255, 200, 124, 0.08); }
.competitive-app .lb-table tr.lb-row--pinned td { border-color: rgba(255, 200, 124, 0.15); }
.competitive-app .lb-col-pin { width: 36px; }
.competitive-app .lb-pin-btn {
  border: none; background: none; padding: 4px; color: var(--text-muted); opacity: 0.5;
}
.competitive-app .lb-pin-btn--on { color: var(--gold-light); opacity: 1; }
.competitive-app .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.competitive-app .rank-evolution { display: grid; gap: 16px; margin-bottom: 22px; }
.competitive-app .rank-evolution__card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  background: color-mix(in srgb, var(--text) 2%, transparent);
}
.competitive-app .rank-evolution__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.competitive-app .rank-evolution__head h4 { font-size: 0.88rem; font-weight: 800; }
.competitive-app .rank-evolution__chart-wrap {
  position: relative;
  width: 100%;
  margin-top: 4px;
}
.competitive-app .rank-evolution__plot {
  position: relative;
  width: 100%;
  height: 96px;
}
.competitive-app .rank-evolution__chart {
  display: block;
  width: 100%;
  height: 100%;
}
.competitive-app .rank-evolution__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.competitive-app .rank-evolution__dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: var(--radius);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: color-mix(in srgb, var(--text) 55.00000000000001%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
  cursor: default;
}
.competitive-app .rank-evolution__dot--current {
  background: #ffe9c2;
  border-color: #ffc87c;
}
.competitive-app .rank-evolution__dates {
  position: relative;
  width: 100%;
  height: 22px;
  margin-top: 4px;
}
.competitive-app .rank-evolution__date {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.42);
  white-space: nowrap;
}
.competitive-app .rank-evolution__axis-label {
  fill: rgba(244, 244, 245, 0.42);
  font-size: 11px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
}
.competitive-app .rank-evolution__tooltip {
  position: absolute;
  z-index: 2;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid rgba(255, 200, 124, 0.35);
  color: var(--gold-light);
}
.competitive-app .player-hero__id-btn {
  margin-top: 6px; border: none; background: none; padding: 0;
  font-size: 0.72rem; color: var(--text-muted); font-family: ui-monospace, monospace;
  word-break: break-all; cursor: pointer; text-align: left;
}
.competitive-app .player-hero__id-btn:hover { color: var(--gold-light); text-decoration: underline; }
.competitive-app .player-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 10px 16px; border-radius: var(--radius); font-size: 0.82rem; font-weight: 700;
  background: rgba(20,20,24,0.95); border: 1px solid var(--border); z-index: 200; pointer-events: none;
}
.competitive-app .player-search__history-actions {
  display: flex; justify-content: flex-end; gap: 8px; padding: 4px 8px 8px;
}
.competitive-app .player-search__history-actions button {
  border: none; background: none; font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); text-decoration: underline;
}
.competitive-app .player-search__option-wrap { display: flex; align-items: stretch; }
.competitive-app .player-search__option-wrap .player-search__option { flex: 1; }
.competitive-app .player-search__history-remove {
  flex: 0 0 auto; width: 36px; border: none; background: transparent;
  color: var(--text-muted); font-size: 1.1rem; line-height: 1;
}
.competitive-app .player-search__history-remove:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }

.competitive-app .calendar-panel {
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(12, 12, 14, 0.85);
}
.competitive-app .calendar-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.competitive-app .calendar-panel__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  flex: 1;
}
.competitive-app .cal-nav {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
}
.competitive-app .cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.competitive-app .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.competitive-app .cal-cell {
  min-height: 72px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px;
  background: color-mix(in srgb, var(--text) 2%, transparent);
  text-align: left;
  cursor: pointer;
}
.competitive-app .cal-cell:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.competitive-app .cal-cell--muted { opacity: 0.35; pointer-events: none; }
.competitive-app .cal-cell--today { border-color: rgba(255, 200, 124, 0.35); }
.competitive-app .cal-cell--selected { border-color: var(--gold); background: rgba(255, 200, 124, 0.08); }
.competitive-app .cal-cell__num {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.competitive-app .cal-cell__dots { display: flex; flex-wrap: wrap; gap: 3px; }
.competitive-app .cal-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius);
}
.competitive-app .cal-dot--live { background: var(--live); }
.competitive-app .cal-dot--upcoming { background: var(--upcoming); }
.competitive-app .cal-dot--ended { background: var(--ended); }
.competitive-app .cal-day-detail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.competitive-app .cal-day-detail__title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.competitive-app .cal-day-event {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 3%, transparent);
  margin-bottom: 8px;
}
.competitive-app .cal-day-event:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.competitive-app .cal-day-event__title { font-weight: 700; font-size: 0.88rem; }
.competitive-app .cal-day-event__when { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.competitive-app .event-card__meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.35;
}
.competitive-app .event-card__meta-line { display: block; }
.competitive-app .event-card__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.competitive-app .region-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 8px;
}

/* Player search */
.competitive-app .player-search {
  position: relative;
  max-width: none;
  margin: 0;
  text-align: left;
}
.competitive-app .player-search__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: center;
}
.competitive-app .player-search__box {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  overflow: hidden;
}
.competitive-app .player-search__icon {
  flex: 0 0 auto;
  align-self: center;
  margin-inline-start: 16px;
  color: var(--text-muted);
}
.competitive-app .player-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 14px 16px 14px 12px;
  font-size: 0.95rem;
  outline: none;
}
.competitive-app .player-search__input::placeholder { color: var(--text-muted); }
.competitive-app .player-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  margin-right: 4px;
  cursor: pointer;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
  opacity: 0.75;
}
.competitive-app .player-search__input::-webkit-search-cancel-button:hover { opacity: 1; }
.competitive-app .player-search__suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: rgba(8, 8, 10, 0.98);
  max-height: min(280px, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 200, 124, 0.35) transparent;
}
.competitive-app .player-search__suggest-head {
  padding: 8px 12px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(8, 8, 10, 0.98);
  border-radius: var(--radius);
}
.competitive-app .player-search__suggest-empty {
  padding: 14px 12px;
  font-size: 0.84rem;
  color: var(--text-dim);
  text-align: center;
}
.competitive-app .player-search__option--history .player-search__option-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.competitive-app .player-search__history-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  opacity: 0.45;
}
.competitive-app .player-search__option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
}
.competitive-app .player-search__option:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.competitive-app .player-search__option-name { font-weight: 700; font-size: 0.92rem; }
.competitive-app .player-search__option-plat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Player profile panel */
.competitive-app .player-panel { margin-bottom: 28px; }
.competitive-app .player-panel__head { margin-bottom: 12px; }
.competitive-app .player-panel__loading {
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}
.competitive-app .player-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.competitive-app .player-hero__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  letter-spacing: -0.02em;
}
.competitive-app .player-hero__rank-line {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light);
}
.competitive-app .player-hero__id {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  word-break: break-all;
  margin-top: 6px;
  opacity: 0.85;
}
.competitive-app .player-panel__loading-inline {
  display: flex;
  justify-content: center;
  padding: 56px 16px;
}

/* Rank graphics (fortnite.gg 2.0 PNGs via manifest) */
.competitive-app .rank-art {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.competitive-app .rank-art--hero {
  width: 88px;
  height: 88px;
  background: var(--surface);
}
.competitive-app .rank-art--card {
  width: 100%;
  min-height: 100px;
  padding: 12px 8px 4px;
  background: var(--surface);
}
.competitive-app .rank-art img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--bg) 45%, transparent));
}
.competitive-app .rank-art--hero img { max-height: 80px; }
.competitive-app .rank-art--fallback {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px dashed color-mix(in srgb, var(--text) 12%, transparent);
}
.competitive-app .rank-art__text {
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  padding: 8px;
  color: var(--text-dim);
  line-height: 1.2;
}
.competitive-app .rank-art--gold.rank-art--fallback { color: var(--gold-light); }
.competitive-app .rank-art--champion.rank-art--fallback { color: #ffb8cc; }
.competitive-app .rank-art--unreal.rank-art--fallback { color: #fff0c8; }

.competitive-app .stat-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.competitive-app .stat-summary__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: color-mix(in srgb, var(--text) 2%, transparent);
  display: grid;
  gap: 4px;
}
.competitive-app .stat-summary__item strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
}
.competitive-app .stat-summary__item span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}
.competitive-app .rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.competitive-app .rank-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(12, 12, 14, 0.85);
}
.competitive-app .rank-card--past { opacity: 0.92; }
.competitive-app .rank-card__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 8px;
}
.competitive-app .rank-card__head h4 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}
.competitive-app .rank-card__season-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 4px;
}
.competitive-app .rank-card__dates {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.competitive-app .rank-card__rank-name {
  font-size: 0.88rem;
  font-weight: 800;
}
.competitive-app .rank-card__progress {
  height: 6px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--text) 8%, transparent);
  overflow: hidden;
}
.competitive-app .rank-card__progress-bar {
  height: 100%;
  border-radius: var(--radius);
  background: var(--surface);
}
.competitive-app .rank-card__progress-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.competitive-app .rank-card__meta {
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.competitive-app .player-block { margin-bottom: 22px; }
.competitive-app .player-block__title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.competitive-app .player-block__hint { color: var(--text-dim); font-size: 0.88rem; }
.competitive-app .player-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.competitive-app .player-chip {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}
.competitive-app .player-foot {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 520px) {
  .competitive-app .player-search__input { padding: 12px 14px; }
}

.competitive-app .region-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: var(--radius); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 3%, transparent); color: var(--text-dim); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em;
}
.competitive-app .region-chip__flag {
  width: 22px; height: 16px; object-fit: cover; border-radius: var(--radius);
}
.competitive-app .region-chip--active {
  border-color: rgba(255, 200, 124, 0.55); color: var(--text);
  background: rgba(255, 200, 124, 0.12);
}

.competitive-app .events-hub {
  position: relative;
  min-height: 160px;
}
.competitive-app .events-hub.is-loading .track-section {
  visibility: hidden;
  pointer-events: none;
}

.competitive-app .ct-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.78);
  border-radius: var(--radius);
}
.competitive-app .ct-loading-overlay[hidden] {
  display: none !important;
}
.competitive-app .ct-loading-overlay--table {
  min-height: 240px;
  border-radius: var(--radius);
  background: #070707;
}

.competitive-app .table-scroll {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.competitive-app .table-scroll.is-loading {
  min-height: 240px;
  overflow: hidden;
}
.competitive-app .table-scroll.is-loading .lb-table {
  display: none;
}
.competitive-app .status-msg {
  text-align: center; padding: 12px 16px; margin-bottom: 16px;
  border-radius: var(--radius); border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08); color: #fecaca;
}

.competitive-app .track-section { margin-bottom: 36px; }
.competitive-app .track-section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding: 0 4px;
}
.competitive-app .track-section__head h2 {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em;
}
.competitive-app .track-section__hint { font-size: 0.78rem; color: var(--text-muted); }

.competitive-app .card-rail-outer {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.competitive-app .card-rail-outer .card-rail {
  flex: 1;
  min-width: 0;
  scroll-padding-inline: 8px;
}
.competitive-app .rail-nav {
  flex: 0 0 44px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  margin: 0 2px;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  opacity: 0.92;
}
.competitive-app .card-rail-outer .rail-nav--next {
  background: var(--surface);
}
.competitive-app .rail-nav:hover { opacity: 1; background: color-mix(in srgb, var(--text) 8%, transparent); }
.competitive-app .rail-nav[disabled] { opacity: 0.25; pointer-events: none; }

.competitive-app .card-rail {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.competitive-app .card-rail::-webkit-scrollbar { height: 6px; }
.competitive-app .card-rail::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 15%, transparent); border-radius: var(--radius); }

.competitive-app .event-card {
  flex: 0 0 var(--card-w); scroll-snap-align: start;
  border: 2px solid transparent; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); text-align: left;
}
.competitive-app .event-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.competitive-app .event-card--selected { border-color: var(--text); }
.competitive-app .event-card__art {
  position: relative; aspect-ratio: 16 / 11; background: #1a1a22;
  background-size: cover; background-position: center top;
}
.competitive-app .event-card__art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.competitive-app .event-card__art--fallback {
  background: var(--surface);
}
.competitive-app .event-card__art--fallback::after {
  content: 'GLOW';
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: 0.2em; color: color-mix(in srgb, var(--text) 12%, transparent);
}
.competitive-app .event-card__region {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--text) 92%, transparent); color: #111; font-size: 0.72rem; font-weight: 800;
}
.competitive-app .event-card__status {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px; border-radius: var(--radius); font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
}
.competitive-app .event-card__status--live { background: var(--live); color: #052e16; }
.competitive-app .event-card__status--upcoming { background: var(--upcoming); color: #0c1844; }
.competitive-app .event-card__status--ended { background: var(--ended); color: #fafafa; }

.competitive-app .event-card__body { padding: 14px 14px 16px; background: #101014; }
.competitive-app .event-card__title {
  font-size: 0.95rem; font-weight: 800; line-height: 1.25; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.competitive-app .event-card__when { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 4px; }
.competitive-app .event-card__foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.competitive-app .mode-pill {
  padding: 4px 10px; border-radius: var(--radius); background: var(--text); color: #111;
  font-size: 0.72rem; font-weight: 800;
}
.competitive-app .event-card__team { font-size: 0.78rem; color: var(--text-dim); font-weight: 600; }

.competitive-app .empty { text-align: center; color: var(--text-muted); font-size: 0.88rem; padding: 12px; }

.competitive-app .panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(12, 12, 14, 0.92); padding: 18px;
  position: relative;
}
.competitive-app .panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--text) 14.000000000000002%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}
.competitive-app .panel-close:hover {
  background: color-mix(in srgb, var(--text) 12%, transparent);
  border-color: color-mix(in srgb, var(--text) 22%, transparent);
}
.competitive-app .panel-close:active { transform: scale(0.96); }
.competitive-app .panel-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 45%, transparent);
  outline-offset: 2px;
}
.competitive-app .player-panel__head,
.competitive-app .detail__head {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.competitive-app .detail__head { margin-bottom: 18px; flex-wrap: wrap; }
.competitive-app .detail__head .panel-close { flex: 0 0 auto; margin-bottom: 4px; }
.competitive-app .detail__head .detail__hero,
.competitive-app .detail__head .detail__meta { width: 100%; }
.competitive-app .detail__hero {
  display: flex;
  justify-content: center;
  padding: 20px 12px 28px;
  margin-top: 8px;
}
.competitive-app .detail-poster {
  position: relative;
  width: min(100%, 540px);
  isolation: isolate;
}
.competitive-app .detail-poster__ambient {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 115%;
  height: 115%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center top;
  filter: blur(52px) saturate(1.35) brightness(1.15);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.competitive-app .detail-poster__glow {
  position: absolute;
  inset: -18% -12% -28%;
  z-index: 0;
  pointer-events: none;
  background:
    var(--surface);
  filter: blur(28px);
  opacity: 0.85;
}
.competitive-app .detail-poster__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.competitive-app .detail-poster__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center top;
  background: #1a1a22;
}
.competitive-app .detail-poster--fallback .detail-poster__ambient {
  display: none;
}
.competitive-app .detail-poster--fallback .detail-poster__frame {
  background: var(--surface);
  min-height: 140px;
}
.competitive-app .detail-poster--fallback .detail-poster__frame img:not([src]),
.competitive-app .detail-poster--fallback .detail-poster__frame img[src=''] {
  display: none;
}
.competitive-app .detail-poster--fallback .detail-poster__frame::after {
  content: 'GLOW';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--text) 12%, transparent);
}
.competitive-app .detail__meta { margin-top: 4px; }
.competitive-app .detail__meta h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 8px 0; }
.competitive-app .detail__times { color: var(--text-dim); font-size: 0.88rem; }
.competitive-app .detail__tags { margin-top: 8px; color: var(--text-muted); font-size: 0.82rem; }

.competitive-app .status-pill {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
}
.competitive-app .status-pill--live { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.competitive-app .status-pill--upcoming { background: rgba(96, 165, 250, 0.2); color: #93c5fd; }
.competitive-app .status-pill--ended { background: rgba(113, 113, 122, 0.25); color: #d4d4d8; }

.competitive-app .leaderboard-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 10px; font-size: 0.82rem; color: var(--text-muted);
}
.competitive-app .leaderboard-toolbar__left {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.competitive-app .rank-tabs-wrap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  margin-bottom: 4px;
}
.competitive-app .rank-tabs__label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.competitive-app .rank-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-width: min(100%, 640px);
}
.competitive-app .rank-tab {
  padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--text-dim);
  font-size: 0.76rem; font-weight: 700;
}
.competitive-app .rank-tab:hover { border-color: color-mix(in srgb, var(--text) 22%, transparent); color: var(--text); }
.competitive-app .rank-tab--active {
  border-color: rgba(255, 200, 124, 0.65);
  background: rgba(255, 200, 124, 0.14);
  color: var(--gold-light);
}
.competitive-app .leaderboard-wrap { position: relative; z-index: 2; }
.competitive-app .lb-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.competitive-app .lb-table th, .competitive-app .lb-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.competitive-app .lb-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); background: color-mix(in srgb, var(--text) 2%, transparent); }
.competitive-app .lb-table td { font-size: 0.88rem; }
.competitive-app .lb-table tr:last-child td { border-bottom: none; }
.competitive-app .lb-rank { font-weight: 800; color: var(--gold-light); width: 48px; }
.competitive-app .lb-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: var(--radius); background: var(--live);
  margin-right: 6px; vertical-align: middle;
}

.competitive-app .footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 20px 28px; margin-top: 24px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}

@media (max-width: 860px) {
  .competitive-app .nav__status-pill { display: none; }
  .competitive-app .track-section__head { flex-direction: column; align-items: flex-start; }
  .competitive-app .rail-nav { flex-basis: 36px; height: 64px; }
}

@media (max-width: 520px) {
  .competitive-app .hero { padding-top: 28px; }
}

/* ==========================================================================
   Layout v2 — hero (title | player search) → tournaments toolbar → sections
   ========================================================================== */
.competitive-app .hero {
  max-width: var(--max-w); padding: 48px 20px 28px; text-align: left;
}

/* Player search card */
.competitive-app .player-search {
  padding: 20px; border-radius: var(--radius);
  border: 1px solid rgba(255, 200, 124, 0.2);
  background: var(--surface);
}
.competitive-app .player-search__top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.competitive-app .player-search__badge {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(255, 200, 124, 0.12); color: var(--gold);
}
.competitive-app .player-search__label {
  margin: 0; text-align: left; text-transform: none; letter-spacing: -0.01em;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--text);
}
.competitive-app .player-search__hint { margin-top: 2px; font-size: 0.85rem; color: var(--text-dim); line-height: 1.45; }
.competitive-app .player-search__box { background: color-mix(in srgb, var(--bg) 35%, transparent); }
.competitive-app .player-search__box:focus-within { border-color: rgba(255, 200, 124, 0.5); }

/* Tournaments toolbar — sticky under the nav */
.competitive-app .tracker-bar {
  position: sticky; top: 64px; z-index: 40;
  margin: 0 -20px 28px; padding: 14px 20px;
  background: rgba(5, 5, 5, 0.86);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.competitive-app .tracker-bar__title {
  margin-bottom: 12px;
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em;
}
.competitive-app .tracker-bar__rows { display: flex; flex-direction: column; gap: 10px; }
.competitive-app .tracker-bar__row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.competitive-app .tracker-bar__label {
  flex: none; min-width: 56px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.competitive-app .tracker-bar .region-bar {
  flex: 1; min-width: 0; margin: 0; justify-content: flex-start; flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.competitive-app .tracker-bar .region-bar::-webkit-scrollbar { display: none; }
.competitive-app .tracker-bar .region-chip { flex: none; padding: 6px 12px 6px 8px; border-radius: var(--radius-pill); }

.competitive-app .event-filters {
  flex-wrap: wrap; justify-content: flex-start; gap: 10px 28px;
  padding: 0; margin: 0; border: 0; border-radius: var(--radius); background: none;
}
.competitive-app .event-filters__item { display: flex; align-items: center; gap: 10px; }
.competitive-app .event-filters__item .tracker-bar__label { min-width: 0; }
/* Segmented groups instead of loose pills */
.competitive-app .event-filters__group {
  flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: color-mix(in srgb, var(--text) 3%, transparent);
}
.competitive-app .filter-chip { border: 0; border-radius: var(--radius-pill); padding: 5px 11px; font-size: 0.75rem; white-space: nowrap; }
.competitive-app .filter-chip:hover { color: var(--text); }
.competitive-app .filter-chip--active { background: rgba(255, 200, 124, 0.16); color: var(--gold-light); }

/* Hidden while a player profile is open — it only filters tournaments */

/* Section headings with a status dot */
.competitive-app .track-section__head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.competitive-app .track-section--live h2::before,
.competitive-app .track-section--upcoming h2::before,
.competitive-app .track-section--ended h2::before {
  content: ''; width: 8px; height: 8px; border-radius: var(--radius); flex: none;
}
.competitive-app .track-section--live h2::before { background: var(--live); }
.competitive-app .track-section--upcoming h2::before { background: var(--upcoming); }
.competitive-app .track-section--ended h2::before { background: var(--ended); }
.competitive-app .track-section .empty {
  padding: 22px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--text-muted);
}

@media (max-width: 900px) {
  .competitive-app .hero { padding-top: 32px; }

  .competitive-app .tracker-bar { position: static; }
  .competitive-app .event-filters { gap: 10px 20px; }
}

@media (max-width: 520px) {
  .competitive-app .player-search { padding: 16px; }
  .competitive-app .tracker-bar { margin-inline: -16px; padding-inline: 16px; }
  .competitive-app .tracker-bar__label { min-width: 0; }
  .competitive-app .tracker-bar__title { font-size: 1.15rem; }
}

/* Suggestions dropdown must paint over <main> (both are z-index:1 stacking contexts) */
.competitive-app .hero:has(.player-search__suggest:not([hidden])),
.competitive-app .hero:has(.player-search__input:focus) { z-index: 60; }
.competitive-app .player-search__suggest { background: var(--surface); }

.competitive-app .player-search { max-width:760px; margin:0 0 var(--s6); border-radius:var(--radius); background:var(--surface); }
.competitive-app .tracker-bar { background:transparent; padding-inline:0; }
.competitive-app .player-search__label { font-family:inherit; font-size:16px; }
.competitive-app .event-card { background:var(--surface); border:1px solid var(--line); }
.competitive-app .event-card:hover { transform:none; }
.competitive-app .event-card__title { font-family:inherit; }
.competitive-app .ct-loading-overlay { position:static; background:transparent; padding:var(--s3); color:var(--text-2); }
.competitive-app .event-card-skeleton { display:none; }
.competitive-app .panel { background:transparent; padding-inline:0; }
.competitive-app .player-panel__loading { padding:var(--s4); }
.competitive-app .rank-evolution__chart { color:var(--text); }
.competitive-app .table-scroll { overflow-x:auto; }
.competitive-app .player-search__input { color:var(--text); }
.competitive-app :focus-visible { outline:2px solid var(--link); outline-offset:3px; }
.competitive-app .tracker-bar { margin:0 0 var(--s5); padding:var(--s3) 0; max-width:100%; position:static; }
.competitive-app .tracker-bar__row { min-width:0; flex-wrap:wrap; }
.competitive-app .region-bar { flex-wrap:wrap; max-width:100%; overflow:visible; }
.competitive-app .tracker-bar .region-bar { flex-wrap:wrap; max-width:100%; overflow:visible; flex-basis:100%; }
.competitive-app .event-filters, .competitive-app .event-filters__item { min-width:0; max-width:100%; flex-wrap:wrap; }
.competitive-app .event-filters__group { flex-wrap:wrap; }
.competitive-app .region-chip--active, .competitive-app .filter-chip--active { border-color:var(--text-2); background:var(--surface-2); color:var(--text); }
.competitive-app .event-card__body, .competitive-app .rank-card, .competitive-app .rank-card__body { background:var(--surface); color:var(--text); }
.competitive-app .rank-card__progress-bar { background:var(--text-2); }
.competitive-app .player-panel { border:0; }
.competitive-app .rank-evolution { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:var(--s3); }
.competitive-app .player-filters { display:flex; flex-wrap:wrap; gap:var(--s3); margin-block:var(--s4); }
.competitive-app .player-filters label { display:grid; gap:6px; color:var(--text-2); font-size:13px; }
.competitive-app .player-filters select { max-width:100%; color:var(--text); background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--radius-pill); padding:8px 12px; }
.competitive-app:has(#playerPanel:not([hidden])) .tracker-bar { display:none; }
.competitive-app .player-search { border-color:var(--line-strong); }
.competitive-app .player-search__badge { background:var(--surface-2); }
.competitive-app .rank-art img { filter:none; }

/* Anton is single-weight: never synthesize bold on display text. Sizes bumped to the site's section scale. */
.competitive-app .calendar-panel__title, .competitive-app .player-hero__name, .competitive-app .stat-summary__item strong,
.competitive-app .track-section__head h2, .competitive-app .detail__meta h2, .competitive-app .player-search__label,
.competitive-app .tracker-bar__title, .competitive-app .event-card__art--fallback::after { font-weight: 400; letter-spacing: .01em; }
.competitive-app .track-section__head h2 { font-size: 1.6rem; }
.competitive-app .tracker-bar__title { font-size: 2rem; }
/* Flat player search: the field is the only box. */
.competitive-app .player-search { padding: 0; border: 0; background: none; box-shadow: none; max-width: 760px; }
.competitive-app .player-search__badge { display: none; }
/* Centred hero like the rest of the site */
.competitive-app .hero { text-align: center; }
.competitive-app .player-search { margin-inline: auto; text-align: start; }
