/* Truck Hopper 3D (shared: sim3d.css) */
#game-root .sim-controls-help { margin-top: 14px; }
.th-shop { margin-top: 16px; }
.th-shop h3 { margin: 0 0 8px; font-size: 16px; }
.th-shop h3 small { font-weight: 700; opacity: .75; margin-left: 6px; }
.th-shop__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.th-ab { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; font: inherit; }
.th-ab small { opacity: .75; font-size: 12px; line-height: 1.3; }
.th-ab em { font-style: normal; font-weight: 800; font-size: 13px; color: #facc15; }
.th-ab.is-own em { color: #67e8f9; }
.th-ab.is-on { border-color: #4ade80; background: rgba(74, 222, 128, .12); }
.th-ab.is-on em { color: #4ade80; }
.th-ab:focus-visible { outline: 3px solid #67e8f9; outline-offset: 2px; }
/* in-game HUD */
.th-hud { position: absolute; left: 12px; top: 12px; background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 6px 12px; min-width: 120px; }
.th-hud__pts b { font: 900 22px/1 system-ui, sans-serif; }
.th-hud__pts small { margin-left: 5px; font: 700 11px system-ui, sans-serif; opacity: .75; text-transform: uppercase; }
.th-hud__info { font: 700 12px system-ui, sans-serif; opacity: .85; margin-top: 3px; }
.th-energy { margin-top: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.th-energy i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #38bdf8, #a78bfa); }
.th-prog { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(40%, 360px); }
.th-prog div { height: 8px; border-radius: 4px; background: rgba(8, 16, 28, .6); border: 1px solid rgba(255, 255, 255, .2); overflow: hidden; }
.th-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #facc15, #4ade80); }
.th-prog::after { content: "🏁"; position: absolute; right: -22px; top: -6px; font-size: 16px; }
.th-cross { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); pointer-events: none; }
.th-pop { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); font: 900 20px system-ui, sans-serif; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; white-space: nowrap; }
.th-pop.is-on { animation: th-pop 1.1s ease-out; }
@keyframes th-pop { 0% { opacity: 0; transform: translate(-50%, 10px); } 15% { opacity: 1; transform: translate(-50%, 0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -16px); } }
.th-lock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(8, 16, 28, .72); border-radius: 999px; padding: 4px 12px; font: 700 12px system-ui, sans-serif; pointer-events: none; }
.sim-stage.th-slow canvas { filter: saturate(.55) contrast(1.08) hue-rotate(10deg); }
.sim-has-touch .th-lock { display: none; }
@container (max-width: 480px) {
  .th-prog { top: auto; bottom: 8px; width: 60%; }
  .th-hud { top: 8px; left: 8px; padding: 4px 9px; }
  .sim-toolbar { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .th-pop.is-on { animation: none; opacity: 1; } }
