/* Ticket. */
/* The ticket is a stub torn from a roll: its top and bottom edges are a zigzag cut out of it. */
.ticket {
  text-align: center;
  background: var(--sheet-2);
  padding: 30px 18px 28px;
  -webkit-mask:
    conic-gradient(
        from 135deg at top,
        var(--mask-clear),
        var(--mask-solid) 1deg 89deg,
        var(--mask-clear) 90deg
      )
      top / 18px 51% repeat-x,
    conic-gradient(
        from -45deg at bottom,
        var(--mask-clear),
        var(--mask-solid) 1deg 89deg,
        var(--mask-clear) 90deg
      )
      bottom / 18px 51% repeat-x;
  mask:
    conic-gradient(
        from 135deg at top,
        var(--mask-clear),
        var(--mask-solid) 1deg 89deg,
        var(--mask-clear) 90deg
      )
      top / 18px 51% repeat-x,
    conic-gradient(
        from -45deg at bottom,
        var(--mask-clear),
        var(--mask-solid) 1deg 89deg,
        var(--mask-clear) 90deg
      )
      bottom / 18px 51% repeat-x;
}
.ticket-title {
  font-size: var(--fs-title);
  margin-bottom: 6px;
}
.ticket-ref {
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.muted {
  color: var(--mute);
  font-size: var(--fs-label);
  font-weight: 700;
}
.key-block {
  margin: 6px auto 12px;
  padding: 20px 14px 14px;
  border: 2px dashed var(--accent);
  border-radius: 4px;
  max-width: 420px;
  position: relative;
}
.key-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: var(--fs-label);
  margin-bottom: 4px;
}
.key-note-text {
  max-width: 30ch;
}
.callout-arrow {
  display: inline-flex;
  color: var(--accent);
  margin-top: 2px;
}
.callout-arrow svg {
  display: block;
}
.key-label {
  margin: 0 0 6px;
  color: var(--mute);
  font-size: var(--fs-label);
  font-weight: 700;
}
.key-digits {
  display: inline-flex;
  gap: 8px;
  direction: ltr;
}
.key-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
  font-size: 2.25rem;
}
.shot-note {
  margin: 12px 0 18px;
  font-weight: 700;
}
.ticket .summary {
  text-align: start;
  margin-top: 8px;
}
/* The time of a booking: the parrot points at the time on a clock, the pirate his hook at the day
   on a calendar. One picture for both languages, with its own colours on a parchment card, the same
   in both themes and in the saved image; only the card is a little darker at night. The words and
   the two figures sit over the drawing, placed in hundredths of its 440 by 220 box, each centred on
   what it labels. */
.when {
  position: relative;
  max-width: 440px;
  margin: 4px auto 18px;
  container-type: inline-size;
  color: var(--scene-ink);
  direction: ltr;
}
.when-card {
  fill: var(--scene-card);
}
.when-art {
  display: block;
  width: 100%;
  height: auto;
}
.when-pirate,
.when-parrot {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.when-parrot {
  top: 24.5%;
  left: 0;
  width: 18.4%;
}
.when-pirate {
  top: 10.5%;
  left: 41.8%;
  width: 33%;
}
/* The hands sweep from 12 to the time, then the slot shows. */
.when .sweep {
  transform-box: view-box;
  transform-origin: 118px 104px;
  animation: hand-sweep 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.when .slice {
  animation: slice-in 0.5s ease-out 1.1s both;
}
@keyframes hand-sweep {
  from {
    transform: rotate(var(--from));
  }
}
@keyframes slice-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .when .sweep,
  .when .slice {
    animation: none;
  }
}
.still .when .sweep,
.still .when .slice {
  animation: none;
}
/* The month is centred on the red band below the rings (x 306 to 422, y 30 to 47); the day on the
   front page (x 306 to 416, y 53 to 137). */
.when-head {
  position: absolute;
  top: 13.7%;
  height: 7.7%;
  left: 69.55%;
  width: 26.36%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scene-band-ink);
  font-family: var(--font-body);
  font-size: 3.9cqw;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.when-cal-text {
  position: absolute;
  top: 24.2%;
  height: 38%;
  left: 69.55%;
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}
.when-big {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10cqw;
  font-weight: 700;
  line-height: 1;
}
.when-sub {
  margin-top: 0.6cqw;
  font-size: 3.6cqw;
  font-weight: 700;
  color: var(--scene-mute);
}
.when-sub.only {
  padding: 0 4%;
  font-size: 3.8cqw;
  color: var(--scene-ink);
}
/* The time is centred under the clock (x 118). */
.when-time {
  position: absolute;
  top: 84.8%;
  left: 11.82%;
  width: 30%;
  text-align: center;
  font-size: 4cqw;
  font-weight: 700;
  white-space: nowrap;
}
.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
