:root {
  --bg: #0b0b0b; --page-bg: #0b0b0b; --panel: #141414; --line: #262626; --ink: #fff; --muted: #8a8a8a; --faint: #555;
  --font: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); overflow-x: clip; }
a { color: inherit; }
body.no-motion .trail { display: none; }

.trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
@media (pointer: coarse) { .trail { display: none; } }

.status { position: sticky; top: 0; z-index: 40; display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(11,11,11,.97); border-bottom: 1px solid var(--line); } /* solid, not blurred: a blur here re-renders every frame over the 3D bot */
/* readouts are flat; anything you can click has a white edge and a glow, and fills white on hover */
.status span, .status .chip { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #0f0f0f; }
.status b { color: var(--ink); font-weight: 500; }
.status .chip { appearance: none; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0; }
.status .go { color: #d6d6d6; border-color: rgba(255,255,255,.55); box-shadow: 0 0 10px -2px rgba(255,255,255,.35); transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
.status a.go::after { content: "→"; margin-left: 6px; transition: transform .18s; }
.status .go:hover, .status .go:focus-visible { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 18px rgba(255,255,255,.55); outline: none; }
.status .go:hover b, .status .go:focus-visible b { color: #000; }
.status a.go:hover::after { transform: translateX(2px); }
.status .hot { animation: chip-glow 2.6s ease-in-out infinite; }
@keyframes chip-glow { 0%, 100% { box-shadow: 0 0 8px -2px rgba(255,255,255,.35); } 50% { box-shadow: 0 0 18px 1px rgba(255,255,255,.6); border-color: #fff; } }
.status .hot:hover { animation: none; }
body.no-motion .status .hot { animation: none; }
.status .motion { margin-left: auto; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 10px 16px 0; }
.hero-copy { display: flex; flex-direction: column; gap: 10px; }
.mark-wrap { display: block; width: min(300px, 60vw); color: var(--ink); }
.mark { width: 100%; height: auto; display: block; overflow: visible; }
.pin-eye { fill: var(--bg); }
.m-ring { transform-box: fill-box; transform-origin: center; animation: m-ring .35s ease-out both; }
.m-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: m-draw 1.9s cubic-bezier(.45,0,.2,1) .25s both; }
.m-pin  { transform-box: fill-box; transform-origin: 50% 100%; animation: m-pin .45s ease-out 2s both; }
.m-ping { transform-box: fill-box; transform-origin: center; animation: m-ping 1.1s ease-out 2.25s both; }
@keyframes m-ring { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes m-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes m-pin  { 0% { transform: translateY(-18px) scale(.6); opacity: 0; } 60% { transform: translateY(0) scale(1.12); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes m-ping { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
body.no-motion .m-ring, body.no-motion .m-path, body.no-motion .m-pin, body.no-motion .m-ping { animation: none; }
body.no-motion .m-path { stroke-dashoffset: 0; } body.no-motion .m-ping { opacity: 0; }

.wordmark { margin: 2px 0 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .05em; font-weight: 400; line-height: 1; }
.wordmark .amp { color: var(--muted); font-weight: 700; } .wordmark .bold { font-weight: 700; }
.tagline { margin: 0; color: var(--muted); max-width: 46ch; font-size: 1.05rem; }
.tagline .hint { display: block; margin-top: 6px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hero-bot { position: relative; aspect-ratio: 1; max-width: 300px; width: 100%; justify-self: center; touch-action: none; cursor: grab; }
.hero-bot:active { cursor: grabbing; }
/* the canvas is 160% of the box and overflows it, so the saw and the floor ring never hit an edge */
.hero-bot canvas { position: absolute; width: 160%; height: 160%; left: -30%; top: -30%; display: block; pointer-events: none; }
.hero-bot .bot-fallback { display: none; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
body.no-motion .hero-bot .bot-fallback, .hero-bot.failed .bot-fallback { display: block; }
body.no-motion .hero-bot canvas { display: none; }

.route-section { max-width: 1240px; margin: 0 auto; padding: 0 16px 18px; }
/* the rail: a band on top for the line and the pins, the stops side by side under it */
.rail { position: relative; padding-top: 66px; }
.route-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.route-line #routePath { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; animation: draw 1.5s cubic-bezier(.45,0,.2,1) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.route-line .rpin { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: pin-drop .45s cubic-bezier(.2,1.4,.4,1) var(--d, 0s) both; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-14px) scale(.6); } to { opacity: 1; transform: none; } }
.route-line .rpin .eye { fill: var(--bg); }

.stops { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 96px; gap: 16px; align-items: stretch; }
.stop > .card { height: 100%; }
.stop.next > .card { height: auto; }
.stop { perspective: 1200px; min-width: 0; }
.card { display: block; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: inherit; transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .25s ease, border-color .25s ease; will-change: transform; animation: card-in .5s ease var(--d, 0s) both; }
@keyframes card-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
/* each card carries its game's two accent colors; at rest a faint edge of them, on hover the full glow */
.card { --a1: #fff; --a2: #fff; position: relative; transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease; }
.card .shot { display: block; position: relative; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px -18px var(--a1); }
.card .shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, color-mix(in srgb, var(--a1) 22%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--a2) 22%, transparent)); opacity: 0; transition: opacity .3s ease; mix-blend-mode: screen; }
.card .shot img { border: 0; border-radius: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s ease; }
.card:hover, .card:focus-visible { border-color: var(--a1); box-shadow: -16px 8px 44px -14px var(--a1), 16px 8px 44px -14px var(--a2), 0 0 0 1px color-mix(in srgb, var(--a2) 45%, transparent); outline: none; }
.card:hover .shot img, .card:focus-visible .shot img { transform: scale(1.06); filter: saturate(1.2) brightness(1.08); }
.card:hover .shot::after, .card:focus-visible .shot::after { opacity: 1; }
.card:hover h2, .card:focus-visible h2 { background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the route pin over a hovered card lights up in its colors */
.route-line .rpin path { transition: fill .25s ease, filter .25s ease; }
.route-line .rpin.lit path { filter: drop-shadow(0 0 8px var(--pin-glow)) drop-shadow(0 0 2px var(--pin-glow)); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.card .tag { display: block; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h2 { margin: 10px 0 2px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: block; margin-top: 8px; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.ghost { border-style: dashed; text-align: center; padding: 18px 8px; }
.card.ghost h2 { font-size: 2rem; color: var(--muted); margin: 0; }
.card.ghost p { font-size: .78rem; -webkit-line-clamp: 4; }
a.card.dev { cursor: pointer; }

/* once the opening has played, nothing re-animates on resize */
.route-section.settled #routePath { animation: none; stroke-dashoffset: 0; }
.route-section.settled .rpin, .route-section.settled .card { animation: none; opacity: 1; }
body.no-motion #routePath { animation: none; stroke-dashoffset: 0; }
body.no-motion .rpin, body.no-motion .card { animation: none; opacity: 1; }

footer { max-width: 1160px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--faint); font: 500 11px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1000px) {
  .hero-bot { max-width: 240px; }
}
/* phones: the copy and a small bot side by side, the stops become a sideways swipe */
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr) 128px; gap: 8px; padding-top: 16px; }
  .mark-wrap { width: min(190px, 52vw); }
  .wordmark { font-size: 2rem; }
  .tagline { font-size: .95rem; }
  .tagline .hint { display: none; }
  .hero-bot { max-width: 128px; }
  .rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 64px 16px 6px; scroll-padding: 0 16px; }
  .rail::-webkit-scrollbar { display: none; }
  .stops { grid-template-columns: repeat(5, 76vw) 96px; width: max-content; gap: 12px; }
  .stop { scroll-snap-align: start; }
  .route-line { width: auto; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .status .hot { animation: none; }
  .card .shot img { transition: none; } .card:hover .shot img { transform: none; }
  .m-ring, .m-path, .m-pin, .m-ping { animation: none; } .m-path { stroke-dashoffset: 0; } .m-ping { opacity: 0; }
  #routePath { animation: none; stroke-dashoffset: 0; } .rpin, .card { animation: none; opacity: 1; transition: none; }
}

/* ---------- 2026-10-27 refresh ---------- */
/* the latest-change chip swaps its text with a quick drop */
.status .latest b { display: inline-block; transition: transform .22s ease, opacity .22s ease; }
.status .latest b.out { transform: translateY(-6px); opacity: 0; }
/* the bot; a tap swaps it, and the new one's name shows for a moment under it */
.bot-col { position: relative; justify-self: center; width: 100%; max-width: 300px; }
.bot-name { position: absolute; left: 50%; bottom: 4%; transform: translate(-50%, 6px); font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .25s ease, transform .25s ease; }
.bot-name.on { opacity: 1; transform: translate(-50%, 0); }
/* "updated" on a card: one quiet word at the end of its genre line, in the game's color */
.card .meta em { font-style: normal; color: var(--a1); }
/* every card's genre line sits on its bottom edge, whatever the copy above it */
.stop > .card:not(.ghost) { display: flex; flex-direction: column; }
.card .meta { margin-top: auto; padding-top: 8px; }
/* one screen at 1280x720: a tighter hero on short windows */
@media (max-height: 800px) and (min-width: 761px) {
  .mark-wrap { width: 220px; }
  .hero { padding-top: 4px; }
  .hero-copy { gap: 6px; }
  .bot-col { max-width: 250px; }
  .rail { padding-top: 60px; }
  .route-section { padding-bottom: 10px; }
  footer { padding: 14px 16px 18px; }
}
/* tall windows: the hero and the stops sit in the middle, not stuck to the top */
@media (min-width: 761px) {
  .hero { padding-top: clamp(4px, calc((100vh - 760px) / 3), 60px); }
  .route-section { margin-top: clamp(0px, calc((100vh - 760px) / 4), 36px); }
}
/* big screens: the stops grow into the room */
@media (min-width: 1360px) and (min-height: 860px) {
  .hero, .route-section { max-width: 1400px; }
  .stops { grid-template-columns: repeat(5, minmax(0, 1fr)) 110px; gap: 20px; }
  .card h2 { font-size: 1.3rem; }
  .card p { font-size: .95rem; }
  footer { max-width: 1340px; }
}
/* phones: the status strip is one row that swipes sideways; the readouts go */
@media (max-width: 760px) {
  .status { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .status::-webkit-scrollbar { display: none; }
  .status .wide { display: none; }
  .status > * { flex: none; }
  .bot-col { max-width: 128px; }
}
@media (prefers-reduced-motion: reduce) { .status .latest b, .bot-name { transition: none; } }
/* labels wrap rather than cut off; narrower screens give the copy a third line */
.card .tag, .card .meta { white-space: normal; }
.card .meta { letter-spacing: .04em; }
@media (max-width: 1180px) and (min-width: 761px) { .card p { -webkit-line-clamp: 3; } }
