/* =========================================================
   Candy AI Clone — styles/main.css
   Mobile-first, dark neon pink theme
   ========================================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0A0A0F;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 45, 120, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(120, 40, 160, 0.15), transparent 60%),
    linear-gradient(180deg, #0A0A0F 0%, #140818 40%, #0A0A0F 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 88px; /* room for sticky CTA on mobile */
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Utilities ---------- */
.text-pink { color: #FF2D78; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF2D78;
  margin: 0 0 12px;
}
.eyebrow-center { text-align: center; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.header-inner--minimal {
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark { font-size: 22px; }
.brand-dot { color: #FF2D78; }

.nav-desktop {
  display: none;
  gap: 28px;
}
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: #B8A8C8;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-desktop a:hover { color: #ffffff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.1); }
.lang-flag { font-size: 15px; }
.lang-chevron { color: #B8A8C8; }

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
}
.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
}
.mobile-nav a {
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 14px;
  transition: background 0.2s;
}
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.06); }
.mobile-nav .mobile-cta {
  margin-top: 16px;
  background: #FF2D78;
  color: #ffffff;
  font-weight: 700;
}
.mobile-nav .mobile-cta:hover { background: #FF4D90; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 32px 0 48px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  max-width: 120vw;
  background: radial-gradient(circle, rgba(255, 45, 120, 0.22) 0%, rgba(120, 30, 160, 0.12) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

/* Chat card */
.chat-card {
  width: 100%;
  max-width: 380px;
  background: #1A1025;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 14px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 45, 120, 0.04);
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.chat-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 45, 120, 0.4);
}
.chat-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #1A1025;
}
.chat-meta { flex: 1; min-width: 0; }
.chat-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.heart { font-size: 12px; }
.chat-status {
  font-size: 12px;
  color: #B8A8C8;
}
.live-badge {
  background: #FF2D78;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
}

.chat-body {
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  overscroll-behavior: contain;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
.chat-body::-webkit-scrollbar-track { background: transparent; }
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 16px;
}
.bubble-ai {
  background: #251A30;
  color: #E8DEF0;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.quick-reply {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #FF6BA0;
  background: rgba(255, 45, 120, 0.06);
  border: 1px solid rgba(255, 45, 120, 0.35);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.quick-reply:hover {
  background: rgba(255, 45, 120, 0.12);
  border-color: rgba(255, 45, 120, 0.6);
}
.quick-reply:active { transform: scale(0.98); }
.quick-reply:disabled,
.quick-reply.is-used {
  color: #6A5C78;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  transform: none;
}
.quick-reply.is-used::after {
  content: " ✓";
  color: #22C55E;
  font-weight: 700;
}

.chat-final {
  padding-top: 10px;
  animation: fadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.btn-chat-final {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
  box-shadow: 0 10px 28px rgba(255, 45, 120, 0.45);
}

/* User (right-side, pink) bubble inside chat */
.bubble-user {
  align-self: flex-end;
  max-width: 80%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF4D90 0%, #FF2D78 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(255, 45, 120, 0.3);
  animation: bubbleIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.bubble-ai.is-new {
  animation: bubbleIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Typing indicator (three bouncing dots) */
.typing-indicator {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #251A30;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  max-width: 85px;
  animation: bubbleIn 0.25s ease both;
}
.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B8A8C8;
  opacity: 0.5;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Hero copy */
.hero-copy {
  text-align: center;
  max-width: 600px;
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}
.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 15px;
  line-height: 1.65;
  color: #B8A8C8;
  margin-bottom: 20px;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.scroll-hint-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 36px;
}
.scroll-hint {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #B8A8C8;
  text-align: center;
  animation: floatY 2s ease-in-out infinite;
}
.hero .container { text-align: inherit; }

/* =========================================================
   Section heads
   ========================================================= */
.section-head {
  text-align: center;
  margin-bottom: 28px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15px;
  color: #B8A8C8;
}

/* =========================================================
   Girls grid
   ========================================================= */
.girls-section {
  padding: 40px 0 32px;
}
.girls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.girl-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #1A1025;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.girl-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.girl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}
.girl-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 45, 120, 0.25);
  z-index: 2;
}
.girl-card:hover img { transform: scale(1.05); }

.online-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(34, 197, 94, 0.95);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.girl-name {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.girls-cta-wrap {
  text-align: center;
  margin-top: 28px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s;
}
.btn-pink {
  background: #FF2D78;
  color: #ffffff;
  min-height: 48px;
  padding: 0 28px;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(255, 45, 120, 0.35);
}
.btn-pink:hover {
  background: #FF4D90;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 45, 120, 0.45);
}
.btn-pink:active { transform: translateY(0); }

/* =========================================================
   Match / Quiz
   ========================================================= */
.match-section {
  padding: 48px 0 40px;
}
.quiz-card {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1E1428 0%, #1A1025 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.quiz-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.quiz-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-dot.is-active {
  background: #FF2D78;
  width: 44px;
}
.quiz-dot.is-done {
  background: rgba(255, 45, 120, 0.5);
}

.quiz-step {
  animation: quizStepIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes quizStepIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz-step.is-leaving {
  animation: quizStepOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes quizStepOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-16px); }
}

.quiz-question {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
  text-align: center;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #E8DEF0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.quiz-option:hover {
  border-color: rgba(255, 45, 120, 0.5);
  background: rgba(255, 45, 120, 0.08);
}
.quiz-option:active { transform: scale(0.99); }

/* Quiz result */
.quiz-result {
  text-align: center;
  padding: 8px 4px 4px;
  animation: quizStepIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.quiz-result-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 6px 18px rgba(255, 45, 120, 0.35));
}
.quiz-result-title {
  font-size: 24px;
  font-weight: 800;
  color: #FF6BA0;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.quiz-result-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #B8A8C8;
  margin-bottom: 28px;
}
.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.btn-quiz-cta {
  min-height: 52px;
  font-size: 16px;
  width: 100%;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
  .quiz-card { padding: 36px; }
  .quiz-question { font-size: 20px; }
  .quiz-result-actions {
    flex-direction: row;
    justify-content: center;
  }
  .btn-quiz-cta,
  .btn-ghost { width: auto; min-width: 200px; }
  .quiz-result-title { font-size: 28px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 40px 0 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 24px;
}
.footer-note {
  font-size: 13px;
  color: #8A7A98;
  margin-bottom: 6px;
}
.footer-18 {
  font-size: 12px;
  color: #6A5C78;
}

/* =========================================================
   Sticky CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.9) 40%, #0A0A0F 100%);
}
.btn-sticky {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 56px;
  font-size: 16px;
  display: flex;
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =========================================================
   Responsive — Tablet (≥640px)
   ========================================================= */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  body { padding-bottom: 96px; }

  .hero { padding: 48px 0 64px; }
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 16px; }

  .girls-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .section-title { font-size: 34px; }
  .quiz-card { padding: 32px; }
  .btn-sticky { min-height: 56px; }
}

/* =========================================================
   Responsive — Desktop (≥1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  body { padding-bottom: 0; } /* sticky CTA floats with margin on desktop */

  .nav-desktop { display: flex; }
  .hamburger { display: none; }

  .hero { padding: 72px 0 96px; }
  .hero-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 64px;
    text-align: left;
  }
  .hero-copy {
    text-align: left;
    max-width: 560px;
  }
  .hero-features { justify-content: flex-start; }
  .hero-title { font-size: 54px; }
  .hero-sub { font-size: 17px; }

  .scroll-hint {
    display: block;
    margin: 64px auto 0;
  }

  .girls-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  .section-title { font-size: 40px; }

  .girls-section { padding: 64px 0 48px; }
  .match-section { padding: 80px 0 64px; }

  /* On desktop, sticky CTA becomes a floating pill at bottom-right,
     but to match the reference (full width bar), we keep full-width.
     Add bottom padding so it floats with breathing room. */
  .sticky-cta {
    padding: 16px 32px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.95) 50%, #0A0A0F 100%);
  }
  .btn-sticky {
    max-width: 720px;
    min-height: 56px;
  }
  body { padding-bottom: 100px; }
}

/* =========================================================
   Redirect overlay (3s countdown before leaving)
   ========================================================= */
.redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: overlayFade 0.25s ease both;
}
.redirect-overlay[hidden] { display: none; }
@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.redirect-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #1E1428 0%, #140818 100%);
  border: 1px solid rgba(255, 45, 120, 0.25);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(255, 45, 120, 0.2), 0 0 0 1px rgba(255,255,255,0.04);
}
.redirect-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 45, 120, 0.18);
  border-top-color: #FF2D78;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.redirect-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.redirect-sub {
  font-size: 14px;
  color: #B8A8C8;
}
.redirect-sub #redirectCount {
  display: inline-block;
  min-width: 1ch;
  color: #FF6BA0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Girl card as clickable target */
.girl-card { cursor: pointer; }
.girl-card:focus-visible {
  outline: 2px solid #FF2D78;
  outline-offset: 2px;
}

/* =========================================================
   Browser gate — "Open in Chrome" prompt for non-Safari
   ========================================================= */
.browser-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayFade 0.25s ease both;
  overflow-y: auto;
}
.browser-gate[hidden] { display: none; }

.browser-gate-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  color: #1c1c1e;
  border-radius: 28px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: gateIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.browser-gate-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.browser-gate-icon svg { width: 88px; height: 88px; display: block; }

.browser-gate-title {
  font-size: 32px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.browser-gate-sub {
  font-size: 17px;
  line-height: 1.55;
  color: #5c5c60;
  margin: 0 auto 28px;
  max-width: 320px;
}

.browser-gate-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.browser-gate-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f5f5f7;
  border-radius: 18px;
  padding: 16px 18px;
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-body { flex: 1; min-width: 0; }
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #5c5c60;
}

.browser-gate-tip {
  background: #FFF6E5;
  border: 1px solid #F5DFB0;
  color: #8A6A2F;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

@media (max-width: 380px) {
  .browser-gate-card { padding: 26px 18px 22px; border-radius: 24px; }
  .browser-gate-title { font-size: 26px; }
  .browser-gate-sub { font-size: 15px; }
  .step-title { font-size: 15px; }
  .step-desc,
  .browser-gate-tip { font-size: 14px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
