/* Coach Bus Simulator 3D (shared: sim3d.css + car-kit.css) */
#game-root .sim-controls-help { margin-top: 14px; }
.cb-comfort { position: absolute; left: 12px; bottom: 100px; display: flex; align-items: center; gap: 6px; background: rgba(8, 16, 28, .7); border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 3px 8px; }
.cb-comfort span { font-size: 18px; }
.cb-comfort div { width: 70px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.cb-comfort i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ef4444, #facc15, #4ade80); }
/* the route strip: stops along a line, the coach moving along it */
.cb-route { position: absolute; right: 14px; top: 12px; width: min(34%, 340px); background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 18px 22px; }
.cb-route__line { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin-top: 8px; }
.cb-route__stop { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.cb-route__stop em { font-style: normal; font-size: 14px; line-height: 1; background: rgba(8, 16, 28, .9); border-radius: 50%; padding: 2px; }
.cb-route__stop small { position: absolute; top: 15px; font: 700 10px system-ui, sans-serif; white-space: nowrap; opacity: .85; }
.cb-route__stop.is-done { opacity: .45; }
.cb-route__stop.is-first small { left: -6px; }
.cb-route__stop.is-last small { right: -6px; }
.cb-route__stop.is-toll em { font-size: 11px; }
.cb-route__stop:not(.is-first):not(.is-last) small { display: none; }
.cb-route__bus { position: absolute; top: -17px; transform: translateX(-50%) scaleX(-1); font-size: 16px; transition: left .3s linear; }
.cb-ticket { position: absolute; left: 12px; bottom: 136px; background: rgba(21, 128, 61, .88); border-radius: 10px; padding: 4px 10px; font: 800 14px system-ui, sans-serif; opacity: 0; transform: translateY(6px); pointer-events: none; }
.cb-ticket.is-on { animation: cb-pop 1.4s ease-out; }
@keyframes cb-pop { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.sim-has-touch .cb-comfort { bottom: 186px; }
.sim-has-touch .cb-ticket { bottom: 222px; }
.ck-touch .sim-tbtn[data-id="doors"] { order: 2; margin-left: auto; }
.ck-touch .sim-tbtn[data-id="hb"] { display: none; }
@container (max-width: 760px) { .ck-nav { top: 74px; } }
@container (max-width: 480px) {
  .cb-route { left: 8px; right: 8px; top: 6px; width: auto; padding: 4px 14px 16px; }
  .cb-route__stop small { display: none; }
  .sim-toolbar { top: 46px; right: 8px; }
  .ck-mission { top: 90px; }
  .ck-nav { top: 146px; }
  .sim-has-touch .cb-comfort { bottom: 176px; }
  .sim-has-touch .cb-ticket { bottom: 210px; }
}
@media (prefers-reduced-motion: reduce) { .cb-ticket.is-on { animation: none; opacity: 1; } .cb-route__bus { transition: none; } }
