:root {
  color-scheme: dark;

  --page: #080809;
  --surface: rgba(18, 18, 20, 0.76);
  --surface-solid: #121214;
  --surface-hover: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f3;
  --muted: #aaa9a6;
  --faint: #696865;
  --accent: #3f8cff;
  --positive: #64d69a;
  --negative: #ff7b7b;
  --warning: #f0c36c;
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

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

.top-light {
  position: fixed;
  z-index: 0;
  top: -68px;
  left: 50%;
  width: 400px;
  height: 112px;
  pointer-events: none;
  background: #ffffff;
  opacity: 0.075;
  filter: blur(58px);
  transform: translateX(-50%);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 18px 22px 0;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1180px);
  min-height: 68px;
  margin: 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 16px 50px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background-color 180ms ease, opacity 180ms ease;
}

.brand:hover {
  background: var(--surface-hover);
}

.brand__logo {
  display: block;
  width: auto;
  max-width: 190px;
  height: 30px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-link:active {
  transform: translateY(1px);
}

.nav-link.active {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.nav-link:focus-visible,
.brand:focus-visible,
.menu-button:focus-visible,
.icon-button:focus-visible,
.segmented-control button:focus-visible,
.search-field:focus-within {
  outline: 2px solid #efefed;
  outline-offset: 3px;
}

.topbar__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 48px;
}

.icon-button,
.menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover,
.menu-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.icon-button:active,
.menu-button:active {
  transform: translateY(1px);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refresh-button.is-spinning svg {
  animation: spin 700ms linear infinite;
}

.menu-button {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-button span {
  position: absolute;
  width: 17px;
  height: 1px;
  background: var(--text);
  transition: transform 180ms ease;
}

.menu-button span:first-child {
  transform: translateY(-3px);
}

.menu-button span:last-child {
  transform: translateY(3px);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 44px), 1180px);
  margin: 0 auto;
  padding: 78px 0 36px;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  padding: 0 6px 34px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 5px rgba(100, 214, 154, 0.09);
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.intro__copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.rate-control {
  flex: 0 0 auto;
  min-width: 308px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.rate-control__label {
  display: block;
  margin: 0 4px 9px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.segmented-control button {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.segmented-control button:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.segmented-control button.active {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.leaderboard-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.leaderboard-panel[hidden] {
  display: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 26px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.035em;
}

.search-field {
  display: flex;
  align-items: center;
  width: min(100%, 300px);
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--faint);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.search-field:hover,
.search-field:focus-within {
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.22);
}

.search-field svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 0 0 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
}

.search-field input::placeholder {
  color: var(--faint);
}

.board-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 10px 26px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.live {
  border-color: rgba(100, 214, 154, 0.23);
  color: var(--positive);
}

.status-pill.fallback {
  border-color: rgba(240, 195, 108, 0.23);
  color: var(--warning);
}

.status-pill.error {
  border-color: rgba(255, 123, 123, 0.23);
  color: var(--negative);
}

.status-pill.loading span {
  animation: pulse 900ms ease-in-out infinite alternate;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 830px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: rgba(15, 15, 17, 0.96);
  color: var(--faint);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody tr {
  transition: background-color 160ms ease;
}

tbody tr:hover {
  background: var(--surface-hover);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--muted);
  font-size: 0.83rem;
}

.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank-column {
  width: 78px;
}

.movement-column {
  width: 105px;
  text-align: center;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rank.top-1,
.rank.top-2,
.rank.top-3 {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

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

.identity__text {
  min-width: 0;
}

.identity__name {
  max-width: 300px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.identity__sub {
  max-width: 300px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.72rem;
  text-overflow: ellipsis;
}

.value {
  color: var(--text);
  font-weight: 700;
}

.change.positive,
.movement.positive {
  color: var(--positive);
}

.change.negative,
.movement.negative {
  color: var(--negative);
}

.change.zero,
.movement.zero {
  color: var(--faint);
}

.movement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.table-message {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 30px;
  color: var(--faint);
  font-size: 0.86rem;
  text-align: center;
}

.table-message[hidden] {
  display: none;
}

.skeleton-row td {
  height: 71px;
}

.skeleton {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  animation: pulse 900ms ease-in-out infinite alternate;
}

.skeleton.short {
  width: 42px;
}

.skeleton.medium {
  width: 120px;
}

.skeleton.long {
  width: 210px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 6px 0;
  color: var(--faint);
  font-size: 0.72rem;
}

.site-footer span:first-child {
  color: var(--muted);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

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

@media (max-width: 860px) {
  .intro {
    align-items: stretch;
    flex-direction: column;
  }

  .rate-control {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 62px;
    border-radius: 16px;
  }

  .brand__logo {
    max-width: 160px;
    height: 27px;
  }

  .menu-button {
    display: inline-flex;
  }

  .refresh-button {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(16, 16, 18, 0.96);
    box-shadow: 0 18px 50px var(--shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link {
    justify-content: center;
    width: 100%;
  }

  .topbar__end {
    min-width: auto;
  }

  .page-shell {
    width: min(calc(100% - 24px), 1180px);
    padding-top: 52px;
  }

  .intro {
    gap: 28px;
    padding: 0 3px 24px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
    padding: 21px 18px 17px;
  }

  .search-field {
    width: 100%;
  }

  .board-meta {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  th,
  td {
    padding-right: 14px;
    padding-left: 14px;
  }

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

@media (max-width: 420px) {
  .brand__logo {
    max-width: 135px;
  }

  .segmented-control button {
    padding: 0 4px;
    font-size: 0.72rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Extended board picker and history detail view */
.panel-tools {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  width: min(100%, 690px);
}

.board-picker {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(112px, 0.7fr);
  gap: 8px;
  flex: 1 1 auto;
}

.select-field {
  position: relative;
  display: grid;
  gap: 6px;
}

.select-field > span {
  padding-left: 2px;
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.select-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.14);
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color-scheme: dark;
}

.select-field select:hover,
.select-field select:focus-visible {
  border-color: var(--border-strong);
  background-color: rgba(0, 0, 0, 0.22);
}

.identity-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.identity-button:hover .identity__name,
.identity-button:focus-visible .identity__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.identity-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 10px;
}

.identity__name,
.identity__sub {
  display: block;
}


body.modal-open {
  overflow: hidden;
}

.detail-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.detail-backdrop[hidden] {
  display: none;
}

.detail-modal {
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: rgba(14, 14, 16, 0.97);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

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

.detail-identity h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-identity .eyebrow {
  margin-bottom: 5px;
}

.detail-identity small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.76rem;
}

.detail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.detail-content {
  overflow-y: auto;
  padding: 20px 24px 26px;
}

.detail-status {
  min-height: 21px;
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 0.75rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card,
.chart-card,
.history-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.stat-card {
  min-width: 0;
  padding: 15px;
  border-radius: 15px;
}

.stat-card > span {
  display: block;
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card small {
  display: block;
  min-height: 30px;
  margin-top: 7px;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.68rem;
  line-height: 1.45;
}

.chart-card,
.history-card {
  overflow: hidden;
  border-radius: 17px;
}

.chart-card {
  margin-bottom: 14px;
}

.chart-card__header,
.history-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
}

.chart-card__header h3,
.history-card__header h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.chart-card__header .eyebrow,
.history-card__header .eyebrow {
  margin-bottom: 5px;
  font-size: 0.61rem;
}

.mini-segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.18);
}

.mini-segmented button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.mini-segmented button.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chart-shell {
  position: relative;
  min-height: 310px;
  padding: 10px 10px 2px;
}

.history-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  overflow: visible;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
}

.chart-area {
  fill: rgba(63, 140, 255, 0.09);
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--surface-solid);
  stroke: var(--accent);
  stroke-width: 2;
}

.chart-dot-hit {
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
  outline: none;
}

.chart-point:hover .chart-dot,
.chart-point:focus-within .chart-dot {
  stroke-width: 3;
}

.chart-hover[hidden] {
  display: none;
}

.chart-hover__guide {
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  pointer-events: none;
}

.chart-hover__dot {
  fill: var(--surface-solid);
  stroke: var(--accent);
  stroke-width: 2.5;
  pointer-events: none;
}

.chart-hover__tooltip {
  pointer-events: none;
}

.chart-hover__tooltip rect {
  fill: rgba(12, 12, 14, 0.96);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.chart-hover__date,
.chart-hover__value {
  fill: var(--muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chart-hover__value {
  fill: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.chart-label {
  fill: var(--faint);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chart-label--y {
  font-size: 10px;
}

.chart-empty {
  display: grid;
  min-height: 290px;
  place-items: center;
  color: var(--faint);
  font-size: 0.82rem;
}

.history-card__header > span {
  color: var(--faint);
  font-size: 0.72rem;
}

.history-table-wrap {
  max-height: 310px;
  overflow: auto;
}

.history-table {
  min-width: 620px;
}

.history-table th,
.history-table td {
  padding: 13px 18px;
}

.history-table th {
  top: 0;
}

@media (max-width: 980px) {
  .panel-header--stackable {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-tools {
    width: 100%;
  }

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

@media (max-width: 720px) {
  .panel-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .board-picker {
    grid-template-columns: 1fr 1fr;
  }

  .panel-tools .search-field {
    width: 100%;
  }


  .detail-backdrop {
    align-items: end;
    padding: 0;
  }

  .detail-modal {
    width: 100%;
    max-height: calc(100vh - 18px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .detail-header {
    padding: 17px 16px;
  }

  .detail-content {
    padding: 16px;
  }

  .detail-avatar {
    width: 46px;
    height: 46px;
  }

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

  .chart-card__header,
  .history-card__header {
    padding: 14px;
  }

  .chart-shell {
    min-height: 250px;
    overflow-x: auto;
  }

  .history-chart {
    width: 760px;
    min-height: 250px;
  }
}

@media (max-width: 460px) {
  .board-picker {
    grid-template-columns: 1fr;
  }

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

  .stat-card small {
    min-height: 0;
  }
}

/* Routed pages */
.page-shell--compact {
  padding-top: 42px;
}

.page-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.rate-control--inline {
  width: min(100%, 370px);
  min-width: 0;
  padding: 9px;
  border-radius: 14px;
}

.rate-control--inline .rate-control__label {
  margin-bottom: 7px;
}

.rate-control--inline .segmented-control button {
  min-height: 34px;
}

.panel-title {
  max-width: none;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.identity-button {
  text-decoration: none;
}

.detail-page {
  width: min(calc(100% - 44px), 1080px);
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.detail-back-link:hover {
  color: var(--text);
  transform: translateX(-2px);
}

.detail-back-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 6px;
}

.detail-back-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-page-panel {
  width: 100%;
  max-height: none;
  overflow: visible;
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.detail-page-panel .detail-content {
  overflow: visible;
}

.detail-page-title {
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skeleton-avatar {
  background: rgba(255, 255, 255, 0.07);
  animation: pulse 900ms ease-in-out infinite alternate;
}

@media (max-width: 720px) {
  .page-shell--compact {
    width: min(calc(100% - 24px), 1180px);
    padding-top: 28px;
  }

  .page-toolbar {
    justify-content: stretch;
  }

  .rate-control--inline {
    width: 100%;
  }

  .detail-page {
    width: min(calc(100% - 24px), 1080px);
  }

  .detail-page-panel {
    max-height: none;
    border: 1px solid var(--border);
    border-radius: 20px;
  }
}


/* Compact filters integrated into the leaderboard header */
.panel-tools {
  align-items: flex-end;
  width: min(100%, 820px);
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.control-field,
.select-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.control-field > span,
.select-field > span:first-child {
  padding-left: 2px;
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.select-field--board {
  flex: 1 1 180px;
  min-width: 170px;
  max-width: 230px;
}

.select-control {
  position: relative;
  display: block;
}

.select-field > .select-control {
  padding-left: 0;
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.select-control select {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 13px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: 0;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
  color-scheme: dark;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.select-control svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.select-control:hover select,
.select-control select:focus-visible {
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.27);
}

.select-control select:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.segmented-control--period,
.segmented-control--rate {
  display: flex;
  gap: 3px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.18);
}

.segmented-control--period button,
.segmented-control--rate button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.73rem;
}

.segmented-control--period button.active,
.segmented-control--rate button.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.control-field--rate {
  flex: 0 0 auto;
}

.panel-tools--competitive {
  width: min(100%, 610px);
}

.panel-tools--competitive .control-field--rate {
  margin-right: auto;
}

.panel-tools .search-field {
  flex: 0 1 240px;
  width: auto;
  min-width: 190px;
}


@media (max-width: 1080px) {
  .panel-header--stackable {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-tools {
    width: 100%;
  }

  .filter-bar {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .panel-tools,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .select-field--board,
  .panel-tools .search-field {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .segmented-control--period,
  .segmented-control--rate {
    display: grid;
  }

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

  .segmented-control--rate {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .panel-tools--competitive .control-field--rate {
    margin-right: 0;
  }
}

@media (max-width: 430px) {
  .segmented-control--period button,
  .segmented-control--rate button {
    padding: 0 5px;
    font-size: 0.69rem;
  }
}

/* Column settings and overtake insights */
.view-settings {
  position: relative;
  flex: 0 0 auto;
}

.columns-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.columns-button:hover,
.columns-button[aria-expanded="true"] {
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.columns-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.columns-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-popover {
  position: absolute;
  z-index: 12;
  top: calc(100% + 9px);
  right: 0;
  width: 260px;
  padding: 9px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: rgba(16, 16, 18, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.settings-popover[hidden] {
  display: none;
}

.settings-popover__title {
  margin: 2px 5px 7px;
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.settings-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.settings-option:hover {
  background: var(--surface-hover);
}

.settings-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.settings-option strong,
.settings-option small {
  display: block;
}

.settings-option strong {
  color: var(--text);
  font-size: 0.77rem;
}

.settings-option small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.67rem;
  line-height: 1.35;
}

.metric-cell {
  position: relative;
  min-width: 132px;
  text-align: center;
}

/* Keep the comparison badges directly under the values they describe. */
.leaderboard-panel th:nth-child(3),
.leaderboard-panel th:nth-child(4) {
  text-align: center;
}

.metric-primary {
  display: inline-block;
}

.rank-gap {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #101012;
  box-shadow: 0 0 0 4px #101012;
  font-size: 0.66rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.rank-gap[hidden] {
  display: none !important;
}

.rank-gap--difference {
  left: 50%;
  right: auto;
  border-color: rgba(255, 255, 255, 0.16);
  color: #8d8d91;
  transform: translate(-50%, -50%);
}

.rank-gap--eta.positive {
  border-color: rgba(100, 214, 154, 0.34);
  color: var(--positive);
}

.rank-gap--eta.zero {
  color: var(--faint);
}

.skeleton.gap {
  width: 48px;
  height: 7px;
}

@media (max-width: 780px) {
  .metric-cell {
    min-width: 116px;
  }

  .rank-gap {
    left: 50%;
    right: auto;
    min-width: 64px;
    padding-inline: 6px;
    font-size: 0.62rem;
  }
}

.panel-tools {
  width: min(100%, 930px);
}

.panel-tools--competitive {
  width: min(100%, 720px);
}

.leaderboard-panel table {
  min-width: 830px;
}

@media (max-width: 780px) {
  .view-settings,
  .columns-button {
    width: 100%;
  }

  .settings-popover {
    right: 0;
    left: 0;
    width: 100%;
  }
}

/* Keep the dense selector set on its own row so controls never collide. */
.panel-header--stackable {
  align-items: stretch;
  flex-direction: column;
}

.panel-tools,
.panel-tools--competitive {
  width: 100%;
  max-width: none;
  justify-content: flex-start;
}

.filter-bar {
  justify-content: flex-start;
}

.panel-tools--competitive .control-field--rate {
  margin-right: 0;
}

@media (max-width: 780px) {
  .panel-tools .search-field {
    flex: 0 0 auto;
  }
}

@media (max-width: 780px) {
  .select-field--board {
    flex: 0 0 auto;
  }
}

[data-optional-column][hidden] {
  display: none !important;
}

/* Progressive leaderboard rendering */
.scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.scroll-loader[hidden] {
  display: none;
}

.scroll-loader__spinner {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  animation: scroll-loader-spin 700ms linear infinite;
}

.scroll-loader:not(.is-loading) .scroll-loader__spinner {
  opacity: 0.55;
}

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

@media (prefers-reduced-motion: reduce) {
  .scroll-loader__spinner {
    animation: none;
  }
}

/* Bounties */
.avatar--tier {
  padding: 3px;
  background: rgba(255, 255, 255, 0.025);
}

.avatar--tier img {
  object-fit: contain;
}

.bounty-content {
  padding: 0 26px 28px;
}

.bounty-featured {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  min-height: 340px;
  margin: 26px 0 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bounty-featured[hidden] {
  display: none;
}

.bounty-featured__visual {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.bounty-featured__visual > img {
  width: min(78%, 300px);
  height: min(78%, 300px);
  object-fit: contain;
}

.bounty-featured__egg,
.bounty-card__egg {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.bounty-featured__egg {
  right: 22px;
  bottom: 22px;
  width: 86px;
  height: 86px;
  border-radius: 22px;
}

.bounty-featured__egg img,
.bounty-card__egg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bounty-featured__copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(28px, 5vw, 58px);
}

.bounty-featured__copy h2 {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.bounty-featured__countdowns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.bounty-featured__countdowns > div {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.13);
}

.bounty-featured__countdowns span {
  display: block;
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bounty-featured__countdowns strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bounty-featured__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.bounty-featured__meta > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.13);
}

.bounty-featured__meta span,
.bounty-card__details dt {
  display: block;
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bounty-featured__meta strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bounty-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 2px 16px;
}

.bounty-list-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.bounty-list-heading > span {
  color: var(--faint);
  font-size: 0.75rem;
}

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

.bounty-card {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.bounty-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.bounty-card--today {
  border-color: var(--border);
}

.bounty-card--past {
  opacity: 0.68;
}

.bounty-card__visual {
  position: relative;
  display: grid;
  min-height: 184px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
}

.bounty-card__visual > img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.bounty-card__egg {
  right: 10px;
  bottom: 10px;
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.bounty-card__body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}

.bounty-card__body h3 {
  margin: 16px 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bounty-date-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--faint);
  font-size: 0.72rem;
}

.bounty-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.bounty-status--today,
.bounty-status--upcoming {
  border-color: var(--border-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.bounty-status--past {
  color: var(--faint);
}

.bounty-card__details {
  display: grid;
  gap: 10px;
  margin: 17px 0 0;
}

.bounty-card__details > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}

.bounty-card__details dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bounty-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--faint);
  font-size: 1rem;
  font-weight: 800;
}

.bounty-featured__skeleton {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 340px;
  padding: 44px;
}

.bounty-skeleton-image {
  width: 180px;
  height: 180px;
  border-radius: 30px;
}

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

@media (max-width: 720px) {
  .bounty-content {
    padding: 0 14px 18px;
  }

  .bounty-featured {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .bounty-featured__visual {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .bounty-featured__copy {
    padding: 28px 22px 32px;
  }

  .bounty-featured__countdowns,
  .bounty-featured__meta {
    grid-template-columns: 1fr;
  }

  .bounty-card {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .bounty-card__visual {
    min-height: 172px;
  }

  .bounty-card__body {
    padding: 15px;
  }

  .bounty-card__details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 440px) {
  .bounty-card {
    grid-template-columns: 1fr;
  }

  .bounty-card__visual {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

/* Discord authentication */
.auth-body {
  min-height: 100vh;
  overflow: hidden;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.auth-card {
  display: grid;
  justify-items: center;
  width: min(100%, 360px);
  gap: 24px;
  text-align: center;
}

.auth-icon {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
}

.auth-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.discord-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #5865f2;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.discord-auth-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.discord-auth-button:active {
  transform: translateY(0);
}

.discord-auth-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.discord-auth-button svg {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  fill: currentColor;
}

.nav-link--logout {
  color: var(--faint);
}

@media (max-width: 540px) {
  .auth-shell { padding: 18px; }
  .auth-icon { width: 94px; height: 94px; }
}

/* Dot-only history chart hover */
.chart-point-tooltip {
  position: absolute;
  z-index: 8;
  display: grid;
  min-width: 164px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(12, 12, 14, 0.97);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.chart-point-tooltip[hidden] {
  display: none;
}

.chart-point-tooltip span {
  color: var(--muted);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.chart-point-tooltip strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}


/* Session action in the topbar */
.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.logout-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}

.logout-button:active {
  transform: translateY(1px);
}

.logout-button:focus-visible {
  outline: 2px solid #efefed;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .logout-button {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }
}
