/* bottom-close.css: Oct 28 2026, owner request 14. One back / close button at the bottom center, like a home button, for one hand.
   See bottom-close.js and the design rule in MAYA-HANDOFF section 5. */
.lw-bx{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom, 0px) + 14px + var(--bx-lift, 0px));z-index:2147483646;
  width:56px;height:56px;margin:0;padding:0;border-radius:50%;display:none;align-items:center;justify-content:center;
  transform:translateX(-50%);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
  background:transparent;
  border:1.5px solid rgba(255,255,255,.42);
  -webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:none;
  transition:transform .12s ease,opacity .18s ease,background-color .12s ease}
.lw-bx.on{display:flex;animation:lwBxIn .22s ease both}
.lw-bx svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 1.5px rgba(0,0,0,.6)) drop-shadow(0 1px 3px rgba(0,0,0,.45))}
.lw-bx:active{transform:translateX(-50%) scale(.9);background:rgba(255,255,255,.14)}
/* Oct 29 2026 (Emmanuel): "alle Backbuttons ... die sind so blau ... durchsichtig, transparent", "the X buttons genauso":
   back and X have no blue fill, no blue glow, no frosted plate; only a thin rim and the arrow / X. White ink in both themes
   (Day mode keeps the dark world behind it), a soft dark halo keeps it readable over a bright photo. */
.lw-bx::after{content:"";position:absolute;inset:-6px;border-radius:50%}
.lw-bx:focus-visible{outline:2px solid #7fd4ff;outline-offset:3px}
@keyframes lwBxIn{from{opacity:0;transform:translateX(-50%) translateY(10px) scale(.9)}to{opacity:1;transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){.lw-bx.on{animation:none}.lw-bx{transition:none}}
/* the screen's own back / close (top-left arrow, top-corner X) stays in the page for its logic, out of sight */
.lw-bx-src{opacity:0!important;pointer-events:none!important}
/* Oct 28: steps aside while a card it cannot clear is open (see clearance in bottom-close.js) */
.lw-bx.on.bx-aside{opacity:0;visibility:hidden;pointer-events:none}
/* Oct 29: the screens' own X buttons that stay in place (a photo viewer, the ranking duel, and any back / X shown while the
   bottom button steps aside) lose their blue fill the same way */
.cg-photo-x,.rk-lad-x,.cf-misty .cf-x,html body .r2-gate .hs-back,html body .r2-ov.hs-ivov .hs-back,.b3-ov .r2-sh:has(.sc-card) .r2-x,.sc-ov .r2-sh .r2-x,.apple-ui #r3Back,.cr-head .cr-back,#cmPaneChat[data-spirit-chat] .rm-back,.rm-x,.nm-layer-fy .nm-back{background:transparent!important;box-shadow:none!important}
/* the top-left back to Home (section-nav.css #secX, when the bottom button has not taken it over) and the bottom-centre X of
   Home's sheets (world-home.css / today-sheet.css #whX, white or blue glass before): the same see-through look */
#secX,#whX{background:transparent!important;border:1.5px solid rgba(255,255,255,.42)!important;box-shadow:none!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;color:#fff!important}
#secX svg,#whX svg{filter:drop-shadow(0 0 1.5px rgba(0,0,0,.6)) drop-shadow(0 1px 3px rgba(0,0,0,.45))}
#secX:active,#whX:active{background:rgba(255,255,255,.14)!important}
/* Oct 28: out of sight at once while a card / pane / field near it is still moving in, then it appears where it belongs (no slide) */
.lw-bx.on.bx-settle{opacity:0;visibility:hidden;pointer-events:none;transition:none;animation:none}
/* Oct 29 bug hunt: the X was on screen a moment ago and only waits for a page sliding in: its spot still takes the tap (kept and
   pressed when the motion ends, see bottom-close.js), so the tap never lands on a row of the new page */
.lw-bx.on.bx-settle.bx-catch{visibility:visible;pointer-events:auto}
/* scrolling panels end above the button, so their last row is never under it */
html.lw-bx-on #tab-shelf #shBody,html.lw-bx-on #tab-profile,html.lw-bx-on #tab-move,html.lw-bx-on #tab-scan,html.lw-bx-on .gv-scroll{scroll-padding-bottom:84px}
html.lw-bx-on #tab-shelf #shBody::after,html.lw-bx-on .gv-scroll::after,html.lw-bx-on #tab-move::after,html.lw-bx-on #tab-profile::after{content:"";display:block;height:calc(env(safe-area-inset-bottom, 0px) + 72px)}
/* Kochen's panel leaves the bottom strip for the button */
html.cook-holo.lw-bx-on #main>#tab-shelf.tab.active{bottom:calc(env(safe-area-inset-bottom, 0px) + 14px)!important}
/* the scanner's camera keeps its controls just above the button (its old bottom-right X is replaced by it) */
html.lw-bx-on.lw-bx-on .b3-cam.b3-cam.b3-cam .b3-cbot.b3-cbot{padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 82px)!important}
/* Einkaufen: its footer (scan-in-the-shop button, old close orb on the right) ends above the button */
html.lw-bx-on .stp-ov .stp-foot{padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 80px)!important}
html.lw-bx-on .stp-foot>.stp-close.lw-bx-src{position:absolute!important;right:14px}
/* Profile's one-screen tiles: on a short phone the last row would sit under the button, so the screen may scroll a little
   (it ends with the spacer above) instead of the button climbing over the tiles */
html.lw-bx-on.g2e-on:not(.g2e-open) #tab-profile{overflow-y:auto!important;-webkit-overflow-scrolling:touch}
/* Nov 5 2026 (Misty sheet plan, phase 1): a back that names where it goes ("‹ Misty") is a pill of the same rim, same spot */
.lw-bx.lw-bx-named{width:auto;min-width:56px;padding:0 18px 0 12px;border-radius:28px;gap:4px}
.lw-bx.lw-bx-named::after{border-radius:34px}
.lw-bx-lab{font:600 16px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;letter-spacing:-.01em;white-space:nowrap;
  text-shadow:0 0 1.5px rgba(0,0,0,.6),0 1px 3px rgba(0,0,0,.45)}
