:root {
  --bg: #08080c;
  --surface: #111116;
  --surface-2: #17171e;
  --surface-3: #1e1e27;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f5fb;
  --muted: #9896a3;
  --purple: #a855f7;
  --purple-bright: #c66bff;
  --purple-soft: rgba(168, 85, 247, 0.14);
  --green: #50df9b;
  --red: #ff647c;
  --yellow: #f9cb63;
  --blue: #6ea8ff;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  --header-height: 70px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -10%, rgba(125, 44, 183, 0.13), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.07;
  pointer-events: none;
}

.ambient-one {
  top: 10rem;
  right: -13rem;
  background: var(--purple);
}

.ambient-two {
  bottom: 4rem;
  left: -16rem;
  background: #5f1b88;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.84);
  backdrop-filter: blur(22px);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 32px), var(--content-width));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.28);
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 46px;
}

.desktop-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  transition: 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--purple-soft);
  color: var(--text);
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-left: auto;
  padding: 0 9px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}

.search-trigger:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.search-trigger .search-label {
  color: var(--muted);
  font-size: 13px;
}

kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
}

.app-shell {
  width: min(calc(100% - 32px), var(--content-width));
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 36px 0 70px;
  outline: none;
}

.page-loading {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 55vh;
  color: var(--muted);
}

.page-loading strong {
  margin-top: 14px;
  font-size: 13px;
}

.loader-mark {
  animation: breathe 1.5s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: 0.55;
    transform: scale(0.94);
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--purple-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 16px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
  content: "";
}

.page-head h1,
.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.page-head p {
  max-width: 590px;
  margin: 10px 0 0;
  color: var(--muted);
}

.season-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0 26px;
}

.season-dashboard-head h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.season-dashboard-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.season-dashboard-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.season-summary {
  margin-top: 0;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 26px;
  min-height: 355px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, rgba(20, 16, 27, 0.98), rgba(13, 13, 18, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  top: -13rem;
  right: -8rem;
  width: 31rem;
  height: 31rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.26), transparent 67%);
  content: "";
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to right, transparent 15%, #000);
  content: "";
}

.hero-copy,
.hero-focus {
  position: relative;
  z-index: 1;
}

.status-pill,
.tag,
.role-pill,
.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(80, 223, 155, 0.7);
}

.status-pill.planned .dot {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(249, 203, 99, 0.6);
}

.hero-copy h1 {
  max-width: 640px;
  margin-top: 20px;
}

.hero-copy h1 span {
  background: linear-gradient(100deg, #fff 18%, #c77dff 80%);
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.button:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(120deg, #8d36d0, #b455f6);
  box-shadow: 0 12px 34px rgba(151, 55, 215, 0.23);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.035);
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.hero-focus {
  align-self: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 8, 12, 0.62);
  backdrop-filter: blur(14px);
}

.hero-focus-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-focus h2 {
  margin: 18px 0 4px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-focus p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.match-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.match-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.match-team strong {
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--purple-bright);
  font-size: 15px;
  font-weight: 900;
}

.team-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.match-vs {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-cell {
  min-width: 0;
  padding: 20px 24px;
}

.stat-cell + .stat-cell {
  border-left: 1px solid var(--line);
}

.stat-cell strong {
  display: block;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.stat-cell span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  flex: 0 0 auto;
  color: var(--purple-bright);
  font-size: 12px;
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}

.panel-pad {
  padding: 20px;
}

.standings-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}

.standings-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(220px, 1fr) 100px 100px 100px;
  align-items: center;
  min-height: 66px;
  padding: 0 18px 0 14px;
  border-left: 3px solid transparent;
  transition: 150ms ease;
}

.standings-row + .standings-row {
  border-top: 1px solid var(--line);
}

.standings-row:not(.standings-header):hover {
  background: rgba(255, 255, 255, 0.025);
}

.standings-row.qualify {
  border-left-color: var(--purple);
}

.standings-row.eliminated {
  border-left-color: rgba(255, 100, 124, 0.28);
}

.standings-header {
  min-height: 42px;
  border-left-color: transparent;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standing-rank {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.standing-team {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.standing-team .team-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 11px;
}

.standing-team strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standing-record {
  font-size: 15px;
}

.standing-record b {
  color: var(--green);
}

.season-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.season-stat {
  display: grid;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.11), transparent 55%),
    var(--surface);
}

.season-stat > span {
  font-size: 20px;
}

.season-stat strong {
  margin-top: 15px;
  overflow: hidden;
  font-size: 22px;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
}

.season-stat small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.champion-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.meta-title {
  margin: 2px 0 12px;
  font-size: 17px;
}

.meta-list {
  display: grid;
}

.meta-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.meta-list > div span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-list b {
  display: inline-block;
  min-width: 22px;
  color: var(--muted);
}

.meta-list strong {
  color: var(--purple-bright);
}

.meta-champion {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-champion img {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  object-fit: cover;
}

.role-rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.role-rating-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.role-rating-card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 7px);
}

.role-rating-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.15), transparent 55%),
    rgba(255, 255, 255, 0.018);
}

.role-rating-head span,
.role-rating-head strong,
.role-rating-head small {
  display: block;
}

.role-rating-head strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.role-rating-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.role-rating-head > b {
  font-size: 21px;
}

.role-rating-list {
  display: grid;
}

.role-rating-list > a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
}

.role-rating-list > a:hover {
  background: rgba(255, 255, 255, 0.025);
}

.role-position {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.role-player {
  min-width: 0;
}

.role-player strong,
.role-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-player strong {
  font-size: 12px;
}

.role-player small {
  color: var(--muted);
  font-size: 9px;
}

.star-score {
  padding: 5px 8px;
  border: 1px solid rgba(249, 203, 99, 0.18);
  border-radius: 999px;
  background: rgba(249, 203, 99, 0.08);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}

.role-empty {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.match-list,
.result-list,
.leader-list {
  display: grid;
}

.match-row,
.result-row {
  display: grid;
  grid-template-columns: minmax(115px, 0.52fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

.match-row + .match-row,
.result-row + .result-row,
.leader-row + .leader-row {
  border-top: 1px solid var(--line);
}

.date-block strong {
  display: block;
  font-size: 13px;
}

.date-block span {
  color: var(--muted);
  font-size: 11px;
}

.compact-versus {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.compact-versus strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-versus .vs {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 52px;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}

.score .winner {
  color: var(--green);
}

.leader-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}

.leader-rank {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.leader-player {
  min-width: 0;
}

.leader-player strong,
.leader-player span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-player strong {
  font-size: 13px;
}

.leader-player span {
  color: var(--muted);
  font-size: 11px;
}

.leader-value {
  font-size: 16px;
  font-weight: 900;
}

.metric-tabs,
.filter-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.metric-tabs::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.chip:hover,
.chip.active {
  border-color: rgba(168, 85, 247, 0.32);
  background: var(--purple-soft);
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.team-card,
.player-card,
.season-card,
.person-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  transition: 170ms ease;
}

.team-card:hover,
.player-card:hover,
.season-card:hover,
.person-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.22);
}

.team-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-card .team-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.team-card-name {
  min-width: 0;
}

.team-card-name strong,
.team-card-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-name strong {
  font-size: 15px;
}

.team-card-name span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.team-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.team-card-meta b {
  color: var(--text);
}

.player-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.player-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card .team-name {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.role-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--purple-bright);
  text-transform: uppercase;
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.mini-stat {
  min-width: 0;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.mini-stat strong,
.mini-stat span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-stat strong {
  font-size: 13px;
}

.mini-stat span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.input-wrap {
  position: relative;
  flex: 1 1 260px;
}

.input-wrap .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
}

.input,
.select {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.input {
  padding: 0 14px 0 40px;
}

.select {
  width: auto;
  min-width: 170px;
  padding: 0 34px 0 13px;
}

.input:focus,
.select:focus {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.results-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.season-card {
  padding: 22px;
}

.season-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.season-card h2 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.season-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.season-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.season-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.16), transparent 40%),
    var(--surface);
}

.detail-hero .team-mark {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  font-size: 21px;
}

.detail-title {
  min-width: 0;
}

.detail-title h1 {
  margin: 4px 0 7px;
  overflow-wrap: anywhere;
  font-size: clamp(29px, 5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.detail-title p {
  margin: 0;
  color: var(--muted);
}

.player-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
  gap: 14px;
  margin-top: 14px;
}

.player-profile-identity,
.player-rank-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.15), transparent 45%),
    var(--surface);
}

.player-profile-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 22px;
  padding: 28px;
}

.player-profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 28px;
  background: var(--purple-soft);
  color: var(--purple-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-size: 26px;
  font-weight: 950;
}

.player-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-profile-identity > div {
  min-width: 0;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.player-profile-identity h1 {
  margin: 10px 0 2px;
  overflow-wrap: anywhere;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.player-profile-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-team-line {
  margin-top: 16px;
}

.profile-team-line > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-team-line .team-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 9px;
}

.profile-team-line strong,
.profile-team-line small {
  display: block;
}

.profile-team-line strong {
  font-size: 12px;
}

.profile-team-line small {
  color: var(--muted);
  font-size: 9px;
}

.player-rank-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
}

.player-rank-panel > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-rank-panel > strong {
  margin-top: 6px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.player-rank-panel > small {
  color: var(--purple-bright);
  font-size: 11px;
  font-weight: 750;
}

.riot-id-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 17px;
}

.riot-id-link,
.riot-id-unlinked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 9px;
}

.riot-id-link {
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.riot-id-link:hover {
  border-color: rgba(168, 85, 247, 0.55);
  background: var(--purple-soft);
  color: var(--text);
}

.riot-id-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.riot-id-link b {
  flex: 0 0 auto;
  color: var(--purple-bright);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.profile-main-kpis {
  grid-template-columns: repeat(6, 1fr);
}

.player-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: start;
  gap: 18px;
}

.profile-section-first {
  margin-top: 34px;
}

.player-profile-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.profile-side-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-side-head {
  padding: 17px 17px 12px;
}

.profile-side-head h2 {
  margin: 0;
  font-size: 16px;
}

.profile-side-head .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.form-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 17px 17px;
}

.form-strip span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 950;
}

.form-strip .win {
  background: rgba(80, 223, 155, 0.12);
  color: var(--green);
}

.form-strip .loss {
  background: rgba(255, 100, 124, 0.1);
  color: var(--red);
}

.profile-match-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-match-row {
  display: grid;
  grid-template-columns: 34px minmax(160px, 1fr) 105px 120px 54px;
  align-items: center;
  min-height: 68px;
  gap: 13px;
  padding: 9px 15px 9px 11px;
  border-left: 3px solid transparent;
}

.profile-match-row + .profile-match-row {
  border-top: 1px solid var(--line);
}

.profile-match-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.profile-match-row.profile-win {
  border-left-color: var(--green);
}

.profile-match-row.profile-loss {
  border-left-color: var(--red);
}

.profile-result {
  font-size: 13px;
  font-weight: 950;
}

.profile-win .profile-result {
  color: var(--green);
}

.profile-loss .profile-result {
  color: var(--red);
}

.profile-match-champion {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.profile-match-champion img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  object-fit: cover;
}

.profile-match-champion > span,
.profile-match-kda,
.profile-match-opponent,
.profile-match-cs {
  min-width: 0;
}

.profile-match-champion strong,
.profile-match-champion small,
.profile-match-kda strong,
.profile-match-kda small,
.profile-match-opponent strong,
.profile-match-opponent small,
.profile-match-cs strong,
.profile-match-cs small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-match-champion strong,
.profile-match-kda strong,
.profile-match-opponent strong,
.profile-match-cs strong {
  font-size: 11px;
}

.profile-match-champion small {
  color: var(--purple-bright);
  font-size: 9px;
  font-weight: 750;
}

.profile-match-kda small,
.profile-match-opponent small,
.profile-match-cs small {
  color: var(--muted);
  font-size: 8px;
}

.profile-match-cs {
  text-align: right;
}

.champion-pool-list,
.career-team-list {
  display: grid;
  padding: 0 10px 10px;
}

.champion-pool-row,
.career-team-list > a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  gap: 10px;
  padding: 7px;
  border-top: 1px solid var(--line);
}

.champion-pool-icon,
.career-team-list .team-mark {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-3);
}

.champion-pool-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champion-pool-row > span:nth-child(2),
.career-team-list > a > span:nth-child(2) {
  min-width: 0;
}

.champion-pool-row strong,
.champion-pool-row small,
.career-team-list strong,
.career-team-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-pool-row strong,
.career-team-list strong {
  font-size: 11px;
}

.champion-pool-row small,
.career-team-list small {
  color: var(--muted);
  font-size: 8px;
}

.champion-pool-row > b {
  color: var(--purple-bright);
  font-size: 11px;
}

.career-team-list > a {
  grid-template-columns: 40px minmax(0, 1fr);
  border-radius: 10px;
}

.career-team-list > a:hover {
  background: rgba(255, 255, 255, 0.025);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.back-link:hover {
  color: var(--text);
}

.profile-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.match-detail-hero {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-top: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.14), transparent 52%),
    var(--surface);
  text-align: center;
  overflow: hidden;
}

.match-detail-meta h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: -0.035em;
}

.match-detail-meta p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.series-score {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: clamp(18px, 5vw, 54px);
  width: min(100%, 670px);
}

.series-team {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 10px;
}

.series-team:hover strong {
  color: var(--purple-bright);
}

.series-team .team-mark {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.series-team strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: 150ms ease;
}

.series-result {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.series-result b {
  color: var(--muted);
  font-size: 0.6em;
}

.series-result .winner {
  color: var(--green);
}

.game-detail {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 22, 0.58);
}

.game-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.game-detail-head h2 {
  margin: 0;
  font-size: 21px;
}

.game-head-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.game-objectives {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.game-objectives > span {
  padding: 12px;
  text-align: center;
}

.game-objectives > span + span {
  border-left: 1px solid var(--line);
}

.game-objectives b,
.game-objectives small {
  display: block;
}

.game-objectives b {
  font-size: 14px;
}

.game-objectives small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.game-team-card.game-winner {
  border-color: rgba(80, 223, 155, 0.25);
  box-shadow: inset 0 2px 0 rgba(80, 223, 155, 0.35);
}

.game-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.025);
}

.game-team-head > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.game-team-head .team-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 9px;
}

.game-team-head strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-team-head > b {
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.game-roster {
  display: grid;
}

.game-player-row {
  display: grid;
  grid-template-columns: 34px 42px minmax(100px, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 59px;
  padding: 8px 13px;
  border-top: 1px solid var(--line);
}

.champion-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--purple-bright);
  font-size: 13px;
  font-weight: 900;
}

.champion-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-player-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.game-player-main,
.game-player-kda,
.game-player-extra {
  min-width: 0;
}

.game-player-main strong,
.game-player-main small,
.game-player-kda strong,
.game-player-kda small,
.game-player-extra strong,
.game-player-extra small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player-main strong,
.game-player-kda strong,
.game-player-extra strong {
  font-size: 11px;
}

.game-player-main small {
  color: var(--purple-bright);
  font-size: 10px;
  font-weight: 750;
}

.game-player-kda,
.game-player-extra {
  text-align: right;
}

.game-player-kda small,
.game-player-extra small {
  color: var(--muted);
  font-size: 8px;
}

.ban-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 13px;
  border-top: 1px solid var(--line);
}

.ban-row > strong {
  margin-right: 2px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.ban-row > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 100, 124, 0.15);
  border-radius: 999px;
  background: rgba(255, 100, 124, 0.07);
  color: #ff9aaa;
  font-size: 9px;
  font-weight: 700;
}

.ban-row > span img {
  width: 18px;
  height: 18px;
  margin-left: -3px;
  border-radius: 50%;
  object-fit: cover;
}

.drake-row {
  padding-top: 0;
  border-top: 0;
}

.drake-row > span {
  border-color: rgba(110, 168, 255, 0.16);
  background: rgba(110, 168, 255, 0.07);
  color: #9fc4ff;
}

.kpi {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.kpi strong,
.kpi span {
  display: block;
}

.kpi strong {
  font-size: 21px;
}

.kpi span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: 18px;
}

.roster-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.roster-row strong,
.roster-row span {
  display: block;
}

.roster-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.empty-state,
.error-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.error-state strong {
  color: var(--text);
  font-size: 17px;
}

.empty-state p,
.error-state p {
  max-width: 440px;
  margin: 7px 0 0;
}

.organizer-groups {
  display: grid;
  gap: 30px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 13px;
}

.person-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple-bright);
  font-weight: 900;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card strong,
.person-card span {
  display: block;
}

.person-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 18px;
}

.custom-controls {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.selection-bar strong {
  color: var(--purple-bright);
}

.player-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.player-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.player-option:hover,
.player-option.selected {
  border-color: rgba(168, 85, 247, 0.42);
  background: var(--purple-soft);
}

.player-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: transparent;
  font-size: 12px;
}

.player-option.selected .check-mark {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}

.option-copy {
  min-width: 0;
}

.option-copy strong,
.option-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-copy strong {
  font-size: 12px;
}

.option-copy span {
  color: var(--muted);
  font-size: 10px;
}

.control-stack {
  display: grid;
  gap: 14px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.control-stack h2 {
  margin: 0;
  font-size: 17px;
}

.radio-options {
  display: grid;
  gap: 7px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: rgba(168, 85, 247, 0.42);
  background: var(--purple-soft);
  color: var(--text);
}

.team-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.generated-team {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.generated-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.generated-team-head h3 {
  margin: 0;
}

.generated-player {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.role-square {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--purple-bright);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.generated-player strong,
.generated-player span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-player strong {
  font-size: 12px;
}

.generated-player span {
  color: var(--muted);
  font-size: 10px;
}

.search-dialog {
  width: min(calc(100% - 24px), 620px);
  max-height: min(700px, calc(100vh - 40px));
  margin-top: 10vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.68);
}

.search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.search-dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.search-dialog-head input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-dialog-head button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.search-results {
  max-height: 460px;
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 11px;
}

.search-result:hover {
  background: var(--surface-2);
}

.search-result-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple-bright);
  font-size: 11px;
  font-weight: 900;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result span {
  color: var(--muted);
  font-size: 10px;
}

.search-empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100% - 36px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav {
  display: none;
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.icon-search {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
}

.icon-home {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath d='m3 11 9-8 9 8v9a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

.icon-trophy {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0zM7 6H4v2a4 4 0 0 0 4 4M17 6h3v2a4 4 0 0 1-4 4'/%3E%3C/svg%3E");
}

.icon-shield {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z'/%3E%3C/svg%3E");
}

.icon-users {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21v-2a6 6 0 0 1 12 0v2M16 3.5a4 4 0 0 1 0 8M17 15a6 6 0 0 1 5 6'/%3E%3C/svg%3E");
}

.icon-dice {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8' cy='8' r='1' fill='black'/%3E%3Ccircle cx='16' cy='16' r='1' fill='black'/%3E%3Ccircle cx='16' cy='8' r='1' fill='black'/%3E%3Ccircle cx='8' cy='16' r='1' fill='black'/%3E%3C/svg%3E");
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-focus {
    max-width: 560px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .two-col,
  .custom-layout {
    grid-template-columns: 1fr;
  }

  .custom-controls {
    position: static;
  }

  .profile-kpis {
    grid-template-columns: repeat(3, 1fr);
  }

  .player-profile-hero,
  .player-profile-layout {
    grid-template-columns: 1fr;
  }

  .player-profile-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }

  .player-profile-sidebar .profile-side-card:last-child {
    grid-column: 1 / -1;
  }

  .game-team-grid {
    grid-template-columns: 1fr;
  }

  .season-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 62px;
  }

  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner,
  .app-shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .brand img {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }

  .brand small,
  .search-label,
  .search-trigger kbd {
    display: none;
  }

  .search-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .app-shell {
    padding: 22px 0 30px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .page-head h1,
  .hero-copy h1 {
    font-size: 36px;
  }

  .season-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
  }

  .season-dashboard-head h1 {
    font-size: 38px;
  }

  .season-dashboard-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-panel {
    min-height: 0;
    gap: 24px;
    padding: 24px 19px 19px;
    border-radius: 21px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .button-row .button {
    flex: 1 1 140px;
  }

  .hero-focus {
    padding: 17px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 32px;
  }

  .stat-cell {
    padding: 15px 17px;
  }

  .stat-cell:nth-child(3) {
    border-left: 0;
  }

  .stat-cell:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section {
    margin-top: 34px;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .dashboard-grid {
    gap: 12px;
  }

  .standings-card {
    overflow: visible;
  }

  .standings-header {
    display: none;
  }

  .standings-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 0 12px 0 9px;
  }

  .standings-row > :nth-child(4) {
    display: none;
  }

  .standings-row > :nth-child(5) {
    grid-column: 3;
    color: var(--muted);
    font-size: 10px;
  }

  .standing-team {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .standing-rank {
    grid-row: 1 / span 2;
  }

  .standing-record {
    align-self: end;
    padding-top: 11px;
  }

  .standings-row > :nth-child(5) {
    align-self: start;
    padding-bottom: 11px;
  }

  .standing-team .team-mark {
    width: 36px;
    height: 36px;
  }

  .match-row,
  .result-row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 14px;
  }

  .date-block {
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
  }

  .card-grid,
  .roster-list,
  .player-select-grid {
    grid-template-columns: 1fr;
  }

  .team-card,
  .player-card,
  .season-card {
    padding: 15px;
  }

  .toolbar {
    align-items: stretch;
  }

  .select {
    width: 100%;
  }

  .results-count {
    width: 100%;
    margin-left: 0;
  }

  .detail-hero {
    align-items: flex-start;
    padding: 20px;
  }

  .detail-hero .team-mark {
    width: 67px;
    height: 67px;
    border-radius: 18px;
  }

  .detail-title h1 {
    font-size: 30px;
  }

  .profile-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-profile-identity {
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }

  .player-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 18px;
  }

  .player-profile-identity h1 {
    font-size: 32px;
  }

  .player-rank-panel {
    padding: 20px;
  }

  .profile-main-kpis {
    grid-template-columns: repeat(3, 1fr);
  }

  .player-profile-sidebar {
    grid-template-columns: 1fr;
  }

  .player-profile-sidebar .profile-side-card:last-child {
    grid-column: auto;
  }

  .profile-match-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 66px;
    padding: 8px 10px 8px 8px;
  }

  .profile-match-kda {
    text-align: right;
  }

  .profile-match-opponent,
  .profile-match-cs {
    display: none;
  }

  .profile-match-champion img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .match-detail-hero {
    gap: 18px;
    min-width: 0;
    width: 100%;
    padding: 22px 14px;
  }

  .series-score {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .series-team {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .series-team .team-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .series-team strong {
    font-size: 11px;
    line-height: 1.2;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .game-detail {
    padding: 13px;
    border-radius: 19px;
  }

  .game-detail-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .game-head-tags {
    width: 100%;
    justify-content: flex-start;
  }

  .game-detail-head h2 {
    font-size: 17px;
  }

  .game-objectives {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-objectives > span:nth-child(3) {
    border-left: 0;
  }

  .game-objectives > span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .game-player-row {
    grid-template-columns: 31px 38px minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 8px 10px;
  }

  .champion-portrait {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .game-player-extra {
    display: none;
  }

  .team-results {
    grid-template-columns: 1fr;
  }

  .season-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .season-stat {
    padding: 15px;
  }

  .champion-meta-grid {
    grid-template-columns: 1fr;
  }

  .role-rating-grid {
    grid-template-columns: 1fr;
  }

  .role-rating-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 8px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    left: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 60px;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 17px;
    background: rgba(16, 16, 22, 0.93);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(20px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
  }

  .mobile-nav .icon {
    width: 19px;
    height: 19px;
  }

  .mobile-nav a.active {
    background: var(--purple-soft);
    color: var(--purple-bright);
  }

  .toast {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
