:root {
  color-scheme: light;
  --bg: #f2f1ec;
  --surface: #faf9f5;
  --surface-strong: #ebe9e2;
  --ink: #171816;
  --muted: #64655f;
  --faint: #6d6e67;
  --line: #cfcec6;
  --line-strong: #9d9d96;
  --accent: #bd3e25;
  --accent-ink: #fdfbf6;
  --shadow: 0 24px 70px rgba(47, 44, 35, 0.13);
  --radius-surface: 14px;
  --radius-control: 9px;
  --font-sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.completion-page {
  width: min(1520px, 100%);
}

.completion-hero {
  padding: clamp(64px, 10vh, 110px) 0 44px;
}

.completion-hero h1 {
  max-width: 980px;
}

.completion-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 52px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.completion-facts div {
  background: var(--surface);
  padding: 20px;
}

.completion-facts dt {
  color: var(--muted);
  font-size: .76rem;
}

.completion-facts dd {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.completion-disclosure {
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  padding: 18px 20px;
  font-size: .92rem;
}

.completion-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(160px, .7fr) minmax(210px, 1fr) minmax(240px, 1.2fr) auto;
  align-items: end;
  gap: 20px;
  padding: 44px 0 22px;
}

.completion-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.completion-controls select,
.completion-controls input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.completion-controls p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: .82rem;
}

.completed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.completed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
}

.completed-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.completed-card-body {
  padding: 20px;
}

.completed-card-meta,
.completed-card-category {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.completed-card h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
  line-height: 1.05;
}

.completed-card-category {
  color: var(--muted);
}

.completed-card-provenance {
  min-height: 3em;
  margin: 20px 0;
  color: var(--muted);
  font-size: .86rem;
}

.completed-card-browser {
  margin: -10px 0 20px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.completed-card-browser.passed {
  color: var(--muted);
}

.completed-card-browser.has-issues {
  color: var(--accent);
}

@media (max-width: 980px) {
  .completed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .completion-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .completion-controls p { grid-column: 1 / -1; margin: 0; }
}

@media (max-width: 680px) {
  .masthead { align-items: flex-start; }
  .masthead-actions { flex-wrap: wrap; justify-content: flex-end; }
  .completion-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .completion-controls { grid-template-columns: 1fr; align-items: stretch; }
  .completion-controls p { margin: 0; }
  .completed-grid { grid-template-columns: 1fr; }
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  padding: 10px clamp(18px, 4vw, 64px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: -0.03em;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.text-button,
.expand-button,
.method-close {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.text-button:hover,
.expand-button:hover,
.method-close:hover {
  text-decoration-color: var(--accent);
}

main {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 64px) 80px;
}

.intro {
  display: grid;
  min-height: min(620px, calc(100dvh - 68px));
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: clamp(40px, 8vw, 140px);
  padding: clamp(64px, 10vh, 110px) 0 clamp(56px, 8vh, 96px);
}

.intro-copy {
  max-width: 910px;
}

.kicker,
.state-label,
.judge-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 870px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.intro-summary {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.3rem);
}

.experiment-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.experiment-facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

.experiment-facts dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.experiment-facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  letter-spacing: -0.06em;
}

.state-panel {
  display: grid;
  min-height: 360px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
  padding: 56px 24px;
  text-align: center;
}

.state-panel h2 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.state-panel p:not(.state-label) {
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.loading-state {
  justify-items: center;
}

.loading-line {
  height: 13px;
  border-radius: var(--radius-control);
  background: var(--surface-strong);
}

.loading-line-long {
  width: min(460px, 76vw);
  margin-bottom: 12px;
}

.loading-line-short {
  width: min(280px, 52vw);
  margin-bottom: 26px;
}

@media (prefers-reduced-motion: no-preference) {
  .loading-line {
    animation: loading-pulse 1.4s ease-in-out infinite alternate;
  }

  .reveal-panel:not([hidden]) {
    animation: reveal-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes loading-pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.primary-button,
.secondary-button,
.vote-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 22px;
}

.secondary-button {
  justify-self: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 11px 22px;
}

.primary-button:active,
.secondary-button:active,
.vote-button:active {
  transform: translateY(1px);
}

.workbench {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-surface);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workbench-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px 14px 24px;
}

.progress-copy {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.save-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.view-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  overflow: hidden;
}

.view-switcher button {
  min-height: 39px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
}

.view-switcher button:last-child {
  border-right: 0;
}

.view-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.view-switcher button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.benchmark-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1.62fr);
}

.brief-panel {
  border-right: 1px solid var(--line);
  padding: clamp(24px, 3vw, 42px);
}

.brief-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 44px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.brief-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.brief-panel > p {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 0.9rem;
}

.brief-panel h3 {
  margin-bottom: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.brief-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.78rem;
}

.battle-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
}

.battle-heading {
  max-width: 640px;
  margin-bottom: 30px;
}

.battle-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.battle-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.candidate {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  overflow: hidden;
}

.candidate.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.candidate-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 8px 13px;
}

.candidate-letter {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-shell {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  place-items: center;
  background: var(--surface-strong);
  overflow: hidden;
}

.preview-shell[data-mode="mobile"] {
  background-image: linear-gradient(90deg, transparent 0 31%, color-mix(in srgb, var(--line) 70%, transparent) 31% 31.3%, transparent 31.3% 68.7%, color-mix(in srgb, var(--line) 70%, transparent) 68.7% 69%, transparent 69%);
}

.preview-shell img,
.preview-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f7f4;
}

.preview-shell img {
  display: block;
  object-fit: cover;
  object-position: top center;
}

.preview-shell[data-mode="mobile"] img,
.preview-shell[data-mode="mobile"] iframe {
  width: 38%;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  object-fit: cover;
  object-position: top center;
}

.preview-missing {
  max-width: 210px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.candidate-reveal {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.reveal-model {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.metric-list div {
  min-width: 0;
}

.metric-list dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.metric-list dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.failure-details {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.7rem;
}

.failure-details summary {
  cursor: pointer;
  font-weight: 700;
}

.failure-details ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.vote-panel {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr);
  align-items: center;
  gap: 14px 28px;
  margin-top: 18px;
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.vote-panel > p:first-child {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.vote-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 9px;
}

.vote-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
}

.vote-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.tie-button {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.keyboard-note {
  grid-column: 2;
  margin: 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: center;
}

.reveal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr) auto;
  align-items: end;
  gap: 30px;
  margin-top: 18px;
  border-top: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  padding: 24px;
}

.reveal-panel h3 {
  margin-bottom: 7px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.reveal-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.reveal-panel .state-label,
.reveal-panel .judge-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.62rem;
}

.results-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(40px, 8vw, 120px);
  border-top: 1px solid var(--line-strong);
  margin-top: clamp(80px, 12vw, 150px);
  padding-top: clamp(42px, 7vw, 84px);
}

.results-heading {
  align-self: start;
}

.results-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.results-heading > p:last-child {
  max-width: 420px;
  color: var(--muted);
}

.results-lock {
  display: grid;
  min-height: 330px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
  padding: 40px;
  text-align: center;
}

.results-lock p {
  max-width: 410px;
  margin-bottom: 14px;
  font-size: 1.2rem;
  font-weight: 650;
}

.results-lock span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.leaderboard-grid {
  display: grid;
  gap: 14px;
}

.leaderboard-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
  padding: 22px;
}

.leaderboard-card h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.leaderboard-card .board-basis {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

#evaluator-receipt p {
  overflow-wrap: anywhere;
}

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

.board-entry {
  border-left: 1px solid var(--line-strong);
  padding-left: 16px;
}

.board-entry.is-leader {
  border-left-color: var(--accent);
}

.board-entry p {
  margin-bottom: 3px;
  font-size: 0.75rem;
  font-weight: 700;
}

.board-entry strong {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  letter-spacing: -0.07em;
}

.board-entry span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.65rem;
}

.board-meta {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.method-section {
  position: relative;
  margin-top: 72px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-surface);
  background: var(--surface);
  padding: clamp(28px, 6vw, 72px);
}

.method-section h2 {
  max-width: 720px;
  margin-bottom: 34px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.method-copy {
  display: grid;
  max-width: 980px;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.method-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.method-close {
  position: absolute;
  top: 24px;
  right: 24px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 24px clamp(18px, 4vw, 64px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

footer p {
  margin: 0;
}

dialog {
  width: min(1440px, calc(100vw - 36px));
  height: min(900px, calc(100dvh - 36px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-surface);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(15, 16, 13, 0.74);
  backdrop-filter: blur(8px);
}

.dialog-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1rem;
}

#dialog-content {
  display: grid;
  height: calc(100% - 64px);
  place-items: center;
  background: var(--surface-strong);
  overflow: auto;
}

#dialog-content img,
#dialog-content iframe {
  width: 100%;
  min-height: 100%;
  border: 0;
  object-fit: contain;
  object-position: top center;
}

#dialog-content iframe.mobile-dialog {
  width: min(430px, 100%);
  background: #f7f7f4;
}

@media (max-width: 1050px) {
  .benchmark-layout {
    grid-template-columns: 1fr;
  }

  .brief-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brief-topline {
    margin-bottom: 20px;
  }

  .brief-panel > p {
    max-width: 650px;
    margin-bottom: 22px;
  }

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

  .reveal-panel {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  }

  .reveal-panel .primary-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .masthead {
    min-height: 62px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .wordmark > span:last-child {
    display: none;
  }

  main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .intro {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 62px 0 56px;
  }

  h1 {
    font-size: clamp(2.85rem, 12vw, 3.2rem);
    line-height: 0.95;
  }

  .intro-summary {
    max-width: 350px;
  }

  .workbench-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 17px;
  }

  .view-switcher {
    width: 100%;
  }

  .view-switcher button {
    min-width: 0;
  }

  .brief-panel,
  .battle-panel {
    padding: 22px 16px;
  }

  .brief-panel ol {
    grid-template-columns: 1fr;
  }

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

  .preview-shell {
    min-height: 240px;
  }

  .vote-panel {
    grid-template-columns: 1fr;
  }

  .vote-actions {
    grid-template-columns: 1fr 1fr;
  }

  .tie-button {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .keyboard-note {
    display: none;
  }

  .reveal-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .reveal-panel .primary-button {
    grid-column: auto;
    width: 100%;
  }

  .results-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .leaderboard-card,
  .board-entries,
  .method-copy {
    grid-template-columns: 1fr;
  }

  .leaderboard-card {
    gap: 18px;
  }

  .method-section {
    padding-top: 64px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@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;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .masthead {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
