:root {
  --bg: #0d0b12;
  --panel: #17141f;
  --line: #2a2533;
  --ink: #f4f1f8;
  --mute: #9d95ab;
  --accent: #ff5a7a;
  --accent-2: #ffb347;
  --ok: #3ddc97;
  --danger: #ff4d4d;
  --r: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 "Bricolage Grotesque", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; cursor: pointer; }
button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.screen { position: fixed; inset: 0; display: none; }
.screen.on { display: flex; }

/* ---------- start ---------- */

.start { width: 100%; max-width: 420px; padding: max(28px, env(safe-area-inset-top)) 20px 40px; }
.brand { font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
h1 { font-size: clamp(40px, 11vw, 56px); line-height: .98; letter-spacing: -.035em; margin: 40px 0 12px; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--mute); margin: 0 0 14px; }
.online { margin: 0 0 26px; font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.online[hidden] { display: none; }
.online b { color: var(--ink); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
#name {
  width: 100%; padding: 15px 16px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 17px; outline: none;
}
#name:focus { border-color: var(--accent); }
.sex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sex input { position: absolute; opacity: 0; pointer-events: none; }
.sex span {
  display: block; text-align: center; padding: 15px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--panel); font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sex input:checked + span { border-color: var(--accent); background: rgba(255, 90, 122, .12); }
.sex input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }


.err { color: var(--danger); min-height: 1.4em; font-size: 14px; margin: 8px 0; }
.err.ok { color: #7ee2a8; }
.fine { color: var(--mute); font-size: 13px; text-align: center; margin: 14px 0 0; }
.fine b { color: var(--ink); font-weight: 600; }

.btn { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 600; color: var(--ink); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff7a59); color: #fff; box-shadow: 0 8px 24px -8px rgba(255, 90, 122, .7); }
.btn.big { width: 100%; padding: 17px; font-size: 18px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- search ---------- */
#s-search { align-items: center; justify-content: center; }
#self-big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); filter: brightness(.35) saturate(.8); }
.search-card { position: relative; text-align: center; padding: 0 24px; }
.search-card h2 { margin: 24px 0 4px; font-size: 26px; letter-spacing: -.02em; }
.search-card p { color: var(--mute); margin: 0 0 22px; }
.radar { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.radar i { position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; animation: ring 2.4s infinite; }
.radar i:nth-child(2) { animation-delay: .8s; }
.radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* ---------- call ---------- */
#s-call { background: #000; }
#remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .6s; }
#remote.blur { filter: blur(28px) brightness(.8); }
.tap-reveal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .55); padding: 10px 16px; border-radius: 999px; font-size: 14px; display: none; cursor: pointer;
}
#s-call.revealable .tap-reveal { display: block; }
#self {
  position: absolute; right: 14px; top: calc(70px + env(safe-area-inset-top)); width: 104px; aspect-ratio: 3/4;
  object-fit: cover; border-radius: 14px; transform: scaleX(-1); border: 2px solid rgba(255, 255, 255, .25); background: #222;
}
.call-top {
  position: absolute; inset: 0 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px 30px;
  display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(rgba(0, 0, 0, .6), transparent);
}
.who b { display: block; font-size: 20px; letter-spacing: -.01em; }
.who span { font-size: 13px; color: #ddd; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.timer.low { background: var(--accent); color: #fff; }
.connecting { position: absolute; left: 50%; top: 45%; transform: translateX(-50%); color: #ddd; }
.call-bar {
  position: absolute; inset: auto 0 0; padding: 30px 16px calc(18px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; align-items: center; gap: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.round.off { background: #fff; color: #111; }
.round.warn { color: #ffb4b4; }
.btn.next { background: #fff; color: #111; padding: 15px 26px; font-size: 17px; }
.btn.next svg { width: 18px; height: 18px; }

.pay, .hold {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(108px + env(safe-area-inset-bottom));
  width: min(92vw, 380px); background: rgba(23, 20, 31, .92); border: 1px solid var(--line); border-radius: 20px;
  padding: 14px 16px; text-align: center; backdrop-filter: blur(10px); animation: up .3s ease-out;
}
.pay p, .hold p { margin: 0 0 10px; font-size: 15px; }
.pay .btn { width: 100%; }
.hold p { margin: 8px 0 0; }
.spinner { width: 26px; height: 26px; margin: 0 auto; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ---------- end ---------- */
#s-end { align-items: center; justify-content: center; padding: 20px; }
.end-card { width: 100%; max-width: 380px; text-align: center; display: grid; gap: 12px; }
.end-card h2 { font-size: 34px; margin: 0; letter-spacing: -.03em; }
.end-card p { color: var(--mute); margin: 0 0 14px; }

.toast {
  position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -150%);
  background: var(--panel); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px;
  font-size: 14px; transition: transform .3s; z-index: 10; max-width: 92vw; text-align: center;
}
.toast.on { transform: translate(-50%, 0); }

dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-width: 340px; }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h3 { margin: 0 0 6px; }
dialog p { color: var(--mute); margin: 0 0 18px; font-size: 14px; }
dialog .row { display: flex; gap: 10px; justify-content: flex-end; }

.paysheet { width: min(92vw, 380px); }
.paysheet .net { margin-bottom: 12px; }
.paysheet .net b { color: var(--accent-2); }
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 164px; height: 164px; margin: 0 auto 4px; }
.qr img, .qr canvas { width: 144px !important; height: 144px !important; }
.copy { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 12px 14px; }
.copy small { color: var(--accent); font-weight: 600; flex: none; }
.copy.amt b { font-size: 22px; font-variant-numeric: tabular-nums; }
.copy.amt { justify-content: flex-start; }
.copy.amt small { margin-left: auto; }
.copy code { font-size: 12.5px; word-break: break-all; }
.paysheet .lbl { margin: 14px 0 6px; }
.paysheet .warn { color: var(--accent-2); font-size: 13px; margin: 6px 0 0; }
.paysheet .waiting { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 16px 0 4px; color: var(--mute); }
.paysheet .waiting .spinner { width: 18px; height: 18px; border-width: 2px; margin: 0; flex: none; }
.paysheet .fine2 { font-size: 12.5px; margin: 6px 0 14px; }

/* ---------- fun: start screen ---------- */
.lbl small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.chips input:checked + span { border-color: var(--accent); background: rgba(255, 90, 122, .14); }
.chips input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.chips input:disabled:not(:checked) + span { opacity: .4; cursor: default; }
.toggle { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: 15px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.toggle small { color: var(--mute); }
#busy:not(:empty)::before { content: "·"; margin: 0 8px; }
.bonds { margin: 0 0 8px; }
.bond { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; margin-bottom: 8px; }
.bond b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bond small { color: var(--mute); font-size: 12px; display: block; font-weight: 400; }
.bond .btn { padding: 8px 14px; font-size: 14px; }
.bond .x { background: none; border: 0; color: var(--mute); font-size: 18px; padding: 4px; }

/* ---------- fun: search ---------- */
.nearby { color: var(--ink) !important; font-weight: 600; min-height: 1.4em; }
.btn.boost { background: linear-gradient(135deg, #ffb347, #ff7a59); color: #1a1020; margin-bottom: 12px; display: inline-flex; }
.btn.boost[hidden] { display: none; }
.boosted { color: var(--accent-2) !important; font-weight: 600; }

/* ---------- fun: call ---------- */
.who .shared { display: block; font-size: 12.5px; color: var(--accent-2); margin-top: 2px; }
.prompt {
  position: absolute; left: 14px; right: 132px; max-width: 420px; top: calc(84px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 8px;
  background: rgba(13, 11, 18, .72); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 10px 10px 10px 14px; font-size: 15px; font-weight: 600; line-height: 1.3;
}
.prompt span { flex: 1; }
.prompt.pop { animation: pop .35s ease-out; }
.prompt button { flex: none; background: rgba(255, 255, 255, .12); border: 0; border-radius: 10px; width: 36px; height: 36px; font-size: 18px; }
@keyframes pop { 0% { transform: scale(.92); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }

.rail {
  position: absolute; right: 12px; bottom: calc(222px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
}
.rail button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; font-size: 22px;
  background: rgba(0, 0, 0, .42); backdrop-filter: blur(8px); transition: transform .12s;
}
.rail button:active { transform: scale(.9); }
.rail button[hidden] { display: none; }
#like.on { background: rgba(255, 200, 60, .35); box-shadow: 0 0 0 2px #ffd166 inset; }
.tray, .menu {
  position: absolute; right: 68px; bottom: calc(280px + env(safe-area-inset-bottom));
  background: rgba(23, 20, 31, .94); border: 1px solid var(--line); border-radius: 16px; padding: 6px;
  backdrop-filter: blur(10px); animation: fadein .15s;
}
.tray { display: flex; gap: 2px; }
.tray button { background: none; border: 0; font-size: 28px; width: 46px; height: 46px; border-radius: 12px; }
.tray button:active { background: rgba(255, 255, 255, .1); }
.menu { display: grid; gap: 4px; min-width: 210px; bottom: calc(240px + env(safe-area-inset-bottom)); }
.menu button { text-align: left; background: none; border: 0; color: var(--ink); padding: 11px 12px; border-radius: 10px; font-weight: 600; }
.menu button:hover, .menu button:active { background: rgba(255, 255, 255, .08); }
.tray[hidden], .menu[hidden], .game[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

.floats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floats span { position: absolute; bottom: 120px; font-size: 44px; animation: floatup 2.6s ease-out forwards; }
@keyframes floatup {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: 1; transform: translateY(-30px) scale(1.15); }
  100% { transform: translateY(-62vh) scale(1); opacity: 0; }
}
.burst { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: 120px; pointer-events: none; animation: burst 1.4s ease-out forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 30% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1); opacity: 0; } }

.game {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(88vw, 360px);
  background: rgba(23, 20, 31, .95); border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-align: center;
  backdrop-filter: blur(12px); animation: fadein .2s;
}
.game h4 { margin: 0 0 4px; font-size: 18px; }
.game p { margin: 0 0 14px; color: var(--mute); font-size: 14px; }
.game .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.game .opts button { background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 14px; padding: 14px 8px; font-size: 15px; font-weight: 600; }
.game .opts.rps button { font-size: 34px; padding: 10px; }
.game .opts button.picked { border-color: var(--accent); background: rgba(255, 90, 122, .14); }
.game .opts button:disabled:not(.picked) { opacity: .45; }
.game .big { font-size: 44px; margin: 4px 0; }
.mask-badge { position: absolute; right: 14px; top: calc(214px + env(safe-area-inset-top)); width: 104px; text-align: center; font-size: 11px; background: rgba(0, 0, 0, .55); border-radius: 8px; padding: 3px 0; }

dialog.ring { text-align: center; }
.ring-heart { font-size: 56px; animation: beat 1s infinite; }
@keyframes beat { 50% { transform: scale(1.15); } }
dialog.ring .row { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .floats span, .burst, .ring-heart, .prompt.pop { animation-duration: .01s; } }

/* ---------- money ---------- */
.wallet { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 14px; }
.wallet span { font-size: 13px; padding: 6px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.wallet .plus { border-color: #ffd166; color: #ffd166; }



.links { display: grid; gap: 4px; margin-top: 14px; justify-items: center; }
.link { background: none; border: 0; color: var(--accent-2); font: inherit; font-size: 14px; padding: 6px; cursor: pointer; }
.btn.plus { background: linear-gradient(135deg, #ffd166, #ffb347); color: #1a1020; }
.pay-opts { display: grid; gap: 8px; }
.pay .link { margin-top: 4px; }
dialog.shop { width: min(94vw, 420px); max-height: 88vh; overflow-y: auto; padding: 18px; }
.shop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.shop-head h3 { margin: 0; }
.x { background: none; border: 0; color: var(--mute); font-size: 24px; cursor: pointer; padding: 2px 6px; }
.shop h4 { margin: 16px 0 8px; font-size: 13px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.prod { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 8px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.prod:hover { border-color: var(--accent); }
.prod .e { font-size: 22px; }
.prod .l { flex: 1; font-weight: 600; }
.prod .l small { display: block; color: var(--mute); font-weight: 400; font-size: 12.5px; }
.prod .p { font-weight: 800; white-space: nowrap; }
.prod.best { border-color: #ffd166; }
.shop-off { color: var(--accent-2) !important; }
.filters { margin-top: 10px; }
.filters .toggle { margin-top: 8px; font-size: 14px; }
.like-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: var(--bg); }
.like-row b { flex: 1; }
.like-row small { color: var(--mute); display: block; font-weight: 400; font-size: 12px; }
.like-row.locked b { filter: blur(6px); user-select: none; }
.like-row .btn { padding: 8px 14px; font-size: 14px; }
.who .plus-badge { color: #ffd166; font-size: 14px; margin-left: 6px; }
.timer.inf { background: linear-gradient(135deg, #ffd166, #ffb347); color: #1a1020; }
.share-chip {
  position: absolute; left: 50%; top: 32%; transform: translateX(-50%); border: 0; border-radius: 999px;
  padding: 11px 18px; font: inherit; font-weight: 700; background: #fff; color: #111; animation: fadein .2s; cursor: pointer;
}
.share-chip[hidden] { display: none; }
#gift-menu { bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ---------- presence + busy hours ---------- */


.busy-chart { margin-top: 22px; padding: 14px 14px 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: left; }
.busy-chart .cap { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.busy-chart .cap b { color: var(--ink); font-weight: 600; }
.busy-chart .bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 56px; }
.busy-chart .bars i { display: block; border-radius: 3px 3px 1px 1px; background: rgba(255, 90, 122, .35); min-height: 3px; }
.busy-chart .bars i.peak { background: linear-gradient(var(--accent-2), var(--accent)); }
.busy-chart .bars i.now { outline: 2px solid #fff; outline-offset: 1px; }
.busy-chart .ticks { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11px; color: var(--mute); margin-top: 6px; }

/* ---------- auth ---------- */
#s-auth { overflow-y: auto; justify-content: center; align-items: flex-start;
  background: radial-gradient(60% 50% at 85% 0%, rgba(255, 90, 122, .22), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 179, 71, .14), transparent 70%), var(--bg); }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 6px 0 4px; }
.tabs2 button { border: 0; background: none; color: var(--mute); font: inherit; font-weight: 600; padding: 10px; border-radius: 999px; cursor: pointer; }
.tabs2 button.on { background: var(--accent); color: #fff; }
#s-auth input:not([type=checkbox]):not([type=radio]), .drawer input:not([type=checkbox]) {
  width: 100%; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; outline: none; }
#s-auth input:focus, .drawer input:not([type=checkbox]):focus { border-color: var(--accent); }
.pw { position: relative; }
.pw input { padding-right: 48px !important; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 18px; padding: 8px; cursor: pointer; opacity: .7; }
.fine.left { text-align: left; }
.reset-h { margin: 8px 0 4px; font-size: 24px; }
#f-in .link, #f-forgot .link { display: block; margin: 10px auto 0; }

/* ---------- home: map + driver-app layout ---------- */
#s-home { background: #0b0a10; }
#map { position: absolute; inset: 0; background: #0b0a10; }








.status-pill { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(13, 11, 18, .92);
  font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.status-pill.off .live { background: #777; box-shadow: none; animation: none; }




.sheet { position: absolute; z-index: 600; left: 0; right: 0; bottom: 0; max-height: 62vh; overflow-y: auto;
  background: rgba(13, 11, 18, .97); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .4); }
@media (min-width: 720px) { .sheet { left: 50%; right: auto; width: 460px; transform: translateX(-50%); } }

.near-line { margin: 0 0 12px; font-weight: 600; font-size: 15px; }
.near-line small { display: block; color: var(--mute); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.timeup { display: grid; gap: 8px; padding: 12px; border-radius: 14px; margin-bottom: 12px;
  background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .4); font-size: 14px; }


.sheet .toggle { margin: 6px 0 4px; }
.sheet .btn.big { margin-top: 6px; }


/* ---------- drawer ---------- */
dialog.drawer h4 { margin: 18px 0 8px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.stack { display: grid; gap: 8px; }
.btn.wide { width: 100%; margin-top: 18px; }
.drawer .busy-chart { margin-top: 0; }
#s-end .end-card .btn { width: 100%; }

.osm-dark { filter: invert(1) hue-rotate(185deg) brightness(.82) contrast(.92) saturate(.55); }

/* ---------- home, Snap Map style ---------- */
:root { --snap-yellow: #fffc00; }
#s-home { background: #1b1f2c; }
.osm-dark { filter: invert(1) hue-rotate(195deg) brightness(.78) contrast(1.05) saturate(.4); }
.snap-top { position: absolute; z-index: 500; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(12px + env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.snap-top > * { pointer-events: auto; }
.me-btn { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; padding: 0; overflow: hidden; background: #ffd6e0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); cursor: pointer; }
.me-btn img { width: 100%; height: 100%; display: block; }
.city { text-align: right; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.city b { display: block; font-size: 30px; line-height: 1; letter-spacing: -.02em; font-weight: 800; }
.city > span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.city.off .live { background: #777; box-shadow: none; animation: none; }






.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(18, 18, 24, .92); color: #fff; font-size: 21px;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); cursor: pointer; }
.round-btn.on { background: #fff; }
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.dock { position: absolute; z-index: 600; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); padding: 0 14px 10px;
  display: grid; gap: 10px; pointer-events: none; }
.dock > * { pointer-events: auto; }
@media (min-width: 720px) { .dock { left: 50%; right: auto; width: 480px; transform: translateX(-50%); } }
.dock .err:empty { display: none; }
.dock .err { background: rgba(18, 18, 24, .92); padding: 8px 12px; border-radius: 12px; margin: 0; }
.yellow-pill { width: 100%; border: 0; border-radius: 999px; background: var(--snap-yellow); color: #111; font: inherit; font-weight: 800;
  font-size: 17px; padding: 15px 20px; text-align: left; display: flex; align-items: center; gap: 8px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.yellow-pill .bolt { font-size: 19px; }
.yellow-pill:disabled { opacity: .7; }


#bond-list { display: flex; gap: 10px; }











.timeup { background: rgba(18, 18, 24, .94); border: 1px solid rgba(255, 209, 102, .5); }

/* map markers */
.me-marker { display: grid; justify-items: center; }
.me-marker img { width: 64px; height: 64px; border-radius: 50%; background: #ffd6e0; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.me-marker span { margin-top: -6px; background: rgba(20, 20, 26, .92); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 8px; }
.zone-marker { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.zone-marker .stack { display: flex; }
.zone-marker .stack img { width: 40px; height: 40px; border-radius: 50%; background: #ffe6ec; border: 2px solid #fff; margin-left: -14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.zone-marker .stack img:first-child { margin-left: 0; }
.zone-marker b { display: block; color: #fff; font-size: 16px; font-weight: 800; text-shadow: 0 2px 6px #000, 0 0 2px #000; }
.zone-marker small { display: block; color: #ffb3c7; font-size: 13px; font-weight: 700; text-shadow: 0 2px 6px #000, 0 0 2px #000; }

/* profile drawer + call */
.profile-av { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.profile-av img { width: 92px; height: 92px; border-radius: 50%; background: #ffd6e0; border: 3px solid #fff; }
.pa-btns { display: grid; gap: 8px; }
.peer-av { width: 44px; height: 44px; border-radius: 50%; background: #ffd6e0; border: 2px solid #fff; margin-right: 10px; flex: none; }
.call-top { justify-content: flex-start; }
.call-top .timer { margin-left: auto; }
.ring-av { width: 96px; height: 96px; border-radius: 50%; background: #ffd6e0; border: 3px solid #fff; display: block; margin: 0 auto 6px; }
.like-row img { width: 40px; height: 40px; border-radius: 50%; background: #ffd6e0; }

/* ---------- simple home ---------- */
.top-pill { display: flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px; background: rgba(18, 18, 24, .9);
  font-size: 14.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); margin-top: 8px; }
.top-pill .sep { color: var(--mute); }
.top-pill.off .live { background: #777; box-shadow: none; animation: none; }
.me-btn { position: relative; }
.me-btn .badge { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ff3b5c; border: 2px solid #fff; }
.round-btn.locate { position: absolute; z-index: 500; right: 14px; bottom: calc(var(--sheet-h, 90px) + 24px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
.dock { bottom: calc(14px + env(safe-area-inset-bottom)); }
.yellow-pill { justify-content: center; font-size: 18px; padding: 17px 20px; }
.loc-card { position: absolute; z-index: 550; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(88vw, 340px);
  background: rgba(18, 18, 24, .95); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px;
  text-align: center; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.menu-list { display: grid; gap: 8px; margin: 4px 0 14px; }
.menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.menu-list button span { font-size: 20px; }
.menu-list button b { flex: 1; font-weight: 600; }
.menu-list button em { font-style: normal; color: var(--mute); font-size: 13px; }

.zone-marker { flex-direction: column; gap: 2px; text-align: center; }
.zone-marker b { font-size: 15px; }
.zone-marker small { font-size: 12.5px; }

/* ---------- bottom row: heart · Meet up · you ---------- */
.dock-row { display: flex; align-items: center; gap: 10px; }
.dock-row .yellow-pill { flex: 1; min-width: 0; padding: 16px 14px; font-size: 17px; }
.dock-row #near-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-btn.heart { position: relative; width: 56px; height: 56px; flex: none; font-size: 24px; }
.round-btn .badge, .me-btn .badge { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ff3b5c; border: 2px solid #fff; }
.me-btn.small { width: 56px; height: 56px; flex: none; border-width: 2px; }
.top-pill { font-size: 13.5px; padding: 8px 13px; margin: 0 0 0 auto; }
.top-pill #city { font-weight: 600; }
#likes-dlg h4 { margin: 14px 0 8px; }
#likes-dlg .bond { margin-bottom: 8px; }
#likes-dlg .bond img { width: 40px; height: 40px; border-radius: 50%; background: #ffd6e0; flex: none; }
#likes-dlg #bond-list { display: grid; gap: 8px; }
#likes-dlg .bond { min-width: 0; margin: 0; }

.snap-top { align-items: center; }
.snap-top .me-btn.small { width: 48px; height: 48px; }

/* ---------- after-call card, 18+, verify, look editor ---------- */
dialog.after { text-align: center; }
.after-av { width: 96px; height: 96px; border-radius: 50%; background: #ffd6e0; border: 3px solid #fff; display: block; margin: 0 auto 8px; }
.after-recap { color: var(--mute); margin: 0 0 4px; }
dialog.after h3 { margin: 8px 0 10px; font-size: 24px; }
.after-yn { display: flex; gap: 14px; justify-content: center; }
.big2 { width: 86px; height: 64px; font-size: 28px; border-radius: 20px; }
.after-yn .btn.on { outline: 3px solid #fff; }
dialog.after h4 { margin: 16px 0 8px; text-align: left; }
dialog.after h4 small { color: var(--mute); font-weight: 400; }
dialog.after .chips { justify-content: center; }
.after-foot { display: flex; justify-content: space-between; margin-top: 12px; }
dialog .row { display: flex; gap: 10px; justify-content: flex-end; }
.pre-q { margin: 6px 0 16px; background: rgba(13, 11, 18, .7); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.pre-q p { margin: 0 0 8px !important; color: var(--ink) !important; font-weight: 600; }
.pre-opts { display: grid; gap: 8px; }
.pre-opts button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 11px; font: inherit; cursor: pointer; }
.pre-opts button.on { border-color: var(--accent); background: rgba(255, 90, 122, .16); }
.pre-q small { display: block; color: var(--mute); margin-top: 6px; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 16px; }
.topics button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.topics button.on { border-color: var(--accent); background: rgba(255, 90, 122, .16); }
.peer-badges { display: block; font-size: 12px; color: #ffd166; margin-top: 2px; }
.vibes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.vibes span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.verify-row { margin: 0 0 12px; }
.verify-row .btn { width: 100%; }
.verify-row .state { display: block; padding: 11px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; }
#verify-cam { width: 100%; border-radius: 16px; background: #000; transform: scaleX(-1); aspect-ratio: 3/4; object-fit: cover; margin: 6px 0; }
.look-preview { width: 120px; height: 120px; border-radius: 50%; background: #ffd6e0; border: 3px solid #fff; display: block; margin: 4px auto 12px; }
.look-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.look-tabs button { flex: none; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.look-tabs button.on { background: #fff; color: #111; }
.look-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 14px; max-height: 240px; overflow-y: auto; }
.look-opts button { position: relative; aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--line); background: #ffd6e0; padding: 0; cursor: pointer; overflow: hidden; }
.look-opts button.on { border-color: var(--accent); }
.look-opts button img { width: 100%; height: 100%; }
.look-opts button.swatch { background: var(--c); }
.look-opts button .lock { position: absolute; right: 3px; top: 1px; font-size: 13px; }
.who b .tick { font-size: 15px; margin-left: 4px; }

.after-real { margin: 14px 0 0; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.after-real p { margin: 0 0 8px !important; color: var(--ink) !important; font-weight: 600; }
.after-real small { color: var(--mute); }
.row.center { justify-content: center; }
.after-real .btn.on, .after-yn .btn.on { outline: 3px solid #fff; }

/* ---------- Hot Hour + notifications ---------- */
.hot-pill { position: absolute; z-index: 500; left: 50%; transform: translateX(-50%); top: calc(74px + env(safe-area-inset-top));
  border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  background: rgba(18, 18, 24, .92); color: #ffb347; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); white-space: nowrap; }
.hot-pill.live { background: linear-gradient(135deg, #ff5a7a, #ffb347); color: #1a1020; animation: hotpulse 2s infinite; }
@keyframes hotpulse { 50% { box-shadow: 0 0 0 8px rgba(255, 90, 122, .15); } }
.busy-chip { justify-self: center; border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 13.5px; font-weight: 600;
  background: rgba(18, 18, 24, .92); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); cursor: pointer; }

/* ---------- QA fixes ---------- */
#s-search { overflow-y: auto; justify-content: flex-start; padding: calc(40px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom)); }
#s-search .search-card { margin: auto 0; }
.rail.pending button { opacity: .45; }
.tap-reveal { border: 0; color: #fff; font: inherit; }
.hot-pill { max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.x { min-width: 44px; min-height: 44px; }
.hold .btn { margin-top: 10px; }
@media (max-height: 520px) and (orientation: landscape) {
  .rail { bottom: auto; top: 64px; flex-direction: row; right: 12px; }
  .rail button { width: 40px; height: 40px; font-size: 18px; }
  .prompt { top: 64px; right: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .radar i, .live, .hot-pill.live, .toast { animation: none !important; transition: none !important; }
}

/* Leaflet builds these itself */
.leaflet-container { font-family: inherit; background: #0b0a10; }
.leaflet-control-attribution { background: rgba(13, 11, 18, .7) !important; color: #8a8298 !important; font-size: 10px; }
.leaflet-control-attribution a { color: #b8b0c6 !important; }

/* ---------- legal + support ---------- */
.legal-links { margin-top: 18px; }
.legal-links a, .menu-foot a { color: var(--mute); }
.link.inline { padding: 0; font-size: inherit; color: var(--mute); text-decoration: underline; }
.menu-foot { margin-top: 16px; text-align: center; font-size: 13px; color: var(--mute); line-height: 2; }
.danger-link { color: #ff8080 !important; }
#support-dlg select, #support-dlg textarea, #support-dlg input, #delete-dlg input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
#support-dlg textarea { resize: vertical; }
#s-auth #fg-contact { margin-bottom: 4px; }
