/* Demolition Simulator (shared: sim3d.css + tycoon-kit.css) */
.dm-setup { display: grid; gap: 10px; }
.dm-h { margin: 4px 0 0; font-size: 18px; display: flex; gap: 10px; align-items: baseline; }
.dm-h small { font-size: 14px; opacity: .85; }
.dm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.dm-job { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: inherit; font: 800 14px system-ui, sans-serif; cursor: pointer; min-height: 60px; }
.dm-job i { grid-row: span 2; font-style: normal; font-size: 24px; text-align: center; }
.dm-job small { font-weight: 600; opacity: .8; font-size: 12px; }
.dm-job:hover:not(:disabled) { border-color: #facc15; }
.dm-job:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.dm-job.is-locked { opacity: .45; cursor: not-allowed; }
.dm-bar { position: absolute; left: 10px; top: 50px; width: min(260px, calc(100% - 20px)); height: 12px; border-radius: 6px; background: rgba(8, 16, 28, .7); border: 1px solid rgba(255, 255, 255, .3); overflow: hidden; pointer-events: none; }
.dm-bar u { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #f59e0b, #ef4444); transition: width .2s; }
.dm-bar i { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 4px #000; }
.dm-tools { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.dm-tools button { display: grid; justify-items: center; gap: 1px; min-width: 76px; min-height: 58px; padding: 5px 8px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(8, 16, 28, .82); color: #fff; font: 800 22px system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.dm-tools button small { font-size: 11px; font-weight: 800; opacity: .9; }
.dm-tools button:hover { border-color: #facc15; }
.dm-tools button.is-on { background: rgba(250, 204, 21, .92); color: #111; border-color: #facc15; }
.dm-tools button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.dm-act { width: min(270px, calc(100% - 20px)); }
.dm-act p { margin: 0 0 6px; }
.dm-yaw { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.dm-yaw input[type=range] { width: 100%; accent-color: #facc15; }
.dm-act .tk-warn { min-height: 44px; font-size: 16px; padding: 6px 16px; }
@container (max-width: 560px) {
  .dm-bar { top: 92px; left: 8px; width: calc(100% - 16px); height: 8px; }
  .dm-tools { left: 8px; right: 8px; bottom: auto; top: 106px; }
  .dm-tools button { flex: 1; min-width: 0; min-height: 48px; font-size: 18px; }
  .dm-act { max-height: 40%; width: auto; left: 8px; }
}
.dm-tools button.is-off { opacity: .35; cursor: not-allowed; }
