/* Chhaap Stamp · DS-079 · .cp- prefixed */
.cp { font: 400 14px/1.6 ui-sans-serif, system-ui, sans-serif; max-width: 420px; }
.cp-doc {
  position: relative; background: #FAF7F0; border-radius: 10px;
  border: 1px solid #D8D2C4; padding: 22px 24px 30px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.cp-title { color: #4A4438; font: 700 13px/1.4 Georgia, serif; margin-bottom: 14px; }
.cp-lines span { display: block; height: 8px; border-radius: 4px;
  background: #E4DFD2; margin-bottom: 9px; }
.cp-lines span:nth-child(2) { width: 88%; }
.cp-lines span:nth-child(3) { width: 72%; }
.cp-lines span:nth-child(4) { width: 55%; }
.cp-mark {
  position: absolute; right: 18px; bottom: 18px;
  border: 3px double var(--ink); border-radius: 8px;
  color: var(--ink); padding: 8px 16px; text-align: center;
  transform: rotate(var(--ang)) scale(2.2); opacity: 0;
  mix-blend-mode: multiply; pointer-events: none;
  font-family: Georgia, serif;
}
.cp-word { font: 800 20px/1.1 inherit; letter-spacing: .14em; }
.cp-date { font: 600 11px/1.4 inherit; letter-spacing: .06em; }
.cp-hit .cp-mark {
  opacity: .82;
  transform: rotate(var(--ang)) scale(1);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), opacity .12s;
}
.cp-hit .cp-doc::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 82%, rgba(0,0,0,.14), transparent 40%);
  animation: cpFade .5s forwards;
}
@keyframes cpFade { to { opacity: 0; } }
.cp-go {
  margin-top: 16px; width: 100%; padding: 11px; border: 0; border-radius: 10px;
  background: linear-gradient(160deg, #8C4A2D, #6E3520); color: #F5EDE0;
  font: 700 13px/1 inherit; cursor: pointer; letter-spacing: .03em;
}
.cp-go:hover { filter: brightness(1.12); }
.cp-rm .cp-mark, .cp-rm.cp-hit .cp-mark { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .cp-hit .cp-mark, .cp-hit .cp-doc::after { transition: none; animation: none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
