/* ===== ОСНОВНЫЕ СТИЛИ ===== */
html {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: auto !important;
}

body {
  margin: 0 !important; 
  padding: 0 !important; 
  background: linear-gradient(135deg, #0a0015 0%, #1a0a2a 50%, #0a0015 100%);
  min-height: 100vh;
  max-height: 100vh;
  font-family: 'Georgia', serif;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden !important;
  position: relative;
  width: 100vw !important;
  height: 100vh !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: auto !important;
}

/* Глобальные запреты */
*, *::before, *::after {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
  box-sizing: border-box;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0015 0%, #1a0a2a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  color: #ff6b9d;
}

.loader {
  border: 5px solid #2a1a2a;
  border-top: 5px solid #ff6b9d;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== РОМАНТИЧЕСКИЙ ЭКРАН РАЗБЛОКИРОВКИ ===== */
#lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a1a 0%, #2d1f3d 50%, #1a0a1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow: hidden;
}

/* ===== ИГРА В КОНТЕЙНЕРЕ (БЕЗ КОРПУСА ТЕЛЕФОНА) ===== */
.phone, #game-container {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 420px;
  max-width: 95vw;
  height: 800px;
  max-height: 95vh;
  background: linear-gradient(135deg, #0a0015 0%, #1a0a2a 50%, #0a0015 100%);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(255, 107, 157, 0.2);
  border: 2px solid rgba(255, 107, 157, 0.3);
  margin: 0 !important;
  touch-action: none !important; /* Отключает pull-to-refresh на iOS */
  overscroll-behavior: none !important;
}

.status-bar {
  height: 50px;
  background: rgba(10, 5, 15, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  color: #ff6b9d;
  flex-shrink: 0;
  text-shadow: 0 0 5px rgba(255, 107, 157, 0.5);
  border-bottom: 1px solid rgba(255, 107, 157, 0.1);
  padding-top: 12px;
}

.status-time {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-icons {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.header {
  height: 60px;
  background: linear-gradient(180deg, rgba(42, 26, 42, 0.98) 0%, rgba(26, 10, 26, 0.95) 100%);
  display: flex;
  align-items: center;
  padding: 0 12px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-bottom: 2px solid rgba(255, 107, 157, 0.25);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
  backdrop-filter: blur(10px);
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: auto;
  border: 2px solid rgba(255, 107, 157, 0.6);
  box-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
  transition: all 0.3s ease;
}

.header-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  color: #ffffff;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  text-shadow: 0 0 12px rgba(255, 107, 157, 0.6);
  letter-spacing: 1px;
}

.header-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.control-btn {
  background: rgba(255, 107, 157, 0.12);
  border: 1px solid rgba(255, 107, 157, 0.35);
  font-size: 18px;
  cursor: pointer;
  color: #ff6b9d;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.2);
  backdrop-filter: blur(5px);
}

.control-btn:hover {
  background: rgba(255, 107, 157, 0.25);
  box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
  transform: scale(1.08);
}

.control-btn:active {
  transform: scale(0.95);
}

/* ===== ЧАТ ===== */
.chat-container {
  flex: 1;
  background: linear-gradient(180deg, #0f0a15 0%, #1a0f2a 50%, #0f0a15 100%);
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  touch-action: pan-y !important; /* Разрешает только вертикальную прокрутку внутри чата, блокирует pull-to-refresh */
  overscroll-behavior-y: contain !important; /* Останавливает overscroll внутри элемента */
  overscroll-behavior-x: none !important;
  -webkit-overflow-scrolling: touch;
}

/* Скрытие scrollbar для WebKit (Chrome, Safari) */
.chat-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ===== START OVERLAY ===== */
.start-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 10, 21, 0.97) 0%, rgba(26, 15, 42, 0.97) 50%, rgba(15, 10, 21, 0.97) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 107, 157, 0.2);
  backdrop-filter: blur(20px);
}

.start-overlay h2 {
  margin: 0 0 15px 0;
  color: #ff6b9d;
  font-size: 32px;
  text-align: center;
  text-shadow: 
    0 0 20px rgba(255, 107, 157, 0.9),
    0 0 40px rgba(255, 107, 157, 0.5),
    0 0 60px rgba(255, 107, 157, 0.3);
  font-family: 'Georgia', serif;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

.start-overlay p {
  margin: 0 0 25px 0;
  color: #ffb3cc;
  font-size: 20px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
  line-height: 1.6;
  font-weight: 600;
}

.logo-subtitle {
  color: #ffb3cc;
  font-size: 20px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.game-logo {
  margin-bottom: 25px;
}

.start-btn {
  padding: 18px 45px;
  font-size: 20px;
  background: linear-gradient(135deg, #ff6b9d 0%, #cc5580 100%);
  color: white;
  border: 2px solid rgba(255, 107, 157, 0.6);
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  font-weight: bold;
  pointer-events: auto;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(255, 107, 157, 0.4),
    0 0 30px rgba(255, 107, 157, 0.2);
  letter-spacing: 1px;
}

.start-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 6px 25px rgba(255, 107, 157, 0.6),
    0 0 40px rgba(255, 107, 157, 0.4);
  border-color: #ff6b9d;
}

.start-btn:active {
  transform: translateY(0) scale(1);
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.start-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ===== СООБЩЕНИЯ ===== */
.message {
  display: block;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 18px;
  max-width: 75%;
  word-wrap: break-word;
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  clear: both;
}

/* Clearfix для chat-container */
.chat-container::after {
  content: "";
  display: table;
  clear: both;
}

.message.left {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.85) 0%, rgba(100, 0, 0, 0.9) 100%);
  color: #ffffff;
  align-self: flex-start;
  border: 2px solid rgba(220, 20, 60, 0.6);
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 12px rgba(220, 20, 60, 0.4);
  float: left;
}

.message.right {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(204, 85, 128, 0.25) 100%);
  color: #ffffff;
  align-self: flex-end;
  border: 1px solid rgba(255, 107, 157, 0.4);
  text-shadow: 0 0 8px rgba(255, 107, 157, 0.3);
  backdrop-filter: blur(5px);
  float: right;
}

.message img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid rgba(255, 107, 157, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.message img:hover {
  transform: scale(1.02);
  border-color: #ff6b9d;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ВЫБОРЫ ===== */
.choice-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 10px;
  align-items: stretch;
}

.choice-btn {
  padding: 16px 22px;
  font-size: 17px;
  background: linear-gradient(135deg, rgba(61, 26, 61, 0.8) 0%, rgba(42, 10, 42, 0.8) 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 107, 157, 0.5);
  border-radius: 15px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  pointer-events: auto;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.choice-btn:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3) 0%, rgba(204, 85, 128, 0.3) 100%);
  border-color: #ff6b9d;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(255, 107, 157, 0.3),
    0 0 30px rgba(255, 107, 157, 0.2);
}

.choice-btn:active {
  transform: translateY(0);
}

.choice-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 107, 157, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.choice-btn:hover::before {
  width: 400px;
  height: 400px;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #ff6b9d;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  text-shadow: 0 0 15px rgba(255, 107, 157, 0.8);
  pointer-events: auto;
}

.modal-close:hover {
  color: #fff;
  transform: scale(1.2) rotate(90deg);
  text-shadow: 0 0 25px rgba(255, 107, 157, 1);
}

#modal-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  box-shadow: 0 0 50px rgba(255, 107, 157, 0.5);
  border: 3px solid rgba(255, 107, 157, 0.6);
  pointer-events: auto;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

/* Скрытие scrollbar для WebKit в галерее */
.gallery-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.gallery-content img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 107, 157, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.gallery-content img:hover {
  transform: scale(1.05);
  border-color: #ff6b9d;
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

/* ===== RESTART BUTTON ===== */
.restart-btn {
  padding: 12px 30px;
  font-size: 16px;
  background: linear-gradient(135deg, #ff6b9d 0%, #cc5580 100%);
  color: white;
  border: 2px solid rgba(255, 107, 157, 0.6);
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  font-weight: bold;
  margin-top: 15px;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
  letter-spacing: 1px;
}

.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
  border-color: #ff6b9d;
}

.restart-btn:active {
  transform: translateY(0);
}

/* ===== AUDIO ELEMENTS СКРЫТЫ ПОЛНОСТЬЮ ===== */
audio {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  pointer-events: none !important;
}

audio::-webkit-media-controls-panel,
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-enclosure {
  display: none !important;
}

.age-warning {
  background: rgba(45, 20, 45, 0.9);
  color: #ffb3cc;
  padding: 12px;
  margin: 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  border: 2px solid rgba(255, 107, 157, 0.4);
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

/* ===== RESPONSIVE ===== */

/* Альбомная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
  .start-overlay h2 {
    font-size: 22px !important;
    margin: 0 0 8px 0 !important;
  }
  
  .logo-subtitle {
    font-size: 14px !important;
    margin-top: 5px !important;
  }
  
  .start-overlay p {
    font-size: 14px !important;
    margin: 0 0 12px 0 !important;
  }
  
  .start-btn {
    padding: 10px 25px !important;
    font-size: 14px !important;
    margin-top: 5px !important;
  }
  
  .game-logo {
    margin-bottom: 10px !important;
  }
  
  .start-overlay {
    padding: 10px !important;
  }
  
  .header {
    height: 45px !important;
  }
  
  .status-bar {
    height: 35px !important;
    padding-top: 5px !important;
  }
}

@media (max-width: 768px) {
  .phone, #game-container {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }
  
  .header-title {
    font-size: 14px;
  }
  
  .control-btn {
    font-size: 16px;
    padding: 6px;
  }
  
  .message {
    max-width: 85%;
    font-size: 14px;
  }
  
  .choice-btn {
    font-size: 14px;
    padding: 12px 16px;
  }
  
  .gallery-content {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
  }
}

@media (max-height: 600px) {
  .choice-container {
    flex-direction: column;
  }
  
  .choice-btn {
    margin-bottom: 6px;
  }
}

/* ===== TYPING ANIMATION ===== */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(61, 26, 61, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(255, 107, 157, 0.3);
  backdrop-filter: blur(5px);
}

.typing-indicator span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b9d;
  animation: typing 1.4s infinite;
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.6);
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  30% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* ===== LOVE PUZZLE STYLES ===== */
.love-puzzle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0a1a 0%, #2d1f3d 50%, #1a0a1a 100%);
  overflow: hidden;
}

.love-puzzle-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: bold;
  color: #ff6b9d;
  text-shadow: 0 0 20px #ff6b9d, 0 0 40px #ff6b9d;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
  letter-spacing: 2px;
  text-align: center;
  padding: 0 20px;
}

.love-puzzle-subtitle {
  font-size: clamp(14px, 3vw, 18px);
  color: #ffb3cc;
  text-shadow: 0 0 10px rgba(255,107,157,0.5);
  margin-bottom: 30px;
  text-align: center;
  padding: 0 20px;
}

.love-words-area {
  position: relative;
  width: 90%;
  max-width: 500px;
  height: 300px;
  border: 2px dashed rgba(255,107,157,0.3);
  border-radius: 20px;
  background: rgba(45, 31, 61, 0.3);
  margin-bottom: 30px;
}

.love-word {
  position: absolute;
  padding: 15px 25px;
  background: linear-gradient(135deg, #3d1a3d 0%, #2a0a2a 100%);
  border: 2px solid rgba(255, 107, 157, 0.5);
  border-radius: 15px;
  color: #fff;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 20px rgba(255,107,157,0.3);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  z-index: 10;
}

.love-word:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4), 0 0 30px rgba(255,107,157,0.5);
  border-color: #ff6b9d;
}

.love-word.selected {
  background: linear-gradient(135deg, #ff6b9d 0%, #cc5580 100%);
  transform: scale(1.15);
  box-shadow: 0 0 40px rgba(255,107,157,0.8);
  animation: pulse-glow 1s ease-in-out infinite;
}

.love-word.correct {
  background: linear-gradient(135deg, #6bff9d 0%, #55cc80 100%);
  border-color: #6bff9d;
  box-shadow: 0 0 30px rgba(107,255,157,0.6);
}

.love-word.wrong {
  animation: shake 0.5s ease-in-out;
  background: linear-gradient(135deg, #ff6b6b 0%, #cc5555 100%);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255,107,157,0.6);
  }
  50% {
    box-shadow: 0 0 50px rgba(255,107,157,1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.love-progress {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 20px;
}

.love-progress-word {
  padding: 10px 20px;
  background: rgba(45, 31, 61, 0.5);
  border: 2px dashed rgba(255,107,157,0.3);
  border-radius: 12px;
  color: rgba(255,179,204,0.5);
  font-size: clamp(16px, 3.5vw, 20px);
  font-weight: bold;
  min-width: 50px;
  text-align: center;
  transition: all 0.3s ease;
}

.love-progress-word.filled {
  background: linear-gradient(135deg, #ff6b9d 0%, #cc5580 100%);
  border: 2px solid #ff6b9d;
  color: #fff;
  box-shadow: 0 0 20px rgba(255,107,157,0.5);
}

.love-hint {
  font-size: clamp(12px, 2.5vw, 14px);
  color: rgba(255,179,204,0.7);
  text-align: center;
  padding: 0 20px;
}

.floating-heart {
  position: absolute;
  font-size: 20px;
  opacity: 0.3;
  animation: float-heart 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-heart {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.6;
  }
}

.success-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(24px, 6vw, 36px);
  font-weight: bold;
  color: #ff6b9d;
  text-shadow: 0 0 30px #ff6b9d, 0 0 60px #ff6b9d;
  text-align: center;
  animation: success-pulse 0.8s ease-in-out;
  z-index: 100;
}

@keyframes success-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ===== PARTICLES ===== */
.heart-particle {
  position: fixed;
  pointer-events: none;
  font-size: 30px;
  animation: heart-rise 3s ease-out forwards;
  z-index: 1000;
}

@keyframes heart-rise {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) scale(0) rotate(360deg);
    opacity: 0;
  }
}

img {
  -webkit-user-drag: none !important;
  pointer-events: auto;
}

*:not(input):not(textarea) {
  -webkit-touch-callout: none !important;
}
