/* NearMatch home page (NEAR-165). A live 3D city sits behind the page (/home.js, three.js); the copy
   flows over it in a column. No cards: type, hairlines and space. Line height never under 1.1.
   The FAQ, legal and help pages use /site.css.
   Type (2026-11-30, owner's pick out of three directions): Bricolage Grotesque everywhere, a warm
   grotesk with optical sizes (wider and quirkier when big, calm when small). Inter stays only for
   the demo phone, which shows the real app; JetBrains Mono stays for the clock and the code. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-4.001-var.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #060610;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.52);
  --hair: rgba(255, 255, 255, 0.12);
  --rose: #ff3d5f;
  --live: #34d399;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --app: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --col: 36rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-optical-sizing: auto;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

/* -------------------------------------------------------------- the stage */

/* The night sky behind the city: the brand's aurora, rose from the top left, violet from below. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 60% at 12% 4%, rgba(255, 61, 95, 0.2), transparent 70%),
    radial-gradient(70% 70% at 92% 96%, rgba(109, 40, 217, 0.32), transparent 72%),
    radial-gradient(60% 50% at 70% 40%, rgba(176, 90, 232, 0.08), transparent 70%),
    var(--night);
}
.nm-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.has-scene .nm-scene { opacity: 1; }
/* Shade only where the copy sits: the left on wide screens, the bottom on phones. */
.nm-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 6, 16, 0.86) 0%, rgba(6, 6, 16, 0.62) 30%, rgba(6, 6, 16, 0.12) 52%, transparent 62%);
}

/* -------------------------------------------------------------------- nav */

.nm-skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
}
.nm-skip:focus { left: 0.75rem; }

.nm-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
  padding-inline: var(--pad);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.nm-nav.is-solid {
  background: rgba(6, 6, 16, 0.72);
  border-bottom-color: var(--hair);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.nm-logo img { width: 9.4rem; height: auto; }
.nm-nav__end { display: flex; align-items: center; gap: 1.25rem; }
.nm-langs { display: flex; gap: 0.15rem; }
.nm-langs a {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.nm-langs a[aria-current] { color: var(--ink); }

.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms var(--ease), background-color 160ms var(--ease);
}
.nm-btn:active { transform: scale(0.97); }
.nm-btn--nav { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.875rem; }

/* --------------------------------------------------------------- sections */

.nm-sec {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem var(--pad);
}
.nm-step { min-height: 88vh; min-height: 88svh; }
.nm-copy { width: 100%; max-width: var(--col); }
.nm-copy > * { margin: 0; }
.nm-copy > * + * { margin-top: 1.25rem; }

.nm-title {
  font-size: clamp(3.2rem, 1.5rem + 5.6vw, 7rem);
  font-weight: 640;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.nm-title > span { display: block; }
.nm-title > span:nth-child(2) { color: #ffb3c1; }
.nm-hero .nm-copy { max-width: 46rem; }
.nm-lead {
  max-width: 30rem;
  font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.nm-h2 {
  font-size: clamp(2.2rem, 1.3rem + 2.9vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.nm-p { max-width: 31rem; color: var(--ink-2); text-wrap: pretty; }
.nm-p--wide { max-width: 36rem; }

.nm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--live);
}
.nm-pip { position: relative; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--live); }
.nm-pip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--live);
  animation: nm-ping 1.8s var(--ease) infinite;
}
@keyframes nm-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }

/* The match clock and the code: the two live things, so the only rose and mono on the page. */
.nm-clock { display: flex; align-items: baseline; gap: 0.9rem; }
.nm-clock__t {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(3.4rem, 2rem + 4.6vw, 6.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--rose);
}
.nm-clock__c { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.nm-code { display: flex; gap: clamp(0.9rem, 2vw, 1.6rem); }
.nm-code span {
  min-width: 0.9em;
  padding-bottom: 0.08em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.24);
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(3rem, 1.8rem + 4vw, 5.6rem);
  line-height: 1.1;
  text-align: center;
  color: transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.nm-code span.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.nm-met { color: var(--ink-2); opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.nm-met strong { color: var(--ink); font-weight: 700; }
.is-met .nm-met { opacity: 1; transform: none; }
/* The reveal above must not show it early: it waits for the code to land. */
.js .nm-sec.nm-step--code:not(.is-met) .nm-copy > .nm-met { opacity: 0; transform: translateY(10px); }
.is-met .nm-code span { border-bottom-color: var(--live); }

.nm-safety { align-items: flex-start; padding-top: 10rem; padding-bottom: 6rem; }
/* Private mode, coming soon: the one safety promise set apart, because it is not in the app yet. */
.nm-private { margin-top: 2.75rem !important; padding: 1.75rem 0 0.25rem; border-top: 1px solid var(--hair); }
.nm-private > * + * { margin-top: 0.75rem; }
.nm-private__tag { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.9375rem; font-weight: 600; color: #d4b8ff; }
.nm-private__tag svg { width: 1.2rem; height: 1.2rem; }
.nm-private__h { margin: 0; max-width: 22ch; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 650; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.nm-safety .nm-copy { max-width: 46rem; }
.nm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}
.nm-facts li { padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--hair); }
.nm-facts h3 { margin: 0 0 0.4rem; font-size: 1.2rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; }
.nm-facts p { margin: 0; font-size: 0.975rem; color: var(--ink-2); text-wrap: pretty; }

.nm-soon { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.nm-stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.nm-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.4rem 0 1.15rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nm-store + .nm-store { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.nm-store svg { width: 1.25rem; height: 1.25rem; }
.nm-get { margin-top: 2.25rem !important; }
/* Apple's official badge, never redrawn or recoloured (App Store marketing guidelines: at least
   40 px tall on screen, clear space around it). */
.nm-appstore { display: inline-block; border-radius: 10px; transition: transform 0.2s ease; }
.nm-appstore img { display: block; height: 3.25rem; width: auto; }
.nm-appstore:hover { transform: translateY(-1px); }
.nm-appstore:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.nm-get .nm-appstore + .nm-soon { margin-top: 1rem; }

.nm-close { flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 2rem; }
.nm-close .nm-copy { margin-block: auto; max-width: 44rem; }
.nm-title--close { font-size: clamp(3.6rem, 1.6rem + 6.6vw, 8rem); }
.nm-faq { color: var(--ink-2); }
.nm-faq a { color: var(--ink); }

.nm-foot { width: 100%; }
.nm-foot .site-footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); font-size: 0.8125rem; color: var(--ink-3); }
.nm-foot .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.nm-foot .footer-brand,
.nm-foot .lang-footer { display: none; }
.nm-foot .links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.nm-foot .links a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--ink-2); text-decoration: none; }
.nm-foot .copyright { margin: 0; }

/* ----------------------------------------------------------------- motion */

/* The first screen arrives once the opening lines have played (home.js adds .hero-go); every
   other block rises in once, as it enters. Without script the opening plays in CSS alone and the
   first screen follows it. */
@media (prefers-reduced-motion: no-preference) {
  .nm-hero .nm-title > span,
  .nm-hero .nm-lead,
  .nm-hero .nm-get,
  .nm-nav { animation: nm-rise 1s var(--ease) both; }
  .nm-nav { animation-name: nm-fade; }
  html:not(.js) .nm-hero .nm-title > span:nth-child(1) { animation-delay: 2.9s; }
  html:not(.js) .nm-hero .nm-title > span:nth-child(2) { animation-delay: 3.05s; }
  html:not(.js) .nm-hero .nm-title > span:nth-child(3) { animation-delay: 3.2s; }
  html:not(.js) .nm-hero .nm-lead { animation-delay: 3.45s; }
  html:not(.js) .nm-hero .nm-get,
  html:not(.js) .nm-nav { animation-delay: 3.6s; }
  .js:not(.hero-go) .nm-hero .nm-title > span,
  .js:not(.hero-go) .nm-hero .nm-lead,
  .js:not(.hero-go) .nm-hero .nm-get,
  .js:not(.hero-go) .nm-nav { animation-play-state: paused; }
  .hero-go .nm-hero .nm-title > span:nth-child(2) { animation-delay: 0.15s; }
  .hero-go .nm-hero .nm-title > span:nth-child(3) { animation-delay: 0.3s; }
  .hero-go .nm-hero .nm-lead { animation-delay: 0.55s; }
  .hero-go .nm-hero .nm-get,
  .hero-go .nm-nav { animation-delay: 0.7s; }
  .js .nm-sec:not(.nm-hero) .nm-copy > * { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
  .js .nm-sec.is-in .nm-copy > * { opacity: 1; transform: none; }
  .js .nm-sec.is-in .nm-copy > :nth-child(2) { transition-delay: 90ms; }
  .js .nm-sec.is-in .nm-copy > :nth-child(3) { transition-delay: 180ms; }
  .js .nm-sec.is-in .nm-copy > :nth-child(4) { transition-delay: 270ms; }
  .js .nm-sec.is-in .nm-copy > :nth-child(5) { transition-delay: 360ms; }
}
@keyframes nm-rise { from { opacity: 0; transform: translateY(0.6em); } to { opacity: 1; transform: none; } }
@keyframes nm-fade { from { opacity: 0; } to { opacity: 1; } }

@media (hover: hover) and (pointer: fine) {
  .nm-btn:hover { background: #e9e9ef; }
  .nm-langs a:hover { color: var(--ink); }
  .nm-foot .links a:hover { color: var(--ink); text-decoration: underline; }
}

/* ------------------------------------------------------------------ phone */

@media (max-width: 760px) {
  .nm-nav { height: 4rem; }
  .nm-logo img { width: 8.25rem; }
  .nm-nav__end { gap: 0.5rem; }
  .nm-langs a { min-width: 2.25rem; }
  .nm-btn--nav { padding: 0 0.95rem; }
  .nm-veil { background: linear-gradient(0deg, rgba(6, 6, 16, 0.94) 0%, rgba(6, 6, 16, 0.78) 34%, rgba(6, 6, 16, 0.2) 56%, transparent 66%); }
  .nm-sec { align-items: flex-end; padding: 5rem var(--pad) 3.5rem; }
  .nm-step { min-height: 92svh; }
  .nm-safety { align-items: flex-start; padding-top: 6rem; }
  .nm-safety .nm-copy { padding: 1.5rem 0 0; }
  .nm-facts { grid-template-columns: 1fr; margin-top: 2rem; }
  .nm-facts li { padding: 1.1rem 0 1.2rem; }
  .nm-store { min-height: 3rem; padding: 0 1.15rem 0 0.95rem; font-size: 0.9375rem; }
  .nm-close { justify-content: flex-end; }
  .nm-foot .site-footer { margin-top: 2.5rem; }
}
/* The safety list runs long on a phone: give it the dark ground the veil gives the rest. */
@media (max-width: 760px) {
  .nm-safety::before {
    content: '';
    position: absolute;
    inset: 3rem 0 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 0, rgba(6, 6, 16, 0.86) 6rem, rgba(6, 6, 16, 0.86) 100%);
  }
}

@media (forced-colors: active) {
  .nm-scene, .nm-veil, .ph-stage { display: none; }
}

/* ---------------------------------------------------------- opening lines */

.nm-opening {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 0 var(--pad);
  background: var(--night);
  pointer-events: none;
  animation: nm-opening-out 700ms var(--ease) 2.45s both;
}
.nm-opening p {
  grid-area: 1 / 1;
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.1rem, 1rem + 4.4vw, 5rem);
  font-weight: 640;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}
.nm-opening__a { color: #8e8ea3; animation: nm-line 1200ms var(--ease) 0.1s both; }
.nm-opening__b { animation: nm-line-hold 1400ms var(--ease) 1.25s both; }
.nm-opening__b em { font-style: normal; display: inline-block; color: #ffb3c1; }
.no-opening .nm-opening { display: none; }
.opening-skipped .nm-opening { animation: nm-opening-out 300ms var(--ease) both; }
@keyframes nm-line { 0% { opacity: 0; transform: translateY(0.35em); } 22%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-0.2em); } }
@keyframes nm-line-hold { 0% { opacity: 0; transform: translateY(0.35em) scale(0.98); } 25%, 100% { opacity: 1; transform: none; } }
@keyframes nm-opening-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .nm-opening { display: none; } }

.nm-hint { font-size: 0.875rem; font-weight: 600; color: var(--ink-3); }
@media (hover: none) { .nm-hint { display: none; } }

/* ------------------------------------------------------------------ phones */
/* Laid out in app points (390 x 844, the size the app is designed for) and scaled by --k, the
   way the teaser's Phone.tsx does. home.js places and tilts them. */

.ph-stage { position: fixed; inset: 0; z-index: 2; pointer-events: none; font-family: var(--app); } /* the real app's font */
.ph {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ph-w);
  height: var(--ph-h);
  visibility: hidden;
  opacity: 0;
  perspective: calc(var(--ph-h) * 2.4);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.ph-body {
  position: relative;
  width: 100%;
  height: 100%;
  padding: calc(3.6px * var(--k) * 863.2 / 863.2);
  border-radius: calc(64.6px * var(--k));
  background: linear-gradient(150deg, #5b5b63 0%, #2a2a2f 18%, #1a1a1e 50%, #3a3a41 82%, #1c1c20 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.18) inset,
    0 calc(30px * var(--k)) calc(60px * var(--k)) rgba(0, 0, 0, 0.55),
    0 calc(90px * var(--k)) calc(140px * var(--k)) calc(-40px * var(--k)) rgba(109, 40, 217, 0.45);
  transform: rotateY(var(--ry, -13deg)) rotateX(var(--rx, 3deg));
}
.ph-bezel { height: 100%; padding: calc(6px * var(--k)); border-radius: calc(61px * var(--k)); background: #000; }
.ph-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(55px * var(--k)); background: #000; }
.ph-ui {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 844px;
  overflow: hidden;
  transform: scale(var(--k));
  transform-origin: 0 0;
  font: 400 15px/1.35 var(--app); /* the demo phone shows the real app: Inter, never the site's face (NEAR-15) */
  letter-spacing: -0.01em;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}
.ph-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.07) 46%, transparent 54%);
  background-size: 260% 100%;
  animation: ph-glare 6s var(--ease) infinite;
  transform: rotateY(var(--ry, -13deg)) rotateX(var(--rx, 3deg));
}
@keyframes ph-glare { 0%, 55% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.ph-status { position: absolute; z-index: 30; inset: 0 0 auto 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 36px; font-weight: 600; font-size: 16px; }
.ph-island { position: absolute; left: 50%; top: 11px; width: 120px; height: 35px; margin-left: -60px; border-radius: 20px; background: #000; }
.ph-icons { width: 66px; height: 12px; }
.ph-home { position: absolute; z-index: 30; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: rgba(255, 255, 255, 0.82); }
.ph-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #30d158; vertical-align: 1px; }
.ph-round { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1c1c1e; }
.ph-round svg { width: 20px; height: 20px; }
.ph-round--glass { background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.985); transition: opacity 420ms var(--ease), transform 520ms var(--ease), visibility 0s linear 520ms; }
.ph-ui[data-screen='checkin'] .scr-checkin,
.ph-ui[data-screen='deck'] .scr-deck,
.ph-ui[data-screen='match'] .scr-match,
.ph-ui[data-screen='code'] .scr-code,
.ph-ui[data-screen='met'] .scr-met { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms var(--ease), transform 520ms var(--ease), visibility 0s; }

/* check in */
.scr-checkin { padding: 62px 20px 0; }
.ci-top { display: flex; justify-content: space-between; }
.ci-title { margin: 22px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.ci-sub { margin: 8px 0 0; font-size: 15px; color: rgba(235, 235, 245, 0.62); line-height: 1.45; }
.ci-card { margin-top: 22px; padding: 22px 18px 18px; border-radius: 24px; background: #0e0e10; border: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.ci-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #1c1c1e; }
.ci-icon svg { width: 26px; height: 26px; }
.ci-icon--sm { width: 42px; height: 42px; flex: none; }
.ci-icon--sm svg { width: 20px; height: 20px; }
.ci-name { margin: 12px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ci-meta { margin: 4px 0 0; font-size: 13px; color: rgba(235, 235, 245, 0.6); }
.ci-here { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #30d158; }
.ci-btn { position: relative; display: grid; margin-top: 16px; height: 52px; border-radius: 26px; background: #fff; color: #000; font-size: 16px; font-weight: 600; overflow: hidden; transition: background-color 300ms var(--ease), transform 160ms var(--ease); }
.ci-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 260ms var(--ease), transform 300ms var(--ease); }
.ci-btn svg { width: 18px; height: 18px; }
.ci-btn__done { opacity: 0; transform: translateY(12px); color: #fff; }
[data-sub='sheet'] .ci-btn { transform: scale(0.97); background: #d8d8de; }
[data-sub='done'] .ci-btn { background: #30d158; }
[data-sub='done'] .ci-btn__go { opacity: 0; transform: translateY(-12px); }
[data-sub='done'] .ci-btn__done { opacity: 1; transform: none; color: #000; }
.ci-label { margin: 26px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: rgba(235, 235, 245, 0.5); }
.ci-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; border-radius: 18px; background: #0e0e10; }
.ci-row b { display: block; font-size: 15px; font-weight: 600; }
.ci-row small { font-size: 12px; color: rgba(235, 235, 245, 0.55); }
.ci-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1c1c1e; }
.ci-ico svg { width: 18px; height: 18px; }
.ci-sheet { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 12px 22px 34px; border-radius: 30px 30px 0 0; background: #1c1c1e; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6); transform: translateY(105%); transition: transform 520ms var(--ease); }
.ci-sheet::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 900px; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 400ms var(--ease); pointer-events: none; }
[data-sub='sheet'] .ci-sheet { transform: none; }
[data-sub='sheet'] .ci-sheet::before { opacity: 1; }
.ci-grab { display: block; width: 38px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.ci-sheet__head { display: flex; align-items: center; gap: 12px; }
.ci-sheet__head b { display: block; font-size: 17px; font-weight: 700; }
.ci-sheet__head small { font-size: 13px; color: rgba(235, 235, 245, 0.6); }
.ci-sheet p { margin: 14px 0 0; font-size: 14px; color: rgba(235, 235, 245, 0.75); line-height: 1.45; }
.ci-sheet__btns { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.ci-cancel { padding: 0 18px; font-size: 16px; font-weight: 600; color: rgba(235, 235, 245, 0.85); }
.ci-ok { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 26px; border-radius: 24px; background: #fff; color: #000; font-size: 16px; font-weight: 600; }
.ci-ok svg { width: 16px; height: 16px; }

/* the deck */
.scr-deck { background: #000; touch-action: pan-y; cursor: grab; }
.scr-deck:active { cursor: grabbing; }
.deck-card { position: absolute; inset: 0; overflow: hidden; border-radius: 0; background: #111; transition: transform 520ms var(--ease); will-change: transform; }
.deck-card.is-dragging { transition: none; }
.deck-card.is-gone { pointer-events: none; }
.deck-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 18%, transparent 52%, rgba(0, 0, 0, 0.88) 84%); pointer-events: none; }
.d-info { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 132px; }
.d-name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.d-name svg { width: 24px; height: 24px; }
.d-age { font-weight: 400; }
.d-job { display: block; margin-top: 2px; font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.d-here { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #30d158; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.d-chips span { padding: 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; }
.d-stamp { position: absolute; z-index: 3; top: 140px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; opacity: 0; transition: opacity 160ms linear; pointer-events: none; }
.d-stamp svg { width: 46px; height: 46px; }
.d-like { right: 28px; background: #e11d48; color: #fff; }
.d-nope { left: 28px; background: rgba(255, 255, 255, 0.92); color: #000; }
.d-top { position: absolute; z-index: 10; left: 16px; right: 16px; top: 58px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d-venue { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 20px; background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; }
.d-actions { position: absolute; z-index: 10; left: 0; right: 0; bottom: 40px; display: flex; justify-content: center; gap: 28px; }
.d-btn { display: grid; place-items: center; width: 70px; height: 70px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: transform 140ms var(--ease); }
.d-btn:active { transform: scale(0.92); }
.d-btn svg { width: 30px; height: 30px; }
.d-pass { background: rgba(28, 28, 30, 0.86); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.d-likebtn { background: #e11d48; color: #fff; }
.d-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ph-stage.is-deck .ph--a { pointer-events: auto; }

/* the match */
.scr-match { display: flex; flex-direction: column; align-items: center; padding: 96px 22px 0; text-align: center; background: radial-gradient(90% 46% at 50% 0%, rgba(225, 29, 72, 0.32), transparent 72%), #000; }
.m-pair { position: relative; display: flex; justify-content: center; }
.m-pair img { width: 124px; height: 124px; border-radius: 50%; border: 4px solid #000; object-fit: cover; }
.m-pair img + img { margin-left: -24px; }
.m-heart, .m-check { position: absolute; left: 50%; bottom: -14px; display: grid; place-items: center; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: #e11d48; border: 4px solid #000; color: #fff; }
.m-heart svg, .m-check svg { width: 22px; height: 22px; }
.m-check { background: #30d158; color: #000; }
.ph-ui[data-screen='match'] .m-heart { animation: ph-beat 1.4s var(--ease) infinite; }
@keyframes ph-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.18); } 28% { transform: scale(1); } }
.m-title { margin: 30px 0 0; font-size: 36px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.m-where { display: inline-flex; align-items: center; margin: 12px 0 0; padding: 8px 14px; border-radius: 18px; background: #0e0e10; border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 600; }
.m-timer { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 24px; padding: 16px 18px; border-radius: 22px; background: #0e0e10; border: 1px solid rgba(225, 29, 72, 0.35); text-align: left; }
.m-ring { width: 48px; height: 48px; flex: none; transform: rotate(-90deg); }
.m-ring circle { fill: none; stroke-width: 4; stroke: rgba(255, 61, 95, 0.18); }
.m-ring .m-arc { stroke: #ff3d5f; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.m-timer b { display: block; font-family: var(--mono); font-weight: 500; font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; color: #ff3d5f; font-variant-numeric: tabular-nums; }
.m-timer small { font-size: 13px; color: rgba(235, 235, 245, 0.62); }
.m-hint { margin: 14px 10px 0; font-size: 13px; color: rgba(235, 235, 245, 0.55); }
.m-btn, .met-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; margin-top: auto; border-radius: 27px; background: #e11d48; font-size: 17px; font-weight: 600; }
.m-btn svg, .met-btn svg { width: 20px; height: 20px; }
.m-keep { margin: 16px 0 44px; font-size: 15px; font-weight: 600; color: rgba(235, 235, 245, 0.75); }

/* the code */
.scr-code { display: flex; flex-direction: column; align-items: center; padding: 104px 22px 0; text-align: center; background: radial-gradient(80% 40% at 50% 100%, rgba(225, 29, 72, 0.24), transparent 70%), #000; }
.c-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.c-title { margin: 18px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.c-sub { margin: 8px 0 0; max-width: 30ch; font-size: 14px; color: rgba(235, 235, 245, 0.62); line-height: 1.45; }
.c-boxes { display: flex; gap: 12px; margin-top: 48px; }
.cbox { display: grid; place-items: center; width: 66px; height: 86px; border-radius: 16px; background: #0e0e10; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); font-family: var(--mono); font-weight: 500; font-size: 44px; line-height: 1; color: #fff; transition: box-shadow 260ms var(--ease); }
.scr-code--b .cbox.is-filled { box-shadow: inset 0 0 0 2px #fff; }
.c-bar { width: 150px; height: 4px; margin-top: 26px; border-radius: 2px; background: linear-gradient(90deg, #ff3d5f 64%, rgba(255, 61, 95, 0.2) 64%); }
.c-ttl { margin-top: 14px; padding: 7px 14px; border-radius: 16px; background: rgba(225, 29, 72, 0.16); font-family: var(--mono); font-weight: 500; font-size: 14px; color: #ff6b84; }
.c-ttl--top { margin-top: 22px; }
.c-new { display: inline-flex; align-items: center; gap: 8px; margin: auto 0 46px; font-size: 15px; font-weight: 600; color: rgba(235, 235, 245, 0.75); }
.c-new svg { width: 18px; height: 18px; }
.c-validate { display: grid; place-items: center; width: 100%; height: 54px; margin: auto 0 44px; border-radius: 27px; background: #2c2c30; color: rgba(255, 255, 255, 0.4); font-size: 17px; font-weight: 600; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.is-ready .c-validate { background: #fff; color: #000; }
.ph-digit { position: fixed; z-index: 95; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; line-height: 1; color: #fff; text-shadow: 0 0 18px rgba(255, 61, 95, 0.9); pointer-events: none; }

/* you met */
.scr-met { display: flex; flex-direction: column; align-items: center; padding: 120px 22px 0; text-align: center; background: radial-gradient(90% 50% at 50% 30%, rgba(48, 209, 88, 0.16), transparent 70%), #000; }
.m-pair--met img { width: 112px; height: 112px; }
.met-title { margin: 34px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.met-sub { margin: 12px 0 0; max-width: 28ch; font-size: 16px; color: rgba(235, 235, 245, 0.75); line-height: 1.45; }
.met-where { margin: 14px 0 0; font-size: 13px; color: rgba(235, 235, 245, 0.5); }
.met-btn { background: #fff; color: #000; margin-bottom: 64px; }
.ph-ui[data-screen='met'] .m-check { animation: ph-pop 700ms var(--ease) both; }
@keyframes ph-pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ph-glare { animation: none; }
  .scr, .deck-card, .ci-sheet { transition-duration: 1ms; }
  .ph-ui[data-screen='match'] .m-heart { animation: none; }
}
/* Mid-size screens: the phone stands right of the copy, which narrows to make room. */
@media (min-width: 761px) and (max-width: 1199px) {
  .nm-step .nm-copy { max-width: min(var(--col), 50vw); }
}
@media (max-width: 760px) {
  .ph-stage .ph-glare { display: none; }
}
