:root {
  --ink: #15121c;
  --pink: #ff027d;
  --off-white: #faf9fb;
  --dim: #6b6875;
  --line: #2a2533;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--off-white); }
body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kicker { color: var(--dim); margin: 0; font-size: 13px; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; text-transform: lowercase; }
.prompt { color: var(--pink); }
.idea { margin: 0; color: var(--dim); }
.stage { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
button {
  font: inherit;
  background: var(--pink);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}
button.ghost { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
input, textarea, select {
  font: inherit;
  color: var(--off-white);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.card { border: 2px solid var(--line); border-radius: 16px; padding: 16px; }
.pink { color: var(--pink); }
.foot { color: var(--dim); font-size: 13px; }

/* ---- sf street ---- */
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.controls button { flex: 1 1 100px; padding: 12px 10px; }
.status { margin: 0; color: var(--dim); font-size: 13px; min-height: 1.5em; }
.scene { width: 100%; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.scene svg { display: block; width: 100%; height: auto; }
.scene * { transition: fill .8s, opacity .8s, stroke .8s; }

/* day palette (pastel) */
.sky { fill: #c8e7f7; }
.stars circle { fill: #faf9fb; opacity: 0; }
.sun { fill: #ffe7a3; }
.moon, .moon-bite { opacity: 0; }
.moon { fill: #faf9fb; }
.moon-bite { fill: #15121c; }
.bay { fill: #9fcfe6; }
.hills { fill: #a9d4b5; }
.bridge rect { fill: #e0634a; }
.bridge .cable { fill: none; stroke: #e0634a; stroke-width: 1.2; }
.ground { fill: #b9d9a8; }
.house .body { stroke: #15121c; stroke-width: .6; }
.h1 .body, .h1 .roof { fill: #f7b8cf; }
.h2 .body, .h2 .roof { fill: #b8e6cf; }
.h3 .body, .h3 .roof { fill: #cdb8f0; }
.h4 .body, .h4 .roof { fill: #f7e3a1; }
.house .roof { stroke: #15121c; stroke-width: .6; }
.house .trim { fill: #faf9fb; }
.house .found { fill: #d9d2c5; }
.house .bay-win { fill: #faf9fb; opacity: .55; }
.house .win { fill: #e9f6fd; stroke: #faf9fb; stroke-width: 1; }
.house .door { fill: #ff7aa8; }
.h2 .door { fill: #6aa88a; }
.h3 .door { fill: #8e6fd1; }
.h4 .door { fill: #e0634a; }
.neon { opacity: 0; }
.neon-box { fill: #15121c; stroke: #ff027d; stroke-width: 1.5; }
.neon-text { fill: #ff027d; font-family: var(--mono); font-size: 9px; font-weight: 700; }
.sidewalk { fill: #e4ddd2; }
.road { fill: #8a8794; }
.rail { stroke: #cfcbd6; stroke-width: 1.5; fill: none; }
.slot { stroke: #5b5866; stroke-width: 1; fill: none; }
.post { fill: #3a3644; }
.lamp-head { fill: #3a3644; }
.lamp .glow { fill: #ffe7a3; opacity: 0; }
.sign-plate { fill: #2e8b57; stroke: #faf9fb; stroke-width: 1; }
.sign-text { fill: #faf9fb; font-family: var(--mono); font-size: 7.5px; font-weight: 700; }
.car { cursor: pointer; transition: transform 2.4s cubic-bezier(.45,.05,.35,1); outline: none; }
.car:focus-visible .car-body { stroke: #ff027d; stroke-width: 2; }
.car-roof { fill: #6b2b3a; }
.car-body { fill: #b8324b; }
.car-band { fill: #f2d27a; }
.car-win { fill: #e9f6fd; }
.car-trim { fill: #3a3644; }
.wheel { fill: #15121c; }
.car-light { fill: #f2d27a; }

/* fog */
.fog ellipse { fill: #faf9fb; }
.fog { opacity: 0; transition: opacity 1.2s; }
.fog-back { animation: drift 18s linear infinite alternate; }
.fog-front { animation: drift 12s linear infinite alternate-reverse; }
.fogged .fog-back { opacity: .7; }
.fogged .fog-front { opacity: .55; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }

/* night palette (hot girls code) */
.night .sky { fill: #15121c; }
.night .stars circle { opacity: .9; }
.night .sun { opacity: 0; }
.night .moon, .night .moon-bite { opacity: 1; }
.night .bay { fill: #221d2c; }
.night .hills { fill: #1d1925; }
.night .bridge rect { fill: #7a2f2a; }
.night .bridge .cable { stroke: #7a2f2a; }
.night .ground { fill: #1b1722; }
.night .h1 .body, .night .h1 .roof { fill: #4a2a3c; }
.night .h2 .body, .night .h2 .roof { fill: #263b36; }
.night .h3 .body, .night .h3 .roof { fill: #34294a; }
.night .h4 .body, .night .h4 .roof { fill: #463d2a; }
.night .house .body, .night .house .roof { stroke: #6b6875; }
.night .house .trim { fill: #6b6875; }
.night .house .found { fill: #2a2533; }
.night .house .win { fill: #ffd38a; stroke: #6b6875; }
.night .h1 .win, .night .h3 .win { fill: #ff9ccc; }
.night .house .bay-win { opacity: .15; }
.night .neon { opacity: 1; }
.night .sidewalk { fill: #2a2533; }
.night .road { fill: #1f1b27; }
.night .rail { stroke: #6b6875; }
.night .slot { stroke: #15121c; }
.night .lamp .glow { opacity: .35; }
.night .lamp-head { fill: #ffe7a3; }
.night .car-win { fill: #ffd38a; }
.night .car-light { fill: #ff027d; }
.night .fog ellipse { fill: #6b6875; }
.night .sign-plate { fill: #1f5c3a; }

@media (prefers-reduced-motion: reduce) {
  .fog-back, .fog-front { animation: none; }
  .car { transition-duration: .01s; }
}
