:root {
  color-scheme: dark;
  --bg: #101518;
  --surface: #151c21;
  --raised: #202a32;
  --text: #f1f2ee;
  --muted: #a5acae;
  --line: #2b353d;
  --accent: #8bb9ff;
  --accent-ink: #10213c;
  --error: #efb2a9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(#8bb9ff06 1px, transparent 1px),
    linear-gradient(90deg, #8bb9ff06 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a,
button {
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
button:active,
.button:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.7rem, 4.9vw, 4.7rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
small {
  display: block;
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.muted {
  color: var(--muted);
}
.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  margin-bottom: 1.8rem;
}
.site-header,
main,
.site-footer {
  max-width: 1280px;
  margin: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}
.site-header {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  font-weight: 650;
}
.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 17px;
  border-radius: 5px;
  font-weight: 700;
}
.brand-sub {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 0.1rem;
}
.site-header nav {
  display: flex;
  gap: 2.5rem;
  font-size: 0.88rem;
}
.site-header nav a {
  color: var(--muted);
}
.site-header nav a[aria-current="page"] {
  color: var(--text);
}
.account-nav {
  min-width: 135px;
  text-align: right;
}
.account-nav details {
  position: relative;
}
.account-nav summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
}
.account-nav summary span {
  margin-left: 0.6rem;
  color: var(--muted);
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 10;
  width: 220px;
  padding: 0.75rem;
  background: var(--raised);
  border-radius: 12px;
  box-shadow: 0 12px 30px #0006;
  text-align: left;
}
.account-menu a,
.text-button {
  display: block;
  padding: 0.6rem 0.7rem;
  font-size: 0.875rem;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  width: 100%;
  text-align: left;
}
.account-menu a:hover,
.text-button:hover {
  background: var(--line);
  border-radius: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.85rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.4;
}
.button:hover {
  background: #aecfff;
  color: var(--accent-ink);
}
.button-secondary {
  background: transparent;
  border-color: #485052;
  color: var(--text);
}
.button-secondary:hover {
  background: var(--raised);
  color: var(--text);
}
.button-small {
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  gap: 1rem;
}
.button-full {
  display: flex;
  width: 100%;
}
.button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.page-intro {
  padding: 3.2rem 0 2.5rem;
}
.intro-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.intro-bottom p {
  color: var(--muted);
  margin: 0;
  font-size: 1.03rem;
}
.quiet-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.event-section {
  margin-bottom: 4rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.35rem;
  gap: 2rem;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > span {
  font-size: 0.8rem;
}
.event-feature {
  display: grid;
  grid-template-columns: 1fr 270px;
  background: var(--surface);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.event-info {
  padding: 1.7rem 2.5rem 1.8rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 500;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.event-info h3 {
  font-size: 2.1rem;
  margin: 1.3rem 0 0.9rem;
  letter-spacing: -0.025em;
}
.event-info p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 1.75rem;
}
.event-date {
  padding: 2.3rem 2rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  font-size: 0.84rem;
}
.date-month {
  color: var(--muted);
}
.date-day {
  font-size: 5rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 350;
  margin: 0.5rem 0;
}
.date-tba {
  font-size: 3.5rem;
}
.event-format {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  margin-top: 1.5rem;
  width: 100%;
  font-size: 0.74rem;
  color: var(--muted);
}
.event-compact .event-info h3 {
  font-size: 1.6rem;
}
.row-action {
  font-size: 0.8rem;
  color: var(--muted);
}
.event-history-wrap {
  border-radius: 12px;
}
.event-history-table {
  min-width: 700px;
}
.event-history-table th {
  padding-block: 0.85rem;
}
.event-history-table td {
  padding-block: 1.25rem;
}
.event-history-table th:first-child,
.event-history-table td:first-child {
  width: 145px;
}
.event-history-table td:nth-child(2) {
  width: 38%;
}
.event-history-name {
  font-size: 1rem;
  font-weight: 550;
}
.event-history-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
.event-history-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #71808a;
}
.event-history-actions {
  text-align: right;
  white-space: nowrap;
}
.event-history-actions .row-action + .row-action {
  margin-left: 1.5rem;
}
.event-history-actions .row-action-primary {
  color: var(--accent);
}
.event-history-actions .row-action span {
  margin-left: 0.35rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 5rem;
}
.site-footer > span:first-child {
  color: var(--text);
}
.site-footer .muted {
  margin-left: 0.5rem;
}
.demo-strip {
  text-align: center;
  background: #182439;
  color: #b8d2fa;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
}
.back-link {
  display: inline-block;
  margin: 2.2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.detail-heading {
  max-width: 900px;
  margin: 1.25rem 0 3.2rem;
}
.detail-heading .status {
  margin-bottom: 1.4rem;
}
.detail-heading h1 {
  font-size: 3.4rem;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 5rem;
  align-items: start;
}
.lead {
  font-size: 1.18rem;
  color: #cbd0cf;
  line-height: 1.65;
}
.prose {
  max-width: 70ch;
  color: #c1c7c7;
}
.prose p {
  margin-bottom: 1.5rem;
}
.prose h2 {
  margin-top: 2.8rem;
  color: var(--text);
}
.content-section {
  margin-top: 3.5rem;
}
.steps {
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.steps li {
  position: relative;
  padding: 0 0 1.3rem 2.4rem;
  counter-increment: steps;
}
.steps li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
  font-size: 0.8rem;
}
.steps strong {
  font-weight: 500;
}
.steps p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.4rem 0;
}
.event-aside {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.7rem;
}
.facts {
  margin: 0 0 2rem;
}
.facts div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.facts dd {
  margin: 0;
  font-size: 0.9rem;
}
.fine-print {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 1rem 0;
}
.aside-note {
  font-size: 0.73rem;
  text-align: center;
  color: var(--muted);
  margin: 1.2rem 0 0;
}
.checkbox-label {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: #c4cac9;
  margin-bottom: 1.4rem;
  cursor: pointer;
}
.checkbox-label input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}
.notice {
  background: var(--raised);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.error {
  color: var(--error);
}
.messages {
  margin-top: 1.5rem;
}
.registered-label {
  font-size: 0.85rem;
  color: var(--accent);
}
.narrow-page {
  max-width: 720px;
  margin: 5rem auto 6rem;
}
.narrow-page h1 {
  font-size: 3.7rem;
}
.about-list {
  border-bottom: 1px solid var(--line);
}
.about-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 4rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.about-row h3,
.about-row p {
  margin: 0;
}
.about-row h3 {
  font-size: 1.2rem;
}
.about-row p {
  max-width: 68ch;
  color: #c1c7c7;
}
.about-row p + p {
  margin-top: 1.25rem;
}
.about-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}
.settings-form {
  margin-top: 2.8rem;
}
.settings-form label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}
.settings-form input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid #485052;
  border-radius: 7px;
  padding: 0.9rem 1rem;
  color: var(--text);
}
input::placeholder {
  color: var(--muted);
}
.settings-form .button {
  margin-top: 1rem;
}
.errorlist {
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--error);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
  min-height: 65vh;
  padding: 4rem 0;
}
.auth-intro h1 {
  font-size: 3.9rem;
}
.auth-intro > p:last-child {
  color: var(--muted);
  font-size: 0.94rem;
}
.auth-form {
  padding: 2.5rem;
  background: var(--surface);
  border-radius: 14px;
}
.auth-form h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.auth-form > p {
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-form form {
  margin-top: 1.75rem;
}
.google-mark {
  font-weight: 700;
}
.empty-state {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.empty-state h3 {
  font-size: 1.45rem;
}
.empty-state p {
  color: var(--muted);
  max-width: 65ch;
}
.empty-line {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.profile-heading {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  padding: 4.5rem 0 1rem;
}
.profile-heading h1 {
  font-size: 3.5rem;
  margin: 0 0 0.65rem;
  overflow-wrap: anywhere;
}
.profile-heading .eyebrow {
  margin-bottom: 0.7rem;
}
.profile-heading p {
  margin-bottom: 0;
}
.profile-heading > .button {
  margin-left: auto;
}
.avatar-profile {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 18px;
  background: #1d2b40;
  color: var(--accent);
  font-size: 2.6rem;
  font-weight: 350;
  flex-shrink: 0;
}
.badges {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
}
.badge {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.5rem 1rem 1rem;
  background: var(--surface);
  border-radius: 9px;
  font-size: 0.85rem;
}
.badge-symbol {
  color: var(--accent);
  font-size: 1.6rem;
}
.profile-heading ~ .event-section {
  margin-top: 4rem;
}
.table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: #1a232a;
}
td {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
td:first-child,
th:first-child {
  padding-left: 1.5rem;
}
td:last-child,
th:last-child {
  padding-right: 1.5rem;
}
.results-table .place {
  width: 100px;
  padding-right: 2.5rem;
  font-size: 1.3rem;
  color: var(--muted);
}
.results-table .winner .place,
.results-table .winner .score {
  color: var(--text);
}
.results-table strong {
  font-weight: 500;
  font-size: 1.08rem;
}
.score {
  font-size: 1.2rem;
}
.roster {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem;
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}
@media (max-width: 1000px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .detail-layout {
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .quiet-label {
    display: none;
  }
  .auth-layout {
    gap: 2rem;
  }
  .auth-intro h1 {
    font-size: 3rem;
  }
}
@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .site-header {
    height: 82px;
    gap: 1rem;
  }
  .site-header nav {
    gap: 1rem;
  }
  .brand-sub {
    display: none;
  }
  .account-nav {
    min-width: 0;
  }
  .page-intro {
    padding-top: 3rem;
  }
  .intro-bottom br,
  .auth-intro br {
    display: none;
  }
  .event-feature {
    grid-template-columns: 1fr;
  }
  .event-info {
    padding: 1.7rem;
  }
  .event-date {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.3rem 1.7rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1rem;
  }
  .date-day {
    grid-row: 1/4;
    grid-column: 2;
    text-align: right;
    margin: 0;
    font-size: 3rem;
  }
  .event-format {
    grid-column: 1/3;
  }
  .section-heading > span {
    display: none;
  }
  .detail-layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .about-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .detail-heading h1,
  .narrow-page h1 {
    font-size: 2.6rem;
  }
  .detail-layout .event-aside {
    grid-row: 1;
  }
  .site-footer {
    flex-wrap: wrap;
    margin-top: 3rem;
  }
  .site-footer > span:nth-child(2) {
    display: none;
  }
  .profile-heading {
    flex-wrap: wrap;
    padding-top: 3rem;
  }
  .profile-heading h1 {
    font-size: 2.4rem;
  }
  .avatar-profile {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
  .profile-heading > .button {
    margin-left: 0;
  }
  .badges {
    flex-wrap: wrap;
  }
  .narrow-page {
    margin-top: 3rem;
  }
  .auth-layout {
    padding: 3rem 0;
  }
  .auth-form {
    padding: 1.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.own-team-label {
  display: inline-block;
  margin-left: 0.8rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--accent);
}
#your-team {
  scroll-margin-top: 2rem;
}
.contact-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 701px) and (max-height: 850px) {
  .site-header {
    height: 86px;
  }
  .page-intro {
    padding: 2.2rem 0 1.7rem;
  }
  .page-intro .eyebrow {
    margin-bottom: 1.2rem;
  }
  .page-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
  .event-info h3 {
    margin: 1rem 0 0.7rem;
  }
  .event-info p {
    margin-bottom: 1.25rem;
  }
}

h1,
h3 {
  overflow-wrap: anywhere;
}
.account-nav summary {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .account-nav summary {
    max-width: 110px;
  }
}

.avatar {
  object-fit: cover;
  background: var(--raised);
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-nav {
  width: 36px;
  height: 36px;
}
.account-nav summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  min-height: 44px;
}
.account-nav summary::-webkit-details-marker {
  display: none;
}
.account-nav summary span {
  margin-left: 0;
}
.account-nav summary .account-nickname {
  color: var(--text);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-heading h1 {
  margin-bottom: 0;
}
.event-history-actions .row-action {
  display: inline-block;
  padding: 0.6rem 0;
}
.event-history-actions .row-action:hover {
  color: var(--accent);
}
/* Reviewed activity: shared table, rank, profile and leaderboard components. */
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.site-header nav a {
  padding-block: 12px;
}
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-color: var(--accent);
}
.table-wrap:focus-visible {
  outline-offset: 4px;
}
tbody tr {
  transition: background-color 160ms ease;
}
tbody tr:hover,
tbody tr:focus-within {
  background: #1d2831;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr.is-own,
#your-team {
  background: #192b3c;
}
table a:focus-visible {
  outline-offset: 3px;
}
.rank {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 52px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.rank-gold {
  color: #f3c56a;
}
.rank-silver {
  color: #ccd5e2;
}
.rank-bronze {
  color: #dfa07c;
}
.rank-gold,
.rank-silver,
.rank-bronze {
  font-weight: 600;
}
.rank:not(.rank-gold):not(.rank-silver):not(.rank-bronze) {
  padding-left: 32px;
}
.results-table .place {
  width: 112px;
  padding-right: 1.2rem;
}
.results-table .place .rank {
  justify-content: flex-end;
}
.leaderboard-heading {
  padding: 3rem 0 1.8rem;
}
.leaderboard-heading h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.leaderboard-heading p {
  margin: 0;
}
.leaderboard-search {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--muted);
}
.search-field:focus-within {
  border-color: var(--accent);
}
.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.search-field input:focus-visible {
  outline-offset: 0;
}
.clear-search {
  padding: 12px 4px;
  color: var(--accent);
  font-size: 0.875rem;
}
.leaderboard-table {
  min-width: 740px;
}
.leaderboard-table th {
  padding-block: 15px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.leaderboard-table th .icon {
  width: 17px;
  height: 17px;
  margin-left: 5px;
}
.leaderboard-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.leaderboard-table td:nth-child(2) {
  width: 36%;
}
.leaderboard-table .score {
  font-size: 1rem;
  font-weight: 600;
}
.player-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  overflow-wrap: anywhere;
}
.player-link small {
  display: inline;
  margin-left: 10px;
  color: var(--accent);
  font-size: 0.72rem;
}
.table-empty {
  text-align: center;
  height: 260px;
}
.table-empty h2 {
  margin-bottom: 10px;
}
.table-empty p {
  color: var(--muted);
  margin: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-variant-numeric: tabular-nums;
}
.pagination a,
.pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 6px;
}
.pagination a:hover {
  background: var(--raised);
}
.pagination .current {
  border: 1px solid #456183;
  color: var(--accent);
  background: var(--surface);
}
.leaderboard-note {
  max-width: 90ch;
  margin-top: 24px;
}
.profile-heading {
  padding: 3.25rem 0 0;
  gap: 28px;
}
.profile-heading .avatar-profile {
  width: 112px;
  height: 112px;
}
.profile-identity {
  min-width: 0;
}
.profile-identity h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 8px;
}
.profile-heading > .button {
  flex-shrink: 0;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 13px;
}
.social-links a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  min-height: 32px;
}
.social-links .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.profile-ranking {
  display: flex;
  gap: 28px;
  margin: 24px 0 28px 140px;
  font-size: 0.84rem;
  color: var(--muted);
}
.profile-ranking a,
.profile-ranking > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.profile-ranking strong {
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.profile-ranking .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.profile-stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.profile-stats .icon {
  grid-row: 1 / 3;
  width: 27px;
  height: 27px;
  color: var(--accent);
}
.profile-stats dt {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
  color: var(--muted);
}
.profile-stats dd {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 2px;
  font-size: 1.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.profile-section {
  margin-top: 40px;
}
.profile-section h2 {
  font-size: 1.5rem;
  font-weight: 550;
  margin-bottom: 18px;
}
.activity-panel {
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 24px 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.category-radar {
  display: block;
  width: min(42%, 360px);
  height: auto;
  flex-shrink: 0;
  overflow: visible;
}
.radar-ring {
  fill: none;
  stroke: #35434f;
  stroke-width: 1;
}
.radar-axis {
  stroke: #35434f;
  stroke-width: 1;
}
.radar-shape {
  fill: #8bb9ff24;
  stroke: #8bb9ff;
  stroke-width: 2;
  stroke-linejoin: round;
}
.category-radar text {
  fill: var(--muted);
  font-size: 12px;
}
.category-breakdown {
  flex: 1;
  min-width: 0;
}
.category-breakdown > p {
  font-size: 0.85rem;
  max-width: 45ch;
}
.category-list {
  margin: 20px 0 0;
}
.category-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.category-list dt {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.category-list dd {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}
.category-track {
  display: block;
  height: 4px;
  width: 100%;
  background: #2b3843;
  border-radius: 4px;
  overflow: hidden;
}
.category-track > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.category-details {
  margin-top: 20px;
  font-size: 0.85rem;
}
.category-details summary {
  cursor: pointer;
  color: var(--accent);
}
.category-details dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 4px;
}
.category-details dt {
  overflow-wrap: anywhere;
}
.activity-empty {
  justify-content: center;
  padding-block: 38px;
  gap: 14px;
}
.activity-empty > .icon {
  color: var(--accent);
}
.activity-empty p {
  margin: 0;
  font-size: 0.9rem;
}
.history-table {
  min-width: 730px;
}
.history-table th {
  padding-block: 13px;
}
.history-table td {
  padding-top: 20px;
  padding-bottom: 20px;
}
.history-table td:first-child {
  width: 36%;
}
.history-table td:first-child > a {
  font-weight: 550;
}
.history-table .score {
  font-size: 1rem;
}
.team-name {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.team-name .icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.row-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 40px;
}
.social-settings {
  border: 0;
  padding: 0;
  margin: 32px 0 16px;
}
.social-settings legend {
  font-size: 1.2rem;
  font-weight: 550;
  margin-bottom: 8px;
}
.social-settings > p {
  font-size: 0.85rem;
}
@media (max-width: 1050px) {
  .profile-stats {
    gap: 10px;
  }
  .profile-stats > div {
    padding: 18px 14px;
    column-gap: 12px;
  }
  .activity-panel {
    padding: 24px;
    gap: 32px;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: auto;
    min-height: 96px;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 0;
    padding-top: 14px;
    padding-bottom: 10px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 30px;
  }
  .site-header nav a {
    padding-block: 8px;
  }
  .site-header nav a[aria-current="page"] {
    text-underline-offset: 6px;
  }
  .account-nav {
    margin-left: auto;
  }
  .leaderboard-heading {
    padding-top: 32px;
  }
  .leaderboard-heading .lead {
    font-size: 1rem;
  }
  .leaderboard-search {
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 65%;
    padding-inline: 12px;
  }
  .leaderboard-search .button {
    padding-inline: 12px;
  }
  .profile-heading {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    padding-top: 32px;
    gap: 18px;
  }
  .profile-heading .avatar-profile {
    width: 72px;
    height: 72px;
  }
  .profile-identity {
    flex: 1;
  }
  .profile-identity h1 {
    font-size: 1.9rem;
  }
  .profile-heading > .button {
    margin-left: 0;
    grid-column: 2;
    justify-self: start;
  }
  .profile-ranking {
    margin: 24px 0;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-stats > div:last-child {
    grid-column: 1 / -1;
  }
  .profile-stats dd {
    font-size: 1.5rem;
  }
  .profile-section {
    margin-top: 32px;
  }
  .activity-panel {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    align-items: stretch;
  }
  .category-radar {
    width: 100%;
    max-width: 360px;
    margin: auto;
  }
  .activity-empty {
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .table-empty {
    text-align: left;
  }
}
@media (max-width: 700px) {
  .account-nav summary .account-nickname,
  .account-nav summary > span:last-child {
    display: none;
  }
}
