.hornets-page,
:root {
  --text-scale: 1;
}

.viz-header h2 {
  letter-spacing: 0.01em;
}

.site-home-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: #00788c;
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.site-home-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  filter: brightness(1.04);
}

.site-home-link:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .site-home-link {
    top: 12px;
    left: 12px;
    padding: 9px 10px;
    font-size: 11px;
  }
}

.table-header {
  font-size: calc(11px * var(--text-scale));
  fill: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-row-text {
  font-size: calc(13.5px * var(--text-scale));
  fill: var(--ink);
}

.table-logo {
  width: 20px;
  height: 20px;
}

.table-row-rank {
  font-weight: 700;
  fill: var(--muted);
}

.table-divider {
  stroke: rgba(0, 0, 0, 0.22);
  stroke-width: 1.6;
}

.table-highlight {
  fill: rgba(0, 0, 0, 0.04);
}

.scatter-point {
  fill: rgba(0, 0, 0, 0.08);
}

.scatter-highlight {
  stroke: #ffffff;
  stroke-width: 1.2;
}

.scatter-label {
  font-size: calc(13px * var(--text-scale));
  font-weight: 600;
  fill: currentColor;
  color: var(--ink);
}

.scatter-label-main,
.scatter-label-main .scatter-label {
  font-size: calc(18px * var(--text-scale));
  font-weight: 700;
}

.scatter-label-main + rect,
.scatter-label-main rect,
.scatter-label-main .scatter-label {
  stroke-width: 1.2;
}

.hist-bar-loss {
  fill: #707070;
}

.hist-bar-win {
  fill: #00788b;
}

.hist-label {
  font-size: calc(12px * var(--text-scale));
  fill: var(--muted);
}

.hist-avg-value {
  font-size: calc(clamp(20px, 2.6vw, 30px) * var(--text-scale));
  font-weight: 700;
}

.hist-avg-label {
  font-size: calc(clamp(12px, 1.4vw, 16px) * var(--text-scale));
  font-weight: 600;
}

.hist-avg-rank {
  font-size: calc(clamp(12px, 1.6vw, 17px) * var(--text-scale));
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hist-mini-avg {
  font-size: calc(11px * var(--text-scale));
  font-weight: 600;
}

.hist-mini-avg-sub {
  font-size: calc(9px * var(--text-scale));
  font-weight: 600;
}

.video-frame {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding-bottom: 16px;
}

.video-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-frame.active {
  display: block;
}

.back-to-top {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.back-to-top:hover {
  opacity: 0.9;
}

.final-frame .scrolly {
  grid-template-columns: 1fr;
}

.final-frame .graphic {
  position: relative;
  height: auto;
  order: 1;
}

.final-frame .text {
  order: 0;
  padding-bottom: 40px;
}

.final-frame .graphic {
  display: none;
}

.final-frame .video-frame {
  display: block;
}

.video-frame .back-to-top {
  margin-top: 18px;
}

.final-frame .step[data-step="8"] {
  min-height: auto;
}

@media (max-width: 700px) {
  .table-header {
    font-size: 10px;
  }

  .table-row-text {
    font-size: 12px;
  }

  .table-logo {
    width: 16px;
    height: 16px;
  }
}

.back-to-top {
  position: relative;
  z-index: 2;
}

.strike {
  text-decoration: line-through;
  color: var(--muted);
}

.good {
  color: var(--accent);
}

.tooltip-list {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}

.mobile-inline .graphic {
  display: none;
}

.mobile-inline .scrolly {
  display: block;
  padding: 0 5vw 80px;
}

.mobile-inline .text {
  width: 100%;
}

.mobile-inline .text {
  padding-top: 24px;
}

.mobile-inline .step {
  min-height: auto;
  padding: 18px 18px 22px;
  margin-bottom: 48px;
  border-left: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.mobile-inline .step h3 {
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
}

.mobile-inline .step p {
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
}

.mobile-inline .scatter-label-main,
.mobile-inline .scatter-label-main .scatter-label {
  font-size: 15px;
}

.mobile-inline .hist-label {
  font-size: 10px;
}

.mobile-inline .hist-avg-value {
  font-size: clamp(18px, 6vw, 24px);
}

.mobile-inline .hist-avg-label {
  font-size: clamp(11px, 3.6vw, 14px);
}

.step-chart {
  margin-top: 16px;
  margin-bottom: 12px;
  overflow: visible;
}

.step-chart svg {
  width: 100%;
  display: block;
}
