* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: #0f172a;
  background-image: url("../images/pokemon-pixel-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(244, 246, 248, 0.9);
  z-index: -1;
}

/* ================= LAYOUT ================= */

.app {
  min-height: 100vh;
}

.topbar {
  padding: 28px 40px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.brand h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.brand span {
  font-size: 0.85rem;
  color: #64748b;
}

.dashboard,
.section {
  padding: 48px;
  max-width: 1400px;
  margin: auto;
}

/* ================= TCG ================= */

.tcg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.tcg-card {
  background: white;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}

.tcg-card:hover {
  transform: translateY(-10px);
}

.tcg-header {
  padding: 26px;
  border-bottom: 1px solid #e5e7eb;
}

.tcg-body {
  padding: 26px;
  flex: 1;
  color: #475569;
}

.tcg-footer {
  padding: 22px;
  border-top: 1px solid #e5e7eb;
}

.tcg-footer button {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  font-weight: bold;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: white;
}

/* ================= DIARIO ================= */

.capture-form {
  max-width: 900px;
  margin: 40px auto 50px auto;
  background: white;
  padding: 32px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.capture-form input {
  padding: 16px 18px;
  font-size: 1rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
}

.capture-form button {
  padding: 16px 26px;
  border-radius: 999px;
  border: none;
  font-weight: bold;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: white;
  cursor: pointer;
}

/* Nombre del jugador */
#capturesList h3 {
  margin-left: 48px;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

/* GRID DE CAPTURAS */

.captures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  padding: 0 48px;
}

.capture-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.capture-card img {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  margin: 12px auto;
}

.capture-card a {
  display: block;
  font-weight: bold;
  color: #2563eb;
  text-decoration: none;
  margin-bottom: 10px;
}

.capture-card button {
  background: none;
  border: none;
  color: #ef4444;
  font-weight: bold;
  cursor: pointer;
}

/* ================= BOTONES ================= */

.back-btn {
  margin: 40px 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.gyms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gym-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.gym-card.win {
  border: 3px solid #22c55e;
}

.gym-card.lose {
  border: 3px solid #ef4444;
}

.gym-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-around;
}

.gym-actions button {
  font-size: 1.2rem;
  border: none;
  background: none;
  cursor: pointer;
}
