/* Bankee public replay — self-contained, offline. Generic labels only; no partner names. */
*{box-sizing:border-box}html,body{margin:0;height:100%}
body{background:#0a0f1e;color:#eaf0ff;font-family:system-ui,-apple-system,sans-serif;display:flex;flex-direction:column;min-height:100vh}
.top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 18px;border-bottom:1px solid #1d2745}
.brand{font-size:20px;font-weight:800;color:#5b8cff}.brand span{color:#eaf0ff}
.views button,.runs button{background:#131c3a;color:#eaf0ff;border:1px solid #263154;border-radius:8px;padding:5px 11px;cursor:pointer;font-size:12px;margin:2px}
.views button.sel,.runs button.sel{background:#1a66ff;border-color:#1a66ff;font-weight:700}
.scn{font-size:16px;font-weight:700}.legend{font-size:12px;color:#9fb4e6}
.banner{background:#20264a;color:#9fb4e6;text-align:center;font-size:12px;padding:5px;border-bottom:1px solid #1d2745}
.badge{display:inline-block;font-size:10px;font-weight:700;padding:1px 7px;border-radius:999px;margin-left:5px}
.live{background:#0d3b1e;color:#36d07a;border:1px solid #1c6b3c}
.sim{background:#3a2a0c;color:#f0b34a;border:1px solid #6b4e1c}
.ill{background:#20264a;color:#9fb4e6;border:1px solid #2a3a6b}
.viewwrap{flex:1 1 auto;position:relative;overflow:hidden;min-height:520px}
.view{display:none;position:absolute;inset:0;overflow:auto}.view.on{display:flex}
.phone{background:#0b1020;border:3px solid #1c2550;border-radius:34px;position:relative;overflow:hidden;display:flex;flex-direction:column}
.phone .status{display:flex;align-items:center;gap:8px;font-size:10px;color:#9fb4e6;padding:7px 16px 2px}
.phone .status>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phone .status .badge{flex:0 0 auto;white-space:nowrap;margin-left:auto}
.phone .notch{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:8px;height:8px;background:#000;border-radius:50%}
.phone .scr{background:#f5f7fc;color:#0d1b3a;flex:1;margin:4px;border-radius:26px;padding:14px;overflow:auto;font-family:-apple-system,BlinkMacSystemFont,'Inter','Segoe UI',Roboto,sans-serif}
.phone.cn .scr{background:#f1f6ff}
.phone .gest{height:5px;width:120px;background:#2a3a6b;border-radius:3px;margin:4px auto 8px}
.phone .foot{font-size:9px;color:#8aa;text-align:center;padding-bottom:4px}
.phd{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.phd .nm{font-size:15px;font-weight:800;letter-spacing:-.2px;color:#0d1b3a}.phd .nm .dot{color:#1a66ff}
.pcard{position:relative;aspect-ratio:1.586/1;background:linear-gradient(135deg,#2b6cff 0%,#1140c8 48%,#0a2a8f 100%);color:#fff;border-radius:16px;padding:14px;margin-bottom:10px;overflow:hidden;box-shadow:0 12px 28px rgba(16,42,120,.4)}
.pcard .sheen{position:absolute;inset:0;background:radial-gradient(120px 70px at 18% 12%,rgba(255,255,255,.4),transparent 60%),linear-gradient(120deg,transparent 35%,rgba(255,255,255,.16) 48%,transparent 62%);mix-blend-mode:screen;animation:holo 7s ease-in-out infinite;pointer-events:none}
@keyframes holo{0%,100%{opacity:.7;transform:translateX(0)}50%{opacity:1;transform:translateX(5px)}}
.pcard .prod{font-size:13px;font-weight:800;position:relative;z-index:2}.pcard .bank{font-size:10px;opacity:.9;position:relative;z-index:2}
.pcard .pan{font-size:13px;letter-spacing:1.5px;font-weight:600;margin-top:12px;position:relative;z-index:2}
.pcard .btm{display:flex;justify-content:space-between;align-items:flex-end;margin-top:10px;position:relative;z-index:2;font-size:10px}
.pcard .noc{position:absolute;right:12px;bottom:12px;z-index:2;font-size:8px;font-weight:700;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3)}
.pcard .wifi{position:absolute;right:14px;top:14px;z-index:2;transform:rotate(90deg);opacity:.9}
.src{background:#fff;border:1px solid #e6ebf5;border-radius:12px;padding:9px 11px;margin:6px 0;font-size:13px;display:flex;justify-content:space-between;align-items:center}
.src .av{width:30px;height:30px;border-radius:9px;background:#eef1f8;color:#33406a;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;margin-right:8px}
.big{font-size:26px;font-weight:800;letter-spacing:-.5px}.cny{color:#1677ff}.ok{color:#0f9d58}.err{color:#e5484d}.muted{color:#6b7a99;font-size:12px}
.tick{display:inline-flex;width:17px;height:17px;border-radius:50%;background:#0f9d58;color:#fff;align-items:center;justify-content:center;font-size:10px;vertical-align:middle}
.pbtn{display:block;width:100%;margin-top:10px;padding:12px;border:0;border-radius:13px;font-weight:700;font-size:15px;background:#1a66ff;color:#fff;box-shadow:0 8px 18px rgba(26,102,255,.26)}
.pbtn.sec{background:#eaeffb;color:#1d2d57;box-shadow:none}
.row{display:flex;justify-content:space-between;font-size:12px;padding:5px 0;border-bottom:1px dashed #e6ebf5}.row:last-child{border-bottom:0}.row b{font-variant-numeric:tabular-nums}
.pcardbox{background:#fff;border:1px solid #e6ebf5;border-radius:14px;padding:12px;margin:8px 0;box-shadow:0 6px 18px rgba(16,42,120,.06)}
.proute{display:flex;gap:2px;margin:8px 0;padding:10px;background:#fff;border:1px solid #e6ebf5;border-radius:12px}
.proute .h{flex:1;text-align:center}.proute .h .d{width:9px;height:9px;border-radius:50%;margin:0 auto 5px;background:#0f9d58;box-shadow:0 0 0 3px #d9f2e3}
.proute .h .t{font-size:8px;font-weight:700;color:#3a4a72;line-height:1.1}
.bio{width:62px;height:62px;border-radius:50%;margin:14px auto 10px;display:flex;align-items:center;justify-content:center;font-size:28px;background:radial-gradient(circle at 50% 40%,#dff5e6,#b9ecc9);color:#0f9d58;border:2px solid #9bd3ae;animation:pop .4s ease}
@keyframes pop{0%{transform:scale(.6)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes pulse{0%{opacity:.5}50%{opacity:1}100%{opacity:.5}}
.ptrack .st{display:flex;gap:11px;align-items:flex-start;padding-bottom:16px;position:relative}.ptrack .st:last-child{padding-bottom:0}
.ptrack .st:not(:last-child):before{content:'';position:absolute;left:11px;top:22px;bottom:0;width:2px;background:#e6ebf5}
.ptrack .st.done:not(:last-child):before{background:#0f9d58}
.ptrack .nd{width:24px;height:24px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;background:#eef1f8;color:#9aa8c4;border:2px solid #e6ebf5;z-index:2}
.ptrack .st.done .nd{background:#0f9d58;color:#fff;border-color:#0f9d58}
.ptrack .st.on .nd{background:#fff;border-color:#1a66ff;color:#1a66ff;animation:pulse 1.1s infinite}
.ptrack .l2 b{font-size:13px}.ptrack .l2 span{display:block;font-size:10px;color:#6b7a99}.ptrack .st.pending .l2 b{color:#9aa8c4;font-weight:600}
.pcheck{width:70px;height:70px;border-radius:50%;margin:10px auto;background:#0f9d58;position:relative;animation:pop .45s ease}
.pcheck:after{content:'';position:absolute;left:26px;top:15px;width:12px;height:26px;border:solid #fff;border-width:0 5px 5px 0;transform:rotate(45deg)}
.pcoin{font-size:34px;text-align:center;animation:coin .9s ease}@keyframes coin{0%{transform:translateY(-34px) rotate(-30deg);opacity:0}60%{transform:translateY(3px);opacity:1}100%{transform:translateY(0)}}
.cnhd{background:linear-gradient(135deg,#2787ff,#1766e6);color:#fff;border-radius:0 0 18px 18px;margin:-14px -14px 10px;padding:14px 16px 16px}
.cnhd .bal{font-size:24px;font-weight:800;margin-top:4px}.cnhd .bal small{font-size:11px;opacity:.85}.cnhd .sub{font-size:11px;opacity:.9}
.cntiles{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}
.cntile{background:#fff;border:1px solid #e6ebf5;border-radius:12px;padding:9px 2px;text-align:center}.cntile .i{font-size:17px}.cntile .tl{font-size:9px;color:#33406a;margin-top:2px}
.cnban{background:linear-gradient(135deg,#2787ff,#0d53d6);color:#fff;border-radius:16px;padding:14px;margin:8px 0;box-shadow:0 10px 24px rgba(13,83,214,.3)}
.cnban .r1{font-size:12px;opacity:.92}.cnban .r2{font-size:28px;font-weight:800;margin:4px 0}.cnban .r3{font-size:11px;opacity:.9}
#viewStory{gap:14px;padding:12px 18px;align-items:stretch}#viewStory .phone{width:230px}
.flow{flex:1;display:flex;align-items:center;justify-content:space-between;gap:6px}
.node{flex:1;background:#101938;border:2px solid #22305a;border-radius:14px;padding:12px;min-height:130px;display:flex;flex-direction:column;justify-content:space-between;transition:all .25s}
.node.active{border-color:#5b8cff;box-shadow:0 0 0 3px rgba(91,140,255,.3),0 0 26px rgba(91,140,255,.35);background:#16224a}
.node.done{border-color:#1c6b3c}.node.err{border-color:#cf222e}
.node .nt{font-size:14px;font-weight:700}.node .ns{font-size:11px;color:#9fb4e6;min-height:14px}.node .nms{font-size:10px;color:#6b7fb0}
.arrow{color:#3a4a7a;font-size:20px}
#viewDevices{gap:30px;padding:10px 18px;justify-content:center;align-items:stretch}#viewDevices .phone{width:300px}
#viewDevices .side{flex:0 0 240px;display:flex;flex-direction:column;justify-content:center}
.steptl div{font-size:13px;padding:3px 6px;border-left:3px solid #22305a;margin:2px 0;color:#5a6b86}
.steptl div.done{border-color:#1c6b3c;color:#8fe0a8}
.steptl div.on{border-color:#5b8cff;color:#eaf0ff;font-weight:700;background:#16224a;border-radius:0 6px 6px 0}
.msteps{display:none}  /* Story step tracker — shown only on mobile, where the horizontal flow is hidden */
#viewSystem{padding:10px 18px;gap:12px}
.arch{flex:1;display:flex;flex-direction:column;gap:8px}
.lane{display:flex;gap:8px;align-items:stretch}.lane .lab{flex:0 0 130px;color:#9fb4e6;font-size:12px;display:flex;align-items:center}
.comp{flex:1;background:#101938;border:2px solid #22305a;border-radius:10px;padding:9px 11px;transition:all .2s;font-size:13px}
.comp.active{border-color:#5b8cff;background:#16224a}.comp.done{border-color:#1c6b3c}
.sys-side{flex:0 0 300px;background:#0c1430;border:1px solid #1d2745;border-radius:12px;padding:10px;overflow:auto;font-size:12px}
.sys-side h4{margin:8px 0 4px;color:#9fb4e6;font-size:12px}
.controls{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:7px 18px;border-top:1px solid #1d2745;background:#0a0f1e}
.controls button{background:#1a2550;color:#eaf0ff;border:1px solid #2a3a6b;border-radius:7px;padding:5px 9px;font-size:12px;cursor:pointer}
.controls button.go{background:#1a66ff;border-color:#1a66ff;font-weight:700}
.pzero{color:#36d07a;font-weight:700}
/* large screens: scale up to fill */
@media(min-width:1500px){
  #viewStory .phone{width:330px}#viewDevices .phone{width:410px}
  .phone .scr{padding:22px;font-size:18px}.big{font-size:40px}.src{font-size:17px}.pbtn{font-size:19px;padding:16px}
  .node{min-height:210px;padding:20px}.node .nt{font-size:19px}.node .ns{font-size:15px}.arrow{font-size:30px}
  .steptl div{font-size:17px;padding:6px 10px}.comp{font-size:16px;padding:13px 15px}
}
/* mobile: stack phones, hide the System view and flow diagram */
@media(max-width:900px){
  /* Stack full-size wallet phones and let the page scroll (the views are absolute + the
     viewwrap is overflow:hidden on desktop, which collapsed the cards to ~6px on mobile). */
  .viewwrap{position:static;overflow:visible;min-height:0;flex:0 0 auto}
  .view{position:static;overflow:visible}
  .view:not(.on){display:none}
  .view.on{display:flex;flex-direction:column;align-items:center;gap:16px;padding:14px 12px 28px}
  #viewStory .phone,#viewDevices .phone{width:100%;max-width:430px}
  .phone .scr{min-height:540px}           /* real height so the card + screen render */
  #viewStory .flow{display:none}           /* horizontal flow doesn't work stacked */
  /* payer phone → step tracker → payee phone */
  #viewStory .msteps{display:flex;flex-direction:column;order:1}
  #viewStory .phone:first-of-type,#viewDevices .phone:first-of-type{order:0}
  #viewStory .phone:last-of-type,#viewDevices .phone:last-of-type{order:2}
  #viewDevices .side{display:flex;order:1;flex:none;width:100%;max-width:430px;justify-content:flex-start}
  .msteps,#viewDevices .side{width:100%;max-width:430px}
  .views button[data-v="system"]{display:none}  /* hide only the System view */
  #viewSystem{display:none!important}
}
