@font-face {
  font-family: DM;
  src: url(/assets/fonts/dm-sans.woff2);
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: Serif;
  src: url(/assets/fonts/instrument-serif.woff2);
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url(/assets/fonts/plex-mono.woff2);
  font-display: swap;
}

:root {
  --night: #0d1330;
  --night-2: #151d44;
  --ink: #fff3dc;
  --muted: #b8bedb;
  --amber: #ffc76b;
  --tram-red: #c4433b;
  --page: min(1160px, 100% - 32px);
  --scene-h: clamp(420px, 64vh, 680px);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 DM, system-ui, sans-serif;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--amber);
  color: var(--night);
}
.skip:focus {
  left: 8px;
}

/* Header */
.hb-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(16px, (100% - 1160px) / 2);
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(10px);
}
.hb-sign {
  font: 400 26px/1 Serif, Georgia, serif;
  text-decoration: none;
}
.hb-head nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.hb-head nav a {
  text-decoration: none;
  color: var(--muted);
}
.hb-head nav a:hover {
  color: var(--ink);
}

/* Hero */
.hb-hero {
  position: relative;
  background: linear-gradient(180deg, #0b1029 0%, #18224f 46%, #2c2f62 70%, #0d1330 100%);
  padding-bottom: 28px;
}
.hb-copy {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(24px, 4vh, 44px) 0 8px;
}
.hb-kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font: 600 13px/1.2 Mono, ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hb-copy h1 {
  margin: 0;
  font: 400 clamp(34px, 4.4vw, 58px) / 1.02 Serif, Georgia, serif;
  text-shadow: 0 2px 24px rgba(5, 8, 25, 0.9);
}

.hb-scene {
  position: relative;
  height: var(--scene-h);
  overflow: hidden;
}
.hb-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 4%, #fff 50%, transparent 51%);
  opacity: 0.7;
}
.hb-moon {
  position: absolute;
  right: 12%;
  top: 9%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff1c9;
  box-shadow: 0 0 60px 12px rgba(255, 228, 160, 0.25);
}
.hb-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 9200px;
  height: 720px;
  transform-origin: 0 0;
  will-change: transform;
}
.hb-skyline {
  position: absolute;
  left: 0;
  top: 0;
  width: 3400px;
  max-width: none;
  left: 0;
  height: 720px;
  will-change: transform;
}
.hb-street {
  position: absolute;
  inset: 0;
}
.hb-street > * {
  position: absolute;
}
/* The street: sidewalk at 560, curb at 596, road below. */
.hb-sidewalk {
  left: 0;
  right: 0;
  top: 560px;
  height: 36px;
  background: linear-gradient(#3b4270, #2b3159);
  box-shadow: 0 -2px 0 #535c95;
}
.hb-road {
  left: 0;
  right: 0;
  top: 596px;
  bottom: 0;
  background:
    repeating-linear-gradient(90deg, #d9c46a 0 46px, transparent 46px 110px) 0 66px / 100% 4px no-repeat,
    #151a33;
  box-shadow: inset 0 3px 0 #0c1024;
}
.hb-crosswalk {
  top: 600px;
  height: 116px;
  width: 140px;
  background: repeating-linear-gradient(90deg, #d8dbe8 0 14px, transparent 14px 28px);
  opacity: 0.55;
}

/* Buildings: an SVG facade (roofline at the top, water towers above it), with the app's
   poster window, awning and door as HTML on the storefront of its building. */
.hb-bldg,
.hb-shopfront {
  z-index: 20;
}
.hb-bldg {
  cursor: pointer;
}
.hb-facade {
  position: absolute;
  left: 0;
  top: -90px;
  max-width: none;
  pointer-events: none;
}
.hb-shop {
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 154px;
  height: 178px;
  padding: 0 6px 6px;
  background: #0d1020;
}
.hb-lightbox {
  position: relative;
  height: 172px;
  overflow: hidden;
  border-radius: 2px;
  background: #0c1129;
  filter: brightness(0.62) saturate(0.8);
  transition: filter 500ms;
}
.hb-bldg.active .hb-lightbox {
  filter: none;
  box-shadow: 0 0 40px 6px rgba(255, 210, 130, 0.35);
}
.hb-awning {
  position: absolute;
  left: 184px;
  bottom: 136px;
  width: 104px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 0 0 10px 10px;
  background: repeating-linear-gradient(90deg, #8f2b2b 0 13px, #c2453f 13px 26px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}
.hb-awning span {
  max-width: 96px;
  padding: 0 5px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(10, 12, 30, 0.78);
  font: 700 10.5px/1.5 DM, sans-serif;
  color: #fff3dc;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hb-bldg.active .hb-awning {
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 199, 107, 0.5);
}
.hb-doorway {
  position: absolute;
  left: 200px;
  bottom: 0;
  width: 72px;
  height: 130px;
  background: linear-gradient(#ffcf7a, #b57a3a);
  box-shadow: inset 0 0 0 5px #0d1020;
}
.hb-waiting {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 50px;
  height: 50px;
  translate: -50% 0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.hb-waiting.gone {
  visibility: hidden;
}

/* The elevated highway behind the buildings. */
.hb-highway {
  position: absolute;
  left: 0;
  top: 0;
  width: 9200px;
  height: 720px;
  max-width: none;
  z-index: 10;
}

/* People on the sidewalk: RAM Rush characters, flipping between the game's walk frames. */
.hb-people {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.hb-ped {
  position: absolute;
  bottom: 128px; /* feet on the sidewalk */
  animation: stroll var(--dur) linear var(--delay) infinite;
}
.hb-ped.left {
  transform: scaleX(-1);
}
.hb-ped img {
  display: block;
  zoom: 1.5;
  image-rendering: pixelated;
  max-width: none;
}
.hb-ped img + img {
  position: absolute;
  left: 0;
  bottom: 0;
}
.hb-ped img {
  animation: var(--anim) calc(var(--step) * var(--n)) steps(1) calc(var(--step) * var(--k) * -1) infinite;
}
.hb-ped img:only-child {
  animation: bob 0.5s ease-in-out infinite alternate;
}
@keyframes frame2 {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes frame4 {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
}
@keyframes bob {
  to {
    transform: translateY(-3px);
  }
}
@keyframes stroll {
  0% {
    translate: 0 0;
    opacity: 0;
  }
  6%,
  94% {
    opacity: 1;
  }
  100% {
    translate: var(--span) 0;
    opacity: 0;
  }
}
.is-paused .hb-ped,
.is-paused .hb-ped img,
.is-paused .hb-car {
  animation-play-state: paused;
}

/* Cars, vans, trucks and buses on the highway deck, behind the buildings. */
.hb-traffic {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}
.hb-car {
  position: absolute;
  animation: highway var(--dur) linear var(--delay) infinite;
}
@keyframes highway {
  /* westbound, in from beyond the right edge of the world and out beyond the left one */
  from {
    translate: var(--run) 0;
  }
  to {
    translate: 0 0;
  }
}
/* Oncoming cars on the ramps (placed by home.js): out of one car park, round the highway, into the other. */
.hb-vehicle {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform;
}
.hb-vehicle[hidden] {
  display: none;
}
.hb-highway-front {
  position: absolute;
  left: 0;
  top: 0;
  width: 9200px;
  height: 720px;
  max-width: none;
  z-index: 18;
  pointer-events: none;
}

/* Traffic lights at each corner. */
.hb-signal {
  z-index: 30;
  top: 330px;
  width: 8px;
  height: 266px;
  background: #2a3158;
}
.hb-signal b {
  position: absolute;
  left: -12px;
  top: -6px;
  width: 32px;
  height: 84px;
  padding: 5px;
  display: grid;
  gap: 4px;
  border-radius: 6px;
  background: #11152a;
}
.hb-signal b i {
  border-radius: 50%;
  background: #2b2f45;
}
.hb-signal.red b i:nth-child(1) {
  background: #ff4b4b;
  box-shadow: 0 0 16px 4px rgba(255, 75, 75, 0.6);
}
.hb-signal.green b i:nth-child(3) {
  background: #35e08a;
  box-shadow: 0 0 16px 4px rgba(53, 224, 138, 0.6);
}

/* The app hopping between the door and the taxi. */
.hb-hopper {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  z-index: 40;
  pointer-events: none;
}
.hb-hopper[hidden] {
  display: none;
}

.pst {
  position: absolute;
  inset: 0;
}
.pst .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pst-ram .bg {
  object-position: 30% 100%;
  image-rendering: pixelated;
}
.pst-ram .spr {
  position: absolute;
  left: 30px;
  bottom: 26px;
  width: 60px;
  height: auto;
  image-rendering: pixelated;
}
.pst-ram .spr.jump {
  animation: poster-jump 0.6s ease-out;
}
@keyframes poster-jump {
  50% {
    transform: translateY(-36px);
  }
}
.pst-chef .bg {
  object-position: 50% 50%;
}
.pst-chef .spr {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 112px;
  translate: -50% 0;
}
.pst-thumb {
  background: #fbf3e2;
}
.pst-thumb .spr {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  translate: -50% -50%;
}
.pst-thumb .spr.hop {
  animation: poster-jump 0.5s ease-out;
}
.pst-tq {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
  padding: 8px;
  background: #f4f1ea;
  font-size: 22px;
}
.pst-tq span {
  transition: transform 200ms, opacity 200ms;
}
.pst-tq span.gone {
  opacity: 0.12;
  transform: scale(0.7);
}
.pst-tq span.pop {
  transform: scale(1.35);
}
.pst-hm {
  padding: 14px 12px;
  background: #f7f3ea;
  color: #2b2a26;
}
.pst-hm .clock {
  display: block;
  font: 700 26px/1 DM, sans-serif;
}
.pst-hm .type {
  margin: 8px 0 0;
  font: 400 11px/1.45 Georgia, serif;
}
.pst-hm .type::after {
  content: "|";
  color: #2f4b7c;
}
.pst-ct {
  background: #06080b;
}
.pst-ct svg {
  position: absolute;
  inset: 6px 6px 26px;
  width: calc(100% - 12px);
  height: calc(100% - 32px);
}
.pst-ct path {
  fill: none;
  stroke: #3d6bff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px #3d6bff);
}
.pst-ct b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
  font: 800 13px/1 DM, sans-serif;
  color: #d6ff3d;
}

/* The taxi: side view, front at the right. Its pose (ramp height, scale, facing) comes from taxi.js. */
.hb-taxi {
  top: 588px;
  left: 0;
  width: 252px;
  height: 118px;
  z-index: 52;
  transform-origin: 0 100%;
  will-change: transform;
}
.hb-taxi.back {
  z-index: 13; /* on the highway, behind the buildings (oncoming cars at 14 are nearer) */
}
.hb-body {
  position: relative;
  height: 118px;
}
/* The cab is a sprite with 8 views (sprites made with Codex; tools/import_vehicles.py); home.js sizes
   it and picks the view from the direction of travel. */
.hb-cab {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform: rotate(var(--pitch, 0deg));
}
.hb-sprite,
.hb-hub {
  position: absolute;
  background-repeat: no-repeat;
}
.hb-taxi.taken .hb-free {
  display: none; /* the roof sign goes from green (free) to red (an app is on board) */
}
.hb-hub {
  border-radius: 50%;
  transform: rotate(var(--spin, 0deg));
}
.hb-hub[hidden] {
  display: none;
}
.hb-roof rect {
  fill: #35e08a;
  filter: drop-shadow(0 0 8px #35e08a);
  transition: fill 300ms;
}
.hb-roof text {
  fill: #0d1330;
}
.hb-taxi.taken .hb-roof rect {
  fill: #ff4b4b;
  filter: drop-shadow(0 0 8px #ff4b4b);
}
.hb-rider {
  position: absolute;
  border-radius: 4px;
  object-fit: cover;
}
.hb-rider[hidden] {
  display: none;
}
.hb-beam {
  position: absolute;
  right: -180px;
  top: 62px;
  width: 190px;
  height: 40px;
  background: linear-gradient(90deg, rgba(255, 240, 190, 0.35), transparent);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
}
.hb-taxi.flip .hb-beam {
  right: auto;
  left: -180px;
  transform: scaleX(-1);
}
.hb-taxi.end-on .hb-beam {
  display: none; /* only the side views throw a beam ahead */
}

/* The story card */
.hb-card {
  position: absolute;
  z-index: 6;
  left: max(16px, (100% - 1160px) / 2);
  bottom: 112px;
  width: min(380px, 100% - 32px);
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: rgba(13, 19, 48, 0.86);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 199, 107, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.45);
}
.hb-card {
  transition: opacity 400ms;
}
.hb-card.see-through:not(:hover, :focus-within) {
  opacity: 0.2;
}
.hb-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hb-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.hb-card-kind {
  margin: 0;
  font: 600 12px/1 Mono, monospace;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hb-card-name {
  margin: 4px 0 0;
  font: 400 32px/1 Serif, Georgia, serif;
}
.hb-card-line {
  margin: 12px 0 10px;
  color: #e6e2d8;
  font-size: 16px;
  line-height: 1.45;
}
.hb-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.hb-card-stats li {
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  font: 600 13px/1.6 DM, sans-serif;
}
.hb-visit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--amber);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
}
.hb-card.swap {
  animation: card-in 400ms ease-out;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Controls */
.hb-controls {
  width: var(--page);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
}
.hb-stops {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hb-stops button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px 6px 6px;
  border: 0;
  border-radius: 99px;
  background: var(--night-2);
  font-size: 14px;
  font-weight: 600;
}
.hb-stops img {
  border-radius: 8px;
}
.hb-stops [aria-pressed="true"] {
  background: var(--amber);
  color: var(--night);
}
.hb-play {
  display: flex;
  gap: 8px;
}
.hb-play button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.hb-progress {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.hb-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--amber);
}

/* Projects */
.hb-projects {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0 0;
}
.hb-projects h2 {
  max-width: 760px;
  margin: 0 0 32px;
  font: 400 clamp(30px, 4vw, 48px) / 1.05 Serif, Georgia, serif;
}
.hb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hb-pcard {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px;
  border-radius: 18px;
  background: var(--night-2);
  text-decoration: none;
  transition: transform 160ms ease-out, background 160ms;
}
.hb-pcard:hover {
  transform: translateY(-4px);
  background: #1c2656;
}
.hb-pcard img {
  border-radius: 16px;
  margin-bottom: 8px;
}
.hb-pcard .k {
  font: 600 12px/1 Mono, monospace;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hb-pcard b {
  font: 400 28px/1.1 Serif, Georgia, serif;
}
.hb-pcard p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.hb-pcard ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.hb-pcard li {
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
}
.hb-pcard .go {
  font-weight: 700;
  color: var(--amber);
}

/* About + contact (profile.html markup) */
.profile {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font: 600 13px/1.2 Mono, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bio-title {
  margin: 0 0 18px;
  font: 400 clamp(40px, 5vw, 64px) / 1 Serif, Georgia, serif;
}
.bio-title em,
.contact h2 em {
  color: var(--amber);
}
.profile p {
  color: #e2dfd6;
}
.underlink {
  font-weight: 700;
  color: var(--amber);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 20px;
}
.experience h3 {
  margin: 0 0 12px;
  font: 600 13px/1.2 Mono, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.experience article {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.experience h4 {
  margin: 0 0 4px;
  font-size: 18px;
}
.experience p {
  margin: 0;
  color: var(--muted);
}
.contact {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0;
}
.contact h2 {
  margin: 0 0 12px;
  font: 400 clamp(40px, 5vw, 64px) / 1 Serif, Georgia, serif;
}
.hb-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  padding: 22px max(16px, (100% - 1160px) / 2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 14px;
}

/* Phones: the copy sits above the street, the card below it. */
@media (max-width: 760px) {
  :root {
    --scene-h: 400px;
  }
  .hb-head nav {
    gap: 14px;
    font-size: 14px;
  }
  .hb-copy {
    padding: 24px 0 8px;
  }
  .hb-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 10px 16px 0;
    width: auto;
  }
  .hb-controls {
    grid-template-columns: 1fr;
  }
  .hb-stops {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .hb-stops button {
    flex: 0 0 auto;
  }
  .hb-grid {
    grid-template-columns: 1fr;
  }
  .profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (min-width: 761px) and (max-width: 1060px) {
  .hb-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Seasonal themes (season.js picks them by Bucharest time). */
.hb-fireworks,
.hb-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hb-snow {
  z-index: 6;
}
.hb-fireworks[hidden],
.hb-snow[hidden] {
  display: none;
}
.hb-sleigh {
  display: none;
}
.hb-body .hb-sleigh {
  display: none;
}
.season-christmas .hb-body .hb-cab {
  display: none;
}
.season-christmas .hb-body .hb-sleigh {
  display: block;
  overflow: visible;
  transform: scaleX(var(--facing, 1));
}
.season-christmas .hb-rider {
  left: 84px !important;
  top: 38px !important;
  width: 30px !important;
  height: 26px !important;
}
.season-christmas .hb-beam {
  display: none;
}
.hb-sleigh .nose {
  filter: drop-shadow(0 0 5px #ff3b3b);
}
.season-christmas .hb-bldg::after,
.season-christmas .hb-shopfront::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 182px;
  z-index: 3;
  height: 12px;
  pointer-events: none;
  background:
    radial-gradient(circle at 6px 6px, #ff5d5d 0 3.5px, transparent 4px) 0 0 / 48px 12px repeat-x,
    radial-gradient(circle at 6px 6px, #7cf5c4 0 3.5px, transparent 4px) 16px 0 / 48px 12px repeat-x,
    radial-gradient(circle at 6px 6px, #ffd166 0 3.5px, transparent 4px) 32px 0 / 48px 12px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255, 220, 150, 0.8));
  animation: twinkle 1.6s steps(2) infinite;
}
.season-christmas .hb-shopfront::after {
  bottom: 152px;
}
.season-christmas .hb-bldg::before,
.season-christmas .hb-shopfront::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: -6px;
  z-index: 3;
  height: 10px;
  border-radius: 6px;
  background: #f4f7ff;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.35);
}
.season-christmas .hb-sidewalk {
  background: linear-gradient(#eef2ff, #c6cfe8);
}
@keyframes twinkle {
  50% {
    opacity: 0.6;
  }
}

/* Real 3D vehicles (cars3d.js): two canvases inside the world, one behind the buildings and one in
   front. Once they are drawing, the sprites underneath are hidden (they stay as the fallback). */
.hb-3d {
  position: absolute;
  top: 0;
  pointer-events: none;
}
.hb-world {
  transition: opacity 600ms ease-out;
}
.loading-3d .hb-world {
  opacity: 0; /* only the sky until the 3D street is ready */
}
/* The drawn vehicles are only the fallback: not shown (or even downloaded) while 3D loads or runs. */
.loading-3d .hb-cab,
.loading-3d .hb-vehicle,
.loading-3d .hb-traffic,
.has-3d .hb-cab,
.has-3d .hb-vehicle,
.has-3d .hb-traffic {
  display: none;
}
.has-3d .hb-beam {
  visibility: hidden;
}
.santa-3d .hb-sleigh,
.santa-3d .hb-rider {
  display: none !important; /* Santa's sleigh (and the app riding it) is 3D */
}
body:not(.season-christmas) .has-3d .hb-rider {
  visibility: hidden;
}
.hb-credits {
  flex-basis: 100%;
  opacity: 0.6;
  font-size: 12px;
}
.hb-credits a {
  color: inherit;
}
/* ?city=3d: the 3D street replaces the drawn one; the app buildings' shop windows stay on top. */
.city-3d .hb-facade,
.city-3d .hb-shopfront,
.city-3d .hb-highway,
.city-3d .hb-highway-front,
.city-3d .hb-sidewalk,
.city-3d .hb-road,
.city-3d .hb-crosswalk,
.city-3d .hb-people,
.city-3d .hb-signal {
  visibility: hidden;
}
.city-3d .hb-bldg {
  z-index: 20;
}
/* In the 3D city the 3D buildings carry the Christmas snow and lights. */
.city-3d .hb-bldg::before,
.city-3d .hb-bldg::after {
  display: none;
}
