/* Engine Simulator (shared: sim3d.css) */
#game-root .sim-controls-help { margin-top: 14px; }
.es-tach { position: absolute; left: 10px; bottom: 10px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(15, 23, 42, .92) 60%, rgba(15, 23, 42, .75)); border: 2px solid rgba(255, 255, 255, .2); }
.es-tach canvas { width: 100%; height: 100%; display: block; }
.es-tach__rd { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; line-height: 1; }
.es-tach__rd b { display: block; font: 900 20px system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.es-tach__rd small { font: 700 9px system-ui, sans-serif; letter-spacing: .12em; opacity: .7; }
.es-tach.is-limit { box-shadow: 0 0 0 3px #ef4444; }
.es-read { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; align-items: flex-end; }
.es-read > div { background: rgba(8, 16, 28, .75); border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 4px 9px; text-align: center; min-width: 58px; }
.es-read b { display: block; font: 900 20px system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.es-read small { font: 700 9px system-ui, sans-serif; letter-spacing: .1em; opacity: .75; }
.es-read .es-knock { min-width: 0; font: 900 11px system-ui, sans-serif; letter-spacing: .08em; color: rgba(255, 255, 255, .3); padding: 8px 9px; }
.es-read .es-knock.is-on { background: #b91c1c; color: #fff; border-color: #fecaca; }
.es-graph { position: absolute; right: 10px; top: 10px; width: 240px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); }
.sim-stage .es-graph canvas { position: static; width: 100%; height: auto; aspect-ratio: 300 / 180; display: block; }   /* sim3d makes stage canvases absolute */
.es-graph__t { position: absolute; left: 8px; top: 5px; font: 800 10px system-ui, sans-serif; letter-spacing: .12em; opacity: .7; }
.es-gas { position: absolute; right: 12px; bottom: 58px; width: 86px; height: 86px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .55); background: radial-gradient(circle at 40% 35%, #22c55e, #166534); color: #fff; font: 900 17px system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.es-gas.is-on { transform: scale(.94); background: radial-gradient(circle at 40% 35%, #4ade80, #15803d); }
.es-gas:focus-visible { outline: 3px solid #facc15; outline-offset: 3px; }
.sim-toolbar button.is-on { background: rgba(37, 99, 235, .75); }
/* the build panel under the picture */
.es-build { margin-top: 12px; background: var(--card, #161b26); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.es-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.es-cost { font-weight: 800; background: rgba(34, 197, 94, .15); color: #86efac; border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.es-cost.is-over { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.es-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.es-row__l { width: 64px; font-weight: 800; font-size: 13px; opacity: .8; }
.es-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.es-chip { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); color: inherit; border-radius: 999px; padding: 6px 12px; font: 700 13px system-ui, sans-serif; cursor: pointer; min-height: 34px; }
.es-chip small { opacity: .65; font-weight: 600; }
.es-chip.is-on { background: #f97316; border-color: #fdba74; color: #fff; }
.es-chip:disabled { cursor: default; opacity: .6; }
.es-chip:focus-visible { outline: 3px solid #facc15; outline-offset: 2px; }
.es-range { flex: 1; min-width: 140px; accent-color: #f97316; height: 28px; }
.es-val { min-width: 92px; font-weight: 800; font-variant-numeric: tabular-nums; }
.es-val small { opacity: .65; font-weight: 600; }
.es-note { margin: 2px 0 0; font-size: 13px; opacity: .75; }
@container (max-width: 480px) {
  .es-tach { width: 112px; height: 112px; }
  .es-tach__rd { bottom: 18px; } .es-tach__rd b { font-size: 16px; }
  .es-read { left: 8px; top: 96px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .es-read > div { min-width: 50px; padding: 3px 7px; } .es-read b { font-size: 15px; }
  .es-graph { width: 150px; top: 96px; right: 8px; }
  .es-gas { width: 76px; height: 76px; right: 10px; bottom: 12px; }
  .sim-toolbar { right: 8px !important; }
}
@media (max-width: 560px) { .es-row__l { width: 100%; } .es-build { padding: 10px; } }
