/* iPhone and Wallet pass mock-ups shared by every demo. Sizes are stage pixels; scale with --k. */
.phone { --k: 1; position: relative; width: calc(340px * var(--k)); height: calc(700px * var(--k)); flex: none; }
.phone > .body { position: absolute; left: 0; top: 0; width: 340px; height: 700px; zoom: var(--k); border-radius: 58px; background: #000; box-shadow: 0 0 0 2px #3a3a3c, 0 30px 60px rgba(0, 0, 0, .28); padding: 11px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 48px; overflow: hidden; background: #000; color: #fff; }
.phone .island { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 16px; background: #000; z-index: 5; }
.phone .wall { position: absolute; inset: 0; background: radial-gradient(120% 70% at 85% 8%, #7db7ff 0%, rgba(125, 183, 255, 0) 55%), radial-gradient(110% 80% at 10% 95%, #006fe6 0%, rgba(0, 111, 230, 0) 60%), linear-gradient(160deg, #0a2a66, #03122e); transition: filter .4s; }
.phone .status { position: absolute; left: 30px; right: 28px; top: 16px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; z-index: 6; }
.phone .status i { display: inline-block; width: 24px; height: 11px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; opacity: .9; }
.phone .status i::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: currentColor; border-radius: 1.5px; }
.phone .home { position: absolute; left: 50%; bottom: 8px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(255, 255, 255, .85); z-index: 6; }

.phone .lock { position: absolute; inset: 0; transition: opacity .35s; }
.phone .lock .date { margin-top: 62px; text-align: center; font-size: 17px; font-weight: 600; opacity: .92; }
.phone .lock .time { text-align: center; font-size: 84px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-top: 2px; }
.phone .notifs { position: absolute; left: 10px; right: 10px; bottom: 96px; display: flex; flex-direction: column-reverse; gap: 8px; }
.phone .notif { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 11px 13px 12px 11px; border-radius: 22px; background: rgba(250, 250, 252, .86); color: #000; animation: notif-in .45s cubic-bezier(.2, .9, .3, 1.2); text-align: left; }
.phone .notif .ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 19px; font-weight: 700; color: #fff; background: #000; overflow: hidden; }
.phone .notif .t { font-size: 16.5px; font-weight: 600; line-height: 1.2; display: flex; justify-content: space-between; gap: 8px; }
.phone .notif .t small { font-size: 13px; font-weight: 400; color: rgba(0, 0, 0, .5); white-space: nowrap; }
.phone .notif .b { font-size: 18.5px; line-height: 1.22; margin-top: 2px; }
.phone .notif > div { min-width: 0; overflow-wrap: anywhere; }
.phone .notif.pulse { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--blue); }
@keyframes notif-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.phone .quick { position: absolute; left: 34px; right: 34px; bottom: 30px; display: flex; justify-content: space-between; }
.phone .quick span { width: 46px; height: 46px; border-radius: 50%; background: rgba(40, 40, 46, .55); }

.phone .wallet { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .35s; padding: 58px 10px 0; }
.phone .wallet h4 { margin: 0 6px 12px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.phone.unlocked .wallet { opacity: 1; pointer-events: auto; }
.phone.unlocked .lock { opacity: 0; }
.phone.unlocked .wall { filter: brightness(0); }
.phone .wallet .pass { width: 100%; }

/* Wallet store card */
.pass { --pbg: #0e4d3a; --pfg: #fff; --plabel: #bfe3d0; --pacc: #f2c14e; width: 320px; border-radius: 14px; background: var(--pbg); color: var(--pfg); padding: 13px 0 18px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; box-shadow: 0 14px 34px rgba(0, 0, 0, .24); text-align: left; position: relative; }
.pass .top { display: flex; align-items: center; gap: 9px; padding: 0 15px; min-height: 36px; }
.pass .mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pfg); color: var(--pbg); font: 700 17px/1 Georgia, "Times New Roman", serif; flex: none; }
.pass .name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pass .f { min-width: 0; }
.pass .f .l { font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--plabel); line-height: 1.3; }
.pass .f .v { font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass .hdr { margin-left: auto; text-align: right; }
.pass .strip { position: relative; height: 112px; margin-top: 11px; background: var(--pstrip, rgba(0, 0, 0, .22)); display: flex; align-items: center; padding: 0 15px; overflow: hidden; }
.pass .strip .big { font-size: 46px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.pass .strip .big + .l { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--plabel); margin: 0 0 0 10px; align-self: flex-end; padding-bottom: 36px; }
.pass .stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px 12px; width: 100%; }
.pass .stamps span { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .5); display: grid; place-items: center; font: 700 15px/1 Georgia, serif; color: transparent; max-width: 42px; justify-self: center; width: 100%; transition: background .3s, color .3s, transform .3s; }
.pass .stamps span.on { background: var(--pacc); border: 0; color: var(--pbg); }
.pass .stamps span.new { animation: stamp .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stamp { from { transform: scale(1.9); opacity: 0; } to { transform: none; opacity: 1; } }
.pass .row2 { display: flex; justify-content: space-between; gap: 12px; padding: 11px 15px 0; }
.pass .row2 .f:last-child:not(:first-child) { text-align: right; }
.pass .qr { width: 126px; margin: 22px auto 0; background: #fff; padding: 9px 9px 5px; border-radius: 7px; }
.pass .qr img { width: 100%; aspect-ratio: 1; }
.pass .qr small { display: block; text-align: center; color: #000; font-size: 10px; padding-top: 3px; letter-spacing: .02em; }
.pass .flash { animation: flash 1.1s ease-out; }
@keyframes flash { 0%, 35% { background: rgba(255, 255, 255, .34); box-shadow: 0 0 0 5px rgba(255, 255, 255, .34); } 100% { background: transparent; box-shadow: none; } }
.pass.back { padding: 18px 16px; font-size: 13px; line-height: 1.4; }
.pass.back .f + .f { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); }
.pass.back .f .v { white-space: normal; font-size: 13.5px; }

/* labelled callouts over a pass or phone */
.hotspot { position: absolute; border: 2px solid var(--blue); background: rgba(0, 111, 230, .12); pointer-events: none; opacity: 0; transition: opacity .2s; border-radius: 4px; }
.hotspot.on { opacity: 1; }
