/* One packet, one spread. The artwork supplies the composition. */
html.sticker-pack-open { overflow: hidden; scroll-behavior: auto; }
body.page-stickers dialog.pack-layer {
  --pack-paper: var(--w-bg);
  position: fixed; inset: 0; margin: 0; border: 0; padding: 0;
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  overflow: hidden; display: grid; place-items: center;
  color: var(--w-ink); background: var(--pack-paper);
}
body.page-stickers .pack-layer[hidden], body.page-stickers .pack-layer:not([open]), body.page-stickers .pack-layer [hidden] { display: none !important; }
body.page-stickers .pack-heading {
  position: absolute; inset: 0 0 auto; height: 76px; padding: 16px clamp(20px,4vw,56px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--w-line);
}
body.page-stickers .pack-heading h2 { margin: 0; font: 28px/1.1 var(--serif); letter-spacing: -.02em; }
body.page-stickers .pack-heading button { min-height: 44px; padding: 10px 16px; font-size: 12px; }
body.page-stickers .pack-layer .pack { width: min(60vw,270px,42dvh); box-shadow: 6px 10px 20px rgb(0 0 0 / .14); z-index: 2; }
body.page-stickers .pack.open { pointer-events: none; }
body.page-stickers .pack.open .tear { transform: translateY(-24px) rotate(-5deg); opacity: 0; transition-duration: 200ms; }
body.page-stickers .pack-spread {
  position: absolute; inset: 86px clamp(14px,4vw,56px) 96px; max-width: 1200px; margin-inline: auto;
}
body.page-stickers .pack-spread:focus { outline: none; }
body.page-stickers .pack-print {
  position: absolute; display: block; padding: 0; margin: 0; border: 0; background: transparent;
  cursor: pointer; transform: rotate(var(--pack-angle)); color: var(--w-ink);
  -webkit-tap-highlight-color: transparent;
}
body.page-stickers .pack-print:focus-visible { outline: 2px solid var(--keep-blue); outline-offset: 5px; }
body.page-stickers .pack-print .tile { background: transparent; border: 0; padding: 0; height: 100%; }
body.page-stickers .pack-print .card { display: block; will-change: auto; }
body.page-stickers .pack-print:hover .keep-sticker-dither,
body.page-stickers .pack-print:focus-visible .keep-sticker-dither { opacity: 0; }
body.page-stickers .pack-print img { user-select: none; -webkit-user-drag: none; }
body.page-stickers .pack-print .art { filter: drop-shadow(1px 4px 3px rgb(0 0 0 / .16)); }
body.page-stickers .pack-layer .pack-note {
  position: absolute; inset: auto 0 0; min-height: 80px; padding: 16px clamp(20px,4vw,56px);
  transform: none; display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; color: var(--w-ink); background: var(--pack-paper); border-top: 1px solid var(--w-line);
  text-align: left; text-transform: none; font: 14px/1.5 var(--sans); letter-spacing: normal;
}
body.page-stickers .pack-layer .pack-note .wbtn { color: var(--w-ink); border-color: var(--w-ink); min-height: 44px; padding: 10px 16px; font-size: 12px; }
@media (max-width: 600px) {
  body.page-stickers .pack-heading { height: 66px; padding: 10px 16px; }
  body.page-stickers .pack-heading h2 { font-size: 23px; }
  body.page-stickers .pack-spread { inset: 74px 12px 120px; }
  body.page-stickers .pack-layer .pack-note { min-height: 112px; padding: 12px 16px; gap: 8px; }
  body.page-stickers .pack-note > span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-stickers .pack.open .tear, body.page-stickers .pack-print .card { transition: none; }
}
