/* Build a Boat for Gold : page-specific styles (shared: sim3d.css, car-kit.css, boat3d.css, tycoon-kit.css) */
.sim-result[hidden] { display: none; }
.bb-tools { top: 10px; bottom: auto; right: 10px; }
.bb-card { position: absolute; left: 12px; top: 10px; background: rgba(8, 16, 28, .76); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 6px 11px 7px; pointer-events: none; display: flex; flex-direction: column; gap: 3px; max-width: 46%; }
.bb-card b { font: 900 14px system-ui, sans-serif; }
.bb-card small { font: 700 11.5px/1.3 system-ui, sans-serif; color: #e2e8f0; }
.bb-hp { width: 150px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.bb-hp i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #facc15 40%, #22c55e); transition: width .3s; }
.bb-hint { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); max-width: min(560px, calc(100% - 24px)); background: rgba(8, 16, 28, .8); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 5px 12px; font: 800 13px system-ui, sans-serif; text-align: center; pointer-events: none; }
.bb-hint[hidden] { display: none; }
.is-run .bb-hint { display: none; }
/* the block palette on the dock */
.bb-pal { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(8, 16, 28, .86); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.bb-pal[hidden] { display: none; }
.bb-blocks { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.bb-b { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 3px; border-radius: 11px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(30, 58, 95, .7); color: #fff; cursor: pointer; font: inherit; }
.bb-b span { font-size: 21px; line-height: 1.1; }
.bb-b b { font: 800 10.5px/1.15 system-ui, sans-serif; text-align: center; min-height: 24px; display: flex; align-items: center; }
.bb-b small { font: 800 10.5px system-ui, sans-serif; color: #86efac; }
.bb-b.is-on { border-color: #fde047; background: rgba(202, 138, 4, .5); }
.bb-b.is-out small { color: #fca5a5; }
.bb-b.is-out { opacity: .6; }
.bb-acts { display: flex; gap: 5px; flex-wrap: wrap; }
.bb-acts button { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 10px; padding: 5px 10px; font: 800 12.5px system-ui, sans-serif; cursor: pointer; min-height: 34px; }
.bb-acts button.is-on { background: rgba(185, 28, 28, .85); }
.bb-acts .bb-launch { margin-left: auto; background: linear-gradient(135deg, #16a34a, #0ea5e9); font-size: 14px; padding: 5px 16px; border-color: #86efac; }
.bb-acts .bb-launch:disabled { opacity: .45; cursor: not-allowed; }
.bb-b:focus-visible, .bb-acts button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
/* shop */
.bb-shop { top: 56px; width: min(420px, calc(100% - 20px)); max-height: calc(100% - 210px); overflow: auto; }
.bb-shop h5 { display: flex; justify-content: space-between; } .bb-shop h5 span { color: #fde047; }
.bb-shop__list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.bb-shop__it { display: flex; align-items: center; gap: 7px; }
.bb-shop__it > span { font-size: 20px; }
.bb-shop__it > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bb-shop__it small { font-size: 11px; opacity: .75; line-height: 1.25; }
.bb-shop__it button { padding: 3px 7px !important; min-height: 30px !important; font-size: 11.5px !important; white-space: nowrap; }
/* run: touch stick on the left, the cannon button on the right */
.bb-touch .sim-tbtns { left: auto; right: 16px; bottom: 18px; }
.bb-touch .sim-tbtn[data-id="fire"] { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; background: rgba(127, 29, 29, .8); }
@container (max-width: 560px) {
  .bb-tools { top: 8px; right: 8px; left: auto; }
  .w3-top { top: 8px; left: 8px; transform: none; align-items: flex-start; max-width: calc(100% - 130px); }
  .bb-card { top: 66px; left: 8px; padding: 4px 8px; max-width: 60%; } .bb-card b { font-size: 12px; } .bb-card small { font-size: 10.5px; } .bb-hp { width: 110px; }
  .bb-pal { left: 4px; right: 4px; bottom: 4px; padding: 4px; gap: 4px; }
  .bb-b { width: 70px; } .bb-b span { font-size: 18px; } .bb-b b { font-size: 9.5px; min-height: 22px; }
  .bb-acts button { padding: 4px 7px; font-size: 11px; min-height: 30px; }
  .bb-acts .bb-launch { font-size: 12.5px; padding: 4px 10px; }
  .bb-hint { bottom: 138px; font-size: 11px; }
  .bb-shop { top: 92px; max-height: calc(100% - 240px); }
  .w3-top .w3-big { font-size: 17px; padding: 2px 10px; }
}
.bb-tip { display: inline-block; margin: 4px 0; padding: 4px 8px; border-radius: 8px; background: rgba(250, 204, 21, .14); color: #fde68a; font-size: 13px; }
