:root {
  color-scheme: dark;
  --brand: #59003b;
  --brand-light: #d81a87;
  --background: #101010;
  --card: #1c1c1c;
  --green: #1dc900;
  --text: #fff;
  --muted: #6e6e6e;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font-family: "DM Sans", Arial, sans-serif;
}

button,
input { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

.directory-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: #111;
  box-shadow: 0 0 60px rgba(0, 0, 0, .35);
}

.directory-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 76px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  padding: env(safe-area-inset-top, 0) 9px 0;
  background: var(--brand);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .35);
}

.brand-lockup {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.brand-lockup > p {
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(9px, 2.65vw, 11px);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .22);
}

.menu-button,
.search-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-button { gap: 4px; }

.menu-button i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.search-button svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.livegirl-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  white-space: nowrap;
  transform: translateY(-1px);
}

.livegirl-logo > span {
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(255, 255, 255, .12);
}

.brand-camera {
  width: clamp(25px, 7vw, 31px);
  height: auto;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 5px rgba(255, 255, 255, .12));
}

.brand-camera .camera-light {
  fill: currentColor;
  stroke: none;
}

.brand-camera .camera-pulse,
.brand-camera .camera-lens {
  fill: #2ee21b;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}

.brand-camera .camera-pulse {
  opacity: .42;
  animation: camera-pulse 1.8s ease-out infinite;
}

.brand-camera .camera-lens {
  filter: drop-shadow(0 0 3px rgba(46, 226, 27, .95));
  animation: camera-lens-glow 1.8s ease-in-out infinite;
}

@keyframes camera-pulse {
  0%, 30% { opacity: .46; transform: scale(.8); }
  72%, 100% { opacity: 0; transform: scale(1.9); }
}

@keyframes camera-lens-glow {
  0%, 100% { opacity: .84; }
  50% { opacity: 1; }
}

.search-panel {
  position: sticky;
  z-index: 19;
  top: 76px;
  padding: 10px;
  background: #171717;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .28);
}

.search-panel label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.search-panel input {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #393939;
  border-radius: 8px;
  color: #fff;
  background: #242424;
  outline: none;
}

.search-panel input:focus { border-color: #b51b75; }

.age-notice {
  margin: 0;
  padding: 7px 10px;
  color: rgba(255, 255, 255, .72);
  background: #171217;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.age-notice strong {
  margin-right: 3px;
  color: #ff78ba;
  font-size: 10px;
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 5px 18px;
}

.profile-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px 7px 10px 10px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
  cursor: pointer;
}

.profile-card:focus-visible {
  outline: 2px solid #f058a9;
  outline-offset: 2px;
}

.profile-card > header {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 9px;
}

.profile-card > header strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(8px, 2.5vw, 10px);
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card > header span {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  font-style: italic;
  font-weight: 600;
}

.profile-photo {
  position: relative;
  aspect-ratio: .88;
  overflow: hidden;
  background: #2a2a2a;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 24%;
  transition: transform .3s ease;
}

.profile-card:active .profile-photo img { transform: scale(1.015); }

.favorite-button {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 8px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0 0 1px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(80, 80, 80, .62);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  backdrop-filter: blur(3px);
  font-size: 19px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.favorite-button[aria-pressed="true"] {
  color: #ff2d87;
  background: rgba(255, 255, 255, .92);
  transform: scale(1.06);
}

.online-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  background: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.online-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, .75);
}

.empty-search { margin: 42px 16px; color: #8d8d8d; font-size: 13px; text-align: center; }

@media (min-width: 521px) {
  body { padding: 18px 0; }
  .directory-shell { overflow: hidden; border-radius: 12px; }
  .directory-header { border-radius: 12px 12px 0 0; }
  .profile-grid { padding-inline: 7px; }
}

@media (max-width: 340px) {
  .directory-header { grid-template-columns: 43px 1fr 43px; padding-inline: 3px; }
  .menu-button, .search-button { width: 40px; }
  .profile-grid { gap: 6px; padding-inline: 3px; }
  .profile-card > header { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-photo img,
  .favorite-button { transition: none; }
  .brand-camera .camera-pulse,
  .brand-camera .camera-lens { animation: none; }
}
