:root {
  --ground: #f1f2f6;
  --surface: #ffffff;
  --sunk: #f4f5f9;
  --line: #e2e4ec;
  --line-2: #cdd1de;

  --ink: #151826;
  --ink-2: #4b5068;
  --ink-3: #5f6580;

  --dusk: #2f2a8f;
  --dusk-2: #4038c2;
  --dusk-ink: #221d6e;
  --dusk-wash: #ecebfb;

  --ember: #ff6a3d;
  --ember-ink: #b8401b;
  --ember-wash: #fff0ea;

  --on-dusk: #f6f5ff;

  --display: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
  --body: "Hind Siliguri", "Anek Bangla", system-ui, sans-serif;

  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 24px;
  --r-pill: 999px;

  --sh-s: 0 1px 2px rgba(21, 24, 38, .06);
  --sh-m: 0 1px 2px rgba(21, 24, 38, .05), 0 16px 32px -24px rgba(21, 24, 38, .45);
  --sh-cta: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 24px -12px rgba(10, 8, 60, .55);

  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--dusk-2); outline-offset: 2px; border-radius: 6px; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--dusk);
  color: var(--on-dusk);
}
.brand-mark svg { width: 22px; height: 22px; }
.sister {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.wrap > *, .pv-body > *, .card > * { min-width: 0; }
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 16px 120px;
  display: grid;
  gap: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-l);
  padding: 30px 22px 26px;
  color: var(--on-dusk);
  text-align: center;
  background:
    radial-gradient(120% 80% at 85% 0%, #5b4ff0 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, #ff6a3d40 0%, transparent 60%),
    linear-gradient(160deg, #2f2a8f 0%, #1b1760 100%);
  box-shadow: var(--sh-m);
  isolation: isolate;
}
.hero-map {
  position: absolute;
  right: -18%;
  top: -6%;
  height: 112%;
  width: auto;
  opacity: .16;
  z-index: -1;
  pointer-events: none;
}
.hero-map path { stroke: #fff; stroke-width: .9; fill: rgba(255, 255, 255, .05); }
.hero-map path.on { fill: var(--ember); stroke: var(--ember); opacity: .9; }
.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero h1 {
  margin: 14px 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 8.4vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--ember);
}
.hero-sub {
  margin: 0 auto 20px;
  max-width: 30ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(246, 245, 255, .86);
  text-wrap: balance;
}
.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--dusk-ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: var(--sh-cta);
  transition: transform .15s var(--ease);
}
.pill-cta svg { width: 20px; height: 20px; stroke-width: 2.2; }
.pill-cta:active { transform: scale(.97); }
.steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: .9rem;
  color: rgba(246, 245, 255, .82);
}
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .35);
}
.friend {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: .98rem;
  line-height: 1.5;
  text-align: left;
}
.friend b { color: #ffd2c2; }
.friend small { display: block; margin-top: 4px; font-size: .86rem; color: rgba(246, 245, 255, .8); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 20px 18px;
  box-shadow: var(--sh-s);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -.01em;
}
.badge {
  flex: none;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--dusk-wash);
  color: var(--dusk-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.badge b { font-weight: 800; }
.rank {
  flex: none;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--ember-wash);
  color: var(--ember-ink);
  font-weight: 700;
  font-size: .9rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--r-m);
  background: var(--sunk);
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--dusk-2); background: var(--surface); }
.search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; }
.search input::placeholder { color: var(--ink-3); }

.quick { display: flex; gap: 16px; margin: 10px 2px 2px; }
.text-btn {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.div-block { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 10px; }
.div-block:first-child { border-top: 0; margin-top: 4px; }
.div-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.div-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.div-head h3 span { color: var(--ink-3); font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: .98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s, color .18s, transform .12s var(--ease);
}
.chip svg { width: 16px; height: 16px; stroke-width: 2.6; display: none; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--dusk); border-color: var(--dusk); color: var(--on-dusk); }
.chip.on svg { display: block; }
.empty { padding: 18px 0 4px; color: var(--ink-3); text-align: center; }

.themes { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.themes-label { font-size: .92rem; color: var(--ink-2); font-weight: 600; }
.swatches { display: flex; gap: 10px; }
.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 3px;
  background: none;
  cursor: pointer;
}
.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.swatch[aria-checked="true"] { border-color: var(--ink); }

.who { display: grid; gap: 10px; margin-bottom: 16px; }
.photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-height: 44px;
  padding: 4px 16px 4px 4px;
  border-radius: var(--r-pill);
  border: 1px dashed var(--line-2);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.photo-face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunk) center / cover no-repeat;
  color: var(--ink-3);
}
.photo-face svg { width: 20px; height: 20px; }
.photo-face.has svg { display: none; }
.name {
  height: 50px;
  padding: 0 16px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--sunk);
  font-size: 1rem;
  outline: none;
}
.name:focus { border-color: var(--dusk-2); background: var(--surface); }

.preview {
  --pv-bg: #f6f5ff;
  --pv-ink: #221d6e;
  --pv-soft: #5a5690;
  --pv-on: #4038c2;
  --pv-off: #ffffff;
  --pv-line: #c9c6ee;
  --pv-accent: #ff6a3d;
  --pv-foot: #221d6e;
  --pv-foot-ink: #f6f5ff;
  position: relative;
  margin: 0;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--pv-bg);
  color: var(--pv-ink);
  border: 1px solid var(--line);
  transition: background .3s var(--ease), color .3s;
}
.pv-top { padding: 16px 18px 4px; }
.pv-kicker { display: block; font-size: .8rem; font-weight: 600; color: var(--pv-soft); }
.pv-title { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.15; letter-spacing: -.01em; }
.pv-body { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 8px; padding: 0 14px 14px; }
#map { width: 100%; height: auto; display: block; touch-action: manipulation; }
#map path {
  fill: var(--pv-off);
  stroke: var(--pv-line);
  stroke-width: .9;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .22s var(--ease), stroke .22s;
}
#map path.on { fill: var(--pv-on); stroke: var(--pv-on); }
#map path.hit { stroke: var(--pv-accent); stroke-width: 2; }
#map path:focus-visible { outline: none; stroke: var(--pv-accent); stroke-width: 2.5; }
#map path.pop { animation: pop .4s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes pop { 40% { transform: scale(1.14); } }
.pv-stats { display: grid; gap: 2px; align-content: center; }
.pv-face { width: 56px; height: 56px; border-radius: 50%; background: center / cover no-repeat; border: 3px solid var(--pv-off); box-shadow: 0 0 0 2px var(--pv-on); margin-bottom: 6px; }
.pv-name { font-weight: 700; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.pv-num { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.pv-num b { font-family: var(--display); font-weight: 800; font-size: 2.9rem; line-height: 1; color: var(--pv-on); }
.pv-num span { white-space: nowrap; font-size: .9rem; font-weight: 600; color: var(--pv-soft); }
.pv-rank {
  justify-self: start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--pv-accent);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.35;
  max-width: 100%;
}
.pv-foot {
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: var(--pv-foot);
  color: var(--pv-foot-ink);
  font-size: .82rem;
  font-weight: 600;
}
.pv-site { min-width: 0; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek {
  position: absolute;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--sh-m);
}
.peek b { color: #ffc4b1; font-weight: 600; }
.tip { margin: 10px 2px 0; font-size: .88rem; color: var(--ink-3); }

.gaps {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--ember-wash);
  border: 1px solid #ffd3c4;
}
.gaps p { margin: 0 0 12px; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.gaps b { color: var(--ember-ink); }

.sub-h { margin: 22px 0 10px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .primary { grid-column: 1 / -1; }
.primary, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--r-m);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .12s var(--ease), background .2s;
}
.primary { border: 0; background: var(--ink); color: #fff; }
.primary:active { transform: scale(.98); background: #000; }
.ghost { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.ghost:active { transform: scale(.98); background: var(--sunk); }
.gaps .ghost { width: 100%; border-color: #ffb9a2; color: var(--ember-ink); background: #fff; }
.primary svg, .ghost svg { width: 20px; height: 20px; }
.primary:disabled, .ghost:disabled { opacity: .45; cursor: not-allowed; }
.longpress { display: block; width: 100%; margin-top: 14px; border-radius: var(--r-m); border: 1px solid var(--line); }

.ad {
  margin-top: 18px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}
.ad::before { content: "বিজ্ঞাপন"; font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; }
.ad iframe { border: 0; display: block; max-width: 100%; }
.house { display: grid; gap: 2px; text-align: center; text-decoration: none; padding: 6px 0; }
.house b { font-family: var(--display); font-weight: 800; }
.house span { font-size: .88rem; color: var(--ink-2); }
.house i { font-style: normal; font-weight: 700; color: var(--dusk-2); font-size: .9rem; }

.foot { padding: 8px 4px 0; font-size: .88rem; color: var(--ink-3); text-align: center; }
.foot p { margin: 6px 0; }
.foot a { color: var(--dusk-2); font-weight: 600; }
.foot .credit { font-size: .76rem; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.dock-in {
  pointer-events: auto;
  max-width: 528px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(21, 24, 38, .6);
  animation: rise .35s var(--ease);
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.dock-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.dock-count b { font-family: var(--display); font-size: 1.25rem; font-weight: 800; color: #ffc4b1; }
.dock-btn {
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: .92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  .wrap, .top { max-width: 600px; }
  .hero { padding: 42px 36px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
