:root {
  color-scheme: dark;
  --bg: #070711;
  --panel: rgba(18, 16, 33, .64);
  --panel-strong: rgba(22, 19, 42, .86);
  --stroke: rgba(255, 255, 255, .1);
  --text: #f7f5ff;
  --muted: #a6a1b8;
  --muted-2: #746f86;
  --violet: #8f75ff;
  --violet-light: #b8a8ff;
  --blue: #6e8dff;
  --danger: #ff708b;
  --success: #62e6a7;
  --shadow: 0 32px 90px rgba(0, 0, 0, .38);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(111, 77, 214, .11), transparent 34%),
    linear-gradient(150deg, #080812 0%, #070711 50%, #0b0814 100%);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; }

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(15px); opacity: .75; }
.orb--violet { width: 44vw; height: 44vw; max-width: 680px; max-height: 680px; top: -28%; left: 24%; background: radial-gradient(circle, rgba(128, 82, 255, .15), transparent 68%); animation: drift-a 18s ease-in-out infinite alternate; }
.orb--blue { width: 460px; height: 460px; left: -190px; top: 45%; background: radial-gradient(circle, rgba(47, 96, 220, .09), transparent 70%); animation: drift-b 21s ease-in-out infinite alternate; }
.orb--rose { width: 420px; height: 420px; right: -180px; bottom: -120px; background: radial-gradient(circle, rgba(175, 54, 147, .08), transparent 70%); animation: drift-a 24s ease-in-out infinite alternate-reverse; }
.noise { position: absolute; inset: 0; opacity: .024; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(7, 7, 17, .82), rgba(7, 7, 17, 0));
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 16px; letter-spacing: -.03em; }
.brand__mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, rgba(172, 150, 255, .2), rgba(99, 70, 207, .08)); border: 1px solid rgba(185, 169, 255, .28); box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 8px 25px rgba(83, 51, 205, .15); }
.brand__mark svg { width: 21px; height: 21px; fill: #c5b9ff; }
.topbar__meta { display: flex; align-items: center; gap: 9px; }
.plus-pill { height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(226,195,106,.22); border-radius: 999px; background: linear-gradient(135deg, rgba(166,125,255,.16), rgba(222,179,79,.08)); color: #e8d28e; font-size: 10px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.plus-pill:hover { transform: translateY(-1px); border-color: rgba(226,195,106,.4); box-shadow: 0 8px 24px rgba(117,78,211,.16); }
.plus-pill span { color: #f1cc69; filter: drop-shadow(0 0 8px rgba(241,204,105,.5)); }
.secure-pill { height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; background: rgba(255, 255, 255, .035); color: #a9a5b5; font-size: 11px; font-weight: 700; }
.secure-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(98, 230, 167, .75); }
.icon-btn { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; background: rgba(255,255,255,.035); display: grid; place-items: center; cursor: pointer; transition: .25s ease; }
.icon-btn:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
.icon-btn svg { width: 15px; fill: none; stroke: #aaa5b6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-off { display: none; }
.sound-toggle.is-muted .sound-on { display: none; }
.sound-toggle.is-muted .sound-off { display: block; }

.app-shell { min-height: 100dvh; }
.screen { min-height: 100dvh; padding: 100px 22px 38px; display: none; align-items: center; justify-content: center; }
.screen.is-active { display: flex; animation: screen-in .65s var(--ease) both; }
.screen.is-leaving { display: flex; animation: screen-out .33s ease both; }

.screen--welcome { position: relative; flex-direction: column; text-align: center; }
.hero { width: min(720px, 100%); display: flex; flex-direction: column; align-items: center; }
.hero__logo-wrap { width: 176px; height: 176px; position: relative; margin: -16px 0 24px; display: grid; place-items: center; }
.hero__logo { position: relative; width: 126px; height: 126px; display: grid; place-items: center; overflow: hidden; border-radius: 38px; background: linear-gradient(145deg, rgba(139, 103, 255, .25), rgba(73, 50, 144, .09)); border: 1px solid rgba(200, 188, 255, .32); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -20px 40px rgba(31, 19, 77, .28), 0 28px 75px rgba(86, 51, 211, .27); transform: rotate(-4deg); animation: logo-float 5s ease-in-out infinite; }
.hero__logo::before { content: ""; position: absolute; inset: 1px; border-radius: 37px; background: linear-gradient(135deg, rgba(255,255,255,.13), transparent 38%); }
.hero__logo svg { width: 104px; height: 104px; filter: drop-shadow(0 8px 22px rgba(91, 56, 196, .4)); }
.logo-glint { position: absolute; width: 70px; height: 180px; top: -25px; left: -85px; transform: rotate(28deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); animation: glint 5.5s 1.5s ease-in-out infinite; }
.logo-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(158, 132, 255, .12); }
.logo-ring--one { width: 154px; height: 154px; animation: pulse-ring 3.2s ease-out infinite; }
.logo-ring--two { width: 176px; height: 176px; animation: pulse-ring 3.2s 1.2s ease-out infinite; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 8px; color: #a89df1; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 18px; height: 1px; background: #8e7bdc; }
.hero h1 { margin: 17px 0 17px; font-size: clamp(45px, 6vw, 78px); line-height: .99; letter-spacing: -.065em; font-weight: 700; }
.hero h1 em { color: var(--violet-light); font-style: normal; font-weight: 500; }
.hero__lead { max-width: 555px; margin: 0 0 29px; color: var(--muted); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.7; }
.primary-btn { height: 55px; min-width: 246px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid rgba(224, 216, 255, .28); border-radius: 17px; background: linear-gradient(135deg, #a38cff 0%, #8063ee 52%, #6647d2 100%); box-shadow: inset 0 1px rgba(255,255,255,.28), 0 14px 40px rgba(105, 70, 218, .34); color: white; font-size: 13px; font-weight: 800; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s ease; }
.primary-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.23), transparent 70%); transform: translateX(-120%); transition: transform .65s ease; }
.primary-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 18px 48px rgba(105, 70, 218, .44); }
.primary-btn:hover::before { transform: translateX(120%); }
.primary-btn:active { transform: translateY(0) scale(.985); }
.primary-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-btn--hero { min-width: 230px; }
.microcopy { margin: 17px 0 0; display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 10px; font-weight: 600; }
.microcopy svg { width: 13px; fill: none; stroke: #7d739f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero__foot { position: absolute; bottom: 26px; display: flex; align-items: center; gap: 16px; color: #4e4b5b; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.hero__foot i { width: 3px; height: 3px; border-radius: 50%; background: #45414f; }

.glass-card { border: 1px solid var(--stroke); background: linear-gradient(145deg, rgba(28, 24, 48, .64), rgba(14, 13, 27, .7)); box-shadow: inset 0 1px rgba(255,255,255,.055), var(--shadow); backdrop-filter: blur(30px) saturate(120%); -webkit-backdrop-filter: blur(30px) saturate(120%); }
.onboarding-card { width: min(610px, 100%); padding: 40px clamp(22px, 6vw, 60px) 30px; border-radius: 32px; text-align: center; }
.onboarding-card h2 { margin: 12px 0 9px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.045em; }
.onboarding-card > p { margin: 0 auto 27px; max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.onboarding-card .section-kicker { justify-content: center; }
.choice-fieldset { margin: 0 0 21px; padding: 0; border: 0; text-align: left; }
.choice-fieldset legend { margin-bottom: 9px; color: #9a94a8; font-size: 10px; font-weight: 700; }
.choice-grid { display: grid; gap: 9px; }
.choice-grid--two { grid-template-columns: repeat(2, 1fr); }
.choice-grid--three { grid-template-columns: repeat(3, 1fr); }
.choice-grid label { cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label > span { min-height: 51px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.03); color: #a9a3b5; font-size: 11px; font-weight: 700; transition: .2s ease; }
.choice-grid label:hover > span { border-color: rgba(160,137,255,.22); background: rgba(142,111,241,.06); }
.choice-grid input:checked + span { border-color: rgba(174,151,255,.48); background: linear-gradient(145deg, rgba(137,104,239,.25), rgba(89,63,173,.16)); color: #f2eeff; box-shadow: inset 0 1px rgba(255,255,255,.1), 0 8px 24px rgba(77,48,169,.14); }
.choice-grid input:focus-visible + span { outline: 2px solid var(--violet-light); outline-offset: 2px; }
.choice-grid svg { width: 17px; fill: none; stroke: #9c8dd5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.onboarding-card .primary-btn { margin-top: 2px; }
.onboarding-card .primary-btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.onboarding-privacy { margin: 19px auto 0 !important; display: flex; align-items: center; justify-content: center; gap: 6px; color: #696476 !important; font-size: 8px !important; }
.onboarding-privacy svg { width: 11px; fill: none; stroke: #796d9d; stroke-width: 1.7; }
.lobby-card { width: min(570px, 100%); padding: 44px clamp(25px, 7vw, 72px) 34px; border-radius: 35px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; position: relative; }
.lobby-card::after { content: ""; position: absolute; width: 260px; height: 150px; top: -90px; left: 50%; transform: translateX(-50%); background: #7957e9; opacity: .12; filter: blur(50px); }
.lobby-art { width: 172px; height: 172px; position: relative; display: grid; place-items: center; margin: -4px 0 16px; }
.lobby-art__mark { z-index: 2; width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(189,173,255,.28); border-radius: 26px; background: linear-gradient(145deg, rgba(142, 110, 255, .27), rgba(76, 53, 150, .17)); box-shadow: inset 0 1px rgba(255,255,255,.17), 0 18px 40px rgba(72,42,170,.25); animation: logo-float 5s ease-in-out infinite; }
.lobby-art__mark svg, .matcher__core svg { width: 49px; fill: #c2b4ff; }
.radar { position: absolute; border: 1px solid rgba(151,128,241,.12); border-radius: 50%; }
.radar--1 { width: 110px; height: 110px; }
.radar--2 { width: 145px; height: 145px; }
.radar--3 { width: 172px; height: 172px; }
.radar-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px rgba(143,117,255,.7); }
.radar-dot--1 { top: 25px; right: 38px; animation: dot-pulse 2s infinite; }
.radar-dot--2 { left: 15px; bottom: 56px; animation: dot-pulse 2s .65s infinite; }
.radar-dot--3 { right: 12px; bottom: 30px; animation: dot-pulse 2s 1.2s infinite; }
.lobby-card h2, .search-wrap h2 { margin: 12px 0 12px; font-size: clamp(27px, 4vw, 38px); line-height: 1.12; letter-spacing: -.045em; }
.lobby-card > p, .search-wrap > p { max-width: 420px; margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.online-count { margin: 0 0 25px; padding: 7px 13px 7px 8px; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; background: rgba(255,255,255,.035); color: #8f899f; font-size: 10px; }
.online-count strong { color: #d2cbdc; font-weight: 800; }
.avatar-stack { display: flex; margin-right: 3px; }
.avatar-stack i { width: 17px; height: 17px; margin-left: -4px; display: grid; place-items: center; border: 2px solid #191628; border-radius: 50%; background: #5f4f8c; color: #9cf0c8; font-size: 6px; font-style: normal; }
.avatar-stack i:first-child { margin-left: 0; background: #705891; }
.avatar-stack i:last-child { background: #465c8f; }
.interest-select { width: min(330px, 100%); margin: -9px 0 16px; display: flex; align-items: center; gap: 8px; padding: 8px 9px 8px 12px; border: 1px solid rgba(225,192,102,.14); border-radius: 13px; background: rgba(173,133,62,.04); }
.interest-select[hidden] { display: none; }
.interest-select span { color: #bba86e; font-size: 8px; font-weight: 700; white-space: nowrap; }
.interest-select select { min-width: 0; flex: 1; padding: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: #151223; color: #c7c1d0; outline: 0; font-size: 9px; }
.rules { width: 100%; margin-top: 25px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.065); display: flex; justify-content: center; gap: 24px; color: #777184; font-size: 9px; }
.lobby-plus { width: min(360px, 100%); min-height: 52px; margin-top: 14px; padding: 8px 12px; display: grid; grid-template-columns: auto auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; border: 1px solid rgba(225,192,102,.15); border-radius: 15px; background: linear-gradient(130deg, rgba(157,119,240,.09), rgba(218,180,83,.045)); cursor: pointer; text-align: left; transition: .2s ease; }
.lobby-plus:hover { border-color: rgba(225,192,102,.3); transform: translateY(-1px); }
.lobby-plus > span { grid-row: 1 / 3; color: #e9c65f; font-size: 17px; }
.lobby-plus strong { color: #dfd5f5; font-size: 10px; }
.lobby-plus small { grid-column: 2 / 4; color: #716b7c; font-size: 8px; }
.lobby-plus svg { grid-column: 4; grid-row: 1 / 3; width: 15px; fill: none; stroke: #8e829f; stroke-width: 1.8; }
.rules span { display: flex; align-items: center; gap: 5px; }
.rules svg { width: 12px; fill: none; stroke: #8176aa; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.search-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.matcher { width: 280px; height: 280px; position: relative; margin-bottom: 12px; display: grid; place-items: center; }
.matcher::after { content: ""; width: 130px; height: 130px; position: absolute; border-radius: 50%; background: rgba(121,87,233,.18); filter: blur(35px); animation: breathe 2s ease-in-out infinite; }
.matcher__core { position: relative; z-index: 3; width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(193,178,255,.3); background: linear-gradient(145deg, rgba(145,113,255,.3), rgba(66,46,135,.22)); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 0 50px rgba(105,70,218,.25); }
.matcher__orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(160,138,246,.14); animation: spin 8s linear infinite; }
.matcher__orbit--outer { width: 252px; height: 252px; }
.matcher__orbit--inner { width: 178px; height: 178px; animation-direction: reverse; animation-duration: 5.5s; }
.matcher__orbit i { position: absolute; width: 13px; height: 13px; border: 2px solid #171326; border-radius: 50%; background: #8c72fb; box-shadow: 0 0 15px rgba(140,114,251,.8); }
.matcher__orbit i:nth-child(1) { top: -6px; left: calc(50% - 6px); }
.matcher__orbit i:nth-child(2) { right: 10px; bottom: 43px; background: #6481e8; }
.matcher__orbit i:nth-child(3) { left: 8px; bottom: 45px; background: #ad66c8; }
.matcher__orbit--inner i:nth-child(2) { top: auto; bottom: -6px; left: calc(50% - 6px); right: auto; }
.section-kicker--pulse i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(98,230,167,.7); animation: dot-pulse 1.4s infinite; }
.search-wrap h2 { margin-top: 15px; }
.loading-dots i { font-style: normal; animation: dot-load 1.2s infinite; }
.loading-dots i:nth-child(2) { animation-delay: .2s; }
.loading-dots i:nth-child(3) { animation-delay: .4s; }
.ghost-btn { margin-top: 12px; padding: 10px 17px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); color: #8f899c; font-size: 11px; cursor: pointer; transition: .2s ease; }
.ghost-btn:hover { border-color: rgba(255,255,255,.16); color: #c7c1d1; }

.screen--chat { padding-top: 90px; padding-bottom: 24px; }
.chat-card { width: min(880px, 100%); height: min(710px, calc(100dvh - 120px)); min-height: 510px; display: grid; grid-template-rows: auto auto 1fr auto auto auto; overflow: hidden; border-radius: 30px; }
.chat-head { min-height: 83px; padding: 15px 20px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.012); }
.stranger-avatar { width: 47px; height: 47px; flex: 0 0 auto; position: relative; display: grid; place-items: center; border-radius: 16px; border: 1px solid rgba(170,150,248,.2); background: linear-gradient(145deg, rgba(136,105,230,.22), rgba(66,49,115,.14)); }
.stranger-avatar svg { width: 23px; fill: none; stroke: #a995e9; stroke-width: 1.6; stroke-linecap: round; }
.stranger-avatar span { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 3px solid #181526; border-radius: 50%; background: var(--success); }
.chat-head__copy { margin-left: 12px; }
.chat-head__copy > div { display: flex; align-items: center; gap: 6px; }
.chat-head h2 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.chat-head__copy p { margin: 4px 0 0; color: #7e788c; font-size: 9px; }
.chat-head__copy p i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(98,230,167,.6); }
.verified-lock { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: rgba(104,224,169,.08); }
.verified-lock svg { width: 10px; fill: none; stroke: var(--success); stroke-width: 1.8; }
.skip-btn { margin-left: auto; height: 37px; padding: 0 13px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.04); color: #aaa4b6; font-size: 10px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.skip-btn:hover { border-color: rgba(255,112,139,.25); color: #ff9bad; background: rgba(255,112,139,.06); }
.skip-btn svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.encryption-note { min-height: 33px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.045); background: rgba(82,65,132,.06); color: #6e697d; font-size: 8px; }
.encryption-note svg { width: 10px; fill: none; stroke: #766c9d; stroke-width: 1.8; }
.messages { min-height: 0; padding: 20px clamp(16px, 4vw, 34px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.11) transparent; }
.day-label { margin: 2px 0 15px; text-align: center; color: #514d5d; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.system-message { width: max-content; max-width: 90%; margin: 0 auto 20px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.03); color: #777181; font-size: 8px; text-align: center; }
.message-row { display: flex; flex-direction: column; align-items: flex-start; margin: 7px 0; animation: message-in .35s var(--ease) both; }
.message-row--mine { align-items: flex-end; }
.message { max-width: min(72%, 530px); padding: 10px 13px 7px; border: 1px solid rgba(255,255,255,.065); border-radius: 6px 17px 17px 17px; background: rgba(255,255,255,.045); color: #dfdbe8; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; box-shadow: 0 7px 18px rgba(0,0,0,.08); }
.message-row--mine .message { border-radius: 17px 6px 17px 17px; border-color: rgba(160,137,255,.16); background: linear-gradient(140deg, rgba(128,96,231,.36), rgba(96,70,180,.27)); color: #f5f2ff; }
.message__time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 3px; color: #6f687b; font-size: 7px; line-height: 1; }
.message-row--mine .message__time { color: #9b8fbd; }
.message__time svg { width: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.typing { height: 0; padding-left: 35px; overflow: hidden; display: flex; align-items: center; gap: 3px; color: #6f697b; font-size: 8px; transition: height .25s ease; }
.typing.is-visible { height: 27px; }
.typing span { width: 4px; height: 4px; border-radius: 50%; background: #8d7cc5; animation: typing-dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { margin-right: 3px; animation-delay: .3s; }
.composer { position: relative; min-height: 63px; margin: 0 18px; padding: 8px 8px 8px 11px; display: flex; align-items: flex-end; gap: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(7,6,14,.42); box-shadow: inset 0 1px rgba(255,255,255,.025); transition: border-color .2s ease, box-shadow .2s ease; }
.composer:focus-within { border-color: rgba(161,138,255,.28); box-shadow: 0 0 0 3px rgba(134,101,232,.06); }
.composer__attach { width: 39px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .2s var(--ease); }
.composer__attach:hover { background: rgba(144,117,255,.09); transform: translateY(-1px); }
.composer__attach svg { width: 21px; fill: none; stroke: #89819d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
.composer__attach:hover svg { stroke: #b4a4ef; }
.composer__attach.is-disabled { opacity: .3; pointer-events: none; }
.composer textarea { min-height: 39px; max-height: 106px; flex: 1; resize: none; border: 0; padding: 11px 0 8px; background: transparent; color: var(--text); outline: 0; font-size: 12px; line-height: 1.5; scrollbar-width: thin; }
.composer textarea::placeholder { color: #5f5a6b; }
.send-btn { width: 43px; height: 43px; flex: 0 0 auto; border: 1px solid rgba(217,205,255,.22); border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, #957bfa, #6e50d9); box-shadow: inset 0 1px rgba(255,255,255,.25), 0 8px 18px rgba(93,61,193,.27); cursor: pointer; transition: transform .2s var(--ease), opacity .2s ease; }
.send-btn:disabled { opacity: .28; cursor: default; box-shadow: none; }
.send-btn:not(:disabled):hover { transform: translateY(-1px) scale(1.03); }
.send-btn svg { width: 18px; fill: none; stroke: white; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-hint { margin: 7px 0 11px; text-align: center; color: #4e4a59; font-size: 7px; }

.video-message { position: relative; width: min(330px, 72vw); overflow: hidden; border-radius: 17px; background: #080710; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.message-row--mine .video-message { border-top-right-radius: 6px; border-color: rgba(160,137,255,.2); }
.message-row:not(.message-row--mine) .video-message { border-top-left-radius: 6px; }
.video-message video { display: block; width: 100%; max-height: 360px; aspect-ratio: 16 / 10; object-fit: contain; background: #05050a; }
.video-message__meta { min-height: 29px; padding: 6px 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, rgba(127,95,224,.2), rgba(255,255,255,.025)); color: #8e879c; font-size: 7px; }
.video-message__meta span:first-child { display: flex; align-items: center; gap: 5px; }
.video-message__meta svg { width: 11px; fill: none; stroke: #a794e8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.video-message.is-uploading video { opacity: .35; filter: saturate(.65); }
.video-message__progress { position: absolute; inset: 0 0 29px; display: grid; place-items: center; background: rgba(7,6,14,.26); backdrop-filter: blur(3px); color: #e7e1fa; font-size: 9px; font-weight: 700; }
.video-message__progress::before { content: ""; position: absolute; width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.14); border-top-color: #a891ff; border-radius: 50%; animation: spin .8s linear infinite; }
.video-message__progress span { margin-top: 64px; }
.video-message.is-failed { border-color: rgba(255,112,139,.25); }
.video-message.is-failed .video-message__progress { color: #ff9eb0; background: rgba(35,9,18,.62); }
.video-message.is-failed .video-message__progress::before { display: none; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; max-width: calc(100% - 32px); padding: 10px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(25,21,42,.92); box-shadow: 0 16px 40px rgba(0,0,0,.35); color: #d4cfde; font-size: 11px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; padding: 28px 16px; align-items: center; justify-content: center; overflow-y: auto; background: rgba(4,3,10,.72); backdrop-filter: blur(12px); }
.modal-backdrop:not([hidden]) { display: flex; animation: screen-in .3s var(--ease) both; }
.plus-modal { width: min(680px, 100%); max-height: min(850px, calc(100dvh - 38px)); overflow-y: auto; position: relative; padding: 34px clamp(20px, 5vw, 45px); border-radius: 31px; }
.modal-close { position: absolute; z-index: 2; top: 17px; right: 17px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; background: rgba(255,255,255,.04); cursor: pointer; }
.modal-close svg { width: 15px; fill: none; stroke: #9a94a5; stroke-width: 1.8; stroke-linecap: round; }
.plus-modal__hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.plus-crown { width: 55px; height: 55px; margin-bottom: 12px; display: grid; place-items: center; border: 1px solid rgba(235,202,113,.25); border-radius: 19px; background: linear-gradient(145deg, rgba(151,111,244,.24), rgba(218,174,73,.12)); color: #f0cb6a; font-size: 27px; box-shadow: 0 15px 35px rgba(85,54,166,.2); }
.plus-modal__hero h2 { margin: 10px 0 5px; }
.plus-modal__hero h2 strong { font-size: 42px; letter-spacing: -.06em; }
.plus-modal__hero h2 small { color: #888294; font-size: 12px; font-weight: 500; }
.plus-modal__hero p { margin: 0; color: var(--muted); font-size: 11px; }
.plus-features { margin: 25px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.plus-features span { min-height: 39px; padding: 9px 11px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.025); color: #b1abbc; font-size: 9px; }
.plus-features span::first-letter { color: #d9b858; }
.plus-features .soon { color: #716b7a; }
.plus-features .soon i { margin-left: auto; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.04); color: #777080; font-size: 6px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.theme-picker { margin: 0 0 17px; padding: 12px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.06); border-radius: 15px; background: rgba(255,255,255,.02); }
.theme-picker > div { margin-right: auto; display: flex; flex-direction: column; }
.theme-picker strong { color: #c6bfce; font-size: 10px; }
.theme-picker small { color: #676170; font-size: 7px; }
.theme-picker button { width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.12); border-radius: 50%; cursor: pointer; transition: transform .2s ease; }
.theme-picker button:hover, .theme-picker button.is-selected { transform: scale(1.12); border-color: #eee8ff; }
.theme-picker [data-chat-theme="violet"] { background: linear-gradient(135deg,#8f75ff,#462f89); }
.theme-picker [data-chat-theme="ocean"] { background: linear-gradient(135deg,#4bb6db,#23498e); }
.theme-picker [data-chat-theme="rose"] { background: linear-gradient(135deg,#da729f,#743064); }
.theme-picker [data-chat-theme="graphite"] { background: linear-gradient(135deg,#737588,#262834); }
.screen--chat::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s ease; }
body[data-chat-theme="ocean"] .screen--chat::before { opacity: 1; background: radial-gradient(circle at 20% 20%, rgba(40,146,194,.18), transparent 40%), radial-gradient(circle at 80% 85%, rgba(40,75,173,.16), transparent 42%); }
body[data-chat-theme="rose"] .screen--chat::before { opacity: 1; background: radial-gradient(circle at 20% 25%, rgba(201,73,131,.16), transparent 40%), radial-gradient(circle at 82% 78%, rgba(111,38,103,.18), transparent 44%); }
body[data-chat-theme="graphite"] .screen--chat::before { opacity: 1; background: radial-gradient(circle at 30% 20%, rgba(142,145,164,.1), transparent 42%), linear-gradient(145deg,#090a0f,#11121a); }
.payment-box { padding: 19px; border: 1px solid rgba(255,255,255,.07); border-radius: 20px; background: rgba(5,4,12,.26); }
.payment-box h3 { margin: 0 0 5px; font-size: 13px; }
.payment-box > p { margin: 0 0 14px; color: #7f798a; font-size: 9px; line-height: 1.5; }
.receipt-drop { min-height: 91px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed rgba(169,145,255,.25); border-radius: 15px; background: rgba(134,102,225,.035); cursor: pointer; transition: .2s ease; text-align: center; }
.receipt-drop:hover, .receipt-drop.has-file { border-color: rgba(169,145,255,.48); background: rgba(134,102,225,.08); }
.receipt-drop svg { width: 21px; fill: none; stroke: #9e8add; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.receipt-drop span { color: #c3bccf; font-size: 10px; font-weight: 700; }
.receipt-drop small { color: #686271; font-size: 8px; }
.payment-box .primary-btn { width: 100%; margin-top: 10px; min-width: 0; height: 46px; border-radius: 14px; }
.payment-box .primary-btn:disabled { opacity: .35; cursor: default; transform: none; }
.payment-safety { margin: 11px 0 0 !important; color: #5f5a68 !important; font-size: 7px !important; text-align: center; }
.payment-status { padding: 18px; border: 1px solid rgba(255,255,255,.07); border-radius: 17px; background: rgba(255,255,255,.03); color: #aaa4b5; font-size: 10px; line-height: 1.6; text-align: center; }
.noscript { position: fixed; inset: auto 20px 20px; z-index: 100; padding: 12px; border-radius: 12px; background: #2a203e; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes screen-in { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes screen-out { to { opacity: 0; transform: translateY(-8px) scale(.995); } }
@keyframes logo-float { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-7px); } }
@keyframes glint { 0%,45% { transform: translateX(0) rotate(28deg); } 65%,100% { transform: translateX(270px) rotate(28deg); } }
@keyframes pulse-ring { 0% { transform: scale(.84); opacity: 0; } 40% { opacity: .7; } 100% { transform: scale(1.16); opacity: 0; } }
@keyframes dot-pulse { 0%,100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .65; } }
@keyframes dot-load { 0%,20% { opacity: .15; } 50% { opacity: 1; } 100% { opacity: .15; } }
@keyframes message-in { from { opacity: 0; transform: translateY(7px) scale(.98); } }
@keyframes typing-dot { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(7px) scale(.97); } }
@keyframes drift-a { to { transform: translate(70px, 35px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(50px, -55px) scale(.92); } }

@media (max-height: 760px) and (min-width: 701px) {
  .hero__logo-wrap { width: 138px; height: 138px; margin-bottom: 15px; }
  .hero__logo { width: 104px; height: 104px; border-radius: 31px; }
  .hero__logo svg { width: 86px; }
  .hero h1 { font-size: clamp(42px, 5.5vw, 62px); margin: 12px 0; }
  .hero__lead { margin-bottom: 20px; }
  .hero__foot { display: none; }
  .lobby-card { padding-top: 25px; }
  .lobby-art { width: 135px; height: 135px; margin-bottom: 8px; transform: scale(.8); }
  .matcher { width: 220px; height: 220px; transform: scale(.8); margin: -20px 0 -8px; }
}

@media (max-width: 700px) {
  .topbar { height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(17px, env(safe-area-inset-right)) 0 max(17px, env(safe-area-inset-left)); }
  .secure-pill { display: none; }
  .plus-pill { height: 30px; padding-inline: 10px; }
  .screen { padding: calc(78px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .hero__logo-wrap { width: 145px; height: 145px; margin: -2px 0 20px; }
  .hero__logo { width: 108px; height: 108px; border-radius: 32px; }
  .hero__logo svg { width: 90px; }
  .logo-ring--one { width: 132px; height: 132px; }
  .logo-ring--two { width: 148px; height: 148px; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero__lead { max-width: 430px; }
  .hero__foot { display: none; }
  .lobby-card { padding: 28px 20px 25px; border-radius: 26px; }
  .onboarding-card { padding: 28px 18px 24px; border-radius: 25px; }
  .choice-grid--three { grid-template-columns: 1fr; }
  .choice-grid--three label > span { min-height: 43px; }
  .choice-grid label > span { font-size: 10px; }
  .plus-modal { padding: 28px 16px 20px; border-radius: 25px; }
  .plus-features { grid-template-columns: 1fr; gap: 6px; }
  .modal-backdrop { padding: 12px; }
  .lobby-art { transform: scale(.85); margin: -13px 0 3px; }
  .rules { flex-direction: column; align-items: center; gap: 9px; }
  .matcher { transform: scale(.82); margin: -25px 0 -9px; }
  .screen--chat { padding: calc(66px + env(safe-area-inset-top)) 0 0; align-items: stretch; }
  .chat-card { width: 100%; height: calc(100dvh - 66px - env(safe-area-inset-top)); min-height: 0; border-width: 1px 0 0; border-radius: 25px 25px 0 0; }
  .chat-head { padding: 12px 14px; min-height: 72px; }
  .stranger-avatar { width: 43px; height: 43px; border-radius: 14px; }
  .skip-btn span { display: none; }
  .skip-btn { width: 39px; padding: 0; justify-content: center; }
  .messages { padding: 16px max(13px, env(safe-area-inset-right)) 10px max(13px, env(safe-area-inset-left)); overscroll-behavior: contain; }
  .message { max-width: 84%; font-size: 13px; }
  .video-message { width: min(300px, 81vw); }
  .video-message video { max-height: 310px; }
  .composer { min-height: 61px; margin: 0 max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); padding-left: 7px; border-radius: 17px; }
  .composer textarea { font-size: 16px; }
  .composer__attach { width: 42px; height: 44px; }
  .send-btn { width: 45px; height: 45px; }
  .chat-hint { display: none; }
}

@media (max-width: 380px) {
  .brand { font-size: 14px; }
  .hero h1 { font-size: 40px; }
  .hero__lead { font-size: 13px; }
  .lobby-card h2, .search-wrap h2 { font-size: 27px; }
  .chat-head h2 { font-size: 13px; }
  .video-message { width: 78vw; }
}

@media (max-height: 520px) and (orientation: landscape) and (max-width: 900px) {
  .topbar { height: 51px; }
  .screen--chat { padding-top: 51px; }
  .chat-card { height: calc(100dvh - 51px); border-radius: 18px 18px 0 0; }
  .chat-head { min-height: 58px; padding-block: 7px; }
  .stranger-avatar { width: 39px; height: 39px; }
  .encryption-note { display: none; }
  .composer { min-height: 55px; }
}

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