/* Playground-Oberfläche nutzt dieselben Farben und Schatten wie das Dashboard. */
.physics-toolbar { position: relative; z-index: 30; margin: 24px 0 0; padding: 16px; border: 2px solid var(--line); background: var(--surface); box-shadow: 5px 5px 0 var(--shadow-ink); }
.physics-toolbar[hidden], .physics-aim[hidden] { display: none; }
.physics-eyebrow { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; }
.physics-toolbar h2, .physics-dialog h2 { margin: 2px 0 12px; font: 32px/1.1 var(--display-font); }
.physics-actions, .physics-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.physics-toolbar button, .physics-dialog button { padding: 9px 12px; border: 2px solid var(--line); border-radius: 3px; background: var(--surface-soft); color: var(--ink); font-weight: 700; }
.physics-toolbar button[aria-pressed="true"] { background: var(--blue); box-shadow: 2px 2px 0 var(--shadow-ink); }
#physics-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
/* Keine Clipping- oder Stacking-Grenze am Grid: Kacheln fliegen über die Seite.
   Kacheln liegen auch vor dem Editor. Optionskreise und Dialoge bleiben darüber. */
#all.physics-arena { position: static; display: block; overflow: visible; }
#all.physics-arena > .physics-body { position: absolute; z-index: 40; margin: 0; top: 0; left: 0; transform-origin: top left; transition: none; touch-action: none; user-select: none; cursor: crosshair; will-change: transform; }
.playground-active .floating-controls { z-index: 60; }
.physics-body > * { pointer-events: none; }
.physics-dummy-preview { font: 72px/1 var(--display-font); color: var(--ink); }
.physics-body.is-selected { outline: 3px solid var(--pink); outline-offset: -5px; }
.physics-body.is-fixed::after { content: 'FIXIERT'; position: absolute; right: 12px; bottom: 12px; padding: 3px 7px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: 9px; font-weight: 700; }
.physics-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 2px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); box-shadow: 6px 6px 0 var(--shadow-ink); }
.physics-dialog::backdrop { background: #041121aa; backdrop-filter: blur(3px); }
.physics-dialog p { font-size: 12px; color: var(--muted); }
.physics-dialog label { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; font-weight: 700; }
.physics-dialog input[type="range"] { width: 100%; padding: 0; accent-color: var(--ink); }
.physics-dialog .physics-checkbox { justify-content: flex-start; align-items: center; }
.physics-dialog button { margin-top: 20px; width: 100%; background: var(--blue); }
.physics-aim { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; overflow: visible; }
.physics-aim line { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 7 5; }
.physics-aim path { fill: var(--ink); }
@media (max-width: 520px) {
    .physics-toolbar { padding: 12px; }
    .physics-toolbar h2 { font-size: 26px; }
    .physics-toolbar button { font-size: 11px; padding: 8px; }
}



