/* ==========================================================================
   STICKERS: post-its, clippings, tickets and other scraps (made by js/stickers.js).
   Each sticker is a .stk inside a .stk-wrap that carries a random tilt (--r).
   To change the WORDS, edit data/stickers.json. To change the LOOKS, edit here.
   ========================================================================== */
.stk-wrap { filter: drop-shadow(4px 6px 0 rgba(0,0,0,.45)); position: relative; rotate: var(--r, 0deg); translate: var(--ox, 0) var(--oy, 0); scale: var(--s, 1); transition: rotate .25s, scale .25s; pointer-events: auto; }
.stk-wrap:hover { rotate: calc(var(--r, 0deg) * .3); scale: 1.06; z-index: 8; }
.stk { position: relative; display: block; width: 168px; color: #2a1d0a; }
.stk p { margin: 0; }
.stk > i { position: absolute; z-index: 2; pointer-events: none; }
.stk > i.tape { left: 50%; top: -11px; width: 62px; height: 20px; margin-left: -31px; rotate: -3deg; background: rgba(240,226,170,.78); border-left: 3px dotted rgba(0,0,0,.16); border-right: 3px dotted rgba(0,0,0,.16); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.stk > i.pin { left: 50%; top: -8px; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a68, #b3262c 60%, #6a1010); box-shadow: 0 3px 0 rgba(0,0,0,.6); }

/* post-its */
.postit { padding: 22px 14px 20px; min-height: 120px; font: 21px/1.15 var(--font-marker); display: grid; align-items: center; text-align: center;
  background: linear-gradient(170deg, var(--pc, #f0cf4a) 0 92%, color-mix(in srgb, var(--pc, #f0cf4a) 78%, #000) 100%); clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 0 100%); }
.postit.q { font-size: 20px; }
.postit.big { width: 196px; font-size: 24px; min-height: 150px; }
.c-yellow { --pc: #f0cf4a; } .c-pink { --pc: #f08aa8; } .c-blue { --pc: #7ec4ea; } .c-green { --pc: #a8d86a; } .c-orange { --pc: #f2a850; }
.postit::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(0,0,0,.05) 28px 29px); pointer-events: none; }

/* index card */
.index { width: 190px; padding: 26px 14px 16px; background: #f4ecd6; font: 17px/1.55 var(--font-type);
  background-image: linear-gradient(#c0392b 0 0), repeating-linear-gradient(0deg, transparent 0 21px, rgba(60,110,190,.35) 21px 22px);
  background-size: 100% 2px, 100% 100%; background-repeat: no-repeat; background-position: 0 24px, 0 0; }

/* newspaper clipping */
.clipping { width: 176px; padding: 12px 12px 10px; background: #d8cfb6; text-align: center;
  clip-path: polygon(0 3%,8% 0,20% 3%,34% 0,50% 3%,66% 0,80% 3%,92% 0,100% 3%,100% 97%,90% 100%,72% 97%,56% 100%,38% 97%,20% 100%,6% 97%,0 100%); }
.clipping b { display: block; font: 19px/1.05 var(--font-display); letter-spacing: .02em; }
.clipping .col { display: block; height: 22px; margin-top: 8px; background: repeating-linear-gradient(0deg, rgba(0,0,0,.55) 0 2px, transparent 2px 5px); }
.clipping .col.s { width: 60%; margin-left: 0; height: 10px; }
.clipping small { display: block; margin-top: 8px; padding-top: 3px; border-top: 1px solid #1a1408; font: 11px var(--font-text); }

/* ticket stub */
.ticket { width: 176px; padding: 10px 12px 10px 28px; background: #e9b84e; text-align: center; border: 2px dashed rgba(60,30,0,.5);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) , radial-gradient(circle 7px at 100% 50%, #0000 98%, #000); -webkit-mask-composite: source-in; mask-composite: intersect; }
.ticket b { display: block; font: 24px/1 var(--font-comic); letter-spacing: .08em; color: #8e2a22; }
.ticket span { display: block; font: 12px var(--font-type); margin-top: 4px; }
.ticket small { display: block; margin-top: 6px; font: 12px var(--font-type); border-top: 1px dashed rgba(60,30,0,.5); padding-top: 4px; }

/* matchbook */
.matches { width: 118px; padding: 10px 8px 12px; background: #8e2a22; color: #f6ecd0; text-align: center; border: 2px solid #000; }
.matches b { display: block; font: 22px/1 var(--font-comic); letter-spacing: .06em; color: #ffd68a; }
.matches span { display: block; margin-top: 4px; font: 14px var(--font-marker); }
.matches em { display: block; margin-top: 8px; height: 10px; background: repeating-linear-gradient(90deg, #1a0f09 0 3px, #3a2a20 3px 6px); }

/* playing card */
.playing { width: 96px; height: 134px; background: #f6efe0; border: 2px solid #000; border-radius: 8px; color: #111; font-family: var(--font-display); }
.playing b { position: absolute; left: 8px; top: 4px; font-size: 26px; line-height: 1; }
.playing u { position: absolute; left: 9px; top: 32px; font-size: 20px; text-decoration: none; }
.playing span { position: absolute; inset: 0; display: grid; place-items: center; font: 56px var(--font-comic); color: #8e2a22; }

/* photo-booth strip */
.strip { width: 64px; padding: 8px 6px; background: #f2ead4; border: 2px solid #000; display: grid; gap: 6px; }
.strip s { display: block; height: 54px; background: radial-gradient(circle at 50% 36%, #060916 0 9px, transparent 10px), radial-gradient(ellipse at 50% 100%, #060916 0 18px, transparent 19px), linear-gradient(#5a6a8c, #2a3556); border: 1px solid #000; }
.strip s:nth-child(2n) { filter: contrast(1.2) brightness(.85); } .strip s:nth-child(3n) { filter: hue-rotate(-20deg); }

/* business card */
.biz { width: 190px; padding: 16px 14px 14px; background: #f6efe0; border: 2px solid #000; text-align: center; }
.biz b { display: block; font: 40px/1 var(--font-display); color: #8e2a22; }
.biz p { margin-top: 6px; font: 15px/1.3 var(--font-text); border-top: 1px solid #2a1d0a; padding-top: 6px; }
.biz::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(0,0,0,.35); pointer-events: none; }

/* evidence tag */
.tag { width: 112px; padding: 22px 8px 10px; background: #dcc48a; text-align: center; clip-path: polygon(0 18%, 18% 0, 100% 0, 100% 100%, 0 100%); border: 2px solid #000; }
.tag i.hole { position: absolute; left: 14px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #1a0f09; box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
.tag b { display: block; font: 17px/1 var(--font-comic); letter-spacing: .05em; color: #8e2a22; }
.tag span { display: block; margin-top: 4px; font: 13px var(--font-type); }
.tag small { display: block; margin-top: 6px; font: 11px var(--font-marker); }

/* stamped note */
.stampnote { width: 160px; height: 100px; background: #efe5c8; display: grid; place-items: center; }
.stampnote p { rotate: -8deg; padding: 2px 10px; font: 24px var(--font-comic); letter-spacing: .1em; color: #b3262c; border: 4px solid #b3262c; border-radius: 4px; opacity: .88; text-align: center; line-height: 1.1; }

/* map scrap */
.map { width: 168px; height: 128px; background: #d9cfa8; border: 2px solid #000; display: grid; place-items: center;
  background-image: linear-gradient(rgba(60,90,120,.35) 2px, transparent 2px), linear-gradient(90deg, rgba(60,90,120,.35) 2px, transparent 2px), linear-gradient(115deg, transparent 46%, rgba(60,90,120,.4) 47% 49%, transparent 50%);
  background-size: 24px 24px, 24px 24px, 100% 100%; }
.map b { font: 52px var(--font-comic); color: #b3262c; -webkit-text-stroke: 1px #000; rotate: -8deg; }

/* envelope */
.envelope { width: 176px; height: 112px; background: #e8dcb8; border: 2px solid #000; display: grid; place-items: end center; padding-bottom: 10px;
  background-image: linear-gradient(155deg, transparent 49%, rgba(0,0,0,.35) 50%, transparent 52%), linear-gradient(25deg, transparent 49%, rgba(0,0,0,.25) 50%, transparent 52%); }
.envelope p { font: 15px var(--font-marker); color: #8e2a22; rotate: -3deg; text-align: center; background: rgba(232,220,184,.9); padding: 0 6px; }

/* fingerprint card */
.finger { width: 120px; padding: 10px 10px 8px; background: #efe5c8; border: 2px solid #000; text-align: center; }
.finger u { display: block; width: 74px; height: 74px; margin: 0 auto; border-radius: 50% / 54%; background: repeating-radial-gradient(ellipse at 50% 60%, #0a0a14 0 2px, transparent 2px 5px); mask: radial-gradient(ellipse, #000 56%, transparent 72%); -webkit-mask: radial-gradient(ellipse, #000 56%, transparent 72%); }
.finger small { display: block; margin-top: 6px; font: 11px var(--font-type); }

/* telegram */
.telegram { width: 190px; padding: 12px 12px 14px; background: #efe0a6; border: 2px solid #000; font: 14px/1.5 var(--font-type); letter-spacing: .04em; }
.telegram small { display: block; margin-bottom: 6px; font: 11px var(--font-type); letter-spacing: .2em; border-bottom: 2px solid #2a1d0a; padding-bottom: 3px; }

/* receipt */
.receipt { width: 140px; padding: 14px 10px 16px; background: #f6f2e6; font: 12px/1.5 var(--font-type);
  clip-path: polygon(0 0,100% 0,100% 96%,92% 100%,84% 96%,76% 100%,68% 96%,60% 100%,52% 96%,44% 100%,36% 96%,28% 100%,20% 96%,12% 100%,4% 96%,0 100%); }
.receipt b { display: block; text-align: center; font: 18px var(--font-comic); letter-spacing: .08em; }
.receipt span, .receipt small { display: block; }
.receipt small { margin-top: 6px; text-align: center; font-size: 10px; }

/* tape and pins on clipped shapes sit just inside the edge so the clip doesn't cut them off */
.postit > i.tape, .ticket > i.tape { top: 2px; }
.clipping > i.pin, .receipt > i.pin { top: 3px; }

/* ---- where stickers sit ---- */
.stk-row { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: nowrap; gap: 16px; }
.stk-top { min-height: 150px; margin: -10px 0 18px; padding: 0 20px; }
.stk-bottom { min-height: 140px; margin: 28px 0 0; padding: 0 330px 0 40px; align-items: flex-start; }
.fillcell { display: grid; place-items: center; min-height: 200px; }


/* the "no results" note */
.board-empty { position: relative; z-index: 3; display: inline-block; margin: 20px 0 0 24px; padding: 22px 26px; rotate: -2deg; font: 24px/1.2 var(--font-marker); color: #2a1d0a; background: #f0cf4a; box-shadow: 5px 7px 0 rgba(0,0,0,.45); }
.board-empty b { font-family: var(--font-comic); font-size: 32px; color: #b3262c; letter-spacing: .06em; }
.board-empty[hidden] { display: none; }
.board-empty::before { content: ""; position: absolute; left: 50%; top: -9px; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a68, #b3262c 60%, #6a1010); box-shadow: 0 3px 0 rgba(0,0,0,.6); }

@media (max-width: 900px) {
  .stk-top, .stk-bottom { padding: 0 6px; min-height: 0; flex-wrap: wrap; justify-content: center; }
  .stk-bottom { padding: 0 6px; }
  .stk-row .stk-wrap:nth-child(n+3) { display: none; }
  .fillcell { min-height: 150px; }
  .stk { scale: .9; }
}
@media (max-width: 640px) { .stk-row .stk-wrap:nth-child(n+2) { display: none; } .fillcell { display: none; } }
@media (prefers-reduced-motion: reduce) { .stk-wrap { transition: none; } }
