/* The boarding pass (passes), the gig-style ticket (events) and their full-screen views. */
.bp { --behind: var(--paper); position: relative; width: 100%; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(15, 26, 23, .06), 0 18px 34px rgba(27, 63, 224, .12); transition: transform .3s var(--ease), box-shadow .3s; }
.bp[role="button"] { cursor: pointer; }
.bp[role="button"]:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 24px 44px rgba(27, 63, 224, .2); }
.bp[role="button"]:active { transform: scale(.985); }
.form-card .bp, .full .bp { --behind: #0F1A17; }
.bp-band { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-radius: 22px 22px 0 0; background: var(--pass); color: #fff; font: 500 11px var(--ff-m); letter-spacing: .12em; transition: background .6s var(--ease); }
.bp-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; } .bp-brand .ic { width: 17px; height: 17px; }
.bp-class { color: var(--yellow); white-space: nowrap; }
.bp.is-group .bp-band { background: var(--ink); } .bp.is-group .bp-class { color: var(--yellow); }
.bp[data-status="boarded"] .bp-band { background: var(--venue); } .bp[data-status="landed"] .bp-band { background: #6B7A73; }
.bp-main { padding: 14px 16px 10px; }
.bp-route { display: flex; align-items: center; gap: 8px; }
.bp-end { min-width: 0; max-width: 40%; } .bp-end.r { text-align: right; margin-left: auto; }
.bp-end b { display: block; font: 800 42px/.95 var(--ff-d); letter-spacing: -.03em; }
.bp-end small { display: block; font: 400 10px var(--ff-m); color: var(--ink-3); letter-spacing: .02em; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-line { position: relative; flex: 1; height: 38px; min-width: 70px; margin: 0 2px; }
.bp-line::before { content: ""; position: absolute; left: 6px; right: 22px; bottom: 5px; height: 2px; background: repeating-linear-gradient(90deg, #B6C0BA 0 5px, transparent 5px 10px); }
.bp-line .o { position: absolute; left: 0; bottom: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.door { position: absolute; right: 0; bottom: 2px; width: 26px; height: 30px; color: var(--pass); transform-origin: bottom center; }
.door svg { width: 100%; height: 100%; display: block; overflow: visible; }
.door .lit { opacity: 0; transition: opacity .4s; }
.bp.is-group .door, .bp.is-group .walker { color: var(--ink); }
.walker { position: absolute; left: 2px; bottom: 4px; width: 20px; height: 30px; color: var(--pass); animation: walkTo 2.9s var(--d, .4s) cubic-bezier(.4, .1, .35, 1) forwards; }
.walker .wk { width: 100%; height: 100%; display: block; overflow: visible; }
.wk path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wk .bag { fill: var(--yellow); stroke: currentColor; stroke-width: 1.3; }
.wk .a1 { transform-origin: 10px 10px; animation: swingA .58s linear 5 var(--d, .4s); } .wk .a2 { transform-origin: 10px 10px; animation: swingB .58s linear 5 var(--d, .4s); }
.wk .l1 { transform-origin: 10px 18px; animation: swingB .58s linear 5 var(--d, .4s); } .wk .l2 { transform-origin: 10px 18px; animation: swingA .58s linear 5 var(--d, .4s); }
.wk .body { animation: bobY .29s ease-in-out 10 var(--d, .4s); }
@keyframes walkTo { from { left: 2px; } to { left: calc(100% - 50px - var(--off, 0px)); } }
@keyframes swingA { 0%, 100% { transform: rotate(28deg); } 50% { transform: rotate(-28deg); } }
@keyframes swingB { 0%, 100% { transform: rotate(-28deg); } 50% { transform: rotate(28deg); } }
@keyframes bobY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
/* checked in: the walker goes through the door and the lights come on */
.bp[data-status="boarded"] .walker { left: calc(100% - 22px); opacity: 0; transform: scale(.45); animation: none; }
.bp[data-status="boarded"] .wk * { animation: none; }
.bp[data-status="boarded"] .door .lit, .bp[data-status="landed"] .door .lit { opacity: 0; }
.bp[data-status="boarded"] .door .lit { opacity: 1; }
.bp.entering .walker { animation: walkIn 1.1s cubic-bezier(.5, 0, .8, .6) both; opacity: 1; transform: none; }
.bp.entering .wk .a1, .bp.entering .wk .l2 { animation: swingA .5s linear 2; } .bp.entering .wk .a2, .bp.entering .wk .l1 { animation: swingB .5s linear 2; }
.bp.entering .door { animation: doorPop .7s 1s var(--ease); }
@keyframes walkIn { from { left: calc(100% - 50px - var(--off, 0px)); opacity: 1; transform: scale(1); } 80% { opacity: 1; } to { left: calc(100% - 22px); opacity: 0; transform: scale(.45); } }
@keyframes doorPop { 40% { transform: scale(1.18, 1.1); } to { transform: none; } }
/* landed: back out the door and home again, facing the other way */
.bp[data-status="landed"] .walker { left: 2px; transform: scaleX(-1); animation: none; }
.bp[data-status="landed"] .wk * { animation: none; }
.bp.leaving .walker { animation: walkBack 2.4s .2s cubic-bezier(.4, .1, .35, 1) both; transform: scaleX(-1); }
.bp.leaving .wk .a1, .bp.leaving .wk .l2 { animation: swingA .58s linear 4; } .bp.leaving .wk .a2, .bp.leaving .wk .l1 { animation: swingB .58s linear 4; }
@keyframes walkBack { from { left: calc(100% - 22px); opacity: 0; } 15% { opacity: 1; } to { left: 2px; opacity: 1; } }
.bp-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px 10px; margin-top: 16px; }
.bp-grid > div { min-width: 0; }
.bp-grid dt { font: 400 9px var(--ff-m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.bp-grid dd { font: 500 14px var(--ff-m); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-perf { position: relative; height: 20px; }
.bp-perf hr { position: absolute; left: 14px; right: 14px; top: 9px; margin: 0; border: 0; border-top: 2px dashed #CFD7D2; }
.bp-perf .n { position: absolute; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--behind); } .bp-perf .n.l { left: -9px; } .bp-perf .n.r { right: -9px; }
.bp-stub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px 15px; transform-origin: left top; }
.bp-code { color: var(--ink); } .bp-code .barcode { display: block; max-width: 100%; height: 30px; } .bp-code small { display: block; font: 400 10px var(--ff-m); letter-spacing: .12em; margin-top: 3px; color: var(--ink-2); }
.bp-state { text-align: right; min-width: 0; } .bp-state small { display: block; font: 400 9.5px var(--ff-m); color: var(--ink-3); margin-top: 5px; max-width: 120px; margin-left: auto; line-height: 1.3; }
.chip-state { display: inline-block; padding: 4px 10px; border-radius: 6px; font: 500 11px var(--ff-m); letter-spacing: .12em; }
.s-issued { background: #DFF5EA; color: #11603F; } .s-boarded { background: #FFF0B8; color: #6B4E00; } .s-landed { background: #E4E9E6; color: #44524C; }
.bp-stub.tear { animation: tear .78s cubic-bezier(.5, 0, 1, .6) forwards; }
@keyframes tear { 0% { transform: none; } 22% { transform: rotate(-2deg) translateY(3px); } 100% { transform: translateY(190px) rotate(16deg); opacity: 0; } }
.bp[data-status="boarded"] .bp-stub { animation: stubIn .6s .05s var(--ease) both; }
@keyframes stubIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.bp-shine { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; pointer-events: none; z-index: 3; }
.bp-shine::before { content: ""; position: absolute; inset: -30%; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); mix-blend-mode: soft-light; transform: translateX(calc((var(--mx, 50%) - 50%) * 1.8)); transition: transform .2s ease-out; }
.bp-shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent); animation: sweep 1.5s 1.2s ease-out 1 both; }
@keyframes sweep { to { left: 130%; } }
.bp-terms { display: grid; gap: 12px; padding-top: 6px; } .bp-terms li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.bp-terms li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 2px; background: var(--pass); transform: rotate(45deg); }
.bp-back-card { height: 100%; } .bp-back-card .bp-main { padding-top: 16px; }

/* ---------- full view, shared ---------- */
.full { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: #0F1A17; color: #fff; opacity: 0; transition: opacity .38s ease; pointer-events: auto; }
.full.on { opacity: 1; } .full.leaving { opacity: 0; pointer-events: none; }
.full-head { display: flex; align-items: center; justify-content: space-between; padding: max(24px, env(safe-area-inset-top)) 16px 8px; }
.full-title { font: 700 16px var(--ff-d); }
.full-scroll { flex: 1; overflow-y: auto; padding-bottom: 120px; scrollbar-width: none; overscroll-behavior: contain; } .full-scroll::-webkit-scrollbar { display: none; }
.full-body { padding: 0 20px; }
.full-body > *, .full-scroll > .tap-hint { animation: rise .6s .25s var(--ease) both; }
.full-body > *:nth-child(2) { animation-delay: .32s; } .full-body > *:nth-child(3) { animation-delay: .39s; } .full-body > *:nth-child(4) { animation-delay: .46s; } .full-body > *:nth-child(n+5) { animation-delay: .52s; }
.full-cta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 20px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, #0F1A17 38%); }
.cta-row { display: flex; gap: 10px; } .cta-row .btn { flex: 1; }
.pass-full .btn-block { margin-top: 0; }
.bp-stage { padding: 4px 20px 0; perspective: 1100px; cursor: pointer; }
.bp-tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; transform-style: preserve-3d; }
.bp-flip { position: relative; transform-style: preserve-3d; transition: transform .85s var(--ease); }
.bp-flip.flipped { transform: rotateY(180deg); }
.bp-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bp-face.back { position: absolute; inset: 0; transform: rotateY(180deg); }
.tap-hint { text-align: center; font: 400 11.5px var(--ff-m); color: rgba(255, 255, 255, .5); margin: 14px 0 6px; letter-spacing: .04em; }
.steps { display: flex; gap: 6px; margin: 14px 0 6px; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font: 400 11px var(--ff-m); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45); transition: color .4s; }
.steps li::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: rgba(255, 255, 255, .15); } .steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--yellow); }
.steps i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font: 500 12px var(--ff-m); font-style: normal; transition: all .5s var(--ease); }
.steps .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.steps li.done { color: #fff; } .steps li.done i { background: var(--ok); color: #fff; }
.steps li.now { color: var(--yellow); } .steps li.now i { background: var(--yellow); color: var(--ink); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .5); } 70% { box-shadow: 0 0 0 10px rgba(255, 210, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0); } }
.cd { text-align: center; font: 500 13px var(--ff-m); color: var(--yellow); margin: 12px 0 2px; letter-spacing: .04em; }
.card-d { margin-top: 14px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .07); }
.card-d h3 { color: #fff; } .card-d p { color: rgba(255, 255, 255, .62); font-size: 13.5px; margin-top: 4px; }
.sec-h { font: 700 15px var(--ff-d); margin-bottom: 6px; }
.credit-card { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 108px; height: 108px; flex: none; } .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; } .ring-bg { stroke: rgba(255, 255, 255, .12); } .ring-fg { stroke: var(--yellow); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .ring-in b { font: 800 19px var(--ff-d); letter-spacing: -.02em; } .ring-in small { font: 400 10px var(--ff-m); color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .1em; }
.mini-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .55); } .mini-row .ic { width: 14px; height: 14px; }
.qr-card { display: flex; gap: 14px; align-items: center; }
.qr-box { position: relative; width: 124px; height: 124px; flex: none; padding: 8px; background: #fff; border-radius: 16px; color: var(--ink); overflow: hidden; } .qr { width: 100%; height: 100%; display: block; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--venue), transparent); box-shadow: 0 0 14px 3px rgba(23, 121, 90, .5); animation: scanl 2.4s ease-in-out infinite; }
@keyframes scanl { 0%, 100% { top: 4%; } 50% { top: 94%; } }
.card-d details { border-top: 1px solid rgba(255, 255, 255, .1); } .card-d details:first-of-type { border-top: 0; }
.card-d summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; font-weight: 600; cursor: pointer; list-style: none; } .card-d summary::-webkit-details-marker { display: none; }
.card-d summary .ic { width: 18px; height: 18px; color: rgba(255, 255, 255, .5); transition: transform .35s var(--ease); } .card-d details[open] summary .ic { transform: rotate(180deg); }
.card-d details p, .card-d details li { font-size: 13.5px; color: rgba(255, 255, 255, .68); padding-bottom: 12px; line-height: 1.5; } .card-d details li { padding: 0 0 8px 14px; position: relative; } .card-d details li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.card-d .link { color: var(--yellow); }
.log { display: grid; gap: 14px; margin-top: 8px; } .log li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; } .log i { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--yellow); } .log b { display: block; font-size: 14px; } .log span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .55); } .log small { font: 400 11px var(--ff-m); color: rgba(255, 255, 255, .45); }
.fine { color: rgba(255, 255, 255, .45); } .page .fine, .sheet .fine, .v-detail .fine { color: var(--ink-3); }
.full .fine { margin: 18px 0; }
.sheet-scan .scan { text-align: center; padding: 6px 0 4px; } .sheet-scan h3 { font: 800 22px var(--ff-d); margin-top: 18px; } .sheet-scan p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.viewfinder { position: relative; width: 168px; height: 168px; margin: 8px auto 0; display: grid; place-items: center; color: var(--ink-3); border-radius: 22px; background: #E1E7E3; overflow: hidden; } .viewfinder > .ic { width: 62px; height: 62px; stroke-width: 1.2; }
.viewfinder .c { position: absolute; width: 28px; height: 28px; border: 4px solid var(--ink); transition: border-color .3s; } .c.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; } .c.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; } .c.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; } .c.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.vf-line { position: absolute; left: 12px; right: 12px; height: 3px; background: var(--venue); border-radius: 2px; box-shadow: 0 0 14px 2px rgba(23, 121, 90, .6); animation: scanl 1.2s ease-in-out infinite; }
.viewfinder.ok { background: #D4F2E3; color: var(--venue); } .viewfinder.ok .c { border-color: var(--venue); } .viewfinder.ok .vf-line { display: none; }

/* ---------- event ticket (gig stub) ---------- */
.tk { --behind: var(--paper); position: relative; display: grid; grid-template-columns: 1fr 88px; min-height: 206px; border-radius: 22px; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); isolation: isolate; transition: transform .3s var(--ease), filter .5s;
  -webkit-mask: radial-gradient(circle 11px at calc(100% - 88px) 0, #0000 10.5px, #000 11px) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 88px) 100%, #0000 10.5px, #000 11px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at calc(100% - 88px) 0, #0000 10.5px, #000 11px) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 88px) 100%, #0000 10.5px, #000 11px) bottom / 100% 51% no-repeat; }
.tk-wrap, .tk-stage, .done-tk { filter: drop-shadow(0 16px 22px rgba(15, 26, 23, .2)); }
.tk-perf .n { display: none; }
.tk[role="button"] { cursor: pointer; } .tk[role="button"]:hover { transform: translateY(-3px) rotate(.4deg); } .tk[role="button"]:active { transform: scale(.985); }
.full .tk { --behind: transparent; }
.tk .poster-art { z-index: -1; opacity: .75; mix-blend-mode: soft-light; }
.tk-main { padding: 16px 16px 14px; display: grid; align-content: space-between; gap: 6px; min-width: 0; }
.tk-top { display: flex; justify-content: space-between; gap: 8px; font: 500 10.5px var(--ff-m); letter-spacing: .14em; opacity: .92; }
.tk-date { display: flex; align-items: flex-end; gap: 8px; } .tk-date b { font: 900 82px/.78 var(--ff-p); letter-spacing: -.01em; } .tk-date div { display: grid; font: 500 12px var(--ff-m); letter-spacing: .14em; padding-bottom: 4px; }
.tk h3 { font: 800 27px/.95 var(--ff-p); text-transform: uppercase; letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-main p { font: 400 11.5px var(--ff-m); opacity: .88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-perf { position: absolute; top: 0; bottom: 0; right: 88px; width: 0; border-left: 2.5px dashed rgba(255, 255, 255, .6); }
.tk-perf .n { position: absolute; left: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--behind); } .tk-perf .n.t { top: -11px; } .tk-perf .n.b { bottom: -11px; }
.tk-stub { position: relative; display: grid; place-items: center; background: rgba(0, 0, 0, .16); }
.tk-stub .barcode { position: absolute; width: 130px; height: 30px; color: #fff; transform: rotate(90deg); }
.tk-no { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font: 400 9.5px var(--ff-m); letter-spacing: .06em; opacity: .85; }
.tk-stamp { position: absolute; left: 50%; top: 50%; padding: 4px 18px; border: 4px solid #fff; border-radius: 12px; font: 900 44px var(--ff-p); letter-spacing: .1em; opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); transition: all .5s var(--ease); pointer-events: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.tk.used .tk-stamp { opacity: .95; transform: translate(-50%, -50%) rotate(-14deg) scale(1); } .tk.used .tk-main, .tk.used .tk-stub { filter: saturate(.5) brightness(.85); }
.tk.print { animation: tkIn .9s var(--ease) both; }
@keyframes tkIn { from { transform: translateY(-40px) rotate(-4deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.ticket-full { background: linear-gradient(170deg, var(--c1) -20%, #101814 70%); }
.tk-stage { padding: 8px 20px 18px; }
.count { display: flex; justify-content: center; gap: 22px; margin: 6px 0 10px; } .count div { text-align: center; } .count b { display: block; font: 900 64px/.9 var(--ff-p); } .count small { font: 400 10.5px var(--ff-m); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.act-row { margin-top: 14px; }
.hold-wrap { display: grid; place-items: center; margin: 26px 0 10px; }
.hold { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font: 700 15px var(--ff-d); color: #fff; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .25s var(--ease), background .3s; }
.hold svg { position: absolute; inset: 0; transform: rotate(-90deg); } .hold circle { fill: none; stroke-width: 5; } .h-bg { stroke: rgba(255, 255, 255, .2); } .h-fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: calc(289 * (1 - var(--p, 0))); }
.hold.hot { transform: scale(.94); background: rgba(255, 255, 255, .2); } .hold.ok { background: #fff; color: var(--ink); }
.hold span { position: relative; text-align: center; padding: 0 14px; }

/* narrow phones: give the route line room */
@media (max-width: 380px) {
  .bp-end b { font-size: 34px; }
  .bp-band { padding: 10px 12px; letter-spacing: .08em; }
  .bp-main { padding: 14px 12px 10px; }
  .bp-stub { padding-left: 12px; padding-right: 12px; }
  .bp-state small { max-width: 104px; }
}
