/* ============================================================
   Uber — Meridian City. Full-fidelity ride-hailing UI study.
   Display: Archivo · Body: Public Sans
   ============================================================ */

:root {
  --disp: 'Archivo', 'SF Pro Display', -apple-system, system-ui, sans-serif;
  --body: 'Public Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --ink: #141414;
  --paper: #F6F4F0;
  --card: #FFFFFF;
  --line: #EEECE6;
  --mut: #7A766E;
  --mut2: #98938A;
  --chipbg: #F1EEE8;
  --green: #0B6B33;
  --greenbg: #E8F5EC;
  --red: #A81D1D;
  --redbg: #FBEAEA;
  --amber: #9A5B00;
  --amberbg: #FBEED3;
  --blue: #24528F;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: #0E0E10;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; border: none; background: none; padding: 0; cursor: pointer; color: inherit; }
input { font-family: inherit; }
svg { display: block; }
.ic { flex: none; }

/* ================= stage (desktop ambience) ================= */

#stage {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% -8%, #1B1B20 0%, transparent 60%),
    radial-gradient(700px 500px at 82% 108%, #17181D 0%, transparent 55%),
    #0E0E10;
}
.stage-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.g1 { width: 640px; height: 640px; background: #232329; top: -180px; left: calc(50% - 520px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.g2 { width: 540px; height: 540px; background: #1D2026; bottom: -220px; left: calc(50% + 60px); opacity: .5; animation: drift 21s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(70px, 46px); } }
.stage-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(640px 640px at 50% 44%, #000 25%, transparent 74%);
  mask-image: radial-gradient(640px 640px at 50% 44%, #000 25%, transparent 74%);
}
.stage-cap {
  position: relative; z-index: 1; margin: 0; padding: 0 24px;
  color: #6E6E76; font-size: 12.5px; letter-spacing: .2px; text-align: center;
}
.stage-cap b { color: #BCBCC5; font-family: var(--disp); font-weight: 800; }

/* ================= device frame ================= */

.device {
  position: relative; z-index: 1; flex: none;
  width: 393px; height: 852px; padding: 10px;
  border-radius: 56px;
  background: linear-gradient(160deg, #3B3B41 0%, #141417 38%, #26262B 100%);
  box-shadow:
    0 70px 130px -34px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,255,255,.06),
    inset 0 0 3px rgba(255,255,255,.14);
}
.device::before {
  content: ''; position: absolute; left: -2.6px; top: 200px;
  width: 3px; height: 34px; border-radius: 3px; background: #2E2E33;
  box-shadow: 0 46px 0 0 #2E2E33, 0 100px 0 0 #2E2E33;
}
.device::after {
  content: ''; position: absolute; right: -2.6px; top: 268px;
  width: 3px; height: 78px; border-radius: 3px; background: #2E2E33;
}
.device-island {
  position: absolute; top: 21px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 34px; border-radius: 20px; background: #000; z-index: 120;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03);
}
.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 46px; overflow: hidden; background: #EDEBE6;
  isolation: isolate;
}

/* status bar + home indicator */
#statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 110;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 30px 0; color: var(--ink);
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  pointer-events: none; transition: color .35s;
}
.sb-right { display: flex; gap: 6.5px; align-items: center; }
#screen.sb-light #statusbar { color: #F5F5F1; }
#homebar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 26px; z-index: 110;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  pointer-events: none; color: rgba(15,15,15,.85); transition: color .35s;
}
#homebar i { width: 124px; height: 5px; border-radius: 3px; background: currentColor; }
#screen.sb-light #homebar { color: rgba(255,255,255,.92); }

/* ================= canvas + overlays ================= */

#map { position: absolute; inset: 0; z-index: 0; }
#mapOverlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
#uiRoot { position: absolute; inset: 0; z-index: 10; }

.eta-bubble {
  position: absolute; top: 0; left: 0; z-index: 6;
  background: var(--ink); color: #fff;
  font: 700 12.5px var(--disp); padding: 5px 11px; border-radius: 999px;
  translate: -50% -150%; pointer-events: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
}
.eta-bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -3.5px;
  width: 8px; height: 8px; background: var(--ink); transform: translateX(-50%) rotate(45deg);
}
.meet-bubble {
  position: absolute; top: 0; left: 0; z-index: 6;
  background: #fff; color: var(--ink);
  font: 700 11.5px var(--disp); padding: 4.5px 10px; border-radius: 8px;
  translate: -50% 14px; pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.meet-bubble::after {
  content: ''; position: absolute; left: 50%; top: -3.5px;
  width: 8px; height: 8px; background: #fff; transform: translateX(-50%) rotate(45deg);
}

/* ================= layers ================= */

.layer { position: absolute; inset: 0; display: none; flex-direction: column; }
.layer.active { display: flex; animation: layerIn .34s cubic-bezier(.32,.72,.28,1); }
.layer.leaving { animation: layerOut .22s ease forwards; }
@keyframes layerIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes layerOut { to { opacity: 0; transform: translateY(14px); } }

.layer-home, .layer-options, .layer-connecting, .layer-driver { background: transparent; pointer-events: none; }
.layer-search, .layer-receipt, .layer-rating, .layer-page, .layer-onboard { background: var(--paper); pointer-events: auto; }

/* ================= generic controls ================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 12px;
  background: var(--ink); color: #fff;
  font: 700 15.5px var(--disp);
  transition: transform .12s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .38; pointer-events: none; }
.btn-secondary { background: #EEEBE5; color: var(--ink); }
.btn-danger { background: var(--red); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; }
.btn-cta { width: 100%; justify-content: space-between; height: 56px; border-radius: 14px; font-size: 16.5px; padding: 0 10px 0 20px; }
.cta-meta { background: rgba(255,255,255,.16); border-radius: 999px; padding: 5px 13px; font: 700 13px var(--disp); }

.fab-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center; pointer-events: auto;
  box-shadow: 0 2px 14px rgba(15,15,15,.16), 0 0 0 1px rgba(15,15,15,.03);
  transition: transform .15s ease;
}
.fab-btn:active { transform: scale(.9); }

/* ================= sheets ================= */

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 34px rgba(20,18,12,.13);
  display: flex; flex-direction: column;
  transition: height .4s cubic-bezier(.32,.72,.22,1);
  will-change: height; pointer-events: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet.no-anim, .sheet.dragging { transition: none; }
.sheet-grab { height: 26px; flex: none; display: grid; place-items: center; cursor: grab; }
.sheet-grab i { width: 38px; height: 4.5px; border-radius: 3px; background: #D8D4CC; }
.sheet-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 14px 26px; -webkit-overflow-scrolling: touch;
}
.sheet-body::-webkit-scrollbar { width: 0; }
.sheet-cta { flex: none; padding: 8px 14px calc(22px + env(safe-area-inset-bottom, 0px)); }

/* ================= home ================= */

.home-top {
  position: absolute; top: 62px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; pointer-events: none;
}
.home-top .fab-btn { pointer-events: auto; }
.bell-btn { position: relative; }
.bell-dot {
  position: absolute; top: 9px; right: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: #D0342C; border: 1.6px solid #fff; display: none;
}
.home-fabs { position: absolute; right: 14px; bottom: 236px; display: flex; flex-direction: column; gap: 10px; }

.where-row {
  width: 100%; height: 56px; margin-bottom: 12px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 16px rgba(15,15,15,.11), 0 0 0 1px rgba(15,15,15,.04);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 18px; font: 600 17px var(--disp); color: var(--ink);
  transition: transform .15s ease, box-shadow .2s;
}
.where-row:active { transform: scale(.985); }
.where-right { display: flex; gap: 7px; align-items: center; }
.where-clock { width: 38px; height: 38px; border-radius: 12px; background: var(--chipbg); display: grid; place-items: center; }
.where-now {
  height: 38px; padding: 0 9px 0 12px; border-radius: 12px; background: var(--chipbg);
  display: flex; align-items: center; gap: 3px; font: 600 13.5px var(--body);
}
.where-now em { display: flex; opacity: .55; font-style: normal; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px;
  padding: 0 14px 12px; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: flex; gap: 9px; align-items: center;
  background: #fff; border-radius: 12px; padding: 7px 14px 7px 7px;
  box-shadow: 0 1px 8px rgba(0,0,0,.09), inset 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .12s ease;
}
.chip:active { transform: scale(.96); }
.chip-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--chipbg); display: grid; place-items: center; }
.chip-tx { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.chip-tx b { font: 600 13.5px var(--disp); color: var(--ink); }
.chip-tx small { font-size: 11.5px; color: var(--mut); }

.sugg-head { font: 700 13px var(--disp); color: var(--ink); margin: 8px 2px 4px; letter-spacing: .2px; }
.sugg-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 6px; border-radius: 12px; text-align: left;
  transition: background .15s;
}
.sugg-row:active { background: #F4F2ED; }
.sugg-row.static { cursor: default; }
.sugg-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--chipbg); display: grid; place-items: center; flex: none; color: var(--ink); }
.sugg-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sugg-tx b { font: 500 14.5px var(--body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-tx small { font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-go { color: #B7B2A9; flex: none; display: flex; }

.promo-card {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 13px; margin-top: 12px;
  transition: transform .15s ease;
}
.promo-card:active { transform: scale(.98); }
.promo-ic { width: 40px; height: 40px; border-radius: 12px; background: #26262B; display: grid; place-items: center; flex: none; }
.promo-tx { flex: 1; min-width: 0; }
.promo-tx b { display: block; font: 700 14px var(--disp); }
.promo-tx small { font-size: 12px; color: #A9A6A0; }
.promo-cta { margin-left: auto; flex: none; background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 15px; font: 700 12.5px var(--disp); }
.promo-card.applied { background: #E4F3E9; color: var(--green); }
.promo-card.applied .promo-ic { background: #CFE9D8; }
.promo-card.applied .promo-tx small { color: #4C8A66; }

/* ================= search ================= */

.layer-search { padding-top: 56px; }
.search-head { display: flex; gap: 8px; align-items: center; padding: 6px 14px 10px; }
.search-back { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); flex: none; }
.search-field {
  flex: 1; display: flex; align-items: center; height: 48px;
  background: #fff; border-radius: 12px; padding: 0 8px 0 16px;
  box-shadow: inset 0 0 0 1.5px #E7E4DD; transition: box-shadow .15s;
}
.search-field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.search-input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: 500 15.5px var(--body); color: var(--ink); }
.search-input::placeholder { color: #8B867D; }
.search-clear { width: 30px; height: 30px; border-radius: 50%; background: #E7E4DD; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .15s; flex: none; }
.search-clear.show { opacity: 1; pointer-events: auto; }
.search-list { flex: 1; overflow-y: auto; padding: 2px 14px 46px; }
.search-row .sugg-ic { background: #fff; box-shadow: inset 0 0 0 1px #EAE7E0; }
.hl { font-weight: 700; }
.search-empty { padding: 44px 20px; display: grid; gap: 7px; justify-items: center; text-align: center; color: var(--mut); }
.search-empty b { color: var(--ink); font: 600 15px var(--body); }
.search-empty small { font-size: 13px; max-width: 250px; line-height: 1.45; }
.search-empty-ic { width: 58px; height: 58px; border-radius: 50%; background: #ECEAE4; display: grid; place-items: center; color: #6E6A63; margin-bottom: 4px; }

/* ================= keyboard ================= */

#keyboard {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 70;
  background: #D6D9DE; padding: 9px 3px calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateY(106%); transition: transform .34s cubic-bezier(.32,.72,.28,1);
  box-shadow: 0 -10px 26px rgba(0,0,0,.14);
  pointer-events: none;
}
#keyboard.show { transform: none; pointer-events: auto; }
.kbd-row { display: flex; gap: 5px; justify-content: center; margin-bottom: 10px; padding: 0 2px; }
.kbd-row:last-child { margin-bottom: 0; }
.kbd-key {
  height: 43px; flex: 1 1 0; max-width: 37px; border-radius: 5px;
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.3);
  font: 500 20px var(--body); display: grid; place-items: center;
}
.kbd-key:active { background: #ADB3BC; }
.kbd-shift, .kbd-del { max-width: 54px; font-size: 15px; background: #B4B9C1; }
.kbd-shift.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 0 1px 0 rgba(0,0,0,.3); }
.kbd-bottom .kbd-key { max-width: none; }
.kbd-wide { max-width: 66px !important; font: 600 13.5px var(--body); }
body.kbd-up .search-list { padding-bottom: 330px; }

/* ================= ride options ================= */

.opt-back { position: absolute; top: 62px; left: 14px; }
.opt-summary { padding: 6px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.opt-leg { display: flex; gap: 13px; align-items: center; padding: 5px 0; min-height: 31px; position: relative; }
.opt-leg + .opt-leg::before { content: ''; position: absolute; left: 4px; top: -13px; height: 13px; width: 1.6px; background: #C9C4BA; }
.leg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4.4px #D9D5CC; }
.leg-sq { width: 9px; height: 9px; background: var(--ink); flex: none; }
.leg-tx { display: flex; flex-direction: column; min-width: 0; }
.leg-tx b { font: 600 14.5px var(--body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-tx small { font-size: 12.5px; color: var(--mut); }
.leg-edit { background: none; text-align: left; padding: 0; }

.tier-list { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 2px; }
.tier-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px; border-radius: 14px; text-align: left;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s;
}
.tier-row.sel { background: #F4F2EC; border-color: var(--ink); }
.tier-car { width: 66px; flex: none; color: var(--ink); display: flex; justify-content: center; }
.tier-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tier-name { display: flex; align-items: center; gap: 7px; }
.tier-name b { font: 700 15px var(--disp); color: var(--ink); }
.tier-seats { display: inline-flex; align-items: center; gap: 2.5px; font: 600 11.5px var(--body); color: var(--mut); }
.tier-eta { font: 600 12px var(--body); color: var(--green); }
.tier-desc { font-size: 12px; color: #8B867D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2.5px; flex: none; }
.tier-price b { font: 700 15.5px var(--disp); color: var(--ink); font-variant-numeric: tabular-nums; }
.tier-price small { font-size: 11.5px; color: #8B867D; }
.surge-chip { font: 700 10.5px var(--disp); color: var(--amber); background: var(--amberbg); border-radius: 999px; padding: 2.5px 7px; }
.tier-row.mini .tier-car { width: 52px; }
.tier-row.mini { border-color: #EAE7E0; margin-bottom: 8px; background: #fff; }
.tier-row.mini.sel { border-color: var(--ink); }

.pay-row, .promo-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; border-top: 1px solid var(--line); text-align: left;
}
.pay-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--chipbg); display: grid; place-items: center; flex: none; color: var(--ink); }
.pay-ic.promo { color: var(--green); background: var(--greenbg); }
.pay-tx { flex: 1; font: 600 14px var(--body); color: var(--ink); }
.pay-tx.promo-tx { color: var(--green); }
.apay { display: inline-block; width: 26px; height: 16px; border-radius: 4px; background: #000; color: #fff; font: 700 8px/16px var(--disp); text-align: center; letter-spacing: .3px; }
.apay::before { content: 'Pay'; }
.apay.big { width: 34px; height: 22px; border-radius: 5px; font-size: 10px; line-height: 22px; }
.opt-note { font-size: 11.5px; color: var(--mut2); padding: 8px 4px 4px; line-height: 1.4; }

/* ================= connecting ================= */

.conn-inner { display: flex; align-items: center; gap: 15px; padding: 16px 16px calc(26px + env(safe-area-inset-bottom, 0px)); }
.conn-radar { width: 64px; height: 64px; position: relative; display: grid; place-items: center; color: var(--ink); flex: none; }
.conn-radar i { position: absolute; inset: 0; border: 2px solid rgba(20,20,20,.5); border-radius: 50%; animation: radarPulse 1.9s ease-out infinite; }
.conn-radar i:nth-child(2) { animation-delay: .63s; }
.conn-radar i:nth-child(3) { animation-delay: 1.26s; }
.conn-radar svg { position: relative; z-index: 1; background: #fff; border-radius: 50%; padding: 7px; box-shadow: 0 0 0 5px #fff; }
@keyframes radarPulse { from { transform: scale(.34); opacity: .85; } to { transform: scale(1.04); opacity: 0; } }
.conn-tx { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.conn-tt { font: 700 16.5px var(--disp); color: var(--ink); }
.dots i { font-style: normal; animation: blink 1.3s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
.conn-tx small { font-size: 12.5px; color: var(--mut); }
.conn-cancel { width: 44px; height: 44px; border-radius: 50%; background: var(--chipbg); display: grid; place-items: center; flex: none; color: var(--ink); transition: transform .12s; }
.conn-cancel:active { transform: scale(.9); }

/* ================= driver / trip ================= */

.driver-sheet { pointer-events: auto; }
.drv-head { padding: 6px 4px 14px; border-bottom: 1px solid var(--line); }
.drv-eta-row { display: flex; align-items: baseline; gap: 10px; }
.drv-eta { font: 800 34px var(--disp); letter-spacing: -.6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.drv-eta-lab { font: 600 13px var(--body); color: var(--mut); }
.drv-tt { font: 700 16px var(--disp); color: var(--ink); margin-top: 1px; }
.drv-sub { font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.drv-arr { display: flex; align-items: center; gap: 9px; font: 800 22px var(--disp); color: var(--green); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulseDot 1.5s infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(11,107,51,.42); } 55% { box-shadow: 0 0 0 8px rgba(11,107,51,0); } }
.trip-prog { height: 4px; background: #E9E6DF; border-radius: 3px; margin-top: 11px; overflow: hidden; }
.trip-prog i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .6s linear; }

.drv-card { display: flex; align-items: center; gap: 12px; padding: 13px 2px 6px; }
.drv-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drv-name { font: 700 15.5px var(--disp); color: var(--ink); }
.drv-meta { font-size: 12.5px; color: var(--mut); }
.drv-car { font-size: 12.5px; color: var(--mut); }
.plate { display: inline-flex; flex-direction: column; align-items: center; border: 1.6px solid var(--ink); border-radius: 6px; padding: 3px 9px 4px; background: #fff; line-height: 1; flex: none; }
.plate::before { content: 'MERIDIAN'; font: 700 5.5px var(--disp); letter-spacing: 1.3px; color: var(--mut); }
.plate i { font: 800 14px var(--disp); letter-spacing: 1.6px; font-style: normal; color: var(--ink); margin-top: 2px; }

.act-row { display: flex; justify-content: space-between; gap: 6px; padding: 8px 2px 6px; }
.act-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.act-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--chipbg); display: grid; place-items: center; color: var(--ink); transition: transform .12s, background .15s; }
.act-btn:active .act-ic { transform: scale(.9); background: #E7E3DB; }
.act-tx { font: 600 11.5px var(--body); color: #55524B; }
.act-btn.danger .act-ic { background: var(--redbg); color: var(--red); }
.act-btn.danger .act-tx { color: var(--red); }

.refab { position: absolute; right: 14px; bottom: 316px; z-index: 20; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .22s, transform .22s; }
.refab.show { opacity: 1; pointer-events: auto; transform: none; }

/* pick-on-map */
.pick-overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
.pick-overlay.show { opacity: 1; }
.pick-pin { color: var(--ink); translate: 0 -52%; filter: drop-shadow(0 7px 7px rgba(0,0,0,.32)); animation: pinBob 1.7s ease-in-out infinite; }
@keyframes pinBob { 50% { translate: 0 calc(-52% - 7px); } }
.pick-card {
  position: absolute; bottom: 42px; left: 16px; right: 16px;
  background: #fff; border-radius: 16px; padding: 14px 16px 16px;
  box-shadow: 0 12px 44px rgba(0,0,0,.22); pointer-events: auto; display: grid; gap: 3px;
}
.pick-card b { font: 700 16px var(--disp); color: var(--ink); }
.pick-card small { font-size: 12.5px; color: var(--mut); }
.pick-btns { display: flex; gap: 10px; margin-top: 11px; }
.pick-btns .btn { flex: 1; }

/* ================= receipt + rating ================= */

.layer-receipt { padding-top: 56px; }
.rc-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 16px 10px; }
.rc-top b { font: 700 17px var(--disp); color: var(--ink); }
.rc-x { width: 40px; height: 40px; border-radius: 50%; background: #ECEAE4; display: grid; place-items: center; color: var(--ink); }
.rc-scroll { flex: 1; overflow-y: auto; padding: 0 16px 18px; }
.rc { background: #fff; border-radius: 18px; padding: 22px 18px 16px; box-shadow: 0 2px 16px rgba(15,15,15,.06); }
.rc-hero { text-align: center; padding-bottom: 15px; border-bottom: 1px dashed #E7E4DD; }
.rc-total { display: block; font: 800 40px var(--disp); letter-spacing: -1.2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rc-tt { font: 600 13.5px var(--body); color: #55524B; margin-top: 3px; }
.rc-date { font-size: 12.5px; color: #8B867D; margin-top: 1px; }
.rc-legs { padding: 13px 0; border-bottom: 1px dashed #E7E4DD; }
.rc-lines { padding: 12px 0; border-bottom: 1px dashed #E7E4DD; display: grid; gap: 8px; }
.rc-line { display: flex; justify-content: space-between; font-size: 13.5px; color: #3B3833; }
.rc-line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-line.surge { color: var(--amber); }
.rc-line.promo { color: var(--green); }
.rc-pay { display: flex; align-items: center; gap: 10px; padding: 13px 0 2px; font: 600 13.5px var(--body); color: var(--ink); }
.rc-pay .pay-ic { width: 32px; height: 32px; border-radius: 8px; }
.rc-paid { margin-left: auto; color: var(--green); font: 700 11.5px var(--disp); background: var(--greenbg); padding: 4px 11px; border-radius: 999px; }
.rc-note { font-size: 12px; color: var(--mut2); margin: 11px 0 0; line-height: 1.45; }
.rc-rated { margin-top: 13px; font-size: 15px; letter-spacing: 2.5px; color: #E8A400; }
.rc-rated span { display: block; letter-spacing: 0; font-size: 12px; color: #8B867D; margin-top: 2px; }
.rc-cta { margin: 12px 16px 8px; }
.rc-help { margin: 0 auto 28px; display: flex; gap: 6px; align-items: center; color: #55524B; font: 600 13px var(--body); }

.layer-rating { padding: 62px 20px 30px; align-items: center; overflow-y: auto; }
.rt-x { position: absolute; top: 62px; right: 16px; }
.rt-ava { margin-top: 12px; }
.rt-ava svg { box-shadow: 0 6px 18px rgba(15,15,15,.14); }
.rt-tt { font: 700 19px var(--disp); text-align: center; margin: 17px 6px 15px; color: var(--ink); }
.rt-stars { display: flex; gap: 9px; }
.rt-star { color: #DAD6CD; transition: color .15s; }
.rt-star.on { color: #E8A400; animation: starPop .32s ease; }
.rt-star:active { transform: scale(1.18); }
@keyframes starPop { 45% { transform: scale(1.34); } }
.rt-cap { font: 600 13.5px var(--body); color: var(--mut); margin-top: 11px; min-height: 18px; }
.rt-head { align-self: flex-start; font: 700 14px var(--disp); color: var(--ink); margin: 22px 0 10px; }
.rt-tips, .rt-comps { display: flex; gap: 8px; flex-wrap: wrap; }
.tip-chip { padding: 9px 17px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #E3E0D8; font: 600 13.5px var(--body); color: var(--ink); transition: all .15s; }
.tip-chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.comp-chip { padding: 8px 13px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #E3E0D8; font: 500 12.5px var(--body); color: var(--ink); transition: all .15s; }
.comp-chip.on { background: var(--greenbg); color: var(--green); box-shadow: inset 0 0 0 1.5px #9CCFB2; }
.rt-submit { margin-top: 26px; }
.thanks { position: absolute; inset: 0; z-index: 5; background: rgba(246,244,240,.97); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.thanks.show { opacity: 1; }
.thanks-in { display: grid; justify-items: center; gap: 9px; text-align: center; padding: 0 30px; animation: thanksUp .55s cubic-bezier(.34,1.4,.5,1); }
.thanks-in b { font: 800 20px var(--disp); color: var(--ink); }
.thanks-in small { color: var(--mut); font-size: 13.5px; }
.thanks-star { color: #E8A400; animation: starPop .6s ease; }
@keyframes thanksUp { from { opacity: 0; transform: translateY(26px) scale(.94); } }
.tip-custom-row { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 12px; padding: 3px 14px; box-shadow: inset 0 0 0 1.5px #E3E0D8; margin-bottom: 12px; }
.tip-custom-row:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.tip-dollar { font: 700 17px var(--disp); color: var(--ink); }
.tip-input { flex: 1; border: none; outline: none; font: 600 17px var(--body); padding: 11px 0; background: none; color: var(--ink); }

/* ================= pages ================= */

.layer-page { padding-top: 56px; }
.page-head { display: flex; align-items: center; gap: 6px; padding: 4px 14px 10px; }
.page-back { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); }
.page-title { font: 700 19px var(--disp); color: var(--ink); }
.page-body { flex: 1; overflow-y: auto; padding: 0 14px 44px; }

.act-day { margin-top: 16px; }
.act-right { display: flex; align-items: center; gap: 8px; flex: none; }
.act-amt { font: 700 14px var(--disp); color: var(--ink); font-variant-numeric: tabular-nums; }
.act-status { font: 700 10.5px var(--disp); padding: 3.5px 9px; border-radius: 999px; background: var(--greenbg); color: var(--green); }
.act-status.canceled { background: var(--redbg); color: var(--red); }
.act-status.scheduled { background: #E9F0FB; color: var(--blue); }
.act-ic { background: #fff; box-shadow: inset 0 0 0 1px #EAE7E0; }

.wal-card { background: var(--ink); color: #fff; border-radius: 16px; padding: 15px 16px; display: flex; justify-content: space-between; align-items: center; margin: 4px 0 6px; }
.wal-bal small { display: block; color: #A9A6A0; font-size: 12px; }
.wal-bal b { font: 800 24px var(--disp); }
.wal-card .btn-secondary { background: #fff; }
.paym-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--chipbg); display: grid; place-items: center; flex: none; color: var(--ink); }
.paym-def { color: var(--green); display: flex; flex: none; }

.acc-head { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 15px; box-shadow: 0 1px 8px rgba(0,0,0,.05); margin: 4px 0 12px; }
.acc-id { min-width: 0; }
.acc-id b { display: block; font: 700 17px var(--disp); color: var(--ink); }
.acc-id small { display: block; color: var(--mut); font-size: 12.5px; }
.acc-rate { color: #B47900 !important; font-weight: 600; }

.set-row { padding: 12px 6px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; display: inline-block; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; background: #D9D5CC; border-radius: 999px; transition: background .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.28); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }

.promo-hero { background: #fff; border-radius: 16px; padding: 15px 16px; margin-top: 12px; box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.promo-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.promo-hero-top b { font: 800 15px var(--disp); letter-spacing: .4px; color: var(--ink); }
.promo-hero p { font-size: 13px; color: #55524B; margin: 8px 0 12px; line-height: 1.5; }
.promo-val { font: 800 12.5px var(--disp); color: var(--green); background: var(--greenbg); padding: 4px 10px; border-radius: 999px; flex: none; }
.promo-live { font: 800 11px var(--disp); color: #fff; background: var(--green); padding: 4px 10px; border-radius: 999px; flex: none; }
.promo-used { font: 800 11px var(--disp); color: var(--mut2); background: #EEECE6; padding: 4px 10px; border-radius: 999px; flex: none; }
.promo-hero.used { opacity: .6; }
.promo-dots { display: flex; gap: 6px; }
.promo-dots i { width: 28px; height: 6px; border-radius: 3px; background: #E7E4DD; }
.promo-dots i.on { background: var(--green); }
.refer-row { display: flex; gap: 10px; align-items: center; }
.refer-row code { flex: 1; background: var(--paper); border: 1.5px dashed #C9C4BA; border-radius: 10px; padding: 10px 12px; font: 700 13px var(--disp); letter-spacing: 1.2px; color: var(--ink); }
.promo-enter { display: grid; gap: 10px; margin-bottom: 8px; }

.notif-mark { align-self: flex-end; font: 700 12.5px var(--body); color: var(--blue); padding: 6px 4px; margin-bottom: 2px; }
.notif-row { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; text-align: left; border-bottom: 1px solid #ECEAE4; border-radius: 10px; }
.notif-ic { width: 38px; height: 38px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #EAE7E0; display: grid; place-items: center; flex: none; color: var(--ink); }
.notif-row .sugg-tx b { white-space: normal; }
.notif-row .sugg-tx small { white-space: normal; }
.notif-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; flex: none; }
.notif-meta small { color: var(--mut2); font-size: 11px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E6FE8; }

.help-card { background: var(--ink); color: #fff; border-radius: 16px; padding: 15px 16px; display: grid; gap: 4px; justify-items: start; margin-top: 18px; }
.help-card b { font: 700 15px var(--disp); }
.help-card small { color: #A9A6A0; font-size: 12.5px; }
.help-card .btn-secondary { margin-top: 10px; background: #fff; }

.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 2px; font: 600 14px var(--body); text-align: left; border-bottom: 1px solid var(--line); color: var(--ink); }
.faq-ic { transition: transform .25s; color: #8B867D; flex: none; display: flex; }
.faq-q.open .faq-ic { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; font-size: 13px; color: #55524B; line-height: 1.55; }
.faq-a.open { max-height: 220px; padding: 10px 2px 14px; }

.sched-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }

.cc-input { width: 100%; background: #fff; border: none; outline: none; border-radius: 12px; padding: 13px 14px; font: 500 15px var(--body); box-shadow: inset 0 0 0 1.5px #E3E0D8; margin-bottom: 10px; color: var(--ink); transition: box-shadow .15s; }
.cc-input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.cc-field { position: relative; }
.cc-brand { position: absolute; right: 13px; top: 13px; font: 700 11px var(--disp); color: var(--mut); }
.cc-2col { display: flex; gap: 10px; }
.cc-2col .cc-input { flex: 1; }

.phone-row { display: flex; gap: 10px; margin-bottom: 14px; }
.cc-btn { background: #fff; border-radius: 12px; padding: 0 13px; font: 600 15px var(--body); box-shadow: inset 0 0 0 1.5px #E3E0D8; color: var(--ink); flex: none; }
.signin-phone { flex: 1; margin-bottom: 0; }
.code-row { display: flex; gap: 10px; margin: 2px 0 12px; }
.code-row.busy .code-box { opacity: .45; }
.code-box { width: 52px; height: 60px; border-radius: 12px; border: none; background: #fff; box-shadow: inset 0 0 0 1.5px #E3E0D8; text-align: center; font: 700 24px var(--disp); color: var(--ink); outline: none; }
.code-box:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.code-hint { font-size: 12px; color: var(--mut2); margin: 0; }

.share-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 2px; text-align: left; border-radius: 12px; }
.share-ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 17px var(--disp); color: var(--ink); flex: none; }
.share-cta { margin-left: auto; font: 700 12.5px var(--disp); background: var(--chipbg); color: var(--ink); padding: 8px 15px; border-radius: 999px; display: flex; align-items: center; gap: 5px; flex: none; }
.share-row.done .share-cta { background: var(--greenbg); color: var(--green); }

.safe-row { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 2px; text-align: left; border-bottom: 1px solid #F0EEE8; }
.safe-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--chipbg); display: grid; place-items: center; flex: none; color: var(--ink); }
.safe-row.sos .safe-ic { background: var(--red); color: #fff; }
.safe-row.sos .safe-tx b { color: var(--red); }
.safe-tx { flex: 1; min-width: 0; }
.safe-tx b { display: block; font: 600 14px var(--body); color: var(--ink); }
.safe-tx small { font-size: 12px; color: var(--mut); }

/* call + chat */
.modal-card.dark { background: #1B1B1F; color: #fff; }
.modal-card.dark .modal-grab i { background: #4A4A52; }
.call-ava { display: grid; place-items: center; margin: 10px 0 13px; }
.call-name { text-align: center; font: 700 19px var(--disp); }
.call-status { text-align: center; color: #A9A6A0; font: 600 13.5px var(--body); margin: 4px 0 22px; font-variant-numeric: tabular-nums; }
.call-btns { display: flex; justify-content: center; gap: 24px; padding: 0 0 14px; }
.call-btn { width: 62px; height: 62px; border-radius: 50%; background: #34343A; color: #fff; display: grid; place-items: center; position: relative; transition: background .15s; }
.call-btn small { position: absolute; bottom: -19px; font-size: 10px; color: #A9A6A0; }
.call-btn.end { background: var(--red); }
.call-btn.togglable.on { background: #fff; color: var(--ink); }
.chat-modal .modal-body { display: flex; flex-direction: column; max-height: 64vh; }
.chat-thread { flex: 1; min-height: 150px; max-height: 290px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 10px; }
.chat-bub { max-width: 80%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--chipbg); color: var(--ink); font-size: 13.5px; align-self: flex-start; animation: bubIn .25s ease; line-height: 1.4; }
.chat-bub.mine { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
@keyframes bubIn { from { opacity: 0; transform: translateY(6px); } }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chip { flex: none; padding: 7px 12px; font-size: 12.5px; }
.chat-bar { display: flex; gap: 8px; }
.chat-input { flex: 1; border: none; outline: none; background: #fff; border-radius: 999px; padding: 12px 16px; font: 500 14px var(--body); box-shadow: inset 0 0 0 1.5px #E3E0D8; color: var(--ink); }
.chat-send { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }

/* ================= drawer ================= */

.drawer-root { position: absolute; inset: 0; z-index: 85; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(10,10,12,.46); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: 82%;
  background: var(--paper); padding: 74px 10px 18px;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(-103%); transition: transform .34s cubic-bezier(.32,.72,.28,1);
  border-radius: 0 22px 22px 0;
}
.drawer-root.show .drawer-scrim { opacity: 1; }
.drawer-root.show .drawer-panel { transform: none; }
.drawer-head { display: flex; gap: 13px; align-items: center; padding: 0 10px 16px; }
.drawer-id b { display: block; font: 700 17px var(--disp); color: var(--ink); }
.drawer-id small { color: var(--mut); font-size: 12.5px; }
.drawer-sep { height: 1px; background: #E7E4DD; margin: 6px 10px; flex: none; }
.drawer-row { display: flex; gap: 15px; align-items: center; padding: 13px 10px; border-radius: 12px; font: 600 15px var(--body); color: var(--ink); text-align: left; width: 100%; flex: none; }
.drawer-row:active { background: #ECEAE4; }
.drawer-ic { color: #3B3833; display: flex; flex: none; }
.drawer-foot { margin-top: auto; padding: 16px 10px 0; font-size: 11.5px; color: var(--mut2); }

/* ================= modals / banners / toasts ================= */

#modalHost { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.modal-root { position: absolute; inset: 0; display: flex; align-items: flex-end; pointer-events: auto; }
.modal-dim { position: absolute; inset: 0; background: rgba(10,10,12,.46); opacity: 0; transition: opacity .3s; }
.modal-card {
  position: relative; width: 100%; background: #fff;
  border-radius: 20px 20px 0 0; padding: 5px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(103%); transition: transform .36s cubic-bezier(.32,.72,.28,1);
  max-height: 84%; overflow-y: auto;
}
.modal-root.show .modal-dim { opacity: 1; }
.modal-root.show .modal-card { transform: none; }
.modal-grab { display: grid; place-items: center; height: 24px; cursor: pointer; }
.modal-grab i { width: 38px; height: 4.5px; border-radius: 3px; background: #D8D4CC; }
.modal-title { font: 700 17.5px var(--disp); color: var(--ink); padding: 3px 2px 10px; }
.modal-msg { font-size: 13.5px; color: #55524B; line-height: 1.5; margin: 0 0 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions .btn { flex: 1; }

#bannerHost { position: absolute; top: 58px; left: 10px; right: 10px; z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.banner {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; gap: 11px; align-items: center;
  background: rgba(253,252,250,.93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 18px; padding: 11px 13px;
  box-shadow: 0 10px 32px rgba(15,15,15,.2), 0 0 0 1px rgba(15,15,15,.04);
  transform: translateY(-26px); opacity: 0;
  transition: transform .42s cubic-bezier(.34,1.3,.5,1), opacity .3s;
}
.banner.show { transform: none; opacity: 1; }
.banner-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.banner-ic span { font: 800 9.5px var(--disp); letter-spacing: .2px; }
.banner-tx { flex: 1; min-width: 0; }
.banner-tt { font: 700 13.5px var(--disp); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-bd { font-size: 12px; color: #6E6A63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-tag { font: 800 12px var(--disp); color: var(--green); background: var(--greenbg); padding: 5px 10px; border-radius: 999px; flex: none; }
.banner-prog { position: absolute; left: 0; bottom: 0; height: 2.5px; width: 100%; background: rgba(20,20,20,.24); transform-origin: left; animation: bannerProg 4.2s linear forwards; }
@keyframes bannerProg { to { transform: scaleX(0); } }

#toastHost { position: absolute; bottom: 122px; left: 0; right: 0; display: flex; justify-content: center; z-index: 95; pointer-events: none; padding: 0 24px; }
.toast { background: var(--ink); color: #fff; font: 600 13px var(--body); padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.32); opacity: 0; transform: translateY(10px); transition: all .3s; text-align: center; }
.toast.show { opacity: 1; transform: none; }

/* ================= onboarding ================= */

.layer-onboard { padding: 74px 26px 42px; }
.ob-word { font: 900 30px var(--disp); letter-spacing: -.6px; color: var(--ink); }
.ob-art { flex: 1; display: grid; place-items: center; min-height: 210px; }
.ob-svg { width: 100%; max-width: 300px; overflow: visible; }
.ob-art.swap .ob-svg { animation: artIn .5s cubic-bezier(.34,1.3,.5,1); }
@keyframes artIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
.ob-t { font: 800 24px var(--disp); letter-spacing: -.4px; color: var(--ink); margin: 4px 0 9px; }
.ob-s { font-size: 14.5px; color: #55524B; line-height: 1.55; margin: 0 0 24px; min-height: 46px; max-width: 300px; }
.ob-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.ob-dot { width: 7px; height: 7px; border-radius: 50%; background: #D3CFC6; transition: all .3s; }
.ob-dot.on { background: var(--ink); width: 21px; border-radius: 4px; }
.ob-skip { position: absolute; top: 72px; right: 24px; font: 600 14px var(--body); color: #6E6A63; }
.ob-next { margin-bottom: 4px; }

.ob-car { offset-path: path('M-10 150 C60 120 90 60 250 40'); offset-rotate: auto; animation: obDrive 3.4s ease-in-out infinite alternate; }
@keyframes obDrive { from { offset-distance: 5%; } to { offset-distance: 86%; } }
.ob-car2 { offset-path: path('M30 140 L90 96 L140 108 L204 44'); offset-rotate: auto; animation: obDrive2 4.2s ease-in-out infinite alternate; }
@keyframes obDrive2 { from { offset-distance: 3%; } to { offset-distance: 90%; } }
.ob-pin2 { animation: pinBob2 1.9s ease-in-out infinite; }
@keyframes pinBob2 { 50% { transform: translateY(-7px); } }
.ob-card1 { animation: floaty 3.6s ease-in-out infinite; }
.ob-card2 { animation: floaty 3.6s ease-in-out infinite reverse; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

/* ================= responsive: real phone ================= */

@media (max-width: 560px), (max-height: 700px) {
  #stage { gap: 0; }
  .device { width: 100vw; height: 100dvh; padding: 0; border-radius: 0; box-shadow: none; background: #000; }
  .screen { border-radius: 0; }
  .device-island, .stage-cap, .stage-glow, .stage-dots { display: none; }
  #statusbar { padding-top: max(13px, env(safe-area-inset-top)); height: calc(40px + env(safe-area-inset-top)); }
  #homebar { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
