SOURCE / PINNED RELEASE
Made of little things.
Pursuit PIT
- Release
- 565f4981bdc3…
- Author-recorded commit
- 197afdbed44b…
- License
- LICENSE
- Author’s source reference
- nostr://npub12lm3rxsva8kfempyjkxupt09e02n3fezurkyadyqfejdc5e0r2kscqty6r/wss%3A%2F%2Fgit.napplet.soy%2F/n-951414e7fd7
Archive hash verified: 3b0485589942fd5c…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
/* Visual direction: late-afternoon interstate in flat low-poly shapes (warm sky, olive fields,
grey asphalt). The HUD is a patrol-car dash: black glass panels, amber LED digits, red/blue
light-bar accents. Gameplay colours are app-owned and ignore the host theme. */
:root {
--ink: #f6e7c8;
--amber: #ffb43a;
--red: #ff3b3b;
--blue: #3b7bff;
--glass: rgba(14, 15, 20, 0.78);
--edge: rgba(255, 180, 58, 0.35);
--mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
--hud: clamp(10px, 2.2vmin + 4px, 18px);
color-scheme: dark;
}
* {
box-sizing: border-box;
}
html,
body,
#app {
height: 100%;
margin: 0;
}
body {
overflow: hidden;
background: #1a1410;
color: var(--ink);
font: 14px/1.4 system-ui, sans-serif;
user-select: none;
-webkit-user-select: none;
touch-action: none;
}
.app {
position: relative;
overflow: hidden;
}
.view,
.view canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
}
.hud {
position: absolute;
inset: 0;
pointer-events: none;
font-family: var(--mono);
font-size: var(--hud);
}
.readout {
position: absolute;
background: var(--glass);
border: 1px solid var(--edge);
border-radius: 4px;
padding: 0.25em 0.55em;
display: flex;
flex-direction: column;
line-height: 1.15;
color: var(--amber);
text-shadow: 0 0 6px rgba(255, 160, 40, 0.5);
}
.label {
font-size: 0.62em;
letter-spacing: 0.14em;
color: var(--ink);
opacity: 0.7;
text-shadow: none;
}
.clock {
right: 8px;
top: 8px;
align-items: flex-end;
}
/* Getaway: how far back the nearest police car is (and how many are left). */
.police {
left: 8px;
top: 8px;
display: none;
}
.app.getaway .police {
display: flex;
}
.lights {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 4px;
}
.lights i {
width: 34px;
height: 4px;
border-radius: 0 0 3px 3px;
background: var(--red);
opacity: 0.25;
}
.lights i + i {
background: var(--blue);
}
.lights.on-a i:first-child,
.lights.on-b i + i {
opacity: 1;
box-shadow: 0 0 12px currentColor;
}
.callout {
position: absolute;
left: 50%;
top: 34%;
transform: translate(-50%, -50%);
font: 800 clamp(18px, 7vmin, 56px) / 1 var(--mono);
letter-spacing: 0.08em;
color: var(--amber);
text-shadow: 0 2px 0 #000, 0 0 18px rgba(255, 120, 0, 0.7);
pointer-events: none;
opacity: 0;
transition: opacity 0.25s;
white-space: nowrap;
}
.callout.show {
opacity: 1;
}
.overlay {
position: absolute;
inset: 0;
display: grid;
place-items: center;
padding: 8px;
background: radial-gradient(ellipse at center, rgba(10, 8, 6, 0.55), rgba(10, 8, 6, 0.85));
overflow: auto;
}
.overlay[hidden] {
display: none;
}
.card {
max-width: 30em;
background: var(--glass);
border: 1px solid var(--edge);
border-top: 3px solid var(--red);
border-radius: 6px;
padding: clamp(8px, 3vmin, 20px);
}
.card p {
margin: 0 0 0.6em;
}
.kicker {
font: 700 0.75em/1 var(--mono);
letter-spacing: 0.2em;
color: var(--red);
}
.headline {
font-size: 1.25em;
font-weight: 700;
color: var(--amber);
}
.body {
opacity: 0.9;
}
.keys {
list-style: none;
padding: 0;
margin: 0 0 0.8em;
display: flex;
flex-wrap: wrap;
gap: 0.3em 1em;
font-size: 0.85em;
opacity: 0.85;
}
kbd {
font: 0.9em var(--mono);
border: 1px solid rgba(246, 231, 200, 0.4);
border-bottom-width: 2px;
border-radius: 3px;
padding: 0 0.3em;
margin-right: 0.15em;
}
.best {
font: 0.85em var(--mono);
color: var(--amber);
}
.best:empty {
display: none;
}
.start {
font: 700 1em var(--mono);
letter-spacing: 0.06em;
color: #1a1206;
background: var(--amber);
border: 0;
border-radius: 4px;
padding: 0.6em 1.2em;
min-height: 40px;
cursor: pointer;
}
.start:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 2px;
}
.choices {
display: flex;
flex-wrap: wrap;
gap: 0.6em;
}
.start.secondary {
color: var(--amber);
background: transparent;
box-shadow: inset 0 0 0 2px var(--amber);
}
.start[hidden] {
display: none;
}
.touch {
display: none;
}
@media (pointer: coarse) {
.touch {
display: block;
}
.touch .pad {
position: absolute;
bottom: calc(var(--hud) * 2.6 + 16px);
display: flex;
gap: 8px;
}
.touch .left {
left: 8px;
}
.touch .right {
right: 8px;
}
.touch button {
width: clamp(44px, 14vmin, 76px);
height: clamp(44px, 14vmin, 76px);
border-radius: 50%;
border: 1px solid var(--edge);
background: rgba(14, 15, 20, 0.55);
color: var(--ink);
font: 700 0.9em var(--mono);
touch-action: none;
}
.touch button.held,
.touch button.on {
background: rgba(255, 180, 58, 0.45);
}
/* Wiper switch: a small toggle sitting above the pedals. */
.touch #wipeButton {
position: absolute;
right: 0;
bottom: calc(100% + 8px);
width: clamp(40px, 11vmin, 60px);
height: clamp(30px, 8vmin, 44px);
border-radius: 10px;
font-size: 0.75em;
}
}
/* Tiny frames: keep speed and distance, drop the rest. */
@media (max-width: 300px), (max-height: 220px) {
.clock,
.lights,
.keys,
.body {
display: none;
}
.card {
font-size: 12px;
}
}
/* Replay: hide the dash HUD and show a broadcast-style banner. */
.app.replaying .hud,
.app.replaying .touch {
display: none;
}
.replay-banner {
position: absolute;
left: 0;
right: 0;
top: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.4em 1em;
padding: 0.5em 0.9em;
font: 700 var(--hud) / 1.2 var(--mono);
letter-spacing: 0.08em;
color: var(--ink);
background: linear-gradient(rgba(10, 8, 6, 0.75), rgba(10, 8, 6, 0));
pointer-events: none;
}
.replay-banner[hidden],
.slowmo[hidden] {
display: none;
}
.replay-banner .rec {
color: var(--red);
animation: blink 1s steps(2, start) infinite;
}
.replay-banner .slowmo {
color: var(--amber);
}
.replay-banner .any-key {
margin-left: auto;
opacity: 0.85;
}
@keyframes blink {
to {
visibility: hidden;
}
}
/* Police radio subtitles: a scanner-style strip above the dash readouts. */
.radio-line {
position: absolute;
left: 50%;
bottom: calc(var(--hud) * 3.4);
transform: translateX(-50%);
max-width: min(90%, 40em);
padding: 0.3em 0.7em;
background: rgba(8, 20, 12, 0.82);
border: 1px solid rgba(120, 255, 170, 0.35);
border-radius: 4px;
font: 0.8em/1.35 var(--mono);
color: #b6ffcf;
text-align: center;
pointer-events: none;
}
.radio-line[hidden] {
display: none;
}
.radio-line .who {
color: #ffd27a;
font-weight: 700;
}
/* Garage: the car turns on a turntable; the options panel sits to the right (bottom on tall frames). */
.app.in-garage .hud,
.app.in-garage .touch,
.app.in-garage .callout,
.app.in-garage .radio-line {
display: none;
}
.garage {
position: absolute;
inset: 0;
display: flex;
justify-content: flex-end;
align-items: center;
padding: 10px;
pointer-events: none;
}
.garage[hidden] {
display: none;
}
.garage-panel {
pointer-events: auto;
width: min(21em, 46%);
max-height: 100%;
overflow: auto;
background: var(--glass);
border: 1px solid var(--edge);
border-top: 3px solid var(--blue);
border-radius: 6px;
padding: clamp(8px, 2.6vmin, 18px);
}
.garage-panel p {
margin: 0 0 0.6em;
}
.garage-panel .kicker {
color: var(--blue);
}
.tabs {
display: flex;
gap: 4px;
margin-bottom: 0.7em;
}
.tabs button {
flex: 1;
min-height: 36px;
font: 700 0.85em var(--mono);
color: var(--ink);
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--edge);
border-radius: 4px;
cursor: pointer;
}
.tabs button[aria-selected='true'] {
color: #1a1206;
background: var(--amber);
border-color: var(--amber);
}
.garage-row {
display: grid;
grid-template-columns: 1fr auto minmax(7.5em, auto) auto;
align-items: center;
gap: 0.4em;
padding: 0.3em 0.4em;
margin: 0 -0.4em;
border-left: 3px solid transparent;
border-radius: 3px;
}
.garage-row.current {
border-left-color: var(--amber);
background: rgba(255, 180, 58, 0.1);
}
.garage-label {
font: 0.75em var(--mono);
letter-spacing: 0.1em;
text-transform: uppercase;
opacity: 0.8;
}
.garage-value {
display: flex;
align-items: center;
justify-content: center;
gap: 0.4em;
font-size: 0.9em;
font-weight: 700;
white-space: nowrap;
}
.garage-value i {
width: 0.9em;
height: 0.9em;
border-radius: 2px;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.garage-row .arrow {
width: 34px;
height: 34px;
color: var(--amber);
background: transparent;
border: 1px solid var(--edge);
border-radius: 4px;
cursor: pointer;
}
.garage-row .arrow:hover,
.tabs button:hover {
border-color: var(--amber);
}
.swatches {
grid-column: 2 / -1;
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 5px;
}
.swatches button {
aspect-ratio: 1;
min-width: 22px;
border: 0;
border-radius: 4px;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
cursor: pointer;
}
.swatches button[aria-pressed='true'] {
outline: 2px solid var(--ink);
outline-offset: 2px;
}
.garage-note {
font-size: 0.85em;
opacity: 0.85;
min-height: 2.4em;
margin-top: 0.6em !important;
}
.garage-keys {
font-size: 0.75em;
opacity: 0.7;
}
@media (pointer: coarse) {
.garage-keys {
display: none;
}
}
@media (max-aspect-ratio: 1/1) {
.garage {
align-items: flex-end;
justify-content: center;
}
.garage-panel {
width: min(26em, 100%);
max-height: 58%;
}
}
@media (max-width: 300px), (max-height: 220px) {
.garage-note,
.garage-keys,
.garage-panel .kicker {
display: none;
}
.garage-panel {
font-size: 11px;
width: 100%;
max-height: 100%;
}
/* Label above its arrows, so a row fits the narrow frame. */
.garage-row {
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 2px 4px;
}
.garage-label {
grid-column: 1 / -1;
}
.garage-value {
white-space: normal;
}
.swatches {
grid-column: 1 / -1;
}
}
/* ---- Title screen: pick a mode. A still dusk scene (no 3D running behind it): night sky
fading to the game's peach horizon, a road running away to it, the red and blue glow of a
light bar, and the mode cards as dash glass. */
.title-screen {
position: absolute;
inset: 0;
z-index: 20;
overflow: auto;
display: flex;
justify-content: center;
padding: clamp(8px, 3vmin, 28px);
background: #0a0d1c; /* until the scene is drawn */
}
.title-screen[hidden] {
display: none;
}
.title-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
}
/* Title at the top, cards at the bottom, the road and the city showing between them. */
.title-inner {
position: relative;
width: min(100%, 980px);
min-height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: clamp(10px, 3.2vmin, 30px);
}
.title-inner .modes {
margin-top: auto;
}
.brand {
text-align: center;
}
.route {
margin: 0 0 0.4em;
font: 700 clamp(9px, 1.6vmin + 4px, 14px) / 1 var(--mono);
letter-spacing: 0.35em;
text-transform: uppercase;
color: rgba(246, 231, 200, 0.7);
}
.logo {
margin: 0;
font: 900 clamp(26px, 9vmin, 92px) / 0.95 var(--mono);
letter-spacing: 0.06em;
color: var(--amber);
text-shadow: 0 0 18px rgba(255, 180, 58, 0.35), 0 3px 0 #6b3b0a;
}
.logo .pit {
color: #fff3dc;
background: var(--red);
padding: 0 0.18em;
border-radius: 0.08em;
text-shadow: 0 3px 0 #7a1010;
}
.lightbar {
display: flex;
justify-content: center;
margin: clamp(6px, 1.6vmin, 14px) auto 0;
width: min(60%, 360px);
height: clamp(5px, 1.2vmin, 10px);
border-radius: 99px;
overflow: hidden;
background: #111;
box-shadow: 0 0 22px rgba(255, 60, 60, 0.35), 0 0 22px rgba(60, 110, 255, 0.35);
}
.lightbar i {
flex: 1;
background: var(--red);
}
.lightbar i + i {
background: var(--blue);
}
.modes {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: clamp(8px, 2vmin, 18px);
}
.mode {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.45em;
min-height: 44px;
padding: clamp(10px, 2.4vmin, 22px);
text-align: left;
font: inherit;
color: var(--ink);
background: linear-gradient(180deg, rgba(20, 22, 30, 0.88), rgba(10, 11, 16, 0.9));
border: 1px solid rgba(255, 180, 58, 0.28);
border-top: 3px solid var(--accent, var(--amber));
border-radius: 8px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
cursor: pointer;
transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.mode.pursuit {
--accent: var(--red);
}
.mode.getaway {
--accent: var(--blue);
}
.mode.free {
--accent: var(--amber);
}
.mode:hover,
.mode:focus-visible {
transform: translateY(-3px);
border-color: var(--amber);
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--amber), 0 0 24px rgba(255, 180, 58, 0.25);
outline: none;
}
.mode-key {
position: absolute;
top: clamp(8px, 1.8vmin, 14px);
right: clamp(8px, 1.8vmin, 14px);
font: 700 0.72em/1 var(--mono);
letter-spacing: 0.08em;
text-transform: uppercase;
color: rgba(246, 231, 200, 0.75);
border: 1px solid rgba(246, 231, 200, 0.35);
border-bottom-width: 2px;
border-radius: 4px;
padding: 0.25em 0.45em;
}
.mode-icon {
width: clamp(28px, 6vmin, 52px);
height: clamp(28px, 6vmin, 52px);
fill: var(--accent, var(--amber));
}
.mode-icon .cut {
fill: #0d0e14;
}
.mode-icon .stroke {
fill: none;
stroke: var(--accent, var(--amber));
stroke-width: 2.5;
stroke-linecap: round;
}
.mode-icon .stroke.dark {
stroke: #0d0e14;
}
.mode-name {
font: 800 clamp(15px, 3vmin + 4px, 28px) / 1.1 var(--mono);
letter-spacing: 0.04em;
color: var(--amber);
text-transform: uppercase;
}
.mode-text {
font-size: clamp(11px, 1.4vmin + 6px, 15px);
line-height: 1.4;
color: rgba(246, 231, 200, 0.85);
}
.mode-best {
font: 700 0.85em var(--mono);
color: var(--amber);
}
.mode-best:empty {
display: none;
}
.title-foot {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
gap: 0.8em 1.4em;
font-size: clamp(11px, 1.3vmin + 6px, 14px);
}
.foot-button,
.controls summary {
font: 700 1em var(--mono);
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--amber);
background: rgba(10, 11, 16, 0.75);
border: 1px solid var(--edge);
border-radius: 6px;
padding: 0.55em 1.1em;
min-height: 40px;
cursor: pointer;
}
.foot-button:focus-visible,
.controls summary:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 2px;
}
.controls {
max-width: 34em;
}
.controls summary {
list-style: none;
display: inline-block;
}
.controls summary::-webkit-details-marker {
display: none;
}
.controls[open] summary {
margin-bottom: 0.6em;
}
.controls .keys {
background: rgba(10, 11, 16, 0.8);
border: 1px solid rgba(255, 180, 58, 0.2);
border-radius: 6px;
padding: 0.6em 0.9em;
margin: 0;
}
/* Portrait and narrow frames: cards stack, icons sit beside the name. */
@media (max-width: 720px) {
.modes {
grid-template-columns: 1fr;
}
.mode {
display: grid;
grid-template-columns: auto 1fr;
column-gap: 0.8em;
row-gap: 0.25em;
align-items: center;
}
.mode-icon {
grid-row: span 2;
}
.mode-text,
.mode-best {
grid-column: 2;
}
}
/* Tiny frames: just the names, to pick a mode. */
@media (max-width: 300px), (max-height: 260px) {
.title-screen {
padding: 6px;
}
.route,
.lightbar,
.mode-icon,
.mode-text,
.mode-best,
.mode-key,
.controls {
display: none;
}
.title-inner {
gap: 6px;
}
.mode {
display: block;
padding: 6px 10px;
min-height: 32px;
}
.mode-name {
font-size: 13px;
}
.foot-button {
min-height: 28px;
padding: 0.3em 0.8em;
}
}
@media (prefers-reduced-motion: reduce) {
.mode {
transition: none;
}
.mode:hover,
.mode:focus-visible {
transform: none;
}
}
/* Time of day picker: three picture cards over the title backdrop (night, dusk, day). */
.time-picker {
position: absolute;
inset: 0;
z-index: 21;
overflow: auto;
display: flex;
justify-content: center;
align-items: center;
padding: clamp(8px, 3vmin, 28px);
background: radial-gradient(ellipse at center, rgba(8, 9, 16, 0.72), rgba(8, 9, 16, 0.92));
}
.time-picker[hidden] {
display: none;
}
.time-inner {
width: min(100%, 980px);
display: flex;
flex-direction: column;
align-items: center;
gap: clamp(8px, 2.4vmin, 22px);
text-align: center;
}
.time-head {
margin: 0;
font: 800 clamp(16px, 4vmin + 4px, 40px) / 1.1 var(--mono);
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--amber);
}
.times {
width: 100%;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: clamp(8px, 2vmin, 18px);
}
.time-card {
display: flex;
flex-direction: column;
gap: 0.35em;
padding: 0 0 clamp(8px, 1.8vmin, 14px);
overflow: hidden;
text-align: left;
font: inherit;
color: var(--ink);
background: linear-gradient(180deg, rgba(20, 22, 30, 0.9), rgba(10, 11, 16, 0.92));
border: 1px solid rgba(255, 180, 58, 0.28);
border-radius: 8px;
cursor: pointer;
transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.time-card:hover,
.time-card:focus-visible {
transform: translateY(-3px);
border-color: var(--amber);
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--amber), 0 0 24px rgba(255, 180, 58, 0.25);
outline: none;
}
.time-card canvas {
display: block;
width: 100%;
aspect-ratio: 16 / 10;
}
.time-name,
.time-text {
padding: 0 clamp(8px, 1.8vmin, 14px);
}
.time-name {
font: 800 clamp(13px, 2.4vmin + 4px, 24px) / 1.1 var(--mono);
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--amber);
}
.time-text {
font-size: clamp(10px, 1.2vmin + 6px, 14px);
line-height: 1.35;
color: rgba(246, 231, 200, 0.8);
}
.time-keys {
margin: 0;
font-size: clamp(10px, 1.2vmin + 6px, 13px);
color: rgba(246, 231, 200, 0.7);
}
@media (pointer: coarse) {
.time-keys {
display: none;
}
}
@media (max-width: 300px), (max-height: 220px) {
.time-text,
.time-keys,
.time-picker .route {
display: none;
}
.time-head {
font-size: 13px;
}
.time-picker {
align-items: flex-start;
}
}
@media (max-width: 520px) {
.time-text {
display: none;
}
}
/* Controller focus remains visible after pointer input, using the game's palette. */
button:focus, summary:focus {
outline: 2px solid var(--amber);
outline-offset: 3px;
}
.controller-note {
color: var(--ink);
font: 400 12px/1.5 var(--mono);
margin: 0.65em 0;
overflow-wrap: anywhere;
}
.controller-status { opacity: 0.8; }
