@font-face {
  font-family: "Argentum Sans";
  src: url("/stats/fonts/ArgentumSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Argentum Sans";
  src: url("/stats/fonts/ArgentumSans-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Argentum Sans";
  src: url("/stats/fonts/ArgentumSans-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background-top: #040919;
  --background-bottom: #020510;
  --surface: rgba(15, 21, 43, 0.88);
  --surface-elevated: rgba(21, 28, 55, 0.94);
  --surface-interactive: rgba(19, 26, 57, 0.94);
  --surface-soft: rgba(13, 19, 40, 0.8);
  --line: rgba(143, 154, 206, 0.18);
  --line-strong: rgba(143, 154, 206, 0.3);
  --text: #ffffff;
  --text-secondary: #b3b8d1;
  --text-muted: #7a809e;
  --blue: #1f5cff;
  --blue-soft: #4573ff;
  --violet: #6426ff;
  --green: #40d1ab;
  --red: #ff4d4d;
  --sheriff: #ffca38;
  --brand-gradient: linear-gradient(135deg, var(--blue), var(--violet));
  --surface-gradient: linear-gradient(145deg, rgba(21, 28, 55, 0.98), rgba(15, 21, 43, 0.98));
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
  --glow: 0 18px 46px rgba(83, 45, 232, 0.24);
  --radius-card: 24px;
  --radius-control: 16px;
  font-family: "Argentum Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 0%, rgba(100, 38, 255, 0.3), transparent 34rem),
    radial-gradient(circle at 4% 38%, rgba(31, 92, 255, 0.19), transparent 32rem),
    linear-gradient(180deg, var(--background-top), var(--background-bottom));
  background-attachment: fixed;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.3;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

button,
input,
select {
  font: inherit;
}

.site-header,
.site-footer,
.page {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  margin-top: 12px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(8, 13, 32, 0.76);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px) saturate(130%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(31, 92, 255, 0.24);
}

.brand > span {
  display: grid;
}

.brand strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 42px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.main-nav .app-link {
  color: white;
  background: var(--brand-gradient);
  box-shadow: 0 10px 24px rgba(62, 65, 236, 0.26);
}

.main-nav .app-link:hover {
  background: linear-gradient(135deg, #3970ff, #7847ff);
}

.page {
  min-height: calc(100vh - 184px);
  padding: 54px 0 72px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #85a4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 800;
  line-height: 0.98;
}

h2 {
  margin-bottom: 6px;
  font-size: 23px;
  font-weight: 800;
}

h3 {
  margin-bottom: 4px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.hero-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(89, 115, 255, 0.3);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(31, 92, 255, 0.16), rgba(100, 38, 255, 0.12)),
    var(--surface-soft);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.hero-note-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: white;
  background: var(--brand-gradient);
  font-size: 14px;
  font-weight: 800;
}

.hero-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.hero-note strong {
  color: var(--text);
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 220px;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12, 18, 39, 0.62);
  backdrop-filter: blur(18px);
}

.control {
  min-width: 0;
}

.control label {
  display: block;
  margin: 0 0 7px 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.control input,
.control select {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: none;
  color: var(--text);
  background: var(--surface-interactive);
}

.control input::placeholder {
  color: var(--text-muted);
}

.control input:focus,
.control select:focus {
  border-color: rgba(69, 115, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(31, 92, 255, 0.15);
}

.control input:disabled,
.control select:disabled {
  opacity: 0.55;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-gradient);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.055);
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-heading p,
.section-copy,
.subtle {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.ranking-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ranking-table th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-table th:first-child,
.ranking-table th:nth-child(2),
.ranking-table td:first-child,
.ranking-table td:nth-child(2) {
  text-align: left;
}

.ranking-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(143, 154, 206, 0.11);
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.ranking-table tbody tr {
  transition: background 140ms ease;
}

.ranking-table tbody tr:hover {
  background: rgba(69, 115, 255, 0.07);
}

.rank {
  width: 52px;
  color: var(--text-muted);
  font-weight: 800;
}

.rank.top {
  color: #9ab2ff;
  font-size: 16px;
}

.player-link,
.club-link,
.game-link {
  color: var(--text);
  font-weight: 600;
}

.player-link:hover,
.club-link:hover,
.game-link:hover {
  color: #9bb3ff;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.avatar,
.avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.avatar {
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--surface-interactive);
}

.avatar-fallback,
.club-logo-fallback {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(111, 134, 255, 0.28);
  color: #c8d4ff;
  background: linear-gradient(145deg, rgba(31, 92, 255, 0.45), rgba(100, 38, 255, 0.24));
  font-size: 11px;
  font-weight: 800;
}

.identity-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.identity-copy strong {
  color: var(--text);
}

.identity-copy small {
  overflow: hidden;
  max-width: 240px;
  margin-top: 3px;
  color: var(--text-muted);
  text-overflow: ellipsis;
}

.rating-value {
  color: #9eb5ff;
  font-size: 16px;
  font-weight: 800;
}

.qualification {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(69, 115, 255, 0.18);
  border-radius: 999px;
  color: #a9bdff;
  background: rgba(31, 92, 255, 0.12);
  font-size: 9px;
  font-weight: 800;
}

.qualification.pending {
  border-color: transparent;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.podium-card {
  position: relative;
  display: flex;
  min-height: 154px;
  padding: 20px;
  overflow: hidden;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-gradient);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
  transition: transform 160ms ease, border-color 160ms ease;
}

.podium-card::after {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  content: "";
  background: rgba(69, 115, 255, 0.13);
  filter: blur(5px);
}

.podium-card:first-child {
  border-color: rgba(101, 100, 255, 0.48);
  background:
    radial-gradient(circle at 88% 5%, rgba(100, 38, 255, 0.38), transparent 55%),
    linear-gradient(145deg, rgba(31, 92, 255, 0.28), rgba(15, 21, 43, 0.98));
  box-shadow: var(--glow), inset 0 1px rgba(255, 255, 255, 0.09);
}

.podium-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 134, 255, 0.48);
}

.podium-position {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.podium-card:first-child .podium-position {
  border-color: transparent;
  background: var(--brand-gradient);
}

.podium-rating {
  position: absolute;
  z-index: 1;
  top: 17px;
  right: 18px;
  color: #c8d4ff;
  font-size: 23px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.podium-player {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.podium-player h3 {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-player p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.club-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1.5fr);
  gap: 20px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(12, 18, 39, 0.66);
  backdrop-filter: blur(18px);
}

.club-strip h2 {
  margin-bottom: 0;
}

.club-strip-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.club-strip-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-interactive);
  transition: border-color 140ms ease, background 140ms ease;
}

.club-strip-links a:hover {
  border-color: rgba(69, 115, 255, 0.48);
  background: rgba(28, 41, 88, 0.92);
}

.club-logo,
.club-logo-fallback {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.club-logo {
  object-fit: contain;
  border: 1px solid var(--line);
  background: white;
}

.club-strip-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.club-strip-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-strip-copy small {
  color: var(--text-muted);
  font-size: 10px;
}

.club-strip-arrow {
  color: #8fa8ff;
  font-size: 24px;
}

.methodology {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 22px;
}

.method-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(12, 18, 39, 0.66);
}

.method-card p,
.method-card li {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.formula {
  display: inline-block;
  margin: 8px 0 13px;
  padding: 11px 13px;
  border: 1px solid rgba(69, 115, 255, 0.26);
  border-radius: 13px;
  color: #b4c4ff;
  background: rgba(31, 92, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(101, 100, 255, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 12%, rgba(100, 38, 255, 0.3), transparent 38%),
    linear-gradient(130deg, rgba(31, 92, 255, 0.19), rgba(15, 21, 43, 0.92));
  box-shadow: var(--glow), inset 0 1px rgba(255, 255, 255, 0.08);
}

.profile-avatar,
.profile-avatar-fallback {
  width: 86px;
  height: 86px;
  border-radius: 25px;
}

.profile-avatar {
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--surface-interactive);
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 134, 255, 0.34);
  color: #d8e0ff;
  background: var(--brand-gradient);
  font-size: 27px;
  font-weight: 800;
}

.profile-copy h1 {
  margin-bottom: 7px;
  font-size: clamp(31px, 5vw, 50px);
}

.profile-copy p {
  margin: 0;
  color: var(--text-secondary);
}

.profile-rank {
  min-width: 130px;
  text-align: right;
}

.profile-rank strong {
  display: block;
  color: #c1ceff;
  font-size: 38px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.profile-rank span {
  color: var(--text-muted);
  font-size: 11px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  min-height: 100px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-gradient);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.metric-card.primary {
  border-color: rgba(101, 100, 255, 0.4);
  background: var(--brand-gradient);
  box-shadow: 0 14px 34px rgba(72, 49, 224, 0.23);
}

.metric-card.primary span,
.metric-card.primary strong {
  color: white;
}

.metric-card.primary span {
  opacity: 0.7;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.list-value {
  color: var(--text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.list-value strong {
  display: block;
  color: #aebfff;
}

.result {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.result.win {
  color: #8de8cd;
  background: rgba(64, 209, 171, 0.12);
}

.result.loss {
  color: #ff9898;
  background: rgba(255, 77, 77, 0.11);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.role-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-interactive);
}

.role-card span {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
}

.role-card strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.role-card small {
  color: var(--text-secondary);
}

.split-bar {
  display: flex;
  height: 10px;
  margin: 17px 20px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.split-bar span:first-child {
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
}

.split-bar span:last-child {
  background: linear-gradient(90deg, #9e2539, var(--red));
}

.split-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: var(--radius-control);
  font-weight: 600;
}

.button-primary {
  color: white;
  background: var(--brand-gradient);
  box-shadow: 0 12px 28px rgba(67, 55, 230, 0.26);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface-interactive);
}

.button-secondary:hover {
  border-color: rgba(69, 115, 255, 0.5);
}

.loading-card,
.empty-state {
  display: grid;
  place-items: center;
  max-width: 620px;
  min-height: 320px;
  margin: 60px auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-gradient);
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-card {
  grid-template-columns: auto 1fr;
  min-height: 140px;
  text-align: left;
}

.loading-card p,
.empty-state p {
  margin: 7px 0 0;
  color: var(--text-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  margin-right: 18px;
  border: 3px solid rgba(255, 255, 255, 0.11);
  border-top-color: var(--blue-soft);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: white;
  background: var(--brand-gradient);
  font-size: 21px;
  font-weight: 800;
}

.empty-state .button {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
}

.site-footer p {
  margin: 5px 0 0;
}

.site-footer a {
  color: var(--text-secondary);
  font-weight: 600;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .page {
    width: min(100% - 24px, 1120px);
  }

  .hero,
  .club-strip,
  .methodology,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }

  .hero-note {
    max-width: 540px;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar .control:first-child {
    grid-column: 1 / -1;
  }

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

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

  .profile-rank {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  .profile-rank strong {
    font-size: 29px;
  }
}

@media (max-width: 580px) {
  .site-header {
    top: 8px;
    min-height: 60px;
    margin-top: 8px;
    padding: 7px 8px;
    border-radius: 19px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small,
  .main-nav a:first-child {
    display: none;
  }

  .main-nav .app-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
    line-height: 38px;
  }

  .page {
    padding-top: 36px;
  }

  .hero {
    gap: 18px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .toolbar,
  .podium,
  .club-strip-links,
  .metrics-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .toolbar .control:first-child {
    grid-column: auto;
  }

  .podium-card {
    min-height: 120px;
  }

  .profile-hero {
    grid-template-columns: 60px 1fr;
    gap: 13px;
    padding: 18px;
    border-radius: 24px;
  }

  .profile-avatar,
  .profile-avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .profile-copy h1 {
    font-size: 29px;
  }

  .profile-copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .metric-card {
    min-height: 88px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .podium-card {
    transition: none;
  }

  .spinner {
    animation-duration: 1600ms;
  }
}
