:root {
  --primary: #ff005c;
  --primary2: #ff3b85;
  --glass: rgba(18,18,18,0.58);
  --glass-border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.72);
}

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

html, body {
  width:100%;
  min-height:100%;
  background:#000;
  font-family:'Inter',sans-serif;
  color:var(--text);
  overflow-y:auto;
}

.video-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.video-overlay,
.noise,
.app {
  position: relative;
  z-index: 1;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top,
    rgba(255,0,92,0.15),
    transparent 40%),

    linear-gradient(
      to bottom,
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.35)
    );
}

.noise {
  position:fixed;
  inset:0;
  opacity:0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat:repeat;
  background-size:200px 200px;
  pointer-events:none;
}

.app {
  width:100%;
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  padding-top:max(18px, env(safe-area-inset-top));
  padding-bottom:max(18px, env(safe-area-inset-bottom));
}

.card {
  width:100%;
  max-width:430px;
  background:var(--glass);
  border:1px solid var(--glass-border);
  border-radius:32px;
  padding:clamp(18px, 5vw, 24px);
  box-shadow:0 12px 32px rgba(0,0,0,0.42);
  position:relative;
  overflow:hidden;
  flex-shrink:0;
}

.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:22px;
}

.brand {
  flex:1 1 auto;
  min-width:0;
  font-size:clamp(14px, 4.6vw, 18px);
  font-weight:800;
  letter-spacing:0.2px;
  line-height:1.12;
  text-transform:none;
  color:#fff;
  opacity:0.96;
}

/* блок онлайна справа: лейбл сверху, точка+число по центру под ним */
.online-block {
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  text-align:center;
}

.online-label {
  font-size:clamp(9px, 2.7vw, 10.5px);
  font-weight:400;
  letter-spacing:0.4px;
  line-height:1;
  color:rgba(255,255,255,0.45);
  white-space:nowrap;
}

.online-row {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-size:clamp(9px, 2.7vw, 10.5px);
  font-weight:400;
  letter-spacing:0.4px;
  line-height:1;
  color:rgba(255,255,255,0.45);
}

.online-row #onlineCount {
  font-variant-numeric:tabular-nums;
  letter-spacing:0.3px;
}

.dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#00FF00;
  box-shadow:0 0 8px #00FF00;
  animation:pulse 0.7s infinite;
  flex:0 0 auto;
}

@keyframes pulse {
  0%,100% {
    opacity:1;
    transform:scale(1);
  }

  50% {
    opacity:0.6;
    transform:scale(0.85);
  }
}

.progress {
  width:100%;
  height:6px;
  background:rgba(255,255,255,0.08);
  border-radius:999px;
  overflow:hidden;
  margin-bottom:28px;
}

.progress-bar {
  width:14%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, var(--primary), var(--primary2));
  transition:width .35s ease;
}

h1 {
  font-size:clamp(24px, 7.4vw, 32px);
  line-height:1.1;
  margin-bottom:8px;
  font-weight:800;
}

p {
  font-size:clamp(14px, 4vw, 15px);
  line-height:1.6;
  color:var(--muted);
  margin-bottom:24px;
}

.badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  font-size:13px;
  font-weight:600;
  margin-bottom:16px;
}

button {
  width:100%;
  border:none;
  border-radius:20px;
  padding:18px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:.24s ease;
  min-height:44px;
  -webkit-appearance:none;
  touch-action: manipulation;
}

.primary {
  color:white;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow:0 12px 28px rgba(255,0,92,0.34);
}

.primary:active {
  transform:scale(0.97);
  box-shadow:0 6px 16px rgba(255,0,92,0.25);
}

.secondary {
  color:rgba(255,255,255,0.75);
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.12);
}

.secondary:active {
  background:rgba(255,255,255,0.12);
  transform:scale(0.97);
}

/* ===============================================================
   ЛОАДЕР: круг + анимированный значок геолокации (map-pin)
   =============================================================== */
.circle-container {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 0 auto 32px;
}

.circle-bg {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.08);
}

.circle-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  animation: progressRotate 3.8s linear forwards;
  transform: rotate(-45deg);
  will-change: transform;
}

@keyframes progressRotate {
  to {
    transform: rotate(270deg);
  }
}

/* Значок геолокации в центре круга */
.geo-loc {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.geo-pin-marker {
  width:34px;
  height:auto;
  color:var(--primary);
  filter: drop-shadow(0 5px 9px rgba(255,0,92,0.45));
  animation: pinBob 1.3s ease-in-out infinite;
  transform-origin:center bottom;
}

.geo-pin-base {
  width:18px;
  height:6px;
  margin-top:3px;
  border-radius:50%;
  background:rgba(255,0,92,0.40);
  animation: pinBase 1.3s ease-in-out infinite;
}

@keyframes pinBob {
  0%,100% { transform: translateY(-2px); }
  50%     { transform: translateY(3px); }
}

@keyframes pinBase {
  0%,100% { transform: scaleX(1);   opacity:.5; }
  50%     { transform: scaleX(1.55); opacity:.22; }
}

.pulse-button {
  animation: pulseButton 2s infinite ease-in-out;
}

@keyframes pulseButton {
  0%,100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 25px rgba(255, 0, 92, 0.6);
  }
}

.status-text {
  font-size:17px;
  font-weight:600;
  min-height:54px;
  margin-bottom:12px;
}

.found-count {
  font-size:clamp(44px, 13vw, 56px);
  font-weight:800;
  color:var(--primary);
  margin:8px 0 4px;
}

.checklist {
  text-align:left;
  margin-top:28px;
  font-size:14.5px;
}

.check-item {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:11px;
  color:rgba(255,255,255,0.8);
  opacity:0;
  transform:translateY(6px);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity:1;
    transform:translateY(0);
  }
}

/* ===============================================================
   КАРТОЧКИ ДЕВУШЕК: фото 168px cover + шильдик поверх фото
   =============================================================== */
.girls-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:12px;
}

.girl-card {
  position:relative;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  cursor:pointer;
  transition:.2s ease;
}

.girl-card:active {
  transform:scale(0.97);
}

.girl-card img {
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
}

/* Шильдик в левом нижнем углу поверх фото */
.girl-badge {
  position:absolute;
  left:8px;
  bottom:8px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:calc(100% - 16px);
  padding:6px 10px;
  border-radius:14px;
  background:rgba(0,0,0,0.52);
  border:1px solid rgba(255,255,255,0.14);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}

.girl-online {
  font-size:9.5px;
  font-weight:400;
  letter-spacing:0.4px;
  text-transform:lowercase;
  color:#00ff73;
  text-shadow:0 0 8px rgba(0,255,115,0.55);
  animation: onlineBlink 1s infinite ease-in-out;
  flex:0 0 auto;
}

@keyframes onlineBlink {
  0%,100% { opacity:1; }
  50%     { opacity:0.25; }
}

.girl-name {
  font-size:14px;
  font-weight:700;
  color:#ffffff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.footer {
  margin-top:20px;
  text-align:center;
  font-size:12px;
  color:rgba(255,255,255,0.3);
}

.footer a {
  color:inherit;
  text-decoration:none;
}

.footer a:hover {
  color:rgba(255,255,255,0.6);
}

/* ===============================================================
   GEO FLAG + онлайн (левый верхний угол)
   =============================================================== */
.topbar-left {
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  margin-right:12px;
}

.geo-flag-wrap {
  flex:0 0 auto;
  display:flex;
  align-items:center;
}

.geo-flag {
  width:30px;
  height:30px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  border:2px solid rgba(255,255,255,0.18);
  box-shadow:0 4px 14px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(0,0,0,0.15);
  background:#15151a;
}

/* выделяем «18+» в бейдже интро */
.badge .age {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.08em;
  letter-spacing: 0.3px;
  margin-right: 6px;
}

/* ===============================================================
   АДАПТИВ под узкие экраны
   =============================================================== */
@media (max-width:380px) {
  .card { border-radius:26px; }
  .topbar { margin-bottom:18px; }
  .geo-flag { width:26px; height:26px; }
  .progress { margin-bottom:22px; }
  .girls-grid { gap:10px; }
  .girl-card img { height:168px; }
  .girl-name { font-size:13px; }
  button { padding:16px; font-size:15px; }
}

@media (max-width:330px) {
  .girl-card img { height:150px; }
  .status-text { font-size:15.5px; min-height:46px; }
  .circle-container { width:120px; height:120px; }
  .circle-bg,
  .circle-progress { width:120px; height:120px; }
}

/* уважаем reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .geo-pin-marker,
  .geo-pin-base,
  .pulse-button,
  .girl-online,
  .dot { animation:none !important; }
}
