/* Shared styles for the 3D boat games (water3d.js). Works on top of sim3d.css (+ car-kit.css / bike3d.css helpers). */
#game-root .sim-controls-help { margin-top: 14px; }
.w3-hud { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.w3-speed { background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 6px 12px 6px; text-align: center; min-width: 86px; }
.w3-speed b { display: block; font: 900 32px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.w3-speed small { font: 700 10px system-ui, sans-serif; letter-spacing: .1em; opacity: .75; }
.w3-thr { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 4px; }
.w3-thr i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #22c55e, #facc15); }
.w3-extra { background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 6px 10px; font: 800 13px system-ui, sans-serif; }
.w3-top { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.w3-big { background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 3px 16px; font: 900 26px system-ui, sans-serif; font-variant-numeric: tabular-nums; min-width: 110px; text-align: center; }
.w3-sub { display: flex; gap: 10px; font: 800 14px system-ui, sans-serif; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.w3-board { position: absolute; left: 12px; top: 10px; background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 6px 10px; font: 700 13px/1.45 system-ui, sans-serif; min-width: 150px; pointer-events: none; }
.w3-board b { font-weight: 900; } .w3-board .is-me { color: #fde047; }
.w3-pop { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); font: 900 clamp(18px, 3vw, 30px) system-ui, sans-serif; color: #fde047; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; white-space: nowrap; }
.w3-pop.is-on { animation: w3-pop 1.2s ease-out forwards; }
@keyframes w3-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90%) scale(1); } }
.w3-bar { position: relative; width: 160px; height: 12px; border-radius: 6px; background: rgba(8, 16, 28, .6); border: 1px solid rgba(255, 255, 255, .25); overflow: hidden; }
.w3-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #38bdf8, #a78bfa); }
.w3-bar span { position: absolute; inset: 0; text-align: center; font: 900 9px/12px system-ui, sans-serif; letter-spacing: .12em; }
.w3-touch .sim-tbtn[data-id="hop"], .w3-touch .sim-tbtn[data-id="boost"], .w3-touch .sim-tbtn[data-id="fire"], .w3-touch .sim-tbtn[data-id="act"] { order: 2; margin-left: auto; background: rgba(194, 65, 12, .75); }
.sim-has-touch .w3-hud { bottom: 100px; }
/* harbour games: objective card (harbor3d.js Objective) */
.hb-obj { position: absolute; left: 12px; top: 10px; max-width: min(340px, 46%); background: rgba(8, 16, 28, .76); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 7px 11px; pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.hb-obj .hb-t { font: 900 14px system-ui, sans-serif; color: #fde047; }
.hb-obj .hb-d { font: 600 12.5px/1.35 system-ui, sans-serif; color: #e2e8f0; }
.hb-bar { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 3px; }
.hb-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #facc15); }
.hb-money { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(8, 16, 28, .72); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 4px 14px; font: 900 17px system-ui, sans-serif; color: #fde047; pointer-events: none; }
.hb-jobs { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(4, 10, 20, .55); pointer-events: auto; padding: 10px; }
.hb-jobs[hidden] { display: none; }
.hb-jobs__card { width: min(560px, 100%); max-height: 100%; overflow: auto; background: rgba(14, 22, 36, .96); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 14px 16px; color: #e2e8f0; }
.hb-jobs__card h3 { margin: 0 0 8px; color: #fff; }
.hb-job { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; margin: 5px 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #e2e8f0; cursor: pointer; font: inherit; }
.hb-job:hover:not(:disabled) { border-color: #fde047; }
.hb-job:disabled { opacity: .45; cursor: default; }
.hb-job b { color: #fff; } .hb-job em { margin-left: auto; font-style: normal; font-weight: 900; color: #86efac; white-space: nowrap; }
.hb-job span { font-size: 12px; opacity: .8; display: block; }
@container (max-width: 480px) { .hb-obj { top: 90px; max-width: 70%; padding: 5px 8px; } .hb-obj .hb-t { font-size: 12px; } .hb-obj .hb-d { font-size: 11px; } .hb-money { top: 8px; font-size: 14px; } }
@container (max-width: 480px) {
  .w3-top { top: 92px; }
  .w3-big { font-size: 20px; min-width: 86px; }
  .w3-speed b { font-size: 24px; } .w3-speed { min-width: 66px; }
  .w3-board { top: 50px; font-size: 11px; min-width: 120px; }
  .sim-has-touch .w3-hud { bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { .w3-pop.is-on { animation: none; opacity: 1; } }
