:root {
  --bg: #0a0a0a;
  --panel: #111113;
  --panel2: #161618;
  --line: #1f2126;
  --line2: #2a2d33;
  --text: #ededed;
  --dim: #9097a0;
  --faint: #5d636c;
  --accent: #ff4f7b;
  --accent-soft: rgba(255, 79, 123, .14);
  --good: #5ee0a0;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --top: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3e46; }

/* top bar */
.top { height: var(--top); display: flex; align-items: center; gap: 28px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand-mark { height: 17px; width: auto; display: block; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--dim); font-weight: 500; font-size: 13.5px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--panel2); }
.stats { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); display: flex; gap: 16px; white-space: nowrap; }
.stats b { color: var(--text); font-weight: 500; }

main { height: calc(100% - var(--top)); }
.view { height: 100%; }

/* lounge */
.lounge { display: grid; grid-template-columns: 1fr 380px; }
.stage { position: relative; overflow: hidden; background: #080808; border-right: 1px solid var(--line); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: default; }
.hud { position: absolute; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; pointer-events: none; }
.hud-tl { top: 14px; left: 16px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.hud-tr { top: 14px; right: 16px; }
.hud-br { bottom: 14px; right: 16px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hero { position: absolute; left: 16px; bottom: 16px; max-width: 440px; padding: 20px 22px; background: rgba(10, 10, 10, .86); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(6px); }
.hero h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.12; font-weight: 500; letter-spacing: -.025em; }
.hero p { margin: 0; color: var(--dim); font-size: 13.5px; }

.side { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.side-block { border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-block.grow { flex: 1; border-bottom: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.side-head > span:first-child { color: var(--text); }
.tabs { display: flex; gap: 2px; }
.tabs button { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; color: var(--faint); }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--text); color: #0a0a0a; }

.dates { max-height: 260px; overflow-y: auto; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.dates .empty { padding: 2px 6px 6px; color: var(--faint); font-size: 13px; }
.date-row { text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .15s; }
.date-row:hover { border-color: var(--line2); }
.date-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.date-top .where { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.date-line { margin-top: 6px; color: var(--dim); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.date-bar { margin-top: 8px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.date-bar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }

.log { flex: 1; overflow-y: auto; min-height: 0; }
.ev { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; animation: in .35s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(-4px); } }
.ev-t { font-family: var(--mono); font-size: 10.5px; color: var(--faint); line-height: 1.35; padding-top: 2px; }
.ev-k { display: block; margin-top: 3px; color: var(--dim); letter-spacing: .04em; }
.ev-k.hot { color: var(--accent); }
.ev-k.good { color: var(--good); }
.ev-b { line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.ev-b .who { font-weight: 500; cursor: pointer; }
.ev-b .who:hover { text-decoration: underline; text-underline-offset: 2px; }
.ev-b .q { color: #cfd3d8; }
.ev-b .dimq { color: var(--dim); }
.ev-b .rate { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-left: 4px; }
.log .empty { padding: 16px; color: var(--faint); }

/* pages */
.page { overflow-y: auto; padding: 40px 32px 80px; }
.page-head { max-width: 1180px; margin: 0 auto 28px; }
.page-head h2 { margin: 0 0 6px; font-size: 30px; font-weight: 500; letter-spacing: -.025em; }
.page-head p { margin: 0; color: var(--dim); }
.page.narrow .page-head, .rules { max-width: 720px; }

.grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pcard { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; overflow: hidden; transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.pcard-img { aspect-ratio: 4 / 4.4; position: relative; }
.pcard-img .tag { position: absolute; top: 10px; left: 10px; }
.pcard-body { padding: 12px 14px 14px; }
.pcard-name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.pcard-name span { color: var(--dim); font-weight: 400; font-size: 13px; margin-left: 6px; }
.pcard-tag { margin-top: 4px; color: var(--dim); font-size: 13px; line-height: 1.4; }

.photo { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; display: grid; place-items: center; overflow: hidden; }
.photo .fig { width: 58%; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.photo.small .fig { width: 92%; filter: none; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 999px; background: rgba(10,10,10,.75); border: 1px solid var(--line2); color: var(--dim); }
.tag.couple, .tag.date { color: var(--accent); border-color: rgba(255,79,123,.4); }
.tag.dating { color: var(--good); border-color: rgba(94,224,160,.35); }
.tag.ex { color: var(--faint); }

.couples { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.crow { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.cpair { display: flex; }
.cpair .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--panel); background: var(--panel2); cursor: pointer; }
.cpair .av + .av { margin-left: -14px; }
.cnames { font-size: 16px; font-weight: 500; }
.cnames .who { cursor: pointer; }
.cmeta { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.cverd { margin-top: 8px; display: grid; gap: 4px; font-size: 13px; color: #cfd3d8; }
.cverd b { font-weight: 500; color: var(--text); }
.cverd .rate { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.cright { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.feel { font-family: var(--mono); font-size: 11px; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.empty-page { max-width: 1180px; margin: 0 auto; padding: 40px 0; color: var(--faint); }

.rules { margin: 0 auto; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
.rules li { counter-increment: r; position: relative; padding: 18px 20px 18px 60px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--dim); line-height: 1.55; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 20px; top: 19px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.rules b { color: var(--text); font-weight: 500; display: block; margin-bottom: 2px; }

/* modal: profile card */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: min(920px, 100%); display: grid; grid-template-columns: 360px 1fr; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.modal-box:not(.wide) { height: min(680px, calc(100vh - 40px)); grid-template-rows: minmax(0, 1fr); }
.modal-box.wide { display: flex; flex-direction: column; width: min(640px, 100%); max-height: min(720px, calc(100vh - 40px)); }
.m-photo { position: relative; min-height: 0; }
.m-photo .photo { position: absolute; inset: 0; }
.m-photo .photo .fig { width: 52%; margin-bottom: 90px; }
.m-photo .shade { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.m-name { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.m-age { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 4px; }
.m-made { margin-top: 10px; }
.m-body { overflow-y: auto; padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.m-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(10,10,10,.7); border: 1px solid var(--line2); display: grid; place-items: center; z-index: 2; color: var(--dim); }
.m-close:hover { color: var(--text); }
.m-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); padding-right: 40px; }
.m-status .who { color: var(--text); cursor: pointer; }
.m-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.m-status .dot.hot { background: var(--accent); }
.m-tagline { font-size: 19px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.m-sec h4 { margin: 0 0 7px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.m-sec p { margin: 0; color: #d6d9dd; line-height: 1.55; }
.prompt { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.prompt + .prompt { margin-top: 8px; }
.prompt .pq { font-size: 12px; color: var(--dim); }
.prompt .pa { margin-top: 3px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12.5px; color: #d6d9dd; }
.chip.no { color: var(--dim); }
.rels { display: grid; gap: 6px; }
.rel { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; }
.rel .who { cursor: pointer; font-weight: 500; }
.meter { width: 70px; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; display: inline-block; }
.meter i { position: absolute; top: 0; bottom: 0; left: 50%; }
.recent { display: grid; gap: 8px; }
.recent div { font-size: 13px; color: #cfd3d8; line-height: 1.45; }
.recent .k { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-transform: uppercase; margin-right: 6px; }

.dt-head { padding: 22px 24px 4px; }
.dt-head h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.dt-head h3 .who { cursor: pointer; }
.dt-head p { margin: 4px 0 0; color: var(--dim); font-size: 13px; }
.dt-lines { padding: 14px 24px 24px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.bub { max-width: 82%; padding: 10px 14px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.bub.r { align-self: flex-end; background: #1d1d21; }
.bub small { display: block; font-family: var(--mono); font-size: 10px; color: var(--faint); text-transform: uppercase; margin-bottom: 3px; letter-spacing: .05em; }
.dt-verdict { padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 12px; font-size: 13px; color: var(--dim); }

@media (max-width: 980px) {
  body { overflow: auto; }
  .top { gap: 14px; padding: 0 16px; overflow-x: auto; }
  .stats { display: none; }
  main { height: auto; }
  .lounge { grid-template-columns: 1fr; height: auto; }
  .stage { height: 62vh; min-height: 380px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { right: 16px; max-width: none; padding: 14px 16px; }
  .hero h1 { font-size: 20px; }
  .hero p { display: none; }
  .side { height: 70vh; }
  .page { padding: 28px 16px 60px; height: auto; }
  .modal-box { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-box:not(.wide) { height: auto; max-height: calc(100vh - 40px); grid-template-rows: auto; }
  .m-photo { min-height: 340px; }
  .m-body { overflow: visible; }
  .crow { grid-template-columns: 80px 1fr; }
  .cright { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
  .nav a { padding: 7px 8px; font-size: 13px; }
  .brand { font-size: 15px; }
}
