/* the way back to buying, on the demo's own start screen only (back.js shows it). z-index 72 (2026-11-27 audit): above the
   start screen (#setup, 70), below every layer the game puts over it (#sxAsk 79, #modal 80, #opening 86, #blackout 90),
   so a pop-up of the game is never covered by it, even in the moment before back.js hides it. test/demo-corner.test.mjs
   EVERY RULE HERE NAMES THE CORNER BY ITS OWN ID, #ppBack (2026-11-28, review 23's R23-01). This file used the class
   pp-back, and the game has a class of that very name: the Pause panel's "Back to the game" button (06b-safety.js).
   So on the demo every rule of this file also reached that button: from 2026-11-26 it was a yellow pill pinned to the
   corner of the screen in place of the game's own button in the panel's head, and the unseen area of 2026-11-28 lifted
   its x out of its words. The link carries no class at all now (tools/golive/demo-page.mjs), so the game's rules for
   its own class cannot reach the link either. A rule here without #ppBack fails test/demo-corner.test.mjs. */
#ppBack{position:fixed;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:72;
  display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;white-space:nowrap;
  font:700 15px/1 "CampUI",system-ui,-apple-system,sans-serif;letter-spacing:.01em;text-decoration:none;
  color:#1a1230;background:#ffc63c;box-shadow:0 6px 18px rgba(0,0,0,.35);transition:transform .15s ease}
#ppBack[hidden]{display:none}
/* UNDER A FINGER (2026-11-28). On a phone the button is 36 px tall (the 620 px rule below); a finger needs 44. An
   unseen area, at least 44 px tall and centred on the button, counts as the button. The button was already placed
   (position:fixed), so nothing is painted in another order: the look is the same, pixel for pixel. Where the button
   is 44 px tall the area is exactly the button. A hidden button has no area (display:none takes it along). */
#ppBack::after{content:"";position:absolute;left:0;right:0;top:50%;height:max(100%,44px);transform:translateY(-50%)}
#ppBack:hover{transform:translateY(-1px)}
#ppBack:active{transform:translateY(1px)}
#ppBack:focus-visible{outline:3px solid #fdf6e6;outline-offset:3px}
@media (max-width:620px){
  #ppBack{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));min-height:36px;padding:0 13px;font-size:13px}
  body:has(#ppBack:not([hidden])) #setup{padding-top:max(54px,calc(env(safe-area-inset-top) + 46px))}
  body:has(#ppBack:not([hidden])) #setup .sx-brand,
  body:has(#ppBack:not([hidden])) #setup .setup-logo{margin-top:6px}
}
@media (prefers-reduced-motion:reduce){#ppBack{transition:none}}
