/* The quick-commerce story: a phone on the left, the architecture on the right, Nami along the bottom. */
.pill { white-space: nowrap; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.pill:hover { border-color: var(--ink); transform: translateY(-1px); }

.board { --pw: clamp(300px, 31vw, 450px); --strip: 150px; }
#dia { left: calc(var(--pw) - 40px); width: auto; bottom: var(--strip); height: auto; top: 0; right: 0; transition: opacity .6s, filter .6s; }
#dia text { font-family: var(--font); }

/* intro: the whole picture is shown faintly, as a promise of what is coming */
.arena[data-mode="intro"] .board { opacity: 1; visibility: visible; background-color: #fbfaf7; }
.arena[data-mode="intro"] #dia { opacity: .42; filter: blur(.8px); }
.arena[data-mode="intro"] #dia .n, .arena[data-mode="intro"] #dia .e { opacity: 1 !important; transform: none !important; }
.arena[data-mode="intro"] #dia .e path.draw { stroke-dashoffset: 0 !important; }
.arena[data-mode="intro"] .phones, .arena[data-mode="intro"] .say, .arena[data-mode="intro"] .dots, .arena[data-mode="intro"] .hud { opacity: 0; }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(251, 250, 247, .96) 0, rgba(251, 250, 247, .88) 55%, rgba(251, 250, 247, 0) 100%); z-index: -1; }
.intro { transition: opacity .7s ease, transform .7s ease, visibility .7s; }
.intro.gone { opacity: 0; transform: scale(1.03); visibility: hidden; pointer-events: none !important; }

/* phones */
.phones { position: absolute; left: 0; top: 0; bottom: var(--strip); width: var(--pw); --ps: 1; pointer-events: none; transition: opacity .5s; }
.phone { position: absolute; left: 50%; top: 50%; width: 280px; height: 580px; padding: 9px; border-radius: 42px; background: #101a1c; box-shadow: 0 34px 70px rgba(22, 40, 42, .3), inset 0 0 0 2px #2b3a3d; transition: transform .8s cubic-bezier(.2, .9, .3, 1), opacity .5s; }
.phones[data-view="one"] #phNami { transform: translate(-50%, -50%) scale(var(--ps)); }
.phones[data-view="one"] #phFalak { transform: translate(calc(-50% + 40px), -50%) scale(calc(var(--ps) * .6)); opacity: 0; }
.phones[data-view="two"] #phNami { transform: translate(calc(-50% - 104px), -50%) scale(calc(var(--ps) * .74)); }
.phones[data-view="two"] #phFalak { transform: translate(calc(-50% + 104px), -50%) scale(calc(var(--ps) * .74)); }
.phone .notch { position: absolute; z-index: 3; left: 50%; top: 14px; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #101a1c; }
.phone .who { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-style: normal; font-weight: 800; font-size: 15px; color: var(--ink); opacity: 0; transition: opacity .4s .5s; }
.phones[data-view="two"] .who { opacity: 1; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; font-family: var(--font); color: #16282a; }
.screen > .scr-home, .screen > .scr-app, .screen > .scr-search, .screen > .scr-res, .screen > .scr-cart, .screen > .scr-pay, .screen > .scr-done, .screen > .scr-track { display: none; }
.screen[data-s="home"] > .scr-home { display: block; }
.screen[data-s="app"] > .scr-app, .screen[data-s="search"] > .scr-search, .screen[data-s="results"] > .scr-res, .screen[data-s="cart"] > .scr-cart, .screen[data-s="track"] > .scr-track { display: flex; }
.screen[data-s="pay"] > .scr-pay, .screen[data-s="done"] > .scr-done { display: grid; }

/* the phone's home screen */
.scr-home { position: absolute; inset: 0; padding: 54px 18px 18px; color: #fff; background: radial-gradient(120% 70% at 20% 0, #f6b36b, transparent 55%), linear-gradient(170deg, #34265c 0%, #a43d7e 55%, #f08a5d 100%); }
.scr-home .clock { text-align: center; font-size: 60px; font-weight: 300; letter-spacing: -.03em; margin-top: 18px; }
.scr-home .date { text-align: center; font-size: 13px; opacity: .85; margin-bottom: 38px; }
.scr-home .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; }
.ap { display: grid; justify-items: center; gap: 5px; font-size: 10px; font-weight: 600; }
.ap i { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); display: block; }
.ap.pr i { background: linear-gradient(140deg, #7a35e6, #4b1fa6); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
.ap.pr.tap i { animation: icontap .9s ease; }
@keyframes icontap { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 40% { transform: scale(.88); } 100% { transform: scale(1); box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
.scr-home .dock { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 66px; border-radius: 24px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); display: flex; justify-content: space-around; align-items: center; }
.scr-home .dock i { width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .3); }

/* the app */
.scr-app { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f7f6f2; }
.a-top { display: flex; align-items: center; justify-content: space-between; padding: 40px 14px 8px; background: #fff; }
.a-eta b { display: block; font-size: 17px; letter-spacing: -.02em; } .a-eta span { font-size: 10.5px; color: #68756f; font-weight: 600; }
.a-ava { width: 30px; height: 30px; border-radius: 50%; background: #fde8e3; color: #c4553d; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.a-search { margin: 0 14px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid #e7e3dc; font-size: 11.5px; color: #8a867e; transform: translateY(-1px); }
.a-top + .a-search { margin-top: 0; }
.a-body { flex: 1; overflow: hidden; min-width: 0; padding: 10px 14px 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; }
.a-banner { height: 78px; border-radius: 16px; position: relative; overflow: hidden; background: linear-gradient(120deg, #f5b942, #ee7d3b 60%, #d9486b); color: #fff; padding: 12px 14px; }
.a-banner b { display: block; font-size: 15px; letter-spacing: -.02em; } .a-banner span { font-size: 10.5px; opacity: .92; }
.a-banner em { position: absolute; right: 10px; top: 6px; font-size: 40px; font-style: normal; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); }
.a-sec h4 { margin: 0 0 6px; font-size: 12.5px; letter-spacing: -.01em; }
.a-row { display: flex; gap: 6px; overflow: hidden; }
.pc { flex: 1 1 0; min-width: 0; padding: 5px; border-radius: 13px; background: #fff; border: 1px solid #ece8e0; }
.pt { height: 52px; border-radius: 10px; display: grid; place-items: center; font-size: 30px; margin-bottom: 5px; }
.pn { font-size: 10.5px; font-weight: 750; line-height: 1.2; height: 25px; overflow: hidden; } .ps { font-size: 9.5px; color: #8a867e; font-weight: 600; margin-top: 1px; }
.pp { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; font-size: 11px; font-weight: 800; }
.add { padding: 3px 6px; border-radius: 7px; border: 1.5px solid #7a35e6; color: #7a35e6; background: #fff; font-size: 9.5px; font-weight: 800; transition: background .2s, color .2s, transform .2s; }
.add.tap { transform: scale(.88); background: #7a35e6; color: #fff; }
.add.done { background: #7a35e6; color: #fff; }
.a-cart { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: #5b2bd1; color: #fff; font-size: 12px; font-weight: 800; transform: translateY(150%); transition: transform .6s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 12px 24px rgba(91, 43, 209, .38); }
.a-cart small { font-weight: 600; opacity: .85; display: block; font-size: 9.5px; }
.a-cart.has { transform: none; } .a-cart .ct { display: block; font-size: 13px; }
/* loading and ready */
.skel { display: none; } .scr-app[data-ph="loading"] .skel, .scr-res[data-ph="loading"] .skel { display: block; } .scr-app[data-ph="loading"] .real, .scr-res[data-ph="loading"] .real { display: none; }
.sk { border-radius: 10px; background: linear-gradient(100deg, #ebe8e1 30%, #f6f4ef 50%, #ebe8e1 70%); background-size: 220% 100%; animation: shim 1.3s linear infinite; }
@keyframes shim { to { background-position: -220% 0; } }
.skel .sk.b { height: 78px; border-radius: 16px; } .skel .sk.t { width: 90px; height: 11px; margin-bottom: 8px; } .skel .row { display: flex; gap: 6px; } .skel .sk.c { flex: 1 1 0; height: 112px; border-radius: 13px; }
.scr-app[data-ph="ready"] .pc { animation: popin .5s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes popin { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }

/* the architecture */
#dia .n, #dia .e, #dia .rep { opacity: 0; transition: opacity .55s ease; }
#dia .n.show, #dia .e.show, #dia .rep.show { opacity: 1; }
#dia .n .in { transform: scale(.7); transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); }
#dia .n.show .in { transform: scale(1); }
#dia .e path.draw { transition: stroke-dashoffset .8s ease; }
#dia .n .lab { font-size: 14px; font-weight: 750; fill: #16282a; stroke: #fff; stroke-width: 4.5; paint-order: stroke; stroke-linejoin: round; }
#dia .n .sub { font-size: 12px; fill: #5f6d6a; stroke: #fff; stroke-width: 4.5; paint-order: stroke; stroke-linejoin: round; }
#dia .e .elab { font-size: 12px; font-weight: 700; fill: #4a5857; stroke: #fff; stroke-width: 4; paint-order: stroke; }
#dia .n.hot .ring { opacity: 1; animation: ring 1.3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
#dia .n.glow .in { filter: drop-shadow(0 0 12px rgba(15, 118, 110, .75)); }
#dia .n.flash .in { animation: nflash .95s cubic-bezier(.2, .9, .3, 1); }
.pk circle { stroke: #fff; stroke-width: 2.5; }
.pk text { font-size: 11.5px; font-weight: 800; fill: #fff; }
.chip { opacity: 0; transition: opacity .35s, transform .35s; transform: translateY(6px); }
.chip.on { opacity: 1; transform: none; }
.chip rect { fill: #fff; stroke: #d9d4c9; stroke-width: 1.5; }
.chip text { font-size: 12.5px; font-weight: 750; fill: #16282a; }
.chip.ok rect { fill: #e2f1ee; stroke: #0f766e; } .chip.ok text { fill: #0b5f58; }
.chip.warn rect { fill: #fff3dc; stroke: #e0a13a; } .chip.warn text { fill: #8a5a0c; }
.chip.no rect { fill: #fde8e3; stroke: #e0674f; } .chip.no text { fill: #a3402b; text-decoration: line-through; }
.chip.dark rect { fill: #16282a; stroke: #16282a; } .chip.dark text { fill: #fff; }

/* numbers on the board */
.hud { position: absolute; z-index: 3; bottom: calc(var(--strip) + 4px); left: calc(var(--pw) + 24px); right: 14px; display: flex; gap: 10px; flex-wrap: wrap; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s; pointer-events: none; }
.hud.on { opacity: 1; transform: none; }
.stat { display: grid; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(28, 25, 23, .08); min-width: 150px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.stat.on { opacity: 1; transform: none; }
.stat b { font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #0f766e; } .stat span { font-size: 11.5px; font-weight: 650; color: var(--muted); }
.board.ended #dia { opacity: .25; }
.board.ended .hud { opacity: 0; }

/* the ending */
.endcard { position: absolute; z-index: 6; right: 22px; top: 22px; width: min(430px, 42%); padding: 24px; border-radius: 26px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border: 1px solid #fff; box-shadow: 0 30px 70px rgba(28, 25, 23, .18); animation: rise .6s cubic-bezier(.2, .9, .3, 1) both; }
.endcard .ek { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.endcard h3 { margin: 6px 0 8px; font-size: 26px; letter-spacing: -.03em; }
.endcard p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.elinks { display: grid; gap: 8px; }
.el { display: flex; flex-direction: column; gap: 1px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.el:hover { transform: translateX(4px); border-color: var(--accent); box-shadow: 0 10px 22px rgba(15, 118, 110, .12); }
.el b { font-size: 14.5px; } .el span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .board { --pw: 0px; --strip: 190px; --ph: calc(100% - var(--strip) - 126px); --dt: calc(100% - var(--strip) - 118px); }
  .board[data-focus="dia"] { --ph: 104px; --dt: 112px; }
  .phones { left: 0; right: 0; width: auto; top: 6px; bottom: auto; height: var(--ph); transition: height .7s cubic-bezier(.3, .9, .3, 1), opacity .5s; }
  #dia { left: 0; top: var(--dt); bottom: var(--strip); transition: top .7s cubic-bezier(.3, .9, .3, 1), opacity .6s, filter .6s; }
  .board[data-focus="phone"] #dia { opacity: .5; }
  .board[data-focus="dia"] .phones { opacity: .9; }
  .board[data-focus="dia"] .phones .who { opacity: 0 !important; }
  .hud { left: auto; right: 12px; bottom: calc(var(--strip) + 4px); } .stat { min-width: 0; padding: 6px 10px; } .stat b { font-size: 16px; } .stat span { font-size: 10px; }
  .endcard { left: 12px; right: 12px; width: auto; top: 12px; max-height: 70%; overflow: auto; }
}

.i-src { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); max-width: 440px; line-height: 1.5; }

/* search and results on the phone */
.scr-search, .scr-res { position: absolute; inset: 0; flex-direction: column; background: #f7f6f2; }
.s-top { display: flex; align-items: center; gap: 8px; padding: 40px 12px 8px; background: #fff; }
.s-top .back { font-size: 24px; line-height: 1; color: #16282a; margin-top: -3px; }
.s-input { flex: 1; display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px; border-radius: 12px; background: #f3f1ec; font-size: 12.5px; }
.s-input .mag { color: #8a867e; font-size: 14px; } .s-input .typed, .s-input .typed2 { font-weight: 750; }
.caret { width: 1.5px; height: 14px; background: #5b2bd1; animation: caret 1s steps(2) infinite; } @keyframes caret { 50% { opacity: 0; } }
.s-input .ph { color: #8a867e; } .scr-search[data-m="typing"] .ph, .scr-search[data-m="recent"] .caret + .ph { }
.scr-search[data-m="typing"] .ph { display: none; } .scr-search[data-m="recent"] .s-sugg, .scr-search[data-m="typing"] .s-recent { display: none; }
.s-body { padding: 10px 14px; overflow: hidden; }
.s-recent h4, .r-body h4 { margin: 10px 0 6px; font-size: 11.5px; letter-spacing: .02em; color: #68756f; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; } .s-chips span { padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid #e7e3dc; font-size: 11px; font-weight: 650; }
.sg { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px solid #ece8e0; font-size: 13px; animation: popin .35s ease both; }
.sg b { font-weight: 800; } .sg .mag { color: #8a867e; width: 14px; text-align: center; }
.sg.hist { background: #f3edff; border-radius: 10px; border-bottom-color: transparent; } .sg.hist .mag { color: #5b2bd1; }
.r-body { flex: 1; padding: 8px 14px; overflow: hidden; }
.skel .sk.rr { height: 58px; border-radius: 14px; margin-bottom: 8px; }
.rw { display: flex; align-items: center; gap: 8px; padding: 7px; margin-bottom: 6px; border-radius: 14px; background: #fff; border: 1px solid #ece8e0; }
.scr-res[data-ph="ready"] .rw { animation: popin .5s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i) * 90ms); }
.rw .pt { flex: none; width: 42px; height: 42px; margin: 0; font-size: 24px; }
.rwt { flex: 1; min-width: 0; } .rwt .pn { height: auto; } .rp { font-weight: 800; font-size: 11.5px; margin-top: 2px; }
.rw.oos { opacity: .66; } .oh { color: #a3402b; }
.notify { padding: 4px 8px; border-radius: 8px; border: 1.5px solid #7a35e6; color: #7a35e6; background: #fff; font-size: 9px; font-weight: 800; white-space: nowrap; transition: transform .2s, background .2s, color .2s; }
.notify.tap { transform: scale(.9); background: #7a35e6; color: #fff; } .notify.on { background: #e8f6ee; border-color: #2e9e6a; color: #1f7a4f; }
.push { position: absolute; z-index: 6; top: 36px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 14px 30px rgba(22, 40, 42, .22); transform: translateY(-160%); opacity: 0; transition: transform .6s cubic-bezier(.2, .9, .3, 1), opacity .4s; }
.push.on { transform: none; opacity: 1; }
.push i { flex: none; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(140deg, #7a35e6, #4b1fa6); display: grid; place-items: center; }
.push b { display: block; font-size: 11px; } .push span { font-size: 10px; color: #4a5857; line-height: 1.3; display: block; }
.hsrc { flex-basis: 100%; margin: 2px 0 0; max-width: 540px; padding: 5px 11px; border-radius: 10px; background: rgba(255, 255, 255, .92); font-size: 11.5px; line-height: 1.4; color: var(--muted); }

/* cart, paying, done */
.scr-cart { position: absolute; inset: 0; flex-direction: column; background: #f7f6f2; }
.scr-cart .s-top { padding-bottom: 6px; } .scr-cart .s-top .ct2 { font-size: 15px; flex: 1; } .ctsub { font-size: 10.5px; color: #68756f; font-weight: 700; }
.c-body { flex: 1; padding: 6px 12px 0; overflow: hidden; display: grid; align-content: start; gap: 7px; }
.c-eta { display: flex; justify-content: space-between; align-items: center; padding: 6px 9px; border-radius: 10px; background: #f3edff; font-size: 10.5px; color: #4b1fa6; } .c-eta b { font-weight: 800; margin-left: 3px; }
.saved { display: none; margin-left: auto; padding: 2px 8px; border-radius: 8px; background: #e3f6ec; color: #1f7a4f; font-weight: 800; } .scr-cart.applied .saved { display: inline-block; animation: popin .5s ease both; }
.c-items { background: #fff; border-radius: 12px; border: 1px solid #ece8e0; padding: 0 8px; }
.ci { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid #f0ece4; font-size: 10.5px; } .ci:last-child { border-bottom: 0; }
.cie { font-size: 17px; width: 22px; text-align: center; } .cin { flex: 1; min-width: 0; font-weight: 700; line-height: 1.15; } .cin small { display: block; font-weight: 600; color: #8a867e; font-size: 9px; }
.stp { display: inline-flex; align-items: center; gap: 1px; border-radius: 8px; background: #7a35e6; color: #fff; padding: 1px 2px; } .stp b { min-width: 14px; text-align: center; font-size: 10.5px; }
.stp button { width: 16px; height: 18px; border: 0; background: transparent; color: #fff; font-weight: 800; font-size: 12px; line-height: 1; padding: 0; transition: transform .2s; } .stp button.tap { transform: scale(1.5); }
.cp { min-width: 30px; text-align: right; font-size: 10.5px; }
.c-coupon, .c-addr { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 12px; background: #fff; border: 1px solid #ece8e0; font-size: 10px; }
.c-coupon { border-style: dashed; border-color: #cdbaf2; background: #faf7ff; } .tg, .pin { font-size: 15px; } .c-coupon > div, .c-addr > div { flex: 1; min-width: 0; } .c-coupon b, .c-addr b { display: block; font-size: 11px; } .c-coupon small, .c-addr small { color: #68756f; font-size: 9.5px; line-height: 1.25; display: block; }
.apply { padding: 4px 8px; border-radius: 8px; border: 1.5px solid #7a35e6; color: #7a35e6; background: #fff; font-size: 9px; font-weight: 800; transition: transform .2s, background .2s, color .2s; } .apply.tap { transform: scale(.9); background: #7a35e6; color: #fff; } .apply.on { background: #e3f6ec; border-color: #2e9e6a; color: #1f7a4f; }
.chg { color: #7a35e6; font-weight: 800; font-size: 9.5px; }
.c-bill { padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #ece8e0; font-size: 10px; display: grid; gap: 4px; }
.c-bill > div { display: flex; justify-content: space-between; } .c-bill .free { color: #1f7a4f; font-weight: 800; } .b-disc { display: none !important; } .scr-cart.applied .b-disc { display: flex !important; animation: popin .5s ease both; } .c-bill .tot { padding-top: 5px; border-top: 1px dashed #e0dccf; font-weight: 800; font-size: 12px; }
.c-pay { margin: 8px 12px 14px; padding: 13px; border: 0; border-radius: 14px; background: #5b2bd1; color: #fff; font-weight: 800; font-size: 13px; transition: transform .2s; box-shadow: 0 12px 24px rgba(91, 43, 209, .35); } .c-pay.tap { transform: scale(.95); }
.scr-pay, .scr-done { position: absolute; inset: 0; place-content: center; justify-items: center; gap: 10px; text-align: center; background: #fff; }
.spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #ece9fb; border-top-color: #5b2bd1; animation: spin 0.9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.scr-pay b, .scr-done b { font-size: 17px; letter-spacing: -.02em; } .psub, .scr-done span { font-size: 11.5px; color: #68756f; } .pfail { display: none; color: #c4553d; font-weight: 800; font-size: 13px; }
.scr-pay.fail .spin { border-top-color: #c4553d; animation: none; } .scr-pay.fail .pfail { display: block; } .scr-pay.fail .psub { display: none; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: #1f9d63; color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; animation: popin .6s cubic-bezier(.2, 1.4, .4, 1) both; box-shadow: 0 14px 30px rgba(31, 157, 99, .35); }
.dmap { display: flex; gap: 6px; margin-top: 8px; } .dmap i { width: 30px; height: 6px; border-radius: 4px; background: #5b2bd1; opacity: .85; } .dmap i:nth-child(2) { opacity: .5; } .dmap i:nth-child(3) { opacity: .25; }

/* tracking screen: packing, finding a rider, assigned */
.scr-track { position: absolute; inset: 0; flex-direction: column; background: #f7f6f2; }
.scr-track .s-top .ct2 { flex: 1; font-size: 14px; } .eta { color: #5b2bd1; }
.tk-map { position: relative; flex: 1; margin: 0; background: #eae6dc; overflow: hidden; }
.tk-map .road { position: absolute; background: #fff; border-radius: 3px; } .tk-map .r1 { left: -10%; right: -10%; top: 38%; height: 9px; transform: rotate(-8deg); } .tk-map .r2 { top: -10%; bottom: -10%; left: 46%; width: 9px; transform: rotate(10deg); } .tk-map .r3 { left: -10%; right: -10%; top: 74%; height: 7px; transform: rotate(5deg); }
.tk-map .pn1, .tk-map .pn2 { position: absolute; font-size: 22px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .25)); } .pn1 { left: 12%; bottom: 14%; } .pn2 { right: 10%; top: 12%; }
.tk-route { position: absolute; inset: 0; width: 100%; height: 100%; } .rd { position: absolute; left: 12%; bottom: 14%; font-size: 22px; opacity: 0; transition: opacity .5s; }
.scr-track[data-st="assigned"] .rd, .scr-track[data-st="pickup"] .rd, .scr-track[data-st="riding"] .rd { opacity: 1; }
.tk-card { padding: 12px 14px 16px; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 24px rgba(22, 40, 42, .08); }
.tk-title { font-weight: 800; font-size: 13.5px; letter-spacing: -.01em; } .scr-track[data-st="find"] .tk-title::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; border: 2px solid #ece9fb; border-top-color: #5b2bd1; animation: spin .8s linear infinite; }
.tk-steps { display: flex; gap: 4px; margin: 9px 0 10px; } .tk-steps i { flex: 1; height: 4px; border-radius: 3px; background: #ece9fb; transition: background .4s; } .tk-steps i.on { background: #5b2bd1; }
.tk-rider { display: none; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #f3edff; } .scr-track[data-st="assigned"] .tk-rider, .scr-track[data-st="pickup"] .tk-rider { display: flex; animation: popin .5s ease both; }
.tk-rider .av { width: 30px; height: 30px; border-radius: 50%; background: #5b2bd1; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; } .tk-rider div { flex: 1; } .tk-rider b { display: block; font-size: 12px; } .tk-rider small { font-size: 10px; color: #68756f; } .tk-rider .ph { font-size: 15px; }

/* the ad on the tracking screen */
.tk-ad { display: none; margin-top: 8px; } .scr-track[data-ad="loading"] .tk-ad, .scr-track[data-ad="on"] .tk-ad { display: block; }
.tk-ad .adsk { height: 52px; border-radius: 14px; } .scr-track[data-ad="on"] .adsk, .scr-track[data-ad="loading"] .ad-real { display: none; }
.ad-real { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #1c1f3a, #3b2a7a 60%, #5b2bd1); animation: popin .5s ease both; transition: transform .25s; } .ad-real.tap { transform: scale(.96); }
.adtag { position: absolute; top: 4px; right: 8px; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; font-weight: 800; }
.adic { font-size: 22px; } .ad-real div { flex: 1; min-width: 0; } .ad-real b { display: block; font-size: 11px; } .ad-real small { font-size: 9.5px; opacity: .85; line-height: 1.3; display: block; }
.ad-real button { border: 0; border-radius: 8px; padding: 5px 9px; background: #fff; color: #3b2a7a; font-weight: 800; font-size: 9.5px; }
.scr-track[data-ad="on"] .tk-rider small { display: none; }
.rate { display: none; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: #4a5857; } .rate span { color: #f2b11c; letter-spacing: 2px; margin-left: 4px; } .scr-done.del .rate { display: block; animation: popin .5s .3s ease both; } .scr-done.del .dmap { display: none; }

/* header voice button + phone header */
.bar .round:not(.nspeed) { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.bar .jump { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .bar { gap: 8px; }
  .bar .brand { font-size: 0; gap: 0; }
  .bar .brand .logo { font-size: 14px; }
  .bar .count, .bar .where { display: none; }
  .bar .jump { margin-left: auto; }
  .pill { padding: 7px 12px; font-size: 12px; }
}
