:root {
  --bg: #09060f;
  --bg-2: #14091c;
  --ink: #f7eef6;
  --muted: rgba(247, 238, 246, 0.62);
  --dim: rgba(247, 238, 246, 0.4);
  --rose: #ff4d8d;
  --rose-2: #ff7ab0;
  --gold: #f3c77a;
  --violet: #b56bff;
  --glass: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --nav-h: 64px;
  --dock-h: 72px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-x: max(16px, env(safe-area-inset-left, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  min-height: 100dvh;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.fx-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  min-width: 240px;
  min-height: 240px;
  left: -8%;
  top: -6%;
  background: #ff3d7f;
}

.orb-b {
  width: 38vw;
  height: 38vw;
  min-width: 220px;
  min-height: 220px;
  right: -10%;
  top: 18%;
  background: #7c3aed;
  animation-delay: -6s;
}

.orb-c {
  width: 34vw;
  height: 34vw;
  min-width: 200px;
  min-height: 200px;
  left: 30%;
  bottom: -12%;
  background: #f59e0b;
  opacity: 0.28;
  animation-delay: -11s;
}

.grain,
#spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.18), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gate,
.app,
.drawer,
.sheet,
.toast,
.burst {
  position: relative;
  z-index: 2;
}

.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
}

.gate-card {
  width: min(100%, 420px);
  padding: 36px 26px 28px;
  text-align: center;
  border: 1px solid var(--stroke);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gate-seal {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
}

.gate-seal img {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(255, 77, 141, 0.4);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.gate-card h1,
.hero-copy h1 {
  font-size: clamp(1.6rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}

.gate-copy,
.lede {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s, filter 0.18s, background 0.18s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-glow {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  color: white;
  isolation: isolate;
  background-image: linear-gradient(
    90deg,
    #ff4d8d 0%,
    #d946ef 25%,
    #8b5cf6 50%,
    #d946ef 75%,
    #ff4d8d 100%
  );
  background-size: 200% 100%;
  box-shadow: 0 12px 30px rgba(255, 77, 141, 0.35);
  animation: sheenShift 2.6s linear infinite;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: sheenSweep 2.6s ease-in-out infinite;
}

.btn-glow > * {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  margin-top: 10px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.app {
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  padding-bottom: calc(var(--dock-h) + var(--safe-b) + 12px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(var(--nav-h) + var(--safe-t));
  padding: calc(10px + var(--safe-t)) var(--safe-x) 10px;
  background: rgba(9, 6, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(255, 77, 141, 0.4);
}

.nav-brand strong,
.nav-brand small {
  display: block;
}

.nav-brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.nav-brand small,
.nav-live span:last-child,
.fine,
.foot,
.swipe-hint {
  color: var(--dim);
  font-size: 11px;
}

.nav-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: ping 1.8s infinite;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--safe-x);
  padding-right: var(--safe-x);
}

.hero {
  display: grid;
  gap: 28px;
  padding: 22px 0 8px;
}

.hero-copy,
.deck-wrap,
.browse,
.cards,
.mini,
.hero {
  min-width: 0;
  max-width: 100%;
}

.hero-copy h1,
.lede,
.card-meta p {
  overflow-wrap: break-word;
}

.hero-copy h1 {
  max-width: 16ch;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 20%, #ffc1dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 8px;
}

.stats article {
  min-width: 0;
  padding: 12px 6px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--glass);
}

.stats b {
  display: block;
  color: var(--rose-2);
  font-size: 1.15rem;
}

.stats span {
  color: var(--dim);
  font-size: 11px;
}

.hero-actions .fine {
  margin-top: 8px;
  text-align: center;
}

.deck-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.deck {
  position: relative;
  width: 100%;
  height: min(62svh, 540px);
  max-height: 72svh;
  perspective: 1400px;
  touch-action: none;
}

.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1024;
  transform-origin: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.06);
  animation: ken 14s ease-in-out infinite alternate;
}

.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(8, 4, 14, 0.92));
}

.card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 20px 20px;
}

.card-meta h2 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: -0.03em;
}

.card-meta p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tags span,
.tag-row span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 600;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge.popular {
  background: var(--gold);
  color: #3b2208;
}

.badge.new {
  background: #10b981;
}

.stamp {
  position: absolute;
  top: 24%;
  z-index: 4;
  padding: 6px 14px;
  border: 4px solid;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  opacity: 0;
  pointer-events: none;
}

.stamp.like {
  left: 18px;
  color: #4ade80;
  transform: rotate(-16deg);
}

.stamp.nope {
  right: 18px;
  color: #fb7185;
  transform: rotate(16deg);
}

.deck-actions {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.round-btn {
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: transform 0.16s, box-shadow 0.16s;
}

.round-btn:active {
  transform: scale(0.92);
}

.round-btn.nope,
.round-btn.like {
  width: 56px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.round-btn.nope {
  color: #475569;
}

.round-btn.like {
  color: var(--rose);
}

.round-btn.like.is-on {
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--violet));
}

.round-btn.view {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.swipe-hint {
  text-align: center;
  margin-top: 10px;
}

.ticker {
  margin: 26px 0 8px;
  overflow: hidden;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  color: var(--muted);
  font-size: 13px;
}

.ticker-track b {
  color: var(--gold);
  font-weight: 700;
}

.browse {
  padding: 18px 0 8px;
}

.browse-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.browse-head h2 {
  font-size: 1.25rem;
}

.browse-head p,
.text-link {
  color: var(--dim);
  font-size: 12px;
}

.text-link {
  color: var(--rose-2);
  font-weight: 700;
}

.stories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  flex: 0 0 auto;
  width: 68px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.story i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.story.is-on i,
.story:hover i {
  background: linear-gradient(135deg, var(--rose), var(--violet));
}

.story img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #09060f;
}

.story span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chip.is-on {
  color: #14091c;
  background: white;
  border-color: white;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini {
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  animation: rise 0.55s both;
}

.mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.mini::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78));
}

.mini:hover img,
.mini:focus-visible img {
  transform: scale(1.06);
}

.mini::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.mini:hover::before {
  transform: translateX(120%);
}

.mini-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px;
}

.mini-copy strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-copy small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.liked-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 6px 16px rgba(255, 77, 141, 0.45);
  font-size: 13px;
}

.perks {
  display: grid;
  gap: 10px;
  margin: 28px 0 16px;
}

.perks article {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--glass);
}

.perks span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.perks h3 {
  margin: 6px 0 4px;
}

.perks p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.foot {
  width: 100%;
  max-width: 1180px;
  margin: 8px auto 24px;
  padding: 0 var(--safe-x);
  text-align: center;
  line-height: 1.5;
}

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-b));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(16, 8, 24, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.dock-item {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
}

.dock-item.is-on,
.dock-item:hover {
  color: white;
}

.dock-item i {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
}

.drawer,
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  align-items: end;
}

.drawer-panel,
.sheet-panel {
  width: min(100%, 520px);
  margin: 0 auto;
  max-height: 92dvh;
  overflow: auto;
  border-radius: 28px 28px 0 0;
  background: #130a1c;
  box-shadow: var(--shadow);
  animation: sheetUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-panel {
  padding: 18px 16px calc(18px + var(--safe-b));
}

.drawer-panel header,
.chat-head,
.sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.icon-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
  line-height: 1;
}

.match-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.match-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.match-row div {
  flex: 1;
  min-width: 0;
}

.match-row strong,
.match-row p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row p {
  color: var(--dim);
  font-size: 12px;
}

.match-row button {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--violet));
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.empty {
  color: var(--dim);
  text-align: center;
  padding: 28px 8px;
}

.sheet-photo {
  position: relative;
  height: min(54svh, 520px);
  background: #09060f;
  overflow: hidden;
}

.photo-viewport {
  height: 100%;
  overflow: hidden;
  touch-action: pan-x;
  cursor: grab;
}

.photo-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.photo-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.sheet-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  z-index: 2;
}

.sheet-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 4, 14, 0.42);
  backdrop-filter: blur(12px);
}

.sheet-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s;
}

.sheet-dots button.is-on {
  width: 22px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.sheet-close {
  position: absolute;
  top: calc(10px + var(--safe-t));
  right: 10px;
  z-index: 5;
}

.nav-photo {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: white;
  font-size: 24px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.sheet-photo:hover .nav-photo {
  opacity: 1;
}

.nav-photo:active {
  transform: scale(0.92);
}

.nav-photo.prev {
  left: 10px;
}

.nav-photo.next {
  right: 10px;
}

@media (hover: none) {
  .nav-photo {
    display: none;
  }
}

.sheet-body {
  padding: 18px 16px calc(20px + var(--safe-b));
}

.sheet-title h2 {
  font-size: 1.45rem;
}

.sheet-title p,
#sheet-bio {
  color: var(--muted);
  line-height: 1.55;
}

#sheet-bio {
  margin: 12px 0;
  font-size: 0.95rem;
}

.online-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.sheet-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-cta .btn {
  margin: 0;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  height: min(88dvh, 720px);
  background: #f7f2f6;
  color: #1e1230;
}

.chat-head {
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid #efe4ee;
}

.chat-head img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-head div {
  flex: 1;
  min-width: 0;
}

.chat-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-size: 11px;
}

.chat-head .icon-x {
  background: #efe8f2;
  color: #475569;
}

.chat-log {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 77, 141, 0.08), transparent 28%),
    #f4eef5;
}

.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  animation: rise 0.25s ease;
}

.bubble.them {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 6px;
}

.bubble.me {
  align-self: flex-end;
  color: white;
  background: linear-gradient(135deg, var(--rose), #a855f7);
  border-bottom-right-radius: 6px;
}

.chat-hint {
  margin: auto;
  color: #94a3b8;
  font-size: 13px;
}

.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: white;
  border-radius: 16px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4b5cf;
  animation: blink 1s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(12px + var(--safe-b));
  background: white;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f1eaf3;
  outline: none;
}

.chat-form button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--violet));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + var(--safe-b) + 18px);
  z-index: 50;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 8, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  animation: rise 0.3s ease;
}

.burst {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.heart-fly {
  position: absolute;
  font-size: 18px;
  animation: fly 900ms ease-out forwards;
}

.reveal {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6%, -8%) scale(1.12);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(24px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes ken {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.12) translateY(-2%);
  }
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.15);
    transform: scale(1.04);
  }
}

@keyframes sheenShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes sheenSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

@keyframes fly {
  to {
    transform: translateY(-90px) scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 979px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 12px;
  }

  .deck-wrap {
    order: -1;
    max-width: none;
  }

  .deck {
    height: calc(100svh - var(--nav-h) - var(--dock-h) - var(--safe-t) - var(--safe-b) - 150px);
    min-height: 320px;
    max-height: 52svh;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .lede {
    font-size: 0.88rem;
  }

  .nav-live {
    padding: 6px 9px;
  }

  .nav-live span:last-child {
    display: none;
  }

  .stats span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .btn {
    min-width: 0;
  }
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .perks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app {
    padding-bottom: 40px;
  }
  .dock {
    display: none;
  }
  .drawer,
  .sheet {
    align-items: center;
    padding: 24px;
  }
  .drawer-panel,
  .sheet-panel {
    border-radius: 28px;
    max-height: 86dvh;
  }
  .chat-panel {
    height: min(78dvh, 680px);
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 440px);
    align-items: center;
    gap: 48px;
    padding: 36px 0 20px;
  }
  .hero-copy h1 {
    max-width: 14ch;
  }
  .deck-wrap {
    margin: 0;
    justify-self: end;
    width: 100%;
  }
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cursor-glow {
    opacity: 1;
  }
  .btn {
    width: auto;
    min-width: 220px;
  }
  .hero-actions .fine {
    text-align: left;
  }
  .gate-card .btn {
    width: 100%;
  }
  .sheet-cta .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .deck {
    height: min(58svh, 460px);
  }
  .mini-copy strong {
    font-size: 13px;
  }
  .round-btn.view {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .deck-card img {
    transform: none;
  }
}
