/* picto.show — label pages (home + about). Builds on filo/css/style.css (themes, bitmap text, nav). */

/* page-to-page transitions (Chrome / Edge / Safari 18+): the PSR logo glides between home and
   the other pages, the bottom nav stays put — like lo-bit.club */
@view-transition { navigation: auto; }
.psr-logo { view-transition-name: psr-logo; }
nav.bottom { view-transition-name: bottom-nav; }
::view-transition-old(root) { animation: .12s ease-out both fadeOut; }
::view-transition-new(root) { animation: .2s cubic-bezier(.22,1,.36,1) both popIn2; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn2 { from { opacity: 0; scale: .97; } }
::view-transition-group(psr-logo) { animation-duration: .7s; animation-timing-function: cubic-bezier(.22,1,.36,1); }

/* ---------- home ---------- */
body.home { height: 100vh; height: 100svh; overflow: hidden; }
.stage { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 70px; }
.home #floor { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; z-index: 0; opacity: .9; }

.psr-logo {
  position: relative; z-index: 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-decoration: none; animation: logoIn 1.2s cubic-bezier(.22,1,.36,1) both .1s;
}
.psr-logo .px { --px: 7px; }
@media (max-width: 700px) { .psr-logo .px { --px: 4px; } .psr-logo { gap: 10px; } }
@media (max-width: 480px) { .psr-logo .px { --px: 3px; } .spark { display: none; } }
@keyframes logoIn { 0% { opacity: 0; scale: .96; } 35% { opacity: 1; } 50% { opacity: .35; } 62% { opacity: 1; } 100% { scale: 1; } }
.tag { position: relative; z-index: 1; margin: 30px 0 0; animation: logoIn 1.2s cubic-bezier(.22,1,.36,1) both .5s; }
.tag .px { --px: 2px; color: var(--grey); letter-spacing: 0; }

/* sparkles around the logo */
.spark {
  position: absolute; font: 700 18px/1 ui-monospace, Menlo, Consolas, monospace; font-style: normal;
  color: var(--fg); pointer-events: none; animation: twinkle 3.2s steps(1) infinite;
}
.spark:not(:empty) { width: auto; }
.spark:empty { width: 4px; height: 4px; background: var(--fg); }
.s1 { left: 44%; top: -26px; animation-delay: -.4s; }
.s2 { right: -34px; top: 48%; font-size: 22px; animation-delay: -1.3s; }
.s3 { left: -22px; bottom: 10px; animation-delay: -2.1s; }
.s4 { right: 18%; top: -14px; animation-delay: -0.9s; }
.s5 { left: -38px; top: 6px; font-size: 14px; animation-delay: -2.6s; }
.s6 { right: 30%; bottom: -16px; animation-delay: -1.8s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 18% { opacity: .2; } 22% { opacity: 1; } 60% { opacity: 0; } 70% { opacity: 1; } }

/* ---------- sub pages (about) ---------- */
body.sub .psr-logo.small {
  position: relative; margin: 34px auto 0; width: max-content; gap: 6px; animation: none;
}
body.sub .psr-logo.small .px { --px: 3px; }
.about { padding-top: 70px; }
.about > p { text-align: left; }
.releases { display: grid; gap: 10px; }
.release {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 16px 18px; border: 1px solid var(--dim); text-decoration: none; transition: background-color .1s, border-color .1s;
}
.release .px { --px: 3px; }
.release .rdesc { color: var(--grey); font-size: 14px; }
.release:hover { background: var(--fg); border-color: var(--fg); }
.release:hover .px, .release:hover .rdesc { color: var(--bg); }

@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } .spark { animation: none; } }
