* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #8d084f90 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #eaeaea;
  overflow-x: hidden;
}

.game-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Шапка */
.header {
  text-align: center;
  margin-bottom: 20px;
}

.title {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: #e10808;
  text-shadow: 3px 3px 0 #16213e, 5px 5px 10px rgba(0,0,0,0.3);
  margin-bottom: 15px;
  animation: titleBounce 2s ease-in-out infinite;
}

.x {
  color:rgb(244, 52, 22);
}
@keyframes titleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, #16213e, #1a1a2e);
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 2px solid #e94560;
}

.counter-icon {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.counter-value {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #ffc947;
  text-shadow: 2px 2px 0 #16213e;
}

.counter-label {
  font-size: 1rem;
  color: #aaa;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #4ecca3;
}

.stats span {
  background: rgba(78, 204, 163, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
}

/* Зона кота */
.cat-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  position: relative;
}

.cat-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.1s;
}

.cat-container:hover {
  transform: scale(1.02);
}

.cat-container:active {
  transform: scale(0.95);
}

.cat {
  width: 200px;
  height: 200px;
  transition: transform 0.1s;
}

.cat.clicked {
  animation: catBounce 0.3s ease;
}

@keyframes catBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-5deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(1.05) rotate(-3deg); }
}

.cat-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Эффект клика */
.click-effect {
  position: absolute;
  pointer-events: none;
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #ffc947;
  text-shadow: 2px 2px 0 #16213e;
  animation: floatUp 1s ease-out forwards;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}

/* Вкладки */
.shop-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: #16213e;
  color: #aaa;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.tab-btn:hover {
  background: #1a2744;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(145deg, #e94560, #c73e54);
  color: #fff;
  box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
  transform: translateY(-2px);
}

/* Магазин */
.shop-container {
  background: linear-gradient(145deg, #16213e, #1a1a2e);
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  min-height: 300px;
}

.shop-content {
  display: none;
}

.shop-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.shop-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Карточки */
.card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(145deg, #1a2744, #16213e);
  padding: 15px;
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(233, 69, 96, 0.3);
  transform: translateX(5px);
}

.card.owned {
  border-color: #4ecca3;
  background: linear-gradient(145deg, #1a3a2e, #16213e);
}

.card.locked {
  opacity: 0.6;
}

.card-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.card-info {
  flex: 1;
}

.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 3px;
}

.card-desc {
  font-size: 0.85rem;
  color: #aaa;
}

.card-price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: #ffc947;
  margin-top: 5px;
}

.card-action {
  flex-shrink: 0;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buy {
  background: linear-gradient(145deg, #e94560, #c73e54);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-buy:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

.btn-buy:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-buy:disabled {
  background: #444;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-select {
  background: linear-gradient(145deg, #4ecca3, #3db892);
  color: #fff;
  box-shadow: 0 4px 15px rgba(78, 204, 163, 0.3);
}

.btn-select:hover {
  transform: scale(1.05);
}

.btn-selected {
  background: #2d3436;
  color: #4ecca3;
  border: 2px solid #4ecca3;
}

/* Скин превью */
.skin-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a2744;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #333;
  transition: all 0.3s;
}

.skin-preview.active {
  border-color: #4ecca3;
  box-shadow: 0 0 20px rgba(78, 204, 163, 0.5);
}

.skin-preview svg {
  width: 50px;
  height: 50px;
}

/* Скины */
.skin-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(145deg, #1a2744, #16213e);
  padding: 15px;
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.skin-card:hover {
  border-color: rgba(233, 69, 96, 0.3);
  transform: translateX(5px);
}

.skin-card.owned {
  border-color: #4ecca3;
}

.skin-card.selected {
  border-color: #ffc947;
  background: linear-gradient(145deg, #2a2a1e, #1e1e16);
}

/* Анимация покупки */
@keyframes purchaseGlow {
  0% { box-shadow: 0 0 0 0 rgba(78, 204, 163, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(78, 204, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 204, 163, 0); }
}

.card.just-bought {
  animation: purchaseGlow 0.6s ease;
}

/* Прогресс бар для количества */
.owned-badge {
  background: linear-gradient(145deg, #4ecca3, #3db892);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Адаптивность */
@media (max-width: 400px) {
  .game-container {
    padding: 15px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .counter-value {
    font-size: 1.5rem;
  }
  
  .cat {
    width: 160px;
    height: 160px;
  }
}
