/* ==========================================================================
   HOT PINK & FLUTTERSHY THEME (Screenshot Exact Match)
   ========================================================================== */
:root {
  --bg-pink: #ff2d96;
  --text-white: #ffffff;
  --btn-pink-text: #ff2d96;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   SCREEN 1: BLACK INTRO SCREEN (2 SECONDS)
   ========================================================================== */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 24px;
  text-align: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-text {
  color: #ffffff;
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: introTextFade 1.6s ease forwards 0.2s;
}

@keyframes introTextFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  30%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SOUND TOGGLE
   ========================================================================== */
.sound-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 1000;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sound-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.35);
}

.sound-toggle:active {
  transform: scale(0.95);
}

/* ==========================================================================
   SCREEN 2: HOT PINK MAIN SCREEN
   ========================================================================== */
.main-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--bg-pink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  padding-bottom: 12vh; /* Slightly above center */
  opacity: 1;
  transition: opacity 0.8s ease;
}

.main-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Floating Hearts Background */
.hearts-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-heart {
  position: absolute;
  bottom: -40px;
  color: rgba(255, 255, 255, 0.25);
  animation: floatUpwards linear infinite;
  pointer-events: none;
}

@keyframes floatUpwards {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.7);
    opacity: 0;
  }
  20% { opacity: 0.6; }
  80% { opacity: 0.4; }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Content Area */
.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.view-panel {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-panel.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.92);
}

.view-panel.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   TYPOGRAPHY (EXACT MATCH WITH SCREENSHOT)
   ========================================================================== */
.title-group {
  margin-bottom: 34px;
}

.main-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-white);
  line-height: 1.15;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.main-question .line-top {
  font-size: clamp(2.3rem, 8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.main-question .line-bottom {
  font-size: clamp(3rem, 11vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 2px;
}

.sub-question {
  color: var(--text-white);
  font-size: clamp(1.5rem, 5.8vw, 2.4rem);
  font-weight: 700;
  margin-top: 18px;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   BUTTONS (EXACT MATCH WITH SCREENSHOT)
   ========================================================================== */
.buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  position: relative;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 800;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

/* "Да" - Solid White Pill with Hot Pink Text */
.btn-yes {
  background-color: #ffffff;
  color: var(--btn-pink-text);
  border: 3px solid #ffffff;
  padding: 14px 44px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: gentlePulse 2s ease-in-out infinite;
  z-index: 5;
}

.btn-yes:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-yes:active {
  transform: scale(0.96);
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* "Нет" - Transparent with 3px White Border */
.btn-no {
  background-color: transparent;
  color: #ffffff;
  border: 3px solid #ffffff;
  padding: 14px 44px;
  z-index: 100;
}

.btn-no:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Running Away State */
.btn-no.running {
  position: fixed !important;
  transition: left 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.2), top 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.2), transform 0.25s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.18);
}

/* Surrendered State ("ладно, останемся друзьями") */
.btn-no.surrendered {
  position: fixed !important;
  background-color: #ffffff !important;
  color: var(--btn-pink-text) !important;
  border: 3px solid #ffffff !important;
  padding: 14px 28px !important;
  font-size: clamp(1rem, 3.8vw, 1.25rem) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  animation: surrenderShake 0.6s ease infinite alternate;
  z-index: 1000;
}

@keyframes surrenderShake {
  0% { transform: scale(1.02) rotate(-2deg); }
  100% { transform: scale(1.02) rotate(2deg); }
}

/* ==========================================================================
   REACTION SECTIONS ("О, ахуеть..." & "Ладно, останемся друзьями")
   ========================================================================== */
.reaction-card {
  color: #ffffff;
  padding: 20px;
}

.party-emoji {
  font-size: clamp(3rem, 9vw, 4.5rem);
  margin-bottom: 12px;
  animation: bounceTada 1s ease infinite alternate;
}

@keyframes bounceTada {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.15) translateY(-8px); }
}

.reaction-title {
  font-size: clamp(2rem, 7.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.reaction-subtitle {
  font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 32px;
  opacity: 0.95;
}

.btn-again {
  background-color: #ffffff;
  color: var(--btn-pink-text);
  border: 3px solid #ffffff;
  padding: 14px 38px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-again:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   FLUTTERSHY IN BOTTOM RIGHT CORNER (EXACT MATCH)
   ========================================================================== */
.fluttershy-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: clamp(220px, 38vw, 380px);
  max-height: 38vh;
  z-index: 20;
  pointer-events: none; /* Never blocks clicks */
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.fluttershy-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
  animation: flutterBreath 3.2s ease-in-out infinite;
  transform-origin: bottom right;
}

@keyframes flutterBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile view match)
   ========================================================================== */
@media (max-width: 480px) {
  .main-screen {
    padding: 18px;
    padding-bottom: 14vh;
  }

  .buttons-row {
    gap: 16px;
  }

  .action-btn {
    padding: 13px 34px;
  }

  .fluttershy-container {
    width: clamp(200px, 46vw, 290px);
    max-height: 34vh;
  }
}
