/* The sticker album (/games/stickers/): a scrapbook, one paper page per place with its scene in the corner; earned
   stickers sit a little tilted, empty places show the sticker's shape as a soft hollow. A new sticker peels on.
   Uses hub.css for the page frame (nav, footer, chips); this file only adds the album. */

.sa-main { padding-bottom: clamp(50px, 7vw, 100px); }
.sa-head { padding: clamp(24px, 4vw, 54px) 0 clamp(20px, 3vw, 34px); }
.sa-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--card); color: var(--ink);
  font: 800 16px/1 var(--font-body); text-decoration: none; box-shadow: var(--g-edge), var(--g-sh); }
.sa-back svg { width: 22px; height: 22px; }
.sa-title { margin-top: 18px; font-size: clamp(44px, 6.6vw, 88px); line-height: 1.04; }
.sa-lead { margin-top: 12px; max-width: 34em; font: 650 clamp(18px, 1.5vw, 21px)/1.5 var(--font-body); color: var(--ink); }
.sa-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.sa-count { font: 700 18px/1.2 var(--font-body); color: var(--ink-2); }
.sa-count b { font: 800 30px/1 var(--font-display); color: var(--ink); margin-right: 2px; }
.sa-bar { flex: 1 1 200px; max-width: 420px; height: 14px; border-radius: 99px; background: rgba(30, 42, 90, .1); box-shadow: inset 0 1px 2px rgba(90, 42, 0, .2); overflow: hidden; }
.sa-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun), var(--sun-deep)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.sa-empty { display: flex; align-items: center; gap: 20px; margin-top: 22px; max-width: 640px; }
.sa-empty[hidden] { display: none; }
.sa-empty__kuru { width: clamp(90px, 16vw, 140px); height: auto; flex: none; }
.sa-empty__t { font: 800 24px/1.15 var(--font-display); color: var(--ink); }
.sa-empty__p { margin: 6px 0 14px; font: 600 17px/1.45 var(--font-body); color: var(--ink-2); }

.sa-pages { display: grid; gap: clamp(20px, 3vw, 34px); }
.sa-page { position: relative; padding: clamp(16px, 2.4vw, 28px); border-radius: 10px 26px 22px 12px / 12px 22px 26px 10px; background: var(--card) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px;
  background-blend-mode: multiply; box-shadow: inset 6px 0 0 var(--pl-c), var(--pk-edge-light, inset 0 1px 0 #fff), var(--sh-paper); }
.sa-page__head { display: flex; align-items: center; gap: 16px; }
.sa-page__art { flex: none; width: clamp(90px, 10vw, 130px); }
.sa-page__art .sc { display: block; width: 100%; height: auto; overflow: visible; }
.sa-page__title { font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--font-display); color: var(--ink); }
.sa-page__n { margin-top: 4px; font: 800 16px/1.3 var(--font-body); color: var(--pl-ink); }
.sa-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: clamp(10px, 1.6vw, 18px); margin-top: 16px; }
.sa-slot { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 14px 10px 14px; border-radius: 16px; background: var(--pl-bg); text-align: center;
  box-shadow: inset 0 2px 6px rgba(90, 42, 0, .14); }
.sa-slot__art { display: block; width: min(100%, 112px); }
.sa-slot.is-on .sa-slot__art { rotate: var(--tilt, 0deg); filter: drop-shadow(0 6px 6px rgba(90, 42, 0, .22)); }
.sa-slot__name { font: 800 17px/1.2 var(--font-display); color: var(--ink); }
.sa-slot:not(.is-on) .sa-slot__name { color: var(--ink-2); }
.sa-slot__from { font: 700 14px/1.3 var(--font-body); color: var(--ink-2); }
.sa-slot__play { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font: 800 15px/1.25 var(--font-body); color: var(--blue); }
.sa-slot.is-new { box-shadow: inset 0 0 0 3px var(--sun-deep), inset 0 2px 6px rgba(90, 42, 0, .14); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .sa-slot.is-new .sa-slot__art { animation: sa-peel 900ms var(--g-spring) 400ms both; }
}
@keyframes sa-peel { 0% { opacity: 0; transform: translate(30px, -40px) rotate(-30deg) scale(1.3); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (max-width: 520px) { .sa-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sa-page__head { align-items: flex-start; } }

/* Kuru Games: a note for a visitor, and the small "needs Kuru Games" on a sticker that waits behind a locked game */
.sa-note { margin-top: 10px; max-width: 46em; font: 700 17px/1.45 var(--font-body); color: var(--ink-2); }
.sa-note a { display: inline-block; padding: 6px 0; color: var(--blue); }
.sa-slot__lock { font-weight: 700; color: var(--ink-2); }
