/* Shibuya Night (2026-10-22): on top of slop-newyork's css/style.css. Neon magenta & cyan accents replace the taxi
   yellow; the title screen, credits and the always-on data credit line are new. */
:root {
  --taxi: #ff3d8b; /* the mode pill & accents: Shibuya neon magenta (NYC: taxi yellow) */
  --taxi-ink: #1a0610;
  --neon-cyan: #34e3ff;
}

.sb-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(140deg, #ff3d8b, #7a3dff);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 0 18px rgba(255, 61, 139, 0.45);
}
.sb-mark.loader-bullet { width: 56px; height: 56px; margin-bottom: 22px; font-size: 26px; border-radius: 14px; }

.signal-chip { font-weight: 700; letter-spacing: 0.02em; }
.signal-chip.walk { color: #5ef0a0; }
.signal-chip.stop { color: #ff6b6b; }
.signal-chip.flash { color: #ffd166; }

/* ---------------------------------------------------------------- title */
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 6, 14, 0.55) 0%, rgba(5, 6, 14, 0) 26%, rgba(5, 6, 14, 0) 55%, rgba(5, 6, 14, 0.78) 100%);
  transition: opacity 0.8s var(--ease-out, ease);
}
body:not(.on-title) .title-screen { opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0s 0.8s; }
.title-block { text-align: center; pointer-events: auto; max-width: 560px; }
.title-kicker { color: var(--neon-cyan); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; text-shadow: 0 0 12px rgba(52, 227, 255, 0.6); }
.title-name {
  margin: 6px 0 4px;
  font-size: clamp(44px, 11vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 61, 139, 0.75), 0 0 60px rgba(255, 61, 139, 0.35);
}
.title-sub { margin: 10px 0 20px; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.title-play {
  font: 800 20px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.16em;
  padding: 16px 54px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, #ff3d8b, #8a3dff);
  box-shadow: 0 0 28px rgba(255, 61, 139, 0.6);
  cursor: pointer;
  min-height: 52px;
}
.title-play:disabled { opacity: 0.4; cursor: default; }
.title-play.small { font-size: 14px; padding: 10px 28px; min-height: 40px; }
.title-credit { margin-top: 16px; color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.title-sources { margin-top: 14px; max-width: 760px; text-align: center; color: rgba(255, 255, 255, 0.55); font-size: 11px; line-height: 1.5; pointer-events: auto; }
.link-btn { background: none; border: 0; color: var(--neon-cyan); font: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }

/* Hide the HUD on the title */
body.on-title .hud,
body.on-title #touch-controls,
body.on-title .data-credit { visibility: hidden; }

/* ---------------------------------------------------------------- credits */
.credits {
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(14, 15, 24, 0.96);
  color: #f2f2f6;
  padding: 22px 22px 18px;
  font: 14px/1.55 Inter, system-ui, sans-serif;
}
.credits::backdrop { background: rgba(0, 0, 0, 0.55); }
.credits h2 { margin: 0 0 2px; font-size: 22px; }
.credits h3 { margin: 16px 0 4px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--neon-cyan); }
.credits ul { margin: 0; padding-left: 18px; }
.credits a { color: var(--neon-cyan); }
.credits-note { color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.credits form { margin-top: 14px; text-align: right; }

/* Always-on data credit (CC BY needs the source shown with the work) */
.data-credit {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(2px + env(safe-area-inset-bottom));
  z-index: 15;
  font: 10px/1.2 Inter, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
@media (max-width: 520px) {
  .data-credit { font-size: 8.5px; }
  .title-sources { font-size: 10px; }
}

/* ?clean=1: still pictures without the HUD (the data credit line stays) */
body.shot-clean .hud,
body.shot-clean #touch-controls { visibility: hidden; }

/* ---------------------------------------------------------------- time of day & rain (3rd round, 2026-10-22)
   Its own small panel under the toolbar (the toolbar is full on phones). Reuses slop-newyork's .time-btn segments:
   the active time spells out its name. Shown on the title too, without the rest of the HUD. */
.hud-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.time-panel { display: flex; align-items: center; height: var(--bar-h); padding: 0 5px; pointer-events: auto; }
.time-panel .toolbar-divider { display: block; }
.rain-btn .icon-rain-off { display: none; }
.rain-btn:not(.active) .icon-rain-on { display: none; }
.rain-btn:not(.active) .icon-rain-off { display: block; }
body.on-title .hud-top-right { visibility: visible; }
body.on-title .hud-top-right .toolbar { display: none; }
body.on-title.shot-clean .hud-top-right,
body.shot-clean .time-panel { visibility: hidden; }
body.hud-minimized .time-panel { opacity: 0; pointer-events: none; }
body.touch-enabled .time-panel { height: auto; padding: 4px; }
/* Phones: the camera panel sits right under the toolbar, so the time & rain switch stands as a column on the left,
   under the 渋 mark (the left edge between the mark and the street name is free). On the title it stays top right. */
body.touch-enabled:not(.on-title) .time-panel {
  position: fixed;
  left: max(var(--edge), env(safe-area-inset-left));
  top: calc(max(var(--edge), env(safe-area-inset-top)) + 128px); /* +62 first: it covered the 渋 mark */
  flex-direction: column;
  height: auto;
}
body.touch-enabled:not(.on-title) .time-panel .time-switch { flex-direction: column; }
body.touch-enabled:not(.on-title) .time-panel .toolbar-divider { width: 20px; height: 1px; margin: 4px 0; }
