/* Cargo Ship Canal Simulator 3D : page-specific styles (shared styles come from the hub kit) */
#game-root .sim-controls-help { margin-top: 14px; }
#game-root .ak-pick.is-locked { opacity: .55; }
/* engine order telegraph */
.cs-tele { position: absolute; right: 12px; bottom: 64px; display: flex; flex-direction: column; gap: 2px; background: rgba(8, 16, 28, .78); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 6px; pointer-events: none; }
.cs-tele i { font: 800 10px/1 system-ui, sans-serif; font-style: normal; letter-spacing: .04em; color: rgba(226, 232, 240, .55); padding: 4px 8px; border-radius: 6px; text-align: center; }
.cs-tele i[data-v="0"] { border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.cs-tele i.is-on { background: #facc15; color: #111827; }
.cs-tele i.is-on[data-v^="-"] { background: #f87171; }
/* rudder angle */
.cs-rud { position: absolute; left: 12px; bottom: 102px; width: 150px; pointer-events: none; text-align: center; font: 800 10px system-ui, sans-serif; letter-spacing: .08em; color: #cbd5e1; }
.cs-rud b { display: block; position: relative; height: 10px; margin-top: 3px; border-radius: 5px; background: linear-gradient(90deg, #dc2626 0 46%, rgba(255, 255, 255, .25) 46% 54%, #16a34a 54%); opacity: .85; }
.cs-rud b i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 4px rgba(0, 0, 0, .6); }
/* speed limit + hull + schedule */
.cs-panel { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(8, 16, 28, .78); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 5px 12px 5px 6px; pointer-events: none; color: #fff; font: 800 14px system-ui, sans-serif; white-space: nowrap; }
.cs-panel small { display: block; font-size: 11.5px; font-weight: 700; opacity: .9; }
.cs-lim { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 5px solid #dc2626; color: #111; display: flex; align-items: center; justify-content: center; font: 900 15px system-ui, sans-serif; flex: none; }
.cs-lim.is-bad { animation: cs-flash .5s steps(2) infinite; }
@keyframes cs-flash { 50% { background: #dc2626; color: #fff; } }
.cs-touch .sim-tbtn[data-id="bowL"], .cs-touch .sim-tbtn[data-id="bowR"] { order: 2; background: rgba(14, 116, 144, .75); }
.cs-touch .sim-tbtn[data-id="bowL"] { margin-left: auto; }
.sim-has-touch .cs-tele { bottom: 112px; }
.sim-has-touch .cs-rud { bottom: 180px; }
@container (max-width: 480px) {
  .cs-touch .sim-tbtns { gap: 5px; }
  .cs-touch .sim-tbtn { min-width: 46px; flex: 1 1 0; padding-left: 0; padding-right: 0; }
  .cs-touch .sim-tbtn[data-id="bowL"] { margin-left: 8px; }
  .cs-panel { top: 142px; left: auto; right: 8px; transform: none; font-size: 12px; padding: 4px 8px 4px 4px; gap: 6px; }
  .cs-panel small { font-size: 10px; }
  .cs-lim { width: 30px; height: 30px; border-width: 4px; font-size: 12px; }
  .cs-tele { padding: 4px; } .cs-tele i { font-size: 8.5px; padding: 3px 5px; }
  .cs-rud { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .cs-lim.is-bad { animation: none; background: #fecaca; } }
