.wallet-pass {
  min-width: 0;
  margin: 0 0 24px;
  padding-top: 6px;
  container-type: inline-size;
}
.wallet-pass-button {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 755;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  perspective: 1300px;
  touch-action: manipulation;
}
.wallet-pass-button:focus-visible { outline: 3px solid #1269ef; outline-offset: 7px; }
.wallet-pass-float, .wallet-pass-turn {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
}
.wallet-pass-turn {
  transition: transform 900ms cubic-bezier(.4, 0, .2, 1);
}
.wallet-pass-button[data-flipped="true"] .wallet-pass-turn { transform: rotateY(180deg); }
.wallet-pass-face {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 30px -18px #062d5c80;
  background: #091c2b;
}
.wallet-pass-front { transform: translateZ(1px); }
.wallet-pass-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.wallet-pass-owner {
  position: absolute;
  top: 15%;
  right: 8%;
  left: 32%;
  color: #fff;
  font-size: clamp(12px, 3.4vw, 20px);
  font-size: clamp(11px, 3.8cqw, 20px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .02em;
  text-align: right;
  text-transform: uppercase;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 1px 6px #001730b3;
}
.wallet-pass-back {
  transform: rotateY(180deg) translateZ(1px);
  background: linear-gradient(135deg, #071625 5%, #0a3260 50%, #126ab1 74%, #091e35);
  border: 1px solid #88c9ff40;
}
.wallet-pass-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 35%, #68cbff24 44%, transparent 52%, #84d9ff1a 72%, transparent 82%);
  pointer-events: none;
}
.wallet-pass-stripe {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  height: 16%;
  background: linear-gradient(#040d17, #101e2e, #050f1a);
  border-block: 1px solid #ffffff0c;
}
.wallet-pass-signature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 34%;
  left: 8%;
  right: 8%;
  min-height: 22%;
  padding: 8px 12px;
  border-radius: 7px;
  background: #eaf5ff;
  color: #17385c;
  line-height: 1.5;
}
.wallet-pass-signature small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.wallet-pass-signature strong { font-size: clamp(12px, 3.4vw, 19px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-pass-signature strong { font-size: clamp(11px, 3.5cqw, 19px); }
.wallet-pass-back-note {
  position: absolute;
  top: 61%;
  left: 8%;
  right: 8%;
  font-size: clamp(9px, 2.5vw, 13px);
  line-height: 1.5;
  color: #c6def5;
}
.wallet-pass-back-footer {
  position: absolute;
  bottom: 9%;
  left: 8%;
  right: 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: clamp(10px, 2.5vw, 14px);
}
.wallet-pass-back-footer>span { color: #b7d9f6; font-size: 9px; }
.wallet-pass-face::after {
  content: '';
  position: absolute;
  inset: -20% -45%;
  background: linear-gradient(110deg, transparent 35%, #e2f7ff66 49%, transparent 63%);
  transform: translateX(-80%);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .wallet-pass-float { animation: wallet-pass-drift 8s ease-in-out infinite paused; }
  .wallet-pass-face::after { animation: wallet-pass-light 12s ease-in-out infinite paused; }
  .wallet-pass[data-motion="running"] .wallet-pass-float,
  .wallet-pass[data-motion="running"] .wallet-pass-face::after { animation-play-state: running; }
  @keyframes wallet-pass-drift {
    0%, 100% { transform: translateY(0) rotateX(0) rotateZ(-.35deg); }
    50% { transform: translateY(-5px) rotateX(2deg) rotateZ(.35deg); }
  }
  @keyframes wallet-pass-light {
    0%, 15% { transform: translateX(-80%); opacity: 0; }
    45% { opacity: .16; }
    75%, 100% { transform: translateX(80%); opacity: 0; }
  }
}
@media (max-width: 720px) {
  .wallet-pass-button { border-radius: 20px; }
}
@media (max-width: 360px) {
  .wallet-pass-signature { padding: 6px 10px; }
  .wallet-pass-signature small { font-size: 8px; }
  .wallet-pass-back-footer>span { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-pass-turn { transition: none; }
  .wallet-pass-float { transform: none; }
  .wallet-pass-face::after { display: none; }
}
