/* Marble Run Builder (shared: sim3d.css + tycoon-kit.css) */
.mr-setup { display: grid; gap: 10px; }
.mr-h { margin: 4px 0 0; font-size: 18px; display: flex; gap: 10px; align-items: baseline; }
.mr-h small { font-size: 14px; opacity: .85; }
.mr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mr-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; }
.mr-job i { grid-row: span 2; font-style: normal; font-size: 24px; text-align: center; }
.mr-job small { font-weight: 600; opacity: .8; font-size: 12px; }
.mr-job:hover:not(:disabled) { border-color: #facc15; }
.mr-job:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.mr-job.is-locked { opacity: .45; cursor: not-allowed; }
.mr-pal { position: absolute; left: 10px; bottom: 10px; right: 70px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.mr-pal button { pointer-events: auto; display: grid; justify-items: center; gap: 1px; min-width: 50px; min-height: 46px; padding: 3px 4px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(8, 16, 28, .82); color: #fff; font: 800 19px system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.mr-pal button i { font-style: normal; line-height: 1.1; }
.mr-pal button small { font-size: 9.5px; }
.mr-pal button:hover { border-color: #facc15; }
.mr-pal button.is-on { background: rgba(250, 204, 21, .92); color: #111; border-color: #facc15; }
.mr-pal button:focus-visible, .mr-side button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.mr-side { position: absolute; right: 10px; top: 54%; transform: translateY(-50%); display: grid; gap: 4px; justify-items: center; background: rgba(8, 16, 28, .78); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 6px; }
.mr-side button { width: 42px; height: 34px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(30, 58, 95, .92); color: #fff; font: 900 18px system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.mr-side button:hover { background: rgba(37, 99, 235, .95); }
.mr-lvl { color: #fff; font: 800 11px system-ui, sans-serif; text-align: center; line-height: 1.1; }
.mr-lvl b { display: block; font-size: 18px; }
.sim-play .sim-toolbar { top: 10px; bottom: auto; }
.sim-toolbar .mr-roll { background: rgba(22, 163, 74, .95); font-size: 16px; padding-inline: 14px; }
@container (max-width: 560px) {
  .sim-play .sim-toolbar { top: 50px; }
  .mr-pal { right: 8px; left: 8px; bottom: 6px; gap: 3px; }
  .mr-pal button { min-width: 0; flex: 1 0 17%; min-height: 44px; font-size: 16px; padding: 3px 2px; }
  .mr-pal button small { font-size: 9px; }
  .mr-side { top: 96px; transform: none; right: 6px; padding: 4px; gap: 3px; }
  .mr-side button { width: 40px; height: 36px; font-size: 15px; }
}
