/* Хаб: матовый чёрный, лайм только как акцент. Тема фиксированная,
   цвета клиента Telegram не наследуем. */
:root {
  --bg: #0e0e0e;
  --card: #181818;
  --card-border: #262626;
  --text: #f2f2f2;
  --muted: #8a8a8a;
  --accent: #c8ff3d;
  --accent-dim: #9ccc1f;
  --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  padding: env(safe-area-inset-top) 16px calc(24px + env(safe-area-inset-bottom));
  min-height: 100vh;
  overscroll-behavior: none;
  user-select: none;
}

.top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 2px 14px;
}
.brand { font-size: 17px; letter-spacing: .02em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.brand b { color: var(--text); font-weight: 700; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(200,255,61,.5); }
.hint { font-size: 13px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block; color: inherit; text-decoration: none;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .12s ease, border-color .12s ease;
}
.card:active, .card.active {
  transform: scale(.975);
  border-color: var(--accent);
}
.cover { aspect-ratio: 1 / 1; background: #111; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 13px; }
.name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.age {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--text); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.card.active .age { border-color: var(--accent); color: var(--accent); }

.empty { text-align: center; color: var(--muted); margin-top: 40px; }

/* скелет на время загрузки */
.card.skeleton .cover { background: linear-gradient(100deg, #151515 30%, #1d1d1d 50%, #151515 70%); background-size: 200% 100%; animation: sh 1.2s infinite; }
.card.skeleton .name { width: 70%; height: 14px; border-radius: 6px; background: #222; }
.card.skeleton .age { border-color: #222; }
@keyframes sh { to { background-position: -200% 0; } }
