/* Dark Horse — mobile + PWA polish */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.container {
  max-width: 500px;
  width: 100%;
  padding: 16px 16px calc(16px + var(--safe-bottom));
  text-align: center;
}

/* Finger-friendly buttons */
.btn {
  min-height: 48px;
  padding: 14px 28px;
  font-size: 1rem;
  touch-action: manipulation;
}
.btn-primary {
  min-height: 52px;
  width: 100%;
  max-width: 100%;
}
.btn-heart, .btn-skip {
  min-height: 52px;
  min-width: 44%;
}

/* Reduce accidental zoom on inputs if any */
input, select, textarea {
  font-size: 16px;
}

/* Install banner */
.dh-install-bar {
  position: sticky;
  bottom: 0;
  z-index: 100;
  margin: 12px 0 0;
  padding: 12px 14px;
  padding-bottom: calc(12px + var(--safe-bottom));
  background: rgba(26, 26, 46, 0.96);
  border: 1px solid rgba(240, 192, 64, 0.35);
  border-radius: 14px;
  box-shadow: 0 -8px 28px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}
.dh-install-bar p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e0e0e0;
}
.dh-install-bar .row {
  display: flex;
  gap: 8px;
}
.dh-install-bar .row .btn {
  flex: 1;
  margin: 0;
  min-height: 44px;
  font-size: 0.9rem;
}

@media (max-width: 420px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
  .card { padding: 20px 14px; }
  .swipe-card { min-height: 220px; padding: 18px; }
}
