/* All rules are bounded to the existing NFC demonstration. */
#tap-demo .demo-feature-stage{border:0;padding:0;background:none;min-width:0}
#tap-demo .tap-demo{max-width:610px;container-type:inline-size;container-name:nfc-demo}
#tap-demo .tap-stage{height:570px;perspective:1500px;isolation:isolate;overflow:visible}
#tap-demo .tap-stage:before{inset:8% 0 3%;background:radial-gradient(ellipse at 64% 45%,#ffffff05,transparent 66%)}
#tap-demo .demo-studio-floor{position:absolute;left:5%;right:0;bottom:25px;height:100px;background:radial-gradient(ellipse,#ffffff07,transparent 68%);transform:scaleY(.55);pointer-events:none}
#tap-demo .demo-device{box-sizing:border-box;top:10px;right:15px;width:252px;height:510px;padding:5px;border-radius:39px;border:1px solid #626265;background:linear-gradient(115deg,#6c6c6f,#242426 14%,#151516 80%,#545456);box-shadow:inset 0 0 0 1px #111,14px 25px 50px #000b,0 1px 1px #ffffff14;transform:rotateZ(2deg);z-index:4}
#tap-demo .device-ui{box-sizing:border-box;background:#080809;border:1px solid #161617;border-radius:33px;padding:0;height:100%;overflow:hidden}
#tap-demo .device-speaker{top:14px;width:66px;height:17px;border:1px solid #19191b;background:#000;z-index:6}
#tap-demo .device-topline{position:absolute;top:15px;left:18px;right:18px;display:flex;justify-content:space-between;font-size:9px;color:#c8c8ca;letter-spacing:.02em;font-weight:500;z-index:4}
#tap-demo .demo-status-icons{font-size:8px;letter-spacing:1px}
#tap-demo .device-home{width:78px;height:3px;background:#b5b5b780;bottom:8px;z-index:5}
#tap-demo .phone-idle{inset:52px 18px 27px;gap:0;justify-content:center;transition:opacity .35s ease;visibility:visible;opacity:1;pointer-events:auto}
#tap-demo .demo-screen-label{font-size:7px;letter-spacing:.15em;color:#929298;font-weight:400;line-height:1.5}
#tap-demo .phone-idle .idle-signal{display:grid;place-items:center;background:none;border:0;box-shadow:none;width:53px;height:37px;margin:33px 0 25px}
#tap-demo .idle-signal .connection-symbol{width:48px;height:auto;object-fit:contain;filter:none}
#tap-demo .phone-idle>strong{font-size:28px;line-height:1.12;letter-spacing:-.045em;font-weight:550;color:#f2f2f2}
#tap-demo .phone-idle>p{font-size:12px;line-height:1.7;color:#a3a3a8;margin:19px 0 24px;font-weight:350}
#tap-demo .demo-start{display:flex;align-items:center;justify-content:center;gap:20px;font:inherit;font-size:12px;min-height:43px;padding:9px 16px;border:1px solid #414144;border-radius:7px;background:#141416;color:#eee;cursor:pointer}
#tap-demo .demo-start .icon{width:14px;height:14px;flex-basis:14px}
#tap-demo .phone-idle .demo-screen-note{font-size:7px;color:#7f7f85;letter-spacing:.1em;margin-top:23px}
#tap-demo .phone-live{inset:54px 19px 24px;display:flex;flex-direction:column;align-items:stretch;gap:0;transform:translateY(5px);transition:opacity .45s ease,transform .55s cubic-bezier(.2,.7,.2,1);visibility:hidden;opacity:0;pointer-events:none;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#333 transparent}
#tap-demo .device-avatar{display:block;width:139px;height:auto;border-radius:0;object-fit:contain;margin:22px 0 27px;flex-shrink:0}
#tap-demo .demo-profile-location{font-size:7px;letter-spacing:.14em;color:#919197;margin-bottom:9px}
#tap-demo .device-name{font-size:24px;font-weight:550;line-height:1.12;letter-spacing:-.04em;color:#f0f0f2}
#tap-demo .device-title{font-size:11px;line-height:1.6;color:#a3a3a9;margin:12px 0 20px;font-weight:350}
#tap-demo .device-contact{display:flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:7px 8px;border:1px solid #e0e0e2;border-radius:7px;background:#e4e4e7;color:#111;font-size:12px;font-weight:550;flex-shrink:0;box-sizing:border-box;text-decoration:none}
#tap-demo .device-contact .icon{width:15px;height:15px;flex-basis:15px}
#tap-demo .demo-contact-note{font-size:8px;line-height:1.5;color:#909096;text-align:center;margin:8px 0 12px}
#tap-demo .demo-profile-links{border:1px solid #29292d;background:#101012;border-radius:8px;padding:0 11px}
#tap-demo .device-row{display:flex;align-items:center;justify-content:space-between;min-height:38px;width:100%;padding:5px 0;font:inherit;font-size:11px;line-height:1.4;color:#ccc;border:0;border-bottom:1px solid #262629;background:none;text-decoration:none;box-sizing:border-box;text-align:left;cursor:pointer}
#tap-demo .device-row:last-child{border-bottom:0}
#tap-demo .device-row .icon{width:13px;height:13px;flex-basis:13px;color:#85858c}
#tap-demo .device-extra{font-size:10px;line-height:1.6;color:#a8a8ad;margin:9px 0 0}
#tap-demo .simulated-save{inset:56px 18px 28px;gap:0;justify-content:center;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .4s ease}
#tap-demo .simulated-save .demo-screen-label{margin-bottom:30px}
#tap-demo .simulated-save .save-check{width:35px;height:40px;border-radius:8px;border:1px solid #49494d;background:#141416;color:#c8c8ce;margin-bottom:24px;box-shadow:inset 0 1px #ffffff09}
#tap-demo .save-check .icon{width:18px;height:18px}
#tap-demo .simulated-save strong{font-size:27px;line-height:1.15;letter-spacing:-.04em;font-weight:550;color:#eee}
#tap-demo .simulated-save p{font-size:12px;line-height:1.7;color:#a3a3a8;margin:18px 0 20px}
#tap-demo .simulated-save a{font-size:11px;min-height:43px;border:1px solid #3a3a3f;background:#121214;padding:8px 12px;border-radius:7px;box-sizing:border-box;gap:12px;color:#ddd;text-decoration:none}
#tap-demo .simulated-save .demo-screen-note{font-size:6px;color:#818188;letter-spacing:.08em;margin-top:22px;line-height:1.6}
#tap-demo .tap-card{box-sizing:border-box;left:5px;bottom:95px;top:auto;width:260px;height:auto;aspect-ratio:85.6/53.98;padding:0;border-radius:10px;border:1px solid #68686c;background:#080809;color:#ccc;box-shadow:0 1px 0 #151516,0 2px 0 #77777c,0 4px 0 #121213,0 5px 0 #3d3d40,3px 21px 30px #000b,inset 0 0 0 1px #ffffff13;transform:rotateZ(-11deg) rotateY(6deg);transform-origin:center;transition:transform .85s cubic-bezier(.22,.65,.25,1),box-shadow .5s ease;z-index:2;overflow:visible;cursor:pointer}
#tap-demo .tap-card:before{inset:0;background:linear-gradient(140deg,#ffffff08,transparent 40%,#ffffff02);border-radius:inherit;z-index:2;pointer-events:none}
#tap-demo .tap-card:hover{filter:none;box-shadow:0 1px 0 #151516,0 2px 0 #8c8c90,0 4px 0 #121213,0 5px 0 #444448,3px 21px 30px #000b}
#tap-demo .photo-card-surface .engraved-face{background:#080809;overflow:hidden}
#tap-demo .photo-card-surface .card-face-photo{filter:brightness(.52) contrast(1.08);opacity:1;mix-blend-mode:normal}
#tap-demo .photo-card-surface .engraved-face:after{background:radial-gradient(ellipse at 25% 0%,#ffffff09,transparent 70%);pointer-events:none}
#tap-demo .silver-engraving{background:linear-gradient(120deg,#8e9093,#c4c6c9 43%,#a4a6a9 68%,#bcbec1);opacity:.9;filter:drop-shadow(0 .35px #000b)}
#tap-demo .photo-card-surface .front .card-logo-placement{width:67%;left:16.5%;top:40%}
#tap-demo .photo-card-surface .card-engraved-qr{opacity:.78}
#tap-demo .demo-card-caption{position:absolute;left:5px;bottom:41px;color:#808087;font-size:7px;letter-spacing:.12em;line-height:1.6}
#tap-demo .nfc-rings{top:110px;right:243px;width:36px;height:29px;display:grid;place-items:center;opacity:0;z-index:5;transition:opacity .35s ease;pointer-events:none}
#tap-demo .nfc-rings .connection-symbol{width:31px;height:auto;filter:none}
#tap-demo [data-phase=tap] .tap-card{transform:translate(100px,-225px) rotateZ(-3deg) rotateY(10deg);z-index:2}
#tap-demo [data-phase=tap] .nfc-rings{opacity:.85;animation:demo-connection-pulse 1.2s ease-in-out both}
#tap-demo [data-phase=tap] .phone-idle{opacity:.6;pointer-events:none}
#tap-demo [data-phase=connect] .tap-card,#tap-demo [data-phase=save] .tap-card{transform:translate(0,15px) rotateZ(-9deg) rotateY(6deg);z-index:2}
#tap-demo [data-phase=connect] .phone-live{visibility:visible;opacity:1;transform:none;pointer-events:auto}
#tap-demo [data-phase=connect] .phone-idle,#tap-demo [data-phase=save] .phone-idle{visibility:hidden;opacity:0;pointer-events:none}
#tap-demo [data-phase=save] .phone-live{visibility:hidden;opacity:0;pointer-events:none}
#tap-demo [data-phase=save] .simulated-save{visibility:visible;opacity:1;pointer-events:auto;animation:none}
#tap-demo .demo-control-deck{border:1px solid #29292d;border-radius:12px;background:#09090a;padding:8px 14px 0}
#tap-demo .demo-step-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;padding:0 0 8px;border-bottom:1px solid #262629}
#tap-demo .demo-step-controls button{font:inherit;font-size:12px;line-height:1.3;letter-spacing:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:8px 5px;border:1px solid transparent;border-radius:7px;background:transparent;color:#aaaab0;cursor:pointer;transition:background .2s,color .2s,border-color .2s;text-align:center}
#tap-demo .demo-step-controls button span{font-size:9px;margin:0;color:inherit;opacity:.65}
#tap-demo .demo-step-controls button[aria-pressed=true]{background:#1b1b1e;border-color:#414148;color:#f2f2f4;box-shadow:inset 0 1px #ffffff06}
#tap-demo .demo-step-controls button[aria-pressed=true] span{color:#f2f2f4}
#tap-demo .tap-demo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:61px;border:0;padding:8px 0}
#tap-demo .tap-demo-toolbar>p{font-size:11px;line-height:1.6;color:#aaaab0;max-width:285px;margin:0}
#tap-demo .card-demo-actions{display:flex;gap:7px;flex-shrink:0}
#tap-demo .card-demo-actions button{font:inherit;font-size:11px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:5px 9px;border:1px solid #2c2c31;border-radius:6px;color:#c3c3c9;background:#101012;cursor:pointer}
#tap-demo .card-demo-actions [data-face-label]{display:none}
#tap-demo .card-demo-actions .icon{width:12px;height:12px;flex-basis:12px}
#tap-demo .simulation-label{font-size:7px;letter-spacing:.12em;line-height:1.6;color:#818187;padding:0 0 12px;margin:0;text-align:center}
#tap-demo button:focus-visible,#tap-demo a:focus-visible{outline:2px solid #0056fe;outline-offset:4px}
#tap-demo .card-demo-actions button:hover,#tap-demo .demo-start:hover{background:#1b1b1e;border-color:#606068}
@keyframes demo-connection-pulse{0%{opacity:0;transform:scale(.92)}50%{opacity:.85;transform:scale(1)}100%{opacity:.5;transform:scale(1)}}
@container nfc-demo (max-width:490px){
 #tap-demo .tap-stage{height:630px}
 #tap-demo .demo-device{right:9px;width:234px;height:480px;top:5px;transform:rotateZ(1deg)}
 #tap-demo .tap-card{width:223px;bottom:40px;left:7px}
 #tap-demo .demo-card-caption{bottom:0;font-size:6px;left:7px}
 #tap-demo .nfc-rings{top:107px;right:220px}
 #tap-demo [data-phase=tap] .tap-card{transform:translate(25px,-353px) rotateZ(-3deg) rotateY(12deg)}
 #tap-demo [data-phase=connect] .tap-card,#tap-demo [data-phase=save] .tap-card{transform:translate(0,5px) rotateZ(-9deg) rotateY(6deg)}
 #tap-demo .phone-live{inset:49px 16px 22px}
 #tap-demo .device-avatar{margin:17px 0 21px;width:129px}
 #tap-demo .device-name{font-size:22px}
 #tap-demo .device-title{margin:10px 0 15px;font-size:10px}
 #tap-demo .demo-contact-note{margin:7px 0 10px;font-size:7.5px}
 #tap-demo .device-row{min-height:36px;font-size:10px}
 #tap-demo .phone-idle>strong{font-size:26px}
 #tap-demo .simulated-save strong{font-size:25px}
 #tap-demo .demo-step-controls button{font-size:11px;gap:5px}
 #tap-demo .tap-demo-toolbar{flex-wrap:wrap;gap:3px;padding:9px 0}
 #tap-demo .tap-demo-toolbar>p{max-width:none;width:100%;font-size:10px}
 #tap-demo .card-demo-actions{width:100%;justify-content:flex-end}
 #tap-demo .card-demo-actions button{border-color:transparent;background:none;padding:4px 7px}
}
@container nfc-demo (max-width:340px){
 #tap-demo .tap-stage{height:590px}
 #tap-demo .demo-device{width:219px;height:453px;right:1px;top:2px;border-radius:35px}
 #tap-demo .device-ui{border-radius:29px}
 #tap-demo .tap-card{width:184px;left:0;bottom:35px;border-radius:8px}
 #tap-demo .nfc-rings{right:207px;top:98px;width:28px}
 #tap-demo .nfc-rings .connection-symbol{width:26px}
 #tap-demo [data-phase=tap] .tap-card{transform:translate(0,-348px) rotateZ(-4deg) rotateY(12deg)}
 #tap-demo .phone-live{inset:46px 14px 19px}
 #tap-demo .device-avatar{width:121px;margin:14px 0 17px}
 #tap-demo .device-name{font-size:21px}
 #tap-demo .device-title{margin:9px 0 13px;font-size:10px}
 #tap-demo .device-contact{min-height:41px;font-size:11px}
 #tap-demo .device-row{min-height:34px;font-size:10px}
 #tap-demo .demo-screen-label{font-size:6px}
 #tap-demo .demo-profile-location{font-size:6px;margin-bottom:7px}
 #tap-demo .phone-idle{inset:48px 14px 24px}
 #tap-demo .phone-idle .idle-signal{margin:27px 0 23px}
 #tap-demo .phone-idle>strong{font-size:25px}
 #tap-demo .phone-idle>p{font-size:11px}
 #tap-demo .simulated-save p{font-size:11px}
 #tap-demo .simulated-save .demo-screen-label{margin-bottom:22px}
 #tap-demo .simulated-save .demo-screen-note{font-size:5px}
 #tap-demo .demo-step-controls button{font-size:10px;gap:4px;padding:8px 2px}
 #tap-demo .demo-control-deck{padding-inline:9px}
}
@media(prefers-reduced-motion:reduce){
 #tap-demo *,#tap-demo *:before,#tap-demo *:after{animation:none!important;transition:none!important}
}
