html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

#main,
#app {
  overflow-x: hidden;
}

:root {
  --app-header-height: 56px;
  --app-bottom-nav-height: 50px;
}

#main {
  /* position: fixed;
  width: 100%;
  height: 100%; */
  min-height: 100%;
  background-color: var(--color-background);
  background-image:
    radial-gradient(
      circle at 14% 12%,
      rgba(var(--color-teal-light-rgb), 0.16),
      transparent 38%
    ),
    radial-gradient(
      circle at 88% 8%,
      rgba(var(--color-teal-rgb), 0.1),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 36%);
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: 120% 120%;
}

#app {
  width: 100%;
  height: 100%;
}

.score-stepper-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.score-stepper-input::-webkit-outer-spin-button,
.score-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (display-mode: standalone) {
  body {
    overscroll-behavior: none;
    padding-top: var(--app-header-height);
    padding-bottom: var(--app-bottom-nav-height);
  }

  .center {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.center {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 0;
  box-sizing: border-box;
  padding-top: var(--app-header-height);
  padding-bottom: var(--app-bottom-nav-height);
}

.header-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-help-button {
  border: 1px solid rgba(var(--color-ink-rgb), 0.12);
  color: var(--color-ink);
  background: rgba(var(--color-ink-rgb), 0.02);
}

.rules-page-minimal {
  width: min(760px, 92vw);
  margin: 24px auto 0;
}

.rules-page-card {
  border-radius: 18px;
  border: 1px solid rgba(var(--color-ink-rgb), 0.1);
  background: var(--color-white);
  box-shadow: 0 16px 34px rgba(var(--color-ink-rgb), 0.1);
  padding: 24px;
  display: grid;
  gap: 10px;
}

.rules-page-title {
  font-family: "Anton", "Avenir Next", "Futura", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  font-size: 28px;
}

.rules-page-copy {
  color: rgba(var(--color-ink-rgb), 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.rules-help-dialog {
  width: min(94vw, 980px);
  max-width: min(94vw, 980px) !important;
  height: 65vh;
  max-height: 65vh;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(var(--color-teal-light-rgb), 0.16),
      transparent 42%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(var(--color-teal-rgb), 0.06),
      transparent 48%
    ),
    linear-gradient(180deg, #ffffff, #f8f7ff);
  border: 1px solid rgba(var(--color-ink-rgb), 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rules-help-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 4px;
}

.rules-help-title-box {
  position: relative;
}

.rules-help-title-box::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 2px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--color-teal),
    var(--color-teal-light)
  );
}

.rules-help-title {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-style: italic;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-gray);
}

.rules-help-subtitle {
  margin-top: 4px;
  color: rgba(var(--color-ink-rgb), 0.72);
  font-size: 13px;
}

.rules-help-content {
  padding: 8px 22px 22px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.rules-help-open,
#main.rules-help-open {
  overflow: hidden !important;
}

.rules-help-tabs-wrap {
  margin-bottom: 10px;
  flex: 0 0 auto;
}

.rules-help-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.rules-help-tabs {
  min-height: 40px;
}

.rules-help-tabs .MuiTabs-indicator {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--color-teal),
    var(--color-teal-light)
  );
}

.rules-help-tabs .MuiTab-root {
  min-height: 40px;
  min-width: 92px;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(var(--color-ink-rgb), 0.6);
}

.rules-help-tabs .Mui-selected {
  color: var(--color-ink);
}

.rules-help-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.rules-help-summary-item {
  border: 1px solid rgba(var(--color-ink-rgb), 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.rules-help-summary-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(var(--color-ink-rgb), 0.75);
}

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

.rules-help-card {
  border: 1px solid rgba(var(--color-ink-rgb), 0.08);
  border-radius: 14px;
  background: var(--color-white);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(var(--color-ink-rgb), 0.06);
}

.rules-help-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.rules-help-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.rules-help-card-icon--inline {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.rules-help-icon--check {
  color: var(--color-dark-blue);
}

.rules-help-icon--flash {
  color: var(--color-odds);
}

.rules-help-icon--boost {
  color: var(--color-boost-activated);
}

.rules-help-icon--clock {
  color: var(--color-teal);
}

.rules-help-icon--soccer {
  color: #111;
}

.rules-help-icon--cup {
  color: var(--color-burgundy);
}

.rules-help-icon--gain {
  color: var(--color-gold);
}

.rules-help-icon--advice {
  color: var(--color-purple);
}

.rules-help-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}

.rules-help-card-body {
  margin-top: 4px;
  color: rgba(var(--color-ink-rgb), 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.rules-help-list {
  margin: 8px 0 0;
  padding-left: 16px;
  color: rgba(var(--color-ink-rgb), 0.7);
  font-size: 11px;
  line-height: 1.4;
}

.rules-help-list li + li {
  margin-top: 2px;
}

.rules-help-list--tight {
  margin-top: 0;
}

.rules-help-stage-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
}

.rules-help-stage-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.rules-help-stage-table {
  min-width: 360px;
  border: 1px solid rgba(var(--color-ink-rgb), 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-white);
}

.rules-help-stage-row {
  display: grid;
  grid-template-columns: 1.7fr 1.2fr 1fr 1fr;
}

.rules-help-stage-row span {
  padding: 7px 8px;
  border-top: 1px solid rgba(var(--color-ink-rgb), 0.08);
  font-size: 11px;
  color: rgba(var(--color-ink-rgb), 0.82);
  white-space: nowrap;
}

.rules-help-stage-row span + span {
  border-left: 1px solid rgba(var(--color-ink-rgb), 0.08);
  text-align: center;
  font-weight: 700;
}

.rules-help-stage-row--head {
  background: rgba(var(--color-ink-rgb), 0.04);
}

.rules-help-stage-row--head span {
  border-top: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: rgba(var(--color-ink-rgb), 0.76);
}

.rules-help-stage-footnote {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(var(--color-ink-rgb), 0.7);
}

.rules-help-payout-table {
  width: 100%;
  border: 1px solid rgba(var(--color-ink-rgb), 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-white);
}

.rules-help-payout-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-help-payout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rules-help-payout-row span {
  padding: 7px 8px;
  border-top: 1px solid rgba(var(--color-ink-rgb), 0.08);
  font-size: 11px;
  color: rgba(var(--color-ink-rgb), 0.82);
}

.rules-help-payout-row span + span {
  border-left: 1px solid rgba(var(--color-ink-rgb), 0.08);
}

.rules-help-payout-row--head {
  background: rgba(var(--color-ink-rgb), 0.04);
}

.rules-help-payout-row--head span {
  border-top: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: rgba(var(--color-ink-rgb), 0.76);
  text-align: center;
}

.rules-help-payout-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rules-help-payout-value {
  font-weight: 700;
  text-align: center;
}

.rules-help-grid--single {
  grid-template-columns: 1fr;
}

.rules-help-accordion {
  border: 1px solid rgba(var(--color-ink-rgb), 0.08);
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgba(var(--color-ink-rgb), 0.05) !important;
  background: rgba(255, 255, 255, 0.95);
}

.rules-help-accordion::before {
  display: none;
}

.rules-help-accordion .MuiAccordionSummary-root {
  min-height: 52px;
}

.rules-help-accordion .MuiAccordionSummary-content {
  margin: 10px 0 !important;
}

.rules-help-accordion .MuiAccordionDetails-root {
  padding-top: 0;
}

.rules-help-install-hero {
  border: 1px solid rgba(var(--color-ink-rgb), 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.rules-help-install-hero-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rules-help-install-hero-icon {
  color: var(--color-teal);
}

.rules-help-install-hero-title {
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}

.rules-help-install-hero-body {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(var(--color-ink-rgb), 0.72);
  line-height: 1.45;
}

.rules-help-install-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
}

.rules-help-list--ordered {
  margin-top: 0;
  padding-left: 18px;
}

.rules-help-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0 4px 0 2px;
  border-radius: 5px;
  background: rgba(var(--color-ink-rgb), 0.08);
  vertical-align: text-bottom;
}

.rules-help-inline-icon svg {
  width: 13px;
  height: 13px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .rules-help-dialog {
    width: 96vw;
    max-width: 96vw !important;
    height: 65vh;
    max-height: 65vh;
  }

  .rules-help-content {
    padding: 8px 14px 16px;
  }

  .rules-help-title-row {
    padding: 16px 14px 4px;
  }

  .rules-help-summary {
    grid-template-columns: 1fr;
  }

  .rules-help-grid {
    grid-template-columns: 1fr;
  }

  .rules-help-stage-row {
    grid-template-columns: 1.7fr 1.2fr 1fr 1fr;
  }
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.auth-shell {
  min-height: calc(
    100vh - var(--app-header-height) - var(--app-bottom-nav-height)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-white);
  border-radius: 20px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 18px 40px rgba(var(--color-ink-rgb), 0.12);
  padding: 28px 24px 32px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 20px;
}

.auth-title {
  font-family: "Anton", "Avenir Next", "Futura", sans-serif;
  text-transform: uppercase;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--color-ink);
}

.auth-subtitle {
  margin-top: 6px;
  color: var(--color-gray);
  font-size: 14px;
}

.auth-form p {
  margin-bottom: 16px;
}

.auth-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-ink);
}

.auth-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  padding: 10px 12px;
  font-size: 15px;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(var(--color-teal-rgb), 0.15);
}

.auth-button {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(
    135deg,
    var(--color-dark-blue) 0%,
    var(--color-teal-soft) 100%
  );
  color: var(--color-white);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.auth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--color-teal-rgb), 0.25);
}

.auth-meta {
  margin-top: 16px;
  text-align: center;
  color: var(--color-gray);
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.auth-link {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 600;
}

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

.auth-note {
  color: var(--color-gray);
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pwa-install-banner[hidden] {
  display: none;
}

.pwa-install-banner {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(var(--color-ink-rgb), 0.22);
  backdrop-filter: blur(6px);
}

.pwa-install-card {
  width: min(420px, 100%);
  border-radius: 16px;
  padding: 18px;
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 20px 50px rgba(var(--color-ink-rgb), 0.18);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pwa-install-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
}

.pwa-install-intro {
  font-size: 16px;
}

.pwa-install-copy {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(var(--color-ink-rgb), 0.72);
}

.pwa-install-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwa-install-steps li {
  line-height: 1.4;
}

.pwa-install-message strong {
  font-size: 18px;
}

.pwa-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0 4px 0 2px;
  border-radius: 6px;
  background: rgba(var(--color-teal-light-rgb), 0.14);
}

.pwa-inline-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
  margin: 0 auto;
}

.pwa-install-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pwa-install-actions button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

#pwa-install-action {
  background: var(--color-dark-blue);
  color: var(--color-white);
}

#pwa-install-continue {
  background: rgba(var(--color-teal-light-rgb), 0.14);
  color: var(--color-dark-blue);
}

@media (max-width: 600px) {
  .pwa-install-banner {
    padding: 16px;
  }

  .pwa-install-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.pull-refresh-indicator {
  position: fixed;
  top: calc(var(--app-header-height) + env(safe-area-inset-top));
  left: 50%;
  z-index: 200;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.pull-refresh-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: currentColor;
  animation: pull-refresh-spin 0.8s linear infinite;
}

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

/* .center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.standings-page {
  --standings-ink: var(--color-ink);
  --standings-teal: var(--color-teal);
  --standings-teal-light: var(--color-teal-light);
  --standings-gold: var(--color-gold);
  --standings-cream: var(--color-cream);
  --standings-card: var(--color-white);
  --standings-shadow: 0 20px 45px rgba(var(--color-ink-rgb), 0.12);
  --standings-soft-shadow: 0 12px 24px rgba(var(--color-ink-rgb), 0.12);
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 36px 0 72px;
  position: relative;
  color: var(--standings-ink);
  font-family: "Avenir Next", "Futura", "Trebuchet MS", sans-serif;
}

.standings-hero {
  background: linear-gradient(
    135deg,
    var(--color-teal) 0%,
    var(--color-teal-soft) 100%
  );
  color: var(--color-white);
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: var(--standings-shadow);
}

.standings-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: "Anton", "Avenir Next", "Futura", sans-serif;
  text-transform: uppercase;
}

.standings-subtitle {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.standings-podium {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.standings-card {
  background: var(--standings-card);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--standings-soft-shadow);
  border: 1px solid rgba(var(--color-ink-rgb), 0.08);
}

.standings-card--podium {
  min-height: 300px;
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    var(--color-podium-bg) 100%
  );
}

.standings-card--podium.is-leader {
  border-color: rgba(var(--color-gold-rgb), 0.6);
  box-shadow: 0 24px 50px rgba(var(--color-gold-rgb), 0.25);
  transform: translateY(-8px);
}

.standings-rank {
  display: flex;
  align-items: center;
}

.standings-rank-icon {
  width: 30px;
  height: 30px;
}

.standings-card--podium .standings-rank-icon {
  width: 40px;
  height: 40px;
}

.standings-rank-number {
  font-size: 16px;
  font-weight: 700;
}

.standings-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--color-avatar-gold-light) 0%,
    var(--color-cream) 100%
  );
  color: var(--color-avatar-gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 0 0 2px rgba(var(--color-gold-rgb), 0.4);
  --avatar-size: 40px;
}

.standings-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.standings-avatar--podium {
  width: 62px;
  height: 62px;
  font-size: 18px;
  --avatar-size: 62px;
}

.standings-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--standings-ink);
  text-decoration: none;
}

.standings-user:hover {
  color: var(--color-teal);
  text-decoration: none;
}

.standings-badges {
  margin-top: 4px;
}

.standings-podium-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.standings-podium-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.standings-points {
  font-size: 22px;
  font-weight: 700;
  color: var(--standings-teal);
}

.standings-points--podium {
  color: var(--standings-gold);
}

.standings-podium-right {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.standings-badges--inline {
  margin-top: 0;
}

.standings-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}

.standings-stats.is-podium {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.standings-stat {
  background: rgba(var(--color-ink-rgb), 0.04);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}

.standings-stat.is-highlight {
  background: var(--standings-cream);
}

.standings-stat-value {
  font-size: 14px;
  font-weight: 700;
}

.standings-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.7;
  margin-top: 4px;
}

.standings-table {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--standings-card);
  box-shadow: var(--standings-soft-shadow);
  border: 1px solid rgba(var(--color-ink-rgb), 0.08);
}

.standings-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.standings-table thead th {
  position: sticky;
  top: 0;
  background: var(--color-table-header-soft);
  color: var(--standings-ink);
  text-align: left;
  padding: 12px 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 11px;
}

.standings-table tbody td {
  padding: 12px 10px;
  border-top: 1px solid rgba(var(--color-ink-rgb), 0.08);
  vertical-align: middle;
}

.standings-table tbody tr:nth-child(even) {
  background: rgba(var(--color-ink-rgb), 0.02);
}

.standings-table tbody tr:hover {
  background: rgba(var(--color-teal-light-rgb), 0.08);
}

.standings-table .is-highlight {
  font-weight: 700;
  color: var(--standings-teal);
}

.standings-table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.standings-table-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.standings-table-movement {
  width: 60px;
}

@media (max-width: 980px) {
  .standings-podium-row {
    gap: 10px;
  }
}

.standings-user-info {
  display: flex;
  flex-direction: column;
}

@media (max-width: 980px) {
  .standings-podium {
    grid-template-columns: 1fr;
  }

  .standings-table {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .standings-page {
    padding: 28px 0 60px;
  }

  .standings-hero {
    padding: 20px;
  }

  .standings-title {
    font-size: 28px;
  }

  .standings-card--podium {
    min-height: 0;
  }

  .standings-stat-label {
    font-size: 10px;
  }
}

.account-page {
  --account-ink: var(--color-ink);
  --account-teal: var(--color-teal);
  --account-teal-light: var(--color-teal-light);
  --account-gold: var(--color-gold);
  --account-cream: var(--color-cream);
  --account-card: var(--color-white);
  --account-shadow: 0 10px 22px rgba(var(--color-ink-rgb), 0.14);
  --account-soft-shadow: 0 6px 14px rgba(var(--color-ink-rgb), 0.12);
  width: min(1050px, 92vw);
  margin: 0 auto;
  padding: 36px 0 72px;
  color: var(--account-ink);
  font-family: "Avenir Next", "Futura", "Trebuchet MS", sans-serif;
}

.account-hero {
  background: linear-gradient(
    135deg,
    var(--color-teal) 0%,
    var(--color-teal-soft) 100%
  );
  color: var(--color-white);
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: var(--account-shadow);
  margin: 0 auto;
  width: 100%;
}

.account-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: "Anton", "Avenir Next", "Futura", sans-serif;
  text-transform: uppercase;
}

.account-subtitle {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.account-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-grid > * {
  min-width: 0;
}

.account-card {
  background: var(--account-card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--account-soft-shadow);
  border: 1px solid rgba(var(--color-ink-rgb), 0.08);
  min-width: 0;
}

.account-card--profile {
  padding-top: 30px;
}

.account-card--history {
  margin-top: 18px;
}

.account-card--archives {
  margin-top: 18px;
}

.account-archives {
  display: grid;
  gap: 10px;
}

.account-archive-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(var(--color-teal-rgb), 0.06);
}

.account-archive-name {
  font-weight: 700;
  color: var(--account-ink);
}

.account-archive-meta {
  margin-top: 4px;
  color: rgba(var(--color-ink-rgb), 0.7);
}

.account-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--account-ink);
  margin-bottom: 12px;
}

.account-username-large {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.account-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--account-teal);
}

.account-rank-icon {
  width: 44px;
  height: 44px;
}

.account-stats {
  width: 100%;
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-stat {
  background: rgba(var(--color-teal-rgb), 0.06);
  border-radius: 14px;
  padding: 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 92px;
}

.account-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(var(--color-ink-rgb), 0.7);
  margin-bottom: 2px;
}

.account-stat-value {
  margin-top: auto;
  margin-bottom: auto;
  font-size: 20px;
  font-weight: 700;
  color: var(--account-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

.account-stat-value--boost {
  color: var(--color-boost-activated);
  align-items: center;
}

.account-boost-icon {
  font-size: 20px;
  color: var(--color-boost-activated);
  display: inline-flex;
  align-self: center;
}

.account-boost-count {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.account-rank-arrow svg {
  vertical-align: middle;
}

.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.account-card-header--centered {
  justify-content: center;
}

.account-card-header--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.account-button-center {
  align-self: center;
}

.account-actions {
  display: flex;
  justify-content: center;
}

.account-card--actions {
  text-align: left;
}

.account-card--actions .account-card-title {
  width: 100%;
  text-align: left;
}

.account-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.account-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  background: linear-gradient(
    135deg,
    var(--color-avatar-gold-light) 0%,
    var(--color-cream) 100%
  );
  border: 2px solid rgba(var(--color-teal-rgb), 0.2);
  box-shadow: 0 12px 24px rgba(var(--color-ink-rgb), 0.18);
  color: var(--color-avatar-gold-dark);
  font-size: 48px;
  --avatar-size: 140px;
}

.avatar-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.avatar-crop {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
  user-select: none;
}

.avatar-stars {
  position: absolute;
  top: calc(var(--avatar-size, 48px) * -0.2);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 2px;
  pointer-events: none;
}

.avatar-star {
  font-size: calc(var(--avatar-size, 48px) * 0.16);
  color: var(--color-odds);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

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

.account-avatar-upload {
  cursor: pointer;
}

.account-avatar-upload input {
  display: none;
}

.account-avatar-shell {
  position: relative;
  display: inline-block;
}

.account-avatar-edit {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--account-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(var(--color-ink-rgb), 0.18);
  border: 1px solid rgba(var(--color-ink-rgb), 0.1);
  transform: translate(35%, 35%);
}

.account-inline {
  margin-top: 10px;
}

.account-muted {
  margin: 0;
  color: rgba(var(--color-ink-rgb), 0.7);
}

.account-error {
  color: var(--color-error-strong);
  font-size: 13px;
}

.account-error--spaced {
  margin-top: 8px;
}

.account-empty {
  padding: 14px 0;
  color: rgba(var(--color-ink-rgb), 0.7);
}

.account-loading {
  padding: 12px 0;
}

.account-history .table {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(var(--color-ink-rgb), 0.12);
}

.account-history {
  max-width: 100%;
  overflow: hidden;
}

.account-history .table-responsive {
  max-width: 100%;
  min-width: 0;
}

.account-table-scroll {
  width: 100%;
  overflow-x: auto;
  display: block;
  max-width: 100%;
  min-width: 0;
}

.account-table-scroll table {
  width: 100%;
  min-width: 620px;
}

.account-card--notifications .MuiFormControlLabel-label,
.account-card--notifications .MuiFormGroup-root {
  color: rgba(var(--color-ink-rgb), 0.95);
  font-weight: 600;
}

.account-card--notifications .account-notification-child {
  margin-left: 26px;
}

.account-card--history .table.table-secondary {
  background-color: var(--color-white);
}

.account-card--history .table thead th,
.account-card--history .table tbody td {
  color: rgba(var(--color-ink-rgb), 0.95);
}

.account-card--history .table tbody tr:nth-child(even) {
  background-color: rgba(var(--color-ink-rgb), 0.02);
}

.account-history .table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-hero {
    padding: 18px 20px;
  }

  .account-title {
    font-size: 28px;
  }

  .account-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

input[type="file"] {
  top: 10px;
  left: 8px;
  font-size: 20px;
}

.buttonMargin {
  margin-bottom: 100px;
}

/* COUNTDOWN */
.expired-notice {
  text-align: center;
  text-justify: center;
  align-items: center;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  margin: 5px;
  padding-top: 10px;
}

.expired-notice > span {
  font-size: 10px;
  font-weight: bold;
  color: red;
}

.expired-notice > p {
  font-size: 10px;
  font-weight: bold;
}

.show-counter {
  font-weight: 700;
  font-size: 10px;
  align-items: center;
  justify-content: center;
}

.show-counter .countdown-link {
  display: flex;
  flex-direction: row;
  font-weight: 700;
  font-size: 10px;
  justify-content: center;
  text-decoration: none;
  color: #000;
}
.show-counter .countdown-tag {
  display: flex;
  flex-direction: row;
  font-weight: 500;
  font-size: 10px;
  justify-content: center;
  text-decoration: none;
  color: #000;
}

.show-counter .countdown {
  padding: 0 0.5px 0 0.5px;
  align-items: center;
}

.show-counter .countdown.danger {
  color: #ff0000;
}

.show-counter .countdown > span {
  text-transform: uppercase;
  font-size: 0.05rem;
  line-height: 0.9rem;
}
