.live-only { display: none !important; }
.controls.live .live-only { display: flex !important; }
.controls.live button.live-only { display: block !important; }
.diff-seg button { font-size: 12px; padding: 0 4px; }

.road-wrap {
  flex: 1; margin-top: 10px; border-radius: 14px; overflow-x: auto; overflow-y: hidden; position: relative;
  background: #2a2f3a; box-shadow: inset 0 0 0 2px #ffffff08, inset 0 0 60px #0008; scrollbar-width: thin;
}
.road { position: relative; display: flex; height: 100%; min-height: 420px; width: max-content; }
.curb {
  flex: none; width: 130px; display: grid; place-items: center; position: relative;
  background: repeating-linear-gradient(0deg, #6b7280 0 40px, #5b6170 40px 80px);
  box-shadow: inset -6px 0 0 #d4d4d8, inset 6px 0 0 #9ca3af;
}
.curb.end { background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 32px 32px; box-shadow: none; font-size: 40px; }
.curb.end span { filter: drop-shadow(0 4px 6px #0008); }
.lane {
  flex: none; width: 118px; position: relative; display: grid; place-items: center; overflow: hidden;
  border-right: 4px dashed #ffffff40; background: #343a46; transition: background .3s;
}
.lane.next { background: #3b4352; }
.lane.passed { background: #2c3a36; }
.manhole {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: radial-gradient(circle at 40% 35%, #6b7280, #374151 70%); box-shadow: inset 0 0 0 5px #1f2937, inset 0 0 0 9px #4b5563, 0 6px 12px #0007;
  font-weight: 800; font-size: 14px; color: #fff; text-shadow: 0 2px 4px #000a;
}
.lane.next .manhole { box-shadow: inset 0 0 0 5px #1f2937, inset 0 0 0 9px #ffc23d, 0 0 24px #ffc23d55; animation: pulseHole 1.2s infinite; }
@keyframes pulseHole { 50% { transform: scale(1.06); } }
.lane.safe .manhole { background: radial-gradient(circle at 40% 35%, #34ef8d, #0f8a4b 70%); box-shadow: inset 0 0 0 5px #064e2a, 0 0 22px #22e07a55; }
.lane.passed::after { /* barrier behind the chicken */
  content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 22px; z-index: 2;
  background: repeating-linear-gradient(90deg, #ff2e3f 0 14px, #fff 14px 28px); border-radius: 0 0 6px 6px; box-shadow: 0 4px 8px #0007;
}
.car-slot { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.car { position: absolute; left: 50%; width: 86px; transform: translate(-50%, -120%); filter: drop-shadow(0 10px 10px #0009); animation: drive 1.5s linear forwards; }
.car.hit { animation: drive .55s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes drive { to { top: 0; transform: translate(-50%, 620px); } }
.chick {
  position: absolute; top: 50%; width: 92px; transform: translate(-50%, -62%); z-index: 4; transition: left .3s cubic-bezier(.3, .8, .4, 1);
  filter: drop-shadow(0 10px 8px #0008); pointer-events: none;
}
.chick.hop { animation: hop2 .3s ease-out; }
@keyframes hop2 { 50% { transform: translate(-50%, -95%) scale(1.05); } }
.chick.dead { width: 104px; transform: translate(-50%, -40%); }
.shake-stage .road-wrap { animation: shake .4s; }

@media (max-width: 640px) {
  .lane { width: 92px; } .curb { width: 90px; } .manhole { width: 66px; height: 66px; font-size: 12px; }
  .chick { width: 72px; } .car { width: 70px; } .road { min-height: 340px; }
}
