/* --- Sticker base --- */
.sticker {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  touch-action: none;
  transform-origin: 50% 50%;
  transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--srot, 0deg));
  transition:
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 180ms ease,
    filter 180ms ease;
}
.sticker.dragging {
  will-change: transform;
  cursor: grabbing;
  z-index: 999;
  transition: none;
}
.sticker.tidying {
  transition: none;
}
.sticker:hover:not(.dragging) {
  filter: brightness(1.03);
  transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(calc(var(--srot, 0deg) + 3deg)) scale(1.04);
}

/* --- Paper (intro) --- */
.sticker--paper {
  width: 320px;
  padding: 28px 26px 32px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 12px 24px -10px rgba(0,0,0,0.25),
    0 30px 50px -20px rgba(0,0,0,0.2);
  border-radius: 2px;
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 23px,
      rgba(0,0,0,0.04) 23px,
      rgba(0,0,0,0.04) 24px
    );
  background-blend-mode: multiply;
}
.sticker--paper p { margin-bottom: 12px; }
.sticker--paper p:last-child { margin-bottom: 0; }
.sticker--paper .muted { color: var(--muted); font-style: italic; }
.sticker--paper strong { background: linear-gradient(transparent 60%, #fff3a8 60%); padding: 0 2px; }
.sticker--paper a.paper-link {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(transparent 60%, #cfe3ff 60%);
  padding: 0 2px;
  font-weight: 600;
  transition: background 160ms ease;
}
.sticker--paper a.paper-link:hover {
  background: linear-gradient(transparent 0%, #cfe3ff 0%);
}

/* --- Photo (raw + tape label) --- */
.sticker--photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sticker--photo img {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
  background: #eee;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.05),
    0 14px 28px -12px rgba(0,0,0,0.35),
    0 30px 40px -22px rgba(0,0,0,0.2);
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
.photo-label {
  position: relative;
  margin-top: -14px;
  font-family: "Lucida Console", "Consolas", Tahoma, monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  color: #1c3656;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 30, 70, 0.1),
    0 4px 12px -3px rgba(0, 30, 70, 0.3);
  transform: rotate(-2deg);
  z-index: 2;
  white-space: nowrap;
}

/* --- Chip links --- */
.sticker--chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px 10px 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1.5px var(--ink),
    0 6px 14px -6px rgba(0,0,0,0.3);
  transition: transform 120ms ease, box-shadow 180ms ease, background 160ms ease;
}
.sticker--chip span { padding-right: 0 !important; }
.sticker--chip::after {
  content: '↗';
  margin-left: 10px;
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1;
  opacity: 0.65;
  transform: translateY(-2px);
  transition: transform 180ms ease, opacity 180ms ease;
}
.sticker--chip:hover {
  background: var(--ink);
  color: #fff;
}
.sticker--chip:hover::after {
  opacity: 1;
  transform: translate(2px, -4px);
}
.chip--email    { background: #fff4c2; }
.chip--cv       { background: #d7ffd7; }
.chip--linkedin { background: #cfe3ff; }
.chip--telegram { background: #e0d4ff; }
.chip--photos   { background: #ffe0bf; }
.chip--metro    { background: #f3e3e3; font-size: 12px; padding: 6px 9px 6px 12px; }
.chip--metro::after { font-size: 1.1em; margin-left: 6px; }

/* --- Sticky notes --- */
.sticker--note {
  width: 172px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.05),
    0 10px 22px -10px rgba(0,0,0,0.3);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 0 100%);
}
.note--pink   { background: var(--pink);   }
.note--blue   { background: var(--blue);   }
.note--yellow { background: var(--yellow); }
.sticker--note .note-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.5);
}
.sticker--note strong {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
}

@media (max-width: 640px) {
  .sticker--paper { width: 260px; font-size: 15px; }
  .sticker--photo img { width: 180px; height: 180px; }
}
