:root {
  --bg-1: #071428;
  --bg-2: #0b3d91;
  --accent: #00c3ff;
  --accent-2: #00ffd5;
  --card: #071a2b;
  --muted: #9fb0c9;
  --glass: rgba(255,255,255,0.04);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0; /* quitar márgenes fijos */
  padding: 16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 70%);
  color: #e6f2ff;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 12px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap; /* para que se adapte en móvil */
  gap: 12px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 200px;
}

.logo {
  width: 48px;
  height: 48px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(16px, 4vw, 20px); /* adaptable */
}

.subtitle {
  margin: 0;
  font-size: clamp(11px, 3vw, 12px);
  color: var(--accent-2);
}

.store-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #032;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

/* Card layout */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12));
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap; /* que se ajuste */
}

.left {
  flex: 1;
  min-width: 220px;
}

.right {
  flex: 1;
  min-width: 200px;
}

.ip {
  font-weight: 700;
  color: var(--accent-2);
  margin: 10px 0;
  font-size: clamp(16px, 4vw, 20px);
}

.row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.small {
  background: var(--glass);
  padding: 10px;
  border-radius: 8px;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.small .label {
  font-size: 12px;
  color: var(--muted);
}

.small .value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

/* Actions */
.actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

.actions button {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--accent-2);
  cursor: pointer;
  flex: 1;
  min-width: 120px;
}

/* Mensaje temporal al copiar IP */
.copy-msg {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  background: rgba(0,0,0,0.45);
  color: var(--accent-2);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  white-space: nowrap;
}

.copy-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.networks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.networks a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  margin-top: 28px;
}

.team-card {
  padding: 20px;
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(6,30,60,0.14);
  color: #0091ff;
  display: grid;
  gap: 20px;
}

.team-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.15rem;
  color: #bfefff;
}

.team-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* member card */
.member {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 170px;
}

.member:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(3,10,28,0.45);
}

/* skin image */
.skin {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: #bfe6ff;
  box-shadow: 0 4px 12px rgba(3,10,28,0.25);
  border: 4px solid rgba(255,255,255,0.02);
}

/* meta */
.meta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rank {
  font-weight: 700;
  color: #ff6b6b; /* rojo para Owner, ajusta si quieres colores por rol */
  font-size: 0.9rem;
  margin-bottom: 2px;
}

/* color específico para roles 'mod' */
.rank.mod {
  color: #3ddc84; /* verde */
}

.name {
  font-size: 0.88rem;
  color: #dff8ff;
  opacity: 0.95;
}

/* small screens tweaks */
@media (max-width: 480px) {
  .member {
    min-height: 150px;
    padding: 10px;
  }
  .skin {
    width: 84px;
    height: 84px;
  }
}

/* medium screens */
@media (min-width: 481px) and (max-width: 900px) {
  .team-grid {
    gap: 14px;
  }
  .member {
    padding: 12px;
  }
}

.footer {
  text-align: center;
  font-size: 12px;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* separación entre texto y logo */
}

.github-link {
  color: #000000;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.github-link:hover {
  color: #ffffff;
}

.github-icon {
  width: 16px;
  height: 16px;
}