* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #6fb3ea;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }
#parade { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; cursor: pointer; }
header { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; pointer-events: none; padding: 0 12px; }
header h1 { margin: 0; display: inline-block; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700;
  font-size: clamp(17px, 3.4vw, 40px); white-space: nowrap; color: #fff; background: #b3121f; padding: .22em .8em .28em; border-radius: 999px;
  border: 3px solid #f6c915; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
header p { margin: 8px 0 0; font-size: clamp(11px, 1.3vw, 15px); font-weight: 700; color: #1b2a49; letter-spacing: .04em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.6); }
#bottom { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  pointer-events: none; }
#ticker { max-width: min(100%, 720px); display: flex; align-items: center; gap: 10px; background: rgba(17,20,28,.86); color: #fff;
  padding: 8px 16px 8px 8px; border-radius: 999px; font-size: clamp(13px, 1.6vw, 17px); font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.3); }
#ticker .lab { flex: none; background: #f6c915; color: #1d1f23; border-radius: 999px; padding: 4px 10px; font-size: .72em;
  text-transform: uppercase; letter-spacing: .06em; }
#now { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#now:empty::after { content: "The street, briefly"; opacity: .7; }
#pausebadge { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(17,20,28,.86);
  color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 14px; pointer-events: none; }
body.paused #pausebadge { display: block; }
footer { max-width: 100%; text-align: center; font-size: 13px; line-height: 1.35; color: #fff; background: rgba(17,20,28,.72);
  padding: 6px 14px; border-radius: 12px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
footer { text-wrap: balance; }
footer span { display: inline-block; white-space: nowrap; }
footer a { color: #fff; font-weight: 700; pointer-events: auto; }
/* Phones on their side: keep the chrome out of the parade's way. */
@media (max-height: 480px) {
  header { top: max(6px, env(safe-area-inset-top)); }
  header h1 { font-size: 16px; border-width: 2px; }
  header p { display: none; }
  #bottom { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 10px; padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  #ticker { font-size: 12px; padding: 5px 12px 5px 5px; }
  footer { font-size: 11px; padding: 5px 10px; }
}
