:root { --bg: #f7f5f3; --paper: #ffffff; --card: #f1edea; --line: #e3ddd8; --text: #1c2333; --muted: #5d6475; --hot: #e2525c; --hot2: #d4434e; --ok: #1d9e75; --r: 18px; color-scheme: light; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
a { color: var(--hot); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.logo { font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -.5px; }
.logo b { background: linear-gradient(90deg, var(--hot), var(--hot2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(226,82,92,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(226,82,92,0); } 100% { box-shadow: 0 0 0 0 rgba(226,82,92,0); } }
.drive { background: #fff4dc; color: #7a4b00; border: 1px solid #f0c36b; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
main { flex: 1; padding: 8px 16px 16px; }
h1 { font-size: 30px; line-height: 1.1; margin: 18px 0 10px; letter-spacing: -.5px; }
h2 { font-size: 21px; margin: 18px 0 10px; }
p { margin: 8px 0; }
.muted { color: var(--muted); font-size: 14px; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 15px 18px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-align: center; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); margin: 10px 0; }
.btn.hot { background: linear-gradient(90deg, var(--hot), var(--hot2)); border: 0; color: #fff; }
.btn.sm { display: inline-block; width: auto; min-width: 46px; min-height: 46px; padding: 9px 14px; font-size: 18px; margin: 0; }
.btn.danger { color: #b8323d; border-color: #f0c9cc; }
.btn:disabled { opacity: .5; }
label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 14px; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
textarea { resize: vertical; min-height: 80px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); } .chk input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.err { color: #b8323d; font-weight: 600; min-height: 1.2em; }
.hero { text-align: center; padding: 30px 0 10px; } .hero .big { font-size: 64px; }
.rules li { margin: 8px 0; }
/* swipe deck */
.deck { position: relative; flex: 1 1 auto; min-height: 240px; margin-top: 2px; }
.card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--card) center/cover no-repeat; box-shadow: 0 10px 30px rgba(0,0,0,.45); touch-action: none; user-select: none; transition: transform .25s ease; }
.card.drag { transition: none; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.88)); }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.card .name { font-size: 28px; font-weight: 800; overflow-wrap: anywhere; } .card .name small { font-weight: 500; font-size: 22px; }
.card .dist { display: inline-block; margin: 6px 0; padding: 4px 10px; border-radius: 999px; background: rgba(226,82,92,.25); border: 1px solid rgba(226,82,92,.6); font-size: 14px; font-weight: 700; }
.card .bio { font-size: 15px; color: #f0dbe9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.card .bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; } .card .bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); } .card .bars i.on { background: #fff; }
.card .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 90px; }
.card .more { position: absolute; top: 18px; right: 12px; background: rgba(0,0,0,.45); border: 0; color: #fff; border-radius: 50%; width: 46px; height: 46px; font-size: 22px; }
.stamp { position: absolute; top: 40px; padding: 6px 14px; border: 4px solid; border-radius: 10px; font-size: 32px; font-weight: 900; opacity: 0; transform: rotate(-15deg); }
.stamp { top: 34%; left: 50%; pointer-events: none; } .stamp.like { color: var(--ok); border-color: var(--ok); transform: translateX(-50%) rotate(-10deg); } .stamp.nope { color: #ff5b6e; border-color: #ff5b6e; transform: translateX(-50%) rotate(10deg); }
.swipehint { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); max-width: 88%; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.8); color: #fff; font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap; pointer-events: none; }
@media (max-width: 340px) { .swipehint { font-size: 12px; padding: 6px 10px; } }
.acts { flex: none; display: flex; justify-content: center; gap: 28px; margin: 12px 0 0; }
.acts button { width: 70px; height: 70px; border-radius: 50%; border: 0; font-size: 30px; cursor: pointer; background: var(--card); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.acts .yes { background: linear-gradient(135deg, var(--hot), var(--hot2)); }
.empty { text-align: center; padding: 50px 10px; } .empty .big { font-size: 60px; }
/* matches + chat */
.list a { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.av { width: 56px; height: 56px; border-radius: 50%; background: var(--card) center/cover; flex: none; display: grid; place-items: center; font-size: 26px; }
.list .t { flex: 1; min-width: 0; } .list .t b { display: block; } .list .t span { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near { color: var(--ok) !important; font-weight: 700; }
.unread { background: var(--hot); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 13px; font-weight: 800; }
.chathead { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.chathead .t { flex: 1; } .chathead .t span { display: block; font-size: 13px; color: var(--muted); }
.msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
.msg { flex: none; max-width: 78%; overflow-wrap: anywhere; padding: 9px 13px; border-radius: 18px; background: var(--card); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, var(--hot), #ff5a5a); }
.composer { flex: none; display: flex; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; } .composer button { width: auto; margin: 0; padding: 0 18px; min-height: 48px; }
.lockbar { background: #fff4dc; color: #7a4b00; border: 1px solid #f0c36b; border-radius: 12px; padding: 10px 12px; font-weight: 600; margin: 8px 0; }
/* profile */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 3/4; border-radius: 12px; background: var(--card) center/cover; border: 1px dashed var(--line); display: grid; place-items: center; font-size: 28px; color: var(--muted); cursor: pointer; overflow: hidden; }
.ph button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 15px; } .ph button::before { content: ''; position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.65); z-index: -1; }
.ph input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* tabs, modal, toast */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; max-width: 560px; margin: 0 auto; display: flex; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; min-height: 58px; padding: 7px 0 7px; color: var(--muted); text-decoration: none; font-size: 22px; }
.tabs a span { font-size: 12px; font-weight: 600; } .tabs a.on { color: var(--text); } .tabs a.on span { color: var(--hot); }
.tabs b { position: absolute; top: 4px; left: 54%; background: var(--hot); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; }
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(5,2,8,.86); display: grid; place-items: center; padding: 20px; }
.modal .box { max-height: 88vh; max-height: 88dvh; overflow-y: auto; width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; text-align: center; }
.modal .pair { display: flex; justify-content: center; gap: 12px; margin: 14px 0; } .modal .pair .av { width: 96px; height: 96px; border: 3px solid var(--hot); }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; background: #1c2333; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; max-width: 90vw; font-weight: 600; }
@media (min-width: 700px) { h1 { font-size: 36px; } }

/* ---------- phone layout: Discover and Chat fill the screen exactly, with nothing hidden under the tabs or keyboard ---------- */
body[data-screen=discover] #app, body[data-screen=chat] #app { height: 100vh; height: var(--app-h, 100dvh); min-height: 0; overflow: hidden; }
body[data-screen=discover] main, body[data-screen=chat] main { display: flex; flex-direction: column; min-height: 0; padding-bottom: 10px; }
body[data-screen=chat] #app { padding-bottom: 0; } body[data-screen=chat] main { padding-bottom: 0; } body[data-screen=chat] .tabs { display: none; }
body[data-screen=chat] .top { display: none; } body[data-screen=chat] .chathead { padding-top: calc(8px + env(safe-area-inset-top)); }
body[data-screen=discover] main > .empty { margin: auto 0; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 46px; margin-left: -10px; font-size: 32px; line-height: 1; color: var(--text); text-decoration: none; }
a.tap { display: inline-block; padding: 10px 6px; }
.pw { position: relative; } .pw input { padding-right: 72px; } .pw button { position: absolute; right: 0; top: 0; height: 100%; min-width: 68px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; }
input[type=range] { height: 44px; padding: 0; background: none; border: 0; accent-color: var(--hot); }
.chk { padding: 6px 0; } .chk a { padding: 4px 0; }
.install { margin: 14px 0; padding: 14px 16px; border: 1px solid rgba(226,82,92,.55); border-radius: 16px; background: rgba(255,255,255,.88); text-align: left; }
.install b { display: block; font-size: 16px; margin-bottom: 2px; } .install p { margin: 4px 0 0; font-size: 15px; color: var(--text); } .install .btn { margin: 10px 0 0; }
.install .shareic { display: inline-block; padding: 0 6px; border: 1px solid var(--muted); border-radius: 6px; font-weight: 700; }

/* ---------- background art: a city at night, with pings pulsing out over it ---------- */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #0a0512; }
#bg .sky { position: absolute; inset: 0; background:
  radial-gradient(1px 1px at 12% 9%, #fff, transparent), radial-gradient(1.5px 1.5px at 28% 21%, #ffe7f3, transparent), radial-gradient(1px 1px at 44% 6%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 61% 15%, #fff, transparent), radial-gradient(1px 1px at 77% 7%, #ffd9ec, transparent), radial-gradient(1.5px 1.5px at 89% 24%, #fff, transparent),
  radial-gradient(1px 1px at 8% 30%, #fff, transparent), radial-gradient(1px 1px at 53% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 36%, #ffe7f3, transparent),
  radial-gradient(90% 55% at 18% 8%, rgba(120,40,190,.55), transparent 70%), radial-gradient(85% 50% at 92% 22%, rgba(226,82,92,.42), transparent 72%),
  radial-gradient(120% 45% at 50% 82%, rgba(226,82,92,.62), rgba(226,82,92,.3) 45%, transparent 75%), linear-gradient(#0a0512, #1c0b2c 55%, #3a1036); }
#bg .city { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.34) 45%, rgba(255,255,255,.68)), var(--bgt) center / cover no-repeat; }
@media (orientation: landscape) { #bg .city { background-image: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.34) 45%, rgba(255,255,255,.68)), var(--bgw); } }
#bg i { position: absolute; left: 50%; top: 58%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; border: 2px solid rgba(226,82,92,.85); box-shadow: 0 0 26px rgba(226,82,92,.55), inset 0 0 26px rgba(226,82,92,.3); opacity: 0; transform: scale(.02); animation: hpring 6s linear infinite; will-change: transform, opacity; }
#bg i:nth-of-type(2) { animation-delay: 2s; } #bg i:nth-of-type(3) { animation-delay: 4s; }
@keyframes hpring { 0% { transform: scale(.02); opacity: 0; } 8% { opacity: .95; } 100% { transform: scale(.75); opacity: 0; } }
#bg b { position: absolute; left: 50%; top: 58%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 5px #ff2d7a, 0 0 40px 14px rgba(226,82,92,.6); animation: hpdot 3s ease-in-out infinite; }
#bg b:nth-of-type(2) { left: 22%; top: 72%; width: 9px; height: 9px; animation-delay: 1s; } #bg b:nth-of-type(3) { left: 78%; top: 67%; width: 9px; height: 9px; animation-delay: 2s; }
@keyframes hpdot { 50% { opacity: .35; transform: scale(.75); } }
/* inside the app the art goes quiet: dim and still, for readable screens and battery life */
body.inapp #bg i, body.inapp #bg b { display: none; }
body.inapp #bg .sky, body.inapp #bg .city { opacity: .4; }
.top { background: rgba(255,255,255,.72); }
.hero h1, .hero p, .welcome-note { text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 16px rgba(0,0,0,.65); }
.welcome-note { color: var(--text) !important; background: rgba(255,255,255,.78); padding: 10px 12px; border-radius: 12px; }
.welcome-note a { color: #b8323d; }
.empty, .list, form, .rules { text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.msg { text-shadow: none; }
@media (prefers-reduced-motion: reduce) { #bg i { display: none; } #bg b, .dot { animation: none; } .card { transition: none; } }
@media (max-height: 620px) { .hero { padding: 8px 0 0; } .hero .big { font-size: 44px; } h1 { font-size: 26px; margin-top: 10px; } .acts { gap: 22px; margin-top: 8px; } .acts button { width: 58px; height: 58px; font-size: 26px; } .card .name { font-size: 24px; } .card .bio { -webkit-line-clamp: 2; } }
@media (max-width: 340px) { main { padding-left: 12px; padding-right: 12px; } h1 { font-size: 26px; } .row { gap: 6px; } }
.soon { margin: 14px 0; padding: 12px 16px; border: 1px solid rgba(226,82,92,.7); border-radius: 16px; background: rgba(255,255,255,.88); text-align: center; }
.soon span { display: inline-block; padding: 2px 10px; border-radius: 99px; background: linear-gradient(90deg, var(--hot), var(--hot2)); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.soon b { display: block; margin-top: 6px; font-size: 18px; } .soon p { margin: 2px 0 0; font-size: 15px; }
.chathead #vid { flex: none; }
.acts button { color: #fff; } .acts #no { background: rgba(255,255,255,.92); border: 2px solid rgba(255,255,255,.7); }
/* sideways phone: buttons sit on either side of the card, so everything fits without scrolling */
@media (max-height: 480px) { body[data-screen=discover] main { position: relative; } body[data-screen=discover] .deck { min-height: 0; width: min(340px, 56vw); margin: 0 auto; flex: 1 1 auto; }
  body[data-screen=discover] .acts { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; justify-content: space-between; pointer-events: none; } body[data-screen=discover] .acts button { pointer-events: auto; }
  .tabs a { min-height: 48px; padding: 3px 0; } }

/* guided install and alerts setup */
.modal.setup { z-index: 25; }
.guide { text-align: left !important; } .guide h2 { margin: 0 0 10px; font-size: 22px; } .guide p { margin: 8px 0; } .guide .btn { margin-top: 10px; }
.steps { margin: 12px 0; padding: 0; list-style: none; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 2px 0 14px 42px; font-size: 16px; line-height: 1.4; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--hot), var(--hot2)); }
.shareic2 { display: inline-block; width: 24px; height: 24px; vertical-align: -6px; color: #4da3ff; }
@media (max-height: 620px) { .guide { padding: 14px 16px; } .guide h2 { font-size: 19px; margin-bottom: 6px; } .guide .muted { display: none; } .steps { margin: 8px 0 0; } .steps li { font-size: 15px; line-height: 1.3; padding-bottom: 8px; } .guide .btn { margin-top: 6px; } }

/* ---------- computers: a real desktop layout. Phones and tablets held upright never see this. ---------- */
.keys, .side { display: none; }
@media (min-width: 900px) and (min-height: 600px) {
  body #app { max-width: none; padding: 0; }
  a.btn:hover, button.btn:hover { filter: brightness(1.12); }
  /* signed in: sidebar on the left, screen on the right */
  body.inapp #app { display: grid; height: 100vh; min-height: 0; overflow: hidden; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "logo main" "nav main"; }
  body.inapp.hasside #app { grid-template-columns: 240px 320px minmax(0, 1fr); grid-template-areas: "logo side main" "nav side main"; }
  body.inapp .top, body[data-screen=chat].inapp .top { grid-area: logo; display: flex; flex-wrap: wrap; gap: 8px; position: static; padding: 24px 22px 16px; background: rgba(255,255,255,.86); border-right: 1px solid var(--line); }
  body.inapp .logo { font-size: 26px; }
  body.inapp .tabs, body[data-screen=chat].inapp .tabs { grid-area: nav; position: static; display: flex; flex-direction: column; max-width: none; margin: 0; padding: 8px 12px; gap: 4px; background: rgba(255,255,255,.86); border-top: 0; border-right: 1px solid var(--line); }
  .tabs[hidden] { display: none !important; }
  body.inapp .tabs a { flex: none; flex-direction: row; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 14px; font-size: 22px; transition: background .15s; }
  body.inapp .tabs a span { font-size: 16px; } body.inapp .tabs a:hover { background: rgba(28,35,51,.07); } body.inapp .tabs a.on { background: rgba(226,82,92,.18); }
  body.inapp .tabs b { position: static; margin-left: auto; font-size: 12px; padding: 2px 8px; }
  body.inapp main { grid-area: main; min-height: 0; overflow-y: auto; padding: 32px max(32px, calc(50% - 370px)); }
  body.inapp main h1 { margin-top: 0; font-size: 34px; }
  .side { display: block; grid-area: side; min-height: 0; overflow-y: auto; padding: 24px 12px; background: rgba(255,255,255,.72); border-right: 1px solid var(--line); }
  .side h2 { margin: 0 8px 12px; font-size: 20px; } .side > p { margin: 0 8px; }
  .side .list a { padding: 10px; border-bottom: 0; border-radius: 14px; } .side .list a:hover { background: rgba(28,35,51,.07); } .side .list a.on { background: rgba(226,82,92,.18); } .side .av { width: 48px; height: 48px; }
  .list a { border-radius: 14px; transition: background .15s; } main .list a:hover { background: rgba(28,35,51,.07); }
  /* discover */
  body[data-screen=discover].inapp main { display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: 24px 32px 18px; }
  body[data-screen=discover] .deck { flex: 1 1 auto; width: min(480px, 100%); min-height: 0; max-height: 780px; }
  body[data-screen=discover] main > .empty { margin: auto; max-width: 480px; }
  .card { cursor: grab; } .card.drag { cursor: grabbing; } .acts button { transition: transform .12s; } .acts button:hover { transform: scale(1.08); }
  .keys { display: block; flex: none; margin-top: 10px; font-size: 14px; color: var(--muted); }
  .keys kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--muted); border-radius: 6px; font: inherit; text-align: center; }
  /* chat */
  body[data-screen=chat].inapp main { display: flex; flex-direction: column; overflow: hidden; padding: 14px max(24px, calc(50% - 420px)) 0; }
  body[data-screen=chat] .chathead { padding-top: 6px; } .msg { max-width: 62%; }
  body.hasside .chathead .back { display: none; }
  /* signed out: full-width landing page and centered panels */
  body:not(.inapp) .top { padding: 20px 48px; background: transparent; backdrop-filter: none; } body:not(.inapp) .logo { font-size: 28px; }
  body:not(.inapp) main { flex: none; width: 100%; max-width: 520px; margin: auto; padding: 32px; }
  body[data-screen=signup]:not(.inapp) main, body[data-screen=login]:not(.inapp) main, body[data-screen=rules]:not(.inapp) main { margin: 8px auto 32px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 24px; }
  body[data-screen=rules]:not(.inapp) main { max-width: 760px; }
  body[data-screen=signup] h1, body[data-screen=login] h1 { margin-top: 0; }
  body[data-screen=welcome]:not(.inapp) main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); column-gap: 72px; align-items: start; max-width: 1200px; padding: 8px 48px 40px; }
  body[data-screen=welcome] main > * { grid-column: 2; } body[data-screen=welcome] main > .btn { margin-top: 0; margin-bottom: 12px; } body[data-screen=welcome] main > .soon { margin-top: 2px; } 
  body[data-screen=welcome] .hero { grid-column: 1; grid-row: 1 / span 8; align-self: center; padding: 0; text-align: left; }
  body[data-screen=welcome] .hero .big { font-size: 110px; line-height: 1; } body[data-screen=welcome] .hero h1 { margin: 16px 0; font-size: clamp(48px, 5.4vw, 76px); line-height: 1.05; letter-spacing: -1px; } body[data-screen=welcome] .hero p { max-width: 520px; font-size: 20px; line-height: 1.45; color: var(--text); }
}

/* typing dots */
.typing { flex: none; display: inline-flex; align-self: flex-start; gap: 5px; margin: 0 0 8px; padding: 12px 14px; border-radius: 18px; background: var(--card); }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: hptype 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hptype { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }

/* big photo from the chat header */
.avbtn { padding: 0; border: 2px solid var(--hot); cursor: pointer; }
.chathead .avbtn { width: 64px; height: 64px; }
.modal.viewer { z-index: 26; padding: 0; background: rgba(5,2,8,.95); }
.vbox { display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; max-width: 760px; padding: calc(10px + env(safe-area-inset-top)) 10px calc(14px + env(safe-area-inset-bottom)); }
.vbox img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; }
.vinfo { flex: none; padding: 12px 8px 0; font-size: 20px; } .vinfo b { font-size: 24px; } .vinfo span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); } .vinfo p { margin: 6px 0 0; font-size: 16px; color: var(--text); overflow-wrap: anywhere; max-height: 30vh; overflow-y: auto; }
.vclose { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 1; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #fff; font-size: 22px; cursor: pointer; }
@media (max-height: 480px) { .vbox { flex-direction: row; max-width: none; gap: 14px; } .vbox img { flex: 1 1 60%; width: 60%; } .vinfo { flex: 1 1 40%; padding-top: 44px; } }

/* talk instead of type */
.composer .mic { flex: none; width: 48px; min-height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 22px; cursor: pointer; }
.mic.on { background: var(--hot); border-color: var(--hot); animation: hpmic 1.2s infinite; }
.mic:disabled { opacity: .4; }
@keyframes hpmic { 0%, 100% { box-shadow: 0 0 0 0 rgba(226,82,92,.7); } 60% { box-shadow: 0 0 0 11px rgba(226,82,92,0); } }
@media (prefers-reduced-motion: reduce) { .mic.on { animation: none; } }
@media (max-width: 340px) { .composer { gap: 6px; } .composer button:not(.mic) { padding: 0 12px; } }

.msg.pic { padding: 4px; background: var(--card); max-width: min(78%, 320px); }
.msg.pic img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
.picwrap { display: block; position: relative; width: 100%; min-width: 180px; min-height: 120px; padding: 0; border: 0; background: none; color: var(--text); overflow: hidden; border-radius: 14px; cursor: pointer; }
.picwrap img { filter: blur(26px) brightness(.8); transform: scale(1.15); }
.picwrap span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; text-shadow: 0 1px 4px #000; }
.picwrap.shown img { filter: none; transform: none; } .picwrap.shown span { display: none; }
.picprev { display: block; width: 100%; max-height: 50vh; object-fit: contain; margin: 10px 0; border-radius: 12px; background: #000; }
body.dropping #msgs { outline: 3px dashed var(--hot); outline-offset: -6px; border-radius: 14px; }
@media (max-width: 380px) { .composer .mic { width: 42px; } .composer { gap: 5px; } .composer button:not(.mic) { padding: 0 12px; } }
.mic.busy { opacity: .75; }
.livecam { display: block; background: #000; padding: 0; }
.livecam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .livecam video.selfie { transform: scaleX(-1); }
.camrow { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.snap { width: 76px; height: 76px; padding: 0; border-radius: 50%; border: 5px solid #fff; background: var(--hot); box-shadow: 0 0 0 3px rgba(0,0,0,.45); cursor: pointer; } .snap:active { transform: scale(.92); }
.flip { width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 24px; cursor: pointer; } .flip[hidden] { display: none; }
.callav { width: 96px; height: 96px; margin: 0 auto 12px; border: 3px solid var(--hot); background-size: cover; background-position: center; }
.callav.ringing { animation: hpcall 1.2s ease-in-out infinite; } @keyframes hpcall { 50% { box-shadow: 0 0 0 14px rgba(226,82,92,.25); } }
@media (prefers-reduced-motion: reduce) { .callav.ringing { animation: none; } }
.callask { z-index: 35; }
#callbox { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #000; height: 100vh; height: 100dvh; }
.callbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: #0d0710; }
.callbar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .callbar .btn { flex: none; width: auto; margin: 0; min-height: 44px; padding: 0 16px; }
#callframe { flex: 1 1 auto; min-height: 0; padding-bottom: env(safe-area-inset-bottom); } #callframe iframe { display: block; border: 0; }
/* Explore tab: always colorful so it never looks disabled */
.tabs a[data-tab=explore] { color: #fff; }
.tabs a[data-tab=explore] span { background: linear-gradient(90deg, var(--hot), var(--hot2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.tabs a[data-tab=explore]::before { content: ""; position: absolute; top: 5px; left: 50%; width: 38px; height: 30px; transform: translateX(-50%); border-radius: 12px; background: linear-gradient(135deg, rgba(226,82,92,.35), rgba(226,82,92,.35)); box-shadow: 0 0 14px rgba(226,82,92,.55); z-index: -1; }
.tabs a[data-tab=explore] { z-index: 0; isolation: isolate; }
body.inapp .tabs a[data-tab=explore] { background: linear-gradient(90deg, rgba(226,82,92,.22), rgba(226,82,92,.22)); }
body.inapp .tabs a[data-tab=explore]::before { display: none; }
.btn.explore { background: linear-gradient(90deg, rgba(226,82,92,.25), rgba(226,82,92,.25)); border: 1px solid rgba(226,82,92,.6); color: #fff; }
/* first screen text that search engines read; the app replaces it once it starts */
.seo-home h1 { font-size: 34px; line-height: 1.1; margin: 18px 0 10px; }
.seo-home h2 { font-size: 19px; margin: 22px 0 6px; }
.seo-home p { color: var(--muted); line-height: 1.55; }
.seo-home .btn { display: block; }

/* Me page: scores and results saved from HotPing Explore */
.scores { display: grid; gap: 8px; margin-bottom: 8px; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; background: rgba(28,35,51,.06); border: 1px solid rgba(226,82,92,.35); }
.score-row b { overflow-wrap: anywhere; } .score-row span { color: #b8323d; font-weight: 700; text-align: right; overflow-wrap: anywhere; } .score-row small { grid-column: 1 / -1; color: var(--muted); }

/* Me page: blocked people */
.block-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(28,35,51,.06); border: 1px solid rgba(226,82,92,.35); }
.block-row .av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(28,35,51,.06) center/cover no-repeat; font-size: 22px; }
.block-row b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.block-row .btn.unblock { width: auto; margin: 0; min-height: 44px; padding: 0 16px; flex: 0 0 auto; }

/* Share HotPing: QR code */
.qrbtn { margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(226,82,92,.6); background: rgba(226,82,92,.16); color: #fff; font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.qrbtn:hover, .qrbtn:focus-visible { background: rgba(226,82,92,.32); }
.modal.qr .qrimg { display: block; width: min(78vw, 320px); height: auto; aspect-ratio: 1; margin: 14px auto 6px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 4px rgba(226,82,92,.5), 0 0 34px rgba(226,82,92,.45); }
.modal.qr .qrurl { display: inline-block; margin: 6px 0 4px; font-weight: 800; font-size: 20px; letter-spacing: .3px; color: #b8323d; }
.modal.qr .qrtip { margin: 0 0 12px; font-size: 14px; }
.modal.qr .qrimg, .navqr img { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.qrdesk { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .qrdesk { display: flex; align-items: center; gap: 16px; margin: 14px 0; padding: 14px; border-radius: 18px; background: rgba(28,35,51,.06); border: 1px solid rgba(226,82,92,.35); text-align: left; }
  .qrdesk img { flex: 0 0 132px; border-radius: 12px; background: #fff; }
  .qrdesk p { margin: 4px 0 0; }
}
/* QR code in the left menu on computers, a little below Explore */
.navqr { display: none; }
@media (min-width: 900px) and (min-height: 600px) {
  body.inapp .tabs .navqr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 28px 2px 8px; padding: 12px; border: 1px solid rgba(226,82,92,.4); border-radius: 18px; background: rgba(28,35,51,.05); color: var(--muted); font: 600 13px/1.35 inherit; font-family: inherit; text-align: center; cursor: pointer; }
  body.inapp .tabs .navqr img { width: 100%; max-width: 190px; height: auto; aspect-ratio: 1; border-radius: 12px; background: #fff; }
  body.inapp .tabs .navqr:hover { border-color: rgba(226,82,92,.8); }
}

/* house ad: quiet card at the bottom of calm screens */
.hp-ad { margin: 34px 0 8px; } .hp-ad-tag { display: block; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); opacity: .75; margin: 0 0 5px 4px; }
.hp-ad a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hp-ad img { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 4px; }
.hp-ad span { flex: 1; min-width: 0; } .hp-ad b { display: block; font-size: 15px; } .hp-ad small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.hp-ad em { flex: none; font-style: normal; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--hot); color: var(--hot); }
@media (max-width: 380px) { .hp-ad em { display: none; } }

/* Member search (2026-11-08) */
.sbox { display: flex; gap: 8px; margin: 4px 0 6px; } .sbox input { flex: 1; font-size: 17px; }
.srow { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.srow .t { flex: 1; min-width: 0; } .srow .t b { display: block; } .srow .t span { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .avbtn { border: 0; cursor: pointer; color: inherit; } .srow .btn { flex: none; }
/* Small member search under the QR code on computers; phones use the Search tab instead */
.navsearch { display: none; }
@media (min-width: 900px) and (min-height: 600px) {
  body.inapp .tabs .navsearch { display: block; margin: 0 2px 8px; padding: 0; }
  body.inapp .tabs .navsearch input { width: 100%; box-sizing: border-box; padding: 8px 12px; font-size: 14px; border-radius: 999px; border: 1px solid rgba(226,82,92,.4); background: rgba(28,35,51,.05); color: var(--text); }
  body.inapp .tabs .navsearch input:focus { outline: none; border-color: rgba(226,82,92,.9); }
  body.inapp .tabs a.searchtab { display: none; }
}

/* Investor notes 2026-11-09: visible switch, tap photo for more, growing message box, recovery code, Me settings */
.visbar { flex: none; display: flex; justify-content: center; margin: 2px 0 8px; }
.vispill { font: inherit; font-size: 14px; font-weight: 700; color: var(--text); background: rgba(61,220,151,.14); border: 1px solid rgba(61,220,151,.55); border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 36px; }
.card .infobtn { margin-left: 8px; vertical-align: middle; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); color: #fff; font: 800 17px/1 Georgia, serif; font-style: italic; cursor: pointer; }
.card .dist.look { background: rgba(226,82,92,.22); border-color: rgba(226,82,92,.6); }
.vinfo { max-height: 55vh; overflow-y: auto; }
.viewer .noimg { flex: 1 1 auto; display: grid; place-items: center; font-size: 90px; }
.xtra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 12px 0 0; font-size: 15px; }
.xtra div { min-width: 0; } .xtra dt { color: var(--muted); font-size: 13px; } .xtra dd { margin: 1px 0 0; overflow-wrap: anywhere; }
.vtip { font-size: 13px !important; color: var(--muted) !important; }
.vacts { display: flex; gap: 10px; margin-top: 12px; } .vacts .btn { flex: 1; margin: 0; }
.reccode { margin: 10px 0; padding: 14px; border: 2px dashed var(--hot2); border-radius: 14px; font: 800 24px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; text-align: center; user-select: all; }
a.forgot { display: block; text-align: center; margin: 4px 0 6px; color: var(--hot2); }
.soon.lost { text-align: left; } .soon.lost b { margin-top: 0; } .soon.lost .btn { margin-bottom: 0; }
.xform { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } .xform > div { min-width: 0; }
@media (max-width: 340px) { .xform, .xtra { grid-template-columns: 1fr; } }
.chk.switch { margin: 8px 0; } .chk.switch .muted { font-size: 14px; }
details.games summary { cursor: pointer; list-style: none; } details.games summary::-webkit-details-marker { display: none; }
details.games summary h2 { display: inline-block; } details.games summary::after { content: ' ▾'; color: var(--muted); } details.games[open] summary::after { content: ' ▴'; }
.composer { align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 168px; height: 48px; resize: none; overflow-y: hidden; padding: 12px 14px; line-height: 1.35; }
.storybar { display: block; margin: 0 0 12px; padding: 11px 14px; border: 1px solid rgba(226,82,92,.6); border-radius: 14px; background: rgba(255,255,255,.85); color: var(--text); text-decoration: none; font-size: 15px; }
.storybar b { color: var(--hot2); }
.ph.zoom { cursor: zoom-in; }
/* Photo captions (2026-11-09) */
.ph .phcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; border-radius: 0 0 11px 11px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; line-height: 1.25; text-align: left; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; pointer-events: none; }
.ph .phcap.add { color: var(--muted); text-align: center; background: rgba(0,0,0,.45); }
.card .pcap { position: absolute; top: 24px; left: 12px; right: 66px; padding: 6px 10px; width: fit-content; max-width: calc(100% - 78px); border-radius: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; overflow-wrap: anywhere; pointer-events: none; }
.vinfo .vcap { margin: 0 0 8px !important; font-size: 17px !important; font-style: italic; color: #fff !important; }
.capform { display: flex; gap: 8px; margin: 0 0 10px; } .capform input { flex: 1; min-width: 0; padding: 10px 12px; } .capform .btn { width: auto; margin: 0; padding: 0 16px; min-height: 44px; }

/* ===== Clean coral look (Scott, 2026-11-09), off in Fancy mode (2026-11-10) ===== */
html:where(:not([data-theme=fancy])), :where(html:not([data-theme=fancy])) body { background: var(--bg); }
:where(html:not([data-theme=fancy])) .top { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
:where(html:not([data-theme=fancy])) .logo { color: var(--text); }
:where(html:not([data-theme=fancy])) .logo b { background: none; color: var(--hot); -webkit-background-clip: border-box; background-clip: border-box; }
:where(html:not([data-theme=fancy])) .dot { background: var(--hot); }
:where(html:not([data-theme=fancy])) #bg { background: var(--bg); }
:where(html:not([data-theme=fancy])) #bg .sky, :where(html:not([data-theme=fancy])) #bg .city, :where(html:not([data-theme=fancy])) #bg b { display: none; }
:where(html:not([data-theme=fancy])) #bg i { border: 1.5px solid rgba(226,82,92,.28); box-shadow: none; animation-duration: 9s; }
:where(html:not([data-theme=fancy])) body.inapp #bg i { display: none; }
:where(html:not([data-theme=fancy])) .hero h1, :where(html:not([data-theme=fancy])) .hero p, :where(html:not([data-theme=fancy])) .welcome-note, :where(html:not([data-theme=fancy])) .empty, :where(html:not([data-theme=fancy])) .list, :where(html:not([data-theme=fancy])) form, :where(html:not([data-theme=fancy])) .rules { text-shadow: none; }
:where(html:not([data-theme=fancy])) .hero .big { filter: none; }
:where(html:not([data-theme=fancy])) .welcome-note { background: var(--paper); border: 1px solid var(--line); color: var(--text) !important; }
:where(html:not([data-theme=fancy])) .welcome-note a { color: var(--hot); }
:where(html:not([data-theme=fancy])) .btn { background: var(--paper); border: 1px solid var(--line); color: var(--text); }
:where(html:not([data-theme=fancy])) .btn.hot { background: var(--hot); color: #fff; border: 0; }
:where(html:not([data-theme=fancy])) .btn.hot:hover { background: var(--hot2); }
:where(html:not([data-theme=fancy])) a.btn:hover, :where(html:not([data-theme=fancy])) button.btn:hover { filter: none; }
:where(html:not([data-theme=fancy])) input, :where(html:not([data-theme=fancy])) select, :where(html:not([data-theme=fancy])) textarea { background: #fff; border: 1px solid #d6d0ca; color: var(--text); }
:where(html:not([data-theme=fancy])) input:focus, :where(html:not([data-theme=fancy])) select:focus, :where(html:not([data-theme=fancy])) textarea:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px rgba(226,82,92,.15); }
:where(html:not([data-theme=fancy])) label { color: #3d4456; }
:where(html:not([data-theme=fancy])) .soon, :where(html:not([data-theme=fancy])) .install { background: var(--paper); border: 1px solid var(--line); }
:where(html:not([data-theme=fancy])) .soon span { background: var(--hot); }
:where(html:not([data-theme=fancy])) .card { background-color: var(--card); box-shadow: 0 6px 22px rgba(28,35,51,.16); color: #fff; }
:where(html:not([data-theme=fancy])) .card .dist { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.55); color: #fff; }
:where(html:not([data-theme=fancy])) .card .dist.look { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); }
:where(html:not([data-theme=fancy])) .card .bio { color: #f2f2f4; }
:where(html:not([data-theme=fancy])) .card .noimg { color: var(--muted); }
:where(html:not([data-theme=fancy])) .acts button { background: var(--paper); color: var(--text); box-shadow: 0 4px 14px rgba(28,35,51,.14); }
:where(html:not([data-theme=fancy])) .acts #no { background: var(--paper); border: 1.5px solid #cfd3db; color: #5d6475; }
:where(html:not([data-theme=fancy])) .acts .yes { background: var(--hot); color: #fff; }
:where(html:not([data-theme=fancy])) .vispill { background: #e8f6f0; border-color: #a9dcc6; color: #0f5e45; }
:where(html:not([data-theme=fancy])) .msg { background: var(--paper); border: 1px solid var(--line); color: var(--text); }
:where(html:not([data-theme=fancy])) .msg.mine { background: var(--hot); border-color: var(--hot); color: #fff; }
:where(html:not([data-theme=fancy])) .msg.pic { background: var(--paper); }
:where(html:not([data-theme=fancy])) .typing { background: var(--paper); border: 1px solid var(--line); }
:where(html:not([data-theme=fancy])) .unread, :where(html:not([data-theme=fancy])) .tabs b { background: var(--hot); }
:where(html:not([data-theme=fancy])) .storybar { background: var(--paper); border-color: var(--line); color: var(--text); }
:where(html:not([data-theme=fancy])) .storybar b { color: var(--hot); }
:where(html:not([data-theme=fancy])) .tabs { background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
:where(html:not([data-theme=fancy])) .tabs a { color: #7a8091; }
:where(html:not([data-theme=fancy])) .tabs a.on { color: var(--text); }
:where(html:not([data-theme=fancy])) .tabs a.on span { color: var(--hot); }
:where(html:not([data-theme=fancy])) .tabs a[data-tab=explore] { color: #7a8091; }
:where(html:not([data-theme=fancy])) .tabs a[data-tab=explore]::before { display: none; }
:where(html:not([data-theme=fancy])) .tabs a[data-tab=explore] span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--hot); font-weight: 700; }
:where(html:not([data-theme=fancy])) body.inapp .tabs a[data-tab=explore] { background: none; }
:where(html:not([data-theme=fancy])) .btn.explore { background: var(--paper); border: 1px solid var(--line); color: var(--text); }
:where(html:not([data-theme=fancy])) .modal { background: rgba(28,35,51,.45); }
:where(html:not([data-theme=fancy])) .modal .box { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(28,35,51,.22); }
:where(html:not([data-theme=fancy])) .toast { background: #1c2333; color: #fff; border: 0; }
:where(html:not([data-theme=fancy])) .steps li::before { background: var(--hot); }
:where(html:not([data-theme=fancy])) .modal.viewer, :where(html:not([data-theme=fancy])) .livecam, :where(html:not([data-theme=fancy])) #callbox { --text: #ffffff; --muted: #c4c8d2; --line: #3a4152; --paper: #262c3b; color: #fff; background: rgba(12,14,20,.96); }
:where(html:not([data-theme=fancy])) .modal.viewer .btn { background: #262c3b; border-color: #3a4152; color: #fff; }
:where(html:not([data-theme=fancy])) .modal.viewer .btn.hot { background: var(--hot); }
:where(html:not([data-theme=fancy])) .modal.viewer input { background: #1c2130; border-color: #3a4152; color: #fff; }
:where(html:not([data-theme=fancy])) .vclose { background: rgba(255,255,255,.14); }
:where(html:not([data-theme=fancy])) .callbar { background: #1c2333; color: #fff; }
:where(html:not([data-theme=fancy])) .qrbtn { background: #fff; border: 1px solid var(--line); color: var(--text); }
:where(html:not([data-theme=fancy])) .qrbtn:hover, :where(html:not([data-theme=fancy])) .qrbtn:focus-visible { background: #fbeeee; }
:where(html:not([data-theme=fancy])) .modal.qr .qrimg { box-shadow: 0 0 0 1px var(--line); }
:where(html:not([data-theme=fancy])) .modal.qr .qrurl { color: var(--hot); }
:where(html:not([data-theme=fancy])) .score-row, :where(html:not([data-theme=fancy])) .block-row, :where(html:not([data-theme=fancy])) .qrdesk { background: var(--paper); border: 1px solid var(--line); }
:where(html:not([data-theme=fancy])) .score-row span { color: #b8323d; }
:where(html:not([data-theme=fancy])) body.inapp .tabs .navqr { background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
:where(html:not([data-theme=fancy])) body.inapp .tabs .navsearch input { background: #fff; border: 1px solid #d6d0ca; color: var(--text); }
:where(html:not([data-theme=fancy])) .chathead, :where(html:not([data-theme=fancy])) .composer { border-color: var(--line); }
:where(html:not([data-theme=fancy])) .composer .mic { background: var(--paper); border-color: var(--line); }
:where(html:not([data-theme=fancy])) .avbtn { border-color: #fff; box-shadow: 0 0 0 1.5px var(--hot); }
:where(html:not([data-theme=fancy])) .reccode { border-color: var(--hot); background: #fff; }
:where(html:not([data-theme=fancy])) .phcap.add { background: rgba(28,35,51,.45) !important; color: #fff !important; }
:where(html:not([data-theme=fancy])) .ph { background-color: var(--card); border-color: #d6d0ca; color: #8a90a0; }
:where(html:not([data-theme=fancy])) .xtra dt { color: var(--muted); }
:where(html:not([data-theme=fancy])) .lost { background: var(--paper); }
@media (min-width: 900px) and (min-height: 600px) {
:where(html:not([data-theme=fancy])) body.inapp .top, :where(html:not([data-theme=fancy])) body[data-screen=chat].inapp .top, :where(html:not([data-theme=fancy])) body.inapp .tabs, :where(html:not([data-theme=fancy])) body[data-screen=chat].inapp .tabs, :where(html:not([data-theme=fancy])) .side { background: var(--paper); }
:where(html:not([data-theme=fancy])) body.inapp .tabs a:hover, :where(html:not([data-theme=fancy])) .side .list a:hover, :where(html:not([data-theme=fancy])) main .list a:hover { background: #f5f1ee; }
:where(html:not([data-theme=fancy])) body.inapp .tabs a.on, :where(html:not([data-theme=fancy])) .side .list a.on { background: #fbeceb; }
:where(html:not([data-theme=fancy])) body:not(.inapp) .top { background: transparent; border-bottom: 0; }
:where(html:not([data-theme=fancy])) body[data-screen=signup]:not(.inapp) main, :where(html:not([data-theme=fancy])) body[data-screen=login]:not(.inapp) main, :where(html:not([data-theme=fancy])) body[data-screen=rules]:not(.inapp) main { background: var(--paper); box-shadow: 0 10px 40px rgba(28,35,51,.08); }
:where(html:not([data-theme=fancy])) body[data-screen=welcome] .hero p { color: #3d4456; }
}
:where(html:not([data-theme=fancy])) .heroicon { display: block; width: 88px; height: 88px; margin: 0 auto 4px; border-radius: 22px; }
@media (min-width: 900px) and (min-height: 600px) {
:where(html:not([data-theme=fancy])) body[data-screen=welcome] .heroicon { width: 110px; height: 110px; margin: 0; border-radius: 26px; }
}

/* ===== Dark mode (Scott, 2026-11-09): a calm blue-gray, picked with the ☀️/🌙 switch. Light stays the default. ===== */
html[data-theme=dark] { --bg: #121923; --paper: #1b2431; --card: #232e3e; --line: #2f3b4e; --text: #e7ecf3; --muted: #a2acbd; --hot: #e9646d; --hot2: #f07a82; color-scheme: dark; }
html[data-theme=dark] .top, html[data-theme=dark] .tabs { background: rgba(27,36,49,.97); }
html[data-theme=dark] input, html[data-theme=dark] select, html[data-theme=dark] textarea, html[data-theme=dark] body.inapp .tabs .navsearch input { background: #151d28; border-color: #34425a; color: var(--text); }
html[data-theme=dark] label { color: #c3cad6; }
html[data-theme=dark] .tabs a, html[data-theme=dark] .tabs a[data-tab=explore] { color: #8e98aa; }
html[data-theme=dark] .acts #no { border-color: #3d4a60; color: #c3cad6; }
html[data-theme=dark] .vispill { background: #16352c; border-color: #2b6b55; color: #a6e4cc; }
html[data-theme=dark] .qrbtn { background: var(--paper); }
html[data-theme=dark] .qrbtn:hover { background: #26303f; }
html[data-theme=dark] .btn.danger { color: #ff9aa2; border-color: #5a2e36; }
html[data-theme=dark] .err { color: #ff9aa2; }
html[data-theme=dark] .score-row span { color: #ff9aa2; }
html[data-theme=dark] .drive, html[data-theme=dark] .lockbar { background: #3a2f12; color: #ffd98a; border-color: #6b5420; }
html[data-theme=dark] .modal { background: rgba(5,8,12,.6); }
html[data-theme=dark] .toast { background: #e7ecf3; color: #121923; }
html[data-theme=dark] .reccode { background: #151d28; }
html[data-theme=dark] .ph { border-color: #34425a; }
@media (min-width: 900px) and (min-height: 600px) {
  html[data-theme=dark] body.inapp .tabs a:hover, html[data-theme=dark] .side .list a:hover, html[data-theme=dark] main .list a:hover { background: #222c3a; }
  html[data-theme=dark] body.inapp .tabs a.on, html[data-theme=dark] .side .list a.on { background: #2c2a37; }
  html[data-theme=dark] body[data-screen=welcome] .hero p { color: #c3cad6; }
}
/* the switch */
.themebtn { flex: none; height: 36px; padding: 0 12px; margin-left: 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.themebtn:hover { border-color: var(--hot); }
.themerow { display: flex; gap: 8px; } .themerow .btn { flex: 1; margin: 6px 0; } .themerow .btn.on { border: 2px solid var(--hot); }

/* 5-minute call clock */
.calltime { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
.calltime.low { background: #e2525c; }
.callwarn { flex: none; padding: 10px 14px; background: #e2525c; color: #fff; font-weight: 700; text-align: center; font-size: 15px; }

/* ===== Rounds 1-4 (2026-11-10): reply window, out tonight, hotspots, I'm here, check-in, verified, voice, icebreakers ===== */
.reachbar, .herebar, .howcard { flex: none; border-radius: 12px; padding: 10px 12px; margin: 8px 0 0; font-size: 15px; line-height: 1.4; }
.reachbar.close, .reachbar.grace { background: rgba(29,158,117,.12); border: 1px solid rgba(29,158,117,.55); color: var(--text); }
.reachbar.grace { background: #fff4dc; border-color: #f0c36b; color: #7a4b00; }
.reachbar.locked { background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.herebar { background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.45); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.herebar .btn, .ckbar .btn { width: auto; margin: 0; min-height: 36px; padding: 0 14px; }
.howcard { background: var(--paper); border: 1px solid var(--line); text-align: center; }
.howcard b, .howcard .muted { display: block; } .howcard .muted { font-size: 13px; margin: 2px 0 8px; }
.howbtns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.howbtns button { font: inherit; font-size: 14px; padding: 8px 12px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.howcard .btn { margin: 8px 0 0; }
.lockt { color: var(--muted); }
.vchk { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; background: #1d9bf0; color: #fff; font-size: 12px; font-weight: 900; vertical-align: 2px; }
.card .dist.outt { background: rgba(124,58,237,.35); border-color: rgba(167,139,250,.9); }
.card .dist.pingm { background: rgba(236,72,153,.3); border-color: rgba(244,114,182,.9); }
.card.out { box-shadow: 0 0 0 3px rgba(167,139,250,.95), 0 0 28px rgba(124,58,237,.55); }
.voicebtn { font: inherit; font-size: 13px; font-weight: 700; margin-left: 8px; padding: 4px 10px; min-height: 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; vertical-align: 3px; }
.voicebtn.on { background: var(--hot); border-color: var(--hot); animation: hpmic 1.2s infinite; }
.vinfo .voicebtn { color: var(--text); background: var(--card); border-color: var(--line); }
.vtags { margin: 4px 0; } .vtags .dist { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card); border: 1px solid var(--line); }
.visbar { flex-wrap: wrap; gap: 6px; }
.vispill.outpill { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.45); } .vispill.outpill.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.vispill.hotpill { background: rgba(255,106,61,.12); border-color: rgba(255,106,61,.55); }
.chips { flex: none; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 0 8px; }
.chips button { font: inherit; font-size: 13px; font-weight: 700; padding: 5px 12px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer; }
.chips button.on { background: var(--hot); border-color: var(--hot); color: #fff; }
.crowd, .spark { flex: none; text-align: center; margin: 0 0 8px; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.crowd { background: linear-gradient(90deg, rgba(255,61,46,.14), rgba(255,138,61,.14)); border: 1px solid rgba(255,106,61,.6); }
.crowd .btn { width: auto; display: inline-block; margin: 4px 0 0 6px; min-height: 32px; padding: 0 12px; }
.spark { background: rgba(250,204,21,.16); border: 1px solid rgba(234,179,8,.6); }
svg.heat { display: block; width: min(100%, 300px); height: auto; margin: 10px auto; }
.heat .hbg { fill: #0f1724; stroke: #334155; } .heat .hring { fill: none; stroke: rgba(148,163,184,.35); stroke-dasharray: 3 4; }
.heat .hlab, .heat .hnorth { fill: #94a3b8; font-size: 10px; font-family: system-ui, sans-serif; } .heat .hnorth { text-anchor: middle; font-weight: 800; }
.heat .hme { fill: #fff; stroke: var(--hot); stroke-width: 3; } .heat .hme.ping { fill: none; stroke: #fff; stroke-width: 2; transform-origin: 140px 140px; animation: hping 2s infinite; }
@keyframes hping { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.hrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); text-align: left; font-size: 15px; } .hrow span { color: var(--muted); text-align: right; }
.hereflash { position: fixed; inset: 0; z-index: 40; background: var(--hc); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #fff; animation: hflash 1s infinite alternate; }
.hereflash .hfe { font-size: min(44vw, 220px); line-height: 1; filter: drop-shadow(0 6px 20px rgba(0,0,0,.35)); }
.hereflash p { font-size: 20px; max-width: 420px; text-shadow: 0 1px 4px rgba(0,0,0,.4); } .hereflash .btn { max-width: 320px; background: rgba(255,255,255,.92); color: #111; border: 0; }
@keyframes hflash { from { filter: brightness(1); } to { filter: brightness(1.25); } }
.ckbar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 64px); z-index: 18; width: min(560px, calc(100% - 24px)); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 14px; background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; box-shadow: 0 6px 20px rgba(0,0,0,.15); font-size: 14px; }
.ckbar.late { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.icelist .btn { text-align: left; font-weight: 600; }
.pose { font-size: 20px; font-weight: 800; margin: 6px 0 10px; }
.btn.rec { background: var(--hot); color: #fff; border-color: var(--hot); }
.soon.lost audio { width: 100%; margin: 8px 0 4px; }
.vq { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 12px 0; }
.vqrow { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0; } .vqrow img { height: 180px; border-radius: 10px; flex: none; } .vqrow img:first-child { outline: 3px solid var(--hot); }
.btn.big { font-size: 22px; min-height: 64px; }
[data-theme="dark"] .ckbar { background: #064e3b; color: #d1fae5; border-color: #10b981; } [data-theme="dark"] .ckbar.late { background: #7f1d1d; color: #fee2e2; border-color: #f87171; }
[data-theme="dark"] .reachbar.grace { background: #4a3410; color: #fde68a; border-color: #a16207; } [data-theme="dark"] .spark { color: var(--text); }
@media (max-width: 520px) { .visbar { flex-wrap: nowrap; gap: 5px; } .visbar .vispill { font-size: 13px; padding: 6px 10px; white-space: nowrap; } .wideonly { display: none; } }
