/* ─── Variables ─── */
:root {
  --bg: #0a0a0c;
  --surface: #111115;
  --surface-hover: #1a1a20;
  --border: #222228;
  --text: #e8e8ed;
  --text-dim: #8a8a96;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --accent-dim: #16a34a;
  --blue: #3b82f6;
  --orange: #f97316;
  --purple: #a855f7;
  --pink: #ec4899;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sans: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* ─── Skip link (accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ─── Light mode ─── */
[data-theme="light"] {
  --bg: #f5f5f0;
  --surface: #ffffff;
  --surface-hover: #eeeee8;
  --border: #d4d4cc;
  --text: #1a1a1a;
  --text-dim: #5c5c5c;
  --accent: #137a38;
  --accent-glow: rgba(22, 163, 74, 0.12);
  --accent-dim: #15803d;
  --blue: #2563eb;
  --orange: #ea580c;
  --purple: #9333ea;
  --pink: #db2777;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}

/* ─── Grain overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ─── Layout ─── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Ambient glow ─── */
.glow-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.glow-orb.green { background: var(--accent); top: -200px; right: -200px; }
.glow-orb.blue { background: var(--blue); bottom: -200px; left: -200px; }

/* ─── Header / Hero ─── */
header {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

/* ─── Terminal ─── */
.terminal {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  cursor: text;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.terminal-history {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.terminal-history-line {
  line-height: 1.8;
  white-space: pre-wrap;
}

.terminal-history-line .terminal-prompt {
  color: var(--accent);
}

.terminal-history-line .terminal-cmd {
  color: var(--text);
}

.terminal-history-line .terminal-output {
  color: var(--text-dim);
}

.terminal-history-line .terminal-error {
  color: #f87171;
}

.terminal-input-line {
  position: relative;
  display: flex;
  align-items: center;
  line-height: 1.8;
}

.terminal-prompt {
  color: var(--accent);
  white-space: pre;
}

.terminal-typed {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  background: none;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

h1 {
  font-family: var(--sans);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}

h1 .wave {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.tagline {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.tagline strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── Nav pills ─── */
.nav-pills {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.45s forwards;
}

.nav-pills a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s ease;
}

.nav-pills a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ─── Sections ─── */
section {
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Project cards ─── */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateX(4px);
}

.project-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--mono);
}

.project-icon.gx { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.project-icon.officecat { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.project-icon.portctl { background: rgba(249, 115, 22, 0.15); color: var(--orange); }
.project-icon.chaos { background: rgba(236, 72, 153, 0.15); color: var(--pink); }
.project-icon.lena { background: rgba(34, 197, 94, 0.15); color: var(--accent); }
.project-icon.wc { background: rgba(168, 85, 247, 0.15); color: var(--purple); }


.project-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.project-info p {
  font-size: 13px;
  color: var(--text-dim);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.project-lang {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-hover);
  font-size: 11px;
}

.project-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--accent);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Section "more" link ─── */
.section-more {
  margin-top: 16px;
  text-align: center;
}

.section-more a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s ease;
}

.section-more a:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ─── Writing section ─── */
.writing-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.writing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.writing-item:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateX(4px);
}

.writing-item h3 {
  font-size: 14px;
  font-weight: 500;
}

.writing-item .arrow {
  color: var(--text-dim);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.writing-item:hover .arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* ─── Currently section ─── */
.currently-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.currently-item {
  display: grid;
  grid-template-columns: 28px 72px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

a.currently-item:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateX(4px);
}

.currently-icon { font-size: 16px; }

.currently-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.currently-value {
  font-size: 14px;
  font-weight: 500;
}

.currently-item .arrow {
  color: var(--text-dim);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

a.currently-item:hover .arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* ─── Bucket list section ─── */
.bucket-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bucket-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

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

.bucket-status {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}

.bucket-text {
  font-size: 14px;
  font-weight: 500;
}

.bucket-note {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-hover);
  color: var(--text-dim);
}

.bucket-item.done {
  opacity: 0.5;
}

.bucket-item.done .bucket-status {
  color: var(--accent);
}

.bucket-item.done .bucket-text {
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

.bucket-item.done .bucket-note {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.bucket-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.bucket-stats-divider {
  opacity: 0.4;
}

/* ─── 404 page ─── */
.four-oh-four {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-family: var(--mono);
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 700;
  color: #f87171;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.8;
}

.terminal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: left;
  display: inline-block;
  margin-bottom: 32px;
  max-width: calc(100vw - 48px);
}

.terminal-line {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 2;
}

.terminal-line .prompt { color: var(--text-dim); }
.terminal-line .cmd { color: var(--text); }
.terminal-line .err { color: #f87171; }
.terminal-line .comment { color: var(--text-dim); font-style: italic; }

.home-link {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s ease;
}

.home-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ─── Races section ─── */
.races-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.race-item {
  display: grid;
  grid-template-columns: 24px 60px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

a.race-item:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateX(4px);
}

.race-status {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}

.race-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.race-name {
  font-size: 14px;
  font-weight: 500;
}

.race-location {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.race-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.race-badge.goal {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border-color: rgba(249, 115, 22, 0.3);
}

/* Completed races */
.race-item.completed {
  opacity: 0.5;
}

.race-item.completed .race-status {
  color: var(--accent);
}

.race-item.completed .race-name {
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

/* Skipped / DNS races */
.race-item.skipped {
  opacity: 0.5;
}

.race-item.skipped .race-status {
  color: #ef4444;
}

.race-item.skipped .race-name {
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

/* Next race */
.race-item.next {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.04);
}

.race-item.next .race-status {
  color: var(--accent);
}

.race-item.next .race-name {
  color: var(--accent);
  font-weight: 600;
}

/* Highlighted race (marathon goal) */
.race-item.highlight .race-name {
  font-weight: 600;
}

/* Stats bar */
.race-stats {
  margin-top: 16px;
}

.race-stats-divider {
  opacity: 0.4;
}

/* ─── Connect section ─── */
.connect-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.connect-link:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.connect-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── Footer ─── */
footer {
  padding: 48px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

footer p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(14deg); }
  50% { transform: rotate(-4deg); }
  60% { transform: rotate(10deg); }
  70%, 100% { transform: rotate(0deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  header { padding: 60px 0 40px; }
  section { padding: 36px 0; }

  .project-card {
    grid-template-columns: 32px 1fr;
    gap: 12px;
  }

  .project-meta { display: none; }

  .connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }

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

  .nav-pills { gap: 6px; }
  .nav-pills a { font-size: 12px; padding: 6px 12px; }

  .race-item {
    grid-template-columns: 20px 50px 1fr;
    gap: 8px;
    padding: 10px 16px;
  }

  .race-location { display: none; }

  .race-badge {
    grid-column: 3;
    justify-self: start;
  }

  .currently-item {
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    padding: 10px 16px;
  }

  .currently-label { display: none; }

  .bucket-item {
    padding: 10px 16px;
  }

  .terminal-history {
    max-height: 300px;
  }

  .terminal-help-cmd {
    min-width: 14ch;
  }

  .four-oh-four {
    padding: 0 24px;
  }

  .error-code {
    font-size: clamp(60px, 18vw, 120px);
  }

  .terminal-block {
    padding: 18px 20px;
  }

  .terminal-line {
    font-size: 14px;
  }

  .connect-grid .connect-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 4px);
    justify-self: center;
  }
}

/* ─── Light mode overrides ─── */
[data-theme="light"] body::after {
  opacity: 0.015;
}

[data-theme="light"] .glow-orb {
  opacity: 0.04;
}

[data-theme="light"] .terminal-history-line .terminal-error {
  color: #dc2626;
}

[data-theme="light"] .error-code {
  color: #dc2626;
}

[data-theme="light"] .terminal-line .err {
  color: #dc2626;
}

/* ─── Matrix canvas ─── */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

#matrix-canvas.on {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

#matrix-exit-hint {
  display: none;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  font-family: var(--mono);
  font-size: 13px;
  color: #22c55e;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  pointer-events: none;
  white-space: nowrap;
}

#matrix-exit-hint.on {
  display: block;
  animation: hintFadeIn 0.6s ease forwards;
}

@keyframes hintFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Terminal help table ─── */
.terminal-help-table {
  margin: 4px 0;
}

.terminal-help-row {
  display: flex;
  line-height: 1.8;
}

.terminal-help-cmd {
  color: var(--accent);
  font-size: 13px;
  min-width: 20ch;
  flex-shrink: 0;
}

.terminal-help-desc {
  color: var(--text-dim);
  font-size: 13px;
}

.terminal-help-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.7;
}

.terminal-help-hint kbd {
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  font-family: var(--mono);
}

/* ─── Terminal ok line ─── */
.terminal-ok {
  color: var(--accent);
}

/* ─── Back to top button ─── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, color 0.2s, border-color 0.2s;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── Keyboard shortcut hint ─── */
.shortcut-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.4s;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 6px;
  line-height: 1.8;
}

.shortcut-hint.visible {
  opacity: 0.6;
}

.shortcut-hint kbd {
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  font-family: var(--mono);
  margin: 0 2px;
}

/* ─── Race progress blocks ─── */
.race-blocks {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
}

.race-block {
  height: 14px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease;
  flex: 1;
  cursor: pointer;
}

.race-block.filled {
  background: var(--accent);
  border-color: var(--accent-dim);
}

.race-block.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.race-item.highlight-row {
  border-color: var(--accent) !important;
  background: var(--accent-glow) !important;
}

.race-summary {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: center;
}


/* ─── Wave bounce ─── */
.wave {
  cursor: pointer;
}

.wave.bounce {
  animation: bounce 0.4s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
}

/* ─── Programmatic focus (no visible outline for scroll targets) ─── */
[tabindex="-1"]:focus {
  outline: none;
}

/* ─── Section fallback ─── */
.section-fallback {
  color: var(--text-dim);
  font-size: 13px;
  padding: 16px 0;
}

/* ─── Terminal rotating hint (placeholder on input line) ─── */
.terminal-hint {
  color: var(--text-dim);
  font-size: inherit;
  opacity: 0.5;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

/* ─── Terminal image (xkcd) ─── */
.terminal-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 4px;
  margin: 0.5em 0;
  display: block;
}

/* ─── Race countdown badge ─── */
.race-badge.countdown {
  background: var(--accent);
  color: var(--bg);
}

/* ─── Writing "new" badge ─── */
.writing-badge {
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  margin-left: auto;
  margin-right: 0.5em;
  flex-shrink: 0;
}

/* ─── Writing reading time ─── */
.writing-time {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-left: auto;
  margin-right: 0.5em;
  flex-shrink: 0;
}

/* If both badge and time exist, time goes after badge */
.writing-badge + .writing-time {
  margin-left: 0.5em;
}

/* ─── Popcorn explosion ─── */
.popcorn-kernel {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 10000;
  animation: popcorn-pop 1.2s ease-out forwards;
}

.wc-confetti {
  position: fixed;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 10000;
  animation: popcorn-pop 1.4s ease-out forwards;
}

@keyframes popcorn-pop {
  0% {
    transform: translate(0, 0) scale(0.3) rotate(0deg);
    opacity: 1;
  }
  20% {
    transform: translate(calc(var(--dx) * 0.3), calc(var(--dy) * 0.3)) scale(1.2) rotate(90deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), calc(var(--dy) + 120px)) scale(0.6) rotate(360deg);
    opacity: 0;
  }
}

/* ─── WC 2026 page ─── */

.wc-page .container { max-width: 1100px; }

.wc-header {
  padding: 64px 0 8px;
}

.wc-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.wc-back:hover { color: var(--accent); }

.wc-back-inline {
  color: var(--text-dim);
  text-decoration: none;
}
.wc-back-inline:hover { color: var(--accent); }

.wc-header h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wc-emoji {
  display: inline-block;
  font-size: 0.9em;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  color: inherit;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wc-emoji:hover,
.wc-emoji:focus-visible { transform: rotate(15deg) scale(1.15); }

.wc-emoji:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.wc-champion-pick {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 6px;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.wc-champion-pick strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}

.wc-rojas {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 20px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.45s forwards;
}

.wc-rojas a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.wc-rojas a:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.wc-rojas-ball {
  display: inline-block;
  animation: rojas-bounce 1.6s ease-in-out infinite;
}

.wc-rojas-quote { font-style: italic; }
.wc-rojas-attr { color: var(--text-dim); font-size: 11px; }

@keyframes rojas-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-15deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(15deg); }
}

#wc-champion-line strong { color: var(--text); font-weight: 600; }

.wc-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ─── WC overview tiles ─── */
.wc-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.wc-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.wc-tile-icon { font-size: 20px; }

.wc-tile-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wc-tile-value {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

/* ─── WC group cards ─── */
.wc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.wc-group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.wc-group-header {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.wc-group-row {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 4px 0;
}

.wc-group-place {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.wc-group-team { color: var(--text); }
.wc-group-mark { text-align: right; font-weight: 700; }

.wc-group-row.correct .wc-group-mark { color: var(--accent); }
.wc-group-row.incorrect .wc-group-mark { color: var(--orange); }
.wc-group-row.incorrect .wc-group-team {
  color: var(--text-dim);
  text-decoration: line-through;
}

/* Two sections stacked inside each card: picks + actual */
.wc-group-section + .wc-group-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.wc-group-subheader {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.wc-group-row-actual .wc-group-team { color: var(--text); }
.wc-group-row-actual .wc-group-place { color: var(--text-dim); }

.wc-group-team-pending {
  color: var(--text-dim);
  font-style: italic;
}

.wc-group-pending {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  padding: 4px 0;
}

/* ─── WC stepper ─── */
.wc-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.wc-step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wc-step:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.wc-step:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wc-step.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* ─── WC match cards ─── */
.wc-matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.wc-match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease;
}

.wc-match.correct { border-color: var(--accent); }
.wc-match.incorrect { border-color: var(--orange); }

.wc-match-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wc-match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
}

.wc-match-team.pick { color: var(--text); font-weight: 600; }
.wc-match-team .wc-team { flex: 1; }

.wc-match-vs {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-left: 30px;
}

.wc-pick-badge {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid var(--accent);
  border-radius: 4px;
}

.wc-match-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.wc-match-result.pending { color: var(--text-dim); font-style: italic; }
.wc-match.correct .wc-match-mark { color: var(--accent); }
.wc-match.incorrect .wc-match-mark { color: var(--orange); }
.wc-match-mark { font-weight: 700; }

/* ─── WC bracket tree ─── */
.wc-tree-scroll {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 16px 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.wc-tree-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 4px;
}

.wc-tree {
  display: flex;
  min-width: 1080px;
  min-height: 880px;
  align-items: stretch;
}

.wc-tree-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 130px;
}

.wc-tree-col-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  height: 28px;
  line-height: 28px;
}

.wc-tree-slots {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wc-tree-slot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 14px;
}

.wc-tree-match {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.wc-tree-team {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}

.wc-tree-team.pick { color: var(--text); font-weight: 600; }
.wc-tree-team .wc-flag { flex-shrink: 0; }
.wc-tree-code { letter-spacing: 0.04em; }

.wc-tree-match.champion-path {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.wc-tree-match.correct { border-color: var(--accent); }
.wc-tree-match.incorrect { border-color: var(--orange); }

/* Connectors: L-shaped pseudo-elements forming the bracket spine.
   Odd-indexed slots draw the top half of the spine (going down from center),
   even-indexed slots draw the bottom half (going up to center).
   ::before draws the outgoing horizontal half from match to column edge.
   ::after draws the corner (horiz + vertical) joining to the paired slot. */
.wc-tree-col:not(:last-of-type) .wc-tree-slot::before {
  content: '';
  position: absolute;
  right: 0;
  width: 14px;
  top: 50%;
  border-top: 1px solid var(--border);
}

.wc-tree-col:not(:last-of-type):not(.wc-tree-final) .wc-tree-slot:nth-child(odd)::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 50%;
  border-right: 1px solid var(--border);
}

.wc-tree-col:not(:last-of-type):not(.wc-tree-final) .wc-tree-slot:nth-child(even)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 14px;
  height: 50%;
  border-right: 1px solid var(--border);
}

/* Incoming horizontal from the column gap to the match left edge */
.wc-tree-col:not(:first-of-type) .wc-tree-slot {
  /* the incoming line is implied by the previous column's ::before
     plus a left-side extension via the match's own left padding,
     but we also add a small line for clarity */
}
.wc-tree-col:not(:first-of-type):not(.wc-tree-trophy) .wc-tree-match::before,
.wc-tree-trophy .wc-tree-match::before {
  content: '';
  position: absolute;
  left: -14px;
  width: 14px;
  top: 50%;
  border-top: 1px solid var(--border);
}

/* Green champion-path connectors: follow France's route through the bracket.
   Use full shorthand to override default style/width/color cleanly. */
.wc-tree-col:not(:last-of-type) .wc-tree-slot.champion-path::before {
  border-top: 3px solid var(--accent);
  top: calc(50% - 1px);
}

.wc-tree-col:not(:last-of-type):not(.wc-tree-final) .wc-tree-slot.champion-path:nth-child(odd)::after,
.wc-tree-col:not(:last-of-type):not(.wc-tree-final) .wc-tree-slot.champion-path:nth-child(even)::after {
  border-right: 3px solid var(--accent);
}

.wc-tree-col:not(:first-of-type) .wc-tree-match.champion-path::before,
.wc-tree-trophy .wc-tree-match.champion-path::before {
  border-top: 3px solid var(--accent);
  top: calc(50% - 1px);
}

/* Final → trophy outgoing line */
.wc-tree-final .wc-tree-slot.champion-path::before {
  border-top: 3px solid var(--accent);
  top: calc(50% - 1px);
}

.wc-tree-champion::before {
  border-top: 3px solid var(--accent);
  top: calc(50% - 1px);
}

/* Dimmed path: France was eliminated upstream. Picks are still rendered
   (so you can see what was predicted) but the green energy stops here. */
.wc-tree-match.champion-path.path-dimmed {
  opacity: 0.4;
  background: var(--surface);
  border-color: var(--border);
}

.wc-tree-col:not(:last-of-type) .wc-tree-slot.champion-path.path-dimmed::before {
  border-top: 1px solid var(--border);
  top: 50%;
}

.wc-tree-col:not(:last-of-type):not(.wc-tree-final) .wc-tree-slot.champion-path.path-dimmed:nth-child(odd)::after,
.wc-tree-col:not(:last-of-type):not(.wc-tree-final) .wc-tree-slot.champion-path.path-dimmed:nth-child(even)::after {
  border-right: 1px solid var(--border);
}

.wc-tree-col:not(:first-of-type) .wc-tree-match.champion-path.path-dimmed::before,
.wc-tree-trophy .wc-tree-match.champion-path.path-dimmed::before {
  border-top: 1px solid var(--border);
  top: 50%;
}

.wc-tree-final .wc-tree-slot.champion-path.path-dimmed::before {
  border-top: 1px solid var(--border);
  top: 50%;
}

/* Trophy box when France is out — keep visible but de-energized */
.wc-tree-champion.wc-tree-champion-dead {
  opacity: 0.4;
  background: var(--surface);
  border-color: var(--border);
}

.wc-tree-champion.wc-tree-champion-dead::before {
  border-top: 1px solid var(--border);
  top: 50%;
}

.wc-tree-champion.wc-tree-champion-dead .wc-tree-champion-name {
  color: var(--text-dim);
}

/* Trophy column */
.wc-tree-trophy {
  flex: 0 0 130px;
}

.wc-tree-champion {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  border-radius: 12px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.wc-tree-champion::before {
  content: '';
  position: absolute;
  left: -14px;
  width: 14px;
  top: 50%;
  border-top: 1px solid var(--accent);
}

.wc-tree-champion-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Flag images */
.wc-flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  object-fit: cover;
}
.wc-flag-sm { height: 12px; width: auto; }
.wc-flag-md { height: 16px; width: auto; }
.wc-flag-lg { height: 36px; width: auto; border-radius: 3px; }

.wc-flag-placeholder {
  display: inline-block;
  padding: 1px 4px;
  font-size: 9px;
  background: var(--surface-hover);
  border-radius: 3px;
  color: var(--text-dim);
}

/* Results meta line: "live results · updated 2 min ago · [refresh]" */
.wc-results-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.wc-results-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wc-results-source::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.wc-results-refresh {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wc-results-refresh:hover,
.wc-results-refresh:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.wc-results-refresh:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Grading details panel */
.wc-grading {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.wc-grading summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-grading summary::-webkit-details-marker { display: none; }

.wc-grading summary::before {
  content: '+';
  font-weight: 700;
  width: 14px;
  text-align: center;
}

.wc-grading[open] summary::before { content: '−'; }

.wc-grading-lead {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text);
}

.wc-grading ul {
  margin: 12px 0 8px;
  padding-left: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 12px;
}

.wc-grading li { margin-bottom: 4px; }
.wc-grading li strong { color: var(--text); font-weight: 600; }

.wc-grading-source {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.wc-grading-source code {
  background: var(--surface-hover);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
}

@media (max-width: 720px) {
  .wc-overview { grid-template-columns: repeat(2, 1fr); }
  .wc-groups { grid-template-columns: repeat(2, 1fr); }
  .wc-matches { grid-template-columns: 1fr; }
}

/* ─── Keyboard-shortcuts toast ─── */
.wc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 9000;
  max-width: 360px;
}

.wc-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wc-toast strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.wc-toast div { line-height: 1.7; }

.wc-toast kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* ─── Screen-reader-only utility (used for non-color result cues) ─── */
.wc-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;
}

/* ─── Light mode tweaks for the WC bracket ─── */
[data-theme="light"] .wc-tree-match.champion-path.path-dimmed,
[data-theme="light"] .wc-tree-champion.wc-tree-champion-dead {
  /* 0.4 opacity on white looks washed-out. Lift it and let the gray border
     do the de-emphasis work instead. */
  opacity: 0.55;
}

[data-theme="light"] .wc-tree-match {
  /* Slightly stronger border so cards don't disappear into the surface. */
  border-color: var(--border);
}

[data-theme="light"] .wc-rojas a:hover {
  /* Bump background contrast slightly so the pill is visible against cream. */
  background: rgba(22, 163, 74, 0.16);
}

[data-theme="light"] .wc-toast {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ─── WC footer: stacked lines with breathing room ─── */
.wc-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  padding: 32px 0;
}

.wc-footer-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

/* ─── Shortcut hint in footer ─── */
.wc-footer-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}

.wc-footer-hint kbd {
  display: inline-block;
  padding: 0 5px;
  font-family: var(--mono);
  font-size: 10px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
}

/* ─── Reduced motion (accessibility) ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
