.ticket-wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 360px)); gap: 25px; justify-content: start; margin-top: 42px; }
.wallet-ticket { position: relative; width: 100%; aspect-ratio: .755; perspective: 1600px; }
.wallet-ticket-flip { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 22px; background: transparent; color: inherit; cursor: pointer; perspective: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.wallet-ticket-flip:focus-visible { outline: 3px solid #41d7cc; outline-offset: 5px; }
.wallet-ticket-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .72s cubic-bezier(.2,.8,.2,1); }
.wallet-ticket.is-flipped .wallet-ticket-inner { transform: rotateY(180deg); }
.wallet-ticket-face { position: absolute; inset: 0; display: block; overflow: hidden; padding: 22px; border: 1px solid rgba(154,241,234,.19); border-radius: 22px; color: #fff; background: linear-gradient(145deg, #102631 0%, #142f37 46%, #008b90 150%); box-shadow: 22px 27px 38px rgba(13,49,53,.2), inset 0 1px rgba(255,255,255,.13); backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d; }
.wallet-ticket-face::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 -38px 64px rgba(0,0,0,.12); pointer-events: none; }
.wallet-ticket-back { background: linear-gradient(145deg, #0d202a, #123b43 64%, #007f84); transform: rotateY(180deg); }
.wallet-ticket-noise { position: absolute; inset: 0; opacity: .3; background-image: radial-gradient(rgba(255,255,255,.55) .5px, transparent .7px); background-size: 7px 7px; mix-blend-mode: overlay; pointer-events: none; }
.wallet-ticket-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.wallet-ticket-orb.orb-one { width: 225px; height: 225px; top: -105px; right: -75px; background: radial-gradient(circle, rgba(100,239,228,.38), transparent 68%); }
.wallet-ticket-orb.orb-two { width: 145px; height: 145px; bottom: -88px; left: -78px; border: 1px solid rgba(159,252,244,.25); box-shadow: 0 0 0 26px rgba(141,244,235,.04), 0 0 0 54px rgba(141,244,235,.025); }
.wallet-ticket-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 8px 'DM Mono', monospace; letter-spacing: .75px; }
.wallet-ticket-brand { font: 800 16px Manrope, sans-serif; letter-spacing: -1px; }
.wallet-ticket-brand span { color: #5ce2db; }
.wallet-ticket-live, .wallet-ticket-back-label { display: inline-flex; align-items: center; gap: 5px; color: #b9eeeb; font-size: 7px; letter-spacing: .55px; }
.wallet-ticket-live i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #62e5bc; box-shadow: 0 0 0 4px rgba(98,229,188,.14); }
.wallet-ticket-qr-wrap { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: min(72%, 244px); aspect-ratio: 1; place-items: center; padding: 10px; border-radius: 13px; background: #fff; box-shadow: 0 17px 34px rgba(0,0,0,.22); transform: translate(-50%,-45%); }
.wallet-ticket-qr { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.wallet-ticket-holder { position: absolute; z-index: 1; right: 22px; bottom: 34px; left: 22px; display: grid; gap: 4px; text-align: center; }
.wallet-ticket-holder small { color: #a7d4d2; font: 500 6px 'DM Mono', monospace; letter-spacing: .7px; }
.wallet-ticket-holder strong { overflow: hidden; color: #fff; font: 800 14px Manrope, sans-serif; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.wallet-ticket-content { position: relative; z-index: 1; display: grid; align-content: center; min-height: calc(100% - 108px); padding: 25px 0 15px; }
.wallet-ticket-tag { width: max-content; max-width: 100%; margin-bottom: 12px; padding: 5px 7px; overflow: hidden; border: 1px solid rgba(116,237,228,.55); border-radius: 999px; color: #8bf2ec; font: 700 7px 'DM Mono', monospace; letter-spacing: .55px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-ticket-tag.is-default { border-color: rgba(199,234,233,.28); color: #c6e9e7; }
.wallet-ticket-type { margin-bottom: 7px; overflow: hidden; color: #86e4df; font: 500 8px 'DM Mono', monospace; letter-spacing: 1.15px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wallet-ticket-content strong { display: block; max-width: 260px; overflow: hidden; color: #fff; font: 800 clamp(27px, 3vw, 37px) Manrope, sans-serif; letter-spacing: -.07em; line-height: .88; text-overflow: ellipsis; }
.wallet-ticket-content small { margin-top: 13px; color: #c8e5e4; font: 500 7px 'DM Mono', monospace; letter-spacing: .7px; }
.wallet-ticket-foot { position: absolute; z-index: 1; right: 22px; bottom: 30px; left: 22px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.wallet-ticket-foot small { display: block; color: #a7d4d2; font: 500 6px 'DM Mono', monospace; letter-spacing: .65px; }
.wallet-ticket-foot b { display: block; max-width: 145px; margin-top: 5px; overflow: hidden; color: #fff; font: 700 9px 'DM Mono', monospace; letter-spacing: .45px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-ticket-barcode { flex: none; width: 100px; height: 26px; opacity: .92; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px); }
.wallet-ticket-hint { position: absolute; z-index: 1; right: 22px; bottom: 13px; left: 22px; color: #9cd9d5; font: 500 6px 'DM Mono', monospace; letter-spacing: .55px; text-align: center; }
.wallet-ticket-hint b { margin-left: 5px; color: #62e5de; font-size: 11px; vertical-align: -1px; }
.wallet-ticket-back-title { position: relative; z-index: 1; display: block; margin-top: 39px; color: #e4fbfa; font: 500 22px Georgia, serif; letter-spacing: -.06em; line-height: .94; }
.wallet-ticket-back-title b { color: #5de1da; font-family: Manrope, sans-serif; font-size: 27px; }
.wallet-ticket-details { position: relative; z-index: 1; display: grid; gap: 9px; margin-top: 24px; }
.wallet-ticket-details > span { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 8px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid rgba(202,241,237,.16); }
.wallet-ticket-details small { color: #9bd4d1; font: 500 6px 'DM Mono', monospace; letter-spacing: .55px; }
.wallet-ticket-details b { overflow: hidden; color: #f0fffe; font: 700 8px Manrope, sans-serif; letter-spacing: -.02em; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.wallet-ticket-back-code { position: absolute; z-index: 1; bottom: 32px; left: 22px; color: #61e2db; font: 700 8px 'DM Mono', monospace; letter-spacing: .6px; }
.wallet-ticket.is-used .wallet-ticket-face, .wallet-ticket.is-expired .wallet-ticket-face { border-color: rgba(255,255,255,.22); background: linear-gradient(145deg, #111 0%, #373737 56%, #050505 100%); box-shadow: 22px 27px 38px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.12); }
.wallet-ticket.is-used .wallet-ticket-back, .wallet-ticket.is-expired .wallet-ticket-back { background: linear-gradient(145deg, #080808, #343434 64%, #111); }
.wallet-ticket.is-used .wallet-ticket-orb, .wallet-ticket.is-expired .wallet-ticket-orb { filter: grayscale(1); opacity: .35; }
.wallet-ticket.is-used .wallet-ticket-brand span, .wallet-ticket.is-expired .wallet-ticket-brand span, .wallet-ticket.is-used .wallet-ticket-live, .wallet-ticket.is-expired .wallet-ticket-live, .wallet-ticket.is-used .wallet-ticket-back-label, .wallet-ticket.is-expired .wallet-ticket-back-label, .wallet-ticket.is-used .wallet-ticket-back-title b, .wallet-ticket.is-expired .wallet-ticket-back-title b, .wallet-ticket.is-used .wallet-ticket-back-code, .wallet-ticket.is-expired .wallet-ticket-back-code, .wallet-ticket.is-used .wallet-ticket-hint b, .wallet-ticket.is-expired .wallet-ticket-hint b { color: #fff; }
.wallet-ticket.is-used .wallet-ticket-live i, .wallet-ticket.is-expired .wallet-ticket-live i { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.wallet-ticket.is-used .wallet-ticket-hint, .wallet-ticket.is-expired .wallet-ticket-hint, .wallet-ticket.is-used .wallet-ticket-holder small, .wallet-ticket.is-expired .wallet-ticket-holder small, .wallet-ticket.is-used .wallet-ticket-details small, .wallet-ticket.is-expired .wallet-ticket-details small { color: #d0d0d0; }
.wallet-ticket-particles { position: absolute; z-index: 8; top: 50%; left: 50%; display: block; width: 1px; height: 1px; pointer-events: none; }
.wallet-ticket-particles i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #72f1c1; box-shadow: 0 0 12px rgba(114,241,193,.8); animation: ticket-particle-burst .82s var(--delay) cubic-bezier(.17,.67,.31,1) forwards; }
.wallet-ticket.is-validating { pointer-events: none; }
.wallet-ticket.is-validating .wallet-ticket-inner { animation: ticket-validation-spin 1.7s cubic-bezier(.22,.74,.25,1) forwards; }
.wallet-ticket.is-validating .wallet-ticket-front::before { content: '✓'; position: absolute; z-index: 9; top: 50%; left: 50%; display: grid; width: 78px; height: 78px; place-items: center; border: 5px solid #8effc6; border-radius: 50%; background: rgba(8,61,58,.85); color: #8effc6; font: 700 50px/1 Arial, sans-serif; box-shadow: 0 0 0 13px rgba(142,255,198,.13), 0 0 40px rgba(142,255,198,.55); opacity: 0; transform: translate(-50%,-50%) scale(.3); animation: ticket-check-in .44s .17s cubic-bezier(.2,1.3,.3,1) forwards; }
.ticket-validation-toast { position: fixed; z-index: 50; right: 18px; bottom: calc(19px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 11px; max-width: min(330px, calc(100vw - 36px)); padding: 12px 14px; border: 1px solid rgba(117,244,195,.35); border-radius: 14px; color: #eafff5; background: rgba(9,42,46,.95); box-shadow: 0 19px 40px rgba(5,42,43,.28); opacity: 0; transform: translateY(15px) scale(.96); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.ticket-validation-toast.is-visible { opacity: 1; transform: none; }
.ticket-validation-toast > span { display: grid; flex: none; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #083a36; background: #79efbd; font: 800 20px/1 Arial, sans-serif; }
.ticket-validation-toast b, .ticket-validation-toast small { display: block; }
.ticket-validation-toast b { font-size: 10px; }
.ticket-validation-toast small { margin-top: 2px; color: #b9dfdd; font-size: 8px; }
@keyframes ticket-validation-spin { 0% { opacity: 1; transform: rotateY(0deg) scale(1); } 17% { transform: rotateY(140deg) scale(1.025); } 53% { opacity: 1; transform: rotateY(480deg) scale(.97); } 100% { opacity: 0; transform: rotateY(720deg) scale(.83); } }
@keyframes ticket-check-in { to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes ticket-particle-burst { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.25); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.1); } }
@media (max-width: 780px) { .ticket-wallet { grid-template-columns: minmax(0, 360px); justify-content: center; margin-top: 27px; gap: 18px; } .wallet-ticket-face { padding: 20px; border-radius: 20px; } .wallet-ticket-foot { right: 20px; bottom: 29px; left: 20px; } .wallet-ticket-hint { right: 20px; left: 20px; } .wallet-ticket-back-code { bottom: 32px; left: 20px; } }
@media (prefers-reduced-motion: reduce) { .wallet-ticket-inner { transition-duration: .01ms; } .wallet-ticket.is-validating .wallet-ticket-inner, .wallet-ticket-particles i, .wallet-ticket.is-validating .wallet-ticket-front::before { animation-duration: .01ms; } .ticket-validation-toast { transition-duration: .01ms; } }
