html {
  scroll-padding-top: 96px;
}

.fh6-shell {
  max-width: 1180px;
}

.fh6-page {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.fh6-page > *,
.fh6-hero > *,
.fh6-section-heading > *,
.fh6-sources-tab > *,
.fh6-source-grid > * {
  min-width: 0;
}

.fh6-hero,
.fh6-tracker,
.fh6-mobile-stats,
.fh6-data {
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.fh6-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.46fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: end;
  padding: 28px 0 18px;
}

.fh6-hero-copy {
  width: 100%;
  max-width: 720px;
}

.fh6-hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.7rem, 7vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.fh6-hero .hero-text {
  margin: 18px 0 0;
}

.fh6-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fh6-hero-panel {
  display: grid;
  gap: 12px;
}

.fh6-mobile-stats {
  display: none;
}

.fh6-stat,
.fh6-chart-tool,
.fh6-table-wrap,
.fh6-source-card,
.fh6-sources-tab {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
}

.fh6-stat,
.fh6-source-card {
  padding: 18px;
}

.fh6-stat {
  display: grid;
  gap: 6px;
}

.fh6-stat span,
.fh6-source-card span,
.fh6-data-table th {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fh6-stat strong {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.fh6-stat p,
.fh6-selected-panel p,
.fh6-source-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.fh6-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 20px;
  align-items: end;
  padding: 26px 0 22px;
}

.fh6-sources-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}

.fh6-sources-tab::-webkit-details-marker {
  display: none;
}

.fh6-sources-tab h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.fh6-sources-tab > span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fh6-data[open] .fh6-sources-tab {
  border-color: var(--accent);
}

.fh6-data[open] .fh6-sources-tab > span {
  color: var(--text);
}

.fh6-section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.fh6-section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.fh6-chart-tool {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
}

.fh6-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.fh6-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fh6-chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fh6-chip:hover,
.fh6-chip:focus-visible,
.fh6-chip.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.fh6-chip.is-active {
  background: rgba(187, 255, 42, 0.1);
}

.fh6-chip-steam.is-active {
  background: rgba(69, 202, 255, 0.13);
}

.fh6-chip-leaderboard.is-active {
  background: rgba(187, 255, 42, 0.12);
}

.fh6-zoom-group {
  justify-content: flex-end;
}

.fh6-zoom-button {
  min-width: 42px;
}

.fh6-selected-panel {
  min-height: 64px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 13, 0.2);
  padding: 16px;
}

.fh6-selected-panel strong {
  color: var(--text);
  font-weight: 800;
}

.fh6-selected-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.fh6-chart-frame {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    rgba(5, 9, 13, 0.28);
}

.fh6-chart-frame svg {
  display: block;
  width: 100%;
  min-height: 320px;
}

.fh6-navigator-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(5, 9, 13, 0.28);
  padding: 12px;
}

.fh6-navigator-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  align-items: center;
}

.fh6-navigator-head span,
.fh6-navigator-head strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fh6-navigator-head span {
  color: var(--muted);
}

.fh6-navigator-head strong {
  color: var(--text);
}

.fh6-navigator-panel svg {
  display: block;
  width: 100%;
  height: 96px;
  cursor: ew-resize;
  touch-action: none;
}

.fh6-nav-bg {
  fill: rgba(255, 255, 255, 0.03);
}

.fh6-nav-line {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
  opacity: 0.82;
}

.fh6-nav-line-steam {
  stroke: #45caff;
}

.fh6-nav-line-leaderboard {
  stroke: #bbff2a;
}

.fh6-nav-shade {
  fill: rgba(3, 6, 9, 0.54);
}

.fh6-nav-selection {
  fill: rgba(187, 255, 42, 0.06);
  stroke: rgba(244, 246, 248, 0.72);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.fh6-nav-handle {
  fill: var(--text);
}

.fh6-nav-label {
  fill: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.fh6-axis,
.fh6-grid,
.fh6-baseline {
  vector-effect: non-scaling-stroke;
}

.fh6-grid {
  stroke: rgba(160, 176, 190, 0.18);
  stroke-width: 1;
}

.fh6-axis {
  stroke: rgba(160, 176, 190, 0.35);
  stroke-width: 1;
}

.fh6-event-line {
  stroke: rgba(244, 246, 248, 0.38);
  stroke-dasharray: 6 8;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.fh6-axis-label {
  fill: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
}

.fh6-event-label,
.fh6-empty-chart-label {
  fill: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fh6-series-line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: square;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.fh6-series-area {
  opacity: 0.12;
}

.fh6-line-steam {
  stroke: #45caff;
}

.fh6-line-leaderboard {
  stroke: #bbff2a;
}

.fh6-point {
  cursor: pointer;
  stroke: #0b0f13;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.fh6-point-steam {
  fill: #45caff;
}

.fh6-point-leaderboard {
  fill: #bbff2a;
}

.fh6-point-approx {
  stroke-dasharray: 3 3;
}

.fh6-point.is-active {
  stroke: var(--text);
  stroke-width: 5;
}

.fh6-tooltip {
  position: absolute;
  z-index: 4;
  max-width: min(300px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 18, 0.94);
  color: var(--text);
  transform: translate(-50%, calc(-100% - 16px));
  pointer-events: none;
}

body[data-theme="light"] .fh6-tooltip {
  background: rgba(255, 255, 255, 0.96);
}

.fh6-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.fh6-tooltip span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.fh6-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.fh6-chart-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.fh6-chart-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
}

.fh6-legend-steam {
  background: #45caff;
}

.fh6-legend-leaderboard {
  background: #bbff2a;
}

.fh6-legend-muted {
  border-top: 3px dashed var(--muted);
}

.fh6-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.fh6-data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.fh6-data-table th,
.fh6-data-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.fh6-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.fh6-data-table td {
  color: var(--muted);
  line-height: 1.45;
}

.fh6-data-table td strong,
.fh6-data-table a,
.fh6-source-card a {
  color: var(--text);
}

.fh6-data-table a,
.fh6-source-card a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.fh6-data-table a:hover,
.fh6-source-card a:hover {
  color: var(--accent);
}

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

.fh6-source-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fh6-data[open] .fh6-table-wrap {
  margin-top: 14px;
}

.fh6-source-card {
  display: grid;
  gap: 10px;
}

@media (max-width: 920px) {
  .fh6-hero,
  .fh6-section-heading,
  .fh6-sources-tab,
  .fh6-source-grid {
    grid-template-columns: 1fr;
  }

  .fh6-hero h1,
  .fh6-section-heading h2 {
    max-width: none;
  }

  .fh6-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .fh6-hero {
    padding-top: 22px;
  }

  .fh6-hero h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .fh6-control-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fh6-control-group:first-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .fh6-chip {
    width: 100%;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .fh6-navigator-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fh6-data-table th,
  .fh6-data-table td {
    padding: 12px;
  }
}

@media (max-width: 700px) {
  .fh6-page {
    gap: 18px;
  }

  .fh6-hero {
    padding: 16px 0 8px;
  }

  .fh6-hero h1 {
    max-width: 14ch;
    font-size: clamp(2rem, 10vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
  }

  .fh6-hero .hero-text,
  .fh6-section-heading {
    display: none;
  }

  .fh6-hero-actions {
    display: none;
  }

  .fh6-hero-panel {
    display: none;
  }

  .fh6-tracker {
    border-top: 0;
    margin-top: -6px;
  }

  .fh6-chart-tool {
    gap: 10px;
    padding: 12px;
  }

  .fh6-toolbar {
    gap: 8px;
    margin-top: -2px;
  }

  .fh6-chart-frame svg {
    height: clamp(430px, 58vh, 500px);
    min-height: 0;
  }

  .fh6-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 18px;
  }

  .fh6-mobile-stats .fh6-stat {
    gap: 5px;
    padding: 12px;
  }

  .fh6-mobile-stats .fh6-stat span {
    font-size: 0.56rem;
    line-height: 1.25;
  }

  .fh6-mobile-stats .fh6-stat strong {
    font-size: clamp(1.05rem, 6vw, 1.55rem);
    letter-spacing: -0.04em;
  }

  .fh6-mobile-stats .fh6-stat p {
    display: none;
  }
}
