:root { --bg: #0d0710; --card: #1a1020; --line: #33213d; --text: #fbeef6; --muted: #b59bb0; --hot: #ff2d7a; --hot2: #ff8a3d; --ok: #3ddc97; --r: 18px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { max-width: 560px; margin: 0 auto; min-height: 100%; 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(13,7,16,.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(255,45,122,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(255,45,122,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,122,0); } }
.drive { background: #3a2a05; color: #ffd36b; border: 1px solid #6b4f0c; 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; padding: 9px 14px; font-size: 14px; margin: 4px 4px 4px 0; }
.btn.danger { color: #ff7b8f; border-color: #5a2030; }
.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: #120a17; 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: #ff7b8f; 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; height: min(68vh, 640px); margin-top: 6px; }
.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; } .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(255,45,122,.25); border: 1px solid rgba(255,45,122,.6); font-size: 14px; font-weight: 700; }
.card .bio { font-size: 15px; color: #f0dbe9; }
.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: 38px; height: 38px; font-size: 20px; }
.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.like { left: 22px; color: var(--ok); border-color: var(--ok); } .stamp.nope { right: 22px; color: #ff5b6e; border-color: #ff5b6e; transform: rotate(15deg); }
.acts { display: flex; justify-content: center; gap: 28px; margin: 16px 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 { 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 { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 90px; }
.msg { max-width: 78%; 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 { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; display: flex; gap: 8px; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
.composer input { flex: 1; } .composer button { width: auto; margin: 0; padding: 0 18px; }
.lockbar { background: #3a2a05; color: #ffd36b; border: 1px solid #6b4f0c; 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: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; }
.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(20,11,24,.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; padding: 9px 0 10px; 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 { 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: #2a1a30; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; max-width: 90vw; font-weight: 600; }
@media (min-width: 700px) { .deck { height: 620px; } h1 { font-size: 36px; } }
