/* daje.css · Daje Roma! drawn by hand: the light map of the centre, the red dock, Bus 64 live and its dark sheet.
   Contract: demos/README.md. Only transform and opacity move (set by daje.js); everything here is the still look. */
.d-daje { position: absolute; inset: 0; overflow: hidden; background: #f3f1ec; color: #111;
  font-family: -apple-system, "SF Pro Text", "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.d-daje * { box-sizing: border-box; }
.d-daje .dj-tall { font-family: "Oswald", "SF Pro Display", "Arial Narrow", sans-serif; font-weight: 700; font-stretch: condensed; letter-spacing: -.005em; }
.d-daje .dj-cam { position: absolute; left: 0; top: 0; width: 393px; height: 852px; transform-origin: 250px 300px; will-change: transform; }
.d-daje .dj-cam > svg { position: absolute; left: 0; top: 0; width: 393px; height: 852px; display: block; }
.d-daje .dj-map text { font-family: "Geist", -apple-system, system-ui, sans-serif; font-weight: 700; paint-order: stroke; stroke: #f8f7f4; stroke-width: 4px; stroke-linejoin: round; }

/* the buses: a red body along its street and the line's tag over it */
.d-daje .dj-bus { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; }
.d-daje .dj-body { position: absolute; left: -16px; top: -8px; width: 32px; height: 16px; border-radius: 4.5px;
  background: linear-gradient(#d92b3e, #a3162a); box-shadow: inset 0 0 0 1.5px #7c0f1f, 0 2px 4px rgba(0, 0, 0, .3); }
.d-daje .dj-body::after { content: ""; position: absolute; left: 5px; right: 5px; top: 4px; bottom: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.d-daje .dj-tag { position: absolute; left: 0; bottom: 11px; transform: translateX(-50%); white-space: nowrap; padding: 2px 7px 3px;
  border-radius: 10px; background: #c0182c; color: #fff; font: 700 15px/1.1 "Geist", -apple-system, system-ui, sans-serif;
  box-shadow: 0 0 0 2px #fff, 0 2px 5px rgba(0, 0, 0, .3); }
.d-daje .dj-tag.dj-long { left: -14px; transform: none; font-style: italic; }
.d-daje .dj-halo { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid #ff5a3c; background: rgba(255, 90, 60, .14); opacity: 0; }

/* where the person stands: at Nazionale/Quirinale, waiting */
.d-daje .dj-me { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: #ff5a3c;
  box-shadow: 0 0 0 3.5px #fff, 0 2px 6px rgba(0, 0, 0, .35); }
.d-daje .dj-pulse { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 90, 60, .35); }
.d-daje .dj-ping { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 4px solid #30c76b; opacity: 0; }
.d-daje .dj-stopname { position: absolute; left: 17px; top: -9px; white-space: nowrap; font: 700 16px/1 "Geist", -apple-system, system-ui, sans-serif; color: #111;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; opacity: 0; }

/* the round buttons over the map */
.d-daje .dj-btn { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 26px; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); }
.d-daje .dj-mega { left: 14px; top: 58px; width: 46px; height: 46px; background: #fff; }
.d-daje .dj-wx { right: 14px; top: 58px; height: 46px; padding: 0 14px 0 11px; gap: 5px; background: #2c2c2e; color: #fff; font: 700 21px/1 "Geist", -apple-system, system-ui, sans-serif; }
.d-daje .dj-loc { right: 14px; top: 112px; width: 46px; height: 46px; background: #2c2c2e; }
.d-daje .dj-btn svg { display: block; }

/* the dock: Daje's red, the categories as round toys */
.d-daje .dj-dock { position: absolute; left: 7px; right: 7px; bottom: 9px; height: 96px; border-radius: 40px; overflow: hidden;
  background: linear-gradient(#a3253a, #8e1f2f); box-shadow: 0 0 0 3px #1c1c1e, 0 8px 20px rgba(0, 0, 0, .3); }
.d-daje .dj-item { position: absolute; top: 9px; width: 70px; margin-left: -35px; text-align: center; color: #fff;
  font: 700 13.5px/1 "Geist", -apple-system, system-ui, sans-serif; letter-spacing: -.01em; }
.d-daje .dj-ico { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff9f0, #f6e4cc);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; }
.d-daje .dj-ico svg { width: 38px; height: 38px; display: block; }
.d-daje .dj-sel { position: absolute; left: 50%; top: -4px; width: 62px; height: 62px; margin-left: -31px; border-radius: 50%;
  box-shadow: 0 0 0 3.5px #fff, 0 0 0 6px #ff5a3c; opacity: 0; }

/* the dark sheet of a line */
.d-daje .dj-sheet { position: absolute; left: 8px; right: 8px; top: 488px; height: 356px; border-radius: 44px; background: #1c1c1e; color: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .28); will-change: transform; }
.d-daje .dj-grab { position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #5b5b60; }
.d-daje .dj-head { position: absolute; left: 22px; top: 28px; right: 22px; height: 58px; display: flex; align-items: center; gap: 14px; }
.d-daje .dj-busic { width: 56px; height: 56px; border-radius: 50%; background: #c8102e; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), 0 0 0 2px #e8475a;
  display: flex; align-items: center; justify-content: center; flex: none; }
.d-daje .dj-busic svg { width: 32px; height: 32px; }
.d-daje .dj-title { font-size: 44px; line-height: 1; }
.d-daje .dj-x { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: #3a3a3c; display: flex; align-items: center; justify-content: center; flex: none; }
.d-daje .dj-trip { position: absolute; left: 16px; right: 16px; top: 104px; height: 82px; border-radius: 20px; background: #27282d; }
.d-daje .dj-trip i { position: absolute; left: 22px; width: 11px; height: 11px; border-radius: 50%; }
.d-daje .dj-trip i:nth-child(1) { top: 20px; box-shadow: inset 0 0 0 2.5px #e0283f; }
.d-daje .dj-trip i:nth-child(2) { top: 52px; background: #e0283f; }
.d-daje .dj-trip u { position: absolute; left: 26.5px; top: 31px; width: 2px; height: 21px; background: #e0283f; }
.d-daje .dj-trip p { position: absolute; left: 50px; margin: 0; white-space: nowrap; }
.d-daje .dj-from { top: 15px; font: 500 16px/1.2 -apple-system, "Geist", system-ui, sans-serif; color: #9a9aa0; }
.d-daje .dj-to { top: 44px; font: 650 22px/1.2 -apple-system, "Geist", system-ui, sans-serif; color: #fff; }
.d-daje .dj-lab { position: absolute; left: 24px; top: 226px; font: 700 13px/1 "Geist", -apple-system, system-ui, sans-serif; letter-spacing: .09em; color: #8e8e93; }
.d-daje .dj-when { position: absolute; right: 24px; top: 186px; width: 180px; height: 62px; }
.d-daje .dj-when span { position: absolute; right: 0; bottom: 0; white-space: nowrap; line-height: 1; transform-origin: 100% 80%; opacity: 0; }
.d-daje .dj-tra { font-size: 38px; color: #fff; }
.d-daje .dj-tra small { font-size: 24px; color: #c7c7cc; margin-right: 6px; }
.d-daje .dj-ora { font-size: 66px; color: #30c76b; }
.d-daje .dj-stop { position: absolute; left: 24px; top: 250px; font-size: 36px; line-height: 1.05; white-space: nowrap; }
.d-daje .dj-away { position: absolute; left: 24px; top: 298px; width: 330px; height: 24px; }
.d-daje .dj-away span { position: absolute; left: 0; top: 0; white-space: nowrap; font: 700 18px/1.2 -apple-system, "Geist", system-ui, sans-serif; color: #d1d1d6; opacity: 0; }
.d-daje .dj-away span.dj-go { color: #30c76b; }

/* the finger: a soft circle that taps */
.d-daje .dj-finger { position: absolute; left: -29px; top: -29px; width: 58px; height: 58px; border-radius: 50%; z-index: 40; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .78) 0 52%, rgba(255, 255, 255, .5) 70%, rgba(255, 255, 255, .35));
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .14), 0 6px 18px rgba(0, 0, 0, .28); }
.d-daje .dj-ripple { position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%; z-index: 39; opacity: 0; pointer-events: none;
  border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
