/* Euro Lorry Simulator 3D (shared: sim3d.css + car-kit.css) */
#game-root .sim-controls-help { margin-top: 14px; }
/* fuel / fatigue / cargo gauges */
.el-gauges { position: absolute; left: 12px; bottom: 100px; display: flex; flex-direction: column; gap: 4px; background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 5px 8px; }
.el-g { display: flex; align-items: center; gap: 6px; }
.el-g span { font-size: 14px; width: 18px; text-align: center; }
.el-g div { width: 74px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.el-g i { display: block; height: 100%; width: 100%; background: #4ade80; transition: width .3s; }
.el-g[data-g="fat"] i { background: #a78bfa; }
.el-g[data-g="dmg"] i { background: #38bdf8; }
.el-g.is-low i { background: #ef4444; animation: el-blink 1s steps(2) infinite; }
@keyframes el-blink { 50% { opacity: .35; } }
/* the action button in the toolbar */
.sim-toolbar .el-act { background: #16a34a; color: #fff; font-weight: 800; }
/* drowsy vignette + the sleep fade */
.el-tired { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(10, 6, 30, .95) 100%); }
.el-fade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: #050816; display: grid; place-items: center; transition: opacity .9s; }
.el-fade p { font-size: 54px; margin: 0; }
.el-fade.is-on { opacity: .96; }
/* the route strip */
.el-route { position: absolute; right: 14px; top: 12px; width: min(36%, 360px); background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 18px 22px; }
.el-route__line { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin-top: 8px; }
.el-route__stop { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.el-route__stop em { font-style: normal; font-size: 13px; line-height: 1; background: rgba(8, 16, 28, .9); border-radius: 50%; padding: 2px; }
.el-route__stop small { position: absolute; top: 15px; font: 700 10px system-ui, sans-serif; white-space: nowrap; opacity: .85; }
.el-route__stop.is-done { opacity: .45; }
.el-route__stop.is-first small { left: -6px; }
.el-route__stop.is-last small { right: -6px; }
.el-route__stop:not(.is-first):not(.is-last) small { display: none; }
.el-route__truck { position: absolute; top: -17px; transform: translateX(-50%) scaleX(-1); font-size: 16px; transition: left .3s linear; }
.el-ticket { position: absolute; left: 12px; bottom: 170px; background: rgba(21, 128, 61, .88); border-radius: 10px; padding: 4px 10px; font: 800 14px system-ui, sans-serif; opacity: 0; pointer-events: none; }
.el-ticket.is-on { animation: el-pop 1.8s ease-out; }
@keyframes el-pop { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.sim-has-touch .el-gauges { bottom: 186px; }
.sim-has-touch .el-ticket { bottom: 256px; }
.ck-touch .sim-tbtn[data-id="act"] { 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) {
  .el-route { left: 8px; right: 8px; top: 6px; width: auto; padding: 4px 14px 16px; }
  .el-route__stop small { display: none; }
  .sim-toolbar { top: 46px; right: 8px; }
  .ck-mission { top: 90px; }
  .ck-nav { top: 146px; }
  .el-g div { width: 54px; }
  .sim-has-touch .el-gauges { bottom: 176px; }
  .sim-has-touch .el-ticket { bottom: 246px; }
}
@media (prefers-reduced-motion: reduce) { .el-ticket.is-on { animation: none; opacity: 1; } .el-route__truck { transition: none; } .el-g.is-low i { animation: none; } }
/* which side of the road */
.el-side { position: absolute; left: 12px; bottom: 196px; background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 12px; font: 800 12px system-ui, sans-serif; pointer-events: none; }
.sim-has-touch .el-side { bottom: 282px; }
@container (max-width: 480px) { .el-side { display: none; } }
