/* ============================================================
   SELECCIÓN DE JUGADOR
   ============================================================ */
.player-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.player-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.player-btn:hover { border-color: var(--accent); background: rgba(226,96,31,0.06); transform: translateY(-2px); }

/* ============================================================
   PANEL OSCURO ("instrumento") — roster / estado en vivo
   ============================================================ */
.status-terminal {
  background: var(--panel-dark);
  color: #e9e9ee;
  border-radius: 14px;
  overflow: hidden;
  margin: 20px 0;
  font-family: var(--font-mono);
}
.terminal-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-dark-line);
}
.terminal-title { margin-left: 8px; font-size: 10.5px; color: rgba(233,233,238,0.5); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff6b5e; } .dot.yellow { background: #ffd166; } .dot.green { background: #6fd88a; }
.status-list { padding: 14px; font-size: 12.5px; line-height: 1.9; }
.status-row { display: flex; justify-content: space-between; }
.status-row .name.me { color: #ffb27a; font-weight: 700; }
.pill.online { color: #6fd88a; } .pill.offline { color: rgba(233,233,238,0.4); }

/* ============================================================
   PANTALLA DE PERFIL (apodo + avatar)
   ============================================================ */
.avatar-picker { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-preview {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--line); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--ink-soft);
  overflow: hidden; flex-shrink: 0;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.hint-text { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin: 6px 0 0; }

/* ============================================================
   GALERÍA DE AVATARES (curada por el host, subida a Storage)
   ============================================================ */
.gallery-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 10px;
}
.avatar-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 10px; margin-bottom: 20px; max-height: 230px; overflow-y: auto; padding: 2px;
}
.gallery-thumb {
  padding: 0; border: 3px solid transparent; border-radius: 50%;
  width: 56px; height: 56px; cursor: pointer; overflow: hidden; background: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.selected { border-color: var(--accent); }