.lab-back{position:fixed;left:8px;bottom:calc(var(--lab-back-y,8px) + env(safe-area-inset-bottom,0px));z-index:2147483000;display:inline-flex;align-items:center;min-height:44px;padding:6px 10px;border:1px solid rgba(242,237,226,.28);border-radius:0;background:#0E0D0C;color:#F2EDE2;font:600 10px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;opacity:.9}
.lab-back:hover{background:#F2EDE2;color:#0E0D0C;opacity:1}
.lab-back:focus-visible{outline:2px solid #F65D0B;outline-offset:3px;opacity:1}
.lab-back[data-th-on]{letter-spacing:.04em;text-transform:none;font-size:13px}
/* --lab-back-y (inline, per piece) lifts a bottom link above a control bar. data-pos: x (l, c, r) then y (t top, u under header, m middle, b bottom). Default is bottom left. */
.lab-back[data-pos$="t"]{top:8px;bottom:auto}
.lab-back[data-pos$="u"]{top:60px;bottom:auto}
.lab-back[data-pos$="m"]{top:50%;bottom:auto;margin-top:-22px}
.lab-back[data-pos^="c"]{left:50%;transform:translateX(-50%)}
.lab-back[data-pos^="r"]{left:auto;right:8px}
/* Legal links (Privacy, Impressum): quiet strip bottom right, set by back.js. Per-piece offsets via data-piece. */
.lab-legal{position:fixed;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:2147482999;display:flex;gap:2px;font:600 10px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.lab-legal a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:6px 8px;border:1px solid rgba(242,237,226,.28);background:#0E0D0C;color:#F2EDE2;text-decoration:none;opacity:.9}
.lab-legal a:hover{background:#F2EDE2;color:#0E0D0C;opacity:1}
.lab-legal a:focus-visible{outline:2px solid #F65D0B;outline-offset:3px;opacity:1}
.lab-legal[data-th-on]{letter-spacing:.02em;text-transform:none;font-size:12px}
.lab-legal[data-th-on] a{padding:6px 6px}
.lab-legal[data-piece="abyss"]{right:auto;left:50%;transform:translateX(-50%)}
.lab-legal[data-piece="aeru"]{bottom:auto;top:50px;flex-direction:column;align-items:flex-end}
.lab-legal[data-piece="astral"]{right:auto;left:8px;bottom:auto;top:112px}
.lab-legal[data-piece="echo"]{position:static;justify-content:flex-start;padding:0 4.5vw calc(28px + env(safe-area-inset-bottom,0px))}
.lab-legal[data-piece="ferrin"],.lab-legal[data-piece="kaelo"],.lab-legal[data-piece="vell"]{bottom:auto;top:60px}
.lab-legal[data-piece="fold"],.lab-legal[data-piece="obliq"],.lab-legal[data-piece="solstice"]{bottom:auto;top:8px}
.lab-legal[data-piece="form-machine"]{right:auto;left:50%;transform:translateX(-50%);bottom:auto;top:50px}
.lab-legal[data-piece="gravity"]{bottom:auto;top:90px}
.lab-legal[data-piece="last-light"]{bottom:calc(90px + env(safe-area-inset-bottom,0px))}
.lab-legal[data-piece="tessra"]{bottom:auto;top:50px}
.lab-legal[data-piece="type-alive"]{bottom:calc(50px + env(safe-area-inset-bottom,0px))}
.lab-legal[data-piece="event-horizon"]{bottom:auto;top:calc(50% + 28px);flex-direction:column;align-items:flex-end}
@media (max-width:700px){.lab-legal[data-th-on]{flex-direction:column;align-items:flex-end}.lab-legal[data-th-on][data-piece="astral"]{align-items:flex-start}.lab-legal[data-th-on][data-piece="echo"]{flex-direction:row;align-items:center}}
@media (max-width:700px){.lab-legal[data-th-on][data-piece="abyss"]{left:8px;right:auto;transform:none;align-items:flex-start;bottom:auto;top:90px}.lab-legal[data-th-on][data-piece="form-machine"]{left:auto;right:8px;transform:none;top:130px}.lab-legal[data-th-on][data-piece="gravity"]{top:auto;bottom:calc(90px + env(safe-area-inset-bottom,0px))}}
