/* promo leaderboard: design language modelled on the Hermes Agent landing
   page (Nous Research): electric blue + paper surfaces, acid accent,
   uppercase light serif display, uppercase grotesk labels, hairline grids.
   Open-licence fonts stand in for Hermes' licensed Sigurd / Rules. */

@font-face {
  font-family: "Display";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 500;
  font-display: swap;
}
@font-face {
  font-family: "Grotesk";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* primitives: "Tomato & Ink". Pomodoro is Italian for tomato. */
  --tomato: #c4361c;      /* cream on tomato 4.97:1 */
  --tomato-deep: #8a2410;
  --ink: #141110;
  --ink-2: #221c19;
  --cream: #fff4e6;
  --cream-2: #f3e5d2;
  --leaf: #9be564;        /* passing-CI green, 12.3:1 on ink */

  /* semantic, tomato surface (default) */
  --bg: var(--tomato);
  --fg: var(--cream);
  --fg-2: var(--cream);   /* translucent cream fails AA on tomato */
  --line: var(--cream);
  --divider: color-mix(in srgb, var(--cream) 24%, transparent);
  --btn-bg: var(--cream);
  --btn-fg: var(--tomato);
  --inset: color-mix(in srgb, black 12%, transparent);
  --hl: var(--ink);       /* live dot, prompt, key numbers */
  --strong: var(--cream);
  --on-strong: var(--tomato);
  --frame: var(--tomato-deep);
  --sel-bg: var(--ink);
  --sel-fg: var(--cream);

  --font-display: "Display", "Times New Roman", serif;
  --font-ui: "Grotesk", system-ui, sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;

  /* type scale (mobile first) */
  --h1: 3.25rem;  --h1-lh: 3.25rem;
  --h2: 2.625rem; --h2-lh: 2.75rem;
  --h4: 1.25rem;  --h4-lh: 1.5rem;
  --body-xl: 1.25rem; --body-xl-lh: 1.6rem;
  --caption: 0.8125rem;

  --gutter: 1rem;
  --section-v: 3.5rem;
  --gap: 1rem;

  color-scheme: dark;
}
@media (min-width: 48rem) {
  :root {
    --h1: clamp(5rem, 8.2vw, 8.5rem); --h1-lh: 0.92em;
    --h2: clamp(3rem, 5vw, 5.5rem);  --h2-lh: 1em;
    --h4: 2rem; --h4-lh: 2.25rem;
    --body-xl: 1.5rem; --body-xl-lh: 2.25rem;
    --caption: 0.875rem;
    --gutter: clamp(2rem, 8.9vw, 13rem);
    --section-v: 6rem;
    --gap: 1.5rem;
  }
}

/* ink surface: the terminal */
[data-surface="ink"] {
  --bg: var(--ink);
  --fg: var(--cream);
  --fg-2: color-mix(in srgb, var(--cream) 70%, var(--ink));   /* 8.8:1 */
  --line: var(--cream);
  --divider: color-mix(in srgb, var(--cream) 16%, transparent);
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  --inset: var(--ink-2);
  --hl: var(--leaf);
  --strong: var(--tomato);
  --on-strong: var(--cream);
  --frame: #000;
  --sel-bg: var(--leaf);
  --sel-fg: var(--ink);
}

/* cream paper surface */
[data-surface="paper"] {
  --bg: var(--cream);
  --fg: var(--ink);
  --fg-2: color-mix(in srgb, var(--ink) 72%, var(--cream));   /* 7:1 */
  --line: var(--ink);
  --divider: color-mix(in srgb, var(--ink) 16%, transparent);
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --inset: var(--cream-2);
  --hl: var(--tomato);    /* 4.97:1 on cream */
  --strong: var(--tomato);
  --on-strong: var(--cream);
  --frame: var(--cream-2);
  --sel-bg: var(--tomato);
  --sel-fg: var(--cream);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--tomato); scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.75 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: clip;
}
::selection { background: var(--sel-bg); color: var(--sel-fg); }
a { color: inherit; }
code, pre, kbd { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--cream); color: var(--ink); padding: .5rem 1rem; }

/* ---------------------------------------------------------------- type */
.display, .h2, .h4, .brand, .wordmark, .stats dd, .timer, .rank, .step-n {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.display { font-size: var(--h1); line-height: var(--h1-lh); margin: 0; }
.h2 { font-size: var(--h2); line-height: var(--h2-lh); margin: 0; }
.h4 { font-size: var(--h4); line-height: var(--h4-lh); margin: 0; font-weight: 400; letter-spacing: 0.01em; }
.eyebrow, .caption, .nav a, .live, .btn, .tabs button, th, .keys, .feed time, dt {
  font-family: var(--font-ui);
  font-size: var(--caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.25rem;
}
.caption { color: var(--fg-2); margin: 0; }
.eyebrow { font-family: var(--font-mono); font-weight: 400; margin: 0 0 1.5rem; color: var(--fg-2); }
.eyebrow span { color: var(--fg); }
kbd {
  display: inline-block; min-width: 1.4em; padding: 0 .35em;
  font-size: .8em; line-height: 1.5; text-align: center; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px var(--divider); color: var(--fg);
}

/* ---------------------------------------------------------------- grain + vignette */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  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.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 12.8rem 12.8rem;
  mix-blend-mode: color-burn;
  opacity: .2;
}
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 50%, var(--frame) 100%);
  opacity: .5;
}

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--divider);
}
.brand { font-size: 1.75rem; line-height: 1; text-decoration: none; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--fg-2); transition: color .2s; }
.nav a:hover { color: var(--fg); }
.live { display: inline-flex; align-items: center; gap: .5rem; color: var(--fg-2); white-space: nowrap; }
.live::before { content: ""; width: .5rem; height: .5rem; background: var(--fg-2); }
.live.on { color: var(--hl); }
.live.on::before { background: var(--hl); animation: pulse 2s ease-in-out infinite; }

/* ---------------------------------------------------------------- hero */
.hero { padding: calc(var(--section-v) * 1.1) var(--gutter) var(--section-v); overflow: hidden; }
/* the hero art: a tomato drawn entirely in code characters */
.ascii {
  position: absolute; z-index: -1; right: calc(var(--gutter) * -0.6); top: 50%; margin: 0;
  transform: translateY(-46%);
  font: 400 clamp(6px, 0.92vw, 13.5px)/1.02 var(--font-mono); letter-spacing: 0;
  color: var(--ink); opacity: .24; white-space: pre;
  pointer-events: none; user-select: none;
}
/* Hermes scatters Greek letters; we scatter the glyphs devs type all day */
.glyphs { position: relative; isolation: isolate; }
.glyphs::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--fg);
  -webkit-mask: url("/glyphs.svg") 0 0 / 360px 360px repeat;
  mask: url("/glyphs.svg") 0 0 / 360px 360px repeat;
  opacity: .05;
}
.lede { max-width: 34ch; margin: 2rem 0 0; font-size: var(--body-xl); line-height: var(--body-xl-lh); color: var(--fg-2); }
.prompt { margin: 2.25rem 0 .25rem; font: 400 1rem/1.5 var(--font-mono); letter-spacing: .02em; }
.prompt .ps { color: var(--hl); }
.cursor {
  display: inline-block; width: .6em; height: 1.1em; margin-left: .1em;
  vertical-align: text-bottom; background: var(--hl);
  animation: blink 1.1s steps(1) infinite;
}
.banner {
  margin: 1rem 0 0; padding: .75rem 1rem; max-width: 70ch;
  font: 400 .875rem/1.5 var(--font-mono);
  color: var(--bg); background: var(--hl);
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  font-size: 1rem; letter-spacing: .08em;
  text-decoration: none; cursor: pointer; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-sm { min-height: 2.25rem; padding: 0 1rem; font-size: var(--caption); box-shadow: inset 0 0 0 2px var(--line); background: transparent; color: var(--fg); }
.btn-sm:hover { background: var(--fg); color: var(--bg); }
.btn-sm.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.copy.done { background: var(--fg); color: var(--bg); }

/* ---------------------------------------------------------------- hairline grid */
.g {
  display: grid; grid-template-columns: 1fr;
  margin: 0; padding: 0; list-style: none;
  border-left: 1px solid var(--divider);
}
.g > .gc, .g > li { border-right: 1px solid var(--divider); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); margin-bottom: -1px; }
@media (min-width: 40rem) { .g { grid-template-columns: repeat(2, 1fr); } }
.stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 64rem) { .stats, .now { grid-template-columns: repeat(4, 1fr); } .steps { grid-template-columns: repeat(3, 1fr); } }

.stats { margin-top: calc(var(--section-v) * .9); }
.stats .gc { padding: 1.25rem 1.25rem 1.5rem; }
.stats dt { color: var(--fg-2); }
.stats dd { margin: .75rem 0 0; font-size: clamp(2.5rem, 4.2vw, 4.25rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#total-now { color: var(--hl); }

/* ---------------------------------------------------------------- bands */
.band { padding: var(--section-v) var(--gutter); background: var(--bg); color: var(--fg); }
.band-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem;
  margin-bottom: 2.5rem; padding-bottom: 1.25rem; box-shadow: 0 1px 0 var(--divider);
}

/* ---------------------------------------------------------------- right now */
.now > li { position: relative; padding: 1.25rem 1.25rem 1.5rem; min-width: 0; animation: rise .45s cubic-bezier(.23, 1, .32, 1) both; }
.now .who { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.now .name { font: 600 1rem/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now .phase { font: 400 .75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); white-space: nowrap; }
.now .phase::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .45rem; vertical-align: .05em; background: currentColor; }
.now .is-focus .phase { color: var(--hl); }
.now .task { margin: .25rem 0 0; min-height: 1.6em; color: var(--fg-2); font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { display: flex; align-items: baseline; margin-top: .75rem; font-size: clamp(3rem, 5.2vw, 5rem); line-height: .9; font-variant-numeric: lining-nums tabular-nums; }
.timer b { font-weight: 300; display: inline-block; }
.timer b.tick { animation: roll .35s cubic-bezier(.23, 1, .32, 1); }
.timer i { font-style: normal; opacity: .5; }
.now .meta { display: flex; gap: .75rem; align-items: baseline; white-space: nowrap; }
.now .combo { font: 700 .75rem/1.4 var(--font-mono); letter-spacing: .1em; color: var(--hl); text-transform: uppercase; }
.progress { height: 2px; margin-top: 1.25rem; background: var(--divider); }
.progress span { display: block; height: 100%; background: var(--fg); transition: width 1s linear; }
.is-focus .progress span { background: var(--hl); }
.is-paused { opacity: .55; }
.now .none { grid-column: 1 / -1; padding: 2rem 1.25rem; color: var(--fg-2); font-size: var(--body-xl); }

/* animated accent stroke on hover (Hermes "arc") */
.arc {
  position: absolute; inset: 0; padding: 1.5px; opacity: 0; pointer-events: none; transition: opacity .2s;
  background: linear-gradient(160deg, transparent 0%, var(--fg) 15%, var(--hl) 20%, var(--bg) 25%, transparent 35% 40%,
    var(--fg) 55%, var(--hl) 60%, var(--bg) 65%, transparent 75% 80%, var(--fg) 95%, var(--hl) 100%);
  background-size: 300% 300%;
  animation: arc 2.23s linear infinite paused;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.now > li:hover .arc, .steps > li:hover .arc { opacity: 1; animation-play-state: running; }

/* ---------------------------------------------------------------- leaderboard */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tabs button {
  min-height: 2.5rem; padding: 0 1rem; cursor: pointer; border: 0;
  color: var(--fg); background: transparent; box-shadow: inset 0 0 0 2px var(--divider);
  transition: background .2s, color .2s, box-shadow .2s;
}
.tabs button:hover { box-shadow: inset 0 0 0 2px var(--line); }
.tabs button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.tabs kbd { box-shadow: none; opacity: .75; color: inherit; padding: 0 .3em 0 0; font-size: .75rem; }
.filter { display: flex; align-items: center; gap: .5rem; box-shadow: inset 0 0 0 2px var(--line); padding: 0 .75rem; min-height: 2.5rem; }
.filter input { font: 500 .9375rem var(--font-ui); letter-spacing: .05em; text-transform: uppercase; border: 0; outline: 0; background: transparent; color: var(--fg); width: 12ch; }

.you {
  margin: 0 0 1.5rem; padding: 1rem 1.25rem;
  font: 400 1rem/1.5 var(--font-mono); letter-spacing: .02em;
  background: var(--strong); color: var(--on-strong);
}
.table-wrap { overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; }
.board th { text-align: left; color: var(--fg-2); font-weight: 500; padding: 0 .75rem .75rem; box-shadow: inset 0 -1px 0 var(--divider); white-space: nowrap; }
.board td { padding: .9rem .75rem; box-shadow: inset 0 -1px 0 var(--divider); white-space: nowrap; vertical-align: middle; }
.board .num { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.board tbody tr { cursor: pointer; transition: background .15s; }
.board tbody tr:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.board tbody tr.sel { background: color-mix(in srgb, var(--strong) 9%, transparent); box-shadow: inset 3px 0 0 var(--strong); }
.board tbody tr.moved { animation: moved 1.4s ease-out; }
.rank { width: 4.5rem; font-size: 2.25rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.rank.top { font-weight: 400; }
.delta { display: inline-block; margin-left: .35rem; vertical-align: middle; font: 700 .7rem/1 var(--font-mono); letter-spacing: .05em; }
.delta.up { color: #2f7d17; } .delta.down { color: var(--tomato); }
.dev { font: 600 1rem/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; }
.dev .on { display: inline-block; width: .5rem; height: .5rem; margin-left: .6rem; vertical-align: .1em; background: var(--hl); }
.dev .on.idle { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-2); }
.dev .you-tag { margin-left: .6rem; padding: .1rem .4rem; font: 700 .65rem/1 var(--font-mono); letter-spacing: .1em; background: var(--strong); color: var(--on-strong); vertical-align: .15em; }
tr.me .dev { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bar-col { width: 32%; }
.bar { height: .5rem; background: var(--inset); }
.bar span { display: block; height: 100%; background: var(--strong); transition: width .6s cubic-bezier(.23, 1, .32, 1); }
td.num.metric { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; letter-spacing: .02em; }
.lvl { font: 400 .8125rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); }
.combo-col { font: 400 .875rem var(--font-mono); color: var(--fg-2); }
.detail td { background: var(--inset); cursor: default; white-space: normal; font: 400 .875rem/1.7 var(--font-mono); color: var(--fg-2); }
.detail b { color: var(--fg); font-weight: 700; }
.detail .btn-sm { margin-left: 1rem; vertical-align: middle; }
.empty { padding: 2rem 0; color: var(--fg-2); font-size: var(--body-xl); }
.keys { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.keys kbd { margin-left: .75rem; }
.keys kbd:first-child { margin-left: 0; }
.keys kbd + kbd { margin-left: .2rem; }
.updated { margin-left: auto; font-family: var(--font-mono); }

/* ---------------------------------------------------------------- feed */
.feed { margin: 0; padding: 0; list-style: none; columns: 1; column-gap: var(--gap); }
@media (min-width: 64rem) { .feed { columns: 2; } }
.feed li { break-inside: avoid; display: flex; gap: 1.25rem; padding: .85rem 0; box-shadow: inset 0 -1px 0 var(--divider); }
.feed time { flex: 0 0 3.5rem; color: var(--fg-2); font-family: var(--font-mono); font-weight: 400; }
.feed .ev { font: 400 1rem/1.5 var(--font-mono); letter-spacing: .02em; min-width: 0; }
.feed .fresh .ev { animation: type .7s steps(28) both; }
.feed .k-achievement .ev, .feed .k-level_up .ev { color: var(--hl); }
.feed .muted { color: var(--fg-2); }

/* ---------------------------------------------------------------- join */
.steps > li { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem 1.5rem 1.75rem; min-width: 0; }
.step-n { font-size: 4.5rem; line-height: .8; color: var(--fg); margin-bottom: 1rem; }
.steps p { margin: 0; color: var(--fg-2); }
.steps pre {
  margin: .25rem 0 0; padding: 1rem; background: var(--inset); color: var(--fg);
  font-size: .8125rem; line-height: 1.6;
  /* wrap at spaces only, never inside a URL; scroll if one is still too long */
  white-space: pre-wrap; overflow-wrap: normal; word-break: normal;
  overflow-x: auto; scrollbar-width: thin;
}
.steps .copy { align-self: flex-start; }
.manual { margin-top: .5rem; border-top: 1px solid var(--divider); padding-top: .75rem; display: flex; flex-direction: column; gap: .75rem; }
.manual summary { cursor: pointer; font: 500 var(--caption)/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--fg); list-style: none; }
.manual summary::-webkit-details-marker { display: none; }
.manual summary::before { content: "+ "; font-family: var(--font-mono); color: var(--hl); }
.manual[open] summary::before { content: "− "; }
.manual[open] { display: flex; }
.manual pre { margin: 0; }
.manual p { font-size: .875rem; }
.manual p { font-size: .8125rem; }
.privacy { margin: 2rem 0 0; max-width: 80ch; color: var(--fg-2); font-size: .9375rem; }
.privacy a { color: inherit; }
.prose { max-width: 70ch; }
.prose p { margin: .5rem 0 1.5rem; color: var(--fg-2); }
.prose .h4 { margin: 2.5rem 0 .25rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .75rem .75rem .75rem 0; box-shadow: 0 1px 0 var(--divider); }
.prose th { font: 500 var(--caption)/1.25rem var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); }
.prose a { color: inherit; }
code { font-size: .92em; }

/* ---------------------------------------------------------------- footer */
.foot { padding: var(--section-v) var(--gutter) 2rem; overflow: hidden; container-type: inline-size; }
.wordmark {
  margin: 0 0 3rem; font-size: 24.3cqi; line-height: .8; white-space: nowrap; text-align: center;
  color: var(--fg); letter-spacing: .03em;
}
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.25rem; box-shadow: 0 -1px 0 var(--divider); }
.foot-row nav { display: flex; gap: 1.5rem; }
.foot-row nav a { font: 500 var(--caption)/1.25rem var(--font-ui); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--fg-2); }
.foot-row nav a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- dialog */
dialog { max-width: 30rem; padding: 2rem; border: 0; background: var(--bg); color: var(--fg); box-shadow: 0 30px 80px rgb(0 0 0 / 40%); }
dialog::backdrop { background: rgb(0 0 0 / 60%); }
dialog dl { display: grid; grid-template-columns: auto 1fr; gap: .75rem 1.25rem; margin: 1.5rem 0; }
dialog dd { margin: 0; color: var(--fg-2); }
dialog form { margin-top: 1.5rem; }

/* ---------------------------------------------------------------- motion */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes roll { from { transform: translateY(-.25em); opacity: 0; } }
@keyframes moved { from { background: color-mix(in srgb, var(--hl) 30%, transparent); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes arc { from { background-position: 15% 15%; } to { background-position: 75% 75%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 47.99rem) {
  .nav { display: none; }
  .ascii { font-size: 5.2px; right: -40px; top: 58%; opacity: .2; }
  .site-head { justify-content: space-between; }
  .lvl, .combo-col, th.bar-col, td.bar-col { display: none; }
  .rank { width: 3rem; font-size: 1.75rem; }
  .board td, .board th { padding-inline: .5rem; }
  .keys { display: none; }
  .now { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .now > li { scroll-snap-align: start; }
  .step-n { font-size: 3.5rem; }
}

/* ---------------------------------------------------------------- built by */
.crew { display: grid; gap: calc(var(--gap) * 2); grid-template-columns: 1fr; }
@media (min-width: 64rem) { .crew { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.creator { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: end; padding: 1.5rem; box-shadow: inset 0 0 0 1px var(--divider); position: relative; }
.creator::after { /* tomato corner mark: the creator's badge */
  content: ""; position: absolute; top: 0; right: 0; width: 2.25rem; height: 2.25rem;
  background: linear-gradient(225deg, var(--tomato) 50%, transparent 50%);
}
.avatar { width: clamp(7rem, 14vw, 12.5rem); height: auto; aspect-ratio: 1; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .4s; background: var(--inset); }
.creator:hover .avatar { filter: none; }
.creator .eyebrow { margin: 0 0 .5rem; color: var(--hl); }
.creator .h4 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; }
.creator-meta { margin: .75rem 0 1rem; font: 400 .875rem/1.5 var(--font-mono); color: var(--fg-2); letter-spacing: .04em; }
.creator-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.crew-list { display: flex; flex-direction: column; gap: 1rem; }
.contributors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); border-left: 1px solid var(--divider); }
.contributors li { border: 1px solid var(--divider); border-left: 0; margin-bottom: -1px; }
.contributor { display: grid; grid-template-columns: 2.75rem 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; padding: .9rem; text-decoration: none; transition: background .2s; }
.contributor:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.contributor img { grid-row: span 2; width: 2.75rem; height: 2.75rem; object-fit: cover; filter: grayscale(1); transition: filter .3s; background: var(--inset); }
.contributor:hover img { filter: none; }
.contributor .login { font: 600 .875rem/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contributor .commits { font: 400 .75rem/1.3 var(--font-mono); color: var(--fg-2); }
.crew-cta { align-self: flex-start; }
@media (max-width: 47.99rem) { .creator { grid-template-columns: 1fr; } }
