.clicker-layout {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr 400px;
  gap: 20px;
  align-items: start;
}

.clicker-col {
  background: rgba(15, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.col-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 20px;
  color: rgba(255, 205, 80, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.toggle-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.toggle-icon {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 14px;
}

/* === ZONA DEL PROTA === */
.currency-box {
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 205, 80, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.total-currency {
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.dps-currency {
  font-size: 1.4rem;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 25px;
  font-weight: bold;
  white-space: nowrap;
}

.currency-part {
  display: inline-block;
  min-width: 65px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dps-currency .currency-part {
  min-width: 55px;
}

/* === COLORES DE MONEDAS === */
.txt-bronce { color: #cd7f32; }
.txt-plata  { color: #c0c0c0; }
.txt-oro    { color: #ffd700; }
.txt-platino {
  background: linear-gradient(90deg, #e0eaf5, #86a8e7, #e0eaf5);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine-platino 2.5s linear infinite;
  font-weight: 900;
  filter: drop-shadow(0 0 6px rgba(134, 168, 231, 0.6));
}

@keyframes shine-platino {
  to { background-position: 200% center; }
}

.prota-area {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  margin-bottom: 20px;
}

.prota-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 4px solid rgba(255, 205, 80, 0.5);
  box-shadow: 0 10px 40px rgba(255, 205, 80, 0.2);
  transition: transform 0.05s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.prota-img:active {
  transform: scale(0.92);
}

/* === ZONA DEL EJÉRCITO === */
.army-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.army-cover {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

@keyframes armyBounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); border-color: rgba(255,205,80,0.8); box-shadow: 0 8px 15px rgba(255,205,80,0.4); }
  100% { transform: translateY(0) scale(1); }
}

/* === ZONA DE LA TIENDA === */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 700px;
  padding-right: 5px;
}

.store-item {
  cursor: pointer;
  opacity: 1;
}
.store-item.disabled {
  opacity: 0.4;
  filter: grayscale(1);
  cursor: not-allowed;
}
.skills-area {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px;
  min-height: 50px;
}
.skill-btn {
  background: rgba(168, 85, 247, 0.2); border: 1px solid #a855f7; color: white;
  padding: 10px 15px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: transform 0.1s;
}
.skill-btn:active { transform: scale(0.95); }
.skill-btn.on-cd {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); cursor: not-allowed;
}
.skill-btn.active-buff {
  background: rgba(255,205,80,0.4); border-color: #ffd700; color: #fff; animation: pulse 1s infinite alternate;
}
@keyframes pulse { from { box-shadow: 0 0 5px #ffd700; } to { box-shadow: 0 0 15px #ffd700; } }

/* === TIENDA DE MEJORAS (ABAJO) === */
.upgrades-layout {
  max-width: 1600px;
  margin: 20px auto;
  background: rgba(15, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}
.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 15px;
}
.upg-item {
  display: flex; align-items: center; background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1); padding: 12px; border-radius: 8px; cursor: pointer; gap: 15px;
  transition: transform 0.1s, border-color 0.1s;
}
.upg-item:hover:not(.disabled) {
  transform: translateY(-2px);
  border-color: rgba(255,205,80,0.5);
}
.upg-item.disabled { opacity: 0.5; cursor: not-allowed; }
.upg-icon { font-size: 2.2rem; flex: 0 0 auto; }
.upg-info { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.upg-title { font-weight: bold; font-size: 15px; color: #fff; }
.upg-desc { font-size: 12px; opacity: 0.7; color: #ddd; }

.tag .currency-part {
  min-width: auto;
  text-align: left;
}

.active-buffs-area {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 15px;
}
.active-buff-icon {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 1.1rem;
  display: flex; align-items: center; gap: 6px;
  color: #fff; font-weight: bold;
}
.active-buff-icon span {
  font-size: 0.9rem; opacity: 0.8;
}

/* === SELECTOR DE PROTAGONISTAS === */
.prota-selectors {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}
.prota-option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.2);
  opacity: 0.5;
  transition: all 0.2s;
}
.prota-option:hover { opacity: 0.8; transform: translateY(-2px); }
.prota-option.active {
  opacity: 1; border-color: #ffd700; box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* === GUÍA DE INICIO === */
.welcome-guide {
  text-align: left;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 205, 80, 0.6);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  max-width: 90%;
  animation: pulseGuide 2s infinite alternate;
}
.welcome-guide h3 { color: #ffd700; margin-top: 0; text-align: center; }
.welcome-guide p { margin: 10px 0; font-size: 14px; opacity: 0.9; }
@keyframes pulseGuide { 0% { box-shadow: 0 0 10px rgba(255, 205, 80, 0.1); } 100% { box-shadow: 0 0 25px rgba(255, 205, 80, 0.4); } }

/* === RESPONSIVE (MÓVIL / TABLET) === */
@media (max-width: 1100px) {
  .clicker-layout {
    grid-template-columns: 1fr;
  }
  .clicker-col, .upgrades-layout {
    min-height: auto;
  }
  .prota-col {
    order: -1;
  }
  .collapsed-mobile .col-content {
    display: none;
  }
  .toggle-icon::after {
    content: "✖";
  }
  .collapsed-mobile .toggle-icon::after {
    content: "▼";
  }
  .toggle-title {
    cursor: pointer;
  }
  .toggle-icon {
    display: block;
  }
}
/* =================================== */