/* Port B back key for the Play pages (Poem OS, The Listening Gallery, Sushi Catch!).
   The pages themselves are the yuwen25.com originals, unchanged; their own "Back to Play" links are hidden
   and this one small key takes their place. Desktop only: on a phone you swipe back (Yuwen, 2026-11-26). */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500&display=swap");

.project-back, .project-return-link, .gallery-return, .gallery-project-return, .paper-back, .hb-back, .hm-cover-return { display: none !important; }

/* shared */
.pb-back {
  position: fixed; z-index: 2147483000; top: 20px; left: 20px;
  display: inline-flex; align-items: center; gap: 6px; height: 32px;
  font: 400 13px/1 "Geist", "Helvetica Neue", -apple-system, sans-serif; letter-spacing: 0;
  text-decoration: none; -webkit-font-smoothing: antialiased;
}
.pb-back svg { width: 14px; height: 14px; flex: none; transition: transform .25s cubic-bezier(.4, 0, .2, 1); }
.pb-back:hover svg { transform: translateX(-3px); }
.pb-back:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* a · frosted pill (the first version) */
.pb-back.v-a {
  padding: 0 13px 0 10px; border-radius: 999px; background: rgb(255 255 255 / .74); color: #1a1a1a;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .08);
  transition: background-color .25s, box-shadow .25s, scale .2s cubic-bezier(.2, .8, .2, 1);
}
.pb-back.v-a:hover { background: rgb(255 255 255 / .92); }
.pb-back.v-a:active { scale: .96; }

/* b · just words: no box, small, half strength; the colour inverts against whatever is behind it.
   CHOSEN (Yuwen, 2026-11-26): this is what every Play page and HeartByte / The Handmaiden show. */
.pb-back.v-b { padding: 0 4px; color: #fff; mix-blend-mode: difference; opacity: .6; transition: opacity .25s; }
.pb-back.v-b:hover { opacity: 1; }

/* c · a small round arrow; "Back" slides out of it on hover */
.pb-back.v-c {
  width: 32px; padding: 0 9px; gap: 0; overflow: hidden; white-space: nowrap; border-radius: 999px;
  background: rgb(20 20 20 / .28); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: width .35s cubic-bezier(.2, .8, .2, 1), gap .35s, background-color .25s;
}
.pb-back.v-c span { opacity: 0; transition: opacity .2s; }
.pb-back.v-c:hover, .pb-back.v-c:focus-visible { width: 74px; gap: 6px; background: rgb(20 20 20 / .5); }
.pb-back.v-c:hover span, .pb-back.v-c:focus-visible span { opacity: 1; transition-delay: .08s; }

/* d · out of sight until you reach for it: the frosted pill fades in when the pointer nears the top-left corner */
.pb-back.v-d {
  padding: 0 13px 0 10px; border-radius: 999px; background: rgb(255 255 255 / .74); color: #1a1a1a;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .08);
  opacity: 0; translate: -6px 0; transition: opacity .3s, translate .4s cubic-bezier(.2, .8, .2, 1);
}
.pb-back.v-d.near, .pb-back.v-d:focus-visible, .pb-back.v-d:hover { opacity: 1; translate: 0 0; }

@media (max-width: 760px), (hover: none) and (pointer: coarse) { .pb-back { display: none; } }
@media (prefers-reduced-motion: reduce) { .pb-back, .pb-back svg, .pb-back span { transition: none !important; } }

/* hide the scrollbars, keep scrolling (Yuwen's rule for the whole site) */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* no scrollbars anywhere on the page, inner scrolling boxes included (Yuwen's rule); scrolling still works */
*, *::before, *::after { scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
