/* Toy Train Builder: piece tray + info chip (shared 3D styles: sim3d.css) */
#game-root .sim-controls-help { margin-top: 14px; }
.tt-stage { cursor: crosshair; }
.tt-info { position: absolute; left: 10px; top: 10px; padding: 6px 12px; border-radius: 10px; background: rgba(60, 30, 10, .72); color: #fff; font: 800 14px system-ui, sans-serif; }
.tt-info small { display: block; font-weight: 700; font-size: 11px; opacity: .85; }
.tt-tray { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 8px; border-radius: 14px; background: linear-gradient(180deg, #7c4a1e, #5b3614); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.tt-tray button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; padding: 6px 8px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25);
  background: #f5e6c8; color: #3b2410; font: 800 12px system-ui, sans-serif; cursor: pointer; }
.tt-tray button[aria-pressed="true"] { border-color: #facc15; box-shadow: 0 0 0 3px rgba(250, 204, 21, .5); background: #fff7df; }
.tt-tray button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.tt-tray .tt-go { background: #22c55e; color: #fff; }
.tt-ico { display: block; width: 34px; height: 34px; font-size: 22px; line-height: 34px; text-align: center; }
/* drawn track icons */
.tt-ico--straight, .tt-ico--curve, .tt-ico--cross { position: relative; }
.tt-ico--straight::before { content: ""; position: absolute; left: 12px; top: 0; width: 10px; height: 34px; border-radius: 3px; background: #c68a4a; box-shadow: inset 2px 0 #9a6b3c, inset -2px 0 #9a6b3c; }
.tt-ico--cross::before { content: ""; position: absolute; left: 12px; top: 0; width: 10px; height: 34px; border-radius: 3px; background: #c68a4a; }
.tt-ico--cross::after { content: ""; position: absolute; left: 0; top: 12px; width: 34px; height: 10px; border-radius: 3px; background: #c68a4a; }
.tt-ico--curve::before { content: ""; position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border: 10px solid #c68a4a; border-right: 0; border-bottom: 0; border-radius: 22px 0 0 0; box-sizing: border-box; transform: translate(-0px, -0px); clip-path: inset(0 12px 12px 0); }
@media (max-width: 560px) { .tt-tray button { min-width: 54px; padding: 4px; } .tt-tray button small { font-size: 10px; } .tt-ico { width: 28px; height: 28px; font-size: 18px; line-height: 28px; } }
