/* Train Miner */
#game-root .sim-controls-help { margin-top: 14px; }
.tm-wrap { display: flex; flex-direction: column; gap: 8px; }
.tm-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tm-pill { background: var(--color-bg-alt, #1c1f27); border: 1px solid var(--color-border, #2d3240); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.tm-coins { color: #fde047; }
.tm-sp { flex: 1; display: flex; justify-content: flex-end; }
.tm-wrap .ak-stage { position: relative; width: 100%; max-width: none; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.tm-wrap .ak-stage canvas { width: 100%; height: 100%; display: block; touch-action: manipulation; cursor: pointer; }
.tm-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; }
.tm-shop button { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto auto; column-gap: 6px; text-align: left; padding: 7px 9px; border-radius: 12px;
  border: 1px solid var(--color-border, #2d3240); background: var(--color-bg-alt, #1c1f27); color: inherit; cursor: pointer; font: inherit; opacity: .6; }
.tm-shop button.is-ok { opacity: 1; border-color: #22c55e; background: rgba(34, 197, 94, .1); }
.tm-shop button:disabled { cursor: default; }
.tm-shop .tm-ic { grid-row: 1 / span 3; font-size: 24px; align-self: center; }
.tm-shop b { font-size: 13px; } .tm-shop b small { opacity: .7; font-weight: 700; }
.tm-shop small { font-size: 11px; opacity: .85; }
.tm-shop em { font-style: normal; font-weight: 800; font-size: 12px; color: #fde047; }
.tm-shop .tm-deep.is-ok { border-color: #a855f7; background: rgba(168, 85, 247, .12); }
.tm-shop button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
