@font-face {
  font-family: "Acre";
  src: url("assets/fonts/acre-medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #050407;
  --panel: #0c0a10;
  --panel-raised: #15111d;
  --line: #342b45;
  --line-soft: #211a2d;
  --text: #f5f2ff;
  --muted: #938ca0;
  --muted-bright: #c8c1d4;
  --signal: #ab8eff;
  --signal-dark: #190d3a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--ink);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(171, 142, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 142, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 68% 0%, rgba(171, 142, 255, 0.11), transparent 30rem),
    var(--ink);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  width: min(100%, 1680px);
  min-height: 100vh;
  margin: 0 auto;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 4, 7, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  position: relative;
  width: 150px;
  height: 50px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img {
  position: absolute;
  width: 150px;
  height: auto;
  left: 0;
  top: -30px;
  display: block;
}

.brand-rule {
  width: 1px;
  height: 28px;
  margin: 0 18px;
  background: var(--line);
}

.brand-copy {
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.output-label i,
.output-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 16px rgba(171, 142, 255, 0.75);
}

.workspace {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
}

.model-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 18px 24px;
  border-right: 1px solid var(--line);
  background: rgba(8, 6, 12, 0.78);
}

.rail-heading {
  padding: 0 10px 23px;
}

.eyebrow {
  margin: 0;
  color: var(--signal);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.category-button {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.category-button::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--signal);
  transform: translateY(-50%);
  transition: height 180ms ease;
}

.category-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.category-button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.category-button.active {
  color: var(--text);
  border-color: var(--line);
  background: linear-gradient(90deg, rgba(171, 142, 255, 0.14), rgba(171, 142, 255, 0.02));
}

.category-button.active::before {
  height: 28px;
}

.category-number {
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
}

.category-number {
  color: #6f687b;
}

.category-button.active .category-number {
  color: var(--signal);
}

.category-name {
  overflow: hidden;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-note {
  margin-top: auto;
  padding: 26px 10px 0;
  border-top: 1px solid var(--line-soft);
}

.rail-note span {
  color: var(--muted);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail-note p {
  max-width: 190px;
  margin: 10px 0 0;
  color: #81798e;
  font-size: 0.78rem;
  line-height: 1.55;
}

.viewer {
  min-width: 0;
  padding: clamp(24px, 3.3vw, 52px);
}

.viewer-heading {
  min-height: 82px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.viewer-heading h1 {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.model-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.scene-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding-bottom: 4px;
}

.scene-tab {
  min-width: 48px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transition: 160ms ease;
}

.scene-tab:hover,
.scene-tab:focus-visible {
  border-color: #665b7a;
  color: var(--text);
  outline: none;
}

.scene-tab.active {
  border-color: var(--signal);
  background: var(--signal);
  color: #161a21;
  font-weight: 800;
}

.comparison-panel,
.output-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.analysis-layout,
.output-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(224px, 1fr);
  align-items: stretch;
}

.comparator {
  --reveal: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: #121017;
  user-select: none;
  touch-action: pan-y;
}

.model-metrics {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 30px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(171, 142, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 142, 255, 0.035) 1px, transparent 1px),
    #09070e;
  background-size: 22px 22px;
}

.metrics-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.metrics-heading > span {
  padding: 5px 7px;
  border: 1px solid rgba(171, 142, 255, 0.38);
  color: var(--signal);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 11px;
}

.metrics-table thead th {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: #746c80;
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.metrics-table thead th:last-child {
  text-align: right;
}

.metrics-table tbody th,
.metrics-table tbody td {
  padding: clamp(17px, 2.3vh, 28px) 0;
  border-bottom: 1px solid var(--line);
}

.metrics-table tbody th {
  color: var(--muted-bright);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  text-align: left;
}

.metrics-table tbody td {
  color: var(--signal);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-align: right;
}

.metric-track {
  width: 100%;
  height: 2px;
  display: block;
  margin-top: 9px;
  overflow: hidden;
  background: #2a2335;
}

.metric-track i {
  width: var(--score);
  height: 100%;
  display: block;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(171, 142, 255, 0.72);
}

.metrics-source {
  margin: auto 0 0;
  padding-top: 22px;
  color: #716a7b;
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.comparator > img,
.result-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  transform: scale(var(--scene-scale, 1));
  transform-origin: left center;
}

.result-layer {
  position: absolute;
  inset: 0;
  width: var(--reveal);
  overflow: hidden;
}

.result-layer img {
  width: calc(100% * 100 / max(1, var(--reveal-number, 50)));
  max-width: none;
}

/* A fixed canvas width keeps source and result pixels registered while the reveal layer clips. */
.result-layer img {
  width: var(--comparison-width, 100vw);
}

.image-label {
  position: absolute;
  top: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(8, 6, 12, 0.82);
  color: #f7f4ff;
  backdrop-filter: blur(8px);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.output-label {
  left: 18px;
}

.source-label {
  right: 18px;
}

.reveal-line {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 2px;
  background: var(--signal);
  box-shadow: 0 0 24px rgba(171, 142, 255, 0.5);
  transform: translateX(-1px);
  pointer-events: none;
}

.reveal-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid #161a21;
  border-radius: 50%;
  background: var(--signal);
  color: #161a21;
  box-shadow: 0 0 0 1px var(--signal), 0 8px 30px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

.reveal-handle svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.reveal-range {
  position: absolute;
  z-index: 7;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.reveal-range:focus-visible + .corner-br {
  outline: none;
}

.comparator:has(.reveal-range:focus-visible) .reveal-handle {
  box-shadow: 0 0 0 3px #08060c, 0 0 0 5px #ffffff, 0 8px 30px rgba(0, 0, 0, 0.5);
}

.corner {
  position: absolute;
  z-index: 4;
  width: 23px;
  height: 23px;
  opacity: 0.55;
  pointer-events: none;
}

.corner-tl { top: 8px; left: 8px; border-top: 1px solid var(--signal); border-left: 1px solid var(--signal); }
.corner-tr { top: 8px; right: 8px; border-top: 1px solid var(--signal); border-right: 1px solid var(--signal); }
.corner-bl { bottom: 8px; left: 8px; border-bottom: 1px solid var(--signal); border-left: 1px solid var(--signal); }
.corner-br { right: 8px; bottom: 8px; border-right: 1px solid var(--signal); border-bottom: 1px solid var(--signal); }

.viewer-controls {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 20px;
  border-top: 1px solid var(--line);
}

.gesture-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gesture-line {
  width: 28px;
  height: 1px;
  background: var(--signal);
}

.control-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.control-button,
.icon-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #100d16;
  color: var(--muted-bright);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.control-button {
  gap: 7px;
  padding: 0 13px;
  font-size: 0.75rem;
}

.control-button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.control-button:hover,
.control-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--signal);
  background: var(--signal-dark);
  color: var(--signal);
  outline: none;
}

.icon-button {
  width: 40px;
  margin-left: 4px;
}

.scene-counter {
  min-width: 66px;
  color: var(--text);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.output-content {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 30px);
}

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

.output-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #08060d;
}

.output-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 23 / 24;
  object-fit: cover;
}

.output-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
}

.output-grid figcaption span {
  color: var(--signal);
  font-family: "Acre", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.output-grid figcaption strong {
  color: var(--muted-bright);
  font-size: 0.76rem;
  font-weight: 600;
}

.output-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.output-note i {
  flex: 0 0 auto;
}

.comparator:fullscreen {
  max-height: none;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
}

noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: 420px;
  padding: 14px 18px;
  border: 1px solid #b14135;
  background: #26110d;
  color: #f6d4ce;
  font-size: 0.9rem;
}

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .model-rail {
    padding-inline: 14px;
  }

  .analysis-layout,
  .output-layout {
    grid-template-columns: 1fr;
  }

  .model-metrics {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metrics-table tbody th,
  .metrics-table tbody td {
    padding-block: 15px;
  }

  .control-button span {
    display: none;
  }
}

@media (max-width: 780px) {
  .topbar {
    height: 68px;
    padding-inline: 18px;
  }

  .brand-rule {
    display: none;
  }

  .brand-copy {
    margin-left: 15px;
    font-size: 1.35rem;
    letter-spacing: 0.1em;
  }

  .workspace {
    min-height: calc(100vh - 68px);
    display: block;
  }

  .model-rail {
    display: block;
    padding: 15px 18px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-heading,
  .rail-note {
    display: none;
  }

  .category-nav {
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .category-button {
    min-width: max-content;
    min-height: 42px;
    grid-template-columns: auto auto;
    padding: 6px 11px;
    border-color: var(--line);
  }

  .category-button::before {
    display: none;
  }

  .category-button.active {
    border-color: var(--signal);
  }

  .category-name {
    overflow: visible;
  }

  .viewer {
    padding: 24px 18px 30px;
  }

  .viewer-heading {
    min-height: auto;
    align-items: flex-end;
    margin-bottom: 18px;
  }

  .model-description {
    display: none;
  }

  .viewer-heading h1 {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .comparator {
    min-height: 0;
  }

  .viewer-controls {
    padding-left: 14px;
  }

  .gesture-hint {
    font-size: 0;
    gap: 0;
  }

  .gesture-line {
    width: 18px;
  }

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

@media (max-width: 480px) {
  .brand-logo {
    width: 122px;
    height: 42px;
  }

  .brand-logo img {
    width: 128px;
    top: -26px;
  }

  .brand-copy {
    margin-left: 10px;
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .viewer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .scene-tabs {
    width: 100%;
  }

  .scene-tab {
    flex: 1;
  }

  .image-label {
    top: 12px;
    padding: 6px 8px;
    font-size: 0.58rem;
  }

  .output-label { left: 12px; }
  .source-label { right: 12px; }

  .reveal-handle {
    width: 44px;
    height: 44px;
  }

  .viewer-controls {
    min-height: 62px;
  }

  .scene-counter {
    min-width: 55px;
  }

  .icon-button {
    display: none;
  }
}

/* Living-room display layouts: tuned for common 55-inch 1080p and 4K TVs. */
@media (min-width: 1700px) and (min-height: 850px) {
  .shell {
    width: 100%;
    max-width: none;
  }

  .topbar {
    height: 96px;
    padding-inline: 48px;
  }

  .brand-logo {
    width: 180px;
    height: 60px;
  }

  .brand-logo img {
    width: 180px;
    top: -36px;
  }

  .brand-copy {
    margin-left: 28px;
    font-size: 2rem;
    letter-spacing: 0.13em;
  }

  .workspace {
    min-height: calc(100vh - 96px);
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .model-rail {
    padding: 34px 22px 28px;
  }

  .rail-heading {
    margin-bottom: 24px;
    font-size: 0.8rem;
  }

  .category-nav {
    gap: 9px;
  }

  .category-button {
    min-height: 64px;
    padding-inline: 18px;
  }

  .category-index {
    font-size: 0.8rem;
  }

  .category-name {
    font-size: 0.98rem;
  }

  .rail-note {
    font-size: 0.75rem;
  }

  .viewer {
    padding: 26px 44px 0;
  }

  .viewer-heading {
    min-height: 88px;
    margin-bottom: 18px;
  }

  .viewer-heading h1 {
    font-size: clamp(2.6rem, 2.7vw, 3.25rem);
  }

  .eyebrow,
  .model-description {
    font-size: 0.88rem;
  }

  .analysis-layout,
  .output-layout {
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
  }

  .scene-tabs {
    gap: 9px;
  }

  .scene-tab {
    min-width: 58px;
    min-height: 46px;
    font-size: 0.82rem;
  }

  .image-label {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .reveal-handle {
    width: 62px;
    height: 62px;
  }

  .model-metrics {
    padding: 30px 28px;
  }

  .metric-kicker,
  .metrics-table thead th,
  .metrics-table tbody th,
  .metric-badge {
    font-size: 0.76rem;
  }

  .metric-score {
    font-size: 2.45rem;
  }

  .metric-note,
  .viewer-controls,
  .control-button {
    font-size: 0.8rem;
  }

  .viewer-controls {
    min-height: 70px;
    padding-inline: 20px;
  }

  .control-button {
    min-height: 42px;
    padding-inline: 14px;
  }
}

@media (min-width: 3000px) and (min-height: 1600px) {
  .topbar {
    height: 144px;
    padding-inline: 72px;
  }

  .brand-logo {
    width: 260px;
    height: 86px;
  }

  .brand-logo img {
    width: 260px;
    top: -52px;
  }

  .brand-copy {
    margin-left: 42px;
    font-size: 3rem;
    letter-spacing: 0.14em;
  }

  .workspace {
    min-height: calc(100vh - 144px);
    grid-template-columns: 430px minmax(0, 1fr);
  }

  .model-rail {
    padding: 48px 30px 38px;
  }

  .rail-heading {
    margin-bottom: 34px;
    font-size: 1.08rem;
  }

  .category-nav {
    gap: 13px;
  }

  .category-button {
    min-height: 88px;
    padding-inline: 26px;
  }

  .category-index {
    font-size: 1.05rem;
  }

  .category-name {
    font-size: 1.32rem;
  }

  .rail-note {
    font-size: 1rem;
  }

  .viewer {
    padding: 36px 72px 40px;
  }

  .viewer-heading {
    min-height: 120px;
    margin-bottom: 24px;
  }

  .viewer-heading h1 {
    font-size: clamp(4rem, 2.6vw, 5rem);
  }

  .eyebrow,
  .model-description {
    font-size: 1.28rem;
  }

  .analysis-layout,
  .output-layout {
    grid-template-columns: minmax(0, 2fr) minmax(620px, 1fr);
  }

  .scene-tabs {
    gap: 14px;
  }

  .scene-tab {
    min-width: 86px;
    min-height: 64px;
    border-width: 2px;
    font-size: 1.1rem;
  }

  .image-label {
    top: 28px;
    padding: 12px 18px;
    font-size: 0.98rem;
  }

  .output-label {
    left: 28px;
  }

  .source-label {
    right: 28px;
  }

  .reveal-line {
    width: 3px;
  }

  .reveal-handle {
    width: 88px;
    height: 88px;
    border-width: 3px;
  }

  .model-metrics {
    padding: 44px 40px;
  }

  .metric-kicker,
  .metrics-table thead th,
  .metrics-table tbody th,
  .metric-badge {
    font-size: 1.04rem;
  }

  .metric-score {
    font-size: 3.45rem;
  }

  .metric-note,
  .viewer-controls,
  .control-button {
    font-size: 1.08rem;
  }

  .metrics-table tbody th,
  .metrics-table tbody td {
    padding-block: 24px;
  }

  .viewer-controls {
    min-height: 94px;
    padding-inline: 28px;
  }

  .control-button {
    min-height: 58px;
    padding-inline: 20px;
  }

  .gesture-line {
    width: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
