/* The flight compensation's pieces in the brand's pixel style (claims.py), on the home page's card and the checker's
   answer: pixel tags (a stepped point, a square pixel, Silkscreen), the payout receipt with a stepped tear and its
   "0% commission" stamp, and the contrail bars: the four bands reach the plane with Wingman, and stop a third short
   with a claims company. */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px 0 14px; background: #1E1E21; color: #F7F3F1;
  box-shadow: inset 0 0 0 1px #3A3A40; font: 400 12px/1 "Silkscreen", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 6px 76%, 3px 76%, 3px 62%, 0 62%, 0 38%, 3px 38%, 3px 24%, 6px 24%); }
.tag::before { content: ""; flex: none; width: 6px; height: 6px; background: currentColor; }
.tag.hot { background: #EE4540; color: #0A0A0B; box-shadow: none; }

.receipt-wrap { position: relative; width: min(100%, 400px); }
.receipt { position: relative; width: 100%; padding: 24px 24px 34px; background: #FBF6F3; color: #2D142C;
  font: 500 14px/1.6 "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% calc(100% - 8px), 95% 100%, 90% 100%, 90% calc(100% - 8px), 85% calc(100% - 8px),
    85% 100%, 80% 100%, 80% calc(100% - 8px), 75% calc(100% - 8px), 75% 100%, 70% 100%, 70% calc(100% - 8px), 65% calc(100% - 8px), 65% 100%,
    60% 100%, 60% calc(100% - 8px), 55% calc(100% - 8px), 55% 100%, 50% 100%, 50% calc(100% - 8px), 45% calc(100% - 8px), 45% 100%, 40% 100%,
    40% calc(100% - 8px), 35% calc(100% - 8px), 35% 100%, 30% 100%, 30% calc(100% - 8px), 25% calc(100% - 8px), 25% 100%, 20% 100%,
    20% calc(100% - 8px), 15% calc(100% - 8px), 15% 100%, 10% 100%, 10% calc(100% - 8px), 5% calc(100% - 8px), 5% 100%, 0 100%); }
.receipt .brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.receipt .brand img { width: 98px; height: 20px; image-rendering: pixelated; }
.receipt .brand span, .receipt .total span:first-child { font: 400 11px/1.2 "Silkscreen", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.receipt .brand span { color: #6E5468; text-align: right; }
.receipt .meta { margin: 0; color: #6E5468; font-size: 12px; line-height: 1.5; }
.receipt .item { display: flex; gap: 8px; align-items: baseline; }
.receipt .item .who { min-width: 0; }
.receipt .item .dots { flex: 1; min-width: 12px; border-bottom: 2px dotted #CDBFC6; transform: translateY(-4px); }
.receipt .item b { font-weight: 600; white-space: nowrap; }
.receipt .item.cut { color: #B42539; }
.receipt .item.cut .who { text-decoration: line-through; text-decoration-thickness: 2px; }
.receipt hr { margin: 12px 0; border: 0; border-top: 2px dashed #CDBFC6; }
.receipt .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt .total b { font: 700 28px/1 "Geist Mono", ui-monospace, monospace; white-space: nowrap; }
/* the stamp hangs off the receipt's top corner, over its label, never over the amounts */
.stamp { position: absolute; right: -14px; top: 10px; padding: 8px 12px; border: 3px solid #C72C41; color: #C72C41;
  background: rgba(251, 246, 243, .75); font: 400 14px/1 "Silkscreen", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(6deg); pointer-events: none; }

.trails { display: grid; gap: 18px; }
.trail { display: grid; gap: 10px; }
.trail .who { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; color: #A1A1AA; }
.trail .who b { font: 600 17px/1 "Geist Mono", ui-monospace, monospace; white-space: nowrap; }
.trail.self .who { color: #F7F3F1; }
.trail .track { display: flex; align-items: center; gap: 10px; }
.trail .strip { display: grid; grid-template-rows: repeat(4, 4px); flex: 1; }
.trail .strip i:nth-child(1) { background: #EE4540; } .trail .strip i:nth-child(2) { background: #C72C41; }
.trail .strip i:nth-child(3) { background: #801336; } .trail .strip i:nth-child(4) { background: #510A32; }
.trail.cut .strip { flex: 0 0 calc((100% - 42px) * .667); }
.trail.cut .gap { flex: 1; height: 16px; background: repeating-linear-gradient(90deg, #3A3A40 0 4px, transparent 4px 8px); opacity: .6; }
.trail .track img { flex: none; width: 32px; height: 32px; image-rendering: pixelated; }
.trail.cut .track img { filter: grayscale(1) brightness(.55); }
@media (prefers-reduced-motion: no-preference) {
  .trail .strip { transform-origin: left; animation: trail-in 1.1s steps(12) both; }
  .trail.self .strip { animation-delay: .35s; }
}
@keyframes trail-in { from { transform: scaleX(0); } }
