/* =========================================================
   RECEIPTS
   ========================================================= */
.versus { overflow-x: clip; }
.receipts { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 20px; }
.receipt {
  position: relative; background: var(--paper); padding: 34px 30px 46px; font-family: var(--f-mono); font-size: .9rem;
  box-shadow: 0 30px 60px -20px var(--shadow), 0 0 0 1px var(--line);
}
.receipt-old { transform: rotate(-2.5deg); }
.receipt-new { transform: rotate(1.8deg); background: var(--mint); }
.r-zig { position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: inherit;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; }
.receipt-old .r-zig { background: var(--paper); }
.receipt-new .r-zig { background: var(--mint); }
.r-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px dashed var(--line-strong); margin-bottom: 14px; }
.r-head b { font-size: 1.05rem; letter-spacing: .08em; }
.r-head span { font-size: .7rem; color: var(--text-muted); }
.r-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.r-lines li { display: flex; justify-content: space-between; gap: 16px; position: relative; }
.r-lines li span:last-child { flex: none; font-weight: 600; }
.receipt-old .r-lines li::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 3px; border-radius: 3px;
  background: var(--danger); transform: scaleX(0) rotate(-1deg); transform-origin: left; transition: transform .45s var(--ease);
}
.receipt-old.in .r-lines li::after { transform: scaleX(1) rotate(-1deg); }
.receipt-old.in .r-lines li:nth-child(1)::after { transition-delay: .2s; }
.receipt-old.in .r-lines li:nth-child(2)::after { transition-delay: .45s; }
.receipt-old.in .r-lines li:nth-child(3)::after { transition-delay: .7s; }
.receipt-old.in .r-lines li:nth-child(4)::after { transition-delay: .95s; }
.receipt-old.in .r-lines li:nth-child(5)::after { transition-delay: 1.2s; }
.receipt-old.in .r-lines li:nth-child(6)::after { transition-delay: 1.45s; }
.r-total { display: flex; justify-content: space-between; align-items: end; margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--line-strong); font-weight: 600; }
.r-total span:last-child { text-align: right; font: 700 1.25rem/1.15 var(--f-display); letter-spacing: -.02em; }
.r-void {
  position: absolute; top: 42%; left: 50%; translate: -50% -50%; font: 800 clamp(4rem, 9vw, 7rem)/1 var(--f-display); letter-spacing: .05em;
  color: var(--danger); border: 8px solid var(--danger); padding: 0 24px; border-radius: 16px; mix-blend-mode: multiply;
  opacity: 0; transform: rotate(-16deg) scale(2.4); transition: opacity .3s 1.9s, transform .5s 1.9s var(--spring);
}
:root[data-theme="dark"] .r-void { mix-blend-mode: normal; }
.receipt-old.in .r-void { opacity: .85; transform: rotate(-16deg) scale(1); }
.receipt-new .r-lines li { opacity: 0; transform: translateX(-12px); transition: .5s var(--ease); }
.receipt-new.in .r-lines li { opacity: 1; transform: none; }
.receipt-new.in .r-lines li:nth-child(2) { transition-delay: .1s; } .receipt-new.in .r-lines li:nth-child(3) { transition-delay: .2s; }
.receipt-new.in .r-lines li:nth-child(4) { transition-delay: .3s; } .receipt-new.in .r-lines li:nth-child(5) { transition-delay: .4s; }
.receipt-new.in .r-lines li:nth-child(6) { transition-delay: .5s; }
.versus-arrow svg { width: 100%; fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.2s 1.4s var(--ease); }
.receipts.in .versus-arrow svg { stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .receipts { grid-template-columns: 1fr; gap: 40px; }
  .versus-arrow { width: 90px; justify-self: center; rotate: 90deg; }
}
@media (max-width: 560px) {
  .receipt { padding: 28px 20px 40px; font-size: .8rem; }
  .r-void { font-size: 3.4rem; border-width: 5px; padding: 0 14px; }
}
