#cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 800px;
}

.card {
  position: relative;
  background: linear-gradient(to right, #55aaff, #020079);
  border-radius: 16px;
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: white;
  text-align: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  word-wrap: break-word;
  overflow: hidden;
}

.card:hover {
  background: linear-gradient(to top, #55aaff, #020079);
}

.card h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
}

.card p.set-descrip {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.links a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: white;
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  flex-shrink: 0;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffff00;
  box-shadow: 0 0 6px rgba(255, 235, 59, 0.5);
  border: 1px solid #ffeb3b;
}

.links img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

#status {
  margin-top: 15px;
  color: #475569;
  text-align: center;
  font-size: 0.85rem;
}

#refresh-btn {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0369a1;
  background: white;
  border: 1px solid #0369a1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

#refresh-btn:hover {
  background: #0369a1;
  color: white;
}

@media (max-width: 360px) {
  .card {
    padding: 10px 6px;
  }

  .card h2 {
    font-size: 1rem;
  }

  .links a {
    font-size: 0.85rem;
    padding: 3px 5px;
  }

  .links img {
    width: 24px;
    height: 24px;
  }
}
