/* Passport → red ASAAAB stamp → boarding pass prints out (share flow). */
.card.passport{overflow-x:hidden} /* stays position:absolute from the site; absolute already anchors the stamp */
.bp-stamp{position:absolute; z-index:5; right:14px; top:58px; width:150px; height:104px; pointer-events:none;
  color:#d4202a; opacity:0; transform:rotate(-12deg); filter:url(#bpInk)}
.bp-stamp svg{width:100%; height:100%; display:block; overflow:visible}
.card.passport.stamped .bp-stamp{animation:bpStamp .42s cubic-bezier(.2,1.6,.35,1) forwards}
.card.passport.stamped{animation:bpThud .32s .12s ease-out}
@keyframes bpStamp{0%{opacity:0; transform:rotate(-20deg) scale(2.4)} 55%{opacity:.95; transform:rotate(-12deg) scale(.94)} 100%{opacity:.88; transform:rotate(-12deg) scale(1)}}
@keyframes bpThud{0%{transform:translateY(0)} 35%{transform:translateY(3px) scale(.995)} 100%{transform:none}}

/* the printer slot + the pass feeding out of it */
.bp-printer{margin-top:12px; display:none}
.bp-printer.on{display:block}
.bp-slot{height:14px; border-radius:7px; background:linear-gradient(#16191c, #3a3f45); box-shadow:inset 0 3px 4px rgba(0,0,0,.6); margin:0 6px; position:relative; z-index:2}
.bp-feed{overflow:hidden; height:0; margin:-7px 14px 0; transition:height 2.1s steps(14, end)}
.bp-printer.printed .bp-feed{height:var(--h, 240px)}
.bp-pass{display:flex; background:#fffaf4; color:#16191c; border-radius:0 0 12px 12px; box-shadow:0 10px 22px -12px rgba(0,0,0,.5);
  font-family:var(--hwy, "Overpass"), "Arial Narrow", sans-serif; position:relative; padding-top:7px}
.bp-main{flex:1 1 auto; min-width:0; padding:0 0 10px}
.bp-stub{flex:0 0 31%; border-left:2px dashed #e7c9c3; padding:0 0 10px; position:relative}
.bp-stub::before,.bp-stub::after{content:""; position:absolute; left:-9px; width:16px; height:16px; border-radius:50%; background:var(--paper, #fbf6e9)}
.bp-stub::before{top:-1px} .bp-stub::after{bottom:-8px}
.bp-head{background:#e1261c; color:#fff; display:flex; align-items:center; gap:8px; padding:7px 12px 5px; font-weight:900; font-size:15px; letter-spacing:.06em}
.bp-head svg{width:18px; height:18px; flex:none}
.bp-route{display:flex; align-items:flex-end; justify-content:space-between; gap:8px; padding:8px 12px 0}
.bp-route small,.bp-grid small{display:block; font-weight:800; font-size:8.5px; letter-spacing:.16em; color:#e1261c}
.bp-route b{display:block; font-weight:900; font-size:34px; line-height:.95; color:#e1261c}
.bp-route i{display:block; font-style:normal; font-weight:900; font-size:11px; letter-spacing:.04em; white-space:nowrap}
.bp-route .to{text-align:right}
.bp-arc{flex:1 1 auto; height:34px; position:relative; min-width:40px}
.bp-arc svg{position:absolute; inset:0; width:100%; height:100%; overflow:visible}
.bp-grid{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:6px 8px; padding:8px 12px 0}
.bp-grid b{display:block; font-weight:900; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.bp-grid .wide{grid-column:span 2}
.bp-fine{padding:7px 12px 0; font-weight:800; font-size:8.5px; letter-spacing:.14em; color:#e1261c; text-align:center}
.bp-stub .bp-head{justify-content:center; font-size:11px; letter-spacing:.1em}
.bp-stub .bp-grid{grid-template-columns:1fr 1fr}
.bp-code{margin:8px 10px 0; height:30px; background-repeat:no-repeat}
.bp-go{margin-top:12px; display:none}
.bp-printer.printed .bp-go{display:flex; animation:bpIn .3s 2.1s both}
@keyframes bpIn{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}
@media (max-width:420px){
  .bp-route b{font-size:26px} .bp-grid{grid-template-columns:repeat(2, minmax(0,1fr))} .bp-grid .wide{grid-column:span 2}
}
@media (prefers-reduced-motion:reduce){
  .card.passport.stamped .bp-stamp{animation:none; opacity:.88; transform:rotate(-12deg)}
  .card.passport.stamped{animation:none} .bp-feed{transition:none} .bp-printer.printed .bp-go{animation:none}
}
.card.passport.bp-wait #sharePanel{display:none!important}
.bp-printer{scroll-margin-top:12px}
@media (max-width:520px){
  .bp-pass{flex-direction:column}
  .bp-stub{border-left:0; border-top:2px dashed #e7c9c3; display:flex; align-items:center; gap:10px; padding:8px 12px 10px}
  .bp-stub::before,.bp-stub::after{top:-9px; bottom:auto; left:-9px} .bp-stub::after{left:auto; right:-9px}
  .bp-stub .bp-head{display:none} .bp-stub .bp-grid{display:flex; gap:12px; padding:0}
  .bp-stub .bp-grid div:nth-child(n+3){display:none}
  .bp-stub .bp-code{flex:1; margin:0}
  .bp-main{padding-bottom:8px}
}
