/* Free-Body Garage: the scene + panel inside the practice shell's stage. */
.fbg { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 10px; padding: 8px 10px; }
.fbg-scene { position: relative; min-width: 0; min-height: 0; border-radius: var(--tlg-radius-lg); border: var(--tlg-border-width) solid var(--tlg-border); background: #dfe7ee; overflow: hidden; }
.fbg-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.fbg-ghost { opacity: .22; pointer-events: none; }
.fbg-top { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.fbg-hud { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.fbg-hud-line { max-width: 100%; padding: 6px 10px; border-radius: 8px; background: rgba(17, 24, 39, .84); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; }
.fbg-hud-line.is-mine { border-left: 6px solid #f59e0b; }
.fbg-hud-line.is-right { border-left: 6px solid #22c55e; }
.fbg-replay { display: flex; gap: 6px; flex-wrap: wrap; pointer-events: auto; }
.fbg-replay[hidden] { display: none; }
.fbg-rbtn { min-height: 44px; background: rgba(255, 255, 255, .94); color: #111827; font-size: 16px; }
.fbg-panel { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding: 2px 2px 8px; }
.fbg-h { margin: 2px 0 0; font-size: 17px; font-weight: 800; }
.fbg-k { font-size: 16px; color: var(--tlg-text-muted); }
.fbg-states { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fbg-dirs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fbg-chip { min-height: 44px; padding: 4px 10px; font-size: 16px; }
.fbg-chip:disabled { opacity: .45; cursor: default; }
.fbg-chip[aria-checked="true"]:disabled { opacity: 1; }
.fbg-a { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.fbg-a-in { width: 110px; min-height: 44px; padding: 4px 8px; font: inherit; font-size: 18px; text-align: right; border-radius: 8px; border: 2px solid var(--tlg-border); background: var(--tlg-surface); color: var(--tlg-text); }
.fbg-a-note { margin: 0; }
.fbg-scene--static { width: 100%; aspect-ratio: 46 / 41; height: auto; }
.fbg-scene--static.is-wide { aspect-ratio: 7 / 4; }
/* the scene is a picture of a real place: it stays light in dark mode */
html[data-theme="dark"] .fbg-scene { background: #c9d4de; }
@media (max-width: 1100px) { .fbg { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 900px) {
  .fbg { position: static; grid-template-columns: 1fr; }
  .fbg-scene { height: 56vh; min-height: 340px; }
  .fbg-panel { overflow: visible; }
}
/* The assignment card's usual corner (bottom-right of the stage) covers the acceleration box: use the empty bottom of
   the customer column instead; the column gets room at its foot so long feedback can scroll out from under it. */
@media (min-width: 901px) {
  html.ps-locked:has(.fbg) .lga-card { right: auto; left: 12px; }
  html.ps-locked:has(.fbg):has(.lga-card) .ps-side { padding-bottom: 84px; }
}
