/* A ticket (idea from The Kitchen by dqnamo, written again for the kit): a coloured card with two half-circle notches where the
   stub starts, a dashed tear line, and — on a mouse — a small 3D tilt with a glare (public/js/ticket.js). The panel draws its
   coupons with the same shape (admin/app.css). Colours: --tk-paper, --tk-ink; the stub's width: --tk-stub. */
.ticket { --tk-paper: #0a84ff; --tk-ink: #fff; --tk-notch: 11px; --tk-stub: 31%; --tk-cut: var(--tk-stub);
  position: relative; display: grid; grid-template-columns: 1fr var(--tk-stub); min-height: 112px; border-radius: 16px;
  color: var(--tk-ink); background: linear-gradient(135deg, rgb(255 255 255 / .2), transparent 45%), var(--tk-paper);
  -webkit-mask: radial-gradient(circle var(--tk-notch) at var(--tk-cut) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--tk-notch) at var(--tk-cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--tk-notch) at var(--tk-cut) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--tk-notch) at var(--tk-cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  transform: perspective(700px) rotateX(var(--tk-rx, 0deg)) rotateY(var(--tk-ry, 0deg)) scale(var(--tk-s, 1));
  transition: transform 220ms cubic-bezier(.23, 1, .32, 1); }
:dir(ltr) .ticket { --tk-cut: calc(100% - var(--tk-stub)); grid-template-columns: 1fr var(--tk-stub); }
.ticket::before { content: ""; position: absolute; inset-block: calc(var(--tk-notch) + 4px); left: var(--tk-cut); border-left: 2px dashed currentColor; opacity: .35; translate: -1px 0; }
.ticket::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--tk-glare, 0); transition: opacity 220ms;
  background: radial-gradient(circle at var(--tk-gx, 50%) var(--tk-gy, 50%), rgb(255 255 255 / .35), transparent 55%); }
.ticket-main { display: grid; align-content: center; gap: 4px; padding: 14px 18px; min-width: 0; }
.ticket-big { font-size: 20px; line-height: 1.25; }
.ticket-stub { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 10px 8px; min-width: 0; }
.ticket-code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; font-weight: 700; overflow-wrap: anywhere; text-align: center; }
.ticket-copy { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding-inline: 12px; border: 0; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 600;
  color: inherit; background: rgb(255 255 255 / .22); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ticket { transition: none; } }
