/* The night library (copied from launch.css .lib*, 27/11/2026) for the store's home hero (Kevin 28/11/2026: an intro
   banner over the book wall, like the sales page). src/market/launch-sales.js libraryWall() writes the markup. */
.lib { position: sticky; top: 0; z-index: 0; display: block; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; pointer-events: none; perspective: 1500px; perspective-origin: 50% 40%; }
.lib-wall { position: absolute; left: -30%; right: -30%; top: 4%; bottom: 2%; display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d;
  transform: rotateY(calc(10deg + var(--libp, 0) * 6deg)) rotateX(calc(3deg - var(--libp, 0) * 3deg)) translateZ(-160px); transition: transform .2s linear; }
.lib-shelf { position: relative; transform-style: preserve-3d; }
.lib-run { display: flex; align-items: flex-end; gap: 16px; width: max-content; padding: 0 8px; transform-style: preserve-3d; animation: libDrift calc(var(--dur, 160s) * var(--k, 1)) linear infinite; will-change: transform; }
.lib-shelf.s1 .lib-run { --dur: 190s; animation-direction: reverse; }
.lib-shelf.s2 .lib-run { --dur: 150s; }
.lib-shelf.s3 .lib-run { --dur: 210s; animation-direction: reverse; }
@keyframes libDrift { to { transform: translateX(-50%); } }
.lib-bk { position: relative; flex: none; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateY(var(--ry)); }
.lib-bk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 5px 5px 2px; transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 5px 0 8px rgba(0, 0, 0, .35), 0 18px 26px -12px rgba(0, 0, 0, .8); backface-visibility: hidden; }
.lib-sp { position: absolute; top: 0; left: 0; width: var(--d); height: 100%; border-radius: 3px 0 0 3px; transform-origin: left center; transform: translateZ(calc(var(--d) / 2)) rotateY(90deg);
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .12) 45%, rgba(0, 0, 0, .3)), repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 214, 140, .35) 22px 24px, transparent 24px 46px), var(--sp); }
.lib-top { display: none; }
.lib-plank { display: block; height: 20px; margin: -2px -40px 0; border-radius: 3px; background: linear-gradient(180deg, #7a5230, #4a2f18 55%, #2a1a0c); box-shadow: 0 2px 0 rgba(255, 210, 150, .18) inset, 0 30px 46px -10px rgba(0, 0, 0, .85); }
.lib-glow { position: absolute; inset: 0; background: radial-gradient(38% 30% at 18% 8%, rgba(255, 186, 104, .32), transparent 70%), radial-gradient(34% 28% at 86% 46%, rgba(255, 150, 90, .2), transparent 70%), radial-gradient(50% 40% at 50% 100%, rgba(255, 120, 60, .12), transparent 70%); mix-blend-mode: screen; }
.lib-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 10, 7, .5), rgba(13, 10, 7, .74) 50%, rgba(13, 10, 7, .5)), linear-gradient(180deg, #0d0a07 0, rgba(13, 10, 7, 0) 16%, rgba(13, 10, 7, 0) 84%, #0d0a07); }
@media (max-height: 820px) { .lib-wall { top: 2%; bottom: 0; } .lib-bk { height: calc(var(--h) * .82); width: calc(var(--w) * .82); } }
@media (max-width: 699px) {
  .lib { perspective: 900px; }
  .lib-wall { left: -60%; right: -60%; transform: rotateY(8deg) translateZ(-120px); }
  .lib-bk { height: calc(var(--h) * .7); width: calc(var(--w) * .7); }
  .lib-run { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .lib-run { animation: none; } .lib-wall { transition: none; } }
.lib.is-off .lib-run { animation-play-state: paused; }

.hero.hero-lib { overflow: clip; background: #0b0c0e; }
.hero-lib > .lib-home { position: absolute; inset: 0; height: auto; margin: 0; z-index: -1; }
.lib-home .lib-wall { top: 1%; bottom: 3%; justify-content: space-evenly; }
.lib-home .lib-veil { background: radial-gradient(60% 52% at 50% 40%, rgba(11, 12, 14, .93), rgba(11, 12, 14, .8) 55%, rgba(11, 12, 14, .5) 82%), linear-gradient(180deg, rgba(11, 12, 14, .7) 0, rgba(11, 12, 14, .15) 20%, rgba(11, 12, 14, .15) 78%, #0b0c0e); }
.hero-lib .glow { z-index: -1; opacity: .7; }
.hero-in.hero-banner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 900px; margin: 0 auto; padding: clamp(64px, 9vw, 128px) 0 var(--s6); }
.hero-banner h1 { font-size: clamp(42px, 6vw, 84px); }
.hero-banner .lede { max-width: 720px; color: #d9dce1; font-size: clamp(17px, 1.35vw, 20px); }
.hero-banner .search { width: min(640px, 100%); margin-left: auto; margin-right: auto; }
.hero-banner .quick { justify-content: center; }
.hero-lib .stats { position: relative; }
@media (max-width: 699px) { .lib-home .lib-veil { background: linear-gradient(180deg, rgba(11, 12, 14, .84), rgba(11, 12, 14, .9) 50%, #0b0c0e); } }
.lib-home .lib-veil { background: radial-gradient(72% 62% at 50% 44%, rgba(11, 12, 14, .95), rgba(11, 12, 14, .86) 58%, rgba(11, 12, 14, .62) 86%), linear-gradient(180deg, rgba(11, 12, 14, .7) 0, rgba(11, 12, 14, .2) 20%, rgba(11, 12, 14, .2) 78%, #0b0c0e); }
@media (max-width: 699px) { .lib-home .lib-veil { background: linear-gradient(180deg, rgba(11, 12, 14, .86), rgba(11, 12, 14, .9) 50%, #0b0c0e); } }

/* Kevin 28/11/2026: the home banner fits one screen (under the header and the launch bar, ~160px): tighter gaps, a
   headline sized by the screen height too, the stats as one slim row */
.hero.hero-lib { min-height: calc(100svh - 160px); display: flex; flex-direction: column; justify-content: center; }
.hero-lib > .wrap { width: min(1200px, 100% - 32px); }
.hero-in.hero-banner { padding: clamp(24px, 4vh, 48px) 0 clamp(10px, 1.6vh, 18px); }
.hero-banner .pill { margin: 0; }
.hero-banner h1 { margin-top: clamp(12px, 2vh, 22px); font-size: clamp(38px, min(5.2vw, 8.4vh), 76px); }
.hero-banner .lede { margin-top: clamp(10px, 1.8vh, 18px); max-width: 860px; }
.hero-banner .search { margin-top: clamp(14px, 2.4vh, 26px); }
.hero-banner .quick { margin-top: clamp(8px, 1.4vh, 14px); }
.hero-lib .stats-strip { margin: clamp(12px, 2vh, 22px) 0 clamp(20px, 3.4vh, 36px); }
.hero-lib .stats-strip li { padding-top: clamp(10px, 1.6vh, 16px); padding-bottom: clamp(10px, 1.6vh, 16px); }
.hero-lib .stats-strip b { font-size: clamp(28px, min(3vw, 5vh), 44px); }
/* the numbers now sit right under the banner, outside it */
.stats-band { position: relative; background: #0b0c0e; }
.stats-band .stats-strip { margin: 0 0 clamp(8px, 1.6vw, 20px); }
.hero.hero-lib { min-height: calc(100svh - 160px); }
.hero-in.hero-banner { padding: clamp(28px, 5vh, 64px) 0 clamp(28px, 5vh, 64px); }
/* Kevin 28/11/2026: the wall a bit lighter; a soft shadow keeps the words crisp */
.lib-home .lib-veil { background: radial-gradient(64% 54% at 50% 46%, rgba(11, 12, 14, .8), rgba(11, 12, 14, .62) 58%, rgba(11, 12, 14, .36) 86%), linear-gradient(180deg, rgba(11, 12, 14, .5) 0, rgba(11, 12, 14, .08) 20%, rgba(11, 12, 14, .08) 80%, #0b0c0e); }
.hero-banner h1, .hero-banner .lede { text-shadow: 0 2px 18px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6); }
.hero-banner .quick span { text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
@media (max-width: 699px) { .lib-home .lib-veil { background: linear-gradient(180deg, rgba(11, 12, 14, .74), rgba(11, 12, 14, .8) 50%, #0b0c0e); } }
.hero-banner h1 { text-shadow: none; filter: drop-shadow(0 3px 16px rgba(0, 0, 0, .85)); }
